CfnPolicyProps

class aws_cdk.aws_iot.CfnPolicyProps(*, policy_document, policy_name=None)

Bases: object

Properties for defining a CfnPolicy.

Parameters:
  • policy_document (Any) – The JSON document that describes the policy.

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

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-policy.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_iot as iot

# policy_document: Any

cfn_policy_props = iot.CfnPolicyProps(
    policy_document=policy_document,

    # the properties below are optional
    policy_name="policyName"
)

Attributes

policy_document

The JSON document that describes the policy.

Link:

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

policy_name

The policy name.

Link:

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