aws-cdk-lib.aws_logs.CfnResourcePolicyProps

interface CfnResourcePolicyProps

LanguageType name
.NETAmazon.CDK.AWS.Logs.CfnResourcePolicyProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslogs#CfnResourcePolicyProps
Javasoftware.amazon.awscdk.services.logs.CfnResourcePolicyProps
Pythonaws_cdk.aws_logs.CfnResourcePolicyProps
TypeScript aws-cdk-lib » aws_logs » 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 { aws_logs as logs } from 'aws-cdk-lib';
const cfnResourcePolicyProps: logs.CfnResourcePolicyProps = {
  policyDocument: 'policyDocument',
  policyName: 'policyName',
};

Properties

NameTypeDescription
policyDocumentstringThe details of the policy.
policyNamestringThe 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.