AWS::IoT::ThingPrincipalAttachmentUse the `AWS::IoT::ThingPrincipalAttachment` resource to attach a principal (an X.509 certificate or another credential) to a thing. For more information about working with AWS IoT things and principals, see [Authorization](https://docs.aws.amazon.com/iot/latest/developerguide/authorization.html) in the *AWS IoT Developer Guide* .
import { CfnThingPrincipalAttachment } from 'aws-cdk-lib/aws-iot';Or use the module namespace:
import * as iot from 'aws-cdk-lib/aws-iot';
// iot.CfnThingPrincipalAttachmentConfiguration passed to the constructor as CfnThingPrincipalAttachmentProps.
principalRequiredstringThe principal, which can be a certificate ARN (as returned from the `CreateCertificate` operation) or an Amazon Cognito ID.
thingNameRequiredstringThe name of the AWS IoT thing.
thingPrincipalTypeOptionalstringThis L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-iotAWS::IoT::ThingPrincipalAttachment