AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::IoT::ThingPrincipalAttachment

CfnThingPrincipalAttachment

Use 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

import { CfnThingPrincipalAttachment } from 'aws-cdk-lib/aws-iot';

Or use the module namespace:

import * as iot from 'aws-cdk-lib/aws-iot';
// iot.CfnThingPrincipalAttachment

Properties

Configuration passed to the constructor as CfnThingPrincipalAttachmentProps.

principalRequired
string

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

thingNameRequired
string

The name of the AWS IoT thing.

thingPrincipalTypeOptional
string

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter