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