interface CfnResourcePolicyMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudTrail.Mixins.CfnResourcePolicyMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudtrail/mixins#CfnResourcePolicyMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.cloudtrail.mixins.CfnResourcePolicyMixinProps |
Python | aws_cdk.mixins_preview.aws_cloudtrail.mixins.CfnResourcePolicyMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_cloudtrail » mixins » CfnResourcePolicyMixinProps |
Properties for CfnResourcePolicyPropsMixin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudtrail_mixins } from '@aws-cdk/mixins-preview/aws-cloudtrail';
declare const resourcePolicy: any;
const cfnResourcePolicyMixinProps: cloudtrail_mixins.CfnResourcePolicyMixinProps = {
resourceArn: 'resourceArn',
resourcePolicy: resourcePolicy,
};
Properties
| Name | Type | Description |
|---|---|---|
| resource | string | The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel attached to the resource-based policy. |
| resource | any | A JSON-formatted string for an AWS resource-based policy. |
resourceArn?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel attached to the resource-based policy.
Example event data store ARN format: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
Example dashboard ARN format: arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash
Example channel ARN format: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890
resourcePolicy?
Type:
any
(optional)
A JSON-formatted string for an AWS resource-based policy.
For example resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide .

.NET
Go
Java
Python
TypeScript