CfnResourcePolicyMixinProps

class aws_cdk.mixins_preview.aws_ssm.mixins.CfnResourcePolicyMixinProps(*, policy=None, resource_arn=None)

Bases: object

Properties for CfnResourcePolicyPropsMixin.

Parameters:
  • policy (Any) – A policy you want to associate with a resource.

  • resource_arn (Optional[str]) – The Amazon Resource Name (ARN) of the resource to which you want to attach a policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-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_ssm import mixins as ssm_mixins

# policy: Any

cfn_resource_policy_mixin_props = ssm_mixins.CfnResourcePolicyMixinProps(
    policy=policy,
    resource_arn="resourceArn"
)

Attributes

policy

A policy you want to associate with a resource.

See:

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

resource_arn

The Amazon Resource Name (ARN) of the resource to which you want to attach a policy.

See:

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