CfnPermissionAssociationProps
- class aws_cdk.aws_ram.CfnPermissionAssociationProps(*, permission_arn, resource_share_arn, replace=None)
Bases:
objectProperties for defining a
CfnPermissionAssociation.- Parameters:
permission_arn (
str) – Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.resource_share_arn (
str) –Specifies the Amazon Resource Name (ARN) of the resource share.
replace (
Union[bool,IResolvable,None]) – 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. Default: - false
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ram as ram cfn_permission_association_props = ram.CfnPermissionAssociationProps( permission_arn="permissionArn", resource_share_arn="resourceShareArn", # the properties below are optional replace=False )
Attributes
- permission_arn
Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.
- 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.