Class CfnThingPrincipalAttachment.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnThingPrincipalAttachment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnThingPrincipalAttachment>
- Enclosing class:
- CfnThingPrincipalAttachment
@Stability(Stable)
public static final class CfnThingPrincipalAttachment.Builder
extends Object
implements software.amazon.jsii.Builder<CfnThingPrincipalAttachment>
A fluent builder for
CfnThingPrincipalAttachment
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The principal, which can be a certificate ARN (as returned from theCreateCertificate
operation) or an Amazon Cognito ID.The name of the AWS IoT thing.
-
Method Details
-
create
@Stability(Stable) public static CfnThingPrincipalAttachment.Builder create(Construct scope, String id) - Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnThingPrincipalAttachment.Builder
.
-
principal
The principal, which can be a certificate ARN (as returned from theCreateCertificate
operation) or an Amazon Cognito ID.- Parameters:
principal
- The principal, which can be a certificate ARN (as returned from theCreateCertificate
operation) or an Amazon Cognito ID. This parameter is required.- Returns:
this
-
thingName
The name of the AWS IoT thing.- Parameters:
thingName
- The name of the AWS IoT thing. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnThingPrincipalAttachment>
- Returns:
- a newly built instance of
CfnThingPrincipalAttachment
.
-