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.

CreateVpcEndpointInput

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

type CreateVpcEndpointInput struct { ClientToken *string `type:"string"` DryRun *bool `type:"boolean"` PolicyDocument *string `type:"string"` PrivateDnsEnabled *bool `type:"boolean"` RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"` SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"` ServiceName *string `type:"string" required:"true"` SubnetIds []*string `locationName:"SubnetId" locationNameList:"item" type:"list"` VpcEndpointType *string `type:"string" enum:"VpcEndpointType"` VpcId *string `type:"string" required:"true"` }

Contains the parameters for CreateVpcEndpoint.

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/APIReference/Run_Instance_Idempotency.html).

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.

PolicyDocument

Type: *string

A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format. If this parameter is not specified, we attach a default policy that allows full access to the service.

PrivateDnsEnabled

Type: *bool

(Interface endpoint) Indicate whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the region (for example, kinesis.us-east-1.amazonaws.com) which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.

To use a private hosted zone, you must set the following VPC attributes to true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to set the VPC attributes.

Default: false

RouteTableIds

Type: []*string

(Gateway endpoint) One or more route table IDs.

SecurityGroupIds

Type: []*string

(Interface endpoint) The ID of one or more security groups to associate with the endpoint network interface.

ServiceName

Type: *string

The service name. To get a list of available services, use the DescribeVpcEndpointServices request, or get the name from the service provider.

ServiceName is a required field

SubnetIds

Type: []*string

(Interface endpoint) The ID of one or more subnets in which to create an endpoint network interface.

VpcEndpointType

Type: *string

The type of endpoint.

Default: Gateway

VpcId

Type: *string

The ID of the VPC in which the endpoint will be used.

VpcId is a required field

Method

GoString

func (s CreateVpcEndpointInput) GoString() string

GoString returns the string representation

SetClientToken

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

SetClientToken sets the ClientToken field's value.

SetDryRun

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

SetDryRun sets the DryRun field's value.

SetPolicyDocument

func (s *CreateVpcEndpointInput) SetPolicyDocument(v string) *CreateVpcEndpointInput

SetPolicyDocument sets the PolicyDocument field's value.

SetPrivateDnsEnabled

func (s *CreateVpcEndpointInput) SetPrivateDnsEnabled(v bool) *CreateVpcEndpointInput

SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.

SetRouteTableIds

func (s *CreateVpcEndpointInput) SetRouteTableIds(v []*string) *CreateVpcEndpointInput

SetRouteTableIds sets the RouteTableIds field's value.

SetSecurityGroupIds

func (s *CreateVpcEndpointInput) SetSecurityGroupIds(v []*string) *CreateVpcEndpointInput

SetSecurityGroupIds sets the SecurityGroupIds field's value.

SetServiceName

func (s *CreateVpcEndpointInput) SetServiceName(v string) *CreateVpcEndpointInput

SetServiceName sets the ServiceName field's value.

SetSubnetIds

func (s *CreateVpcEndpointInput) SetSubnetIds(v []*string) *CreateVpcEndpointInput

SetSubnetIds sets the SubnetIds field's value.

SetVpcEndpointType

func (s *CreateVpcEndpointInput) SetVpcEndpointType(v string) *CreateVpcEndpointInput

SetVpcEndpointType sets the VpcEndpointType field's value.

SetVpcId

func (s *CreateVpcEndpointInput) SetVpcId(v string) *CreateVpcEndpointInput

SetVpcId sets the VpcId field's value.

String

func (s CreateVpcEndpointInput) String() string

String returns the string representation

Validate

func (s *CreateVpcEndpointInput) Validate() error

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

On this page: