Class CfnPermissionAssociation.Builder
java.lang.Object
software.amazon.awscdk.services.ram.CfnPermissionAssociation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPermissionAssociation>
- Enclosing class:
CfnPermissionAssociation
@Stability(Stable)
public static final class CfnPermissionAssociation.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPermissionAssociation>
A fluent builder for
CfnPermissionAssociation.-
Method Summary
Modifier and TypeMethodDescriptionbuild()permissionArn(String permissionArn) Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.Specifies whether to replace the existing permission on the resource share.replace(IResolvable replace) Specifies whether to replace the existing permission on the resource share.resourceShareArn(String resourceShareArn) Specifies the Amazon Resource Name (ARN) of the resource share.
-
Method Details
-
create
@Stability(Stable) public static CfnPermissionAssociation.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
CfnPermissionAssociation.Builder.
-
permissionArn
Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.- Parameters:
permissionArn- Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share. This parameter is required.- Returns:
this- See Also:
-
replace
Specifies whether to replace the existing permission on the resource share.Use
trueto replace the current permission. Usefalseto add the permission when no permission is currently associated. The default value isfalse. Updating an existing association also requirestrue, because AWS RAM applies the change by re-associating the permission.Default: - false
- Parameters:
replace- Specifies whether to replace the existing permission on the resource share. This parameter is required.- Returns:
this- See Also:
-
replace
Specifies whether to replace the existing permission on the resource share.Use
trueto replace the current permission. Usefalseto add the permission when no permission is currently associated. The default value isfalse. Updating an existing association also requirestrue, because AWS RAM applies the change by re-associating the permission.Default: - false
- Parameters:
replace- Specifies whether to replace the existing permission on the resource share. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPermissionAssociation>- Returns:
- a newly built instance of
CfnPermissionAssociation.
-