Skip to content
v2.275.0

CfnThingPrincipalAttachmentProps Struct ​

Properties for defining a CfnThingPrincipalAttachment.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const cfnThingPrincipalAttachmentProps: iot.CfnThingPrincipalAttachmentProps = {
  principal: 'principal',
  thingName: 'thingName',

  // the properties below are optional
  thingPrincipalType: 'thingPrincipalType',
};

Properties ​

principalstringprincipalstrprincipalStringPrincipalstringPrincipal*stringrequired#
The principal, which can be a certificate ARN (as returned from the `CreateCertificate` operation) or an Amazon Cognito ID.
thingNamestringthing_namestrthingNameStringThingNamestringThingName*stringrequired#
The name of the AWS IoT thing.
thingPrincipalTypeoptionalstringthing_principal_typeoptionalstrthingPrincipalTypeoptionalStringThingPrincipalTypeoptionalstringThingPrincipalTypeoptional*string#
The type of the relation you want to specify when you attach a principal to a thing.