Class CfnSecurityPolicy.Builder

java.lang.Object
software.amazon.awscdk.services.opensearchserverless.CfnSecurityPolicy.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityPolicy>
Enclosing class:
CfnSecurityPolicy

@Stability(Stable) public static final class CfnSecurityPolicy.Builder extends Object implements software.amazon.jsii.Builder<CfnSecurityPolicy>
A fluent builder for CfnSecurityPolicy.
  • Method Details

    • create

      @Stability(Stable) public static CfnSecurityPolicy.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnSecurityPolicy.Builder.
    • name

      @Stability(Stable) public CfnSecurityPolicy.Builder name(String name)
      The name of the policy.

      Parameters:
      name - The name of the policy. This parameter is required.
      Returns:
      this
    • policy

      @Stability(Stable) public CfnSecurityPolicy.Builder policy(String policy)
      The JSON policy document without any whitespaces.

      Parameters:
      policy - The JSON policy document without any whitespaces. This parameter is required.
      Returns:
      this
    • type

      @Stability(Stable) public CfnSecurityPolicy.Builder type(String type)
      The type of security policy.

      Can be either encryption or network .

      Parameters:
      type - The type of security policy. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnSecurityPolicy.Builder description(String description)
      The description of the security policy.

      Parameters:
      description - The description of the security policy. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnSecurityPolicy build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnSecurityPolicy>
      Returns:
      a newly built instance of CfnSecurityPolicy.