Update Go AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2019-07-13 00:03:55 +03:00
committed by Andrey Smirnov
parent d08be990ef
commit 94a72b23ff
2183 changed files with 885887 additions and 228114 deletions
+67 -41
View File
@@ -9,6 +9,8 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
const opAssociateCreatedArtifact = "AssociateCreatedArtifact"
@@ -16,7 +18,7 @@ const opAssociateCreatedArtifact = "AssociateCreatedArtifact"
// AssociateCreatedArtifactRequest generates a "aws/request.Request" representing the
// client's request for the AssociateCreatedArtifact operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -50,6 +52,7 @@ func (c *MigrationHub) AssociateCreatedArtifactRequest(input *AssociateCreatedAr
output = &AssociateCreatedArtifactOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
@@ -132,7 +135,7 @@ const opAssociateDiscoveredResource = "AssociateDiscoveredResource"
// AssociateDiscoveredResourceRequest generates a "aws/request.Request" representing the
// client's request for the AssociateDiscoveredResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -166,6 +169,7 @@ func (c *MigrationHub) AssociateDiscoveredResourceRequest(input *AssociateDiscov
output = &AssociateDiscoveredResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
@@ -242,7 +246,7 @@ const opCreateProgressUpdateStream = "CreateProgressUpdateStream"
// CreateProgressUpdateStreamRequest generates a "aws/request.Request" representing the
// client's request for the CreateProgressUpdateStream operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -276,6 +280,7 @@ func (c *MigrationHub) CreateProgressUpdateStreamRequest(input *CreateProgressUp
output = &CreateProgressUpdateStreamOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
@@ -345,7 +350,7 @@ const opDeleteProgressUpdateStream = "DeleteProgressUpdateStream"
// DeleteProgressUpdateStreamRequest generates a "aws/request.Request" representing the
// client's request for the DeleteProgressUpdateStream operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -379,6 +384,7 @@ func (c *MigrationHub) DeleteProgressUpdateStreamRequest(input *DeleteProgressUp
output = &DeleteProgressUpdateStreamOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
@@ -471,7 +477,7 @@ const opDescribeApplicationState = "DescribeApplicationState"
// DescribeApplicationStateRequest generates a "aws/request.Request" representing the
// client's request for the DescribeApplicationState operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -572,7 +578,7 @@ const opDescribeMigrationTask = "DescribeMigrationTask"
// DescribeMigrationTaskRequest generates a "aws/request.Request" representing the
// client's request for the DescribeMigrationTask operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -668,7 +674,7 @@ const opDisassociateCreatedArtifact = "DisassociateCreatedArtifact"
// DisassociateCreatedArtifactRequest generates a "aws/request.Request" representing the
// client's request for the DisassociateCreatedArtifact operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -702,6 +708,7 @@ func (c *MigrationHub) DisassociateCreatedArtifactRequest(input *DisassociateCre
output = &DisassociateCreatedArtifactOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
@@ -784,7 +791,7 @@ const opDisassociateDiscoveredResource = "DisassociateDiscoveredResource"
// DisassociateDiscoveredResourceRequest generates a "aws/request.Request" representing the
// client's request for the DisassociateDiscoveredResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -818,6 +825,7 @@ func (c *MigrationHub) DisassociateDiscoveredResourceRequest(input *Disassociate
output = &DisassociateDiscoveredResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
@@ -889,7 +897,7 @@ const opImportMigrationTask = "ImportMigrationTask"
// ImportMigrationTaskRequest generates a "aws/request.Request" representing the
// client's request for the ImportMigrationTask operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -923,6 +931,7 @@ func (c *MigrationHub) ImportMigrationTaskRequest(input *ImportMigrationTaskInpu
output = &ImportMigrationTaskOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
@@ -998,7 +1007,7 @@ const opListCreatedArtifacts = "ListCreatedArtifacts"
// ListCreatedArtifactsRequest generates a "aws/request.Request" representing the
// client's request for the ListCreatedArtifacts operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -1102,7 +1111,7 @@ const opListDiscoveredResources = "ListDiscoveredResources"
// ListDiscoveredResourcesRequest generates a "aws/request.Request" representing the
// client's request for the ListDiscoveredResources operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -1198,7 +1207,7 @@ const opListMigrationTasks = "ListMigrationTasks"
// ListMigrationTasksRequest generates a "aws/request.Request" representing the
// client's request for the ListMigrationTasks operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -1307,7 +1316,7 @@ const opListProgressUpdateStreams = "ListProgressUpdateStreams"
// ListProgressUpdateStreamsRequest generates a "aws/request.Request" representing the
// client's request for the ListProgressUpdateStreams operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -1399,7 +1408,7 @@ const opNotifyApplicationState = "NotifyApplicationState"
// NotifyApplicationStateRequest generates a "aws/request.Request" representing the
// client's request for the NotifyApplicationState operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -1433,6 +1442,7 @@ func (c *MigrationHub) NotifyApplicationStateRequest(input *NotifyApplicationSta
output = &NotifyApplicationStateOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
@@ -1510,7 +1520,7 @@ const opNotifyMigrationTaskState = "NotifyMigrationTaskState"
// NotifyMigrationTaskStateRequest generates a "aws/request.Request" representing the
// client's request for the NotifyMigrationTaskState operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -1544,6 +1554,7 @@ func (c *MigrationHub) NotifyMigrationTaskStateRequest(input *NotifyMigrationTas
output = &NotifyMigrationTaskStateOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
@@ -1623,7 +1634,7 @@ const opPutResourceAttributes = "PutResourceAttributes"
// PutResourceAttributesRequest generates a "aws/request.Request" representing the
// client's request for the PutResourceAttributes operation. The "output" return
// value will be populated with the request's response once the request completes
// successfuly.
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
@@ -1657,6 +1668,7 @@ func (c *MigrationHub) PutResourceAttributesRequest(input *PutResourceAttributes
output = &PutResourceAttributesOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
@@ -1666,14 +1678,15 @@ func (c *MigrationHub) PutResourceAttributesRequest(input *PutResourceAttributes
// be associated in the Application Discovery Service (ADS)'s repository. This
// association occurs asynchronously after PutResourceAttributes returns.
//
// Keep in mind that subsequent calls to PutResourceAttributes will override
// previously stored attributes. For example, if it is first called with a MAC
// address, but later, it is desired to add an IP address, it will then be required
// to call it with both the IP and MAC addresses to prevent overiding the MAC
// address.
// * Keep in mind that subsequent calls to PutResourceAttributes will override
// previously stored attributes. For example, if it is first called with
// a MAC address, but later, it is desired to add an IP address, it will
// then be required to call it with both the IP and MAC addresses to prevent
// overiding the MAC address.
//
// Note the instructions regarding the special use case of the ResourceAttributeList
// parameter when specifying any "VM" related value.
// * Note the instructions regarding the special use case of the ResourceAttributeList
// (https://docs.aws.amazon.com/migrationhub/latest/ug/API_PutResourceAttributes.html#migrationhub-PutResourceAttributes-request-ResourceAttributeList)
// parameter when specifying any "VM" related value.
//
// Because this is an asynchronous call, it will always return 200, whether
// an association occurs or not. To confirm if an association was found based
@@ -2171,7 +2184,7 @@ type DescribeApplicationStateOutput struct {
ApplicationStatus *string `type:"string" enum:"ApplicationStatus"`
// The timestamp when the application status was last updated.
LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
LastUpdatedTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -3030,7 +3043,7 @@ type MigrationTask struct {
Task *Task `type:"structure"`
// The timestamp when the task was gathered.
UpdateDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
UpdateDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -3094,7 +3107,7 @@ type MigrationTaskSummary struct {
StatusDetail *string `type:"string"`
// The timestamp when the task was gathered.
UpdateDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
UpdateDateTime *time.Time `type:"timestamp"`
}
// String returns the string representation
@@ -3254,7 +3267,7 @@ type NotifyMigrationTaskStateInput struct {
// The timestamp when the task was gathered.
//
// UpdateDateTime is a required field
UpdateDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
UpdateDateTime *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
@@ -3399,17 +3412,22 @@ type PutResourceAttributesInput struct {
// used to map the task to a resource in the Application Discovery Service (ADS)'s
// repository.
//
// In the ResourceAttribute object array, the Type field is reserved for the
// following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | VM_MANAGER_ID
// | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | MOTHERBOARD_SERIAL_NUMBER,
// and the identifying value can be a string up to 256 characters.
// Takes the object array of ResourceAttribute where the Type field is reserved
// for the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN
// | VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID
// | MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up
// to 256 characters.
//
// If any "VM" related value is used for a ResourceAttribute object, it is required
// that VM_MANAGER_ID, as a minimum, is always used. If it is not used, the
// server will not be associated in the Application Discovery Service (ADS)'s
// repository using any of the other "VM" related values, and you will experience
// data loss. See the Example section below for a use case of specifying "VM"
// related values.
// * If any "VM" related value is set for a ResourceAttribute object, it
// is required that VM_MANAGER_ID, as a minimum, is always set. If VM_MANAGER_ID
// is not set, then all "VM" fields will be discarded and "VM" fields will
// not be used for matching the migration task to a server in Application
// Discovery Service (ADS)'s repository. See the Example (https://docs.aws.amazon.com/migrationhub/latest/ug/API_PutResourceAttributes.html#API_PutResourceAttributes_Examples)
// section below for a use case of specifying "VM" related values.
//
// * If a server you are trying to match has multiple IP or MAC addresses,
// you should provide as many as you know in separate type/value pairs passed
// to the ResourceAttributeList parameter to maximize the chances of matching.
//
// ResourceAttributeList is a required field
ResourceAttributeList []*ResourceAttribute `min:"1" type:"list" required:"true"`
@@ -3505,17 +3523,25 @@ func (s PutResourceAttributesOutput) GoString() string {
//
// Note the corresponding format required per type listed below:
//
// IPV4x.x.x.x
// IPV4
//
// x.x.x.x
//
// where x is an integer in the range [0,255]
//
// IPV6y : y : y : y : y : y : y : y
// IPV6
//
// y : y : y : y : y : y : y : y
//
// where y is a hexadecimal between 0 and FFFF. [0, FFFF]
//
// MAC_ADDRESS^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$
// MAC_ADDRESS
//
// FQDN^[^<>{}\\\\/?,=\\p{Cntrl}]{1,256}$
// ^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$
//
// FQDN
//
// ^[^<>{}\\\\/?,=\\p{Cntrl}]{1,256}$
type ResourceAttribute struct {
_ struct{} `type:"structure"`