vpc

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2019 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ServiceName = "vpc"       // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "vpc"       // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Vpc

type Vpc struct {
	*client.Client
}

Vpc provides the API operation methods for making requests to vpc. See this package's package overview docs for details on the service.

Vpc methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func ExtraNew

func ExtraNew(info *utils.UrlInfo, p client.ConfigProvider, cfgs ...*aws.Config) *Vpc

extraNew create int can support ssl or region locate set

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Vpc

New creates a new instance of the Vpc client with a session. If additional configuration is needed for the client instance use the optional ksc.Config parameter to add your extra config.

Example:

// Create a Vpc client from just a session.
svc := vpc.New(mySession)

// Create a Vpc client with additional configuration
svc := vpc.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func SdkNew

func SdkNew(p client.ConfigProvider, cfgs *ksc.Config, info ...*utils.UrlInfo) *Vpc

SdkNew create int can support ssl or region locate set

func (*Vpc) CreateVpc

func (c *Vpc) CreateVpc(input *map[string]interface{}) (*map[string]interface{}, error)

CreateVpc API operation for vpc.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for vpc's API operation CreateVpc for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/vpc-2016-03-04/CreateVpc

func (*Vpc) CreateVpcRequest

func (c *Vpc) CreateVpcRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

CreateVpcRequest generates a "ksc/request.Request" representing the client's request for the CreateVpc operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateVpc for more information on using the CreateVpc API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateVpcRequest method.
req, resp := client.CreateVpcRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/vpc-2016-03-04/CreateVpc

func (*Vpc) CreateVpcWithContext

func (c *Vpc) CreateVpcWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

CreateVpcWithContext is the same as CreateVpc with the addition of the ability to pass a context and additional request options.

See CreateVpc for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Vpc) DeleteVpc

func (c *Vpc) DeleteVpc(input *map[string]interface{}) (*map[string]interface{}, error)

DeleteVpc API operation for vpc.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for vpc's API operation DeleteVpc for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/vpc-2016-03-04/DeleteVpc

func (*Vpc) DeleteVpcRequest

func (c *Vpc) DeleteVpcRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

DeleteVpcRequest generates a "ksc/request.Request" representing the client's request for the DeleteVpc operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteVpc for more information on using the DeleteVpc API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteVpcRequest method.
req, resp := client.DeleteVpcRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/vpc-2016-03-04/DeleteVpc

func (*Vpc) DeleteVpcWithContext

func (c *Vpc) DeleteVpcWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

DeleteVpcWithContext is the same as DeleteVpc with the addition of the ability to pass a context and additional request options.

See DeleteVpc for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Vpc) DescribeSubnets

func (c *Vpc) DescribeSubnets(input *map[string]interface{}) (*map[string]interface{}, error)

DescribeSubnets API operation for vpc.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for vpc's API operation DescribeSubnets for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/vpc-2016-03-04/DescribeSubnets

func (*Vpc) DescribeSubnetsRequest

func (c *Vpc) DescribeSubnetsRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

DescribeSubnetsRequest generates a "ksc/request.Request" representing the client's request for the DescribeSubnets operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeSubnets for more information on using the DescribeSubnets API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeSubnetsRequest method.
req, resp := client.DescribeSubnetsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/vpc-2016-03-04/DescribeSubnets

func (*Vpc) DescribeSubnetsWithContext

func (c *Vpc) DescribeSubnetsWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

DescribeSubnetsWithContext is the same as DescribeSubnets with the addition of the ability to pass a context and additional request options.

See DescribeSubnets for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Vpc) DescribeVpcs

func (c *Vpc) DescribeVpcs(input *map[string]interface{}) (*map[string]interface{}, error)

DescribeVpcs API operation for vpc.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for vpc's API operation DescribeVpcs for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/vpc-2016-03-04/DescribeVpcs

func (*Vpc) DescribeVpcsRequest

func (c *Vpc) DescribeVpcsRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

DescribeVpcsRequest generates a "ksc/request.Request" representing the client's request for the DescribeVpcs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeVpcs for more information on using the DescribeVpcs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeVpcsRequest method.
req, resp := client.DescribeVpcsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/vpc-2016-03-04/DescribeVpcs

func (*Vpc) DescribeVpcsWithContext

func (c *Vpc) DescribeVpcsWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

DescribeVpcsWithContext is the same as DescribeVpcs with the addition of the ability to pass a context and additional request options.

See DescribeVpcs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Vpc) ModifyVpc

func (c *Vpc) ModifyVpc(input *map[string]interface{}) (*map[string]interface{}, error)

ModifyVpc API operation for vpc.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for vpc's API operation ModifyVpc for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/vpc-2016-03-04/ModifyVpc

func (*Vpc) ModifyVpcRequest

func (c *Vpc) ModifyVpcRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

ModifyVpcRequest generates a "ksc/request.Request" representing the client's request for the ModifyVpc operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyVpc for more information on using the ModifyVpc API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyVpcRequest method.
req, resp := client.ModifyVpcRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/vpc-2016-03-04/ModifyVpc

func (*Vpc) ModifyVpcWithContext

func (c *Vpc) ModifyVpcWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

ModifyVpcWithContext is the same as ModifyVpc with the addition of the ability to pass a context and additional request options.

See ModifyVpc for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

Directories

Path Synopsis
Package vpciface provides an interface to enable mocking the vpc service client for testing your code.
Package vpciface provides an interface to enable mocking the vpc service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL