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 theCreateCertificate
operation) or an Amazon Cognito ID.
- Link:
- 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.
- principal
The principal, which can be a certificate ARN (as returned from the
CreateCertificate
operation) or an Amazon Cognito ID.