Class CfnVpcEndpoint.Builder

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

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

    • create

      @Stability(Stable) public static CfnVpcEndpoint.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 CfnVpcEndpoint.Builder.
    • name

      @Stability(Stable) public CfnVpcEndpoint.Builder name(String name)
      The name of the endpoint.

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

      @Stability(Stable) public CfnVpcEndpoint.Builder subnetIds(List<String> subnetIds)
      The ID of the subnets from which you access OpenSearch Serverless.

      Parameters:
      subnetIds - The ID of the subnets from which you access OpenSearch Serverless. This parameter is required.
      Returns:
      this
    • vpcId

      @Stability(Stable) public CfnVpcEndpoint.Builder vpcId(String vpcId)
      The ID of the VPC from which you access OpenSearch Serverless.

      Parameters:
      vpcId - The ID of the VPC from which you access OpenSearch Serverless. This parameter is required.
      Returns:
      this
    • securityGroupIds

      @Stability(Stable) public CfnVpcEndpoint.Builder securityGroupIds(List<String> securityGroupIds)
      The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.

      Parameters:
      securityGroupIds - The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. This parameter is required.
      Returns:
      this
    • build

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