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

com.pulumi.aws.ssm.inputs.AssociationTargetArgs 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;


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

    public static final AssociationTargetArgs Empty = new AssociationTargetArgs();

    /**
     * Either `InstanceIds` or `tag:Tag Name` to specify an EC2 tag.
     * 
     */
    @Import(name="key", required=true)
    private Output key;

    /**
     * @return Either `InstanceIds` or `tag:Tag Name` to specify an EC2 tag.
     * 
     */
    public Output key() {
        return this.key;
    }

    /**
     * A list of instance IDs or tag values. AWS currently limits this list size to one value.
     * 
     */
    @Import(name="values", required=true)
    private Output> values;

    /**
     * @return A list of instance IDs or tag values. AWS currently limits this list size to one value.
     * 
     */
    public Output> values() {
        return this.values;
    }

    private AssociationTargetArgs() {}

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

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

    public static final class Builder {
        private AssociationTargetArgs $;

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

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

        /**
         * @param key Either `InstanceIds` or `tag:Tag Name` to specify an EC2 tag.
         * 
         * @return builder
         * 
         */
        public Builder key(Output key) {
            $.key = key;
            return this;
        }

        /**
         * @param key Either `InstanceIds` or `tag:Tag Name` to specify an EC2 tag.
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            return key(Output.of(key));
        }

        /**
         * @param values A list of instance IDs or tag values. AWS currently limits this list size to one value.
         * 
         * @return builder
         * 
         */
        public Builder values(Output> values) {
            $.values = values;
            return this;
        }

        /**
         * @param values A list of instance IDs or tag values. AWS currently limits this list size to one value.
         * 
         * @return builder
         * 
         */
        public Builder values(List values) {
            return values(Output.of(values));
        }

        /**
         * @param values A list of instance IDs or tag values. AWS currently limits this list size to one value.
         * 
         * @return builder
         * 
         */
        public Builder values(String... values) {
            return values(List.of(values));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy