Class CfnPrincipalAssociationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ram.CfnPrincipalAssociationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrincipalAssociationMixinProps>
- Enclosing interface:
CfnPrincipalAssociationMixinProps
@Stability(Stable)
public static final class CfnPrincipalAssociationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrincipalAssociationMixinProps>
A builder for
CfnPrincipalAssociationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPrincipalAssociationMixinProps.getPrincipal()resourceShareArn(String resourceShareArn) Sets the value ofCfnPrincipalAssociationMixinProps.getResourceShareArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
principal
Sets the value ofCfnPrincipalAssociationMixinProps.getPrincipal()- Parameters:
principal- Specifies the principal to associate with the resource share. The possible values are:.- An AWS account ID
- An Amazon Resource Name (ARN) of an organization in AWS Organizations
- An ARN of an organizational unit (OU) in AWS Organizations
- An ARN of an IAM role
- An ARN of an IAM user
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrincipalAssociationMixinProps>- Returns:
- a new instance of
CfnPrincipalAssociationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-