Skip to content
v2.278.0

ClientVpnEndpointAttributes Struct ​

Attributes when importing an existing client VPN endpoint.

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 clientVpnEndpointAttributes: ec2.ClientVpnEndpointAttributes = {
  endpointId: 'endpointId',
  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

client_vpn_endpoint_attributes = ec2.ClientVpnEndpointAttributes(
    endpoint_id="endpointId",
    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;

ClientVpnEndpointAttributes clientVpnEndpointAttributes = ClientVpnEndpointAttributes.builder()
        .endpointId("endpointId")
        .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 clientVpnEndpointAttributes = new ClientVpnEndpointAttributes {
    EndpointId = "endpointId",
    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

clientVpnEndpointAttributes := &ClientVpnEndpointAttributes{
	EndpointId: jsii.String("endpointId"),
	SecurityGroups: []ISecurityGroup{
		securityGroup,
	},
}

Properties ​

endpointIdstringendpoint_idstrendpointIdStringEndpointIdstringEndpointId*string required #
The endpoint ID.
securityGroupsISecurityGroup[]security_groupstyping.List[ISecurityGroup]securityGroupsList<ISecurityGroup>SecurityGroupsISecurityGroup[]SecurityGroups*[]ISecurityGroup required #
The security groups associated with the endpoint.