Class CfnAccessPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchserverless.CfnAccessPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessPolicy>
- Enclosing class:
CfnAccessPolicy
@Stability(Stable)
public static final class CfnAccessPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessPolicy>
A fluent builder for
CfnAccessPolicy.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnAccessPolicy.Builderdescription(String description) The description of the policy.The name of the policy.The JSON policy document without any whitespaces.The type of access policy.
-
Method Details
-
create
@Stability(Stable) public static CfnAccessPolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnAccessPolicy.Builder.
-
name
The name of the policy.- Parameters:
name- The name of the policy. This parameter is required.- Returns:
this- See Also:
-
policy
The JSON policy document without any whitespaces.- Parameters:
policy- The JSON policy document without any whitespaces. This parameter is required.- Returns:
this- See Also:
-
type
The type of access policy.Currently the only option is
data.- Parameters:
type- The type of access policy. This parameter is required.- Returns:
this- See Also:
-
description
The description of the policy.- Parameters:
description- The description of the policy. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessPolicy>- Returns:
- a newly built instance of
CfnAccessPolicy.
-