All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.ssm.inputs.DocumentAttachmentsSourceArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.ssm.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DocumentAttachmentsSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final DocumentAttachmentsSourceArgs Empty = new DocumentAttachmentsSourceArgs();

    /**
     * The key of a key-value pair that identifies the location of an attachment to the document. Valid values: `SourceUrl`, `S3FileUrl`, `AttachmentReference`.
     * 
     */
    @Import(name="key", required=true)
    private Output key;

    /**
     * @return The key of a key-value pair that identifies the location of an attachment to the document. Valid values: `SourceUrl`, `S3FileUrl`, `AttachmentReference`.
     * 
     */
    public Output key() {
        return this.key;
    }

    /**
     * The name of the document attachment file.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the document attachment file.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
     * 
     */
    @Import(name="values", required=true)
    private Output> values;

    /**
     * @return The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
     * 
     */
    public Output> values() {
        return this.values;
    }

    private DocumentAttachmentsSourceArgs() {}

    private DocumentAttachmentsSourceArgs(DocumentAttachmentsSourceArgs $) {
        this.key = $.key;
        this.name = $.name;
        this.values = $.values;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(DocumentAttachmentsSourceArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private DocumentAttachmentsSourceArgs $;

        public Builder() {
            $ = new DocumentAttachmentsSourceArgs();
        }

        public Builder(DocumentAttachmentsSourceArgs defaults) {
            $ = new DocumentAttachmentsSourceArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param key The key of a key-value pair that identifies the location of an attachment to the document. Valid values: `SourceUrl`, `S3FileUrl`, `AttachmentReference`.
         * 
         * @return builder
         * 
         */
        public Builder key(Output key) {
            $.key = key;
            return this;
        }

        /**
         * @param key The key of a key-value pair that identifies the location of an attachment to the document. Valid values: `SourceUrl`, `S3FileUrl`, `AttachmentReference`.
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            return key(Output.of(key));
        }

        /**
         * @param name The name of the document attachment file.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the document attachment file.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param values The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
         * 
         * @return builder
         * 
         */
        public Builder values(Output> values) {
            $.values = values;
            return this;
        }

        /**
         * @param values The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
         * 
         * @return builder
         * 
         */
        public Builder values(List values) {
            return values(Output.of(values));
        }

        /**
         * @param values The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
         * 
         * @return builder
         * 
         */
        public Builder values(String... values) {
            return values(List.of(values));
        }

        public DocumentAttachmentsSourceArgs build() {
            if ($.key == null) {
                throw new MissingRequiredPropertyException("DocumentAttachmentsSourceArgs", "key");
            }
            if ($.values == null) {
                throw new MissingRequiredPropertyException("DocumentAttachmentsSourceArgs", "values");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy