Class CfnPermissionAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.ram.CfnPermissionAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPermissionAssociationProps>
- Enclosing interface:
CfnPermissionAssociationProps
@Stability(Stable)
public static final class CfnPermissionAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPermissionAssociationProps>
A builder for
CfnPermissionAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.permissionArn(String permissionArn) Sets the value ofCfnPermissionAssociationProps.getPermissionArn()Sets the value ofCfnPermissionAssociationProps.getReplace()replace(IResolvable replace) Sets the value ofCfnPermissionAssociationProps.getReplace()resourceShareArn(String resourceShareArn) Sets the value ofCfnPermissionAssociationProps.getResourceShareArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
permissionArn
Sets the value ofCfnPermissionAssociationProps.getPermissionArn()- 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
-
replace
Sets the value ofCfnPermissionAssociationProps.getReplace()- Parameters:
replace- Specifies whether to replace the existing permission on the resource share. Usetrueto 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.- Returns:
this
-
replace
Sets the value ofCfnPermissionAssociationProps.getReplace()- Parameters:
replace- Specifies whether to replace the existing permission on the resource share. Usetrueto 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPermissionAssociationProps>- Returns:
- a new instance of
CfnPermissionAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-