CfnPolicyProps

class aws_cdk.aws_iot.CfnPolicyProps(*, policy_document, policy_name=None, tags=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.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) –

See:

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.
from aws_cdk import aws_iot as iot

# policy_document: Any

cfn_policy_props = iot.CfnPolicyProps(
    policy_document=policy_document,

    # the properties below are optional
    policy_name="policyName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

policy_document

The JSON document that describes the policy.

See:

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

policy_name

The policy name.

See:

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

tags

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

Type:

see