mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-31 04:30:44 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+282
-191
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package snowball provides a client for Amazon Import/Export Snowball.
|
||||
package snowball
|
||||
|
||||
import (
|
||||
@@ -16,19 +15,18 @@ const opCancelCluster = "CancelCluster"
|
||||
|
||||
// CancelClusterRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CancelCluster operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CancelCluster for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CancelCluster method directly
|
||||
// instead.
|
||||
// See CancelCluster for more information on using the CancelCluster
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CancelClusterRequest method.
|
||||
// req, resp := client.CancelClusterRequest(params)
|
||||
@@ -107,19 +105,18 @@ const opCancelJob = "CancelJob"
|
||||
|
||||
// CancelJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CancelJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CancelJob for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CancelJob method directly
|
||||
// instead.
|
||||
// See CancelJob for more information on using the CancelJob
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CancelJobRequest method.
|
||||
// req, resp := client.CancelJobRequest(params)
|
||||
@@ -199,19 +196,18 @@ const opCreateAddress = "CreateAddress"
|
||||
|
||||
// CreateAddressRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateAddress operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateAddress for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateAddress method directly
|
||||
// instead.
|
||||
// See CreateAddress for more information on using the CreateAddress
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateAddressRequest method.
|
||||
// req, resp := client.CreateAddressRequest(params)
|
||||
@@ -240,11 +236,10 @@ func (c *Snowball) CreateAddressRequest(input *CreateAddressInput) (req *request
|
||||
|
||||
// CreateAddress API operation for Amazon Import/Export Snowball.
|
||||
//
|
||||
// Creates an address for a Snowball to be shipped to.
|
||||
//
|
||||
// Addresses are validated at the time of creation. The address you provide
|
||||
// must be located within the serviceable area of your region. If the address
|
||||
// is invalid or unsupported, then an exception is thrown.
|
||||
// Creates an address for a Snowball to be shipped to. In most regions, addresses
|
||||
// are validated at the time of creation. The address you provide must be located
|
||||
// within the serviceable area of your region. If the address is invalid or
|
||||
// unsupported, then an exception is thrown.
|
||||
//
|
||||
// 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
|
||||
@@ -289,19 +284,18 @@ const opCreateCluster = "CreateCluster"
|
||||
|
||||
// CreateClusterRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateCluster operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateCluster for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateCluster method directly
|
||||
// instead.
|
||||
// See CreateCluster for more information on using the CreateCluster
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateClusterRequest method.
|
||||
// req, resp := client.CreateClusterRequest(params)
|
||||
@@ -381,19 +375,18 @@ const opCreateJob = "CreateJob"
|
||||
|
||||
// CreateJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateJob for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateJob method directly
|
||||
// instead.
|
||||
// See CreateJob for more information on using the CreateJob
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateJobRequest method.
|
||||
// req, resp := client.CreateJobRequest(params)
|
||||
@@ -426,7 +419,7 @@ func (c *Snowball) CreateJobRequest(input *CreateJobInput) (req *request.Request
|
||||
// data center. Your AWS account must have the right trust policies and permissions
|
||||
// in place to create a job for Snowball. If you're creating a job for a node
|
||||
// in a cluster, you only need to provide the clusterId value; the other job
|
||||
// attributes are inherited from the cluster. .
|
||||
// attributes are inherited from the cluster.
|
||||
//
|
||||
// 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
|
||||
@@ -481,19 +474,18 @@ const opDescribeAddress = "DescribeAddress"
|
||||
|
||||
// DescribeAddressRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeAddress operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeAddress for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeAddress method directly
|
||||
// instead.
|
||||
// See DescribeAddress for more information on using the DescribeAddress
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeAddressRequest method.
|
||||
// req, resp := client.DescribeAddressRequest(params)
|
||||
@@ -563,19 +555,18 @@ const opDescribeAddresses = "DescribeAddresses"
|
||||
|
||||
// DescribeAddressesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeAddresses operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeAddresses for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeAddresses method directly
|
||||
// instead.
|
||||
// See DescribeAddresses for more information on using the DescribeAddresses
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeAddressesRequest method.
|
||||
// req, resp := client.DescribeAddressesRequest(params)
|
||||
@@ -626,6 +617,10 @@ func (c *Snowball) DescribeAddressesRequest(input *DescribeAddressesInput) (req
|
||||
// The specified resource can't be found. Check the information you provided
|
||||
// in your last request, and try again.
|
||||
//
|
||||
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
|
||||
// The NextToken string was altered unexpectedly, and the operation has stopped.
|
||||
// Run the operation without changing the NextToken string, and try again.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/DescribeAddresses
|
||||
func (c *Snowball) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) {
|
||||
req, out := c.DescribeAddressesRequest(input)
|
||||
@@ -679,8 +674,12 @@ func (c *Snowball) DescribeAddressesPages(input *DescribeAddressesInput, fn func
|
||||
func (c *Snowball) DescribeAddressesPagesWithContext(ctx aws.Context, input *DescribeAddressesInput, fn func(*DescribeAddressesOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.DescribeAddressesRequest(&inCpy)
|
||||
var inCpy *DescribeAddressesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeAddressesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -698,19 +697,18 @@ const opDescribeCluster = "DescribeCluster"
|
||||
|
||||
// DescribeClusterRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeCluster operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeCluster for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeCluster method directly
|
||||
// instead.
|
||||
// See DescribeCluster for more information on using the DescribeCluster
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeClusterRequest method.
|
||||
// req, resp := client.DescribeClusterRequest(params)
|
||||
@@ -780,19 +778,18 @@ const opDescribeJob = "DescribeJob"
|
||||
|
||||
// DescribeJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeJob for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeJob method directly
|
||||
// instead.
|
||||
// See DescribeJob for more information on using the DescribeJob
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeJobRequest method.
|
||||
// req, resp := client.DescribeJobRequest(params)
|
||||
@@ -822,7 +819,7 @@ func (c *Snowball) DescribeJobRequest(input *DescribeJobInput) (req *request.Req
|
||||
// DescribeJob API operation for Amazon Import/Export Snowball.
|
||||
//
|
||||
// Returns information about a specific job including shipping information,
|
||||
// job status, and other important metadata. .
|
||||
// job status, and other important metadata.
|
||||
//
|
||||
// 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
|
||||
@@ -862,19 +859,18 @@ const opGetJobManifest = "GetJobManifest"
|
||||
|
||||
// GetJobManifestRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetJobManifest operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetJobManifest for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetJobManifest method directly
|
||||
// instead.
|
||||
// See GetJobManifest for more information on using the GetJobManifest
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetJobManifestRequest method.
|
||||
// req, resp := client.GetJobManifestRequest(params)
|
||||
@@ -964,19 +960,18 @@ const opGetJobUnlockCode = "GetJobUnlockCode"
|
||||
|
||||
// GetJobUnlockCodeRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetJobUnlockCode operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetJobUnlockCode for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetJobUnlockCode method directly
|
||||
// instead.
|
||||
// See GetJobUnlockCode for more information on using the GetJobUnlockCode
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetJobUnlockCodeRequest method.
|
||||
// req, resp := client.GetJobUnlockCodeRequest(params)
|
||||
@@ -1061,19 +1056,18 @@ const opGetSnowballUsage = "GetSnowballUsage"
|
||||
|
||||
// GetSnowballUsageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetSnowballUsage operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetSnowballUsage for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetSnowballUsage method directly
|
||||
// instead.
|
||||
// See GetSnowballUsage for more information on using the GetSnowballUsage
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetSnowballUsageRequest method.
|
||||
// req, resp := client.GetSnowballUsageRequest(params)
|
||||
@@ -1140,19 +1134,18 @@ const opListClusterJobs = "ListClusterJobs"
|
||||
|
||||
// ListClusterJobsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListClusterJobs operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListClusterJobs for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListClusterJobs method directly
|
||||
// instead.
|
||||
// See ListClusterJobs for more information on using the ListClusterJobs
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListClusterJobsRequest method.
|
||||
// req, resp := client.ListClusterJobsRequest(params)
|
||||
@@ -1197,6 +1190,10 @@ func (c *Snowball) ListClusterJobsRequest(input *ListClusterJobsInput) (req *req
|
||||
// The specified resource can't be found. Check the information you provided
|
||||
// in your last request, and try again.
|
||||
//
|
||||
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
|
||||
// The NextToken string was altered unexpectedly, and the operation has stopped.
|
||||
// Run the operation without changing the NextToken string, and try again.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListClusterJobs
|
||||
func (c *Snowball) ListClusterJobs(input *ListClusterJobsInput) (*ListClusterJobsOutput, error) {
|
||||
req, out := c.ListClusterJobsRequest(input)
|
||||
@@ -1223,19 +1220,18 @@ const opListClusters = "ListClusters"
|
||||
|
||||
// ListClustersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListClusters operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListClusters for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListClusters method directly
|
||||
// instead.
|
||||
// See ListClusters for more information on using the ListClusters
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListClustersRequest method.
|
||||
// req, resp := client.ListClustersRequest(params)
|
||||
@@ -1274,6 +1270,12 @@ func (c *Snowball) ListClustersRequest(input *ListClustersInput) (req *request.R
|
||||
//
|
||||
// See the AWS API reference guide for Amazon Import/Export Snowball's
|
||||
// API operation ListClusters for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
|
||||
// The NextToken string was altered unexpectedly, and the operation has stopped.
|
||||
// Run the operation without changing the NextToken string, and try again.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListClusters
|
||||
func (c *Snowball) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) {
|
||||
req, out := c.ListClustersRequest(input)
|
||||
@@ -1300,19 +1302,18 @@ const opListJobs = "ListJobs"
|
||||
|
||||
// ListJobsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListJobs operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListJobs for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListJobs method directly
|
||||
// instead.
|
||||
// See ListJobs for more information on using the ListJobs
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListJobsRequest method.
|
||||
// req, resp := client.ListJobsRequest(params)
|
||||
@@ -1359,6 +1360,12 @@ func (c *Snowball) ListJobsRequest(input *ListJobsInput) (req *request.Request,
|
||||
//
|
||||
// See the AWS API reference guide for Amazon Import/Export Snowball's
|
||||
// API operation ListJobs for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
|
||||
// The NextToken string was altered unexpectedly, and the operation has stopped.
|
||||
// Run the operation without changing the NextToken string, and try again.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/ListJobs
|
||||
func (c *Snowball) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) {
|
||||
req, out := c.ListJobsRequest(input)
|
||||
@@ -1412,8 +1419,12 @@ func (c *Snowball) ListJobsPages(input *ListJobsInput, fn func(*ListJobsOutput,
|
||||
func (c *Snowball) ListJobsPagesWithContext(ctx aws.Context, input *ListJobsInput, fn func(*ListJobsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.ListJobsRequest(&inCpy)
|
||||
var inCpy *ListJobsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.ListJobsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -1431,19 +1442,18 @@ const opUpdateCluster = "UpdateCluster"
|
||||
|
||||
// UpdateClusterRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateCluster operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateCluster for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateCluster method directly
|
||||
// instead.
|
||||
// See UpdateCluster for more information on using the UpdateCluster
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateClusterRequest method.
|
||||
// req, resp := client.UpdateClusterRequest(params)
|
||||
@@ -1528,19 +1538,18 @@ const opUpdateJob = "UpdateJob"
|
||||
|
||||
// UpdateJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateJob for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateJob method directly
|
||||
// instead.
|
||||
// See UpdateJob for more information on using the UpdateJob
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateJobRequest method.
|
||||
// req, resp := client.UpdateJobRequest(params)
|
||||
@@ -1647,7 +1656,11 @@ type Address struct {
|
||||
// The country in an address that a Snowball is to be delivered to.
|
||||
Country *string `min:"1" type:"string"`
|
||||
|
||||
// The landmark identifying the address that the appliance will be shipped to.
|
||||
// If the address you are creating is a primary address, then set this option
|
||||
// to true. This field is not supported in most regions.
|
||||
IsRestricted *bool `type:"boolean"`
|
||||
|
||||
// This field is no longer used and the value is ignored.
|
||||
Landmark *string `min:"1" type:"string"`
|
||||
|
||||
// The name of a person to receive a Snowball at an address.
|
||||
@@ -1660,7 +1673,7 @@ type Address struct {
|
||||
// The postal code in an address that a Snowball is to be delivered to.
|
||||
PostalCode *string `min:"1" type:"string"`
|
||||
|
||||
// The prefecture or district that the appliance will be shipped to.
|
||||
// This field is no longer used and the value is ignored.
|
||||
PrefectureOrDistrict *string `min:"1" type:"string"`
|
||||
|
||||
// The state or province in an address that a Snowball is to be delivered to.
|
||||
@@ -1759,6 +1772,12 @@ func (s *Address) SetCountry(v string) *Address {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetIsRestricted sets the IsRestricted field's value.
|
||||
func (s *Address) SetIsRestricted(v bool) *Address {
|
||||
s.IsRestricted = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetLandmark sets the Landmark field's value.
|
||||
func (s *Address) SetLandmark(v string) *Address {
|
||||
s.Landmark = &v
|
||||
@@ -2003,6 +2022,10 @@ type ClusterMetadata struct {
|
||||
// The optional description of the cluster.
|
||||
Description *string `min:"1" type:"string"`
|
||||
|
||||
// The ID of the address that you want a cluster shipped to, after it will be
|
||||
// shipped to its primary address. This field is not supported in most regions.
|
||||
ForwardingAddressId *string `min:"40" type:"string"`
|
||||
|
||||
// The type of job for this cluster. Currently, the only job type supported
|
||||
// for clusters is LOCAL_USE.
|
||||
JobType *string `type:"string" enum:"JobType"`
|
||||
@@ -2088,6 +2111,12 @@ func (s *ClusterMetadata) SetDescription(v string) *ClusterMetadata {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetForwardingAddressId sets the ForwardingAddressId field's value.
|
||||
func (s *ClusterMetadata) SetForwardingAddressId(v string) *ClusterMetadata {
|
||||
s.ForwardingAddressId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetJobType sets the JobType field's value.
|
||||
func (s *ClusterMetadata) SetJobType(v string) *ClusterMetadata {
|
||||
s.JobType = &v
|
||||
@@ -2213,6 +2242,10 @@ type CreateClusterInput struct {
|
||||
// Data Cluster-01.
|
||||
Description *string `min:"1" type:"string"`
|
||||
|
||||
// The forwarding address ID for a cluster. This field is not supported in most
|
||||
// regions.
|
||||
ForwardingAddressId *string `min:"40" type:"string"`
|
||||
|
||||
// The type of job for this cluster. Currently, the only job type supported
|
||||
// for clusters is LOCAL_USE.
|
||||
//
|
||||
@@ -2288,6 +2321,9 @@ func (s *CreateClusterInput) Validate() error {
|
||||
if s.Description != nil && len(*s.Description) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
|
||||
}
|
||||
if s.ForwardingAddressId != nil && len(*s.ForwardingAddressId) < 40 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ForwardingAddressId", 40))
|
||||
}
|
||||
if s.JobType == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("JobType"))
|
||||
}
|
||||
@@ -2324,6 +2360,12 @@ func (s *CreateClusterInput) SetDescription(v string) *CreateClusterInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetForwardingAddressId sets the ForwardingAddressId field's value.
|
||||
func (s *CreateClusterInput) SetForwardingAddressId(v string) *CreateClusterInput {
|
||||
s.ForwardingAddressId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetJobType sets the JobType field's value.
|
||||
func (s *CreateClusterInput) SetJobType(v string) *CreateClusterInput {
|
||||
s.JobType = &v
|
||||
@@ -2406,6 +2448,10 @@ type CreateJobInput struct {
|
||||
// Photos 2016-08-11.
|
||||
Description *string `min:"1" type:"string"`
|
||||
|
||||
// The forwarding address ID for a job. This field is not supported in most
|
||||
// regions.
|
||||
ForwardingAddressId *string `min:"40" type:"string"`
|
||||
|
||||
// Defines the type of job that you're creating.
|
||||
JobType *string `type:"string" enum:"JobType"`
|
||||
|
||||
@@ -2484,6 +2530,9 @@ func (s *CreateJobInput) Validate() error {
|
||||
if s.Description != nil && len(*s.Description) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
|
||||
}
|
||||
if s.ForwardingAddressId != nil && len(*s.ForwardingAddressId) < 40 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ForwardingAddressId", 40))
|
||||
}
|
||||
if s.Resources != nil {
|
||||
if err := s.Resources.Validate(); err != nil {
|
||||
invalidParams.AddNested("Resources", err.(request.ErrInvalidParams))
|
||||
@@ -2514,6 +2563,12 @@ func (s *CreateJobInput) SetDescription(v string) *CreateJobInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetForwardingAddressId sets the ForwardingAddressId field's value.
|
||||
func (s *CreateJobInput) SetForwardingAddressId(v string) *CreateJobInput {
|
||||
s.ForwardingAddressId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetJobType sets the JobType field's value.
|
||||
func (s *CreateJobInput) SetJobType(v string) *CreateJobInput {
|
||||
s.JobType = &v
|
||||
@@ -3321,6 +3376,10 @@ type JobMetadata struct {
|
||||
// The description of the job, provided at job creation.
|
||||
Description *string `min:"1" type:"string"`
|
||||
|
||||
// The ID of the address that you want a job shipped to, after it will be shipped
|
||||
// to its primary address. This field is not supported in most regions.
|
||||
ForwardingAddressId *string `min:"40" type:"string"`
|
||||
|
||||
// The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
|
||||
JobId *string `min:"1" type:"string"`
|
||||
|
||||
@@ -3337,8 +3396,8 @@ type JobMetadata struct {
|
||||
JobType *string `type:"string" enum:"JobType"`
|
||||
|
||||
// The Amazon Resource Name (ARN) for the AWS Key Management Service (AWS KMS)
|
||||
// key associated with this job. This ARN was created using the CreateKey API
|
||||
// action in AWS KMS.
|
||||
// key associated with this job. This ARN was created using the CreateKey (http://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html)
|
||||
// API action in AWS KMS.
|
||||
KmsKeyARN *string `type:"string"`
|
||||
|
||||
// The Amazon Simple Notification Service (Amazon SNS) notification settings
|
||||
@@ -3352,6 +3411,7 @@ type JobMetadata struct {
|
||||
Resources *JobResource `type:"structure"`
|
||||
|
||||
// The role ARN associated with this job. This ARN was created using the CreateRole
|
||||
// (http://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html)
|
||||
// API action in AWS Identity and Access Management (IAM).
|
||||
RoleARN *string `type:"string"`
|
||||
|
||||
@@ -3408,6 +3468,12 @@ func (s *JobMetadata) SetDescription(v string) *JobMetadata {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetForwardingAddressId sets the ForwardingAddressId field's value.
|
||||
func (s *JobMetadata) SetForwardingAddressId(v string) *JobMetadata {
|
||||
s.ForwardingAddressId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetJobId sets the JobId field's value.
|
||||
func (s *JobMetadata) SetJobId(v string) *JobMetadata {
|
||||
s.JobId = &v
|
||||
@@ -4008,8 +4074,7 @@ func (s *S3Resource) SetKeyRange(v *KeyRange) *S3Resource {
|
||||
type Shipment struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Status information for a shipment. Valid statuses include NEW, IN_TRANSIT,
|
||||
// and DELIVERED.
|
||||
// Status information for a shipment.
|
||||
Status *string `min:"1" type:"string"`
|
||||
|
||||
// The tracking number for this job. Using this tracking number with your region's
|
||||
@@ -4119,6 +4184,10 @@ type UpdateClusterInput struct {
|
||||
// The updated description of this cluster.
|
||||
Description *string `min:"1" type:"string"`
|
||||
|
||||
// The updated ID for the forwarding address for a cluster. This field is not
|
||||
// supported in most regions.
|
||||
ForwardingAddressId *string `min:"40" type:"string"`
|
||||
|
||||
// The new or updated Notification object.
|
||||
Notification *Notification `type:"structure"`
|
||||
|
||||
@@ -4160,6 +4229,9 @@ func (s *UpdateClusterInput) Validate() error {
|
||||
if s.Description != nil && len(*s.Description) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
|
||||
}
|
||||
if s.ForwardingAddressId != nil && len(*s.ForwardingAddressId) < 40 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ForwardingAddressId", 40))
|
||||
}
|
||||
if s.Resources != nil {
|
||||
if err := s.Resources.Validate(); err != nil {
|
||||
invalidParams.AddNested("Resources", err.(request.ErrInvalidParams))
|
||||
@@ -4190,6 +4262,12 @@ func (s *UpdateClusterInput) SetDescription(v string) *UpdateClusterInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetForwardingAddressId sets the ForwardingAddressId field's value.
|
||||
func (s *UpdateClusterInput) SetForwardingAddressId(v string) *UpdateClusterInput {
|
||||
s.ForwardingAddressId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNotification sets the Notification field's value.
|
||||
func (s *UpdateClusterInput) SetNotification(v *Notification) *UpdateClusterInput {
|
||||
s.Notification = v
|
||||
@@ -4239,6 +4317,10 @@ type UpdateJobInput struct {
|
||||
// The updated description of this job's JobMetadata object.
|
||||
Description *string `min:"1" type:"string"`
|
||||
|
||||
// The updated ID for the forwarding address for a job. This field is not supported
|
||||
// in most regions.
|
||||
ForwardingAddressId *string `min:"40" type:"string"`
|
||||
|
||||
// The job ID of the job that you want to update, for example JID123e4567-e89b-12d3-a456-426655440000.
|
||||
//
|
||||
// JobId is a required field
|
||||
@@ -4252,8 +4334,8 @@ type UpdateJobInput struct {
|
||||
Resources *JobResource `type:"structure"`
|
||||
|
||||
// The new role Amazon Resource Name (ARN) that you want to associate with this
|
||||
// job. To create a role ARN, use the CreateRole (http://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html)
|
||||
// AWS Identity and Access Management (IAM) API action.
|
||||
// job. To create a role ARN, use the CreateRole (http://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html)AWS
|
||||
// Identity and Access Management (IAM) API action.
|
||||
RoleARN *string `type:"string"`
|
||||
|
||||
// The updated shipping option value of this job's ShippingDetails object.
|
||||
@@ -4283,6 +4365,9 @@ func (s *UpdateJobInput) Validate() error {
|
||||
if s.Description != nil && len(*s.Description) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
|
||||
}
|
||||
if s.ForwardingAddressId != nil && len(*s.ForwardingAddressId) < 40 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ForwardingAddressId", 40))
|
||||
}
|
||||
if s.JobId == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("JobId"))
|
||||
}
|
||||
@@ -4313,6 +4398,12 @@ func (s *UpdateJobInput) SetDescription(v string) *UpdateJobInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetForwardingAddressId sets the ForwardingAddressId field's value.
|
||||
func (s *UpdateJobInput) SetForwardingAddressId(v string) *UpdateJobInput {
|
||||
s.ForwardingAddressId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetJobId sets the JobId field's value.
|
||||
func (s *UpdateJobInput) SetJobId(v string) *UpdateJobInput {
|
||||
s.JobId = &v
|
||||
|
||||
Reference in New Issue
Block a user