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

com.pulumi.aws.shield.DrtAccessRoleArnAssociationArgs 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.66.3
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.shield;

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


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

    public static final DrtAccessRoleArnAssociationArgs Empty = new DrtAccessRoleArnAssociationArgs();

    /**
     * The Amazon Resource Name (ARN) of the role the SRT will use to access your AWS account. Prior to making the AssociateDRTRole request, you must attach the `AWSShieldDRTAccessPolicy` managed policy to this role.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return The Amazon Resource Name (ARN) of the role the SRT will use to access your AWS account. Prior to making the AssociateDRTRole request, you must attach the `AWSShieldDRTAccessPolicy` managed policy to this role.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    @Import(name="timeouts")
    private @Nullable Output timeouts;

    public Optional> timeouts() {
        return Optional.ofNullable(this.timeouts);
    }

    private DrtAccessRoleArnAssociationArgs() {}

    private DrtAccessRoleArnAssociationArgs(DrtAccessRoleArnAssociationArgs $) {
        this.roleArn = $.roleArn;
        this.timeouts = $.timeouts;
    }

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

    public static final class Builder {
        private DrtAccessRoleArnAssociationArgs $;

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

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

        /**
         * @param roleArn The Amazon Resource Name (ARN) of the role the SRT will use to access your AWS account. Prior to making the AssociateDRTRole request, you must attach the `AWSShieldDRTAccessPolicy` managed policy to this role.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The Amazon Resource Name (ARN) of the role the SRT will use to access your AWS account. Prior to making the AssociateDRTRole request, you must attach the `AWSShieldDRTAccessPolicy` managed policy to this role.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        public Builder timeouts(@Nullable Output timeouts) {
            $.timeouts = timeouts;
            return this;
        }

        public Builder timeouts(DrtAccessRoleArnAssociationTimeoutsArgs timeouts) {
            return timeouts(Output.of(timeouts));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy