Skip to content
v2.273.0

CfnPermissionAssociationProps Struct Added in v2.273.0 ​

Properties for defining a CfnPermissionAssociation.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ram as ram } from 'aws-cdk-lib';
const cfnPermissionAssociationProps: ram.CfnPermissionAssociationProps = {
  permissionArn: 'permissionArn',
  resourceShareArn: 'resourceShareArn',

  // the properties below are optional
  replace: false,
};

Properties ​

permissionArnstringpermission_arnstrpermissionArnStringPermissionArnstringPermissionArn*stringrequired#
Specifies the [Amazon Resource Name (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the AWS RAM permission to associate with the resource share.
replaceboolean | IResolvablereplacetyping.Union[bool, IResolvable]replaceBooleanReplaceboolReplaceinterface{}= false#
Specifies whether to replace the existing permission on the resource share.
notes

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.

resourceShareArnstringresource_share_arnstrresourceShareArnStringResourceShareArnstringResourceShareArn*stringrequired#
Specifies the [Amazon Resource Name (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the resource share.

Used as props by ​