Upgrade AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2017-09-28 17:57:05 +03:00
parent 9a767b7631
commit 182c21e38c
1096 changed files with 309697 additions and 132612 deletions
+124 -120
View File
@@ -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 sms provides a client for AWS Server Migration Service.
package sms
import (
@@ -15,19 +14,18 @@ const opCreateReplicationJob = "CreateReplicationJob"
// CreateReplicationJobRequest generates a "aws/request.Request" representing the
// client's request for the CreateReplicationJob 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 CreateReplicationJob 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 CreateReplicationJob method directly
// instead.
// See CreateReplicationJob for more information on using the CreateReplicationJob
// 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 CreateReplicationJobRequest method.
// req, resp := client.CreateReplicationJobRequest(params)
@@ -124,19 +122,18 @@ const opDeleteReplicationJob = "DeleteReplicationJob"
// DeleteReplicationJobRequest generates a "aws/request.Request" representing the
// client's request for the DeleteReplicationJob 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 DeleteReplicationJob 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 DeleteReplicationJob method directly
// instead.
// See DeleteReplicationJob for more information on using the DeleteReplicationJob
// 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 DeleteReplicationJobRequest method.
// req, resp := client.DeleteReplicationJobRequest(params)
@@ -223,19 +220,18 @@ const opDeleteServerCatalog = "DeleteServerCatalog"
// DeleteServerCatalogRequest generates a "aws/request.Request" representing the
// client's request for the DeleteServerCatalog 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 DeleteServerCatalog 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 DeleteServerCatalog method directly
// instead.
// See DeleteServerCatalog for more information on using the DeleteServerCatalog
// 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 DeleteServerCatalogRequest method.
// req, resp := client.DeleteServerCatalogRequest(params)
@@ -318,19 +314,18 @@ const opDisassociateConnector = "DisassociateConnector"
// DisassociateConnectorRequest generates a "aws/request.Request" representing the
// client's request for the DisassociateConnector 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 DisassociateConnector 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 DisassociateConnector method directly
// instead.
// See DisassociateConnector for more information on using the DisassociateConnector
// 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 DisassociateConnectorRequest method.
// req, resp := client.DisassociateConnectorRequest(params)
@@ -412,19 +407,18 @@ const opGetConnectors = "GetConnectors"
// GetConnectorsRequest generates a "aws/request.Request" representing the
// client's request for the GetConnectors 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 GetConnectors 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 GetConnectors method directly
// instead.
// See GetConnectors for more information on using the GetConnectors
// 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 GetConnectorsRequest method.
// req, resp := client.GetConnectorsRequest(params)
@@ -526,8 +520,12 @@ func (c *SMS) GetConnectorsPages(input *GetConnectorsInput, fn func(*GetConnecto
func (c *SMS) GetConnectorsPagesWithContext(ctx aws.Context, input *GetConnectorsInput, fn func(*GetConnectorsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
inCpy := *input
req, _ := c.GetConnectorsRequest(&inCpy)
var inCpy *GetConnectorsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.GetConnectorsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -545,19 +543,18 @@ const opGetReplicationJobs = "GetReplicationJobs"
// GetReplicationJobsRequest generates a "aws/request.Request" representing the
// client's request for the GetReplicationJobs 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 GetReplicationJobs 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 GetReplicationJobs method directly
// instead.
// See GetReplicationJobs for more information on using the GetReplicationJobs
// 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 GetReplicationJobsRequest method.
// req, resp := client.GetReplicationJobsRequest(params)
@@ -668,8 +665,12 @@ func (c *SMS) GetReplicationJobsPages(input *GetReplicationJobsInput, fn func(*G
func (c *SMS) GetReplicationJobsPagesWithContext(ctx aws.Context, input *GetReplicationJobsInput, fn func(*GetReplicationJobsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
inCpy := *input
req, _ := c.GetReplicationJobsRequest(&inCpy)
var inCpy *GetReplicationJobsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.GetReplicationJobsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -687,19 +688,18 @@ const opGetReplicationRuns = "GetReplicationRuns"
// GetReplicationRunsRequest generates a "aws/request.Request" representing the
// client's request for the GetReplicationRuns 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 GetReplicationRuns 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 GetReplicationRuns method directly
// instead.
// See GetReplicationRuns for more information on using the GetReplicationRuns
// 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 GetReplicationRunsRequest method.
// req, resp := client.GetReplicationRunsRequest(params)
@@ -810,8 +810,12 @@ func (c *SMS) GetReplicationRunsPages(input *GetReplicationRunsInput, fn func(*G
func (c *SMS) GetReplicationRunsPagesWithContext(ctx aws.Context, input *GetReplicationRunsInput, fn func(*GetReplicationRunsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
inCpy := *input
req, _ := c.GetReplicationRunsRequest(&inCpy)
var inCpy *GetReplicationRunsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.GetReplicationRunsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -829,19 +833,18 @@ const opGetServers = "GetServers"
// GetServersRequest generates a "aws/request.Request" representing the
// client's request for the GetServers 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 GetServers 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 GetServers method directly
// instead.
// See GetServers for more information on using the GetServers
// 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 GetServersRequest method.
// req, resp := client.GetServersRequest(params)
@@ -943,8 +946,12 @@ func (c *SMS) GetServersPages(input *GetServersInput, fn func(*GetServersOutput,
func (c *SMS) GetServersPagesWithContext(ctx aws.Context, input *GetServersInput, fn func(*GetServersOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
inCpy := *input
req, _ := c.GetServersRequest(&inCpy)
var inCpy *GetServersInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.GetServersRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -962,19 +969,18 @@ const opImportServerCatalog = "ImportServerCatalog"
// ImportServerCatalogRequest generates a "aws/request.Request" representing the
// client's request for the ImportServerCatalog 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 ImportServerCatalog 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 ImportServerCatalog method directly
// instead.
// See ImportServerCatalog for more information on using the ImportServerCatalog
// 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 ImportServerCatalogRequest method.
// req, resp := client.ImportServerCatalogRequest(params)
@@ -1062,19 +1068,18 @@ const opStartOnDemandReplicationRun = "StartOnDemandReplicationRun"
// StartOnDemandReplicationRunRequest generates a "aws/request.Request" representing the
// client's request for the StartOnDemandReplicationRun 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 StartOnDemandReplicationRun 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 StartOnDemandReplicationRun method directly
// instead.
// See StartOnDemandReplicationRun for more information on using the StartOnDemandReplicationRun
// 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 StartOnDemandReplicationRunRequest method.
// req, resp := client.StartOnDemandReplicationRunRequest(params)
@@ -1162,19 +1167,18 @@ const opUpdateReplicationJob = "UpdateReplicationJob"
// UpdateReplicationJobRequest generates a "aws/request.Request" representing the
// client's request for the UpdateReplicationJob 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 UpdateReplicationJob 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 UpdateReplicationJob method directly
// instead.
// See UpdateReplicationJob for more information on using the UpdateReplicationJob
// 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 UpdateReplicationJobRequest method.
// req, resp := client.UpdateReplicationJobRequest(params)
+29
View File
@@ -0,0 +1,29 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package sms provides the client and types for making API
// requests to AWS Server Migration Service.
//
// Amazon Server Migration Service automates the process of migrating servers
// to EC2.
//
// See https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24 for more information on this service.
//
// See sms package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/sms/
//
// Using the Client
//
// To AWS Server Migration Service 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 AWS Server Migration Service client SMS for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/sms/#New
package sms
+1 -1
View File
@@ -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 sms
-260
View File
@@ -1,260 +0,0 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package sms_test
import (
"bytes"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sms"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleSMS_CreateReplicationJob() {
sess := session.Must(session.NewSession())
svc := sms.New(sess)
params := &sms.CreateReplicationJobInput{
Frequency: aws.Int64(1), // Required
SeedReplicationTime: aws.Time(time.Now()), // Required
ServerId: aws.String("ServerId"), // Required
Description: aws.String("Description"),
LicenseType: aws.String("LicenseType"),
RoleName: aws.String("RoleName"),
}
resp, err := svc.CreateReplicationJob(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleSMS_DeleteReplicationJob() {
sess := session.Must(session.NewSession())
svc := sms.New(sess)
params := &sms.DeleteReplicationJobInput{
ReplicationJobId: aws.String("ReplicationJobId"), // Required
}
resp, err := svc.DeleteReplicationJob(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleSMS_DeleteServerCatalog() {
sess := session.Must(session.NewSession())
svc := sms.New(sess)
var params *sms.DeleteServerCatalogInput
resp, err := svc.DeleteServerCatalog(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleSMS_DisassociateConnector() {
sess := session.Must(session.NewSession())
svc := sms.New(sess)
params := &sms.DisassociateConnectorInput{
ConnectorId: aws.String("ConnectorId"), // Required
}
resp, err := svc.DisassociateConnector(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleSMS_GetConnectors() {
sess := session.Must(session.NewSession())
svc := sms.New(sess)
params := &sms.GetConnectorsInput{
MaxResults: aws.Int64(1),
NextToken: aws.String("NextToken"),
}
resp, err := svc.GetConnectors(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleSMS_GetReplicationJobs() {
sess := session.Must(session.NewSession())
svc := sms.New(sess)
params := &sms.GetReplicationJobsInput{
MaxResults: aws.Int64(1),
NextToken: aws.String("NextToken"),
ReplicationJobId: aws.String("ReplicationJobId"),
}
resp, err := svc.GetReplicationJobs(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleSMS_GetReplicationRuns() {
sess := session.Must(session.NewSession())
svc := sms.New(sess)
params := &sms.GetReplicationRunsInput{
ReplicationJobId: aws.String("ReplicationJobId"), // Required
MaxResults: aws.Int64(1),
NextToken: aws.String("NextToken"),
}
resp, err := svc.GetReplicationRuns(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleSMS_GetServers() {
sess := session.Must(session.NewSession())
svc := sms.New(sess)
params := &sms.GetServersInput{
MaxResults: aws.Int64(1),
NextToken: aws.String("NextToken"),
}
resp, err := svc.GetServers(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleSMS_ImportServerCatalog() {
sess := session.Must(session.NewSession())
svc := sms.New(sess)
var params *sms.ImportServerCatalogInput
resp, err := svc.ImportServerCatalog(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleSMS_StartOnDemandReplicationRun() {
sess := session.Must(session.NewSession())
svc := sms.New(sess)
params := &sms.StartOnDemandReplicationRunInput{
ReplicationJobId: aws.String("ReplicationJobId"), // Required
Description: aws.String("Description"),
}
resp, err := svc.StartOnDemandReplicationRun(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleSMS_UpdateReplicationJob() {
sess := session.Must(session.NewSession())
svc := sms.New(sess)
params := &sms.UpdateReplicationJobInput{
ReplicationJobId: aws.String("ReplicationJobId"), // Required
Description: aws.String("Description"),
Frequency: aws.Int64(1),
LicenseType: aws.String("LicenseType"),
NextReplicationRunStartTime: aws.Time(time.Now()),
RoleName: aws.String("RoleName"),
}
resp, err := svc.UpdateReplicationJob(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
+7 -6
View File
@@ -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 sms
@@ -11,11 +11,12 @@ import (
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// Amazon Server Migration Service automates the process of migrating servers
// to EC2.
// The service client's operations are safe to be used concurrently.
// It is not safe to mutate any of the client's properties though.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24
// SMS provides the API operation methods for making requests to
// AWS Server Migration Service. See this package's package overview docs
// for details on the service.
//
// SMS methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type SMS struct {
*client.Client
}
+2 -2
View File
@@ -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 smsiface provides an interface to enable mocking the AWS Server Migration Service 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
// // AWS Server Migration Service.