Class CfnResourcePolicy.Builder
java.lang.Object
software.amazon.awscdk.services.xray.CfnResourcePolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicy>
- Enclosing class:
- CfnResourcePolicy
@Stability(Stable)
public static final class CfnResourcePolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicy>
A fluent builder for
CfnResourcePolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
bypassPolicyLockoutCheck
(Boolean bypassPolicyLockoutCheck) A flag to indicate whether to bypass the resource-based policy lockout safety check.bypassPolicyLockoutCheck
(IResolvable bypassPolicyLockoutCheck) A flag to indicate whether to bypass the resource-based policy lockout safety check.static CfnResourcePolicy.Builder
policyDocument
(String policyDocument) The resource-based policy document, which can be up to 5kb in size.policyName
(String policyName) The name of the resource-based policy.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnResourcePolicy.Builder
.
-
policyDocument
The resource-based policy document, which can be up to 5kb in size.- Parameters:
policyDocument
- The resource-based policy document, which can be up to 5kb in size. This parameter is required.- Returns:
this
-
policyName
The name of the resource-based policy.Must be unique within a specific AWS account.
- Parameters:
policyName
- The name of the resource-based policy. This parameter is required.- Returns:
this
-
bypassPolicyLockoutCheck
@Stability(Stable) public CfnResourcePolicy.Builder bypassPolicyLockoutCheck(Boolean bypassPolicyLockoutCheck) A flag to indicate whether to bypass the resource-based policy lockout safety check.- Parameters:
bypassPolicyLockoutCheck
- A flag to indicate whether to bypass the resource-based policy lockout safety check. This parameter is required.- Returns:
this
-
bypassPolicyLockoutCheck
@Stability(Stable) public CfnResourcePolicy.Builder bypassPolicyLockoutCheck(IResolvable bypassPolicyLockoutCheck) A flag to indicate whether to bypass the resource-based policy lockout safety check.- Parameters:
bypassPolicyLockoutCheck
- A flag to indicate whether to bypass the resource-based policy lockout safety check. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourcePolicy>
- Returns:
- a newly built instance of
CfnResourcePolicy
.
-