CfnResourcePolicyMixinProps

class aws_cdk.mixins_preview.aws_logs.mixins.CfnResourcePolicyMixinProps(*, policy_document=None, policy_name=None)

Bases: object

Properties for CfnResourcePolicyPropsMixin.

Parameters:
  • policy_document (Optional[str]) – 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.

  • policy_name (Optional[str]) – The name of the resource policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-resourcepolicy.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_logs import mixins as logs_mixins

cfn_resource_policy_mixin_props = logs_mixins.CfnResourcePolicyMixinProps(
    policy_document="policyDocument",
    policy_name="policyName"
)

Attributes

policy_document

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-resourcepolicy.html#cfn-logs-resourcepolicy-policydocument

policy_name

The name of the resource policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-resourcepolicy.html#cfn-logs-resourcepolicy-policyname