Class CfnResourcePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.xray.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.bypassPolicyLockoutCheck
(Boolean bypassPolicyLockoutCheck) Sets the value ofCfnResourcePolicyProps.getBypassPolicyLockoutCheck()
bypassPolicyLockoutCheck
(IResolvable bypassPolicyLockoutCheck) Sets the value ofCfnResourcePolicyProps.getBypassPolicyLockoutCheck()
policyDocument
(String policyDocument) Sets the value ofCfnResourcePolicyProps.getPolicyDocument()
policyName
(String policyName) Sets the value ofCfnResourcePolicyProps.getPolicyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnResourcePolicyProps.getPolicyDocument()
- Parameters:
policyDocument
- The resource-based policy document, which can be up to 5kb in size. This parameter is required.- Returns:
this
-
policyName
Sets the value ofCfnResourcePolicyProps.getPolicyName()
- Parameters:
policyName
- The name of the resource-based policy. This parameter is required. Must be unique within a specific AWS account.- Returns:
this
-
bypassPolicyLockoutCheck
@Stability(Stable) public CfnResourcePolicyProps.Builder bypassPolicyLockoutCheck(Boolean bypassPolicyLockoutCheck) Sets the value ofCfnResourcePolicyProps.getBypassPolicyLockoutCheck()
- Parameters:
bypassPolicyLockoutCheck
- A flag to indicate whether to bypass the resource-based policy lockout safety check.- Returns:
this
-
bypassPolicyLockoutCheck
@Stability(Stable) public CfnResourcePolicyProps.Builder bypassPolicyLockoutCheck(IResolvable bypassPolicyLockoutCheck) Sets the value ofCfnResourcePolicyProps.getBypassPolicyLockoutCheck()
- Parameters:
bypassPolicyLockoutCheck
- A flag to indicate whether to bypass the resource-based policy lockout safety check.- 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
-