Class CfnResourcePolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.xray.CfnResourcePolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyMixinProps>
- Enclosing interface:
CfnResourcePolicyMixinProps
@Stability(Stable)
public static final class CfnResourcePolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyMixinProps>
A builder for
CfnResourcePolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.bypassPolicyLockoutCheck(Boolean bypassPolicyLockoutCheck) Sets the value ofCfnResourcePolicyMixinProps.getBypassPolicyLockoutCheck()bypassPolicyLockoutCheck(IResolvable bypassPolicyLockoutCheck) Sets the value ofCfnResourcePolicyMixinProps.getBypassPolicyLockoutCheck()policyDocument(String policyDocument) Sets the value ofCfnResourcePolicyMixinProps.getPolicyDocument()policyName(String policyName) Sets the value ofCfnResourcePolicyMixinProps.getPolicyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bypassPolicyLockoutCheck
@Stability(Stable) public CfnResourcePolicyMixinProps.Builder bypassPolicyLockoutCheck(Boolean bypassPolicyLockoutCheck) Sets the value ofCfnResourcePolicyMixinProps.getBypassPolicyLockoutCheck()- Parameters:
bypassPolicyLockoutCheck- A flag to indicate whether to bypass the resource-based policy lockout safety check.- Returns:
this
-
bypassPolicyLockoutCheck
@Stability(Stable) public CfnResourcePolicyMixinProps.Builder bypassPolicyLockoutCheck(IResolvable bypassPolicyLockoutCheck) Sets the value ofCfnResourcePolicyMixinProps.getBypassPolicyLockoutCheck()- Parameters:
bypassPolicyLockoutCheck- A flag to indicate whether to bypass the resource-based policy lockout safety check.- Returns:
this
-
policyDocument
Sets the value ofCfnResourcePolicyMixinProps.getPolicyDocument()- Parameters:
policyDocument- The resource-based policy document, which can be up to 5kb in size.- Returns:
this
-
policyName
Sets the value ofCfnResourcePolicyMixinProps.getPolicyName()- Parameters:
policyName- The name of the resource-based policy. Must be unique within a specific AWS account.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyMixinProps>- Returns:
- a new instance of
CfnResourcePolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-