interface ResourcePolicyProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Logs.ResourcePolicyProps |
Java | software.amazon.awscdk.services.logs.ResourcePolicyProps |
Python | aws_cdk.aws_logs.ResourcePolicyProps |
TypeScript (source) | @aws-cdk/aws-logs » ResourcePolicyProps |
Properties to define Cloudwatch log group resource policy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iam from '@aws-cdk/aws-iam';
import * as logs from '@aws-cdk/aws-logs';
declare const policyStatement: iam.PolicyStatement;
const resourcePolicyProps: logs.ResourcePolicyProps = {
policyStatements: [policyStatement],
resourcePolicyName: 'resourcePolicyName',
};
Properties
Name | Type | Description |
---|---|---|
policy | Policy [] | Initial statements to add to the resource policy. |
resource | string | Name of the log group resource policy. |
policyStatements?
Type:
Policy
[]
(optional, default: No statements)
Initial statements to add to the resource policy.
resourcePolicyName?
Type:
string
(optional, default: Uses a unique id based on the construct path)
Name of the log group resource policy.