CfnVpcEndpointProps Struct
Properties for defining a CfnVpcEndpoint.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearchserverless as opensearchserverless } from 'aws-cdk-lib';
const cfnVpcEndpointProps: opensearchserverless.CfnVpcEndpointProps = {
name: 'name',
subnetIds: ['subnetIds'],
vpcId: 'vpcId',
// the properties below are optional
securityGroupIds: ['securityGroupIds'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opensearchserverless as opensearchserverless
cfn_vpc_endpoint_props = opensearchserverless.CfnVpcEndpointProps(
name="name",
subnet_ids=["subnetIds"],
vpc_id="vpcId",
# the properties below are optional
security_group_ids=["securityGroupIds"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opensearchserverless.*;
CfnVpcEndpointProps cfnVpcEndpointProps = CfnVpcEndpointProps.builder()
.name("name")
.subnetIds(List.of("subnetIds"))
.vpcId("vpcId")
// the properties below are optional
.securityGroupIds(List.of("securityGroupIds"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpenSearchServerless;
var cfnVpcEndpointProps = new CfnVpcEndpointProps {
Name = "name",
SubnetIds = new [] { "subnetIds" },
VpcId = "vpcId",
// the properties below are optional
SecurityGroupIds = new [] { "securityGroupIds" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnVpcEndpointProps := &CfnVpcEndpointProps{
Name: jsii.String("name"),
SubnetIds: []*string{
jsii.String("subnetIds"),
},
VpcId: jsii.String("vpcId"),
// the properties below are optional
SecurityGroupIds: []interface{}{
jsii.String("securityGroupIds"),
},
}
Properties
The name of the endpoint.
securityGroupIdsoptionalstring | ISecurityGroupRef[]security_group_idsoptionaltyping.List[typing.Union[str, ISecurityGroupRef]]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]interface{} #The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
subnetIdsstring[]subnet_idstyping.List[str]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]*string required #The ID of the subnets from which you access OpenSearch Serverless.
The ID of the VPC from which you access OpenSearch Serverless.