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.

CreateClientVpnRouteInput

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

type CreateClientVpnRouteInput struct { ClientVpnEndpointId *string `type:"string" required:"true"` Description *string `type:"string"` DestinationCidrBlock *string `type:"string" required:"true"` DryRun *bool `type:"boolean"` TargetVpcSubnetId *string `type:"string" required:"true"` }

ClientVpnEndpointId

Type: *string

The ID of the Client VPN endpoint to which to add the route.

ClientVpnEndpointId is a required field

Description

Type: *string

A brief description of the route.

DestinationCidrBlock

Type: *string

The IPv4 address range, in CIDR notation, of the route destination. For example:

  • To add a route for Internet access, enter 0.0.0.0/0

  • To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range

  • To add a route for an on-premises network, enter the AWS Site-to-Site VPN connection's IPv4 CIDR range

Route address ranges cannot overlap with the CIDR range specified for client allocation.

DestinationCidrBlock is a required field

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.

TargetVpcSubnetId

Type: *string

The ID of the subnet through which you want to route traffic. The specified subnet must be an existing target network of the Client VPN endpoint.

TargetVpcSubnetId is a required field

Method

GoString

func (s CreateClientVpnRouteInput) GoString() string

GoString returns the string representation

SetClientVpnEndpointId

func (s *CreateClientVpnRouteInput) SetClientVpnEndpointId(v string) *CreateClientVpnRouteInput

SetClientVpnEndpointId sets the ClientVpnEndpointId field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetDestinationCidrBlock

func (s *CreateClientVpnRouteInput) SetDestinationCidrBlock(v string) *CreateClientVpnRouteInput

SetDestinationCidrBlock sets the DestinationCidrBlock field's value.

SetDryRun

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

SetDryRun sets the DryRun field's value.

SetTargetVpcSubnetId

func (s *CreateClientVpnRouteInput) SetTargetVpcSubnetId(v string) *CreateClientVpnRouteInput

SetTargetVpcSubnetId sets the TargetVpcSubnetId field's value.

String

func (s CreateClientVpnRouteInput) String() string

String returns the string representation

Validate

func (s *CreateClientVpnRouteInput) Validate() error

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

On this page: