Class CfnUser.PolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iam.CfnUser.PolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUser.PolicyProperty>
- Enclosing interface:
CfnUser.PolicyProperty
@Stability(Stable)
public static final class CfnUser.PolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUser.PolicyProperty>
A builder for
CfnUser.PolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyDocument
(Object policyDocument) Sets the value ofCfnUser.PolicyProperty.getPolicyDocument()
policyName
(String policyName) Sets the value ofCfnUser.PolicyProperty.getPolicyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnUser.PolicyProperty.getPolicyDocument()
- Parameters:
policyDocument
- The entire contents of the policy that defines permissions. This parameter is required. For more information, see Overview of JSON policies .- Returns:
this
-
policyName
Sets the value ofCfnUser.PolicyProperty.getPolicyName()
- Parameters:
policyName
- The friendly name (not ARN) identifying the policy. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUser.PolicyProperty>
- Returns:
- a new instance of
CfnUser.PolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-