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.

CreateRouteInput

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

type CreateRouteInput struct { DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"` DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"` DryRun *bool `locationName:"dryRun" type:"boolean"` EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"` GatewayId *string `locationName:"gatewayId" type:"string"` InstanceId *string `locationName:"instanceId" type:"string"` NatGatewayId *string `locationName:"natGatewayId" type:"string"` NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"` TransitGatewayId *string `type:"string"` VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` }

DestinationCidrBlock

Type: *string

The IPv4 CIDR address block used for the destination match. Routing decisions are based on the most specific match.

DestinationIpv6CidrBlock

Type: *string

The IPv6 CIDR block used for the destination match. Routing decisions are based on the most specific match.

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.

EgressOnlyInternetGatewayId

Type: *string

[IPv6 traffic only] The ID of an egress-only internet gateway.

GatewayId

Type: *string

The ID of an internet gateway or virtual private gateway attached to your VPC.

InstanceId

Type: *string

The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.

NatGatewayId

Type: *string

[IPv4 traffic only] The ID of a NAT gateway.

NetworkInterfaceId

Type: *string

The ID of a network interface.

RouteTableId

Type: *string

The ID of the route table for the route.

RouteTableId is a required field

TransitGatewayId

Type: *string

The ID of a transit gateway.

VpcPeeringConnectionId

Type: *string

The ID of a VPC peering connection.

Method

GoString

func (s CreateRouteInput) GoString() string

GoString returns the string representation

SetDestinationCidrBlock

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

SetDestinationCidrBlock sets the DestinationCidrBlock field's value.

SetDestinationIpv6CidrBlock

func (s *CreateRouteInput) SetDestinationIpv6CidrBlock(v string) *CreateRouteInput

SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.

SetDryRun

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

SetDryRun sets the DryRun field's value.

SetEgressOnlyInternetGatewayId

func (s *CreateRouteInput) SetEgressOnlyInternetGatewayId(v string) *CreateRouteInput

SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.

SetGatewayId

func (s *CreateRouteInput) SetGatewayId(v string) *CreateRouteInput

SetGatewayId sets the GatewayId field's value.

SetInstanceId

func (s *CreateRouteInput) SetInstanceId(v string) *CreateRouteInput

SetInstanceId sets the InstanceId field's value.

SetNatGatewayId

func (s *CreateRouteInput) SetNatGatewayId(v string) *CreateRouteInput

SetNatGatewayId sets the NatGatewayId field's value.

SetNetworkInterfaceId

func (s *CreateRouteInput) SetNetworkInterfaceId(v string) *CreateRouteInput

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

SetRouteTableId

func (s *CreateRouteInput) SetRouteTableId(v string) *CreateRouteInput

SetRouteTableId sets the RouteTableId field's value.

SetTransitGatewayId

func (s *CreateRouteInput) SetTransitGatewayId(v string) *CreateRouteInput

SetTransitGatewayId sets the TransitGatewayId field's value.

SetVpcPeeringConnectionId

func (s *CreateRouteInput) SetVpcPeeringConnectionId(v string) *CreateRouteInput

SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.

String

func (s CreateRouteInput) String() string

String returns the string representation

Validate

func (s *CreateRouteInput) Validate() error

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

On this page: