Class CfnRole.PolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iam.CfnRole.PolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRole.PolicyProperty>
- Enclosing interface:
CfnRole.PolicyProperty
@Stability(Stable)
public static final class CfnRole.PolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRole.PolicyProperty>
A builder for
CfnRole.PolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyDocument
(Object policyDocument) Sets the value ofCfnRole.PolicyProperty.getPolicyDocument()
policyName
(String policyName) Sets the value ofCfnRole.PolicyProperty.getPolicyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnRole.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 ofCfnRole.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<CfnRole.PolicyProperty>
- Returns:
- a new instance of
CfnRole.PolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-