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

com.pulumi.aws.ssoadmin.ManagedPolicyAttachmentArgs Maven / Gradle / Ivy

Go to download

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

The 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.ssoadmin;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final ManagedPolicyAttachmentArgs Empty = new ManagedPolicyAttachmentArgs();

    /**
     * The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
     * 
     */
    @Import(name="instanceArn", required=true)
    private Output instanceArn;

    /**
     * @return The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
     * 
     */
    public Output instanceArn() {
        return this.instanceArn;
    }

    /**
     * The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
     * 
     */
    @Import(name="managedPolicyArn", required=true)
    private Output managedPolicyArn;

    /**
     * @return The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
     * 
     */
    public Output managedPolicyArn() {
        return this.managedPolicyArn;
    }

    /**
     * The Amazon Resource Name (ARN) of the Permission Set.
     * 
     */
    @Import(name="permissionSetArn", required=true)
    private Output permissionSetArn;

    /**
     * @return The Amazon Resource Name (ARN) of the Permission Set.
     * 
     */
    public Output permissionSetArn() {
        return this.permissionSetArn;
    }

    private ManagedPolicyAttachmentArgs() {}

    private ManagedPolicyAttachmentArgs(ManagedPolicyAttachmentArgs $) {
        this.instanceArn = $.instanceArn;
        this.managedPolicyArn = $.managedPolicyArn;
        this.permissionSetArn = $.permissionSetArn;
    }

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

    public static final class Builder {
        private ManagedPolicyAttachmentArgs $;

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

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

        /**
         * @param instanceArn The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
         * 
         * @return builder
         * 
         */
        public Builder instanceArn(Output instanceArn) {
            $.instanceArn = instanceArn;
            return this;
        }

        /**
         * @param instanceArn The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
         * 
         * @return builder
         * 
         */
        public Builder instanceArn(String instanceArn) {
            return instanceArn(Output.of(instanceArn));
        }

        /**
         * @param managedPolicyArn The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
         * 
         * @return builder
         * 
         */
        public Builder managedPolicyArn(Output managedPolicyArn) {
            $.managedPolicyArn = managedPolicyArn;
            return this;
        }

        /**
         * @param managedPolicyArn The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
         * 
         * @return builder
         * 
         */
        public Builder managedPolicyArn(String managedPolicyArn) {
            return managedPolicyArn(Output.of(managedPolicyArn));
        }

        /**
         * @param permissionSetArn The Amazon Resource Name (ARN) of the Permission Set.
         * 
         * @return builder
         * 
         */
        public Builder permissionSetArn(Output permissionSetArn) {
            $.permissionSetArn = permissionSetArn;
            return this;
        }

        /**
         * @param permissionSetArn The Amazon Resource Name (ARN) of the Permission Set.
         * 
         * @return builder
         * 
         */
        public Builder permissionSetArn(String permissionSetArn) {
            return permissionSetArn(Output.of(permissionSetArn));
        }

        public ManagedPolicyAttachmentArgs build() {
            if ($.instanceArn == null) {
                throw new MissingRequiredPropertyException("ManagedPolicyAttachmentArgs", "instanceArn");
            }
            if ($.managedPolicyArn == null) {
                throw new MissingRequiredPropertyException("ManagedPolicyAttachmentArgs", "managedPolicyArn");
            }
            if ($.permissionSetArn == null) {
                throw new MissingRequiredPropertyException("ManagedPolicyAttachmentArgs", "permissionSetArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy