Skip to content
v2.278.0

InterfaceVpcEndpointAttributes Struct ​

Construction properties for an ImportedInterfaceVpcEndpoint.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';

declare const securityGroup: ec2.SecurityGroup;
const interfaceVpcEndpointAttributes: ec2.InterfaceVpcEndpointAttributes = {
  port: 123,
  vpcEndpointId: 'vpcEndpointId',

  // the properties below are optional
  securityGroups: [securityGroup],
};
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_ec2 as ec2

# security_group: ec2.SecurityGroup

interface_vpc_endpoint_attributes = ec2.InterfaceVpcEndpointAttributes(
    port=123,
    vpc_endpoint_id="vpcEndpointId",

    # the properties below are optional
    security_groups=[security_group]
)
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.ec2.*;

SecurityGroup securityGroup;

InterfaceVpcEndpointAttributes interfaceVpcEndpointAttributes = InterfaceVpcEndpointAttributes.builder()
        .port(123)
        .vpcEndpointId("vpcEndpointId")

        // the properties below are optional
        .securityGroups(List.of(securityGroup))
        .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.EC2;

SecurityGroup securityGroup;

var interfaceVpcEndpointAttributes = new InterfaceVpcEndpointAttributes {
    Port = 123,
    VpcEndpointId = "vpcEndpointId",

    // the properties below are optional
    SecurityGroups = new [] { securityGroup }
};
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"

var securityGroup SecurityGroup

interfaceVpcEndpointAttributes := &InterfaceVpcEndpointAttributes{
	Port: jsii.Number(123),
	VpcEndpointId: jsii.String("vpcEndpointId"),

	// the properties below are optional
	SecurityGroups: []ISecurityGroup{
		securityGroup,
	},
}

Properties ​

portnumberportint | floatportNumberPortdoublePort*float64 required #
The port of the service of the interface VPC endpoint.
securityGroupsoptionalISecurityGroup[]security_groupsoptionaltyping.List[ISecurityGroup]securityGroupsoptionalList<ISecurityGroup>SecurityGroupsoptionalISecurityGroup[]SecurityGroupsoptional*[]ISecurityGroup #
The security groups associated with the interface VPC endpoint.

If you wish to manage the network connections associated with this endpoint, you will need to specify its security groups.

vpcEndpointIdstringvpc_endpoint_idstrvpcEndpointIdStringVpcEndpointIdstringVpcEndpointId*string required #
The interface VPC endpoint identifier.