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

com.pulumi.aws.ram.PrincipalAssociationArgs 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.ram;

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 PrincipalAssociationArgs extends com.pulumi.resources.ResourceArgs {

    public static final PrincipalAssociationArgs Empty = new PrincipalAssociationArgs();

    /**
     * The principal to associate with the resource share. Possible values are an AWS account ID, an AWS Organizations Organization ARN, or an AWS Organizations Organization Unit ARN.
     * 
     */
    @Import(name="principal", required=true)
    private Output principal;

    /**
     * @return The principal to associate with the resource share. Possible values are an AWS account ID, an AWS Organizations Organization ARN, or an AWS Organizations Organization Unit ARN.
     * 
     */
    public Output principal() {
        return this.principal;
    }

    /**
     * The Amazon Resource Name (ARN) of the resource share.
     * 
     */
    @Import(name="resourceShareArn", required=true)
    private Output resourceShareArn;

    /**
     * @return The Amazon Resource Name (ARN) of the resource share.
     * 
     */
    public Output resourceShareArn() {
        return this.resourceShareArn;
    }

    private PrincipalAssociationArgs() {}

    private PrincipalAssociationArgs(PrincipalAssociationArgs $) {
        this.principal = $.principal;
        this.resourceShareArn = $.resourceShareArn;
    }

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

    public static final class Builder {
        private PrincipalAssociationArgs $;

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

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

        /**
         * @param principal The principal to associate with the resource share. Possible values are an AWS account ID, an AWS Organizations Organization ARN, or an AWS Organizations Organization Unit ARN.
         * 
         * @return builder
         * 
         */
        public Builder principal(Output principal) {
            $.principal = principal;
            return this;
        }

        /**
         * @param principal The principal to associate with the resource share. Possible values are an AWS account ID, an AWS Organizations Organization ARN, or an AWS Organizations Organization Unit ARN.
         * 
         * @return builder
         * 
         */
        public Builder principal(String principal) {
            return principal(Output.of(principal));
        }

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

        /**
         * @param resourceShareArn The Amazon Resource Name (ARN) of the resource share.
         * 
         * @return builder
         * 
         */
        public Builder resourceShareArn(String resourceShareArn) {
            return resourceShareArn(Output.of(resourceShareArn));
        }

        public PrincipalAssociationArgs build() {
            if ($.principal == null) {
                throw new MissingRequiredPropertyException("PrincipalAssociationArgs", "principal");
            }
            if ($.resourceShareArn == null) {
                throw new MissingRequiredPropertyException("PrincipalAssociationArgs", "resourceShareArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy