Class CfnPrincipalAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ram.CfnPrincipalAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrincipalAssociationProps>
- Enclosing interface:
CfnPrincipalAssociationProps
@Stability(Stable)
public static final class CfnPrincipalAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrincipalAssociationProps>
A builder for
CfnPrincipalAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPrincipalAssociationProps.getPrincipal()resourceShareArn(String resourceShareArn) Sets the value ofCfnPrincipalAssociationProps.getResourceShareArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
principal
Sets the value ofCfnPrincipalAssociationProps.getPrincipal()- Parameters:
principal- Specifies the principal to associate with the resource share. The possible values are:. This parameter is required.- 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<CfnPrincipalAssociationProps>- Returns:
- a new instance of
CfnPrincipalAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-