interface CfnPermissionAssociationProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.RAM.CfnPermissionAssociationProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsram#CfnPermissionAssociationProps |
Java | software.amazon.awscdk.services.ram.CfnPermissionAssociationProps |
Python | aws_cdk.aws_ram.CfnPermissionAssociationProps |
TypeScript | aws-cdk-lib » aws_ram » CfnPermissionAssociationProps |
Properties for defining a CfnPermissionAssociation.
Example
// 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
| Name | Type | Description |
|---|---|---|
| permission | string | Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share. |
| resource | string | Specifies the Amazon Resource Name (ARN) of the resource share. |
| replace? | boolean | IResolvable | Specifies whether to replace the existing permission on the resource share. |
permissionArn
Type:
string
Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.
resourceShareArn
Type:
string
Specifies the Amazon Resource Name (ARN) of the resource share.
replace?
Type:
boolean | IResolvable
(optional, default: false)
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.

.NET
Go
Java
Python
TypeScript