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

com.pulumi.aws.ssm.ActivationArgs Maven / Gradle / Ivy

// *** 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;

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


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

    public static final ActivationArgs Empty = new ActivationArgs();

    /**
     * The description of the resource that you want to register.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the resource that you want to register.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * UTC timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) by which this activation request should expire. The default value is 24 hours from resource creation time. This provider will only perform drift detection of its value when present in a configuration.
     * 
     */
    @Import(name="expirationDate")
    private @Nullable Output expirationDate;

    /**
     * @return UTC timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) by which this activation request should expire. The default value is 24 hours from resource creation time. This provider will only perform drift detection of its value when present in a configuration.
     * 
     */
    public Optional> expirationDate() {
        return Optional.ofNullable(this.expirationDate);
    }

    /**
     * The IAM Role to attach to the managed instance.
     * 
     */
    @Import(name="iamRole", required=true)
    private Output iamRole;

    /**
     * @return The IAM Role to attach to the managed instance.
     * 
     */
    public Output iamRole() {
        return this.iamRole;
    }

    /**
     * The default name of the registered managed instance.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The default name of the registered managed instance.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The maximum number of managed instances you want to register. The default value is 1 instance.
     * 
     */
    @Import(name="registrationLimit")
    private @Nullable Output registrationLimit;

    /**
     * @return The maximum number of managed instances you want to register. The default value is 1 instance.
     * 
     */
    public Optional> registrationLimit() {
        return Optional.ofNullable(this.registrationLimit);
    }

    /**
     * A map of tags to assign to the object. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the object. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ActivationArgs() {}

    private ActivationArgs(ActivationArgs $) {
        this.description = $.description;
        this.expirationDate = $.expirationDate;
        this.iamRole = $.iamRole;
        this.name = $.name;
        this.registrationLimit = $.registrationLimit;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ActivationArgs $;

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

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

        /**
         * @param description The description of the resource that you want to register.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the resource that you want to register.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param expirationDate UTC timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) by which this activation request should expire. The default value is 24 hours from resource creation time. This provider will only perform drift detection of its value when present in a configuration.
         * 
         * @return builder
         * 
         */
        public Builder expirationDate(@Nullable Output expirationDate) {
            $.expirationDate = expirationDate;
            return this;
        }

        /**
         * @param expirationDate UTC timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) by which this activation request should expire. The default value is 24 hours from resource creation time. This provider will only perform drift detection of its value when present in a configuration.
         * 
         * @return builder
         * 
         */
        public Builder expirationDate(String expirationDate) {
            return expirationDate(Output.of(expirationDate));
        }

        /**
         * @param iamRole The IAM Role to attach to the managed instance.
         * 
         * @return builder
         * 
         */
        public Builder iamRole(Output iamRole) {
            $.iamRole = iamRole;
            return this;
        }

        /**
         * @param iamRole The IAM Role to attach to the managed instance.
         * 
         * @return builder
         * 
         */
        public Builder iamRole(String iamRole) {
            return iamRole(Output.of(iamRole));
        }

        /**
         * @param name The default name of the registered managed instance.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The default name of the registered managed instance.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param registrationLimit The maximum number of managed instances you want to register. The default value is 1 instance.
         * 
         * @return builder
         * 
         */
        public Builder registrationLimit(@Nullable Output registrationLimit) {
            $.registrationLimit = registrationLimit;
            return this;
        }

        /**
         * @param registrationLimit The maximum number of managed instances you want to register. The default value is 1 instance.
         * 
         * @return builder
         * 
         */
        public Builder registrationLimit(Integer registrationLimit) {
            return registrationLimit(Output.of(registrationLimit));
        }

        /**
         * @param tags A map of tags to assign to the object. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the object. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ActivationArgs build() {
            if ($.iamRole == null) {
                throw new MissingRequiredPropertyException("ActivationArgs", "iamRole");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy