CfnPolicyPrincipalAttachmentProps

class aws_cdk.aws_iot.CfnPolicyPrincipalAttachmentProps(*, policy_name, principal)

Bases: object

Properties for defining a CfnPolicyPrincipalAttachment.

Parameters
  • policy_name (str) – The name of the AWS IoT policy.

  • principal (str) – The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.

Link

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

cfn_policy_principal_attachment_props = iot.CfnPolicyPrincipalAttachmentProps(
    policy_name="policyName",
    principal="principal"
)

Attributes

policy_name

The name of the AWS IoT policy.

Link

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

Return type

str

principal

The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.

Link

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

Return type

str