Resource: awsIotThingPrincipalAttachment
Attaches Principal to AWS IoT Thing.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsIotCertificateCert = new aws.iotCertificate.IotCertificate(
this,
"cert",
{
active: true,
csr: '${file("csr.pem")}',
}
);
const awsIotThingExample = new aws.iotThing.IotThing(this, "example", {
name: "example",
});
new aws.iotThingPrincipalAttachment.IotThingPrincipalAttachment(this, "att", {
principal: awsIotCertificateCert.arn,
thing: awsIotThingExample.name,
});
Argument Reference
principal
- (Required) The AWS IoT Certificate ARN or Amazon Cognito Identity ID.thing
- (Required) The name of the thing.
Attributes Reference
No additional attributes are exported.