Class CfnResourcePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.aps.CfnResourcePolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyProps>
- Enclosing interface:
CfnResourcePolicyProps
@Stability(Stable)
public static final class CfnResourcePolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyProps>
A builder for
CfnResourcePolicyProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyDocument
(String policyDocument) Sets the value ofCfnResourcePolicyProps.getPolicyDocument()
workspaceArn
(String workspaceArn) Sets the value ofCfnResourcePolicyProps.getWorkspaceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnResourcePolicyProps.getPolicyDocument()
- Parameters:
policyDocument
- The JSON to use as the Resource-based Policy. This parameter is required.- Returns:
this
-
workspaceArn
Sets the value ofCfnResourcePolicyProps.getWorkspaceArn()
- Parameters:
workspaceArn
- An ARN identifying a Workspace. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyProps>
- Returns:
- a new instance of
CfnResourcePolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-