CfnResourcePolicyProps

class aws_cdk.aws_ssm.CfnResourcePolicyProps(*, policy, resource_arn)

Bases: object

Properties for defining a CfnResourcePolicy.

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

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

Link:

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.
import aws_cdk.aws_ssm as ssm

# policy: Any

cfn_resource_policy_props = ssm.CfnResourcePolicyProps(
    policy=policy,
    resource_arn="resourceArn"
)

Attributes

policy

A policy you want to associate with a resource.

Link:

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

resource_arn

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

Link:

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