AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateClientVpnEndpointInput

import "github.com/aws/aws-sdk-go/service/ec2"

type CreateClientVpnEndpointInput struct { AuthenticationOptions []*ClientVpnAuthenticationRequest `locationName:"Authentication" type:"list" required:"true"` ClientCidrBlock *string `type:"string" required:"true"` ClientToken *string `type:"string" idempotencyToken:"true"` ConnectionLogOptions *ConnectionLogOptions `type:"structure" required:"true"` Description *string `type:"string"` DnsServers []*string `locationNameList:"item" type:"list"` DryRun *bool `type:"boolean"` ServerCertificateArn *string `type:"string" required:"true"` TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"` TransportProtocol *string `type:"string" enum:"TransportProtocol"` }

AuthenticationOptions

Describes the authentication method to be used by a Client VPN endpoint. Client VPN supports Active Directory and mutual authentication. For more information, see Authentication (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/authentication-authrization.html#client-authentication) in the AWS Client VPN Administrator Guide.

ClientCidrBlock

Type: *string

The IPv4 address range, in CIDR notation, from which to assign client IP addresses. The address range cannot overlap with the local CIDR of the VPC in which the associated subnet is located, or the routes that you add manually. The address range cannot be changed after the Client VPN endpoint has been created. The CIDR block should be /22 or greater.

ClientCidrBlock is a required field

ClientToken

Type: *string

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).

ConnectionLogOptions

Describes the client connection logging options for the Client VPN endpoint.

Description

Type: *string

A brief description of the Client VPN endpoint.

DnsServers

Type: []*string

Information about the DNS servers to be used for DNS resolution. A Client VPN endpoint can have up to two DNS servers. If no DNS server is specified, the DNS address of the VPC that is to be associated with Client VPN endpoint is used as the DNS server.

DryRun

Type: *bool

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

ServerCertificateArn

Type: *string

The ARN of the server certificate. For more information, see the AWS Certificate Manager User Guide (https://docs.aws.amazon.com/acm/latest/userguide/).

ServerCertificateArn is a required field

TagSpecifications

The tags to apply to a resource when the resource is being created.

TransportProtocol

Type: *string

The transport protocol to be used by the VPN session.

Default value: udp

Method

GoString

func (s CreateClientVpnEndpointInput) GoString() string

GoString returns the string representation

SetAuthenticationOptions

func (s *CreateClientVpnEndpointInput) SetAuthenticationOptions(v []*ClientVpnAuthenticationRequest) *CreateClientVpnEndpointInput

SetAuthenticationOptions sets the AuthenticationOptions field's value.

SetClientCidrBlock

func (s *CreateClientVpnEndpointInput) SetClientCidrBlock(v string) *CreateClientVpnEndpointInput

SetClientCidrBlock sets the ClientCidrBlock field's value.

SetClientToken

func (s *CreateClientVpnEndpointInput) SetClientToken(v string) *CreateClientVpnEndpointInput

SetClientToken sets the ClientToken field's value.

SetConnectionLogOptions

func (s *CreateClientVpnEndpointInput) SetConnectionLogOptions(v *ConnectionLogOptions) *CreateClientVpnEndpointInput

SetConnectionLogOptions sets the ConnectionLogOptions field's value.

SetDescription

func (s *CreateClientVpnEndpointInput) SetDescription(v string) *CreateClientVpnEndpointInput

SetDescription sets the Description field's value.

SetDnsServers

func (s *CreateClientVpnEndpointInput) SetDnsServers(v []*string) *CreateClientVpnEndpointInput

SetDnsServers sets the DnsServers field's value.

SetDryRun

func (s *CreateClientVpnEndpointInput) SetDryRun(v bool) *CreateClientVpnEndpointInput

SetDryRun sets the DryRun field's value.

SetServerCertificateArn

func (s *CreateClientVpnEndpointInput) SetServerCertificateArn(v string) *CreateClientVpnEndpointInput

SetServerCertificateArn sets the ServerCertificateArn field's value.

SetTagSpecifications

func (s *CreateClientVpnEndpointInput) SetTagSpecifications(v []*TagSpecification) *CreateClientVpnEndpointInput

SetTagSpecifications sets the TagSpecifications field's value.

SetTransportProtocol

func (s *CreateClientVpnEndpointInput) SetTransportProtocol(v string) *CreateClientVpnEndpointInput

SetTransportProtocol sets the TransportProtocol field's value.

String

func (s CreateClientVpnEndpointInput) String() string

String returns the string representation

Validate

func (s *CreateClientVpnEndpointInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: