CfnPermissionAssociationProps

class aws_cdk.aws_ram.CfnPermissionAssociationProps(*, permission_arn, resource_share_arn, replace=None)

Bases: object

Properties 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. Use true to replace the current permission. Use false to add the permission when no permission is currently associated. The default value is false. Updating an existing association also requires true, because AWS RAM applies the change by re-associating the permission. Default: - false

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-permissionassociation.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-permissionassociation.html#cfn-ram-permissionassociation-permissionarn

replace

Specifies whether to replace the existing permission on the resource share.

Use true to replace the current permission. Use false to add the permission when no permission is currently associated. The default value is false. Updating an existing association also requires true, because AWS RAM applies the change by re-associating the permission.

Default:
  • false

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-permissionassociation.html#cfn-ram-permissionassociation-replace

resource_share_arn

Specifies the Amazon Resource Name (ARN) of the resource share.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-permissionassociation.html#cfn-ram-permissionassociation-resourcesharearn