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 Summary
Modifier and TypeMethodDescriptionbuild()
static CfnVpcEndpoint.Builder
The name of the endpoint.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.The ID of the subnets from which you access OpenSearch Serverless.The ID of the VPC from which you access OpenSearch Serverless.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnVpcEndpoint.Builder
.
-
name
The name of the endpoint.- Parameters:
name
- The name of the endpoint. This parameter is required.- Returns:
this
-
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
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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVpcEndpoint>
- Returns:
- a newly built instance of
CfnVpcEndpoint
.
-