Class CfnPolicyPrincipalAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnPolicyPrincipalAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyPrincipalAttachmentProps>
- Enclosing interface:
CfnPolicyPrincipalAttachmentProps
@Stability(Stable)
public static final class CfnPolicyPrincipalAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyPrincipalAttachmentProps>
A builder for
CfnPolicyPrincipalAttachmentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyName
(String policyName) Sets the value ofCfnPolicyPrincipalAttachmentProps.getPolicyName()
Sets the value ofCfnPolicyPrincipalAttachmentProps.getPrincipal()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyName
Sets the value ofCfnPolicyPrincipalAttachmentProps.getPolicyName()
- Parameters:
policyName
- The name of the AWS IoT policy. This parameter is required.- Returns:
this
-
principal
Sets the value ofCfnPolicyPrincipalAttachmentProps.getPrincipal()
- 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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPolicyPrincipalAttachmentProps>
- Returns:
- a new instance of
CfnPolicyPrincipalAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-