mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-02 04:50:49 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+322
-340
@@ -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 glacier provides a client for Amazon Glacier.
|
||||
package glacier
|
||||
|
||||
import (
|
||||
@@ -17,19 +16,18 @@ const opAbortMultipartUpload = "AbortMultipartUpload"
|
||||
|
||||
// AbortMultipartUploadRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AbortMultipartUpload 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 AbortMultipartUpload 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 AbortMultipartUpload method directly
|
||||
// instead.
|
||||
// See AbortMultipartUpload for more information on using the AbortMultipartUpload
|
||||
// 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 AbortMultipartUploadRequest method.
|
||||
// req, resp := client.AbortMultipartUploadRequest(params)
|
||||
@@ -125,19 +123,18 @@ const opAbortVaultLock = "AbortVaultLock"
|
||||
|
||||
// AbortVaultLockRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AbortVaultLock 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 AbortVaultLock 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 AbortVaultLock method directly
|
||||
// instead.
|
||||
// See AbortVaultLock for more information on using the AbortVaultLock
|
||||
// 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 AbortVaultLockRequest method.
|
||||
// req, resp := client.AbortVaultLockRequest(params)
|
||||
@@ -229,19 +226,18 @@ const opAddTagsToVault = "AddTagsToVault"
|
||||
|
||||
// AddTagsToVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddTagsToVault 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 AddTagsToVault 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 AddTagsToVault method directly
|
||||
// instead.
|
||||
// See AddTagsToVault for more information on using the AddTagsToVault
|
||||
// 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 AddTagsToVaultRequest method.
|
||||
// req, resp := client.AddTagsToVaultRequest(params)
|
||||
@@ -326,19 +322,18 @@ const opCompleteMultipartUpload = "CompleteMultipartUpload"
|
||||
|
||||
// CompleteMultipartUploadRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CompleteMultipartUpload 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 CompleteMultipartUpload 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 CompleteMultipartUpload method directly
|
||||
// instead.
|
||||
// See CompleteMultipartUpload for more information on using the CompleteMultipartUpload
|
||||
// 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 CompleteMultipartUploadRequest method.
|
||||
// req, resp := client.CompleteMultipartUploadRequest(params)
|
||||
@@ -456,19 +451,18 @@ const opCompleteVaultLock = "CompleteVaultLock"
|
||||
|
||||
// CompleteVaultLockRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CompleteVaultLock 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 CompleteVaultLock 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 CompleteVaultLock method directly
|
||||
// instead.
|
||||
// See CompleteVaultLock for more information on using the CompleteVaultLock
|
||||
// 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 CompleteVaultLockRequest method.
|
||||
// req, resp := client.CompleteVaultLockRequest(params)
|
||||
@@ -559,19 +553,18 @@ const opCreateVault = "CreateVault"
|
||||
|
||||
// CreateVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateVault 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 CreateVault 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 CreateVault method directly
|
||||
// instead.
|
||||
// See CreateVault for more information on using the CreateVault
|
||||
// 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 CreateVaultRequest method.
|
||||
// req, resp := client.CreateVaultRequest(params)
|
||||
@@ -668,19 +661,18 @@ const opDeleteArchive = "DeleteArchive"
|
||||
|
||||
// DeleteArchiveRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteArchive 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 DeleteArchive 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 DeleteArchive method directly
|
||||
// instead.
|
||||
// See DeleteArchive for more information on using the DeleteArchive
|
||||
// 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 DeleteArchiveRequest method.
|
||||
// req, resp := client.DeleteArchiveRequest(params)
|
||||
@@ -781,19 +773,18 @@ const opDeleteVault = "DeleteVault"
|
||||
|
||||
// DeleteVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteVault 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 DeleteVault 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 DeleteVault method directly
|
||||
// instead.
|
||||
// See DeleteVault for more information on using the DeleteVault
|
||||
// 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 DeleteVaultRequest method.
|
||||
// req, resp := client.DeleteVaultRequest(params)
|
||||
@@ -892,19 +883,18 @@ const opDeleteVaultAccessPolicy = "DeleteVaultAccessPolicy"
|
||||
|
||||
// DeleteVaultAccessPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteVaultAccessPolicy 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 DeleteVaultAccessPolicy 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 DeleteVaultAccessPolicy method directly
|
||||
// instead.
|
||||
// See DeleteVaultAccessPolicy for more information on using the DeleteVaultAccessPolicy
|
||||
// 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 DeleteVaultAccessPolicyRequest method.
|
||||
// req, resp := client.DeleteVaultAccessPolicyRequest(params)
|
||||
@@ -990,19 +980,18 @@ const opDeleteVaultNotifications = "DeleteVaultNotifications"
|
||||
|
||||
// DeleteVaultNotificationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteVaultNotifications 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 DeleteVaultNotifications 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 DeleteVaultNotifications method directly
|
||||
// instead.
|
||||
// See DeleteVaultNotifications for more information on using the DeleteVaultNotifications
|
||||
// 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 DeleteVaultNotificationsRequest method.
|
||||
// req, resp := client.DeleteVaultNotificationsRequest(params)
|
||||
@@ -1093,19 +1082,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)
|
||||
@@ -1201,19 +1189,18 @@ const opDescribeVault = "DescribeVault"
|
||||
|
||||
// DescribeVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeVault 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 DescribeVault 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 DescribeVault method directly
|
||||
// instead.
|
||||
// See DescribeVault for more information on using the DescribeVault
|
||||
// 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 DescribeVaultRequest method.
|
||||
// req, resp := client.DescribeVaultRequest(params)
|
||||
@@ -1307,19 +1294,18 @@ const opGetDataRetrievalPolicy = "GetDataRetrievalPolicy"
|
||||
|
||||
// GetDataRetrievalPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetDataRetrievalPolicy 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 GetDataRetrievalPolicy 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 GetDataRetrievalPolicy method directly
|
||||
// instead.
|
||||
// See GetDataRetrievalPolicy for more information on using the GetDataRetrievalPolicy
|
||||
// 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 GetDataRetrievalPolicyRequest method.
|
||||
// req, resp := client.GetDataRetrievalPolicyRequest(params)
|
||||
@@ -1392,19 +1378,18 @@ const opGetJobOutput = "GetJobOutput"
|
||||
|
||||
// GetJobOutputRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetJobOutput 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 GetJobOutput 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 GetJobOutput method directly
|
||||
// instead.
|
||||
// See GetJobOutput for more information on using the GetJobOutput
|
||||
// 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 GetJobOutputRequest method.
|
||||
// req, resp := client.GetJobOutputRequest(params)
|
||||
@@ -1522,19 +1507,18 @@ const opGetVaultAccessPolicy = "GetVaultAccessPolicy"
|
||||
|
||||
// GetVaultAccessPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetVaultAccessPolicy 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 GetVaultAccessPolicy 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 GetVaultAccessPolicy method directly
|
||||
// instead.
|
||||
// See GetVaultAccessPolicy for more information on using the GetVaultAccessPolicy
|
||||
// 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 GetVaultAccessPolicyRequest method.
|
||||
// req, resp := client.GetVaultAccessPolicyRequest(params)
|
||||
@@ -1614,19 +1598,18 @@ const opGetVaultLock = "GetVaultLock"
|
||||
|
||||
// GetVaultLockRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetVaultLock 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 GetVaultLock 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 GetVaultLock method directly
|
||||
// instead.
|
||||
// See GetVaultLock for more information on using the GetVaultLock
|
||||
// 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 GetVaultLockRequest method.
|
||||
// req, resp := client.GetVaultLockRequest(params)
|
||||
@@ -1720,19 +1703,18 @@ const opGetVaultNotifications = "GetVaultNotifications"
|
||||
|
||||
// GetVaultNotificationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetVaultNotifications 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 GetVaultNotifications 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 GetVaultNotifications method directly
|
||||
// instead.
|
||||
// See GetVaultNotifications for more information on using the GetVaultNotifications
|
||||
// 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 GetVaultNotificationsRequest method.
|
||||
// req, resp := client.GetVaultNotificationsRequest(params)
|
||||
@@ -1825,19 +1807,18 @@ const opInitiateJob = "InitiateJob"
|
||||
|
||||
// InitiateJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the InitiateJob 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 InitiateJob 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 InitiateJob method directly
|
||||
// instead.
|
||||
// See InitiateJob for more information on using the InitiateJob
|
||||
// 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 InitiateJobRequest method.
|
||||
// req, resp := client.InitiateJobRequest(params)
|
||||
@@ -2056,19 +2037,18 @@ const opInitiateMultipartUpload = "InitiateMultipartUpload"
|
||||
|
||||
// InitiateMultipartUploadRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the InitiateMultipartUpload 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 InitiateMultipartUpload 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 InitiateMultipartUpload method directly
|
||||
// instead.
|
||||
// See InitiateMultipartUpload for more information on using the InitiateMultipartUpload
|
||||
// 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 InitiateMultipartUploadRequest method.
|
||||
// req, resp := client.InitiateMultipartUploadRequest(params)
|
||||
@@ -2177,19 +2157,18 @@ const opInitiateVaultLock = "InitiateVaultLock"
|
||||
|
||||
// InitiateVaultLockRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the InitiateVaultLock 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 InitiateVaultLock 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 InitiateVaultLock method directly
|
||||
// instead.
|
||||
// See InitiateVaultLock for more information on using the InitiateVaultLock
|
||||
// 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 InitiateVaultLockRequest method.
|
||||
// req, resp := client.InitiateVaultLockRequest(params)
|
||||
@@ -2292,19 +2271,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)
|
||||
@@ -2451,8 +2429,12 @@ func (c *Glacier) ListJobsPages(input *ListJobsInput, fn func(*ListJobsOutput, b
|
||||
func (c *Glacier) 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
|
||||
@@ -2470,19 +2452,18 @@ const opListMultipartUploads = "ListMultipartUploads"
|
||||
|
||||
// ListMultipartUploadsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListMultipartUploads 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 ListMultipartUploads 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 ListMultipartUploads method directly
|
||||
// instead.
|
||||
// See ListMultipartUploads for more information on using the ListMultipartUploads
|
||||
// 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 ListMultipartUploadsRequest method.
|
||||
// req, resp := client.ListMultipartUploadsRequest(params)
|
||||
@@ -2619,8 +2600,12 @@ func (c *Glacier) ListMultipartUploadsPages(input *ListMultipartUploadsInput, fn
|
||||
func (c *Glacier) ListMultipartUploadsPagesWithContext(ctx aws.Context, input *ListMultipartUploadsInput, fn func(*ListMultipartUploadsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.ListMultipartUploadsRequest(&inCpy)
|
||||
var inCpy *ListMultipartUploadsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.ListMultipartUploadsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -2638,19 +2623,18 @@ const opListParts = "ListParts"
|
||||
|
||||
// ListPartsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListParts 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 ListParts 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 ListParts method directly
|
||||
// instead.
|
||||
// See ListParts for more information on using the ListParts
|
||||
// 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 ListPartsRequest method.
|
||||
// req, resp := client.ListPartsRequest(params)
|
||||
@@ -2781,8 +2765,12 @@ func (c *Glacier) ListPartsPages(input *ListPartsInput, fn func(*ListPartsOutput
|
||||
func (c *Glacier) ListPartsPagesWithContext(ctx aws.Context, input *ListPartsInput, fn func(*ListPartsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.ListPartsRequest(&inCpy)
|
||||
var inCpy *ListPartsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.ListPartsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -2800,19 +2788,18 @@ const opListProvisionedCapacity = "ListProvisionedCapacity"
|
||||
|
||||
// ListProvisionedCapacityRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListProvisionedCapacity 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 ListProvisionedCapacity 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 ListProvisionedCapacity method directly
|
||||
// instead.
|
||||
// See ListProvisionedCapacity for more information on using the ListProvisionedCapacity
|
||||
// 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 ListProvisionedCapacityRequest method.
|
||||
// req, resp := client.ListProvisionedCapacityRequest(params)
|
||||
@@ -2883,19 +2870,18 @@ const opListTagsForVault = "ListTagsForVault"
|
||||
|
||||
// ListTagsForVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTagsForVault 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 ListTagsForVault 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 ListTagsForVault method directly
|
||||
// instead.
|
||||
// See ListTagsForVault for more information on using the ListTagsForVault
|
||||
// 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 ListTagsForVaultRequest method.
|
||||
// req, resp := client.ListTagsForVaultRequest(params)
|
||||
@@ -2972,19 +2958,18 @@ const opListVaults = "ListVaults"
|
||||
|
||||
// ListVaultsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListVaults 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 ListVaults 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 ListVaults method directly
|
||||
// instead.
|
||||
// See ListVaults for more information on using the ListVaults
|
||||
// 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 ListVaultsRequest method.
|
||||
// req, resp := client.ListVaultsRequest(params)
|
||||
@@ -3112,8 +3097,12 @@ func (c *Glacier) ListVaultsPages(input *ListVaultsInput, fn func(*ListVaultsOut
|
||||
func (c *Glacier) ListVaultsPagesWithContext(ctx aws.Context, input *ListVaultsInput, fn func(*ListVaultsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.ListVaultsRequest(&inCpy)
|
||||
var inCpy *ListVaultsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.ListVaultsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -3131,19 +3120,18 @@ const opPurchaseProvisionedCapacity = "PurchaseProvisionedCapacity"
|
||||
|
||||
// PurchaseProvisionedCapacityRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PurchaseProvisionedCapacity 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 PurchaseProvisionedCapacity 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 PurchaseProvisionedCapacity method directly
|
||||
// instead.
|
||||
// See PurchaseProvisionedCapacity for more information on using the PurchaseProvisionedCapacity
|
||||
// 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 PurchaseProvisionedCapacityRequest method.
|
||||
// req, resp := client.PurchaseProvisionedCapacityRequest(params)
|
||||
@@ -3217,19 +3205,18 @@ const opRemoveTagsFromVault = "RemoveTagsFromVault"
|
||||
|
||||
// RemoveTagsFromVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTagsFromVault 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 RemoveTagsFromVault 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 RemoveTagsFromVault method directly
|
||||
// instead.
|
||||
// See RemoveTagsFromVault for more information on using the RemoveTagsFromVault
|
||||
// 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 RemoveTagsFromVaultRequest method.
|
||||
// req, resp := client.RemoveTagsFromVaultRequest(params)
|
||||
@@ -3310,19 +3297,18 @@ const opSetDataRetrievalPolicy = "SetDataRetrievalPolicy"
|
||||
|
||||
// SetDataRetrievalPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetDataRetrievalPolicy 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 SetDataRetrievalPolicy 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 SetDataRetrievalPolicy method directly
|
||||
// instead.
|
||||
// See SetDataRetrievalPolicy for more information on using the SetDataRetrievalPolicy
|
||||
// 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 SetDataRetrievalPolicyRequest method.
|
||||
// req, resp := client.SetDataRetrievalPolicyRequest(params)
|
||||
@@ -3401,19 +3387,18 @@ const opSetVaultAccessPolicy = "SetVaultAccessPolicy"
|
||||
|
||||
// SetVaultAccessPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetVaultAccessPolicy 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 SetVaultAccessPolicy 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 SetVaultAccessPolicy method directly
|
||||
// instead.
|
||||
// See SetVaultAccessPolicy for more information on using the SetVaultAccessPolicy
|
||||
// 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 SetVaultAccessPolicyRequest method.
|
||||
// req, resp := client.SetVaultAccessPolicyRequest(params)
|
||||
@@ -3496,19 +3481,18 @@ const opSetVaultNotifications = "SetVaultNotifications"
|
||||
|
||||
// SetVaultNotificationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetVaultNotifications 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 SetVaultNotifications 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 SetVaultNotifications method directly
|
||||
// instead.
|
||||
// See SetVaultNotifications for more information on using the SetVaultNotifications
|
||||
// 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 SetVaultNotificationsRequest method.
|
||||
// req, resp := client.SetVaultNotificationsRequest(params)
|
||||
@@ -3616,19 +3600,18 @@ const opUploadArchive = "UploadArchive"
|
||||
|
||||
// UploadArchiveRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UploadArchive 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 UploadArchive 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 UploadArchive method directly
|
||||
// instead.
|
||||
// See UploadArchive for more information on using the UploadArchive
|
||||
// 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 UploadArchiveRequest method.
|
||||
// req, resp := client.UploadArchiveRequest(params)
|
||||
@@ -3742,19 +3725,18 @@ const opUploadMultipartPart = "UploadMultipartPart"
|
||||
|
||||
// UploadMultipartPartRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UploadMultipartPart 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 UploadMultipartPart 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 UploadMultipartPart method directly
|
||||
// instead.
|
||||
// See UploadMultipartPart for more information on using the UploadMultipartPart
|
||||
// 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 UploadMultipartPartRequest method.
|
||||
// req, resp := client.UploadMultipartPartRequest(params)
|
||||
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package glacier provides the client and types for making API
|
||||
// requests to Amazon Glacier.
|
||||
//
|
||||
// Amazon Glacier is a storage solution for "cold data."
|
||||
//
|
||||
// Amazon Glacier is an extremely low-cost storage service that provides secure,
|
||||
// durable, and easy-to-use storage for data backup and archival. With Amazon
|
||||
// Glacier, customers can store their data cost effectively for months, years,
|
||||
// or decades. Amazon Glacier also enables customers to offload the administrative
|
||||
// burdens of operating and scaling storage to AWS, so they don't have to worry
|
||||
// about capacity planning, hardware provisioning, data replication, hardware
|
||||
// failure and recovery, or time-consuming hardware migrations.
|
||||
//
|
||||
// Amazon Glacier is a great storage choice when low storage cost is paramount,
|
||||
// your data is rarely retrieved, and retrieval latency of several hours is
|
||||
// acceptable. If your application requires fast or frequent access to your
|
||||
// data, consider using Amazon S3. For more information, see Amazon Simple Storage
|
||||
// Service (Amazon S3) (http://aws.amazon.com/s3/).
|
||||
//
|
||||
// You can store any kind of data in any format. There is no maximum limit on
|
||||
// the total amount of data you can store in Amazon Glacier.
|
||||
//
|
||||
// If you are a first-time user of Amazon Glacier, we recommend that you begin
|
||||
// by reading the following sections in the Amazon Glacier Developer Guide:
|
||||
//
|
||||
// * What is Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html)
|
||||
// - This section of the Developer Guide describes the underlying data model,
|
||||
// the operations it supports, and the AWS SDKs that you can use to interact
|
||||
// with the service.
|
||||
//
|
||||
// * Getting Started with Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html)
|
||||
// - The Getting Started section walks you through the process of creating
|
||||
// a vault, uploading archives, creating jobs to download archives, retrieving
|
||||
// the job output, and deleting archives.
|
||||
//
|
||||
// See glacier package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/glacier/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon Glacier with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the Amazon Glacier client Glacier for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/glacier/#New
|
||||
package glacier
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package glacier
|
||||
|
||||
|
||||
+980
-517
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package glacieriface provides an interface to enable mocking the Amazon Glacier service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon Glacier.
|
||||
|
||||
+6
-33
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package glacier
|
||||
|
||||
@@ -11,39 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||
)
|
||||
|
||||
// Amazon Glacier is a storage solution for "cold data."
|
||||
// Glacier provides the API operation methods for making requests to
|
||||
// Amazon Glacier. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// Amazon Glacier is an extremely low-cost storage service that provides secure,
|
||||
// durable, and easy-to-use storage for data backup and archival. With Amazon
|
||||
// Glacier, customers can store their data cost effectively for months, years,
|
||||
// or decades. Amazon Glacier also enables customers to offload the administrative
|
||||
// burdens of operating and scaling storage to AWS, so they don't have to worry
|
||||
// about capacity planning, hardware provisioning, data replication, hardware
|
||||
// failure and recovery, or time-consuming hardware migrations.
|
||||
//
|
||||
// Amazon Glacier is a great storage choice when low storage cost is paramount,
|
||||
// your data is rarely retrieved, and retrieval latency of several hours is
|
||||
// acceptable. If your application requires fast or frequent access to your
|
||||
// data, consider using Amazon S3. For more information, see Amazon Simple Storage
|
||||
// Service (Amazon S3) (http://aws.amazon.com/s3/).
|
||||
//
|
||||
// You can store any kind of data in any format. There is no maximum limit on
|
||||
// the total amount of data you can store in Amazon Glacier.
|
||||
//
|
||||
// If you are a first-time user of Amazon Glacier, we recommend that you begin
|
||||
// by reading the following sections in the Amazon Glacier Developer Guide:
|
||||
//
|
||||
// * What is Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html)
|
||||
// - This section of the Developer Guide describes the underlying data model,
|
||||
// the operations it supports, and the AWS SDKs that you can use to interact
|
||||
// with the service.
|
||||
//
|
||||
// * Getting Started with Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html)
|
||||
// - The Getting Started section walks you through the process of creating
|
||||
// a vault, uploading archives, creating jobs to download archives, retrieving
|
||||
// the job output, and deleting archives.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Glacier methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type Glacier struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+9
-3
@@ -15,6 +15,8 @@ type Hash struct {
|
||||
}
|
||||
|
||||
// ComputeHashes computes the tree-hash and linear hash of a seekable reader r.
|
||||
//
|
||||
// See http://docs.aws.amazon.com/amazonglacier/latest/dev/checksum-calculations.html for more information.
|
||||
func ComputeHashes(r io.ReadSeeker) Hash {
|
||||
r.Seek(0, 0) // Read the whole stream
|
||||
defer r.Seek(0, 0) // Rewind stream at end
|
||||
@@ -41,12 +43,16 @@ func ComputeHashes(r io.ReadSeeker) Hash {
|
||||
|
||||
return Hash{
|
||||
LinearHash: hsh.Sum(nil),
|
||||
TreeHash: buildHashTree(hashes),
|
||||
TreeHash: ComputeTreeHash(hashes),
|
||||
}
|
||||
}
|
||||
|
||||
// buildHashTree builds a hash tree root node given a set of hashes.
|
||||
func buildHashTree(hashes [][]byte) []byte {
|
||||
// ComputeTreeHash builds a tree hash root node given a slice of
|
||||
// hashes. Glacier tree hash to be derived from SHA256 hashes of 1MB
|
||||
// chucks of the data.
|
||||
//
|
||||
// See http://docs.aws.amazon.com/amazonglacier/latest/dev/checksum-calculations.html for more information.
|
||||
func ComputeTreeHash(hashes [][]byte) []byte {
|
||||
if hashes == nil || len(hashes) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
+40
-5
@@ -2,18 +2,16 @@ package glacier_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/sha256"
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/aws/aws-sdk-go/service/glacier"
|
||||
)
|
||||
|
||||
func ExampleComputeHashes() {
|
||||
buf := make([]byte, 5767168) // 5.5MB buffer
|
||||
for i := range buf {
|
||||
buf[i] = '0' // Fill with zero characters
|
||||
}
|
||||
r := testCreateReader()
|
||||
|
||||
r := bytes.NewReader(buf)
|
||||
h := glacier.ComputeHashes(r)
|
||||
n, _ := r.Seek(0, 1) // Check position after checksumming
|
||||
|
||||
@@ -26,3 +24,40 @@ func ExampleComputeHashes() {
|
||||
// tree: 154e26c78fd74d0c2c9b3cc4644191619dc4f2cd539ae2a74d5fd07957a3ee6a
|
||||
// pos: 0
|
||||
}
|
||||
|
||||
func testCreateReader() io.ReadSeeker {
|
||||
buf := make([]byte, 5767168) // 5.5MB buffer
|
||||
for i := range buf {
|
||||
buf[i] = '0' // Fill with zero characters
|
||||
}
|
||||
|
||||
return bytes.NewReader(buf)
|
||||
}
|
||||
|
||||
func ExampleComputeTreeHash() {
|
||||
r := testCreateReader()
|
||||
|
||||
const chunkSize = 1024 * 1024 // 1MB
|
||||
buf := make([]byte, chunkSize)
|
||||
hashes := [][]byte{}
|
||||
|
||||
for {
|
||||
// Reach 1MB chunks from reader to generate hashes from
|
||||
n, err := io.ReadAtLeast(r, buf, chunkSize)
|
||||
if n == 0 {
|
||||
break
|
||||
}
|
||||
|
||||
tmpHash := sha256.Sum256(buf[:n])
|
||||
hashes = append(hashes, tmpHash[:])
|
||||
if err != nil {
|
||||
break // last chunk
|
||||
}
|
||||
}
|
||||
|
||||
treeHash := glacier.ComputeTreeHash(hashes)
|
||||
fmt.Printf("TreeHash: %x\n", treeHash)
|
||||
|
||||
// Output:
|
||||
// TreeHash: 154e26c78fd74d0c2c9b3cc4644191619dc4f2cd539ae2a74d5fd07957a3ee6a
|
||||
}
|
||||
|
||||
+15
-5
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package glacier
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// WaitUntilVaultExists uses the Amazon Glacier API operation
|
||||
// DescribeVault to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *Glacier) WaitUntilVaultExists(input *DescribeVaultInput) error {
|
||||
return c.WaitUntilVaultExistsWithContext(aws.BackgroundContext(), input)
|
||||
@@ -44,7 +44,12 @@ func (c *Glacier) WaitUntilVaultExistsWithContext(ctx aws.Context, input *Descri
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeVaultRequest(input)
|
||||
var inCpy *DescribeVaultInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeVaultRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -57,7 +62,7 @@ func (c *Glacier) WaitUntilVaultExistsWithContext(ctx aws.Context, input *Descri
|
||||
|
||||
// WaitUntilVaultNotExists uses the Amazon Glacier API operation
|
||||
// DescribeVault to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *Glacier) WaitUntilVaultNotExists(input *DescribeVaultInput) error {
|
||||
return c.WaitUntilVaultNotExistsWithContext(aws.BackgroundContext(), input)
|
||||
@@ -90,7 +95,12 @@ func (c *Glacier) WaitUntilVaultNotExistsWithContext(ctx aws.Context, input *Des
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeVaultRequest(input)
|
||||
var inCpy *DescribeVaultInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeVaultRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
|
||||
Reference in New Issue
Block a user