interface CfnResourcePolicyProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.XRay.CfnResourcePolicyProps |
Java | software.amazon.awscdk.services.xray.CfnResourcePolicyProps |
Python | aws_cdk.aws_xray.CfnResourcePolicyProps |
TypeScript | @aws-cdk/aws-xray » CfnResourcePolicyProps |
Properties for defining a CfnResourcePolicy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as xray from '@aws-cdk/aws-xray';
const cfnResourcePolicyProps: xray.CfnResourcePolicyProps = {
policyDocument: 'policyDocument',
policyName: 'policyName',
// the properties below are optional
bypassPolicyLockoutCheck: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| policy | string | The resource-based policy document, which can be up to 5kb in size. |
| policy | string | The name of the resource-based policy. |
| bypass | boolean | IResolvable | A flag to indicate whether to bypass the resource-based policy lockout safety check. |
policyDocument
Type:
string
The resource-based policy document, which can be up to 5kb in size.
policyName
Type:
string
The name of the resource-based policy.
Must be unique within a specific AWS account.
bypassPolicyLockoutCheck?
Type:
boolean | IResolvable
(optional)
A flag to indicate whether to bypass the resource-based policy lockout safety check.

.NET
Java
Python
TypeScript