Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
6137 lines (5242 sloc) 205 KB
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package sms
import (
"time"
"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 opCreateApp = "CreateApp"
// CreateAppRequest generates a "aws/request.Request" representing the
// client's request for the CreateApp operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateApp for more information on using the CreateApp
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateAppRequest method.
// req, resp := client.CreateAppRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateApp
func (c *SMS) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) {
op := &request.Operation{
Name: opCreateApp,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateAppInput{}
}
output = &CreateAppOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateApp API operation for AWS Server Migration Service.
//
// Creates an application. An application consists of one or more server groups.
// Each server group contain one or more servers.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation CreateApp for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateApp
func (c *SMS) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) {
req, out := c.CreateAppRequest(input)
return out, req.Send()
}
// CreateAppWithContext is the same as CreateApp with the addition of
// the ability to pass a context and additional request options.
//
// See CreateApp for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) CreateAppWithContext(ctx aws.Context, input *CreateAppInput, opts ...request.Option) (*CreateAppOutput, error) {
req, out := c.CreateAppRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateReplicationJob = "CreateReplicationJob"
// CreateReplicationJobRequest generates a "aws/request.Request" representing the
// client's request for the CreateReplicationJob operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See 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.
//
//
// // Example sending a request using the CreateReplicationJobRequest method.
// req, resp := client.CreateReplicationJobRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJob
func (c *SMS) CreateReplicationJobRequest(input *CreateReplicationJobInput) (req *request.Request, output *CreateReplicationJobOutput) {
op := &request.Operation{
Name: opCreateReplicationJob,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateReplicationJobInput{}
}
output = &CreateReplicationJobOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateReplicationJob API operation for AWS Server Migration Service.
//
// Creates a replication job. The replication job schedules periodic replication
// runs to replicate your server to AWS. Each replication run creates an Amazon
// Machine Image (AMI).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation CreateReplicationJob for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException"
// The specified server cannot be replicated.
//
// * ErrCodeReplicationJobAlreadyExistsException "ReplicationJobAlreadyExistsException"
// The specified replication job already exists.
//
// * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException"
// There are no connectors available.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeTemporarilyUnavailableException "TemporarilyUnavailableException"
// The service is temporarily unavailable.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJob
func (c *SMS) CreateReplicationJob(input *CreateReplicationJobInput) (*CreateReplicationJobOutput, error) {
req, out := c.CreateReplicationJobRequest(input)
return out, req.Send()
}
// CreateReplicationJobWithContext is the same as CreateReplicationJob with the addition of
// the ability to pass a context and additional request options.
//
// See CreateReplicationJob for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) CreateReplicationJobWithContext(ctx aws.Context, input *CreateReplicationJobInput, opts ...request.Option) (*CreateReplicationJobOutput, error) {
req, out := c.CreateReplicationJobRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteApp = "DeleteApp"
// DeleteAppRequest generates a "aws/request.Request" representing the
// client's request for the DeleteApp operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteApp for more information on using the DeleteApp
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteAppRequest method.
// req, resp := client.DeleteAppRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteApp
func (c *SMS) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) {
op := &request.Operation{
Name: opDeleteApp,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteAppInput{}
}
output = &DeleteAppOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteApp API operation for AWS Server Migration Service.
//
// Deletes an existing application. Optionally deletes the launched stack associated
// with the application and all AWS SMS replication jobs for servers in the
// application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation DeleteApp for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteApp
func (c *SMS) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) {
req, out := c.DeleteAppRequest(input)
return out, req.Send()
}
// DeleteAppWithContext is the same as DeleteApp with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteApp for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) DeleteAppWithContext(ctx aws.Context, input *DeleteAppInput, opts ...request.Option) (*DeleteAppOutput, error) {
req, out := c.DeleteAppRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteAppLaunchConfiguration = "DeleteAppLaunchConfiguration"
// DeleteAppLaunchConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteAppLaunchConfiguration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteAppLaunchConfiguration for more information on using the DeleteAppLaunchConfiguration
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteAppLaunchConfigurationRequest method.
// req, resp := client.DeleteAppLaunchConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppLaunchConfiguration
func (c *SMS) DeleteAppLaunchConfigurationRequest(input *DeleteAppLaunchConfigurationInput) (req *request.Request, output *DeleteAppLaunchConfigurationOutput) {
op := &request.Operation{
Name: opDeleteAppLaunchConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteAppLaunchConfigurationInput{}
}
output = &DeleteAppLaunchConfigurationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteAppLaunchConfiguration API operation for AWS Server Migration Service.
//
// Deletes existing launch configuration for an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation DeleteAppLaunchConfiguration for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppLaunchConfiguration
func (c *SMS) DeleteAppLaunchConfiguration(input *DeleteAppLaunchConfigurationInput) (*DeleteAppLaunchConfigurationOutput, error) {
req, out := c.DeleteAppLaunchConfigurationRequest(input)
return out, req.Send()
}
// DeleteAppLaunchConfigurationWithContext is the same as DeleteAppLaunchConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteAppLaunchConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) DeleteAppLaunchConfigurationWithContext(ctx aws.Context, input *DeleteAppLaunchConfigurationInput, opts ...request.Option) (*DeleteAppLaunchConfigurationOutput, error) {
req, out := c.DeleteAppLaunchConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteAppReplicationConfiguration = "DeleteAppReplicationConfiguration"
// DeleteAppReplicationConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteAppReplicationConfiguration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteAppReplicationConfiguration for more information on using the DeleteAppReplicationConfiguration
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteAppReplicationConfigurationRequest method.
// req, resp := client.DeleteAppReplicationConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppReplicationConfiguration
func (c *SMS) DeleteAppReplicationConfigurationRequest(input *DeleteAppReplicationConfigurationInput) (req *request.Request, output *DeleteAppReplicationConfigurationOutput) {
op := &request.Operation{
Name: opDeleteAppReplicationConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteAppReplicationConfigurationInput{}
}
output = &DeleteAppReplicationConfigurationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteAppReplicationConfiguration API operation for AWS Server Migration Service.
//
// Deletes existing replication configuration for an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation DeleteAppReplicationConfiguration for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppReplicationConfiguration
func (c *SMS) DeleteAppReplicationConfiguration(input *DeleteAppReplicationConfigurationInput) (*DeleteAppReplicationConfigurationOutput, error) {
req, out := c.DeleteAppReplicationConfigurationRequest(input)
return out, req.Send()
}
// DeleteAppReplicationConfigurationWithContext is the same as DeleteAppReplicationConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteAppReplicationConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) DeleteAppReplicationConfigurationWithContext(ctx aws.Context, input *DeleteAppReplicationConfigurationInput, opts ...request.Option) (*DeleteAppReplicationConfigurationOutput, error) {
req, out := c.DeleteAppReplicationConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteReplicationJob = "DeleteReplicationJob"
// DeleteReplicationJobRequest generates a "aws/request.Request" representing the
// client's request for the DeleteReplicationJob operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See 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.
//
//
// // Example sending a request using the DeleteReplicationJobRequest method.
// req, resp := client.DeleteReplicationJobRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob
func (c *SMS) DeleteReplicationJobRequest(input *DeleteReplicationJobInput) (req *request.Request, output *DeleteReplicationJobOutput) {
op := &request.Operation{
Name: opDeleteReplicationJob,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteReplicationJobInput{}
}
output = &DeleteReplicationJobOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteReplicationJob API operation for AWS Server Migration Service.
//
// Deletes the specified replication job.
//
// After you delete a replication job, there are no further replication runs.
// AWS deletes the contents of the Amazon S3 bucket used to store AWS SMS artifacts.
// The AMIs created by the replication runs are not deleted.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation DeleteReplicationJob for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException"
// The specified replication job does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob
func (c *SMS) DeleteReplicationJob(input *DeleteReplicationJobInput) (*DeleteReplicationJobOutput, error) {
req, out := c.DeleteReplicationJobRequest(input)
return out, req.Send()
}
// DeleteReplicationJobWithContext is the same as DeleteReplicationJob with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteReplicationJob for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) DeleteReplicationJobWithContext(ctx aws.Context, input *DeleteReplicationJobInput, opts ...request.Option) (*DeleteReplicationJobOutput, error) {
req, out := c.DeleteReplicationJobRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteServerCatalog = "DeleteServerCatalog"
// DeleteServerCatalogRequest generates a "aws/request.Request" representing the
// client's request for the DeleteServerCatalog operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See 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.
//
//
// // Example sending a request using the DeleteServerCatalogRequest method.
// req, resp := client.DeleteServerCatalogRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalog
func (c *SMS) DeleteServerCatalogRequest(input *DeleteServerCatalogInput) (req *request.Request, output *DeleteServerCatalogOutput) {
op := &request.Operation{
Name: opDeleteServerCatalog,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteServerCatalogInput{}
}
output = &DeleteServerCatalogOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteServerCatalog API operation for AWS Server Migration Service.
//
// Deletes all servers from your server catalog.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation DeleteServerCatalog for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalog
func (c *SMS) DeleteServerCatalog(input *DeleteServerCatalogInput) (*DeleteServerCatalogOutput, error) {
req, out := c.DeleteServerCatalogRequest(input)
return out, req.Send()
}
// DeleteServerCatalogWithContext is the same as DeleteServerCatalog with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteServerCatalog for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) DeleteServerCatalogWithContext(ctx aws.Context, input *DeleteServerCatalogInput, opts ...request.Option) (*DeleteServerCatalogOutput, error) {
req, out := c.DeleteServerCatalogRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDisassociateConnector = "DisassociateConnector"
// DisassociateConnectorRequest generates a "aws/request.Request" representing the
// client's request for the DisassociateConnector operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See 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.
//
//
// // Example sending a request using the DisassociateConnectorRequest method.
// req, resp := client.DisassociateConnectorRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnector
func (c *SMS) DisassociateConnectorRequest(input *DisassociateConnectorInput) (req *request.Request, output *DisassociateConnectorOutput) {
op := &request.Operation{
Name: opDisassociateConnector,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DisassociateConnectorInput{}
}
output = &DisassociateConnectorOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DisassociateConnector API operation for AWS Server Migration Service.
//
// Disassociates the specified connector from AWS SMS.
//
// After you disassociate a connector, it is no longer available to support
// replication jobs.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation DisassociateConnector for usage and error information.
//
// Returned Error Codes:
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnector
func (c *SMS) DisassociateConnector(input *DisassociateConnectorInput) (*DisassociateConnectorOutput, error) {
req, out := c.DisassociateConnectorRequest(input)
return out, req.Send()
}
// DisassociateConnectorWithContext is the same as DisassociateConnector with the addition of
// the ability to pass a context and additional request options.
//
// See DisassociateConnector for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) DisassociateConnectorWithContext(ctx aws.Context, input *DisassociateConnectorInput, opts ...request.Option) (*DisassociateConnectorOutput, error) {
req, out := c.DisassociateConnectorRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGenerateChangeSet = "GenerateChangeSet"
// GenerateChangeSetRequest generates a "aws/request.Request" representing the
// client's request for the GenerateChangeSet operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GenerateChangeSet for more information on using the GenerateChangeSet
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GenerateChangeSetRequest method.
// req, resp := client.GenerateChangeSetRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateChangeSet
func (c *SMS) GenerateChangeSetRequest(input *GenerateChangeSetInput) (req *request.Request, output *GenerateChangeSetOutput) {
op := &request.Operation{
Name: opGenerateChangeSet,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GenerateChangeSetInput{}
}
output = &GenerateChangeSetOutput{}
req = c.newRequest(op, input, output)
return
}
// GenerateChangeSet API operation for AWS Server Migration Service.
//
// Generates a target change set for a currently launched stack and writes it
// to an Amazon S3 object in the customer’s Amazon S3 bucket.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation GenerateChangeSet for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateChangeSet
func (c *SMS) GenerateChangeSet(input *GenerateChangeSetInput) (*GenerateChangeSetOutput, error) {
req, out := c.GenerateChangeSetRequest(input)
return out, req.Send()
}
// GenerateChangeSetWithContext is the same as GenerateChangeSet with the addition of
// the ability to pass a context and additional request options.
//
// See GenerateChangeSet for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) GenerateChangeSetWithContext(ctx aws.Context, input *GenerateChangeSetInput, opts ...request.Option) (*GenerateChangeSetOutput, error) {
req, out := c.GenerateChangeSetRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGenerateTemplate = "GenerateTemplate"
// GenerateTemplateRequest generates a "aws/request.Request" representing the
// client's request for the GenerateTemplate operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GenerateTemplate for more information on using the GenerateTemplate
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GenerateTemplateRequest method.
// req, resp := client.GenerateTemplateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateTemplate
func (c *SMS) GenerateTemplateRequest(input *GenerateTemplateInput) (req *request.Request, output *GenerateTemplateOutput) {
op := &request.Operation{
Name: opGenerateTemplate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GenerateTemplateInput{}
}
output = &GenerateTemplateOutput{}
req = c.newRequest(op, input, output)
return
}
// GenerateTemplate API operation for AWS Server Migration Service.
//
// Generates an Amazon CloudFormation template based on the current launch configuration
// and writes it to an Amazon S3 object in the customer’s Amazon S3 bucket.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation GenerateTemplate for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateTemplate
func (c *SMS) GenerateTemplate(input *GenerateTemplateInput) (*GenerateTemplateOutput, error) {
req, out := c.GenerateTemplateRequest(input)
return out, req.Send()
}
// GenerateTemplateWithContext is the same as GenerateTemplate with the addition of
// the ability to pass a context and additional request options.
//
// See GenerateTemplate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) GenerateTemplateWithContext(ctx aws.Context, input *GenerateTemplateInput, opts ...request.Option) (*GenerateTemplateOutput, error) {
req, out := c.GenerateTemplateRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetApp = "GetApp"
// GetAppRequest generates a "aws/request.Request" representing the
// client's request for the GetApp operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetApp for more information on using the GetApp
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetAppRequest method.
// req, resp := client.GetAppRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetApp
func (c *SMS) GetAppRequest(input *GetAppInput) (req *request.Request, output *GetAppOutput) {
op := &request.Operation{
Name: opGetApp,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetAppInput{}
}
output = &GetAppOutput{}
req = c.newRequest(op, input, output)
return
}
// GetApp API operation for AWS Server Migration Service.
//
// Retrieve information about an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation GetApp for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetApp
func (c *SMS) GetApp(input *GetAppInput) (*GetAppOutput, error) {
req, out := c.GetAppRequest(input)
return out, req.Send()
}
// GetAppWithContext is the same as GetApp with the addition of
// the ability to pass a context and additional request options.
//
// See GetApp for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) GetAppWithContext(ctx aws.Context, input *GetAppInput, opts ...request.Option) (*GetAppOutput, error) {
req, out := c.GetAppRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetAppLaunchConfiguration = "GetAppLaunchConfiguration"
// GetAppLaunchConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the GetAppLaunchConfiguration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetAppLaunchConfiguration for more information on using the GetAppLaunchConfiguration
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetAppLaunchConfigurationRequest method.
// req, resp := client.GetAppLaunchConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppLaunchConfiguration
func (c *SMS) GetAppLaunchConfigurationRequest(input *GetAppLaunchConfigurationInput) (req *request.Request, output *GetAppLaunchConfigurationOutput) {
op := &request.Operation{
Name: opGetAppLaunchConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetAppLaunchConfigurationInput{}
}
output = &GetAppLaunchConfigurationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetAppLaunchConfiguration API operation for AWS Server Migration Service.
//
// Retrieves the application launch configuration associated with an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation GetAppLaunchConfiguration for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppLaunchConfiguration
func (c *SMS) GetAppLaunchConfiguration(input *GetAppLaunchConfigurationInput) (*GetAppLaunchConfigurationOutput, error) {
req, out := c.GetAppLaunchConfigurationRequest(input)
return out, req.Send()
}
// GetAppLaunchConfigurationWithContext is the same as GetAppLaunchConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See GetAppLaunchConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) GetAppLaunchConfigurationWithContext(ctx aws.Context, input *GetAppLaunchConfigurationInput, opts ...request.Option) (*GetAppLaunchConfigurationOutput, error) {
req, out := c.GetAppLaunchConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetAppReplicationConfiguration = "GetAppReplicationConfiguration"
// GetAppReplicationConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the GetAppReplicationConfiguration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetAppReplicationConfiguration for more information on using the GetAppReplicationConfiguration
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetAppReplicationConfigurationRequest method.
// req, resp := client.GetAppReplicationConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppReplicationConfiguration
func (c *SMS) GetAppReplicationConfigurationRequest(input *GetAppReplicationConfigurationInput) (req *request.Request, output *GetAppReplicationConfigurationOutput) {
op := &request.Operation{
Name: opGetAppReplicationConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetAppReplicationConfigurationInput{}
}
output = &GetAppReplicationConfigurationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetAppReplicationConfiguration API operation for AWS Server Migration Service.
//
// Retrieves an application replication configuration associatd with an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation GetAppReplicationConfiguration for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppReplicationConfiguration
func (c *SMS) GetAppReplicationConfiguration(input *GetAppReplicationConfigurationInput) (*GetAppReplicationConfigurationOutput, error) {
req, out := c.GetAppReplicationConfigurationRequest(input)
return out, req.Send()
}
// GetAppReplicationConfigurationWithContext is the same as GetAppReplicationConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See GetAppReplicationConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) GetAppReplicationConfigurationWithContext(ctx aws.Context, input *GetAppReplicationConfigurationInput, opts ...request.Option) (*GetAppReplicationConfigurationOutput, error) {
req, out := c.GetAppReplicationConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetConnectors = "GetConnectors"
// GetConnectorsRequest generates a "aws/request.Request" representing the
// client's request for the GetConnectors operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See 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.
//
//
// // Example sending a request using the GetConnectorsRequest method.
// req, resp := client.GetConnectorsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetConnectors
func (c *SMS) GetConnectorsRequest(input *GetConnectorsInput) (req *request.Request, output *GetConnectorsOutput) {
op := &request.Operation{
Name: opGetConnectors,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &GetConnectorsInput{}
}
output = &GetConnectorsOutput{}
req = c.newRequest(op, input, output)
return
}
// GetConnectors API operation for AWS Server Migration Service.
//
// Describes the connectors registered with the AWS SMS.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation GetConnectors for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetConnectors
func (c *SMS) GetConnectors(input *GetConnectorsInput) (*GetConnectorsOutput, error) {
req, out := c.GetConnectorsRequest(input)
return out, req.Send()
}
// GetConnectorsWithContext is the same as GetConnectors with the addition of
// the ability to pass a context and additional request options.
//
// See GetConnectors for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) GetConnectorsWithContext(ctx aws.Context, input *GetConnectorsInput, opts ...request.Option) (*GetConnectorsOutput, error) {
req, out := c.GetConnectorsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// GetConnectorsPages iterates over the pages of a GetConnectors operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetConnectors method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetConnectors operation.
// pageNum := 0
// err := client.GetConnectorsPages(params,
// func(page *sms.GetConnectorsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *SMS) GetConnectorsPages(input *GetConnectorsInput, fn func(*GetConnectorsOutput, bool) bool) error {
return c.GetConnectorsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// GetConnectorsPagesWithContext same as GetConnectorsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (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) {
var inCpy *GetConnectorsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.GetConnectorsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
cont := true
for p.Next() && cont {
cont = fn(p.Page().(*GetConnectorsOutput), !p.HasNextPage())
}
return p.Err()
}
const opGetReplicationJobs = "GetReplicationJobs"
// GetReplicationJobsRequest generates a "aws/request.Request" representing the
// client's request for the GetReplicationJobs operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See 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.
//
//
// // Example sending a request using the GetReplicationJobsRequest method.
// req, resp := client.GetReplicationJobsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationJobs
func (c *SMS) GetReplicationJobsRequest(input *GetReplicationJobsInput) (req *request.Request, output *GetReplicationJobsOutput) {
op := &request.Operation{
Name: opGetReplicationJobs,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &GetReplicationJobsInput{}
}
output = &GetReplicationJobsOutput{}
req = c.newRequest(op, input, output)
return
}
// GetReplicationJobs API operation for AWS Server Migration Service.
//
// Describes the specified replication job or all of your replication jobs.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation GetReplicationJobs for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationJobs
func (c *SMS) GetReplicationJobs(input *GetReplicationJobsInput) (*GetReplicationJobsOutput, error) {
req, out := c.GetReplicationJobsRequest(input)
return out, req.Send()
}
// GetReplicationJobsWithContext is the same as GetReplicationJobs with the addition of
// the ability to pass a context and additional request options.
//
// See GetReplicationJobs for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) GetReplicationJobsWithContext(ctx aws.Context, input *GetReplicationJobsInput, opts ...request.Option) (*GetReplicationJobsOutput, error) {
req, out := c.GetReplicationJobsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// GetReplicationJobsPages iterates over the pages of a GetReplicationJobs operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetReplicationJobs method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetReplicationJobs operation.
// pageNum := 0
// err := client.GetReplicationJobsPages(params,
// func(page *sms.GetReplicationJobsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *SMS) GetReplicationJobsPages(input *GetReplicationJobsInput, fn func(*GetReplicationJobsOutput, bool) bool) error {
return c.GetReplicationJobsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// GetReplicationJobsPagesWithContext same as GetReplicationJobsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (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) {
var inCpy *GetReplicationJobsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.GetReplicationJobsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
cont := true
for p.Next() && cont {
cont = fn(p.Page().(*GetReplicationJobsOutput), !p.HasNextPage())
}
return p.Err()
}
const opGetReplicationRuns = "GetReplicationRuns"
// GetReplicationRunsRequest generates a "aws/request.Request" representing the
// client's request for the GetReplicationRuns operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See 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.
//
//
// // Example sending a request using the GetReplicationRunsRequest method.
// req, resp := client.GetReplicationRunsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationRuns
func (c *SMS) GetReplicationRunsRequest(input *GetReplicationRunsInput) (req *request.Request, output *GetReplicationRunsOutput) {
op := &request.Operation{
Name: opGetReplicationRuns,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &GetReplicationRunsInput{}
}
output = &GetReplicationRunsOutput{}
req = c.newRequest(op, input, output)
return
}
// GetReplicationRuns API operation for AWS Server Migration Service.
//
// Describes the replication runs for the specified replication job.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation GetReplicationRuns for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationRuns
func (c *SMS) GetReplicationRuns(input *GetReplicationRunsInput) (*GetReplicationRunsOutput, error) {
req, out := c.GetReplicationRunsRequest(input)
return out, req.Send()
}
// GetReplicationRunsWithContext is the same as GetReplicationRuns with the addition of
// the ability to pass a context and additional request options.
//
// See GetReplicationRuns for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) GetReplicationRunsWithContext(ctx aws.Context, input *GetReplicationRunsInput, opts ...request.Option) (*GetReplicationRunsOutput, error) {
req, out := c.GetReplicationRunsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// GetReplicationRunsPages iterates over the pages of a GetReplicationRuns operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetReplicationRuns method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetReplicationRuns operation.
// pageNum := 0
// err := client.GetReplicationRunsPages(params,
// func(page *sms.GetReplicationRunsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *SMS) GetReplicationRunsPages(input *GetReplicationRunsInput, fn func(*GetReplicationRunsOutput, bool) bool) error {
return c.GetReplicationRunsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// GetReplicationRunsPagesWithContext same as GetReplicationRunsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (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) {
var inCpy *GetReplicationRunsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.GetReplicationRunsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
cont := true
for p.Next() && cont {
cont = fn(p.Page().(*GetReplicationRunsOutput), !p.HasNextPage())
}
return p.Err()
}
const opGetServers = "GetServers"
// GetServersRequest generates a "aws/request.Request" representing the
// client's request for the GetServers operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See 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.
//
//
// // Example sending a request using the GetServersRequest method.
// req, resp := client.GetServersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetServers
func (c *SMS) GetServersRequest(input *GetServersInput) (req *request.Request, output *GetServersOutput) {
op := &request.Operation{
Name: opGetServers,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &GetServersInput{}
}
output = &GetServersOutput{}
req = c.newRequest(op, input, output)
return
}
// GetServers API operation for AWS Server Migration Service.
//
// Describes the servers in your server catalog.
//
// Before you can describe your servers, you must import them using ImportServerCatalog.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation GetServers for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetServers
func (c *SMS) GetServers(input *GetServersInput) (*GetServersOutput, error) {
req, out := c.GetServersRequest(input)
return out, req.Send()
}
// GetServersWithContext is the same as GetServers with the addition of
// the ability to pass a context and additional request options.
//
// See GetServers for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) GetServersWithContext(ctx aws.Context, input *GetServersInput, opts ...request.Option) (*GetServersOutput, error) {
req, out := c.GetServersRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// GetServersPages iterates over the pages of a GetServers operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetServers method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a GetServers operation.
// pageNum := 0
// err := client.GetServersPages(params,
// func(page *sms.GetServersOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *SMS) GetServersPages(input *GetServersInput, fn func(*GetServersOutput, bool) bool) error {
return c.GetServersPagesWithContext(aws.BackgroundContext(), input, fn)
}
// GetServersPagesWithContext same as GetServersPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (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) {
var inCpy *GetServersInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.GetServersRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
cont := true
for p.Next() && cont {
cont = fn(p.Page().(*GetServersOutput), !p.HasNextPage())
}
return p.Err()
}
const opImportServerCatalog = "ImportServerCatalog"
// ImportServerCatalogRequest generates a "aws/request.Request" representing the
// client's request for the ImportServerCatalog operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See 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.
//
//
// // Example sending a request using the ImportServerCatalogRequest method.
// req, resp := client.ImportServerCatalogRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalog
func (c *SMS) ImportServerCatalogRequest(input *ImportServerCatalogInput) (req *request.Request, output *ImportServerCatalogOutput) {
op := &request.Operation{
Name: opImportServerCatalog,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ImportServerCatalogInput{}
}
output = &ImportServerCatalogOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// ImportServerCatalog API operation for AWS Server Migration Service.
//
// Gathers a complete list of on-premises servers. Connectors must be installed
// and monitoring all servers that you want to import.
//
// This call returns immediately, but might take additional time to retrieve
// all the servers.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation ImportServerCatalog for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException"
// There are no connectors available.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalog
func (c *SMS) ImportServerCatalog(input *ImportServerCatalogInput) (*ImportServerCatalogOutput, error) {
req, out := c.ImportServerCatalogRequest(input)
return out, req.Send()
}
// ImportServerCatalogWithContext is the same as ImportServerCatalog with the addition of
// the ability to pass a context and additional request options.
//
// See ImportServerCatalog for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) ImportServerCatalogWithContext(ctx aws.Context, input *ImportServerCatalogInput, opts ...request.Option) (*ImportServerCatalogOutput, error) {
req, out := c.ImportServerCatalogRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opLaunchApp = "LaunchApp"
// LaunchAppRequest generates a "aws/request.Request" representing the
// client's request for the LaunchApp operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See LaunchApp for more information on using the LaunchApp
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the LaunchAppRequest method.
// req, resp := client.LaunchAppRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/LaunchApp
func (c *SMS) LaunchAppRequest(input *LaunchAppInput) (req *request.Request, output *LaunchAppOutput) {
op := &request.Operation{
Name: opLaunchApp,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &LaunchAppInput{}
}
output = &LaunchAppOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// LaunchApp API operation for AWS Server Migration Service.
//
// Launches an application stack.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation LaunchApp for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/LaunchApp
func (c *SMS) LaunchApp(input *LaunchAppInput) (*LaunchAppOutput, error) {
req, out := c.LaunchAppRequest(input)
return out, req.Send()
}
// LaunchAppWithContext is the same as LaunchApp with the addition of
// the ability to pass a context and additional request options.
//
// See LaunchApp for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) LaunchAppWithContext(ctx aws.Context, input *LaunchAppInput, opts ...request.Option) (*LaunchAppOutput, error) {
req, out := c.LaunchAppRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListApps = "ListApps"
// ListAppsRequest generates a "aws/request.Request" representing the
// client's request for the ListApps operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListApps for more information on using the ListApps
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListAppsRequest method.
// req, resp := client.ListAppsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ListApps
func (c *SMS) ListAppsRequest(input *ListAppsInput) (req *request.Request, output *ListAppsOutput) {
op := &request.Operation{
Name: opListApps,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListAppsInput{}
}
output = &ListAppsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListApps API operation for AWS Server Migration Service.
//
// Returns a list of summaries for all applications.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation ListApps for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ListApps
func (c *SMS) ListApps(input *ListAppsInput) (*ListAppsOutput, error) {
req, out := c.ListAppsRequest(input)
return out, req.Send()
}
// ListAppsWithContext is the same as ListApps with the addition of
// the ability to pass a context and additional request options.
//
// See ListApps for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) ListAppsWithContext(ctx aws.Context, input *ListAppsInput, opts ...request.Option) (*ListAppsOutput, error) {
req, out := c.ListAppsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opPutAppLaunchConfiguration = "PutAppLaunchConfiguration"
// PutAppLaunchConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the PutAppLaunchConfiguration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See PutAppLaunchConfiguration for more information on using the PutAppLaunchConfiguration
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the PutAppLaunchConfigurationRequest method.
// req, resp := client.PutAppLaunchConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppLaunchConfiguration
func (c *SMS) PutAppLaunchConfigurationRequest(input *PutAppLaunchConfigurationInput) (req *request.Request, output *PutAppLaunchConfigurationOutput) {
op := &request.Operation{
Name: opPutAppLaunchConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutAppLaunchConfigurationInput{}
}
output = &PutAppLaunchConfigurationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// PutAppLaunchConfiguration API operation for AWS Server Migration Service.
//
// Creates a launch configuration for an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation PutAppLaunchConfiguration for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppLaunchConfiguration
func (c *SMS) PutAppLaunchConfiguration(input *PutAppLaunchConfigurationInput) (*PutAppLaunchConfigurationOutput, error) {
req, out := c.PutAppLaunchConfigurationRequest(input)
return out, req.Send()
}
// PutAppLaunchConfigurationWithContext is the same as PutAppLaunchConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See PutAppLaunchConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) PutAppLaunchConfigurationWithContext(ctx aws.Context, input *PutAppLaunchConfigurationInput, opts ...request.Option) (*PutAppLaunchConfigurationOutput, error) {
req, out := c.PutAppLaunchConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opPutAppReplicationConfiguration = "PutAppReplicationConfiguration"
// PutAppReplicationConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the PutAppReplicationConfiguration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See PutAppReplicationConfiguration for more information on using the PutAppReplicationConfiguration
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the PutAppReplicationConfigurationRequest method.
// req, resp := client.PutAppReplicationConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppReplicationConfiguration
func (c *SMS) PutAppReplicationConfigurationRequest(input *PutAppReplicationConfigurationInput) (req *request.Request, output *PutAppReplicationConfigurationOutput) {
op := &request.Operation{
Name: opPutAppReplicationConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutAppReplicationConfigurationInput{}
}
output = &PutAppReplicationConfigurationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// PutAppReplicationConfiguration API operation for AWS Server Migration Service.
//
// Creates or updates a replication configuration for an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation PutAppReplicationConfiguration for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppReplicationConfiguration
func (c *SMS) PutAppReplicationConfiguration(input *PutAppReplicationConfigurationInput) (*PutAppReplicationConfigurationOutput, error) {
req, out := c.PutAppReplicationConfigurationRequest(input)
return out, req.Send()
}
// PutAppReplicationConfigurationWithContext is the same as PutAppReplicationConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See PutAppReplicationConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) PutAppReplicationConfigurationWithContext(ctx aws.Context, input *PutAppReplicationConfigurationInput, opts ...request.Option) (*PutAppReplicationConfigurationOutput, error) {
req, out := c.PutAppReplicationConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStartAppReplication = "StartAppReplication"
// StartAppReplicationRequest generates a "aws/request.Request" representing the
// client's request for the StartAppReplication operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See StartAppReplication for more information on using the StartAppReplication
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the StartAppReplicationRequest method.
// req, resp := client.StartAppReplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartAppReplication
func (c *SMS) StartAppReplicationRequest(input *StartAppReplicationInput) (req *request.Request, output *StartAppReplicationOutput) {
op := &request.Operation{
Name: opStartAppReplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &StartAppReplicationInput{}
}
output = &StartAppReplicationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// StartAppReplication API operation for AWS Server Migration Service.
//
// Starts replicating an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation StartAppReplication for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartAppReplication
func (c *SMS) StartAppReplication(input *StartAppReplicationInput) (*StartAppReplicationOutput, error) {
req, out := c.StartAppReplicationRequest(input)
return out, req.Send()
}
// StartAppReplicationWithContext is the same as StartAppReplication with the addition of
// the ability to pass a context and additional request options.
//
// See StartAppReplication for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) StartAppReplicationWithContext(ctx aws.Context, input *StartAppReplicationInput, opts ...request.Option) (*StartAppReplicationOutput, error) {
req, out := c.StartAppReplicationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStartOnDemandReplicationRun = "StartOnDemandReplicationRun"
// StartOnDemandReplicationRunRequest generates a "aws/request.Request" representing the
// client's request for the StartOnDemandReplicationRun operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See 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.
//
//
// // Example sending a request using the StartOnDemandReplicationRunRequest method.
// req, resp := client.StartOnDemandReplicationRunRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRun
func (c *SMS) StartOnDemandReplicationRunRequest(input *StartOnDemandReplicationRunInput) (req *request.Request, output *StartOnDemandReplicationRunOutput) {
op := &request.Operation{
Name: opStartOnDemandReplicationRun,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &StartOnDemandReplicationRunInput{}
}
output = &StartOnDemandReplicationRunOutput{}
req = c.newRequest(op, input, output)
return
}
// StartOnDemandReplicationRun API operation for AWS Server Migration Service.
//
// Starts an on-demand replication run for the specified replication job. This
// replication run starts immediately. This replication run is in addition to
// the ones already scheduled.
//
// There is a limit on the number of on-demand replications runs you can request
// in a 24-hour period.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation StartOnDemandReplicationRun for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// * ErrCodeReplicationRunLimitExceededException "ReplicationRunLimitExceededException"
// You have exceeded the number of on-demand replication runs you can request
// in a 24-hour period.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRun
func (c *SMS) StartOnDemandReplicationRun(input *StartOnDemandReplicationRunInput) (*StartOnDemandReplicationRunOutput, error) {
req, out := c.StartOnDemandReplicationRunRequest(input)
return out, req.Send()
}
// StartOnDemandReplicationRunWithContext is the same as StartOnDemandReplicationRun with the addition of
// the ability to pass a context and additional request options.
//
// See StartOnDemandReplicationRun for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) StartOnDemandReplicationRunWithContext(ctx aws.Context, input *StartOnDemandReplicationRunInput, opts ...request.Option) (*StartOnDemandReplicationRunOutput, error) {
req, out := c.StartOnDemandReplicationRunRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStopAppReplication = "StopAppReplication"
// StopAppReplicationRequest generates a "aws/request.Request" representing the
// client's request for the StopAppReplication operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See StopAppReplication for more information on using the StopAppReplication
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the StopAppReplicationRequest method.
// req, resp := client.StopAppReplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StopAppReplication
func (c *SMS) StopAppReplicationRequest(input *StopAppReplicationInput) (req *request.Request, output *StopAppReplicationOutput) {
op := &request.Operation{
Name: opStopAppReplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &StopAppReplicationInput{}
}
output = &StopAppReplicationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// StopAppReplication API operation for AWS Server Migration Service.
//
// Stops replicating an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation StopAppReplication for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StopAppReplication
func (c *SMS) StopAppReplication(input *StopAppReplicationInput) (*StopAppReplicationOutput, error) {
req, out := c.StopAppReplicationRequest(input)
return out, req.Send()
}
// StopAppReplicationWithContext is the same as StopAppReplication with the addition of
// the ability to pass a context and additional request options.
//
// See StopAppReplication for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) StopAppReplicationWithContext(ctx aws.Context, input *StopAppReplicationInput, opts ...request.Option) (*StopAppReplicationOutput, error) {
req, out := c.StopAppReplicationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opTerminateApp = "TerminateApp"
// TerminateAppRequest generates a "aws/request.Request" representing the
// client's request for the TerminateApp operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See TerminateApp for more information on using the TerminateApp
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the TerminateAppRequest method.
// req, resp := client.TerminateAppRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/TerminateApp
func (c *SMS) TerminateAppRequest(input *TerminateAppInput) (req *request.Request, output *TerminateAppOutput) {
op := &request.Operation{
Name: opTerminateApp,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &TerminateAppInput{}
}
output = &TerminateAppOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// TerminateApp API operation for AWS Server Migration Service.
//
// Terminates the stack for an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation TerminateApp for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/TerminateApp
func (c *SMS) TerminateApp(input *TerminateAppInput) (*TerminateAppOutput, error) {
req, out := c.TerminateAppRequest(input)
return out, req.Send()
}
// TerminateAppWithContext is the same as TerminateApp with the addition of
// the ability to pass a context and additional request options.
//
// See TerminateApp for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) TerminateAppWithContext(ctx aws.Context, input *TerminateAppInput, opts ...request.Option) (*TerminateAppOutput, error) {
req, out := c.TerminateAppRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateApp = "UpdateApp"
// UpdateAppRequest generates a "aws/request.Request" representing the
// client's request for the UpdateApp operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UpdateApp for more information on using the UpdateApp
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the UpdateAppRequest method.
// req, resp := client.UpdateAppRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateApp
func (c *SMS) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput) {
op := &request.Operation{
Name: opUpdateApp,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateAppInput{}
}
output = &UpdateAppOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateApp API operation for AWS Server Migration Service.
//
// Updates an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation UpdateApp for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateApp
func (c *SMS) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) {
req, out := c.UpdateAppRequest(input)
return out, req.Send()
}
// UpdateAppWithContext is the same as UpdateApp with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateApp for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) UpdateAppWithContext(ctx aws.Context, input *UpdateAppInput, opts ...request.Option) (*UpdateAppOutput, error) {
req, out := c.UpdateAppRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateReplicationJob = "UpdateReplicationJob"
// UpdateReplicationJobRequest generates a "aws/request.Request" representing the
// client's request for the UpdateReplicationJob operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See 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.
//
//
// // Example sending a request using the UpdateReplicationJobRequest method.
// req, resp := client.UpdateReplicationJobRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob
func (c *SMS) UpdateReplicationJobRequest(input *UpdateReplicationJobInput) (req *request.Request, output *UpdateReplicationJobOutput) {
op := &request.Operation{
Name: opUpdateReplicationJob,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateReplicationJobInput{}
}
output = &UpdateReplicationJobOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UpdateReplicationJob API operation for AWS Server Migration Service.
//
// Updates the specified settings for the specified replication job.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Server Migration Service's
// API operation UpdateReplicationJob for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInvalidParameterException "InvalidParameterException"
// A specified parameter is not valid.
//
// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
// A required parameter is missing.
//
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not allowed.
//
// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
// You lack permissions needed to perform this operation. Check your IAM policies,
// and ensure that you are using the correct access keys.
//
// * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException"
// The specified server cannot be replicated.
//
// * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException"
// The specified replication job does not exist.
//
// * ErrCodeInternalError "InternalError"
// An internal error occurred.
//
// * ErrCodeTemporarilyUnavailableException "TemporarilyUnavailableException"
// The service is temporarily unavailable.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob
func (c *SMS) UpdateReplicationJob(input *UpdateReplicationJobInput) (*UpdateReplicationJobOutput, error) {
req, out := c.UpdateReplicationJobRequest(input)
return out, req.Send()
}
// UpdateReplicationJobWithContext is the same as UpdateReplicationJob with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateReplicationJob for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *SMS) UpdateReplicationJobWithContext(ctx aws.Context, input *UpdateReplicationJobInput, opts ...request.Option) (*UpdateReplicationJobOutput, error) {
req, out := c.UpdateReplicationJobRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// Information about the application.
type AppSummary struct {
_ struct{} `type:"structure"`
// Unique ID of the application.
AppId *string `locationName:"appId" type:"string"`
// Time of creation of this application.
CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
// Description of the application.
Description *string `locationName:"description" type:"string"`
// Timestamp of the application's creation.
LastModified *time.Time `locationName:"lastModified" type:"timestamp"`
// Timestamp of the application's most recent successful replication.
LatestReplicationTime *time.Time `locationName:"latestReplicationTime" type:"timestamp"`
// Details about the latest launch of the application.
LaunchDetails *LaunchDetails `locationName:"launchDetails" type:"structure"`
// Launch status of the application.
LaunchStatus *string `locationName:"launchStatus" type:"string" enum:"AppLaunchStatus"`
// A message related to the launch status of the application.
LaunchStatusMessage *string `locationName:"launchStatusMessage" type:"string"`
// Name of the application.
Name *string `locationName:"name" type:"string"`
// Replication status of the application.
ReplicationStatus *string `locationName:"replicationStatus" type:"string" enum:"AppReplicationStatus"`
// A message related to the replication status of the application.
ReplicationStatusMessage *string `locationName:"replicationStatusMessage" type:"string"`
// Name of the service role in the customer's account used by AWS SMS.
RoleName *string `locationName:"roleName" type:"string"`
// Status of the application.
Status *string `locationName:"status" type:"string" enum:"AppStatus"`
// A message related to the status of the application
StatusMessage *string `locationName:"statusMessage" type:"string"`
// Number of server groups present in the application.
TotalServerGroups *int64 `locationName:"totalServerGroups" type:"integer"`
// Number of servers present in the application.
TotalServers *int64 `locationName:"totalServers" type:"integer"`
}
// String returns the string representation
func (s AppSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AppSummary) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *AppSummary) SetAppId(v string) *AppSummary {
s.AppId = &v
return s
}
// SetCreationTime sets the CreationTime field's value.
func (s *AppSummary) SetCreationTime(v time.Time) *AppSummary {
s.CreationTime = &v
return s
}
// SetDescription sets the Description field's value.
func (s *AppSummary) SetDescription(v string) *AppSummary {
s.Description = &v
return s
}
// SetLastModified sets the LastModified field's value.
func (s *AppSummary) SetLastModified(v time.Time) *AppSummary {
s.LastModified = &v
return s
}
// SetLatestReplicationTime sets the LatestReplicationTime field's value.
func (s *AppSummary) SetLatestReplicationTime(v time.Time) *AppSummary {
s.LatestReplicationTime = &v
return s
}
// SetLaunchDetails sets the LaunchDetails field's value.
func (s *AppSummary) SetLaunchDetails(v *LaunchDetails) *AppSummary {
s.LaunchDetails = v
return s
}
// SetLaunchStatus sets the LaunchStatus field's value.
func (s *AppSummary) SetLaunchStatus(v string) *AppSummary {
s.LaunchStatus = &v
return s
}
// SetLaunchStatusMessage sets the LaunchStatusMessage field's value.
func (s *AppSummary) SetLaunchStatusMessage(v string) *AppSummary {
s.LaunchStatusMessage = &v
return s
}
// SetName sets the Name field's value.
func (s *AppSummary) SetName(v string) *AppSummary {
s.Name = &v
return s
}
// SetReplicationStatus sets the ReplicationStatus field's value.
func (s *AppSummary) SetReplicationStatus(v string) *AppSummary {
s.ReplicationStatus = &v
return s
}
// SetReplicationStatusMessage sets the ReplicationStatusMessage field's value.
func (s *AppSummary) SetReplicationStatusMessage(v string) *AppSummary {
s.ReplicationStatusMessage = &v
return s
}
// SetRoleName sets the RoleName field's value.
func (s *AppSummary) SetRoleName(v string) *AppSummary {
s.RoleName = &v
return s
}
// SetStatus sets the Status field's value.
func (s *AppSummary) SetStatus(v string) *AppSummary {
s.Status = &v
return s
}
// SetStatusMessage sets the StatusMessage field's value.
func (s *AppSummary) SetStatusMessage(v string) *AppSummary {
s.StatusMessage = &v
return s
}
// SetTotalServerGroups sets the TotalServerGroups field's value.
func (s *AppSummary) SetTotalServerGroups(v int64) *AppSummary {
s.TotalServerGroups = &v
return s
}
// SetTotalServers sets the TotalServers field's value.
func (s *AppSummary) SetTotalServers(v int64) *AppSummary {
s.TotalServers = &v
return s
}
// Represents a connector.
type Connector struct {
_ struct{} `type:"structure"`
// The time the connector was associated.
AssociatedOn *time.Time `locationName:"associatedOn" type:"timestamp"`
// The capabilities of the connector.
CapabilityList []*string `locationName:"capabilityList" type:"list"`
// The identifier of the connector.
ConnectorId *string `locationName:"connectorId" type:"string"`
// The IP address of the connector.
IpAddress *string `locationName:"ipAddress" type:"string"`
// The MAC address of the connector.
MacAddress *string `locationName:"macAddress" type:"string"`
// The status of the connector.
Status *string `locationName:"status" type:"string" enum:"ConnectorStatus"`
// The connector version.
Version *string `locationName:"version" type:"string"`
// The identifier of the VM manager.
VmManagerId *string `locationName:"vmManagerId" type:"string"`
// The name of the VM manager.
VmManagerName *string `locationName:"vmManagerName" type:"string"`
// The VM management product.
VmManagerType *string `locationName:"vmManagerType" type:"string" enum:"VmManagerType"`
}
// String returns the string representation
func (s Connector) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Connector) GoString() string {
return s.String()
}
// SetAssociatedOn sets the AssociatedOn field's value.
func (s *Connector) SetAssociatedOn(v time.Time) *Connector {
s.AssociatedOn = &v
return s
}
// SetCapabilityList sets the CapabilityList field's value.
func (s *Connector) SetCapabilityList(v []*string) *Connector {
s.CapabilityList = v
return s
}
// SetConnectorId sets the ConnectorId field's value.
func (s *Connector) SetConnectorId(v string) *Connector {
s.ConnectorId = &v
return s
}
// SetIpAddress sets the IpAddress field's value.
func (s *Connector) SetIpAddress(v string) *Connector {
s.IpAddress = &v
return s
}
// SetMacAddress sets the MacAddress field's value.
func (s *Connector) SetMacAddress(v string) *Connector {
s.MacAddress = &v
return s
}
// SetStatus sets the Status field's value.
func (s *Connector) SetStatus(v string) *Connector {
s.Status = &v
return s
}
// SetVersion sets the Version field's value.
func (s *Connector) SetVersion(v string) *Connector {
s.Version = &v
return s
}
// SetVmManagerId sets the VmManagerId field's value.
func (s *Connector) SetVmManagerId(v string) *Connector {
s.VmManagerId = &v
return s
}
// SetVmManagerName sets the VmManagerName field's value.
func (s *Connector) SetVmManagerName(v string) *Connector {
s.VmManagerName = &v
return s
}
// SetVmManagerType sets the VmManagerType field's value.
func (s *Connector) SetVmManagerType(v string) *Connector {
s.VmManagerType = &v
return s
}
type CreateAppInput struct {
_ struct{} `type:"structure"`
// A unique, case-sensitive identifier you provide to ensure idempotency of
// application creation.
ClientToken *string `locationName:"clientToken" type:"string"`
// Description of the new application
Description *string `locationName:"description" type:"string"`
// Name of the new application.
Name *string `locationName:"name" type:"string"`
// Name of service role in customer's account to be used by AWS SMS.
RoleName *string `locationName:"roleName" type:"string"`
// List of server groups to include in the application.
ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
// List of tags to be associated with the application.
Tags []*Tag `locationName:"tags" type:"list"`
}
// String returns the string representation
func (s CreateAppInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateAppInput) GoString() string {
return s.String()
}
// SetClientToken sets the ClientToken field's value.
func (s *CreateAppInput) SetClientToken(v string) *CreateAppInput {
s.ClientToken = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateAppInput) SetDescription(v string) *CreateAppInput {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *CreateAppInput) SetName(v string) *CreateAppInput {
s.Name = &v
return s
}
// SetRoleName sets the RoleName field's value.
func (s *CreateAppInput) SetRoleName(v string) *CreateAppInput {
s.RoleName = &v
return s
}
// SetServerGroups sets the ServerGroups field's value.
func (s *CreateAppInput) SetServerGroups(v []*ServerGroup) *CreateAppInput {
s.ServerGroups = v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateAppInput) SetTags(v []*Tag) *CreateAppInput {
s.Tags = v
return s
}
type CreateAppOutput struct {
_ struct{} `type:"structure"`
// Summary description of the application.
AppSummary *AppSummary `locationName:"appSummary" type:"structure"`
// List of server groups included in the application.
ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
// List of taags associated with the application.
Tags []*Tag `locationName:"tags" type:"list"`
}
// String returns the string representation
func (s CreateAppOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateAppOutput) GoString() string {
return s.String()
}
// SetAppSummary sets the AppSummary field's value.
func (s *CreateAppOutput) SetAppSummary(v *AppSummary) *CreateAppOutput {
s.AppSummary = v
return s
}
// SetServerGroups sets the ServerGroups field's value.
func (s *CreateAppOutput) SetServerGroups(v []*ServerGroup) *CreateAppOutput {
s.ServerGroups = v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateAppOutput) SetTags(v []*Tag) *CreateAppOutput {
s.Tags = v
return s
}
type CreateReplicationJobInput struct {
_ struct{} `type:"structure"`
// The description of the replication job.
Description *string `locationName:"description" type:"string"`
// When true, the replication job produces encrypted AMIs. See also KmsKeyId
// below.
Encrypted *bool `locationName:"encrypted" type:"boolean"`
// The time between consecutive replication runs, in hours.
Frequency *int64 `locationName:"frequency" type:"integer"`
// KMS key ID for replication jobs that produce encrypted AMIs. Can be any of
// the following:
//
// * KMS key ID
//
// * KMS key alias
//
// * ARN referring to KMS key ID
//
// * ARN referring to KMS key alias
//
// If encrypted is true but a KMS key id is not specified, the customer's default
// KMS key for EBS is used.
KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
// The license type to be used for the AMI created by a successful replication
// run.
LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
// The maximum number of SMS-created AMIs to retain. The oldest will be deleted
// once the maximum number is reached and a new AMI is created.
NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"`
// The name of the IAM role to be used by the AWS SMS.
RoleName *string `locationName:"roleName" type:"string"`
RunOnce *bool `locationName:"runOnce" type:"boolean"`
// The seed replication time.
//
// SeedReplicationTime is a required field
SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" required:"true"`
// The identifier of the server.
//
// ServerId is a required field
ServerId *string `locationName:"serverId" type:"string" required:"true"`
}
// String returns the string representation
func (s CreateReplicationJobInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateReplicationJobInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateReplicationJobInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateReplicationJobInput"}
if s.SeedReplicationTime == nil {
invalidParams.Add(request.NewErrParamRequired("SeedReplicationTime"))
}
if s.ServerId == nil {
invalidParams.Add(request.NewErrParamRequired("ServerId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDescription sets the Description field's value.
func (s *CreateReplicationJobInput) SetDescription(v string) *CreateReplicationJobInput {
s.Description = &v
return s
}
// SetEncrypted sets the Encrypted field's value.
func (s *CreateReplicationJobInput) SetEncrypted(v bool) *CreateReplicationJobInput {
s.Encrypted = &v
return s
}
// SetFrequency sets the Frequency field's value.
func (s *CreateReplicationJobInput) SetFrequency(v int64) *CreateReplicationJobInput {
s.Frequency = &v
return s
}
// SetKmsKeyId sets the KmsKeyId field's value.
func (s *CreateReplicationJobInput) SetKmsKeyId(v string) *CreateReplicationJobInput {
s.KmsKeyId = &v
return s
}
// SetLicenseType sets the LicenseType field's value.
func (s *CreateReplicationJobInput) SetLicenseType(v string) *CreateReplicationJobInput {
s.LicenseType = &v
return s
}
// SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value.
func (s *CreateReplicationJobInput) SetNumberOfRecentAmisToKeep(v int64) *CreateReplicationJobInput {
s.NumberOfRecentAmisToKeep = &v
return s
}
// SetRoleName sets the RoleName field's value.
func (s *CreateReplicationJobInput) SetRoleName(v string) *CreateReplicationJobInput {
s.RoleName = &v
return s
}
// SetRunOnce sets the RunOnce field's value.
func (s *CreateReplicationJobInput) SetRunOnce(v bool) *CreateReplicationJobInput {
s.RunOnce = &v
return s
}
// SetSeedReplicationTime sets the SeedReplicationTime field's value.
func (s *CreateReplicationJobInput) SetSeedReplicationTime(v time.Time) *CreateReplicationJobInput {
s.SeedReplicationTime = &v
return s
}
// SetServerId sets the ServerId field's value.
func (s *CreateReplicationJobInput) SetServerId(v string) *CreateReplicationJobInput {
s.ServerId = &v
return s
}
type CreateReplicationJobOutput struct {
_ struct{} `type:"structure"`
// The unique identifier of the replication job.
ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
}
// String returns the string representation
func (s CreateReplicationJobOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateReplicationJobOutput) GoString() string {
return s.String()
}
// SetReplicationJobId sets the ReplicationJobId field's value.
func (s *CreateReplicationJobOutput) SetReplicationJobId(v string) *CreateReplicationJobOutput {
s.ReplicationJobId = &v
return s
}
type DeleteAppInput struct {
_ struct{} `type:"structure"`
// ID of the application to delete.
AppId *string `locationName:"appId" type:"string"`
// While deleting the application, stop all replication jobs corresponding to
// the servers in the application.
ForceStopAppReplication *bool `locationName:"forceStopAppReplication" type:"boolean"`
// While deleting the application, terminate the stack corresponding to the
// application.
ForceTerminateApp *bool `locationName:"forceTerminateApp" type:"boolean"`
}
// String returns the string representation
func (s DeleteAppInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAppInput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *DeleteAppInput) SetAppId(v string) *DeleteAppInput {
s.AppId = &v
return s
}
// SetForceStopAppReplication sets the ForceStopAppReplication field's value.
func (s *DeleteAppInput) SetForceStopAppReplication(v bool) *DeleteAppInput {
s.ForceStopAppReplication = &v
return s
}
// SetForceTerminateApp sets the ForceTerminateApp field's value.
func (s *DeleteAppInput) SetForceTerminateApp(v bool) *DeleteAppInput {
s.ForceTerminateApp = &v
return s
}
type DeleteAppLaunchConfigurationInput struct {
_ struct{} `type:"structure"`
// ID of the application associated with the launch configuration.
AppId *string `locationName:"appId" type:"string"`
}
// String returns the string representation
func (s DeleteAppLaunchConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAppLaunchConfigurationInput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *DeleteAppLaunchConfigurationInput) SetAppId(v string) *DeleteAppLaunchConfigurationInput {
s.AppId = &v
return s
}
type DeleteAppLaunchConfigurationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteAppLaunchConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAppLaunchConfigurationOutput) GoString() string {
return s.String()
}
type DeleteAppOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteAppOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAppOutput) GoString() string {
return s.String()
}
type DeleteAppReplicationConfigurationInput struct {
_ struct{} `type:"structure"`
// ID of the application associated with the replication configuration.
AppId *string `locationName:"appId" type:"string"`
}
// String returns the string representation
func (s DeleteAppReplicationConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAppReplicationConfigurationInput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *DeleteAppReplicationConfigurationInput) SetAppId(v string) *DeleteAppReplicationConfigurationInput {
s.AppId = &v
return s
}
type DeleteAppReplicationConfigurationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteAppReplicationConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAppReplicationConfigurationOutput) GoString() string {
return s.String()
}
type DeleteReplicationJobInput struct {
_ struct{} `type:"structure"`
// The identifier of the replication job.
//
// ReplicationJobId is a required field
ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteReplicationJobInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteReplicationJobInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteReplicationJobInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationJobInput"}
if s.ReplicationJobId == nil {
invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetReplicationJobId sets the ReplicationJobId field's value.
func (s *DeleteReplicationJobInput) SetReplicationJobId(v string) *DeleteReplicationJobInput {
s.ReplicationJobId = &v
return s
}
type DeleteReplicationJobOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteReplicationJobOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteReplicationJobOutput) GoString() string {
return s.String()
}
type DeleteServerCatalogInput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteServerCatalogInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteServerCatalogInput) GoString() string {
return s.String()
}
type DeleteServerCatalogOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteServerCatalogOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteServerCatalogOutput) GoString() string {
return s.String()
}
type DisassociateConnectorInput struct {
_ struct{} `type:"structure"`
// The identifier of the connector.
//