interface CfnResourcePolicyProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Logs.CfnResourcePolicyProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslogs#CfnResourcePolicyProps |
Java | software.amazon.awscdk.services.logs.CfnResourcePolicyProps |
Python | aws_cdk.aws_logs.CfnResourcePolicyProps |
TypeScript | aws-cdk-lib » aws_logs » CfnResourcePolicyProps |
Properties for defining a CfnResourcePolicy.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-resourcepolicy.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const cfnResourcePolicyProps: logs.CfnResourcePolicyProps = {
policyDocument: 'policyDocument',
policyName: 'policyName',
};
Properties
| Name | Type | Description |
|---|---|---|
| policy | string | The details of the policy. |
| policy | string | The name of the resource policy. |
policyDocument
Type:
string
The details of the policy.
It must be formatted in JSON, and you must use backslashes to escape characters that need to be escaped in JSON strings, such as double quote marks.
policyName
Type:
string
The name of the resource policy.

.NET
Go
Java
Python
TypeScript