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(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- 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
- See Also:
-
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
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPolicyPrincipalAttachment>
- Returns:
- a newly built instance of
CfnPolicyPrincipalAttachment
.
-