ResourcePolicyProps

class aws_cdk.aws_logs.ResourcePolicyProps(*, policy_statements=None, resource_policy_name=None)

Bases: object

Properties to define Cloudwatch log group resource policy.

Parameters:
  • policy_statements (Optional[Sequence[PolicyStatement]]) – Initial statements to add to the resource policy. Default: - No statements

  • resource_policy_name (Optional[str]) – Name of the log group resource policy. Default: - Uses a unique id based on the construct path

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_iam as iam
import aws_cdk.aws_logs as logs

# policy_statement: iam.PolicyStatement

resource_policy_props = logs.ResourcePolicyProps(
    policy_statements=[policy_statement],
    resource_policy_name="resourcePolicyName"
)

Attributes

policy_statements

Initial statements to add to the resource policy.

Default:
  • No statements

resource_policy_name

Name of the log group resource policy.

Default:
  • Uses a unique id based on the construct path