Class CfnPrincipalAssociation.Builder
java.lang.Object
software.amazon.awscdk.services.ram.CfnPrincipalAssociation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrincipalAssociation>
- Enclosing class:
CfnPrincipalAssociation
@Stability(Stable)
public static final class CfnPrincipalAssociation.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrincipalAssociation>
A fluent builder for
CfnPrincipalAssociation.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Specifies the principal to associate with the resource share.resourceShareArn(String resourceShareArn) Specifies the Amazon Resource Name (ARN) of the resource share.
-
Method Details
-
create
@Stability(Stable) public static CfnPrincipalAssociation.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnPrincipalAssociation.Builder.
-
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
- Parameters:
principal- Specifies the principal to associate with the resource share. The possible values are:. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrincipalAssociation>- Returns:
- a newly built instance of
CfnPrincipalAssociation.
-