2017-04-05 09:45:27 +02:00
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2016-01-29 20:53:56 +01:00
// Package codedeploy provides a client for AWS CodeDeploy.
package codedeploy
import (
"time"
2017-04-05 09:45:27 +02:00
"github.com/aws/aws-sdk-go/aws"
2016-01-29 20:53:56 +01:00
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
2016-02-15 20:59:49 +01:00
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
2016-01-29 20:53:56 +01:00
)
const opAddTagsToOnPremisesInstances = "AddTagsToOnPremisesInstances"
2016-07-15 15:49:02 +02:00
// AddTagsToOnPremisesInstancesRequest generates a "aws/request.Request" representing the
// client's request for the AddTagsToOnPremisesInstances operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See AddTagsToOnPremisesInstances for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the AddTagsToOnPremisesInstances method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the AddTagsToOnPremisesInstancesRequest method.
// req, resp := client.AddTagsToOnPremisesInstancesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstances
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) AddTagsToOnPremisesInstancesRequest ( input * AddTagsToOnPremisesInstancesInput ) ( req * request . Request , output * AddTagsToOnPremisesInstancesOutput ) {
op := & request . Operation {
Name : opAddTagsToOnPremisesInstances ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & AddTagsToOnPremisesInstancesInput { }
}
2017-01-23 22:22:31 +01:00
output = & AddTagsToOnPremisesInstancesOutput { }
2016-01-29 20:53:56 +01:00
req = c . newRequest ( op , input , output )
2016-02-15 20:59:49 +01:00
req . Handlers . Unmarshal . Remove ( jsonrpc . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// AddTagsToOnPremisesInstances API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Adds tags to on-premises instances.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation AddTagsToOnPremisesInstances for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
2016-10-17 23:21:08 +02:00
// An on-premises instance name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeTagRequiredException "TagRequiredException"
2016-10-17 23:21:08 +02:00
// A tag was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidTagException "InvalidTagException"
2016-10-17 23:21:08 +02:00
// The specified tag was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeTagLimitExceededException "TagLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum allowed number of tags was exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceLimitExceededException "InstanceLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum number of allowed on-premises instances in a single call was
// exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException"
2016-10-17 23:21:08 +02:00
// The specified on-premises instance is not registered.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstances
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) AddTagsToOnPremisesInstances ( input * AddTagsToOnPremisesInstancesInput ) ( * AddTagsToOnPremisesInstancesOutput , error ) {
req , out := c . AddTagsToOnPremisesInstancesRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// AddTagsToOnPremisesInstancesWithContext is the same as AddTagsToOnPremisesInstances with the addition of
// the ability to pass a context and additional request options.
//
// See AddTagsToOnPremisesInstances 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 * CodeDeploy ) AddTagsToOnPremisesInstancesWithContext ( ctx aws . Context , input * AddTagsToOnPremisesInstancesInput , opts ... request . Option ) ( * AddTagsToOnPremisesInstancesOutput , error ) {
req , out := c . AddTagsToOnPremisesInstancesRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
2016-03-11 01:27:37 +01:00
const opBatchGetApplicationRevisions = "BatchGetApplicationRevisions"
2016-07-15 15:49:02 +02:00
// BatchGetApplicationRevisionsRequest generates a "aws/request.Request" representing the
// client's request for the BatchGetApplicationRevisions operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See BatchGetApplicationRevisions for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the BatchGetApplicationRevisions method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the BatchGetApplicationRevisionsRequest method.
// req, resp := client.BatchGetApplicationRevisionsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisions
2016-03-11 01:27:37 +01:00
func ( c * CodeDeploy ) BatchGetApplicationRevisionsRequest ( input * BatchGetApplicationRevisionsInput ) ( req * request . Request , output * BatchGetApplicationRevisionsOutput ) {
op := & request . Operation {
Name : opBatchGetApplicationRevisions ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & BatchGetApplicationRevisionsInput { }
}
output = & BatchGetApplicationRevisionsOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-03-11 01:27:37 +01:00
return
}
2016-10-17 23:21:08 +02:00
// BatchGetApplicationRevisions API operation for AWS CodeDeploy.
//
2016-03-11 01:27:37 +01:00
// Gets information about one or more application revisions.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation BatchGetApplicationRevisions for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeRevisionRequiredException "RevisionRequiredException"
2016-10-17 23:21:08 +02:00
// The revision ID was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidRevisionException "InvalidRevisionException"
2016-10-17 23:21:08 +02:00
// The revision was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum number of names or IDs allowed for this request (100) was exceeded.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisions
2016-03-11 01:27:37 +01:00
func ( c * CodeDeploy ) BatchGetApplicationRevisions ( input * BatchGetApplicationRevisionsInput ) ( * BatchGetApplicationRevisionsOutput , error ) {
req , out := c . BatchGetApplicationRevisionsRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// BatchGetApplicationRevisionsWithContext is the same as BatchGetApplicationRevisions with the addition of
// the ability to pass a context and additional request options.
//
// See BatchGetApplicationRevisions 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 * CodeDeploy ) BatchGetApplicationRevisionsWithContext ( ctx aws . Context , input * BatchGetApplicationRevisionsInput , opts ... request . Option ) ( * BatchGetApplicationRevisionsOutput , error ) {
req , out := c . BatchGetApplicationRevisionsRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-03-11 01:27:37 +01:00
}
2016-01-29 20:53:56 +01:00
const opBatchGetApplications = "BatchGetApplications"
2016-07-15 15:49:02 +02:00
// BatchGetApplicationsRequest generates a "aws/request.Request" representing the
// client's request for the BatchGetApplications operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See BatchGetApplications for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the BatchGetApplications method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the BatchGetApplicationsRequest method.
// req, resp := client.BatchGetApplicationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplications
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) BatchGetApplicationsRequest ( input * BatchGetApplicationsInput ) ( req * request . Request , output * BatchGetApplicationsOutput ) {
op := & request . Operation {
Name : opBatchGetApplications ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & BatchGetApplicationsInput { }
}
output = & BatchGetApplicationsOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// BatchGetApplications API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Gets information about one or more applications.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation BatchGetApplications for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum number of names or IDs allowed for this request (100) was exceeded.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplications
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) BatchGetApplications ( input * BatchGetApplicationsInput ) ( * BatchGetApplicationsOutput , error ) {
req , out := c . BatchGetApplicationsRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// BatchGetApplicationsWithContext is the same as BatchGetApplications with the addition of
// the ability to pass a context and additional request options.
//
// See BatchGetApplications 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 * CodeDeploy ) BatchGetApplicationsWithContext ( ctx aws . Context , input * BatchGetApplicationsInput , opts ... request . Option ) ( * BatchGetApplicationsOutput , error ) {
req , out := c . BatchGetApplicationsRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
2016-03-18 20:35:09 +01:00
const opBatchGetDeploymentGroups = "BatchGetDeploymentGroups"
2016-07-15 15:49:02 +02:00
// BatchGetDeploymentGroupsRequest generates a "aws/request.Request" representing the
// client's request for the BatchGetDeploymentGroups operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See BatchGetDeploymentGroups for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the BatchGetDeploymentGroups method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the BatchGetDeploymentGroupsRequest method.
// req, resp := client.BatchGetDeploymentGroupsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroups
2016-03-18 20:35:09 +01:00
func ( c * CodeDeploy ) BatchGetDeploymentGroupsRequest ( input * BatchGetDeploymentGroupsInput ) ( req * request . Request , output * BatchGetDeploymentGroupsOutput ) {
op := & request . Operation {
Name : opBatchGetDeploymentGroups ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & BatchGetDeploymentGroupsInput { }
}
output = & BatchGetDeploymentGroupsOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-03-18 20:35:09 +01:00
return
}
2016-10-17 23:21:08 +02:00
// BatchGetDeploymentGroups API operation for AWS CodeDeploy.
//
2017-01-02 21:35:31 +01:00
// Gets information about one or more deployment groups.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation BatchGetDeploymentGroups for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
2016-10-17 23:21:08 +02:00
// The deployment group name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
2016-10-17 23:21:08 +02:00
// The deployment group name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum number of names or IDs allowed for this request (100) was exceeded.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroups
2016-03-18 20:35:09 +01:00
func ( c * CodeDeploy ) BatchGetDeploymentGroups ( input * BatchGetDeploymentGroupsInput ) ( * BatchGetDeploymentGroupsOutput , error ) {
req , out := c . BatchGetDeploymentGroupsRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// BatchGetDeploymentGroupsWithContext is the same as BatchGetDeploymentGroups with the addition of
// the ability to pass a context and additional request options.
//
// See BatchGetDeploymentGroups 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 * CodeDeploy ) BatchGetDeploymentGroupsWithContext ( ctx aws . Context , input * BatchGetDeploymentGroupsInput , opts ... request . Option ) ( * BatchGetDeploymentGroupsOutput , error ) {
req , out := c . BatchGetDeploymentGroupsRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-03-18 20:35:09 +01:00
}
2016-03-11 01:27:37 +01:00
const opBatchGetDeploymentInstances = "BatchGetDeploymentInstances"
2016-07-15 15:49:02 +02:00
// BatchGetDeploymentInstancesRequest generates a "aws/request.Request" representing the
// client's request for the BatchGetDeploymentInstances operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See BatchGetDeploymentInstances for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the BatchGetDeploymentInstances method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the BatchGetDeploymentInstancesRequest method.
// req, resp := client.BatchGetDeploymentInstancesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstances
2016-03-11 01:27:37 +01:00
func ( c * CodeDeploy ) BatchGetDeploymentInstancesRequest ( input * BatchGetDeploymentInstancesInput ) ( req * request . Request , output * BatchGetDeploymentInstancesOutput ) {
op := & request . Operation {
Name : opBatchGetDeploymentInstances ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & BatchGetDeploymentInstancesInput { }
}
output = & BatchGetDeploymentInstancesOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-03-11 01:27:37 +01:00
return
}
2016-10-17 23:21:08 +02:00
// BatchGetDeploymentInstances API operation for AWS CodeDeploy.
//
2016-03-18 20:35:09 +01:00
// Gets information about one or more instance that are part of a deployment
2016-03-11 01:27:37 +01:00
// group.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation BatchGetDeploymentInstances for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
2016-10-17 23:21:08 +02:00
// At least one deployment ID must be specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The deployment does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceIdRequiredException "InstanceIdRequiredException"
2016-10-17 23:21:08 +02:00
// The instance ID was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
2016-10-17 23:21:08 +02:00
// At least one of the deployment IDs was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
2016-10-17 23:21:08 +02:00
// The specified on-premises instance name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum number of names or IDs allowed for this request (100) was exceeded.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstances
2016-03-11 01:27:37 +01:00
func ( c * CodeDeploy ) BatchGetDeploymentInstances ( input * BatchGetDeploymentInstancesInput ) ( * BatchGetDeploymentInstancesOutput , error ) {
req , out := c . BatchGetDeploymentInstancesRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// BatchGetDeploymentInstancesWithContext is the same as BatchGetDeploymentInstances with the addition of
// the ability to pass a context and additional request options.
//
// See BatchGetDeploymentInstances 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 * CodeDeploy ) BatchGetDeploymentInstancesWithContext ( ctx aws . Context , input * BatchGetDeploymentInstancesInput , opts ... request . Option ) ( * BatchGetDeploymentInstancesOutput , error ) {
req , out := c . BatchGetDeploymentInstancesRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-03-11 01:27:37 +01:00
}
2016-01-29 20:53:56 +01:00
const opBatchGetDeployments = "BatchGetDeployments"
2016-07-15 15:49:02 +02:00
// BatchGetDeploymentsRequest generates a "aws/request.Request" representing the
// client's request for the BatchGetDeployments operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See BatchGetDeployments for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the BatchGetDeployments method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the BatchGetDeploymentsRequest method.
// req, resp := client.BatchGetDeploymentsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeployments
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) BatchGetDeploymentsRequest ( input * BatchGetDeploymentsInput ) ( req * request . Request , output * BatchGetDeploymentsOutput ) {
op := & request . Operation {
Name : opBatchGetDeployments ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & BatchGetDeploymentsInput { }
}
output = & BatchGetDeploymentsOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// BatchGetDeployments API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Gets information about one or more deployments.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation BatchGetDeployments for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
2016-10-17 23:21:08 +02:00
// At least one deployment ID must be specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
2016-10-17 23:21:08 +02:00
// At least one of the deployment IDs was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum number of names or IDs allowed for this request (100) was exceeded.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeployments
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) BatchGetDeployments ( input * BatchGetDeploymentsInput ) ( * BatchGetDeploymentsOutput , error ) {
req , out := c . BatchGetDeploymentsRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// BatchGetDeploymentsWithContext is the same as BatchGetDeployments with the addition of
// the ability to pass a context and additional request options.
//
// See BatchGetDeployments 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 * CodeDeploy ) BatchGetDeploymentsWithContext ( ctx aws . Context , input * BatchGetDeploymentsInput , opts ... request . Option ) ( * BatchGetDeploymentsOutput , error ) {
req , out := c . BatchGetDeploymentsRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opBatchGetOnPremisesInstances = "BatchGetOnPremisesInstances"
2016-07-15 15:49:02 +02:00
// BatchGetOnPremisesInstancesRequest generates a "aws/request.Request" representing the
// client's request for the BatchGetOnPremisesInstances operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See BatchGetOnPremisesInstances for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the BatchGetOnPremisesInstances method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the BatchGetOnPremisesInstancesRequest method.
// req, resp := client.BatchGetOnPremisesInstancesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstances
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) BatchGetOnPremisesInstancesRequest ( input * BatchGetOnPremisesInstancesInput ) ( req * request . Request , output * BatchGetOnPremisesInstancesOutput ) {
op := & request . Operation {
Name : opBatchGetOnPremisesInstances ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & BatchGetOnPremisesInstancesInput { }
}
output = & BatchGetOnPremisesInstancesOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// BatchGetOnPremisesInstances API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Gets information about one or more on-premises instances.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation BatchGetOnPremisesInstances for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
2016-10-17 23:21:08 +02:00
// An on-premises instance name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
2016-10-17 23:21:08 +02:00
// The specified on-premises instance name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum number of names or IDs allowed for this request (100) was exceeded.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstances
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) BatchGetOnPremisesInstances ( input * BatchGetOnPremisesInstancesInput ) ( * BatchGetOnPremisesInstancesOutput , error ) {
req , out := c . BatchGetOnPremisesInstancesRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// BatchGetOnPremisesInstancesWithContext is the same as BatchGetOnPremisesInstances with the addition of
// the ability to pass a context and additional request options.
//
// See BatchGetOnPremisesInstances 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 * CodeDeploy ) BatchGetOnPremisesInstancesWithContext ( ctx aws . Context , input * BatchGetOnPremisesInstancesInput , opts ... request . Option ) ( * BatchGetOnPremisesInstancesOutput , error ) {
req , out := c . BatchGetOnPremisesInstancesRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
2017-01-30 15:18:29 +01:00
const opContinueDeployment = "ContinueDeployment"
// ContinueDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the ContinueDeployment operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See ContinueDeployment for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ContinueDeployment method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ContinueDeploymentRequest method.
// req, resp := client.ContinueDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeployment
func ( c * CodeDeploy ) ContinueDeploymentRequest ( input * ContinueDeploymentInput ) ( req * request . Request , output * ContinueDeploymentOutput ) {
op := & request . Operation {
Name : opContinueDeployment ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & ContinueDeploymentInput { }
}
output = & ContinueDeploymentOutput { }
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( jsonrpc . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
return
}
// ContinueDeployment API operation for AWS CodeDeploy.
//
// Starts the process of rerouting traffic from instances in the original environment
// to instances in thereplacement environment without waiting for a specified
// wait time to elapse. (Traffic rerouting, which is achieved by registering
// instances in the replacement environment with the load balancer, can start
// as soon as all instances have a status of Ready.)
//
// 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 CodeDeploy's
// API operation ContinueDeployment for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
2017-01-30 15:18:29 +01:00
// At least one deployment ID must be specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
2017-01-30 15:18:29 +01:00
// The deployment does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException"
2017-01-30 15:18:29 +01:00
// The deployment is already complete.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
2017-01-30 15:18:29 +01:00
// At least one of the deployment IDs was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentIsNotInReadyStateException "DeploymentIsNotInReadyStateException"
2017-01-30 15:18:29 +01:00
// The deployment does not have a status of Ready and can't continue yet.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeUnsupportedActionForDeploymentTypeException "UnsupportedActionForDeploymentTypeException"
2017-01-30 15:18:29 +01:00
// A call was submitted that is not supported for the specified deployment type.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeployment
func ( c * CodeDeploy ) ContinueDeployment ( input * ContinueDeploymentInput ) ( * ContinueDeploymentOutput , error ) {
req , out := c . ContinueDeploymentRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// ContinueDeploymentWithContext is the same as ContinueDeployment with the addition of
// the ability to pass a context and additional request options.
//
// See ContinueDeployment 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 * CodeDeploy ) ContinueDeploymentWithContext ( ctx aws . Context , input * ContinueDeploymentInput , opts ... request . Option ) ( * ContinueDeploymentOutput , error ) {
req , out := c . ContinueDeploymentRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2017-01-30 15:18:29 +01:00
}
2016-01-29 20:53:56 +01:00
const opCreateApplication = "CreateApplication"
2016-07-15 15:49:02 +02:00
// CreateApplicationRequest generates a "aws/request.Request" representing the
// client's request for the CreateApplication operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See CreateApplication for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateApplication method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateApplicationRequest method.
// req, resp := client.CreateApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplication
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) CreateApplicationRequest ( input * CreateApplicationInput ) ( req * request . Request , output * CreateApplicationOutput ) {
op := & request . Operation {
Name : opCreateApplication ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & CreateApplicationInput { }
}
output = & CreateApplicationOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// CreateApplication API operation for AWS CodeDeploy.
//
2016-03-18 20:35:09 +01:00
// Creates an application.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation CreateApplication for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationAlreadyExistsException "ApplicationAlreadyExistsException"
2016-10-17 23:21:08 +02:00
// An application with the specified name already exists with the applicable
// IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationLimitExceededException "ApplicationLimitExceededException"
2016-10-17 23:21:08 +02:00
// More applications were attempted to be created than are allowed.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplication
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) CreateApplication ( input * CreateApplicationInput ) ( * CreateApplicationOutput , error ) {
req , out := c . CreateApplicationRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// CreateApplicationWithContext is the same as CreateApplication with the addition of
// the ability to pass a context and additional request options.
//
// See CreateApplication 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 * CodeDeploy ) CreateApplicationWithContext ( ctx aws . Context , input * CreateApplicationInput , opts ... request . Option ) ( * CreateApplicationOutput , error ) {
req , out := c . CreateApplicationRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opCreateDeployment = "CreateDeployment"
2016-07-15 15:49:02 +02:00
// CreateDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the CreateDeployment operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See CreateDeployment for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateDeployment method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateDeploymentRequest method.
// req, resp := client.CreateDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeployment
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) CreateDeploymentRequest ( input * CreateDeploymentInput ) ( req * request . Request , output * CreateDeploymentOutput ) {
op := & request . Operation {
Name : opCreateDeployment ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & CreateDeploymentInput { }
}
output = & CreateDeploymentOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// CreateDeployment API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Deploys an application revision through the specified deployment group.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation CreateDeployment for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
2016-10-17 23:21:08 +02:00
// The deployment group name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
2016-10-17 23:21:08 +02:00
// The deployment group name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The named deployment group does not exist with the applicable IAM user or
// AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeRevisionRequiredException "RevisionRequiredException"
2016-10-17 23:21:08 +02:00
// The revision ID was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeRevisionDoesNotExistException "RevisionDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The named revision does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidRevisionException "InvalidRevisionException"
2016-10-17 23:21:08 +02:00
// The revision was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
2016-10-17 23:21:08 +02:00
// The deployment configuration name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The deployment configuration does not exist with the applicable IAM user
// or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDescriptionTooLongException "DescriptionTooLongException"
2016-10-17 23:21:08 +02:00
// The description is too long.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentLimitExceededException "DeploymentLimitExceededException"
2016-10-17 23:21:08 +02:00
// The number of allowed deployments was exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidTargetInstancesException "InvalidTargetInstancesException"
2017-01-30 15:18:29 +01:00
// The target instance configuration is invalid. Possible causes include:
//
// * Configuration data for target instances was entered for an in-place
// deployment.
//
// * The limit of 10 tags for a tag type was exceeded.
//
// * The combined length of the tag names exceeded the limit.
//
// * A specified tag is not currently applied to any instances.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException"
2016-10-17 23:21:08 +02:00
// The automatic rollback configuration was specified in an invalid format.
// For example, automatic rollback is enabled but an invalid triggering event
// type or no event types were listed.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException"
2017-01-30 15:18:29 +01:00
// An invalid load balancer name, or no load balancer name, was specified.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeployment
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) CreateDeployment ( input * CreateDeploymentInput ) ( * CreateDeploymentOutput , error ) {
req , out := c . CreateDeploymentRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// CreateDeploymentWithContext is the same as CreateDeployment with the addition of
// the ability to pass a context and additional request options.
//
// See CreateDeployment 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 * CodeDeploy ) CreateDeploymentWithContext ( ctx aws . Context , input * CreateDeploymentInput , opts ... request . Option ) ( * CreateDeploymentOutput , error ) {
req , out := c . CreateDeploymentRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opCreateDeploymentConfig = "CreateDeploymentConfig"
2016-07-15 15:49:02 +02:00
// CreateDeploymentConfigRequest generates a "aws/request.Request" representing the
// client's request for the CreateDeploymentConfig operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See CreateDeploymentConfig for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateDeploymentConfig method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateDeploymentConfigRequest method.
// req, resp := client.CreateDeploymentConfigRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfig
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) CreateDeploymentConfigRequest ( input * CreateDeploymentConfigInput ) ( req * request . Request , output * CreateDeploymentConfigOutput ) {
op := & request . Operation {
Name : opCreateDeploymentConfig ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & CreateDeploymentConfigInput { }
}
output = & CreateDeploymentConfigOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// CreateDeploymentConfig API operation for AWS CodeDeploy.
//
2016-03-18 20:35:09 +01:00
// Creates a deployment configuration.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation CreateDeploymentConfig for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
2016-10-17 23:21:08 +02:00
// The deployment configuration name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException"
2016-10-17 23:21:08 +02:00
// The deployment configuration name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentConfigAlreadyExistsException "DeploymentConfigAlreadyExistsException"
2016-10-17 23:21:08 +02:00
// A deployment configuration with the specified name already exists with the
// applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidMinimumHealthyHostValueException "InvalidMinimumHealthyHostValueException"
2016-10-17 23:21:08 +02:00
// The minimum healthy instance value was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentConfigLimitExceededException "DeploymentConfigLimitExceededException"
2016-10-17 23:21:08 +02:00
// The deployment configurations limit was exceeded.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfig
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) CreateDeploymentConfig ( input * CreateDeploymentConfigInput ) ( * CreateDeploymentConfigOutput , error ) {
req , out := c . CreateDeploymentConfigRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// CreateDeploymentConfigWithContext is the same as CreateDeploymentConfig with the addition of
// the ability to pass a context and additional request options.
//
// See CreateDeploymentConfig 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 * CodeDeploy ) CreateDeploymentConfigWithContext ( ctx aws . Context , input * CreateDeploymentConfigInput , opts ... request . Option ) ( * CreateDeploymentConfigOutput , error ) {
req , out := c . CreateDeploymentConfigRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opCreateDeploymentGroup = "CreateDeploymentGroup"
2016-07-15 15:49:02 +02:00
// CreateDeploymentGroupRequest generates a "aws/request.Request" representing the
// client's request for the CreateDeploymentGroup operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See CreateDeploymentGroup for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateDeploymentGroup method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateDeploymentGroupRequest method.
// req, resp := client.CreateDeploymentGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroup
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) CreateDeploymentGroupRequest ( input * CreateDeploymentGroupInput ) ( req * request . Request , output * CreateDeploymentGroupOutput ) {
op := & request . Operation {
Name : opCreateDeploymentGroup ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & CreateDeploymentGroupInput { }
}
output = & CreateDeploymentGroupOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// CreateDeploymentGroup API operation for AWS CodeDeploy.
//
2016-03-18 20:35:09 +01:00
// Creates a deployment group to which application revisions will be deployed.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation CreateDeploymentGroup for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
2016-10-17 23:21:08 +02:00
// The deployment group name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
2016-10-17 23:21:08 +02:00
// The deployment group name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupAlreadyExistsException "DeploymentGroupAlreadyExistsException"
2016-10-17 23:21:08 +02:00
// A deployment group with the specified name already exists with the applicable
// IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidEC2TagException "InvalidEC2TagException"
2016-10-17 23:21:08 +02:00
// The tag was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidTagException "InvalidTagException"
2016-10-17 23:21:08 +02:00
// The specified tag was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidAutoScalingGroupException "InvalidAutoScalingGroupException"
2016-10-17 23:21:08 +02:00
// The Auto Scaling group was specified in an invalid format or does not exist.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
2016-10-17 23:21:08 +02:00
// The deployment configuration name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The deployment configuration does not exist with the applicable IAM user
// or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeRoleRequiredException "RoleRequiredException"
2016-10-17 23:21:08 +02:00
// The role ID was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidRoleException "InvalidRoleException"
2016-10-17 23:21:08 +02:00
// The service role ARN was specified in an invalid format. Or, if an Auto Scaling
// group was specified, the specified service role does not grant the appropriate
// permissions to Auto Scaling.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupLimitExceededException "DeploymentGroupLimitExceededException"
2016-10-17 23:21:08 +02:00
// The deployment groups limit was exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeLifecycleHookLimitExceededException "LifecycleHookLimitExceededException"
2016-10-17 23:21:08 +02:00
// The limit for lifecycle hooks was exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidTriggerConfigException "InvalidTriggerConfigException"
2016-10-17 23:21:08 +02:00
// The trigger was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeTriggerTargetsLimitExceededException "TriggerTargetsLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum allowed number of triggers was exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidAlarmConfigException "InvalidAlarmConfigException"
2016-10-17 23:21:08 +02:00
// The format of the alarm configuration is invalid. Possible causes include:
//
2016-11-19 19:41:01 +01:00
// * The alarm list is null.
2016-10-17 23:21:08 +02:00
//
2016-11-19 19:41:01 +01:00
// * The alarm object is null.
2016-10-17 23:21:08 +02:00
//
2016-11-19 19:41:01 +01:00
// * The alarm name is empty or null or exceeds the 255 character limit.
2016-10-17 23:21:08 +02:00
//
2016-11-19 19:41:01 +01:00
// * Two alarms with the same name have been specified.
2016-10-17 23:21:08 +02:00
//
2016-11-19 19:41:01 +01:00
// * The alarm configuration is enabled but the alarm list is empty.
2016-10-17 23:21:08 +02:00
//
2017-02-08 14:02:41 +01:00
// * ErrCodeAlarmsLimitExceededException "AlarmsLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum number of alarms for a deployment group (10) was exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException"
2016-10-17 23:21:08 +02:00
// The automatic rollback configuration was specified in an invalid format.
// For example, automatic rollback is enabled but an invalid triggering event
// type or no event types were listed.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException"
2017-01-30 15:18:29 +01:00
// An invalid load balancer name, or no load balancer name, was specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentStyleException "InvalidDeploymentStyleException"
2017-01-30 15:18:29 +01:00
// An invalid deployment style was specified. Valid deployment types include
// "IN_PLACE" and "BLUE_GREEN". Valid deployment options for blue/green deployments
// include "WITH_TRAFFIC_CONTROL" and "WITHOUT_TRAFFIC_CONTROL".
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidBlueGreenDeploymentConfigurationException "InvalidBlueGreenDeploymentConfigurationException"
2017-01-30 15:18:29 +01:00
// The configuration for the blue/green deployment group was provided in an
// invalid format. For information about deployment configuration format, see
// CreateDeploymentConfig.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroup
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) CreateDeploymentGroup ( input * CreateDeploymentGroupInput ) ( * CreateDeploymentGroupOutput , error ) {
req , out := c . CreateDeploymentGroupRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// CreateDeploymentGroupWithContext is the same as CreateDeploymentGroup with the addition of
// the ability to pass a context and additional request options.
//
// See CreateDeploymentGroup 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 * CodeDeploy ) CreateDeploymentGroupWithContext ( ctx aws . Context , input * CreateDeploymentGroupInput , opts ... request . Option ) ( * CreateDeploymentGroupOutput , error ) {
req , out := c . CreateDeploymentGroupRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opDeleteApplication = "DeleteApplication"
2016-07-15 15:49:02 +02:00
// DeleteApplicationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteApplication operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DeleteApplication for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteApplication method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteApplicationRequest method.
// req, resp := client.DeleteApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplication
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) DeleteApplicationRequest ( input * DeleteApplicationInput ) ( req * request . Request , output * DeleteApplicationOutput ) {
op := & request . Operation {
Name : opDeleteApplication ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & DeleteApplicationInput { }
}
2017-01-23 22:22:31 +01:00
output = & DeleteApplicationOutput { }
2016-01-29 20:53:56 +01:00
req = c . newRequest ( op , input , output )
2016-02-15 20:59:49 +01:00
req . Handlers . Unmarshal . Remove ( jsonrpc . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// DeleteApplication API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Deletes an application.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation DeleteApplication for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplication
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) DeleteApplication ( input * DeleteApplicationInput ) ( * DeleteApplicationOutput , error ) {
req , out := c . DeleteApplicationRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// DeleteApplicationWithContext is the same as DeleteApplication with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteApplication 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 * CodeDeploy ) DeleteApplicationWithContext ( ctx aws . Context , input * DeleteApplicationInput , opts ... request . Option ) ( * DeleteApplicationOutput , error ) {
req , out := c . DeleteApplicationRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opDeleteDeploymentConfig = "DeleteDeploymentConfig"
2016-07-15 15:49:02 +02:00
// DeleteDeploymentConfigRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDeploymentConfig operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DeleteDeploymentConfig for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteDeploymentConfig method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteDeploymentConfigRequest method.
// req, resp := client.DeleteDeploymentConfigRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfig
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) DeleteDeploymentConfigRequest ( input * DeleteDeploymentConfigInput ) ( req * request . Request , output * DeleteDeploymentConfigOutput ) {
op := & request . Operation {
Name : opDeleteDeploymentConfig ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & DeleteDeploymentConfigInput { }
}
2017-01-23 22:22:31 +01:00
output = & DeleteDeploymentConfigOutput { }
2016-01-29 20:53:56 +01:00
req = c . newRequest ( op , input , output )
2016-02-15 20:59:49 +01:00
req . Handlers . Unmarshal . Remove ( jsonrpc . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// DeleteDeploymentConfig API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Deletes a deployment configuration.
//
2016-11-19 19:41:01 +01:00
// A deployment configuration cannot be deleted if it is currently in use. Predefined
// configurations cannot be deleted.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation DeleteDeploymentConfig for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
2016-10-17 23:21:08 +02:00
// The deployment configuration name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException"
2016-10-17 23:21:08 +02:00
// The deployment configuration name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentConfigInUseException "DeploymentConfigInUseException"
2016-10-17 23:21:08 +02:00
// The deployment configuration is still in use.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidOperationException "InvalidOperationException"
2016-10-17 23:21:08 +02:00
// An invalid operation was detected.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfig
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) DeleteDeploymentConfig ( input * DeleteDeploymentConfigInput ) ( * DeleteDeploymentConfigOutput , error ) {
req , out := c . DeleteDeploymentConfigRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// DeleteDeploymentConfigWithContext is the same as DeleteDeploymentConfig with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteDeploymentConfig 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 * CodeDeploy ) DeleteDeploymentConfigWithContext ( ctx aws . Context , input * DeleteDeploymentConfigInput , opts ... request . Option ) ( * DeleteDeploymentConfigOutput , error ) {
req , out := c . DeleteDeploymentConfigRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opDeleteDeploymentGroup = "DeleteDeploymentGroup"
2016-07-15 15:49:02 +02:00
// DeleteDeploymentGroupRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDeploymentGroup operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DeleteDeploymentGroup for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteDeploymentGroup method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteDeploymentGroupRequest method.
// req, resp := client.DeleteDeploymentGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroup
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) DeleteDeploymentGroupRequest ( input * DeleteDeploymentGroupInput ) ( req * request . Request , output * DeleteDeploymentGroupOutput ) {
op := & request . Operation {
Name : opDeleteDeploymentGroup ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & DeleteDeploymentGroupInput { }
}
output = & DeleteDeploymentGroupOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// DeleteDeploymentGroup API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Deletes a deployment group.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation DeleteDeploymentGroup for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
2016-10-17 23:21:08 +02:00
// The deployment group name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
2016-10-17 23:21:08 +02:00
// The deployment group name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidRoleException "InvalidRoleException"
2016-10-17 23:21:08 +02:00
// The service role ARN was specified in an invalid format. Or, if an Auto Scaling
// group was specified, the specified service role does not grant the appropriate
// permissions to Auto Scaling.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroup
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) DeleteDeploymentGroup ( input * DeleteDeploymentGroupInput ) ( * DeleteDeploymentGroupOutput , error ) {
req , out := c . DeleteDeploymentGroupRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// DeleteDeploymentGroupWithContext is the same as DeleteDeploymentGroup with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteDeploymentGroup 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 * CodeDeploy ) DeleteDeploymentGroupWithContext ( ctx aws . Context , input * DeleteDeploymentGroupInput , opts ... request . Option ) ( * DeleteDeploymentGroupOutput , error ) {
req , out := c . DeleteDeploymentGroupRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opDeregisterOnPremisesInstance = "DeregisterOnPremisesInstance"
2016-07-15 15:49:02 +02:00
// DeregisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the
// client's request for the DeregisterOnPremisesInstance operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DeregisterOnPremisesInstance for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeregisterOnPremisesInstance method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeregisterOnPremisesInstanceRequest method.
// req, resp := client.DeregisterOnPremisesInstanceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstance
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) DeregisterOnPremisesInstanceRequest ( input * DeregisterOnPremisesInstanceInput ) ( req * request . Request , output * DeregisterOnPremisesInstanceOutput ) {
op := & request . Operation {
Name : opDeregisterOnPremisesInstance ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & DeregisterOnPremisesInstanceInput { }
}
2017-01-23 22:22:31 +01:00
output = & DeregisterOnPremisesInstanceOutput { }
2016-01-29 20:53:56 +01:00
req = c . newRequest ( op , input , output )
2016-02-15 20:59:49 +01:00
req . Handlers . Unmarshal . Remove ( jsonrpc . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// DeregisterOnPremisesInstance API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Deregisters an on-premises instance.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation DeregisterOnPremisesInstance for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
2016-10-17 23:21:08 +02:00
// An on-premises instance name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
2016-10-17 23:21:08 +02:00
// The specified on-premises instance name was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstance
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) DeregisterOnPremisesInstance ( input * DeregisterOnPremisesInstanceInput ) ( * DeregisterOnPremisesInstanceOutput , error ) {
req , out := c . DeregisterOnPremisesInstanceRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// DeregisterOnPremisesInstanceWithContext is the same as DeregisterOnPremisesInstance with the addition of
// the ability to pass a context and additional request options.
//
// See DeregisterOnPremisesInstance 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 * CodeDeploy ) DeregisterOnPremisesInstanceWithContext ( ctx aws . Context , input * DeregisterOnPremisesInstanceInput , opts ... request . Option ) ( * DeregisterOnPremisesInstanceOutput , error ) {
req , out := c . DeregisterOnPremisesInstanceRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opGetApplication = "GetApplication"
2016-07-15 15:49:02 +02:00
// GetApplicationRequest generates a "aws/request.Request" representing the
// client's request for the GetApplication operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See GetApplication for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetApplication method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetApplicationRequest method.
// req, resp := client.GetApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplication
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetApplicationRequest ( input * GetApplicationInput ) ( req * request . Request , output * GetApplicationOutput ) {
op := & request . Operation {
Name : opGetApplication ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & GetApplicationInput { }
}
output = & GetApplicationOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// GetApplication API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Gets information about an application.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation GetApplication for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplication
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetApplication ( input * GetApplicationInput ) ( * GetApplicationOutput , error ) {
req , out := c . GetApplicationRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// GetApplicationWithContext is the same as GetApplication with the addition of
// the ability to pass a context and additional request options.
//
// See GetApplication 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 * CodeDeploy ) GetApplicationWithContext ( ctx aws . Context , input * GetApplicationInput , opts ... request . Option ) ( * GetApplicationOutput , error ) {
req , out := c . GetApplicationRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opGetApplicationRevision = "GetApplicationRevision"
2016-07-15 15:49:02 +02:00
// GetApplicationRevisionRequest generates a "aws/request.Request" representing the
// client's request for the GetApplicationRevision operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See GetApplicationRevision for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetApplicationRevision method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetApplicationRevisionRequest method.
// req, resp := client.GetApplicationRevisionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevision
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetApplicationRevisionRequest ( input * GetApplicationRevisionInput ) ( req * request . Request , output * GetApplicationRevisionOutput ) {
op := & request . Operation {
Name : opGetApplicationRevision ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & GetApplicationRevisionInput { }
}
output = & GetApplicationRevisionOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// GetApplicationRevision API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Gets information about an application revision.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation GetApplicationRevision for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeRevisionDoesNotExistException "RevisionDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The named revision does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeRevisionRequiredException "RevisionRequiredException"
2016-10-17 23:21:08 +02:00
// The revision ID was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidRevisionException "InvalidRevisionException"
2016-10-17 23:21:08 +02:00
// The revision was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevision
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetApplicationRevision ( input * GetApplicationRevisionInput ) ( * GetApplicationRevisionOutput , error ) {
req , out := c . GetApplicationRevisionRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// GetApplicationRevisionWithContext is the same as GetApplicationRevision with the addition of
// the ability to pass a context and additional request options.
//
// See GetApplicationRevision 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 * CodeDeploy ) GetApplicationRevisionWithContext ( ctx aws . Context , input * GetApplicationRevisionInput , opts ... request . Option ) ( * GetApplicationRevisionOutput , error ) {
req , out := c . GetApplicationRevisionRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opGetDeployment = "GetDeployment"
2016-07-15 15:49:02 +02:00
// GetDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the GetDeployment operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See GetDeployment for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetDeployment method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetDeploymentRequest method.
// req, resp := client.GetDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeployment
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetDeploymentRequest ( input * GetDeploymentInput ) ( req * request . Request , output * GetDeploymentOutput ) {
op := & request . Operation {
Name : opGetDeployment ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & GetDeploymentInput { }
}
output = & GetDeploymentOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// GetDeployment API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Gets information about a deployment.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation GetDeployment for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
2016-10-17 23:21:08 +02:00
// At least one deployment ID must be specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
2016-10-17 23:21:08 +02:00
// At least one of the deployment IDs was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The deployment does not exist with the applicable IAM user or AWS account.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeployment
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetDeployment ( input * GetDeploymentInput ) ( * GetDeploymentOutput , error ) {
req , out := c . GetDeploymentRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// GetDeploymentWithContext is the same as GetDeployment with the addition of
// the ability to pass a context and additional request options.
//
// See GetDeployment 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 * CodeDeploy ) GetDeploymentWithContext ( ctx aws . Context , input * GetDeploymentInput , opts ... request . Option ) ( * GetDeploymentOutput , error ) {
req , out := c . GetDeploymentRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opGetDeploymentConfig = "GetDeploymentConfig"
2016-07-15 15:49:02 +02:00
// GetDeploymentConfigRequest generates a "aws/request.Request" representing the
// client's request for the GetDeploymentConfig operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See GetDeploymentConfig for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetDeploymentConfig method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetDeploymentConfigRequest method.
// req, resp := client.GetDeploymentConfigRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfig
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetDeploymentConfigRequest ( input * GetDeploymentConfigInput ) ( req * request . Request , output * GetDeploymentConfigOutput ) {
op := & request . Operation {
Name : opGetDeploymentConfig ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & GetDeploymentConfigInput { }
}
output = & GetDeploymentConfigOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// GetDeploymentConfig API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Gets information about a deployment configuration.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation GetDeploymentConfig for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
2016-10-17 23:21:08 +02:00
// The deployment configuration name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException"
2016-10-17 23:21:08 +02:00
// The deployment configuration name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The deployment configuration does not exist with the applicable IAM user
// or AWS account.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfig
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetDeploymentConfig ( input * GetDeploymentConfigInput ) ( * GetDeploymentConfigOutput , error ) {
req , out := c . GetDeploymentConfigRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// GetDeploymentConfigWithContext is the same as GetDeploymentConfig with the addition of
// the ability to pass a context and additional request options.
//
// See GetDeploymentConfig 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 * CodeDeploy ) GetDeploymentConfigWithContext ( ctx aws . Context , input * GetDeploymentConfigInput , opts ... request . Option ) ( * GetDeploymentConfigOutput , error ) {
req , out := c . GetDeploymentConfigRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opGetDeploymentGroup = "GetDeploymentGroup"
2016-07-15 15:49:02 +02:00
// GetDeploymentGroupRequest generates a "aws/request.Request" representing the
// client's request for the GetDeploymentGroup operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See GetDeploymentGroup for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetDeploymentGroup method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetDeploymentGroupRequest method.
// req, resp := client.GetDeploymentGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroup
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetDeploymentGroupRequest ( input * GetDeploymentGroupInput ) ( req * request . Request , output * GetDeploymentGroupOutput ) {
op := & request . Operation {
Name : opGetDeploymentGroup ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & GetDeploymentGroupInput { }
}
output = & GetDeploymentGroupOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// GetDeploymentGroup API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Gets information about a deployment group.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation GetDeploymentGroup for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
2016-10-17 23:21:08 +02:00
// The deployment group name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
2016-10-17 23:21:08 +02:00
// The deployment group name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The named deployment group does not exist with the applicable IAM user or
// AWS account.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroup
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetDeploymentGroup ( input * GetDeploymentGroupInput ) ( * GetDeploymentGroupOutput , error ) {
req , out := c . GetDeploymentGroupRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// GetDeploymentGroupWithContext is the same as GetDeploymentGroup with the addition of
// the ability to pass a context and additional request options.
//
// See GetDeploymentGroup 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 * CodeDeploy ) GetDeploymentGroupWithContext ( ctx aws . Context , input * GetDeploymentGroupInput , opts ... request . Option ) ( * GetDeploymentGroupOutput , error ) {
req , out := c . GetDeploymentGroupRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opGetDeploymentInstance = "GetDeploymentInstance"
2016-07-15 15:49:02 +02:00
// GetDeploymentInstanceRequest generates a "aws/request.Request" representing the
// client's request for the GetDeploymentInstance operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See GetDeploymentInstance for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetDeploymentInstance method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetDeploymentInstanceRequest method.
// req, resp := client.GetDeploymentInstanceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstance
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetDeploymentInstanceRequest ( input * GetDeploymentInstanceInput ) ( req * request . Request , output * GetDeploymentInstanceOutput ) {
op := & request . Operation {
Name : opGetDeploymentInstance ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & GetDeploymentInstanceInput { }
}
output = & GetDeploymentInstanceOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// GetDeploymentInstance API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Gets information about an instance as part of a deployment.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation GetDeploymentInstance for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
2016-10-17 23:21:08 +02:00
// At least one deployment ID must be specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The deployment does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceIdRequiredException "InstanceIdRequiredException"
2016-10-17 23:21:08 +02:00
// The instance ID was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
2016-10-17 23:21:08 +02:00
// At least one of the deployment IDs was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceDoesNotExistException "InstanceDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The specified instance does not exist in the deployment group.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
2016-10-17 23:21:08 +02:00
// The specified on-premises instance name was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstance
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetDeploymentInstance ( input * GetDeploymentInstanceInput ) ( * GetDeploymentInstanceOutput , error ) {
req , out := c . GetDeploymentInstanceRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// GetDeploymentInstanceWithContext is the same as GetDeploymentInstance with the addition of
// the ability to pass a context and additional request options.
//
// See GetDeploymentInstance 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 * CodeDeploy ) GetDeploymentInstanceWithContext ( ctx aws . Context , input * GetDeploymentInstanceInput , opts ... request . Option ) ( * GetDeploymentInstanceOutput , error ) {
req , out := c . GetDeploymentInstanceRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opGetOnPremisesInstance = "GetOnPremisesInstance"
2016-07-15 15:49:02 +02:00
// GetOnPremisesInstanceRequest generates a "aws/request.Request" representing the
// client's request for the GetOnPremisesInstance operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See GetOnPremisesInstance for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the GetOnPremisesInstance method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the GetOnPremisesInstanceRequest method.
// req, resp := client.GetOnPremisesInstanceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstance
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetOnPremisesInstanceRequest ( input * GetOnPremisesInstanceInput ) ( req * request . Request , output * GetOnPremisesInstanceOutput ) {
op := & request . Operation {
Name : opGetOnPremisesInstance ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & GetOnPremisesInstanceInput { }
}
output = & GetOnPremisesInstanceOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// GetOnPremisesInstance API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Gets information about an on-premises instance.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation GetOnPremisesInstance for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
2016-10-17 23:21:08 +02:00
// An on-premises instance name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException"
2016-10-17 23:21:08 +02:00
// The specified on-premises instance is not registered.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
2016-10-17 23:21:08 +02:00
// The specified on-premises instance name was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstance
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) GetOnPremisesInstance ( input * GetOnPremisesInstanceInput ) ( * GetOnPremisesInstanceOutput , error ) {
req , out := c . GetOnPremisesInstanceRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// GetOnPremisesInstanceWithContext is the same as GetOnPremisesInstance with the addition of
// the ability to pass a context and additional request options.
//
// See GetOnPremisesInstance 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 * CodeDeploy ) GetOnPremisesInstanceWithContext ( ctx aws . Context , input * GetOnPremisesInstanceInput , opts ... request . Option ) ( * GetOnPremisesInstanceOutput , error ) {
req , out := c . GetOnPremisesInstanceRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opListApplicationRevisions = "ListApplicationRevisions"
2016-07-15 15:49:02 +02:00
// ListApplicationRevisionsRequest generates a "aws/request.Request" representing the
// client's request for the ListApplicationRevisions operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListApplicationRevisions for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListApplicationRevisions method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListApplicationRevisionsRequest method.
// req, resp := client.ListApplicationRevisionsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisions
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListApplicationRevisionsRequest ( input * ListApplicationRevisionsInput ) ( req * request . Request , output * ListApplicationRevisionsOutput ) {
op := & request . Operation {
Name : opListApplicationRevisions ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
2017-03-14 16:13:44 +01:00
Paginator : & request . Paginator {
InputTokens : [ ] string { "nextToken" } ,
OutputTokens : [ ] string { "nextToken" } ,
LimitToken : "" ,
TruncationToken : "" ,
} ,
2016-01-29 20:53:56 +01:00
}
if input == nil {
input = & ListApplicationRevisionsInput { }
}
output = & ListApplicationRevisionsOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// ListApplicationRevisions API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Lists information about revisions for an application.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation ListApplicationRevisions for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidSortByException "InvalidSortByException"
2016-10-17 23:21:08 +02:00
// The column name to sort by is either not present or was specified in an invalid
// format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidSortOrderException "InvalidSortOrderException"
2016-10-17 23:21:08 +02:00
// The sort order was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidBucketNameFilterException "InvalidBucketNameFilterException"
2016-10-17 23:21:08 +02:00
// The bucket name either doesn't exist or was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidKeyPrefixFilterException "InvalidKeyPrefixFilterException"
2016-10-17 23:21:08 +02:00
// The specified key prefix filter was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeBucketNameFilterRequiredException "BucketNameFilterRequiredException"
2016-10-17 23:21:08 +02:00
// A bucket name is required, but was not provided.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeployedStateFilterException "InvalidDeployedStateFilterException"
2016-10-17 23:21:08 +02:00
// The deployed state filter was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
2016-10-17 23:21:08 +02:00
// The next token was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisions
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListApplicationRevisions ( input * ListApplicationRevisionsInput ) ( * ListApplicationRevisionsOutput , error ) {
req , out := c . ListApplicationRevisionsRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// ListApplicationRevisionsWithContext is the same as ListApplicationRevisions with the addition of
// the ability to pass a context and additional request options.
//
// See ListApplicationRevisions 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 * CodeDeploy ) ListApplicationRevisionsWithContext ( ctx aws . Context , input * ListApplicationRevisionsInput , opts ... request . Option ) ( * ListApplicationRevisionsOutput , error ) {
req , out := c . ListApplicationRevisionsRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
2017-03-14 16:13:44 +01:00
// ListApplicationRevisionsPages iterates over the pages of a ListApplicationRevisions operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListApplicationRevisions 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 ListApplicationRevisions operation.
// pageNum := 0
// err := client.ListApplicationRevisionsPages(params,
// func(page *ListApplicationRevisionsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2017-04-05 09:45:27 +02:00
func ( c * CodeDeploy ) ListApplicationRevisionsPages ( input * ListApplicationRevisionsInput , fn func ( * ListApplicationRevisionsOutput , bool ) bool ) error {
return c . ListApplicationRevisionsPagesWithContext ( aws . BackgroundContext ( ) , input , fn )
}
// ListApplicationRevisionsPagesWithContext same as ListApplicationRevisionsPages 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 * CodeDeploy ) ListApplicationRevisionsPagesWithContext ( ctx aws . Context , input * ListApplicationRevisionsInput , fn func ( * ListApplicationRevisionsOutput , bool ) bool , opts ... request . Option ) error {
p := request . Pagination {
NewRequest : func ( ) ( * request . Request , error ) {
var inCpy * ListApplicationRevisionsInput
if input != nil {
tmp := * input
inCpy = & tmp
}
req , _ := c . ListApplicationRevisionsRequest ( inCpy )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return req , nil
} ,
}
cont := true
for p . Next ( ) && cont {
cont = fn ( p . Page ( ) . ( * ListApplicationRevisionsOutput ) , ! p . HasNextPage ( ) )
}
return p . Err ( )
2017-03-14 16:13:44 +01:00
}
2016-01-29 20:53:56 +01:00
const opListApplications = "ListApplications"
2016-07-15 15:49:02 +02:00
// ListApplicationsRequest generates a "aws/request.Request" representing the
// client's request for the ListApplications operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListApplications for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListApplications method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListApplicationsRequest method.
// req, resp := client.ListApplicationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplications
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListApplicationsRequest ( input * ListApplicationsInput ) ( req * request . Request , output * ListApplicationsOutput ) {
op := & request . Operation {
Name : opListApplications ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
2017-03-14 16:13:44 +01:00
Paginator : & request . Paginator {
InputTokens : [ ] string { "nextToken" } ,
OutputTokens : [ ] string { "nextToken" } ,
LimitToken : "" ,
TruncationToken : "" ,
} ,
2016-01-29 20:53:56 +01:00
}
if input == nil {
input = & ListApplicationsInput { }
}
output = & ListApplicationsOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// ListApplications API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Lists the applications registered with the applicable IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation ListApplications for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
2016-10-17 23:21:08 +02:00
// The next token was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplications
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListApplications ( input * ListApplicationsInput ) ( * ListApplicationsOutput , error ) {
req , out := c . ListApplicationsRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// ListApplicationsWithContext is the same as ListApplications with the addition of
// the ability to pass a context and additional request options.
//
// See ListApplications 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 * CodeDeploy ) ListApplicationsWithContext ( ctx aws . Context , input * ListApplicationsInput , opts ... request . Option ) ( * ListApplicationsOutput , error ) {
req , out := c . ListApplicationsRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
2017-03-14 16:13:44 +01:00
// ListApplicationsPages iterates over the pages of a ListApplications operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListApplications 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 ListApplications operation.
// pageNum := 0
// err := client.ListApplicationsPages(params,
// func(page *ListApplicationsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2017-04-05 09:45:27 +02:00
func ( c * CodeDeploy ) ListApplicationsPages ( input * ListApplicationsInput , fn func ( * ListApplicationsOutput , bool ) bool ) error {
return c . ListApplicationsPagesWithContext ( aws . BackgroundContext ( ) , input , fn )
}
// ListApplicationsPagesWithContext same as ListApplicationsPages 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 * CodeDeploy ) ListApplicationsPagesWithContext ( ctx aws . Context , input * ListApplicationsInput , fn func ( * ListApplicationsOutput , bool ) bool , opts ... request . Option ) error {
p := request . Pagination {
NewRequest : func ( ) ( * request . Request , error ) {
var inCpy * ListApplicationsInput
if input != nil {
tmp := * input
inCpy = & tmp
}
req , _ := c . ListApplicationsRequest ( inCpy )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return req , nil
} ,
}
cont := true
for p . Next ( ) && cont {
cont = fn ( p . Page ( ) . ( * ListApplicationsOutput ) , ! p . HasNextPage ( ) )
}
return p . Err ( )
2017-03-14 16:13:44 +01:00
}
2016-01-29 20:53:56 +01:00
const opListDeploymentConfigs = "ListDeploymentConfigs"
2016-07-15 15:49:02 +02:00
// ListDeploymentConfigsRequest generates a "aws/request.Request" representing the
// client's request for the ListDeploymentConfigs operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListDeploymentConfigs for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListDeploymentConfigs method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListDeploymentConfigsRequest method.
// req, resp := client.ListDeploymentConfigsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigs
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListDeploymentConfigsRequest ( input * ListDeploymentConfigsInput ) ( req * request . Request , output * ListDeploymentConfigsOutput ) {
op := & request . Operation {
Name : opListDeploymentConfigs ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
2017-03-14 16:13:44 +01:00
Paginator : & request . Paginator {
InputTokens : [ ] string { "nextToken" } ,
OutputTokens : [ ] string { "nextToken" } ,
LimitToken : "" ,
TruncationToken : "" ,
} ,
2016-01-29 20:53:56 +01:00
}
if input == nil {
input = & ListDeploymentConfigsInput { }
}
output = & ListDeploymentConfigsOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// ListDeploymentConfigs API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Lists the deployment configurations with the applicable IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation ListDeploymentConfigs for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
2016-10-17 23:21:08 +02:00
// The next token was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigs
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListDeploymentConfigs ( input * ListDeploymentConfigsInput ) ( * ListDeploymentConfigsOutput , error ) {
req , out := c . ListDeploymentConfigsRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// ListDeploymentConfigsWithContext is the same as ListDeploymentConfigs with the addition of
// the ability to pass a context and additional request options.
//
// See ListDeploymentConfigs 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 * CodeDeploy ) ListDeploymentConfigsWithContext ( ctx aws . Context , input * ListDeploymentConfigsInput , opts ... request . Option ) ( * ListDeploymentConfigsOutput , error ) {
req , out := c . ListDeploymentConfigsRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
2017-03-14 16:13:44 +01:00
// ListDeploymentConfigsPages iterates over the pages of a ListDeploymentConfigs operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListDeploymentConfigs 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 ListDeploymentConfigs operation.
// pageNum := 0
// err := client.ListDeploymentConfigsPages(params,
// func(page *ListDeploymentConfigsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2017-04-05 09:45:27 +02:00
func ( c * CodeDeploy ) ListDeploymentConfigsPages ( input * ListDeploymentConfigsInput , fn func ( * ListDeploymentConfigsOutput , bool ) bool ) error {
return c . ListDeploymentConfigsPagesWithContext ( aws . BackgroundContext ( ) , input , fn )
}
// ListDeploymentConfigsPagesWithContext same as ListDeploymentConfigsPages 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 * CodeDeploy ) ListDeploymentConfigsPagesWithContext ( ctx aws . Context , input * ListDeploymentConfigsInput , fn func ( * ListDeploymentConfigsOutput , bool ) bool , opts ... request . Option ) error {
p := request . Pagination {
NewRequest : func ( ) ( * request . Request , error ) {
var inCpy * ListDeploymentConfigsInput
if input != nil {
tmp := * input
inCpy = & tmp
}
req , _ := c . ListDeploymentConfigsRequest ( inCpy )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return req , nil
} ,
}
cont := true
for p . Next ( ) && cont {
cont = fn ( p . Page ( ) . ( * ListDeploymentConfigsOutput ) , ! p . HasNextPage ( ) )
}
return p . Err ( )
2017-03-14 16:13:44 +01:00
}
2016-01-29 20:53:56 +01:00
const opListDeploymentGroups = "ListDeploymentGroups"
2016-07-15 15:49:02 +02:00
// ListDeploymentGroupsRequest generates a "aws/request.Request" representing the
// client's request for the ListDeploymentGroups operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListDeploymentGroups for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListDeploymentGroups method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListDeploymentGroupsRequest method.
// req, resp := client.ListDeploymentGroupsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroups
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListDeploymentGroupsRequest ( input * ListDeploymentGroupsInput ) ( req * request . Request , output * ListDeploymentGroupsOutput ) {
op := & request . Operation {
Name : opListDeploymentGroups ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
2017-03-14 16:13:44 +01:00
Paginator : & request . Paginator {
InputTokens : [ ] string { "nextToken" } ,
OutputTokens : [ ] string { "nextToken" } ,
LimitToken : "" ,
TruncationToken : "" ,
} ,
2016-01-29 20:53:56 +01:00
}
if input == nil {
input = & ListDeploymentGroupsInput { }
}
output = & ListDeploymentGroupsOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// ListDeploymentGroups API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Lists the deployment groups for an application registered with the applicable
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation ListDeploymentGroups for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
2016-10-17 23:21:08 +02:00
// The next token was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroups
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListDeploymentGroups ( input * ListDeploymentGroupsInput ) ( * ListDeploymentGroupsOutput , error ) {
req , out := c . ListDeploymentGroupsRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// ListDeploymentGroupsWithContext is the same as ListDeploymentGroups with the addition of
// the ability to pass a context and additional request options.
//
// See ListDeploymentGroups 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 * CodeDeploy ) ListDeploymentGroupsWithContext ( ctx aws . Context , input * ListDeploymentGroupsInput , opts ... request . Option ) ( * ListDeploymentGroupsOutput , error ) {
req , out := c . ListDeploymentGroupsRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
2017-03-14 16:13:44 +01:00
// ListDeploymentGroupsPages iterates over the pages of a ListDeploymentGroups operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListDeploymentGroups 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 ListDeploymentGroups operation.
// pageNum := 0
// err := client.ListDeploymentGroupsPages(params,
// func(page *ListDeploymentGroupsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2017-04-05 09:45:27 +02:00
func ( c * CodeDeploy ) ListDeploymentGroupsPages ( input * ListDeploymentGroupsInput , fn func ( * ListDeploymentGroupsOutput , bool ) bool ) error {
return c . ListDeploymentGroupsPagesWithContext ( aws . BackgroundContext ( ) , input , fn )
}
// ListDeploymentGroupsPagesWithContext same as ListDeploymentGroupsPages 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 * CodeDeploy ) ListDeploymentGroupsPagesWithContext ( ctx aws . Context , input * ListDeploymentGroupsInput , fn func ( * ListDeploymentGroupsOutput , bool ) bool , opts ... request . Option ) error {
p := request . Pagination {
NewRequest : func ( ) ( * request . Request , error ) {
var inCpy * ListDeploymentGroupsInput
if input != nil {
tmp := * input
inCpy = & tmp
}
req , _ := c . ListDeploymentGroupsRequest ( inCpy )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return req , nil
} ,
}
cont := true
for p . Next ( ) && cont {
cont = fn ( p . Page ( ) . ( * ListDeploymentGroupsOutput ) , ! p . HasNextPage ( ) )
}
return p . Err ( )
2017-03-14 16:13:44 +01:00
}
2016-01-29 20:53:56 +01:00
const opListDeploymentInstances = "ListDeploymentInstances"
2016-07-15 15:49:02 +02:00
// ListDeploymentInstancesRequest generates a "aws/request.Request" representing the
// client's request for the ListDeploymentInstances operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListDeploymentInstances for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListDeploymentInstances method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListDeploymentInstancesRequest method.
// req, resp := client.ListDeploymentInstancesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstances
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListDeploymentInstancesRequest ( input * ListDeploymentInstancesInput ) ( req * request . Request , output * ListDeploymentInstancesOutput ) {
op := & request . Operation {
Name : opListDeploymentInstances ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
2017-03-14 16:13:44 +01:00
Paginator : & request . Paginator {
InputTokens : [ ] string { "nextToken" } ,
OutputTokens : [ ] string { "nextToken" } ,
LimitToken : "" ,
TruncationToken : "" ,
} ,
2016-01-29 20:53:56 +01:00
}
if input == nil {
input = & ListDeploymentInstancesInput { }
}
output = & ListDeploymentInstancesOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// ListDeploymentInstances API operation for AWS CodeDeploy.
//
2016-03-18 20:35:09 +01:00
// Lists the instance for a deployment associated with the applicable IAM user
2016-01-29 20:53:56 +01:00
// or AWS account.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation ListDeploymentInstances for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
2016-10-17 23:21:08 +02:00
// At least one deployment ID must be specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The deployment does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException"
2016-10-17 23:21:08 +02:00
// The specified deployment has not started.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
2016-10-17 23:21:08 +02:00
// The next token was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
2016-10-17 23:21:08 +02:00
// At least one of the deployment IDs was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidInstanceStatusException "InvalidInstanceStatusException"
2016-10-17 23:21:08 +02:00
// The specified instance status does not exist.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidInstanceTypeException "InvalidInstanceTypeException"
2017-01-30 15:18:29 +01:00
// An invalid instance type was specified for instances in a blue/green deployment.
// Valid values include "Blue" for an original environment and "Green" for a
// replacement environment.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstances
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListDeploymentInstances ( input * ListDeploymentInstancesInput ) ( * ListDeploymentInstancesOutput , error ) {
req , out := c . ListDeploymentInstancesRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// ListDeploymentInstancesWithContext is the same as ListDeploymentInstances with the addition of
// the ability to pass a context and additional request options.
//
// See ListDeploymentInstances 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 * CodeDeploy ) ListDeploymentInstancesWithContext ( ctx aws . Context , input * ListDeploymentInstancesInput , opts ... request . Option ) ( * ListDeploymentInstancesOutput , error ) {
req , out := c . ListDeploymentInstancesRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
2017-03-14 16:13:44 +01:00
// ListDeploymentInstancesPages iterates over the pages of a ListDeploymentInstances operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListDeploymentInstances 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 ListDeploymentInstances operation.
// pageNum := 0
// err := client.ListDeploymentInstancesPages(params,
// func(page *ListDeploymentInstancesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2017-04-05 09:45:27 +02:00
func ( c * CodeDeploy ) ListDeploymentInstancesPages ( input * ListDeploymentInstancesInput , fn func ( * ListDeploymentInstancesOutput , bool ) bool ) error {
return c . ListDeploymentInstancesPagesWithContext ( aws . BackgroundContext ( ) , input , fn )
}
// ListDeploymentInstancesPagesWithContext same as ListDeploymentInstancesPages 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 * CodeDeploy ) ListDeploymentInstancesPagesWithContext ( ctx aws . Context , input * ListDeploymentInstancesInput , fn func ( * ListDeploymentInstancesOutput , bool ) bool , opts ... request . Option ) error {
p := request . Pagination {
NewRequest : func ( ) ( * request . Request , error ) {
var inCpy * ListDeploymentInstancesInput
if input != nil {
tmp := * input
inCpy = & tmp
}
req , _ := c . ListDeploymentInstancesRequest ( inCpy )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return req , nil
} ,
}
cont := true
for p . Next ( ) && cont {
cont = fn ( p . Page ( ) . ( * ListDeploymentInstancesOutput ) , ! p . HasNextPage ( ) )
}
return p . Err ( )
2017-03-14 16:13:44 +01:00
}
2016-01-29 20:53:56 +01:00
const opListDeployments = "ListDeployments"
2016-07-15 15:49:02 +02:00
// ListDeploymentsRequest generates a "aws/request.Request" representing the
// client's request for the ListDeployments operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListDeployments for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListDeployments method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListDeploymentsRequest method.
// req, resp := client.ListDeploymentsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeployments
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListDeploymentsRequest ( input * ListDeploymentsInput ) ( req * request . Request , output * ListDeploymentsOutput ) {
op := & request . Operation {
Name : opListDeployments ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
2017-03-14 16:13:44 +01:00
Paginator : & request . Paginator {
InputTokens : [ ] string { "nextToken" } ,
OutputTokens : [ ] string { "nextToken" } ,
LimitToken : "" ,
TruncationToken : "" ,
} ,
2016-01-29 20:53:56 +01:00
}
if input == nil {
input = & ListDeploymentsInput { }
}
output = & ListDeploymentsOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// ListDeployments API operation for AWS CodeDeploy.
//
2016-03-18 20:35:09 +01:00
// Lists the deployments in a deployment group for an application registered
2016-01-29 20:53:56 +01:00
// with the applicable IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation ListDeployments for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
2016-10-17 23:21:08 +02:00
// The deployment group name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The named deployment group does not exist with the applicable IAM user or
// AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
2016-10-17 23:21:08 +02:00
// The deployment group name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidTimeRangeException "InvalidTimeRangeException"
2016-10-17 23:21:08 +02:00
// The specified time range was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentStatusException "InvalidDeploymentStatusException"
2016-10-17 23:21:08 +02:00
// The specified deployment status doesn't exist or cannot be determined.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
2016-10-17 23:21:08 +02:00
// The next token was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeployments
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListDeployments ( input * ListDeploymentsInput ) ( * ListDeploymentsOutput , error ) {
req , out := c . ListDeploymentsRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// ListDeploymentsWithContext is the same as ListDeployments with the addition of
// the ability to pass a context and additional request options.
//
// See ListDeployments 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 * CodeDeploy ) ListDeploymentsWithContext ( ctx aws . Context , input * ListDeploymentsInput , opts ... request . Option ) ( * ListDeploymentsOutput , error ) {
req , out := c . ListDeploymentsRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
2017-03-14 16:13:44 +01:00
// ListDeploymentsPages iterates over the pages of a ListDeployments operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListDeployments 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 ListDeployments operation.
// pageNum := 0
// err := client.ListDeploymentsPages(params,
// func(page *ListDeploymentsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
2017-04-05 09:45:27 +02:00
func ( c * CodeDeploy ) ListDeploymentsPages ( input * ListDeploymentsInput , fn func ( * ListDeploymentsOutput , bool ) bool ) error {
return c . ListDeploymentsPagesWithContext ( aws . BackgroundContext ( ) , input , fn )
}
// ListDeploymentsPagesWithContext same as ListDeploymentsPages 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 * CodeDeploy ) ListDeploymentsPagesWithContext ( ctx aws . Context , input * ListDeploymentsInput , fn func ( * ListDeploymentsOutput , bool ) bool , opts ... request . Option ) error {
p := request . Pagination {
NewRequest : func ( ) ( * request . Request , error ) {
var inCpy * ListDeploymentsInput
if input != nil {
tmp := * input
inCpy = & tmp
}
req , _ := c . ListDeploymentsRequest ( inCpy )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return req , nil
} ,
}
cont := true
for p . Next ( ) && cont {
cont = fn ( p . Page ( ) . ( * ListDeploymentsOutput ) , ! p . HasNextPage ( ) )
}
return p . Err ( )
2017-03-14 16:13:44 +01:00
}
2016-01-29 20:53:56 +01:00
const opListOnPremisesInstances = "ListOnPremisesInstances"
2016-07-15 15:49:02 +02:00
// ListOnPremisesInstancesRequest generates a "aws/request.Request" representing the
// client's request for the ListOnPremisesInstances operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListOnPremisesInstances for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListOnPremisesInstances method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListOnPremisesInstancesRequest method.
// req, resp := client.ListOnPremisesInstancesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstances
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListOnPremisesInstancesRequest ( input * ListOnPremisesInstancesInput ) ( req * request . Request , output * ListOnPremisesInstancesOutput ) {
op := & request . Operation {
Name : opListOnPremisesInstances ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & ListOnPremisesInstancesInput { }
}
output = & ListOnPremisesInstancesOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// ListOnPremisesInstances API operation for AWS CodeDeploy.
//
2016-03-18 20:35:09 +01:00
// Gets a list of names for one or more on-premises instances.
2016-01-29 20:53:56 +01:00
//
// Unless otherwise specified, both registered and deregistered on-premises
// instance names will be listed. To list only registered or deregistered on-premises
// instance names, use the registration status parameter.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation ListOnPremisesInstances for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidRegistrationStatusException "InvalidRegistrationStatusException"
2016-10-17 23:21:08 +02:00
// The registration status was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidTagFilterException "InvalidTagFilterException"
2016-10-17 23:21:08 +02:00
// The specified tag filter was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
2016-10-17 23:21:08 +02:00
// The next token was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstances
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) ListOnPremisesInstances ( input * ListOnPremisesInstancesInput ) ( * ListOnPremisesInstancesOutput , error ) {
req , out := c . ListOnPremisesInstancesRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// ListOnPremisesInstancesWithContext is the same as ListOnPremisesInstances with the addition of
// the ability to pass a context and additional request options.
//
// See ListOnPremisesInstances 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 * CodeDeploy ) ListOnPremisesInstancesWithContext ( ctx aws . Context , input * ListOnPremisesInstancesInput , opts ... request . Option ) ( * ListOnPremisesInstancesOutput , error ) {
req , out := c . ListOnPremisesInstancesRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opRegisterApplicationRevision = "RegisterApplicationRevision"
2016-07-15 15:49:02 +02:00
// RegisterApplicationRevisionRequest generates a "aws/request.Request" representing the
// client's request for the RegisterApplicationRevision operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See RegisterApplicationRevision for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the RegisterApplicationRevision method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the RegisterApplicationRevisionRequest method.
// req, resp := client.RegisterApplicationRevisionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevision
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) RegisterApplicationRevisionRequest ( input * RegisterApplicationRevisionInput ) ( req * request . Request , output * RegisterApplicationRevisionOutput ) {
op := & request . Operation {
Name : opRegisterApplicationRevision ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & RegisterApplicationRevisionInput { }
}
2017-01-23 22:22:31 +01:00
output = & RegisterApplicationRevisionOutput { }
2016-01-29 20:53:56 +01:00
req = c . newRequest ( op , input , output )
2016-02-15 20:59:49 +01:00
req . Handlers . Unmarshal . Remove ( jsonrpc . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// RegisterApplicationRevision API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Registers with AWS CodeDeploy a revision for the specified application.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation RegisterApplicationRevision for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDescriptionTooLongException "DescriptionTooLongException"
2016-10-17 23:21:08 +02:00
// The description is too long.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeRevisionRequiredException "RevisionRequiredException"
2016-10-17 23:21:08 +02:00
// The revision ID was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidRevisionException "InvalidRevisionException"
2016-10-17 23:21:08 +02:00
// The revision was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevision
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) RegisterApplicationRevision ( input * RegisterApplicationRevisionInput ) ( * RegisterApplicationRevisionOutput , error ) {
req , out := c . RegisterApplicationRevisionRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// RegisterApplicationRevisionWithContext is the same as RegisterApplicationRevision with the addition of
// the ability to pass a context and additional request options.
//
// See RegisterApplicationRevision 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 * CodeDeploy ) RegisterApplicationRevisionWithContext ( ctx aws . Context , input * RegisterApplicationRevisionInput , opts ... request . Option ) ( * RegisterApplicationRevisionOutput , error ) {
req , out := c . RegisterApplicationRevisionRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opRegisterOnPremisesInstance = "RegisterOnPremisesInstance"
2016-07-15 15:49:02 +02:00
// RegisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the
// client's request for the RegisterOnPremisesInstance operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See RegisterOnPremisesInstance for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the RegisterOnPremisesInstance method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the RegisterOnPremisesInstanceRequest method.
// req, resp := client.RegisterOnPremisesInstanceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstance
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) RegisterOnPremisesInstanceRequest ( input * RegisterOnPremisesInstanceInput ) ( req * request . Request , output * RegisterOnPremisesInstanceOutput ) {
op := & request . Operation {
Name : opRegisterOnPremisesInstance ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & RegisterOnPremisesInstanceInput { }
}
2017-01-23 22:22:31 +01:00
output = & RegisterOnPremisesInstanceOutput { }
2016-01-29 20:53:56 +01:00
req = c . newRequest ( op , input , output )
2016-02-15 20:59:49 +01:00
req . Handlers . Unmarshal . Remove ( jsonrpc . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// RegisterOnPremisesInstance API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Registers an on-premises instance.
2016-10-17 23:21:08 +02:00
//
2017-01-02 21:35:31 +01:00
// Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the
// request. You cannot use both.
//
2016-10-17 23:21:08 +02:00
// 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 CodeDeploy's
// API operation RegisterOnPremisesInstance for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceNameAlreadyRegisteredException "InstanceNameAlreadyRegisteredException"
2016-10-17 23:21:08 +02:00
// The specified on-premises instance name is already registered.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeIamArnRequiredException "IamArnRequiredException"
2017-01-02 21:35:31 +01:00
// No IAM ARN was included in the request. You must use an IAM session ARN or
// IAM user ARN in the request.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeIamSessionArnAlreadyRegisteredException "IamSessionArnAlreadyRegisteredException"
2017-01-02 21:35:31 +01:00
// The request included an IAM session ARN that has already been used to register
// a different instance.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeIamUserArnAlreadyRegisteredException "IamUserArnAlreadyRegisteredException"
2016-10-17 23:21:08 +02:00
// The specified IAM user ARN is already registered with an on-premises instance.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
2016-10-17 23:21:08 +02:00
// An on-premises instance name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeIamUserArnRequiredException "IamUserArnRequiredException"
2016-10-17 23:21:08 +02:00
// An IAM user ARN was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
2016-10-17 23:21:08 +02:00
// The specified on-premises instance name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidIamSessionArnException "InvalidIamSessionArnException"
2017-01-02 21:35:31 +01:00
// The IAM session ARN was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidIamUserArnException "InvalidIamUserArnException"
2016-10-17 23:21:08 +02:00
// The IAM user ARN was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeMultipleIamArnsProvidedException "MultipleIamArnsProvidedException"
2017-01-02 21:35:31 +01:00
// Both an IAM user ARN and an IAM session ARN were included in the request.
// Use only one ARN type.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstance
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) RegisterOnPremisesInstance ( input * RegisterOnPremisesInstanceInput ) ( * RegisterOnPremisesInstanceOutput , error ) {
req , out := c . RegisterOnPremisesInstanceRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// RegisterOnPremisesInstanceWithContext is the same as RegisterOnPremisesInstance with the addition of
// the ability to pass a context and additional request options.
//
// See RegisterOnPremisesInstance 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 * CodeDeploy ) RegisterOnPremisesInstanceWithContext ( ctx aws . Context , input * RegisterOnPremisesInstanceInput , opts ... request . Option ) ( * RegisterOnPremisesInstanceOutput , error ) {
req , out := c . RegisterOnPremisesInstanceRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opRemoveTagsFromOnPremisesInstances = "RemoveTagsFromOnPremisesInstances"
2016-07-15 15:49:02 +02:00
// RemoveTagsFromOnPremisesInstancesRequest generates a "aws/request.Request" representing the
// client's request for the RemoveTagsFromOnPremisesInstances operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See RemoveTagsFromOnPremisesInstances for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the RemoveTagsFromOnPremisesInstances method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the RemoveTagsFromOnPremisesInstancesRequest method.
// req, resp := client.RemoveTagsFromOnPremisesInstancesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstances
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) RemoveTagsFromOnPremisesInstancesRequest ( input * RemoveTagsFromOnPremisesInstancesInput ) ( req * request . Request , output * RemoveTagsFromOnPremisesInstancesOutput ) {
op := & request . Operation {
Name : opRemoveTagsFromOnPremisesInstances ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & RemoveTagsFromOnPremisesInstancesInput { }
}
2017-01-23 22:22:31 +01:00
output = & RemoveTagsFromOnPremisesInstancesOutput { }
2016-01-29 20:53:56 +01:00
req = c . newRequest ( op , input , output )
2016-02-15 20:59:49 +01:00
req . Handlers . Unmarshal . Remove ( jsonrpc . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// RemoveTagsFromOnPremisesInstances API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Removes one or more tags from one or more on-premises instances.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation RemoveTagsFromOnPremisesInstances for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
2016-10-17 23:21:08 +02:00
// An on-premises instance name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeTagRequiredException "TagRequiredException"
2016-10-17 23:21:08 +02:00
// A tag was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidTagException "InvalidTagException"
2016-10-17 23:21:08 +02:00
// The specified tag was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeTagLimitExceededException "TagLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum allowed number of tags was exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceLimitExceededException "InstanceLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum number of allowed on-premises instances in a single call was
// exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException"
2016-10-17 23:21:08 +02:00
// The specified on-premises instance is not registered.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstances
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) RemoveTagsFromOnPremisesInstances ( input * RemoveTagsFromOnPremisesInstancesInput ) ( * RemoveTagsFromOnPremisesInstancesOutput , error ) {
req , out := c . RemoveTagsFromOnPremisesInstancesRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// RemoveTagsFromOnPremisesInstancesWithContext is the same as RemoveTagsFromOnPremisesInstances with the addition of
// the ability to pass a context and additional request options.
//
// See RemoveTagsFromOnPremisesInstances 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 * CodeDeploy ) RemoveTagsFromOnPremisesInstancesWithContext ( ctx aws . Context , input * RemoveTagsFromOnPremisesInstancesInput , opts ... request . Option ) ( * RemoveTagsFromOnPremisesInstancesOutput , error ) {
req , out := c . RemoveTagsFromOnPremisesInstancesRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
2017-01-30 15:18:29 +01:00
const opSkipWaitTimeForInstanceTermination = "SkipWaitTimeForInstanceTermination"
// SkipWaitTimeForInstanceTerminationRequest generates a "aws/request.Request" representing the
// client's request for the SkipWaitTimeForInstanceTermination operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See SkipWaitTimeForInstanceTermination for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the SkipWaitTimeForInstanceTermination method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the SkipWaitTimeForInstanceTerminationRequest method.
// req, resp := client.SkipWaitTimeForInstanceTerminationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTermination
func ( c * CodeDeploy ) SkipWaitTimeForInstanceTerminationRequest ( input * SkipWaitTimeForInstanceTerminationInput ) ( req * request . Request , output * SkipWaitTimeForInstanceTerminationOutput ) {
op := & request . Operation {
Name : opSkipWaitTimeForInstanceTermination ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & SkipWaitTimeForInstanceTerminationInput { }
}
output = & SkipWaitTimeForInstanceTerminationOutput { }
req = c . newRequest ( op , input , output )
req . Handlers . Unmarshal . Remove ( jsonrpc . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
return
}
// SkipWaitTimeForInstanceTermination API operation for AWS CodeDeploy.
//
// In a blue/green deployment, overrides any specified wait time and starts
// terminating instances immediately after the traffic routing is completed.
//
// 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 CodeDeploy's
// API operation SkipWaitTimeForInstanceTermination for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
2017-01-30 15:18:29 +01:00
// At least one deployment ID must be specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
2017-01-30 15:18:29 +01:00
// The deployment does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException"
2017-01-30 15:18:29 +01:00
// The deployment is already complete.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
2017-01-30 15:18:29 +01:00
// At least one of the deployment IDs was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException"
2017-01-30 15:18:29 +01:00
// The specified deployment has not started.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeUnsupportedActionForDeploymentTypeException "UnsupportedActionForDeploymentTypeException"
2017-01-30 15:18:29 +01:00
// A call was submitted that is not supported for the specified deployment type.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTermination
func ( c * CodeDeploy ) SkipWaitTimeForInstanceTermination ( input * SkipWaitTimeForInstanceTerminationInput ) ( * SkipWaitTimeForInstanceTerminationOutput , error ) {
req , out := c . SkipWaitTimeForInstanceTerminationRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// SkipWaitTimeForInstanceTerminationWithContext is the same as SkipWaitTimeForInstanceTermination with the addition of
// the ability to pass a context and additional request options.
//
// See SkipWaitTimeForInstanceTermination 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 * CodeDeploy ) SkipWaitTimeForInstanceTerminationWithContext ( ctx aws . Context , input * SkipWaitTimeForInstanceTerminationInput , opts ... request . Option ) ( * SkipWaitTimeForInstanceTerminationOutput , error ) {
req , out := c . SkipWaitTimeForInstanceTerminationRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2017-01-30 15:18:29 +01:00
}
2016-01-29 20:53:56 +01:00
const opStopDeployment = "StopDeployment"
2016-07-15 15:49:02 +02:00
// StopDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the StopDeployment operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See StopDeployment for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the StopDeployment method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the StopDeploymentRequest method.
// req, resp := client.StopDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeployment
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) StopDeploymentRequest ( input * StopDeploymentInput ) ( req * request . Request , output * StopDeploymentOutput ) {
op := & request . Operation {
Name : opStopDeployment ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & StopDeploymentInput { }
}
output = & StopDeploymentOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// StopDeployment API operation for AWS CodeDeploy.
//
2016-01-29 20:53:56 +01:00
// Attempts to stop an ongoing deployment.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation StopDeployment for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
2016-10-17 23:21:08 +02:00
// At least one deployment ID must be specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The deployment does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException"
2016-10-17 23:21:08 +02:00
// The deployment is already complete.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
2016-10-17 23:21:08 +02:00
// At least one of the deployment IDs was specified in an invalid format.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeployment
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) StopDeployment ( input * StopDeploymentInput ) ( * StopDeploymentOutput , error ) {
req , out := c . StopDeploymentRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// StopDeploymentWithContext is the same as StopDeployment with the addition of
// the ability to pass a context and additional request options.
//
// See StopDeployment 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 * CodeDeploy ) StopDeploymentWithContext ( ctx aws . Context , input * StopDeploymentInput , opts ... request . Option ) ( * StopDeploymentOutput , error ) {
req , out := c . StopDeploymentRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opUpdateApplication = "UpdateApplication"
2016-07-15 15:49:02 +02:00
// UpdateApplicationRequest generates a "aws/request.Request" representing the
// client's request for the UpdateApplication operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See UpdateApplication for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateApplication method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateApplicationRequest method.
// req, resp := client.UpdateApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplication
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) UpdateApplicationRequest ( input * UpdateApplicationInput ) ( req * request . Request , output * UpdateApplicationOutput ) {
op := & request . Operation {
Name : opUpdateApplication ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & UpdateApplicationInput { }
}
2017-01-23 22:22:31 +01:00
output = & UpdateApplicationOutput { }
2016-01-29 20:53:56 +01:00
req = c . newRequest ( op , input , output )
2016-02-15 20:59:49 +01:00
req . Handlers . Unmarshal . Remove ( jsonrpc . UnmarshalHandler )
req . Handlers . Unmarshal . PushBackNamed ( protocol . UnmarshalDiscardBodyHandler )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// UpdateApplication API operation for AWS CodeDeploy.
//
2016-03-18 20:35:09 +01:00
// Changes the name of an application.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation UpdateApplication for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationAlreadyExistsException "ApplicationAlreadyExistsException"
2016-10-17 23:21:08 +02:00
// An application with the specified name already exists with the applicable
// IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplication
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) UpdateApplication ( input * UpdateApplicationInput ) ( * UpdateApplicationOutput , error ) {
req , out := c . UpdateApplicationRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// UpdateApplicationWithContext is the same as UpdateApplication with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateApplication 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 * CodeDeploy ) UpdateApplicationWithContext ( ctx aws . Context , input * UpdateApplicationInput , opts ... request . Option ) ( * UpdateApplicationOutput , error ) {
req , out := c . UpdateApplicationRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
const opUpdateDeploymentGroup = "UpdateDeploymentGroup"
2016-07-15 15:49:02 +02:00
// UpdateDeploymentGroupRequest generates a "aws/request.Request" representing the
// client's request for the UpdateDeploymentGroup operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See UpdateDeploymentGroup for usage and error information.
//
2016-07-15 15:49:02 +02:00
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateDeploymentGroup method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateDeploymentGroupRequest method.
// req, resp := client.UpdateDeploymentGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroup
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) UpdateDeploymentGroupRequest ( input * UpdateDeploymentGroupInput ) ( req * request . Request , output * UpdateDeploymentGroupOutput ) {
op := & request . Operation {
Name : opUpdateDeploymentGroup ,
HTTPMethod : "POST" ,
HTTPPath : "/" ,
}
if input == nil {
input = & UpdateDeploymentGroupInput { }
}
output = & UpdateDeploymentGroupOutput { }
2017-01-23 22:22:31 +01:00
req = c . newRequest ( op , input , output )
2016-01-29 20:53:56 +01:00
return
}
2016-10-17 23:21:08 +02:00
// UpdateDeploymentGroup API operation for AWS CodeDeploy.
//
2016-03-18 20:35:09 +01:00
// Changes information about a deployment group.
2016-10-17 23:21:08 +02:00
//
// 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 CodeDeploy's
// API operation UpdateDeploymentGroup for usage and error information.
//
// Returned Error Codes:
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
2016-10-17 23:21:08 +02:00
// The minimum number of required application names was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
2016-10-17 23:21:08 +02:00
// The application name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The application does not exist with the applicable IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
2016-10-17 23:21:08 +02:00
// The deployment group name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupAlreadyExistsException "DeploymentGroupAlreadyExistsException"
2016-10-17 23:21:08 +02:00
// A deployment group with the specified name already exists with the applicable
// IAM user or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
2016-10-17 23:21:08 +02:00
// The deployment group name was not specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The named deployment group does not exist with the applicable IAM user or
// AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidEC2TagException "InvalidEC2TagException"
2016-10-17 23:21:08 +02:00
// The tag was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidTagException "InvalidTagException"
2016-10-17 23:21:08 +02:00
// The specified tag was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidAutoScalingGroupException "InvalidAutoScalingGroupException"
2016-10-17 23:21:08 +02:00
// The Auto Scaling group was specified in an invalid format or does not exist.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
2016-10-17 23:21:08 +02:00
// The deployment configuration name was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException"
2016-10-17 23:21:08 +02:00
// The deployment configuration does not exist with the applicable IAM user
// or AWS account.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidRoleException "InvalidRoleException"
2016-10-17 23:21:08 +02:00
// The service role ARN was specified in an invalid format. Or, if an Auto Scaling
// group was specified, the specified service role does not grant the appropriate
// permissions to Auto Scaling.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeLifecycleHookLimitExceededException "LifecycleHookLimitExceededException"
2016-10-17 23:21:08 +02:00
// The limit for lifecycle hooks was exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidTriggerConfigException "InvalidTriggerConfigException"
2016-10-17 23:21:08 +02:00
// The trigger was specified in an invalid format.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeTriggerTargetsLimitExceededException "TriggerTargetsLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum allowed number of triggers was exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidAlarmConfigException "InvalidAlarmConfigException"
2016-10-17 23:21:08 +02:00
// The format of the alarm configuration is invalid. Possible causes include:
//
2016-11-19 19:41:01 +01:00
// * The alarm list is null.
2016-10-17 23:21:08 +02:00
//
2016-11-19 19:41:01 +01:00
// * The alarm object is null.
2016-10-17 23:21:08 +02:00
//
2016-11-19 19:41:01 +01:00
// * The alarm name is empty or null or exceeds the 255 character limit.
2016-10-17 23:21:08 +02:00
//
2016-11-19 19:41:01 +01:00
// * Two alarms with the same name have been specified.
2016-10-17 23:21:08 +02:00
//
2016-11-19 19:41:01 +01:00
// * The alarm configuration is enabled but the alarm list is empty.
2016-10-17 23:21:08 +02:00
//
2017-02-08 14:02:41 +01:00
// * ErrCodeAlarmsLimitExceededException "AlarmsLimitExceededException"
2016-10-17 23:21:08 +02:00
// The maximum number of alarms for a deployment group (10) was exceeded.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException"
2016-10-17 23:21:08 +02:00
// The automatic rollback configuration was specified in an invalid format.
// For example, automatic rollback is enabled but an invalid triggering event
// type or no event types were listed.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException"
2017-01-30 15:18:29 +01:00
// An invalid load balancer name, or no load balancer name, was specified.
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidDeploymentStyleException "InvalidDeploymentStyleException"
2017-01-30 15:18:29 +01:00
// An invalid deployment style was specified. Valid deployment types include
// "IN_PLACE" and "BLUE_GREEN". Valid deployment options for blue/green deployments
// include "WITH_TRAFFIC_CONTROL" and "WITHOUT_TRAFFIC_CONTROL".
//
2017-02-08 14:02:41 +01:00
// * ErrCodeInvalidBlueGreenDeploymentConfigurationException "InvalidBlueGreenDeploymentConfigurationException"
2017-01-30 15:18:29 +01:00
// The configuration for the blue/green deployment group was provided in an
// invalid format. For information about deployment configuration format, see
// CreateDeploymentConfig.
//
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroup
2016-01-29 20:53:56 +01:00
func ( c * CodeDeploy ) UpdateDeploymentGroup ( input * UpdateDeploymentGroupInput ) ( * UpdateDeploymentGroupOutput , error ) {
req , out := c . UpdateDeploymentGroupRequest ( input )
2017-04-05 09:45:27 +02:00
return out , req . Send ( )
}
// UpdateDeploymentGroupWithContext is the same as UpdateDeploymentGroup with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateDeploymentGroup 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 * CodeDeploy ) UpdateDeploymentGroupWithContext ( ctx aws . Context , input * UpdateDeploymentGroupInput , opts ... request . Option ) ( * UpdateDeploymentGroupOutput , error ) {
req , out := c . UpdateDeploymentGroupRequest ( input )
req . SetContext ( ctx )
req . ApplyOptions ( opts ... )
return out , req . Send ( )
2016-01-29 20:53:56 +01:00
}
2016-03-18 20:35:09 +01:00
// Represents the input of, and adds tags to, an on-premises instance operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstancesInput
2016-01-29 20:53:56 +01:00
type AddTagsToOnPremisesInstancesInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The names of the on-premises instances to which to add tags.
2016-10-17 23:21:08 +02:00
//
// InstanceNames is a required field
2016-01-29 20:53:56 +01:00
InstanceNames [ ] * string ` locationName:"instanceNames" type:"list" required:"true" `
// The tag key-value pairs to add to the on-premises instances.
//
2016-03-18 20:35:09 +01:00
// Keys and values are both required. Keys cannot be null or empty strings.
2016-01-29 20:53:56 +01:00
// Value-only tags are not allowed.
2016-10-17 23:21:08 +02:00
//
// Tags is a required field
2016-01-29 20:53:56 +01:00
Tags [ ] * Tag ` locationName:"tags" type:"list" required:"true" `
}
// String returns the string representation
func ( s AddTagsToOnPremisesInstancesInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s AddTagsToOnPremisesInstancesInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * AddTagsToOnPremisesInstancesInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "AddTagsToOnPremisesInstancesInput" }
if s . InstanceNames == nil {
invalidParams . Add ( request . NewErrParamRequired ( "InstanceNames" ) )
}
if s . Tags == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Tags" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetInstanceNames sets the InstanceNames field's value.
func ( s * AddTagsToOnPremisesInstancesInput ) SetInstanceNames ( v [ ] * string ) * AddTagsToOnPremisesInstancesInput {
s . InstanceNames = v
return s
}
// SetTags sets the Tags field's value.
func ( s * AddTagsToOnPremisesInstancesInput ) SetTags ( v [ ] * Tag ) * AddTagsToOnPremisesInstancesInput {
s . Tags = v
return s
}
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstancesOutput
2016-01-29 20:53:56 +01:00
type AddTagsToOnPremisesInstancesOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s AddTagsToOnPremisesInstancesOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s AddTagsToOnPremisesInstancesOutput ) GoString ( ) string {
return s . String ( )
}
2016-09-21 09:50:22 +02:00
// Information about an alarm.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/Alarm
2016-09-21 09:50:22 +02:00
type Alarm struct {
_ struct { } ` type:"structure" `
// The name of the alarm. Maximum length is 255 characters. Each alarm name
// can be used only once in a list of alarms.
Name * string ` locationName:"name" type:"string" `
}
// String returns the string representation
func ( s Alarm ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Alarm ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetName sets the Name field's value.
func ( s * Alarm ) SetName ( v string ) * Alarm {
s . Name = & v
return s
}
2016-09-21 09:50:22 +02:00
// Information about alarms associated with the deployment group.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AlarmConfiguration
2016-09-21 09:50:22 +02:00
type AlarmConfiguration struct {
_ struct { } ` type:"structure" `
// A list of alarms configured for the deployment group. A maximum of 10 alarms
// can be added to a deployment group.
Alarms [ ] * Alarm ` locationName:"alarms" type:"list" `
// Indicates whether the alarm configuration is enabled.
Enabled * bool ` locationName:"enabled" type:"boolean" `
// Indicates whether a deployment should continue if information about the current
// state of alarms cannot be retrieved from Amazon CloudWatch. The default value
// is false.
//
2016-11-19 19:41:01 +01:00
// * true: The deployment will proceed even if alarm status information can't
// be retrieved from Amazon CloudWatch.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * false: The deployment will stop if alarm status information can't be
// retrieved from Amazon CloudWatch.
2016-09-21 09:50:22 +02:00
IgnorePollAlarmFailure * bool ` locationName:"ignorePollAlarmFailure" type:"boolean" `
}
// String returns the string representation
func ( s AlarmConfiguration ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s AlarmConfiguration ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetAlarms sets the Alarms field's value.
func ( s * AlarmConfiguration ) SetAlarms ( v [ ] * Alarm ) * AlarmConfiguration {
s . Alarms = v
return s
}
// SetEnabled sets the Enabled field's value.
func ( s * AlarmConfiguration ) SetEnabled ( v bool ) * AlarmConfiguration {
s . Enabled = & v
return s
}
// SetIgnorePollAlarmFailure sets the IgnorePollAlarmFailure field's value.
func ( s * AlarmConfiguration ) SetIgnorePollAlarmFailure ( v bool ) * AlarmConfiguration {
s . IgnorePollAlarmFailure = & v
return s
}
2016-01-29 20:53:56 +01:00
// Information about an application.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ApplicationInfo
2016-01-29 20:53:56 +01:00
type ApplicationInfo struct {
_ struct { } ` type:"structure" `
// The application ID.
ApplicationId * string ` locationName:"applicationId" type:"string" `
// The application name.
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" `
2016-03-18 20:35:09 +01:00
// The time at which the application was created.
2016-01-29 20:53:56 +01:00
CreateTime * time . Time ` locationName:"createTime" type:"timestamp" timestampFormat:"unix" `
// True if the user has authenticated with GitHub for the specified application;
// otherwise, false.
LinkedToGitHub * bool ` locationName:"linkedToGitHub" type:"boolean" `
}
// String returns the string representation
func ( s ApplicationInfo ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ApplicationInfo ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetApplicationId sets the ApplicationId field's value.
func ( s * ApplicationInfo ) SetApplicationId ( v string ) * ApplicationInfo {
s . ApplicationId = & v
return s
}
// SetApplicationName sets the ApplicationName field's value.
func ( s * ApplicationInfo ) SetApplicationName ( v string ) * ApplicationInfo {
s . ApplicationName = & v
return s
}
// SetCreateTime sets the CreateTime field's value.
func ( s * ApplicationInfo ) SetCreateTime ( v time . Time ) * ApplicationInfo {
s . CreateTime = & v
return s
}
// SetLinkedToGitHub sets the LinkedToGitHub field's value.
func ( s * ApplicationInfo ) SetLinkedToGitHub ( v bool ) * ApplicationInfo {
s . LinkedToGitHub = & v
return s
}
2016-09-21 09:50:22 +02:00
// Information about a configuration for automatically rolling back to a previous
// version of an application revision when a deployment doesn't complete successfully.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AutoRollbackConfiguration
2016-09-21 09:50:22 +02:00
type AutoRollbackConfiguration struct {
_ struct { } ` type:"structure" `
// Indicates whether a defined automatic rollback configuration is currently
// enabled.
Enabled * bool ` locationName:"enabled" type:"boolean" `
// The event type or types that trigger a rollback.
Events [ ] * string ` locationName:"events" type:"list" `
}
// String returns the string representation
func ( s AutoRollbackConfiguration ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s AutoRollbackConfiguration ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetEnabled sets the Enabled field's value.
func ( s * AutoRollbackConfiguration ) SetEnabled ( v bool ) * AutoRollbackConfiguration {
s . Enabled = & v
return s
}
// SetEvents sets the Events field's value.
func ( s * AutoRollbackConfiguration ) SetEvents ( v [ ] * string ) * AutoRollbackConfiguration {
s . Events = v
return s
}
2016-01-29 20:53:56 +01:00
// Information about an Auto Scaling group.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AutoScalingGroup
2016-01-29 20:53:56 +01:00
type AutoScalingGroup struct {
_ struct { } ` type:"structure" `
// An Auto Scaling lifecycle event hook name.
Hook * string ` locationName:"hook" type:"string" `
// The Auto Scaling group name.
Name * string ` locationName:"name" type:"string" `
}
// String returns the string representation
func ( s AutoScalingGroup ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s AutoScalingGroup ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetHook sets the Hook field's value.
func ( s * AutoScalingGroup ) SetHook ( v string ) * AutoScalingGroup {
s . Hook = & v
return s
}
// SetName sets the Name field's value.
func ( s * AutoScalingGroup ) SetName ( v string ) * AutoScalingGroup {
s . Name = & v
return s
}
2016-03-11 01:27:37 +01:00
// Represents the input of a batch get application revisions operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisionsInput
2016-03-11 01:27:37 +01:00
type BatchGetApplicationRevisionsInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of an AWS CodeDeploy application about which to get revision information.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-03-11 01:27:37 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
2016-03-18 20:35:09 +01:00
// Information to get about the application revisions, including type and location.
2016-10-17 23:21:08 +02:00
//
// Revisions is a required field
2016-03-11 01:27:37 +01:00
Revisions [ ] * RevisionLocation ` locationName:"revisions" type:"list" required:"true" `
}
// String returns the string representation
func ( s BatchGetApplicationRevisionsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetApplicationRevisionsInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * BatchGetApplicationRevisionsInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "BatchGetApplicationRevisionsInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if s . Revisions == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Revisions" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * BatchGetApplicationRevisionsInput ) SetApplicationName ( v string ) * BatchGetApplicationRevisionsInput {
s . ApplicationName = & v
return s
}
// SetRevisions sets the Revisions field's value.
func ( s * BatchGetApplicationRevisionsInput ) SetRevisions ( v [ ] * RevisionLocation ) * BatchGetApplicationRevisionsInput {
s . Revisions = v
return s
}
2016-03-11 01:27:37 +01:00
// Represents the output of a batch get application revisions operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisionsOutput
2016-03-11 01:27:37 +01:00
type BatchGetApplicationRevisionsOutput struct {
_ struct { } ` type:"structure" `
// The name of the application that corresponds to the revisions.
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" `
// Information about errors that may have occurred during the API call.
ErrorMessage * string ` locationName:"errorMessage" type:"string" `
2016-03-18 20:35:09 +01:00
// Additional information about the revisions, including the type and location.
2016-03-11 01:27:37 +01:00
Revisions [ ] * RevisionInfo ` locationName:"revisions" type:"list" `
}
// String returns the string representation
func ( s BatchGetApplicationRevisionsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetApplicationRevisionsOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * BatchGetApplicationRevisionsOutput ) SetApplicationName ( v string ) * BatchGetApplicationRevisionsOutput {
s . ApplicationName = & v
return s
}
// SetErrorMessage sets the ErrorMessage field's value.
func ( s * BatchGetApplicationRevisionsOutput ) SetErrorMessage ( v string ) * BatchGetApplicationRevisionsOutput {
s . ErrorMessage = & v
return s
}
// SetRevisions sets the Revisions field's value.
func ( s * BatchGetApplicationRevisionsOutput ) SetRevisions ( v [ ] * RevisionInfo ) * BatchGetApplicationRevisionsOutput {
s . Revisions = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a batch get applications operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationsInput
2016-01-29 20:53:56 +01:00
type BatchGetApplicationsInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// A list of application names separated by spaces.
2016-01-29 20:53:56 +01:00
ApplicationNames [ ] * string ` locationName:"applicationNames" type:"list" `
}
// String returns the string representation
func ( s BatchGetApplicationsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetApplicationsInput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetApplicationNames sets the ApplicationNames field's value.
func ( s * BatchGetApplicationsInput ) SetApplicationNames ( v [ ] * string ) * BatchGetApplicationsInput {
s . ApplicationNames = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a batch get applications operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationsOutput
2016-01-29 20:53:56 +01:00
type BatchGetApplicationsOutput struct {
_ struct { } ` type:"structure" `
// Information about the applications.
ApplicationsInfo [ ] * ApplicationInfo ` locationName:"applicationsInfo" type:"list" `
}
// String returns the string representation
func ( s BatchGetApplicationsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetApplicationsOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetApplicationsInfo sets the ApplicationsInfo field's value.
func ( s * BatchGetApplicationsOutput ) SetApplicationsInfo ( v [ ] * ApplicationInfo ) * BatchGetApplicationsOutput {
s . ApplicationsInfo = v
return s
}
2016-03-18 20:35:09 +01:00
// Represents the input of a batch get deployment groups operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroupsInput
2016-03-18 20:35:09 +01:00
type BatchGetDeploymentGroupsInput struct {
_ struct { } ` type:"structure" `
// The name of an AWS CodeDeploy application associated with the applicable
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-03-18 20:35:09 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
// The deployment groups' names.
2016-10-17 23:21:08 +02:00
//
// DeploymentGroupNames is a required field
2016-03-18 20:35:09 +01:00
DeploymentGroupNames [ ] * string ` locationName:"deploymentGroupNames" type:"list" required:"true" `
}
// String returns the string representation
func ( s BatchGetDeploymentGroupsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetDeploymentGroupsInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * BatchGetDeploymentGroupsInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "BatchGetDeploymentGroupsInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if s . DeploymentGroupNames == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentGroupNames" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * BatchGetDeploymentGroupsInput ) SetApplicationName ( v string ) * BatchGetDeploymentGroupsInput {
s . ApplicationName = & v
return s
}
// SetDeploymentGroupNames sets the DeploymentGroupNames field's value.
func ( s * BatchGetDeploymentGroupsInput ) SetDeploymentGroupNames ( v [ ] * string ) * BatchGetDeploymentGroupsInput {
s . DeploymentGroupNames = v
return s
}
2016-03-18 20:35:09 +01:00
// Represents the output of a batch get deployment groups operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroupsOutput
2016-03-18 20:35:09 +01:00
type BatchGetDeploymentGroupsOutput struct {
_ struct { } ` type:"structure" `
// Information about the deployment groups.
DeploymentGroupsInfo [ ] * DeploymentGroupInfo ` locationName:"deploymentGroupsInfo" type:"list" `
// Information about errors that may have occurred during the API call.
ErrorMessage * string ` locationName:"errorMessage" type:"string" `
}
// String returns the string representation
func ( s BatchGetDeploymentGroupsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetDeploymentGroupsOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentGroupsInfo sets the DeploymentGroupsInfo field's value.
func ( s * BatchGetDeploymentGroupsOutput ) SetDeploymentGroupsInfo ( v [ ] * DeploymentGroupInfo ) * BatchGetDeploymentGroupsOutput {
s . DeploymentGroupsInfo = v
return s
}
// SetErrorMessage sets the ErrorMessage field's value.
func ( s * BatchGetDeploymentGroupsOutput ) SetErrorMessage ( v string ) * BatchGetDeploymentGroupsOutput {
s . ErrorMessage = & v
return s
}
2016-03-11 01:27:37 +01:00
// Represents the input of a batch get deployment instances operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstancesInput
2016-03-11 01:27:37 +01:00
type BatchGetDeploymentInstancesInput struct {
_ struct { } ` type:"structure" `
// The unique ID of a deployment.
2016-10-17 23:21:08 +02:00
//
// DeploymentId is a required field
2016-03-11 01:27:37 +01:00
DeploymentId * string ` locationName:"deploymentId" type:"string" required:"true" `
2016-03-18 20:35:09 +01:00
// The unique IDs of instances in the deployment group.
2016-10-17 23:21:08 +02:00
//
// InstanceIds is a required field
2016-03-11 01:27:37 +01:00
InstanceIds [ ] * string ` locationName:"instanceIds" type:"list" required:"true" `
}
// String returns the string representation
func ( s BatchGetDeploymentInstancesInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetDeploymentInstancesInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * BatchGetDeploymentInstancesInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "BatchGetDeploymentInstancesInput" }
if s . DeploymentId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentId" ) )
}
if s . InstanceIds == nil {
invalidParams . Add ( request . NewErrParamRequired ( "InstanceIds" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetDeploymentId sets the DeploymentId field's value.
func ( s * BatchGetDeploymentInstancesInput ) SetDeploymentId ( v string ) * BatchGetDeploymentInstancesInput {
s . DeploymentId = & v
return s
}
// SetInstanceIds sets the InstanceIds field's value.
func ( s * BatchGetDeploymentInstancesInput ) SetInstanceIds ( v [ ] * string ) * BatchGetDeploymentInstancesInput {
s . InstanceIds = v
return s
}
2016-03-18 20:35:09 +01:00
// Represents the output of a batch get deployment instance operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstancesOutput
2016-03-11 01:27:37 +01:00
type BatchGetDeploymentInstancesOutput struct {
_ struct { } ` type:"structure" `
// Information about errors that may have occurred during the API call.
ErrorMessage * string ` locationName:"errorMessage" type:"string" `
2016-03-18 20:35:09 +01:00
// Information about the instance.
2016-03-11 01:27:37 +01:00
InstancesSummary [ ] * InstanceSummary ` locationName:"instancesSummary" type:"list" `
}
// String returns the string representation
func ( s BatchGetDeploymentInstancesOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetDeploymentInstancesOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetErrorMessage sets the ErrorMessage field's value.
func ( s * BatchGetDeploymentInstancesOutput ) SetErrorMessage ( v string ) * BatchGetDeploymentInstancesOutput {
s . ErrorMessage = & v
return s
}
// SetInstancesSummary sets the InstancesSummary field's value.
func ( s * BatchGetDeploymentInstancesOutput ) SetInstancesSummary ( v [ ] * InstanceSummary ) * BatchGetDeploymentInstancesOutput {
s . InstancesSummary = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a batch get deployments operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentsInput
2016-01-29 20:53:56 +01:00
type BatchGetDeploymentsInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// A list of deployment IDs, separated by spaces.
2016-01-29 20:53:56 +01:00
DeploymentIds [ ] * string ` locationName:"deploymentIds" type:"list" `
}
// String returns the string representation
func ( s BatchGetDeploymentsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetDeploymentsInput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentIds sets the DeploymentIds field's value.
func ( s * BatchGetDeploymentsInput ) SetDeploymentIds ( v [ ] * string ) * BatchGetDeploymentsInput {
s . DeploymentIds = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a batch get deployments operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentsOutput
2016-01-29 20:53:56 +01:00
type BatchGetDeploymentsOutput struct {
_ struct { } ` type:"structure" `
// Information about the deployments.
DeploymentsInfo [ ] * DeploymentInfo ` locationName:"deploymentsInfo" type:"list" `
}
// String returns the string representation
func ( s BatchGetDeploymentsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetDeploymentsOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentsInfo sets the DeploymentsInfo field's value.
func ( s * BatchGetDeploymentsOutput ) SetDeploymentsInfo ( v [ ] * DeploymentInfo ) * BatchGetDeploymentsOutput {
s . DeploymentsInfo = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a batch get on-premises instances operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstancesInput
2016-01-29 20:53:56 +01:00
type BatchGetOnPremisesInstancesInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The names of the on-premises instances about which to get information.
2016-01-29 20:53:56 +01:00
InstanceNames [ ] * string ` locationName:"instanceNames" type:"list" `
}
// String returns the string representation
func ( s BatchGetOnPremisesInstancesInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetOnPremisesInstancesInput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetInstanceNames sets the InstanceNames field's value.
func ( s * BatchGetOnPremisesInstancesInput ) SetInstanceNames ( v [ ] * string ) * BatchGetOnPremisesInstancesInput {
s . InstanceNames = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a batch get on-premises instances operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstancesOutput
2016-01-29 20:53:56 +01:00
type BatchGetOnPremisesInstancesOutput struct {
_ struct { } ` type:"structure" `
// Information about the on-premises instances.
InstanceInfos [ ] * InstanceInfo ` locationName:"instanceInfos" type:"list" `
}
// String returns the string representation
func ( s BatchGetOnPremisesInstancesOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BatchGetOnPremisesInstancesOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetInstanceInfos sets the InstanceInfos field's value.
func ( s * BatchGetOnPremisesInstancesOutput ) SetInstanceInfos ( v [ ] * InstanceInfo ) * BatchGetOnPremisesInstancesOutput {
s . InstanceInfos = v
return s
}
2017-01-30 15:18:29 +01:00
// Information about blue/green deployment options for a deployment group.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BlueGreenDeploymentConfiguration
type BlueGreenDeploymentConfiguration struct {
_ struct { } ` type:"structure" `
// Information about the action to take when newly provisioned instances are
// ready to receive traffic in a blue/green deployment.
DeploymentReadyOption * DeploymentReadyOption ` locationName:"deploymentReadyOption" type:"structure" `
// Information about how instances are provisioned for a replacement environment
// in a blue/green deployment.
GreenFleetProvisioningOption * GreenFleetProvisioningOption ` locationName:"greenFleetProvisioningOption" type:"structure" `
// Information about whether to terminate instances in the original fleet during
// a blue/green deployment.
TerminateBlueInstancesOnDeploymentSuccess * BlueInstanceTerminationOption ` locationName:"terminateBlueInstancesOnDeploymentSuccess" type:"structure" `
}
// String returns the string representation
func ( s BlueGreenDeploymentConfiguration ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BlueGreenDeploymentConfiguration ) GoString ( ) string {
return s . String ( )
}
// SetDeploymentReadyOption sets the DeploymentReadyOption field's value.
func ( s * BlueGreenDeploymentConfiguration ) SetDeploymentReadyOption ( v * DeploymentReadyOption ) * BlueGreenDeploymentConfiguration {
s . DeploymentReadyOption = v
return s
}
// SetGreenFleetProvisioningOption sets the GreenFleetProvisioningOption field's value.
func ( s * BlueGreenDeploymentConfiguration ) SetGreenFleetProvisioningOption ( v * GreenFleetProvisioningOption ) * BlueGreenDeploymentConfiguration {
s . GreenFleetProvisioningOption = v
return s
}
// SetTerminateBlueInstancesOnDeploymentSuccess sets the TerminateBlueInstancesOnDeploymentSuccess field's value.
func ( s * BlueGreenDeploymentConfiguration ) SetTerminateBlueInstancesOnDeploymentSuccess ( v * BlueInstanceTerminationOption ) * BlueGreenDeploymentConfiguration {
s . TerminateBlueInstancesOnDeploymentSuccess = v
return s
}
// Information about whether instances in the original environment are terminated
// when a blue/green deployment is successful.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BlueInstanceTerminationOption
type BlueInstanceTerminationOption struct {
_ struct { } ` type:"structure" `
// The action to take on instances in the original environment after a successful
// blue/green deployment.
//
// * TERMINATE: Instances are terminated after a specified wait time.
//
// * KEEP_ALIVE: Instances are left running after they are deregistered from
// the load balancer and removed from the deployment group.
Action * string ` locationName:"action" type:"string" enum:"InstanceAction" `
// The number of minutes to wait after a successful blue/green deployment before
// terminating instances from the original environment.
TerminationWaitTimeInMinutes * int64 ` locationName:"terminationWaitTimeInMinutes" type:"integer" `
}
// String returns the string representation
func ( s BlueInstanceTerminationOption ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s BlueInstanceTerminationOption ) GoString ( ) string {
return s . String ( )
}
// SetAction sets the Action field's value.
func ( s * BlueInstanceTerminationOption ) SetAction ( v string ) * BlueInstanceTerminationOption {
s . Action = & v
return s
}
// SetTerminationWaitTimeInMinutes sets the TerminationWaitTimeInMinutes field's value.
func ( s * BlueInstanceTerminationOption ) SetTerminationWaitTimeInMinutes ( v int64 ) * BlueInstanceTerminationOption {
s . TerminationWaitTimeInMinutes = & v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeploymentInput
type ContinueDeploymentInput struct {
_ struct { } ` type:"structure" `
// The deployment ID of the blue/green deployment for which you want to start
// rerouting traffic to the replacement environment.
DeploymentId * string ` locationName:"deploymentId" type:"string" `
}
// String returns the string representation
func ( s ContinueDeploymentInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ContinueDeploymentInput ) GoString ( ) string {
return s . String ( )
}
// SetDeploymentId sets the DeploymentId field's value.
func ( s * ContinueDeploymentInput ) SetDeploymentId ( v string ) * ContinueDeploymentInput {
s . DeploymentId = & v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeploymentOutput
type ContinueDeploymentOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s ContinueDeploymentOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ContinueDeploymentOutput ) GoString ( ) string {
return s . String ( )
}
2016-01-29 20:53:56 +01:00
// Represents the input of a create application operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplicationInput
2016-01-29 20:53:56 +01:00
type CreateApplicationInput struct {
_ struct { } ` type:"structure" `
// The name of the application. This name must be unique with the applicable
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
}
// String returns the string representation
func ( s CreateApplicationInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateApplicationInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateApplicationInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateApplicationInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * CreateApplicationInput ) SetApplicationName ( v string ) * CreateApplicationInput {
s . ApplicationName = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a create application operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplicationOutput
2016-01-29 20:53:56 +01:00
type CreateApplicationOutput struct {
_ struct { } ` type:"structure" `
// A unique application ID.
ApplicationId * string ` locationName:"applicationId" type:"string" `
}
// String returns the string representation
func ( s CreateApplicationOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateApplicationOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetApplicationId sets the ApplicationId field's value.
func ( s * CreateApplicationOutput ) SetApplicationId ( v string ) * CreateApplicationOutput {
s . ApplicationId = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a create deployment configuration operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfigInput
2016-01-29 20:53:56 +01:00
type CreateDeploymentConfigInput struct {
_ struct { } ` type:"structure" `
// The name of the deployment configuration to create.
2016-10-17 23:21:08 +02:00
//
// DeploymentConfigName is a required field
2016-01-29 20:53:56 +01:00
DeploymentConfigName * string ` locationName:"deploymentConfigName" min:"1" type:"string" required:"true" `
// The minimum number of healthy instances that should be available at any time
// during the deployment. There are two parameters expected in the input: type
// and value.
//
// The type parameter takes either of the following values:
//
2016-11-19 19:41:01 +01:00
// * HOST_COUNT: The value parameter represents the minimum number of healthy
// instances as an absolute value.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * FLEET_PERCENT: The value parameter represents the minimum number of
// healthy instances as a percentage of the total number of instances in
// the deployment. If you specify FLEET_PERCENT, at the start of the deployment,
// AWS CodeDeploy converts the percentage to the equivalent number of instance
// and rounds up fractional instances.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// The value parameter takes an integer.
2016-01-29 20:53:56 +01:00
//
2016-03-18 20:35:09 +01:00
// For example, to set a minimum of 95% healthy instance, specify a type of
2016-01-29 20:53:56 +01:00
// FLEET_PERCENT and a value of 95.
MinimumHealthyHosts * MinimumHealthyHosts ` locationName:"minimumHealthyHosts" type:"structure" `
}
// String returns the string representation
func ( s CreateDeploymentConfigInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateDeploymentConfigInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateDeploymentConfigInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateDeploymentConfigInput" }
if s . DeploymentConfigName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentConfigName" ) )
}
if s . DeploymentConfigName != nil && len ( * s . DeploymentConfigName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "DeploymentConfigName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetDeploymentConfigName sets the DeploymentConfigName field's value.
func ( s * CreateDeploymentConfigInput ) SetDeploymentConfigName ( v string ) * CreateDeploymentConfigInput {
s . DeploymentConfigName = & v
return s
}
// SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value.
func ( s * CreateDeploymentConfigInput ) SetMinimumHealthyHosts ( v * MinimumHealthyHosts ) * CreateDeploymentConfigInput {
s . MinimumHealthyHosts = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a create deployment configuration operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfigOutput
2016-01-29 20:53:56 +01:00
type CreateDeploymentConfigOutput struct {
_ struct { } ` type:"structure" `
// A unique deployment configuration ID.
DeploymentConfigId * string ` locationName:"deploymentConfigId" type:"string" `
}
// String returns the string representation
func ( s CreateDeploymentConfigOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateDeploymentConfigOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentConfigId sets the DeploymentConfigId field's value.
func ( s * CreateDeploymentConfigOutput ) SetDeploymentConfigId ( v string ) * CreateDeploymentConfigOutput {
s . DeploymentConfigId = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a create deployment group operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroupInput
2016-01-29 20:53:56 +01:00
type CreateDeploymentGroupInput struct {
_ struct { } ` type:"structure" `
2016-09-21 09:50:22 +02:00
// Information to add about Amazon CloudWatch alarms when the deployment group
// is created.
AlarmConfiguration * AlarmConfiguration ` locationName:"alarmConfiguration" type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of an AWS CodeDeploy application associated with the applicable
2016-01-29 20:53:56 +01:00
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
2016-09-21 09:50:22 +02:00
// Configuration information for an automatic rollback that is added when a
// deployment group is created.
AutoRollbackConfiguration * AutoRollbackConfiguration ` locationName:"autoRollbackConfiguration" type:"structure" `
2016-01-29 20:53:56 +01:00
// A list of associated Auto Scaling groups.
AutoScalingGroups [ ] * string ` locationName:"autoScalingGroups" type:"list" `
2017-01-30 15:18:29 +01:00
// Information about blue/green deployment options for a deployment group.
BlueGreenDeploymentConfiguration * BlueGreenDeploymentConfiguration ` locationName:"blueGreenDeploymentConfiguration" type:"structure" `
2016-03-11 01:27:37 +01:00
// If specified, the deployment configuration name can be either one of the
2016-03-18 20:35:09 +01:00
// predefined configurations provided with AWS CodeDeploy or a custom deployment
// configuration that you create by calling the create deployment configuration
2016-01-29 20:53:56 +01:00
// operation.
2016-03-11 01:27:37 +01:00
//
2016-11-19 19:41:01 +01:00
// CodeDeployDefault.OneAtATime is the default deployment configuration. It
2016-03-18 20:35:09 +01:00
// is used if a configuration isn't specified for the deployment or the deployment
// group.
2016-03-11 01:27:37 +01:00
//
2017-01-02 21:35:31 +01:00
// For more information about the predefined deployment configurations in AWS
// CodeDeploy, see see Working with Deployment Groups in AWS CodeDeploy (http://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html)
// in the AWS CodeDeploy User Guide.
2016-01-29 20:53:56 +01:00
DeploymentConfigName * string ` locationName:"deploymentConfigName" min:"1" type:"string" `
2016-03-11 01:27:37 +01:00
// The name of a new deployment group for the specified application.
2016-10-17 23:21:08 +02:00
//
// DeploymentGroupName is a required field
2016-01-29 20:53:56 +01:00
DeploymentGroupName * string ` locationName:"deploymentGroupName" min:"1" type:"string" required:"true" `
2017-01-30 15:18:29 +01:00
// Information about the type of deployment, standard or blue/green, that you
// want to run and whether to route deployment traffic behind a load balancer.
DeploymentStyle * DeploymentStyle ` locationName:"deploymentStyle" type:"structure" `
2016-03-18 20:35:09 +01:00
// The Amazon EC2 tags on which to filter.
2016-01-29 20:53:56 +01:00
Ec2TagFilters [ ] * EC2TagFilter ` locationName:"ec2TagFilters" type:"list" `
2017-01-30 15:18:29 +01:00
// Information about the load balancer used in a blue/green deployment.
LoadBalancerInfo * LoadBalancerInfo ` locationName:"loadBalancerInfo" type:"structure" `
2016-03-18 20:35:09 +01:00
// The on-premises instance tags on which to filter.
2016-01-29 20:53:56 +01:00
OnPremisesInstanceTagFilters [ ] * TagFilter ` locationName:"onPremisesInstanceTagFilters" type:"list" `
// A service role ARN that allows AWS CodeDeploy to act on the user's behalf
// when interacting with AWS services.
2016-10-17 23:21:08 +02:00
//
// ServiceRoleArn is a required field
2016-01-29 20:53:56 +01:00
ServiceRoleArn * string ` locationName:"serviceRoleArn" type:"string" required:"true" `
2016-03-11 01:27:37 +01:00
// Information about triggers to create when the deployment group is created.
2016-09-21 09:50:22 +02:00
// For examples, see Create a Trigger for an AWS CodeDeploy Event (http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html)
// in the AWS CodeDeploy User Guide.
2016-03-11 01:27:37 +01:00
TriggerConfigurations [ ] * TriggerConfig ` locationName:"triggerConfigurations" type:"list" `
2016-01-29 20:53:56 +01:00
}
// String returns the string representation
func ( s CreateDeploymentGroupInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateDeploymentGroupInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateDeploymentGroupInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateDeploymentGroupInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if s . DeploymentConfigName != nil && len ( * s . DeploymentConfigName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "DeploymentConfigName" , 1 ) )
}
if s . DeploymentGroupName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentGroupName" ) )
}
if s . DeploymentGroupName != nil && len ( * s . DeploymentGroupName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "DeploymentGroupName" , 1 ) )
}
if s . ServiceRoleArn == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ServiceRoleArn" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetAlarmConfiguration sets the AlarmConfiguration field's value.
func ( s * CreateDeploymentGroupInput ) SetAlarmConfiguration ( v * AlarmConfiguration ) * CreateDeploymentGroupInput {
s . AlarmConfiguration = v
return s
}
// SetApplicationName sets the ApplicationName field's value.
func ( s * CreateDeploymentGroupInput ) SetApplicationName ( v string ) * CreateDeploymentGroupInput {
s . ApplicationName = & v
return s
}
// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value.
func ( s * CreateDeploymentGroupInput ) SetAutoRollbackConfiguration ( v * AutoRollbackConfiguration ) * CreateDeploymentGroupInput {
s . AutoRollbackConfiguration = v
return s
}
// SetAutoScalingGroups sets the AutoScalingGroups field's value.
func ( s * CreateDeploymentGroupInput ) SetAutoScalingGroups ( v [ ] * string ) * CreateDeploymentGroupInput {
s . AutoScalingGroups = v
return s
}
2017-01-30 15:18:29 +01:00
// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value.
func ( s * CreateDeploymentGroupInput ) SetBlueGreenDeploymentConfiguration ( v * BlueGreenDeploymentConfiguration ) * CreateDeploymentGroupInput {
s . BlueGreenDeploymentConfiguration = v
return s
}
2016-11-19 19:41:01 +01:00
// SetDeploymentConfigName sets the DeploymentConfigName field's value.
func ( s * CreateDeploymentGroupInput ) SetDeploymentConfigName ( v string ) * CreateDeploymentGroupInput {
s . DeploymentConfigName = & v
return s
}
// SetDeploymentGroupName sets the DeploymentGroupName field's value.
func ( s * CreateDeploymentGroupInput ) SetDeploymentGroupName ( v string ) * CreateDeploymentGroupInput {
s . DeploymentGroupName = & v
return s
}
2017-01-30 15:18:29 +01:00
// SetDeploymentStyle sets the DeploymentStyle field's value.
func ( s * CreateDeploymentGroupInput ) SetDeploymentStyle ( v * DeploymentStyle ) * CreateDeploymentGroupInput {
s . DeploymentStyle = v
return s
}
2016-11-19 19:41:01 +01:00
// SetEc2TagFilters sets the Ec2TagFilters field's value.
func ( s * CreateDeploymentGroupInput ) SetEc2TagFilters ( v [ ] * EC2TagFilter ) * CreateDeploymentGroupInput {
s . Ec2TagFilters = v
return s
}
2017-01-30 15:18:29 +01:00
// SetLoadBalancerInfo sets the LoadBalancerInfo field's value.
func ( s * CreateDeploymentGroupInput ) SetLoadBalancerInfo ( v * LoadBalancerInfo ) * CreateDeploymentGroupInput {
s . LoadBalancerInfo = v
return s
}
2016-11-19 19:41:01 +01:00
// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value.
func ( s * CreateDeploymentGroupInput ) SetOnPremisesInstanceTagFilters ( v [ ] * TagFilter ) * CreateDeploymentGroupInput {
s . OnPremisesInstanceTagFilters = v
return s
}
// SetServiceRoleArn sets the ServiceRoleArn field's value.
func ( s * CreateDeploymentGroupInput ) SetServiceRoleArn ( v string ) * CreateDeploymentGroupInput {
s . ServiceRoleArn = & v
return s
}
// SetTriggerConfigurations sets the TriggerConfigurations field's value.
func ( s * CreateDeploymentGroupInput ) SetTriggerConfigurations ( v [ ] * TriggerConfig ) * CreateDeploymentGroupInput {
s . TriggerConfigurations = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a create deployment group operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroupOutput
2016-01-29 20:53:56 +01:00
type CreateDeploymentGroupOutput struct {
_ struct { } ` type:"structure" `
// A unique deployment group ID.
DeploymentGroupId * string ` locationName:"deploymentGroupId" type:"string" `
}
// String returns the string representation
func ( s CreateDeploymentGroupOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateDeploymentGroupOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentGroupId sets the DeploymentGroupId field's value.
func ( s * CreateDeploymentGroupOutput ) SetDeploymentGroupId ( v string ) * CreateDeploymentGroupOutput {
s . DeploymentGroupId = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a create deployment operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentInput
2016-01-29 20:53:56 +01:00
type CreateDeploymentInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of an AWS CodeDeploy application associated with the applicable
2016-01-29 20:53:56 +01:00
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
2016-09-21 09:50:22 +02:00
// Configuration information for an automatic rollback that is added when a
// deployment is created.
AutoRollbackConfiguration * AutoRollbackConfiguration ` locationName:"autoRollbackConfiguration" type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of a deployment configuration associated with the applicable IAM
// user or AWS account.
2016-01-29 20:53:56 +01:00
//
// If not specified, the value configured in the deployment group will be used
// as the default. If the deployment group does not have a deployment configuration
// associated with it, then CodeDeployDefault.OneAtATime will be used by default.
DeploymentConfigName * string ` locationName:"deploymentConfigName" min:"1" type:"string" `
2016-03-18 20:35:09 +01:00
// The name of the deployment group.
2016-01-29 20:53:56 +01:00
DeploymentGroupName * string ` locationName:"deploymentGroupName" min:"1" type:"string" `
// A comment about the deployment.
Description * string ` locationName:"description" type:"string" `
// If set to true, then if the deployment causes the ApplicationStop deployment
2016-03-18 20:35:09 +01:00
// lifecycle event to an instance to fail, the deployment to that instance will
// not be considered to have failed at that point and will continue on to the
// BeforeInstall deployment lifecycle event.
2016-01-29 20:53:56 +01:00
//
// If set to false or not specified, then if the deployment causes the ApplicationStop
2016-03-18 20:35:09 +01:00
// deployment lifecycle event to fail to an instance, the deployment to that
// instance will stop, and the deployment to that instance will be considered
2016-01-29 20:53:56 +01:00
// to have failed.
IgnoreApplicationStopFailures * bool ` locationName:"ignoreApplicationStopFailures" type:"boolean" `
2016-03-18 20:35:09 +01:00
// The type and location of the revision to deploy.
2016-01-29 20:53:56 +01:00
Revision * RevisionLocation ` locationName:"revision" type:"structure" `
2016-09-21 09:50:22 +02:00
2017-01-30 15:18:29 +01:00
// Information about the instances that will belong to the replacement environment
// in a blue/green deployment.
TargetInstances * TargetInstances ` locationName:"targetInstances" type:"structure" `
2016-09-21 09:50:22 +02:00
// Indicates whether to deploy to all instances or only to instances that are
// not running the latest application revision.
UpdateOutdatedInstancesOnly * bool ` locationName:"updateOutdatedInstancesOnly" type:"boolean" `
2016-01-29 20:53:56 +01:00
}
// String returns the string representation
func ( s CreateDeploymentInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateDeploymentInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * CreateDeploymentInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "CreateDeploymentInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if s . DeploymentConfigName != nil && len ( * s . DeploymentConfigName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "DeploymentConfigName" , 1 ) )
}
if s . DeploymentGroupName != nil && len ( * s . DeploymentGroupName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "DeploymentGroupName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * CreateDeploymentInput ) SetApplicationName ( v string ) * CreateDeploymentInput {
s . ApplicationName = & v
return s
}
// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value.
func ( s * CreateDeploymentInput ) SetAutoRollbackConfiguration ( v * AutoRollbackConfiguration ) * CreateDeploymentInput {
s . AutoRollbackConfiguration = v
return s
}
// SetDeploymentConfigName sets the DeploymentConfigName field's value.
func ( s * CreateDeploymentInput ) SetDeploymentConfigName ( v string ) * CreateDeploymentInput {
s . DeploymentConfigName = & v
return s
}
// SetDeploymentGroupName sets the DeploymentGroupName field's value.
func ( s * CreateDeploymentInput ) SetDeploymentGroupName ( v string ) * CreateDeploymentInput {
s . DeploymentGroupName = & v
return s
}
// SetDescription sets the Description field's value.
func ( s * CreateDeploymentInput ) SetDescription ( v string ) * CreateDeploymentInput {
s . Description = & v
return s
}
// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value.
func ( s * CreateDeploymentInput ) SetIgnoreApplicationStopFailures ( v bool ) * CreateDeploymentInput {
s . IgnoreApplicationStopFailures = & v
return s
}
// SetRevision sets the Revision field's value.
func ( s * CreateDeploymentInput ) SetRevision ( v * RevisionLocation ) * CreateDeploymentInput {
s . Revision = v
return s
}
2017-01-30 15:18:29 +01:00
// SetTargetInstances sets the TargetInstances field's value.
func ( s * CreateDeploymentInput ) SetTargetInstances ( v * TargetInstances ) * CreateDeploymentInput {
s . TargetInstances = v
return s
}
2016-11-19 19:41:01 +01:00
// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value.
func ( s * CreateDeploymentInput ) SetUpdateOutdatedInstancesOnly ( v bool ) * CreateDeploymentInput {
s . UpdateOutdatedInstancesOnly = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a create deployment operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentOutput
2016-01-29 20:53:56 +01:00
type CreateDeploymentOutput struct {
_ struct { } ` type:"structure" `
// A unique deployment ID.
DeploymentId * string ` locationName:"deploymentId" type:"string" `
}
// String returns the string representation
func ( s CreateDeploymentOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s CreateDeploymentOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentId sets the DeploymentId field's value.
func ( s * CreateDeploymentOutput ) SetDeploymentId ( v string ) * CreateDeploymentOutput {
s . DeploymentId = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a delete application operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplicationInput
2016-01-29 20:53:56 +01:00
type DeleteApplicationInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of an AWS CodeDeploy application associated with the applicable
2016-01-29 20:53:56 +01:00
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteApplicationInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteApplicationInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteApplicationInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteApplicationInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * DeleteApplicationInput ) SetApplicationName ( v string ) * DeleteApplicationInput {
s . ApplicationName = & v
return s
}
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplicationOutput
2016-01-29 20:53:56 +01:00
type DeleteApplicationOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteApplicationOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteApplicationOutput ) GoString ( ) string {
return s . String ( )
}
// Represents the input of a delete deployment configuration operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfigInput
2016-01-29 20:53:56 +01:00
type DeleteDeploymentConfigInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of a deployment configuration associated with the applicable IAM
// user or AWS account.
2016-10-17 23:21:08 +02:00
//
// DeploymentConfigName is a required field
2016-01-29 20:53:56 +01:00
DeploymentConfigName * string ` locationName:"deploymentConfigName" min:"1" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteDeploymentConfigInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteDeploymentConfigInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteDeploymentConfigInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteDeploymentConfigInput" }
if s . DeploymentConfigName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentConfigName" ) )
}
if s . DeploymentConfigName != nil && len ( * s . DeploymentConfigName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "DeploymentConfigName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetDeploymentConfigName sets the DeploymentConfigName field's value.
func ( s * DeleteDeploymentConfigInput ) SetDeploymentConfigName ( v string ) * DeleteDeploymentConfigInput {
s . DeploymentConfigName = & v
return s
}
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfigOutput
2016-01-29 20:53:56 +01:00
type DeleteDeploymentConfigOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeleteDeploymentConfigOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteDeploymentConfigOutput ) GoString ( ) string {
return s . String ( )
}
// Represents the input of a delete deployment group operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroupInput
2016-01-29 20:53:56 +01:00
type DeleteDeploymentGroupInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of an AWS CodeDeploy application associated with the applicable
2016-01-29 20:53:56 +01:00
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
// The name of an existing deployment group for the specified application.
2016-10-17 23:21:08 +02:00
//
// DeploymentGroupName is a required field
2016-01-29 20:53:56 +01:00
DeploymentGroupName * string ` locationName:"deploymentGroupName" min:"1" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeleteDeploymentGroupInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteDeploymentGroupInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeleteDeploymentGroupInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeleteDeploymentGroupInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if s . DeploymentGroupName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentGroupName" ) )
}
if s . DeploymentGroupName != nil && len ( * s . DeploymentGroupName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "DeploymentGroupName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * DeleteDeploymentGroupInput ) SetApplicationName ( v string ) * DeleteDeploymentGroupInput {
s . ApplicationName = & v
return s
}
// SetDeploymentGroupName sets the DeploymentGroupName field's value.
func ( s * DeleteDeploymentGroupInput ) SetDeploymentGroupName ( v string ) * DeleteDeploymentGroupInput {
s . DeploymentGroupName = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a delete deployment group operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroupOutput
2016-01-29 20:53:56 +01:00
type DeleteDeploymentGroupOutput struct {
_ struct { } ` type:"structure" `
// If the output contains no data, and the corresponding deployment group contained
// at least one Auto Scaling group, AWS CodeDeploy successfully removed all
// corresponding Auto Scaling lifecycle event hooks from the Amazon EC2 instances
2016-03-18 20:35:09 +01:00
// in the Auto Scaling group. If the output contains data, AWS CodeDeploy could
2016-01-29 20:53:56 +01:00
// not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances
// in the Auto Scaling group.
HooksNotCleanedUp [ ] * AutoScalingGroup ` locationName:"hooksNotCleanedUp" type:"list" `
}
// String returns the string representation
func ( s DeleteDeploymentGroupOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeleteDeploymentGroupOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value.
func ( s * DeleteDeploymentGroupOutput ) SetHooksNotCleanedUp ( v [ ] * AutoScalingGroup ) * DeleteDeploymentGroupOutput {
s . HooksNotCleanedUp = v
return s
}
2016-01-29 20:53:56 +01:00
// Information about a deployment configuration.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentConfigInfo
2016-01-29 20:53:56 +01:00
type DeploymentConfigInfo struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The time at which the deployment configuration was created.
2016-01-29 20:53:56 +01:00
CreateTime * time . Time ` locationName:"createTime" type:"timestamp" timestampFormat:"unix" `
// The deployment configuration ID.
DeploymentConfigId * string ` locationName:"deploymentConfigId" type:"string" `
// The deployment configuration name.
DeploymentConfigName * string ` locationName:"deploymentConfigName" min:"1" type:"string" `
2016-03-18 20:35:09 +01:00
// Information about the number or percentage of minimum healthy instance.
2016-01-29 20:53:56 +01:00
MinimumHealthyHosts * MinimumHealthyHosts ` locationName:"minimumHealthyHosts" type:"structure" `
}
// String returns the string representation
func ( s DeploymentConfigInfo ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeploymentConfigInfo ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetCreateTime sets the CreateTime field's value.
func ( s * DeploymentConfigInfo ) SetCreateTime ( v time . Time ) * DeploymentConfigInfo {
s . CreateTime = & v
return s
}
// SetDeploymentConfigId sets the DeploymentConfigId field's value.
func ( s * DeploymentConfigInfo ) SetDeploymentConfigId ( v string ) * DeploymentConfigInfo {
s . DeploymentConfigId = & v
return s
}
// SetDeploymentConfigName sets the DeploymentConfigName field's value.
func ( s * DeploymentConfigInfo ) SetDeploymentConfigName ( v string ) * DeploymentConfigInfo {
s . DeploymentConfigName = & v
return s
}
// SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value.
func ( s * DeploymentConfigInfo ) SetMinimumHealthyHosts ( v * MinimumHealthyHosts ) * DeploymentConfigInfo {
s . MinimumHealthyHosts = v
return s
}
2016-01-29 20:53:56 +01:00
// Information about a deployment group.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentGroupInfo
2016-01-29 20:53:56 +01:00
type DeploymentGroupInfo struct {
_ struct { } ` type:"structure" `
2016-09-21 09:50:22 +02:00
// A list of alarms associated with the deployment group.
AlarmConfiguration * AlarmConfiguration ` locationName:"alarmConfiguration" type:"structure" `
2016-01-29 20:53:56 +01:00
// The application name.
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" `
2016-09-21 09:50:22 +02:00
// Information about the automatic rollback configuration associated with the
// deployment group.
AutoRollbackConfiguration * AutoRollbackConfiguration ` locationName:"autoRollbackConfiguration" type:"structure" `
2016-01-29 20:53:56 +01:00
// A list of associated Auto Scaling groups.
AutoScalingGroups [ ] * AutoScalingGroup ` locationName:"autoScalingGroups" type:"list" `
2017-01-30 15:18:29 +01:00
// Information about blue/green deployment options for a deployment group.
BlueGreenDeploymentConfiguration * BlueGreenDeploymentConfiguration ` locationName:"blueGreenDeploymentConfiguration" type:"structure" `
2016-01-29 20:53:56 +01:00
// The deployment configuration name.
DeploymentConfigName * string ` locationName:"deploymentConfigName" min:"1" type:"string" `
// The deployment group ID.
DeploymentGroupId * string ` locationName:"deploymentGroupId" type:"string" `
// The deployment group name.
DeploymentGroupName * string ` locationName:"deploymentGroupName" min:"1" type:"string" `
2017-01-30 15:18:29 +01:00
// Information about the type of deployment, either standard or blue/green,
// you want to run and whether to route deployment traffic behind a load balancer.
DeploymentStyle * DeploymentStyle ` locationName:"deploymentStyle" type:"structure" `
2016-03-18 20:35:09 +01:00
// The Amazon EC2 tags on which to filter.
2016-01-29 20:53:56 +01:00
Ec2TagFilters [ ] * EC2TagFilter ` locationName:"ec2TagFilters" type:"list" `
2017-01-30 15:18:29 +01:00
// Information about the load balancer to use in a blue/green deployment.
LoadBalancerInfo * LoadBalancerInfo ` locationName:"loadBalancerInfo" type:"structure" `
2016-03-18 20:35:09 +01:00
// The on-premises instance tags on which to filter.
2016-01-29 20:53:56 +01:00
OnPremisesInstanceTagFilters [ ] * TagFilter ` locationName:"onPremisesInstanceTagFilters" type:"list" `
// A service role ARN.
ServiceRoleArn * string ` locationName:"serviceRoleArn" type:"string" `
2016-03-18 20:35:09 +01:00
// Information about the deployment group's target revision, including type
// and location.
2016-01-29 20:53:56 +01:00
TargetRevision * RevisionLocation ` locationName:"targetRevision" type:"structure" `
2016-03-11 01:27:37 +01:00
2016-09-21 09:50:22 +02:00
// Information about triggers associated with the deployment group.
2016-03-11 01:27:37 +01:00
TriggerConfigurations [ ] * TriggerConfig ` locationName:"triggerConfigurations" type:"list" `
2016-01-29 20:53:56 +01:00
}
// String returns the string representation
func ( s DeploymentGroupInfo ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeploymentGroupInfo ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetAlarmConfiguration sets the AlarmConfiguration field's value.
func ( s * DeploymentGroupInfo ) SetAlarmConfiguration ( v * AlarmConfiguration ) * DeploymentGroupInfo {
s . AlarmConfiguration = v
return s
}
// SetApplicationName sets the ApplicationName field's value.
func ( s * DeploymentGroupInfo ) SetApplicationName ( v string ) * DeploymentGroupInfo {
s . ApplicationName = & v
return s
}
// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value.
func ( s * DeploymentGroupInfo ) SetAutoRollbackConfiguration ( v * AutoRollbackConfiguration ) * DeploymentGroupInfo {
s . AutoRollbackConfiguration = v
return s
}
// SetAutoScalingGroups sets the AutoScalingGroups field's value.
func ( s * DeploymentGroupInfo ) SetAutoScalingGroups ( v [ ] * AutoScalingGroup ) * DeploymentGroupInfo {
s . AutoScalingGroups = v
return s
}
2017-01-30 15:18:29 +01:00
// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value.
func ( s * DeploymentGroupInfo ) SetBlueGreenDeploymentConfiguration ( v * BlueGreenDeploymentConfiguration ) * DeploymentGroupInfo {
s . BlueGreenDeploymentConfiguration = v
return s
}
2016-11-19 19:41:01 +01:00
// SetDeploymentConfigName sets the DeploymentConfigName field's value.
func ( s * DeploymentGroupInfo ) SetDeploymentConfigName ( v string ) * DeploymentGroupInfo {
s . DeploymentConfigName = & v
return s
}
// SetDeploymentGroupId sets the DeploymentGroupId field's value.
func ( s * DeploymentGroupInfo ) SetDeploymentGroupId ( v string ) * DeploymentGroupInfo {
s . DeploymentGroupId = & v
return s
}
// SetDeploymentGroupName sets the DeploymentGroupName field's value.
func ( s * DeploymentGroupInfo ) SetDeploymentGroupName ( v string ) * DeploymentGroupInfo {
s . DeploymentGroupName = & v
return s
}
2017-01-30 15:18:29 +01:00
// SetDeploymentStyle sets the DeploymentStyle field's value.
func ( s * DeploymentGroupInfo ) SetDeploymentStyle ( v * DeploymentStyle ) * DeploymentGroupInfo {
s . DeploymentStyle = v
return s
}
2016-11-19 19:41:01 +01:00
// SetEc2TagFilters sets the Ec2TagFilters field's value.
func ( s * DeploymentGroupInfo ) SetEc2TagFilters ( v [ ] * EC2TagFilter ) * DeploymentGroupInfo {
s . Ec2TagFilters = v
return s
}
2017-01-30 15:18:29 +01:00
// SetLoadBalancerInfo sets the LoadBalancerInfo field's value.
func ( s * DeploymentGroupInfo ) SetLoadBalancerInfo ( v * LoadBalancerInfo ) * DeploymentGroupInfo {
s . LoadBalancerInfo = v
return s
}
2016-11-19 19:41:01 +01:00
// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value.
func ( s * DeploymentGroupInfo ) SetOnPremisesInstanceTagFilters ( v [ ] * TagFilter ) * DeploymentGroupInfo {
s . OnPremisesInstanceTagFilters = v
return s
}
// SetServiceRoleArn sets the ServiceRoleArn field's value.
func ( s * DeploymentGroupInfo ) SetServiceRoleArn ( v string ) * DeploymentGroupInfo {
s . ServiceRoleArn = & v
return s
}
// SetTargetRevision sets the TargetRevision field's value.
func ( s * DeploymentGroupInfo ) SetTargetRevision ( v * RevisionLocation ) * DeploymentGroupInfo {
s . TargetRevision = v
return s
}
// SetTriggerConfigurations sets the TriggerConfigurations field's value.
func ( s * DeploymentGroupInfo ) SetTriggerConfigurations ( v [ ] * TriggerConfig ) * DeploymentGroupInfo {
s . TriggerConfigurations = v
return s
}
2016-01-29 20:53:56 +01:00
// Information about a deployment.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentInfo
2016-01-29 20:53:56 +01:00
type DeploymentInfo struct {
_ struct { } ` type:"structure" `
2017-01-30 15:18:29 +01:00
// Provides information about the results of a deployment, such as whether instances
// in the original environment in a blue/green deployment were not terminated.
AdditionalDeploymentStatusInfo * string ` locationName:"additionalDeploymentStatusInfo" type:"string" `
2016-01-29 20:53:56 +01:00
// The application name.
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" `
2016-09-21 09:50:22 +02:00
// Information about the automatic rollback configuration associated with the
// deployment.
AutoRollbackConfiguration * AutoRollbackConfiguration ` locationName:"autoRollbackConfiguration" type:"structure" `
2017-01-30 15:18:29 +01:00
// Information about blue/green deployment options for this deployment.
BlueGreenDeploymentConfiguration * BlueGreenDeploymentConfiguration ` locationName:"blueGreenDeploymentConfiguration" type:"structure" `
2016-03-18 20:35:09 +01:00
// A timestamp indicating when the deployment was complete.
2016-01-29 20:53:56 +01:00
CompleteTime * time . Time ` locationName:"completeTime" type:"timestamp" timestampFormat:"unix" `
// A timestamp indicating when the deployment was created.
CreateTime * time . Time ` locationName:"createTime" type:"timestamp" timestampFormat:"unix" `
2016-03-18 20:35:09 +01:00
// The means by which the deployment was created:
2016-01-29 20:53:56 +01:00
//
2016-11-19 19:41:01 +01:00
// * user: A user created the deployment.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * autoscaling: Auto Scaling created the deployment.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * codeDeployRollback: A rollback process created the deployment.
2016-01-29 20:53:56 +01:00
Creator * string ` locationName:"creator" type:"string" enum:"DeploymentCreator" `
// The deployment configuration name.
DeploymentConfigName * string ` locationName:"deploymentConfigName" min:"1" type:"string" `
// The deployment group name.
DeploymentGroupName * string ` locationName:"deploymentGroupName" min:"1" type:"string" `
// The deployment ID.
DeploymentId * string ` locationName:"deploymentId" type:"string" `
// A summary of the deployment status of the instances in the deployment.
DeploymentOverview * DeploymentOverview ` locationName:"deploymentOverview" type:"structure" `
2017-01-30 15:18:29 +01:00
// Information about the type of deployment, either standard or blue/green,
// you want to run and whether to route deployment traffic behind a load balancer.
DeploymentStyle * DeploymentStyle ` locationName:"deploymentStyle" type:"structure" `
2016-01-29 20:53:56 +01:00
// A comment about the deployment.
Description * string ` locationName:"description" type:"string" `
// Information about any error associated with this deployment.
ErrorInformation * ErrorInformation ` locationName:"errorInformation" type:"structure" `
// If true, then if the deployment causes the ApplicationStop deployment lifecycle
2016-03-18 20:35:09 +01:00
// event to an instance to fail, the deployment to that instance will not be
// considered to have failed at that point and will continue on to the BeforeInstall
// deployment lifecycle event.
2016-01-29 20:53:56 +01:00
//
// If false or not specified, then if the deployment causes the ApplicationStop
2016-03-18 20:35:09 +01:00
// deployment lifecycle event to an instance to fail, the deployment to that
// instance will stop, and the deployment to that instance will be considered
2016-01-29 20:53:56 +01:00
// to have failed.
IgnoreApplicationStopFailures * bool ` locationName:"ignoreApplicationStopFailures" type:"boolean" `
2017-01-30 15:18:29 +01:00
// Indicates whether the wait period set for the termination of instances in
// the original environment has started. Status is 'false' if the KEEP_ALIVE
// option is specified; otherwise, 'true' as soon as the termination wait period
// starts.
InstanceTerminationWaitTimeStarted * bool ` locationName:"instanceTerminationWaitTimeStarted" type:"boolean" `
// Information about the load balancer used in this blue/green deployment.
LoadBalancerInfo * LoadBalancerInfo ` locationName:"loadBalancerInfo" type:"structure" `
2016-03-18 20:35:09 +01:00
// Information about the location of stored application artifacts and the service
// from which to retrieve them.
2016-01-29 20:53:56 +01:00
Revision * RevisionLocation ` locationName:"revision" type:"structure" `
2016-09-21 09:50:22 +02:00
// Information about a deployment rollback.
RollbackInfo * RollbackInfo ` locationName:"rollbackInfo" type:"structure" `
2016-03-18 20:35:09 +01:00
// A timestamp indicating when the deployment was deployed to the deployment
2016-01-29 20:53:56 +01:00
// group.
//
2016-03-18 20:35:09 +01:00
// In some cases, the reported value of the start time may be later than the
// complete time. This is due to differences in the clock settings of back-end
// servers that participate in the deployment process.
2016-01-29 20:53:56 +01:00
StartTime * time . Time ` locationName:"startTime" type:"timestamp" timestampFormat:"unix" `
// The current state of the deployment as a whole.
Status * string ` locationName:"status" type:"string" enum:"DeploymentStatus" `
2016-09-21 09:50:22 +02:00
2017-01-30 15:18:29 +01:00
// Information about the instances that belong to the replacement environment
// in a blue/green deployment.
TargetInstances * TargetInstances ` locationName:"targetInstances" type:"structure" `
2016-09-21 09:50:22 +02:00
// Indicates whether only instances that are not running the latest application
// revision are to be deployed to.
UpdateOutdatedInstancesOnly * bool ` locationName:"updateOutdatedInstancesOnly" type:"boolean" `
2016-01-29 20:53:56 +01:00
}
// String returns the string representation
func ( s DeploymentInfo ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeploymentInfo ) GoString ( ) string {
return s . String ( )
}
2017-01-30 15:18:29 +01:00
// SetAdditionalDeploymentStatusInfo sets the AdditionalDeploymentStatusInfo field's value.
func ( s * DeploymentInfo ) SetAdditionalDeploymentStatusInfo ( v string ) * DeploymentInfo {
s . AdditionalDeploymentStatusInfo = & v
return s
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * DeploymentInfo ) SetApplicationName ( v string ) * DeploymentInfo {
s . ApplicationName = & v
return s
}
// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value.
func ( s * DeploymentInfo ) SetAutoRollbackConfiguration ( v * AutoRollbackConfiguration ) * DeploymentInfo {
s . AutoRollbackConfiguration = v
return s
}
2017-01-30 15:18:29 +01:00
// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value.
func ( s * DeploymentInfo ) SetBlueGreenDeploymentConfiguration ( v * BlueGreenDeploymentConfiguration ) * DeploymentInfo {
s . BlueGreenDeploymentConfiguration = v
return s
}
2016-11-19 19:41:01 +01:00
// SetCompleteTime sets the CompleteTime field's value.
func ( s * DeploymentInfo ) SetCompleteTime ( v time . Time ) * DeploymentInfo {
s . CompleteTime = & v
return s
}
// SetCreateTime sets the CreateTime field's value.
func ( s * DeploymentInfo ) SetCreateTime ( v time . Time ) * DeploymentInfo {
s . CreateTime = & v
return s
}
// SetCreator sets the Creator field's value.
func ( s * DeploymentInfo ) SetCreator ( v string ) * DeploymentInfo {
s . Creator = & v
return s
}
// SetDeploymentConfigName sets the DeploymentConfigName field's value.
func ( s * DeploymentInfo ) SetDeploymentConfigName ( v string ) * DeploymentInfo {
s . DeploymentConfigName = & v
return s
}
// SetDeploymentGroupName sets the DeploymentGroupName field's value.
func ( s * DeploymentInfo ) SetDeploymentGroupName ( v string ) * DeploymentInfo {
s . DeploymentGroupName = & v
return s
}
// SetDeploymentId sets the DeploymentId field's value.
func ( s * DeploymentInfo ) SetDeploymentId ( v string ) * DeploymentInfo {
s . DeploymentId = & v
return s
}
// SetDeploymentOverview sets the DeploymentOverview field's value.
func ( s * DeploymentInfo ) SetDeploymentOverview ( v * DeploymentOverview ) * DeploymentInfo {
s . DeploymentOverview = v
return s
}
2017-01-30 15:18:29 +01:00
// SetDeploymentStyle sets the DeploymentStyle field's value.
func ( s * DeploymentInfo ) SetDeploymentStyle ( v * DeploymentStyle ) * DeploymentInfo {
s . DeploymentStyle = v
return s
}
2016-11-19 19:41:01 +01:00
// SetDescription sets the Description field's value.
func ( s * DeploymentInfo ) SetDescription ( v string ) * DeploymentInfo {
s . Description = & v
return s
}
// SetErrorInformation sets the ErrorInformation field's value.
func ( s * DeploymentInfo ) SetErrorInformation ( v * ErrorInformation ) * DeploymentInfo {
s . ErrorInformation = v
return s
}
// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value.
func ( s * DeploymentInfo ) SetIgnoreApplicationStopFailures ( v bool ) * DeploymentInfo {
s . IgnoreApplicationStopFailures = & v
return s
}
2017-01-30 15:18:29 +01:00
// SetInstanceTerminationWaitTimeStarted sets the InstanceTerminationWaitTimeStarted field's value.
func ( s * DeploymentInfo ) SetInstanceTerminationWaitTimeStarted ( v bool ) * DeploymentInfo {
s . InstanceTerminationWaitTimeStarted = & v
return s
}
// SetLoadBalancerInfo sets the LoadBalancerInfo field's value.
func ( s * DeploymentInfo ) SetLoadBalancerInfo ( v * LoadBalancerInfo ) * DeploymentInfo {
s . LoadBalancerInfo = v
return s
}
2016-11-19 19:41:01 +01:00
// SetRevision sets the Revision field's value.
func ( s * DeploymentInfo ) SetRevision ( v * RevisionLocation ) * DeploymentInfo {
s . Revision = v
return s
}
// SetRollbackInfo sets the RollbackInfo field's value.
func ( s * DeploymentInfo ) SetRollbackInfo ( v * RollbackInfo ) * DeploymentInfo {
s . RollbackInfo = v
return s
}
// SetStartTime sets the StartTime field's value.
func ( s * DeploymentInfo ) SetStartTime ( v time . Time ) * DeploymentInfo {
s . StartTime = & v
return s
}
// SetStatus sets the Status field's value.
func ( s * DeploymentInfo ) SetStatus ( v string ) * DeploymentInfo {
s . Status = & v
return s
}
2017-01-30 15:18:29 +01:00
// SetTargetInstances sets the TargetInstances field's value.
func ( s * DeploymentInfo ) SetTargetInstances ( v * TargetInstances ) * DeploymentInfo {
s . TargetInstances = v
return s
}
2016-11-19 19:41:01 +01:00
// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value.
func ( s * DeploymentInfo ) SetUpdateOutdatedInstancesOnly ( v bool ) * DeploymentInfo {
s . UpdateOutdatedInstancesOnly = & v
return s
}
2016-01-29 20:53:56 +01:00
// Information about the deployment status of the instances in the deployment.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentOverview
2016-01-29 20:53:56 +01:00
type DeploymentOverview struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The number of instances in the deployment in a failed state.
2016-01-29 20:53:56 +01:00
Failed * int64 ` type:"long" `
2016-03-18 20:35:09 +01:00
// The number of instances in which the deployment is in progress.
2016-01-29 20:53:56 +01:00
InProgress * int64 ` type:"long" `
2016-03-18 20:35:09 +01:00
// The number of instances in the deployment in a pending state.
2016-01-29 20:53:56 +01:00
Pending * int64 ` type:"long" `
2017-01-30 15:18:29 +01:00
// The number of instances in a replacement environment ready to receive traffic
// in a blue/green deployment.
Ready * int64 ` type:"long" `
2016-03-18 20:35:09 +01:00
// The number of instances in the deployment in a skipped state.
2016-01-29 20:53:56 +01:00
Skipped * int64 ` type:"long" `
2016-03-18 20:35:09 +01:00
// The number of instances in the deployment to which revisions have been successfully
// deployed.
2016-01-29 20:53:56 +01:00
Succeeded * int64 ` type:"long" `
}
// String returns the string representation
func ( s DeploymentOverview ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeploymentOverview ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetFailed sets the Failed field's value.
func ( s * DeploymentOverview ) SetFailed ( v int64 ) * DeploymentOverview {
s . Failed = & v
return s
}
// SetInProgress sets the InProgress field's value.
func ( s * DeploymentOverview ) SetInProgress ( v int64 ) * DeploymentOverview {
s . InProgress = & v
return s
}
// SetPending sets the Pending field's value.
func ( s * DeploymentOverview ) SetPending ( v int64 ) * DeploymentOverview {
s . Pending = & v
return s
}
2017-01-30 15:18:29 +01:00
// SetReady sets the Ready field's value.
func ( s * DeploymentOverview ) SetReady ( v int64 ) * DeploymentOverview {
s . Ready = & v
return s
}
2016-11-19 19:41:01 +01:00
// SetSkipped sets the Skipped field's value.
func ( s * DeploymentOverview ) SetSkipped ( v int64 ) * DeploymentOverview {
s . Skipped = & v
return s
}
// SetSucceeded sets the Succeeded field's value.
func ( s * DeploymentOverview ) SetSucceeded ( v int64 ) * DeploymentOverview {
s . Succeeded = & v
return s
}
2017-01-30 15:18:29 +01:00
// Information about how traffic is rerouted to instances in a replacement environment
// in a blue/green deployment.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentReadyOption
type DeploymentReadyOption struct {
_ struct { } ` type:"structure" `
// Information about when to reroute traffic from an original environment to
// a replacement environment in a blue/green deployment.
//
// * CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately
// after the new application revision is installed on the instances in the
// replacement environment.
//
// * STOP_DEPLOYMENT: Do not register new instances with load balancer unless
// traffic is rerouted manually. If traffic is not rerouted manually before
// the end of the specified wait period, the deployment status is changed
// to Stopped.
ActionOnTimeout * string ` locationName:"actionOnTimeout" type:"string" enum:"DeploymentReadyAction" `
// The number of minutes to wait before the status of a blue/green deployment
// changed to Stopped if rerouting is not started manually. Applies only to
// the STOP_DEPLOYMENT option for actionOnTimeout
WaitTimeInMinutes * int64 ` locationName:"waitTimeInMinutes" type:"integer" `
}
// String returns the string representation
func ( s DeploymentReadyOption ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeploymentReadyOption ) GoString ( ) string {
return s . String ( )
}
// SetActionOnTimeout sets the ActionOnTimeout field's value.
func ( s * DeploymentReadyOption ) SetActionOnTimeout ( v string ) * DeploymentReadyOption {
s . ActionOnTimeout = & v
return s
}
// SetWaitTimeInMinutes sets the WaitTimeInMinutes field's value.
func ( s * DeploymentReadyOption ) SetWaitTimeInMinutes ( v int64 ) * DeploymentReadyOption {
s . WaitTimeInMinutes = & v
return s
}
// Information about the type of deployment, either standard or blue/green,
// you want to run and whether to route deployment traffic behind a load balancer.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeploymentStyle
type DeploymentStyle struct {
_ struct { } ` type:"structure" `
// Indicates whether to route deployment traffic behind a load balancer.
DeploymentOption * string ` locationName:"deploymentOption" type:"string" enum:"DeploymentOption" `
// Indicates whether to run a standard deployment or a blue/green deployment.
DeploymentType * string ` locationName:"deploymentType" type:"string" enum:"DeploymentType" `
}
// String returns the string representation
func ( s DeploymentStyle ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeploymentStyle ) GoString ( ) string {
return s . String ( )
}
// SetDeploymentOption sets the DeploymentOption field's value.
func ( s * DeploymentStyle ) SetDeploymentOption ( v string ) * DeploymentStyle {
s . DeploymentOption = & v
return s
}
// SetDeploymentType sets the DeploymentType field's value.
func ( s * DeploymentStyle ) SetDeploymentType ( v string ) * DeploymentStyle {
s . DeploymentType = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a deregister on-premises instance operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstanceInput
2016-01-29 20:53:56 +01:00
type DeregisterOnPremisesInstanceInput struct {
_ struct { } ` type:"structure" `
// The name of the on-premises instance to deregister.
2016-10-17 23:21:08 +02:00
//
// InstanceName is a required field
2016-01-29 20:53:56 +01:00
InstanceName * string ` locationName:"instanceName" type:"string" required:"true" `
}
// String returns the string representation
func ( s DeregisterOnPremisesInstanceInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeregisterOnPremisesInstanceInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * DeregisterOnPremisesInstanceInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "DeregisterOnPremisesInstanceInput" }
if s . InstanceName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "InstanceName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetInstanceName sets the InstanceName field's value.
func ( s * DeregisterOnPremisesInstanceInput ) SetInstanceName ( v string ) * DeregisterOnPremisesInstanceInput {
s . InstanceName = & v
return s
}
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstanceOutput
2016-01-29 20:53:56 +01:00
type DeregisterOnPremisesInstanceOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s DeregisterOnPremisesInstanceOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s DeregisterOnPremisesInstanceOutput ) GoString ( ) string {
return s . String ( )
}
// Diagnostic information about executable scripts that are part of a deployment.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/Diagnostics
2016-01-29 20:53:56 +01:00
type Diagnostics struct {
_ struct { } ` type:"structure" `
// The associated error code:
//
2016-11-19 19:41:01 +01:00
// * Success: The specified script ran.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * ScriptMissing: The specified script was not found in the specified location.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * ScriptNotExecutable: The specified script is not a recognized executable
// file type.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * ScriptTimedOut: The specified script did not finish running in the specified
// time period.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * ScriptFailed: The specified script failed to run as expected.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * UnknownError: The specified script did not run for an unknown reason.
2016-01-29 20:53:56 +01:00
ErrorCode * string ` locationName:"errorCode" type:"string" enum:"LifecycleErrorCode" `
2016-03-18 20:35:09 +01:00
// The last portion of the diagnostic log.
2016-03-11 01:27:37 +01:00
//
2016-03-18 20:35:09 +01:00
// If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic
// log.
2016-01-29 20:53:56 +01:00
LogTail * string ` locationName:"logTail" type:"string" `
// The message associated with the error.
Message * string ` locationName:"message" type:"string" `
// The name of the script.
ScriptName * string ` locationName:"scriptName" type:"string" `
}
// String returns the string representation
func ( s Diagnostics ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Diagnostics ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetErrorCode sets the ErrorCode field's value.
func ( s * Diagnostics ) SetErrorCode ( v string ) * Diagnostics {
s . ErrorCode = & v
return s
}
// SetLogTail sets the LogTail field's value.
func ( s * Diagnostics ) SetLogTail ( v string ) * Diagnostics {
s . LogTail = & v
return s
}
// SetMessage sets the Message field's value.
func ( s * Diagnostics ) SetMessage ( v string ) * Diagnostics {
s . Message = & v
return s
}
// SetScriptName sets the ScriptName field's value.
func ( s * Diagnostics ) SetScriptName ( v string ) * Diagnostics {
s . ScriptName = & v
return s
}
2016-01-29 20:53:56 +01:00
// Information about a tag filter.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/EC2TagFilter
2016-01-29 20:53:56 +01:00
type EC2TagFilter struct {
_ struct { } ` type:"structure" `
// The tag filter key.
Key * string ` type:"string" `
// The tag filter type:
//
2016-11-19 19:41:01 +01:00
// * KEY_ONLY: Key only.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * VALUE_ONLY: Value only.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * KEY_AND_VALUE: Key and value.
2016-01-29 20:53:56 +01:00
Type * string ` type:"string" enum:"EC2TagFilterType" `
// The tag filter value.
Value * string ` type:"string" `
}
// String returns the string representation
func ( s EC2TagFilter ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s EC2TagFilter ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetKey sets the Key field's value.
func ( s * EC2TagFilter ) SetKey ( v string ) * EC2TagFilter {
s . Key = & v
return s
}
// SetType sets the Type field's value.
func ( s * EC2TagFilter ) SetType ( v string ) * EC2TagFilter {
s . Type = & v
return s
}
// SetValue sets the Value field's value.
func ( s * EC2TagFilter ) SetValue ( v string ) * EC2TagFilter {
s . Value = & v
return s
}
2017-01-30 15:18:29 +01:00
// Information about a load balancer in Elastic Load Balancing to use in a blue/green
// deployment.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ELBInfo
type ELBInfo struct {
_ struct { } ` type:"structure" `
// The name of the load balancer that will be used to route traffic from original
// instances to replacement instances in a blue/green deployment.
Name * string ` locationName:"name" type:"string" `
}
// String returns the string representation
func ( s ELBInfo ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ELBInfo ) GoString ( ) string {
return s . String ( )
}
// SetName sets the Name field's value.
func ( s * ELBInfo ) SetName ( v string ) * ELBInfo {
s . Name = & v
return s
}
2016-01-29 20:53:56 +01:00
// Information about a deployment error.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ErrorInformation
2016-01-29 20:53:56 +01:00
type ErrorInformation struct {
_ struct { } ` type:"structure" `
2017-01-30 15:18:29 +01:00
// For information about additional error codes, see Error Codes for AWS CodeDeploy
// (http://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html)
// in the AWS CodeDeploy User Guide (http://docs.aws.amazon.com/codedeploy/latest/userguide).
//
2016-01-29 20:53:56 +01:00
// The error code:
//
2016-11-19 19:41:01 +01:00
// * APPLICATION_MISSING: The application was missing. This error code will
// most likely be raised if the application is deleted after the deployment
// is created but before it is started.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error
// code will most likely be raised if the deployment group is deleted after
// the deployment is created but before it is started.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * HEALTH_CONSTRAINTS: The deployment failed on too many instances to be
// successfully deployed within the instance health constraints specified.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed
// within the instance health constraints specified.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * IAM_ROLE_MISSING: The service role cannot be accessed.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * INTERNAL_ERROR: There was an internal error.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * NO_EC2_SUBSCRIPTION: The calling account is not subscribed to the Amazon
// EC2 service.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * NO_INSTANCES: No instance were specified, or no instance can be found.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * OVER_MAX_INSTANCES: The maximum number of instance was exceeded.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * THROTTLED: The operation was throttled because the calling account exceeded
// the throttling limits of one or more AWS services.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * TIMEOUT: The deployment has timed out.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * REVISION_MISSING: The revision ID was missing. This error code will
// most likely be raised if the revision is deleted after the deployment
// is created but before it is started.
2016-01-29 20:53:56 +01:00
Code * string ` locationName:"code" type:"string" enum:"ErrorCode" `
// An accompanying error message.
Message * string ` locationName:"message" type:"string" `
}
// String returns the string representation
func ( s ErrorInformation ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ErrorInformation ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetCode sets the Code field's value.
func ( s * ErrorInformation ) SetCode ( v string ) * ErrorInformation {
s . Code = & v
return s
}
// SetMessage sets the Message field's value.
func ( s * ErrorInformation ) SetMessage ( v string ) * ErrorInformation {
s . Message = & v
return s
}
2016-01-29 20:53:56 +01:00
// Information about an application revision.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GenericRevisionInfo
2016-01-29 20:53:56 +01:00
type GenericRevisionInfo struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The deployment groups for which this is the current target revision.
2016-01-29 20:53:56 +01:00
DeploymentGroups [ ] * string ` locationName:"deploymentGroups" type:"list" `
// A comment about the revision.
Description * string ` locationName:"description" type:"string" `
// When the revision was first used by AWS CodeDeploy.
FirstUsedTime * time . Time ` locationName:"firstUsedTime" type:"timestamp" timestampFormat:"unix" `
// When the revision was last used by AWS CodeDeploy.
LastUsedTime * time . Time ` locationName:"lastUsedTime" type:"timestamp" timestampFormat:"unix" `
// When the revision was registered with AWS CodeDeploy.
RegisterTime * time . Time ` locationName:"registerTime" type:"timestamp" timestampFormat:"unix" `
}
// String returns the string representation
func ( s GenericRevisionInfo ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GenericRevisionInfo ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentGroups sets the DeploymentGroups field's value.
func ( s * GenericRevisionInfo ) SetDeploymentGroups ( v [ ] * string ) * GenericRevisionInfo {
s . DeploymentGroups = v
return s
}
// SetDescription sets the Description field's value.
func ( s * GenericRevisionInfo ) SetDescription ( v string ) * GenericRevisionInfo {
s . Description = & v
return s
}
// SetFirstUsedTime sets the FirstUsedTime field's value.
func ( s * GenericRevisionInfo ) SetFirstUsedTime ( v time . Time ) * GenericRevisionInfo {
s . FirstUsedTime = & v
return s
}
// SetLastUsedTime sets the LastUsedTime field's value.
func ( s * GenericRevisionInfo ) SetLastUsedTime ( v time . Time ) * GenericRevisionInfo {
s . LastUsedTime = & v
return s
}
// SetRegisterTime sets the RegisterTime field's value.
func ( s * GenericRevisionInfo ) SetRegisterTime ( v time . Time ) * GenericRevisionInfo {
s . RegisterTime = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a get application operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationInput
2016-01-29 20:53:56 +01:00
type GetApplicationInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of an AWS CodeDeploy application associated with the applicable
2016-01-29 20:53:56 +01:00
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetApplicationInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetApplicationInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetApplicationInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetApplicationInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * GetApplicationInput ) SetApplicationName ( v string ) * GetApplicationInput {
s . ApplicationName = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a get application operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationOutput
2016-01-29 20:53:56 +01:00
type GetApplicationOutput struct {
_ struct { } ` type:"structure" `
// Information about the application.
Application * ApplicationInfo ` locationName:"application" type:"structure" `
}
// String returns the string representation
func ( s GetApplicationOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetApplicationOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetApplication sets the Application field's value.
func ( s * GetApplicationOutput ) SetApplication ( v * ApplicationInfo ) * GetApplicationOutput {
s . Application = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a get application revision operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevisionInput
2016-01-29 20:53:56 +01:00
type GetApplicationRevisionInput struct {
_ struct { } ` type:"structure" `
// The name of the application that corresponds to the revision.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
2016-03-18 20:35:09 +01:00
// Information about the application revision to get, including type and location.
2016-10-17 23:21:08 +02:00
//
// Revision is a required field
2016-01-29 20:53:56 +01:00
Revision * RevisionLocation ` locationName:"revision" type:"structure" required:"true" `
}
// String returns the string representation
func ( s GetApplicationRevisionInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetApplicationRevisionInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetApplicationRevisionInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetApplicationRevisionInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if s . Revision == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Revision" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * GetApplicationRevisionInput ) SetApplicationName ( v string ) * GetApplicationRevisionInput {
s . ApplicationName = & v
return s
}
// SetRevision sets the Revision field's value.
func ( s * GetApplicationRevisionInput ) SetRevision ( v * RevisionLocation ) * GetApplicationRevisionInput {
s . Revision = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a get application revision operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevisionOutput
2016-01-29 20:53:56 +01:00
type GetApplicationRevisionOutput struct {
_ struct { } ` type:"structure" `
// The name of the application that corresponds to the revision.
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" `
2016-03-18 20:35:09 +01:00
// Additional information about the revision, including type and location.
2016-01-29 20:53:56 +01:00
Revision * RevisionLocation ` locationName:"revision" type:"structure" `
// General information about the revision.
RevisionInfo * GenericRevisionInfo ` locationName:"revisionInfo" type:"structure" `
}
// String returns the string representation
func ( s GetApplicationRevisionOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetApplicationRevisionOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * GetApplicationRevisionOutput ) SetApplicationName ( v string ) * GetApplicationRevisionOutput {
s . ApplicationName = & v
return s
}
// SetRevision sets the Revision field's value.
func ( s * GetApplicationRevisionOutput ) SetRevision ( v * RevisionLocation ) * GetApplicationRevisionOutput {
s . Revision = v
return s
}
// SetRevisionInfo sets the RevisionInfo field's value.
func ( s * GetApplicationRevisionOutput ) SetRevisionInfo ( v * GenericRevisionInfo ) * GetApplicationRevisionOutput {
s . RevisionInfo = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a get deployment configuration operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfigInput
2016-01-29 20:53:56 +01:00
type GetDeploymentConfigInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of a deployment configuration associated with the applicable IAM
// user or AWS account.
2016-10-17 23:21:08 +02:00
//
// DeploymentConfigName is a required field
2016-01-29 20:53:56 +01:00
DeploymentConfigName * string ` locationName:"deploymentConfigName" min:"1" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetDeploymentConfigInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDeploymentConfigInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetDeploymentConfigInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetDeploymentConfigInput" }
if s . DeploymentConfigName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentConfigName" ) )
}
if s . DeploymentConfigName != nil && len ( * s . DeploymentConfigName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "DeploymentConfigName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetDeploymentConfigName sets the DeploymentConfigName field's value.
func ( s * GetDeploymentConfigInput ) SetDeploymentConfigName ( v string ) * GetDeploymentConfigInput {
s . DeploymentConfigName = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a get deployment configuration operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfigOutput
2016-01-29 20:53:56 +01:00
type GetDeploymentConfigOutput struct {
_ struct { } ` type:"structure" `
// Information about the deployment configuration.
DeploymentConfigInfo * DeploymentConfigInfo ` locationName:"deploymentConfigInfo" type:"structure" `
}
// String returns the string representation
func ( s GetDeploymentConfigOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDeploymentConfigOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentConfigInfo sets the DeploymentConfigInfo field's value.
func ( s * GetDeploymentConfigOutput ) SetDeploymentConfigInfo ( v * DeploymentConfigInfo ) * GetDeploymentConfigOutput {
s . DeploymentConfigInfo = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a get deployment group operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroupInput
2016-01-29 20:53:56 +01:00
type GetDeploymentGroupInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of an AWS CodeDeploy application associated with the applicable
2016-01-29 20:53:56 +01:00
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
// The name of an existing deployment group for the specified application.
2016-10-17 23:21:08 +02:00
//
// DeploymentGroupName is a required field
2016-01-29 20:53:56 +01:00
DeploymentGroupName * string ` locationName:"deploymentGroupName" min:"1" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetDeploymentGroupInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDeploymentGroupInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetDeploymentGroupInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetDeploymentGroupInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if s . DeploymentGroupName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentGroupName" ) )
}
if s . DeploymentGroupName != nil && len ( * s . DeploymentGroupName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "DeploymentGroupName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * GetDeploymentGroupInput ) SetApplicationName ( v string ) * GetDeploymentGroupInput {
s . ApplicationName = & v
return s
}
// SetDeploymentGroupName sets the DeploymentGroupName field's value.
func ( s * GetDeploymentGroupInput ) SetDeploymentGroupName ( v string ) * GetDeploymentGroupInput {
s . DeploymentGroupName = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a get deployment group operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroupOutput
2016-01-29 20:53:56 +01:00
type GetDeploymentGroupOutput struct {
_ struct { } ` type:"structure" `
// Information about the deployment group.
DeploymentGroupInfo * DeploymentGroupInfo ` locationName:"deploymentGroupInfo" type:"structure" `
}
// String returns the string representation
func ( s GetDeploymentGroupOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDeploymentGroupOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentGroupInfo sets the DeploymentGroupInfo field's value.
func ( s * GetDeploymentGroupOutput ) SetDeploymentGroupInfo ( v * DeploymentGroupInfo ) * GetDeploymentGroupOutput {
s . DeploymentGroupInfo = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a get deployment operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInput
2016-01-29 20:53:56 +01:00
type GetDeploymentInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// A deployment ID associated with the applicable IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// DeploymentId is a required field
2016-01-29 20:53:56 +01:00
DeploymentId * string ` locationName:"deploymentId" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetDeploymentInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDeploymentInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetDeploymentInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetDeploymentInput" }
if s . DeploymentId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetDeploymentId sets the DeploymentId field's value.
func ( s * GetDeploymentInput ) SetDeploymentId ( v string ) * GetDeploymentInput {
s . DeploymentId = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a get deployment instance operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstanceInput
2016-01-29 20:53:56 +01:00
type GetDeploymentInstanceInput struct {
_ struct { } ` type:"structure" `
// The unique ID of a deployment.
2016-10-17 23:21:08 +02:00
//
// DeploymentId is a required field
2016-01-29 20:53:56 +01:00
DeploymentId * string ` locationName:"deploymentId" type:"string" required:"true" `
2016-03-18 20:35:09 +01:00
// The unique ID of an instance in the deployment group.
2016-10-17 23:21:08 +02:00
//
// InstanceId is a required field
2016-01-29 20:53:56 +01:00
InstanceId * string ` locationName:"instanceId" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetDeploymentInstanceInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDeploymentInstanceInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetDeploymentInstanceInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetDeploymentInstanceInput" }
if s . DeploymentId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentId" ) )
}
if s . InstanceId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "InstanceId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetDeploymentId sets the DeploymentId field's value.
func ( s * GetDeploymentInstanceInput ) SetDeploymentId ( v string ) * GetDeploymentInstanceInput {
s . DeploymentId = & v
return s
}
// SetInstanceId sets the InstanceId field's value.
func ( s * GetDeploymentInstanceInput ) SetInstanceId ( v string ) * GetDeploymentInstanceInput {
s . InstanceId = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a get deployment instance operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstanceOutput
2016-01-29 20:53:56 +01:00
type GetDeploymentInstanceOutput struct {
_ struct { } ` type:"structure" `
// Information about the instance.
InstanceSummary * InstanceSummary ` locationName:"instanceSummary" type:"structure" `
}
// String returns the string representation
func ( s GetDeploymentInstanceOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDeploymentInstanceOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetInstanceSummary sets the InstanceSummary field's value.
func ( s * GetDeploymentInstanceOutput ) SetInstanceSummary ( v * InstanceSummary ) * GetDeploymentInstanceOutput {
s . InstanceSummary = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a get deployment operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentOutput
2016-01-29 20:53:56 +01:00
type GetDeploymentOutput struct {
_ struct { } ` type:"structure" `
// Information about the deployment.
DeploymentInfo * DeploymentInfo ` locationName:"deploymentInfo" type:"structure" `
}
// String returns the string representation
func ( s GetDeploymentOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetDeploymentOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentInfo sets the DeploymentInfo field's value.
func ( s * GetDeploymentOutput ) SetDeploymentInfo ( v * DeploymentInfo ) * GetDeploymentOutput {
s . DeploymentInfo = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a get on-premises instance operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstanceInput
2016-01-29 20:53:56 +01:00
type GetOnPremisesInstanceInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of the on-premises instance about which to get information.
2016-10-17 23:21:08 +02:00
//
// InstanceName is a required field
2016-01-29 20:53:56 +01:00
InstanceName * string ` locationName:"instanceName" type:"string" required:"true" `
}
// String returns the string representation
func ( s GetOnPremisesInstanceInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetOnPremisesInstanceInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * GetOnPremisesInstanceInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "GetOnPremisesInstanceInput" }
if s . InstanceName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "InstanceName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetInstanceName sets the InstanceName field's value.
func ( s * GetOnPremisesInstanceInput ) SetInstanceName ( v string ) * GetOnPremisesInstanceInput {
s . InstanceName = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a get on-premises instance operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstanceOutput
2016-01-29 20:53:56 +01:00
type GetOnPremisesInstanceOutput struct {
_ struct { } ` type:"structure" `
// Information about the on-premises instance.
InstanceInfo * InstanceInfo ` locationName:"instanceInfo" type:"structure" `
}
// String returns the string representation
func ( s GetOnPremisesInstanceOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GetOnPremisesInstanceOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetInstanceInfo sets the InstanceInfo field's value.
func ( s * GetOnPremisesInstanceOutput ) SetInstanceInfo ( v * InstanceInfo ) * GetOnPremisesInstanceOutput {
s . InstanceInfo = v
return s
}
2016-03-18 20:35:09 +01:00
// Information about the location of application artifacts stored in GitHub.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GitHubLocation
2016-01-29 20:53:56 +01:00
type GitHubLocation struct {
_ struct { } ` type:"structure" `
2016-03-11 01:27:37 +01:00
// The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
// for the application revision.
2016-01-29 20:53:56 +01:00
CommitId * string ` locationName:"commitId" type:"string" `
// The GitHub account and repository pair that stores a reference to the commit
// that represents the bundled artifacts for the application revision.
//
// Specified as account/repository.
Repository * string ` locationName:"repository" type:"string" `
}
// String returns the string representation
func ( s GitHubLocation ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GitHubLocation ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetCommitId sets the CommitId field's value.
func ( s * GitHubLocation ) SetCommitId ( v string ) * GitHubLocation {
s . CommitId = & v
return s
}
// SetRepository sets the Repository field's value.
func ( s * GitHubLocation ) SetRepository ( v string ) * GitHubLocation {
s . Repository = & v
return s
}
2017-01-30 15:18:29 +01:00
// Information about the instances that belong to the replacement environment
// in a blue/green deployment.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GreenFleetProvisioningOption
type GreenFleetProvisioningOption struct {
_ struct { } ` type:"structure" `
// The method used to add instances to a replacement environment.
//
// * DISCOVER_EXISTING: Use instances that already exist or will be created
// manually.
//
// * COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling
// group to define and create instances in a new Auto Scaling group.
Action * string ` locationName:"action" type:"string" enum:"GreenFleetProvisioningAction" `
}
// String returns the string representation
func ( s GreenFleetProvisioningOption ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s GreenFleetProvisioningOption ) GoString ( ) string {
return s . String ( )
}
// SetAction sets the Action field's value.
func ( s * GreenFleetProvisioningOption ) SetAction ( v string ) * GreenFleetProvisioningOption {
s . Action = & v
return s
}
2016-01-29 20:53:56 +01:00
// Information about an on-premises instance.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/InstanceInfo
2016-01-29 20:53:56 +01:00
type InstanceInfo struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// If the on-premises instance was deregistered, the time at which the on-premises
2016-01-29 20:53:56 +01:00
// instance was deregistered.
DeregisterTime * time . Time ` locationName:"deregisterTime" type:"timestamp" timestampFormat:"unix" `
2017-01-02 21:35:31 +01:00
// The ARN of the IAM session associated with the on-premises instance.
IamSessionArn * string ` locationName:"iamSessionArn" type:"string" `
2016-01-29 20:53:56 +01:00
// The IAM user ARN associated with the on-premises instance.
IamUserArn * string ` locationName:"iamUserArn" type:"string" `
// The ARN of the on-premises instance.
InstanceArn * string ` locationName:"instanceArn" type:"string" `
// The name of the on-premises instance.
InstanceName * string ` locationName:"instanceName" type:"string" `
2016-03-18 20:35:09 +01:00
// The time at which the on-premises instance was registered.
2016-01-29 20:53:56 +01:00
RegisterTime * time . Time ` locationName:"registerTime" type:"timestamp" timestampFormat:"unix" `
2016-03-18 20:35:09 +01:00
// The tags currently associated with the on-premises instance.
2016-01-29 20:53:56 +01:00
Tags [ ] * Tag ` locationName:"tags" type:"list" `
}
// String returns the string representation
func ( s InstanceInfo ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s InstanceInfo ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeregisterTime sets the DeregisterTime field's value.
func ( s * InstanceInfo ) SetDeregisterTime ( v time . Time ) * InstanceInfo {
s . DeregisterTime = & v
return s
}
2017-01-02 21:35:31 +01:00
// SetIamSessionArn sets the IamSessionArn field's value.
func ( s * InstanceInfo ) SetIamSessionArn ( v string ) * InstanceInfo {
s . IamSessionArn = & v
return s
}
2016-11-19 19:41:01 +01:00
// SetIamUserArn sets the IamUserArn field's value.
func ( s * InstanceInfo ) SetIamUserArn ( v string ) * InstanceInfo {
s . IamUserArn = & v
return s
}
// SetInstanceArn sets the InstanceArn field's value.
func ( s * InstanceInfo ) SetInstanceArn ( v string ) * InstanceInfo {
s . InstanceArn = & v
return s
}
// SetInstanceName sets the InstanceName field's value.
func ( s * InstanceInfo ) SetInstanceName ( v string ) * InstanceInfo {
s . InstanceName = & v
return s
}
// SetRegisterTime sets the RegisterTime field's value.
func ( s * InstanceInfo ) SetRegisterTime ( v time . Time ) * InstanceInfo {
s . RegisterTime = & v
return s
}
// SetTags sets the Tags field's value.
func ( s * InstanceInfo ) SetTags ( v [ ] * Tag ) * InstanceInfo {
s . Tags = v
return s
}
2016-01-29 20:53:56 +01:00
// Information about an instance in a deployment.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/InstanceSummary
2016-01-29 20:53:56 +01:00
type InstanceSummary struct {
_ struct { } ` type:"structure" `
// The deployment ID.
DeploymentId * string ` locationName:"deploymentId" type:"string" `
// The instance ID.
InstanceId * string ` locationName:"instanceId" type:"string" `
2017-01-30 15:18:29 +01:00
// Information about which environment an instance belongs to in a blue/green
// deployment.
//
// * BLUE: The instance is part of the original environment.
//
// * GREEN: The instance is part of the replacement environment.
InstanceType * string ` locationName:"instanceType" type:"string" enum:"InstanceType" `
2016-01-29 20:53:56 +01:00
// A timestamp indicating when the instance information was last updated.
LastUpdatedAt * time . Time ` locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix" `
// A list of lifecycle events for this instance.
LifecycleEvents [ ] * LifecycleEvent ` locationName:"lifecycleEvents" type:"list" `
// The deployment status for this instance:
//
2016-11-19 19:41:01 +01:00
// * Pending: The deployment is pending for this instance.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * In Progress: The deployment is in progress for this instance.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Succeeded: The deployment has succeeded for this instance.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Failed: The deployment has failed for this instance.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Skipped: The deployment has been skipped for this instance.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Unknown: The deployment status is unknown for this instance.
2016-01-29 20:53:56 +01:00
Status * string ` locationName:"status" type:"string" enum:"InstanceStatus" `
}
// String returns the string representation
func ( s InstanceSummary ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s InstanceSummary ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentId sets the DeploymentId field's value.
func ( s * InstanceSummary ) SetDeploymentId ( v string ) * InstanceSummary {
s . DeploymentId = & v
return s
}
// SetInstanceId sets the InstanceId field's value.
func ( s * InstanceSummary ) SetInstanceId ( v string ) * InstanceSummary {
s . InstanceId = & v
return s
}
2017-01-30 15:18:29 +01:00
// SetInstanceType sets the InstanceType field's value.
func ( s * InstanceSummary ) SetInstanceType ( v string ) * InstanceSummary {
s . InstanceType = & v
return s
}
2016-11-19 19:41:01 +01:00
// SetLastUpdatedAt sets the LastUpdatedAt field's value.
func ( s * InstanceSummary ) SetLastUpdatedAt ( v time . Time ) * InstanceSummary {
s . LastUpdatedAt = & v
return s
}
// SetLifecycleEvents sets the LifecycleEvents field's value.
func ( s * InstanceSummary ) SetLifecycleEvents ( v [ ] * LifecycleEvent ) * InstanceSummary {
s . LifecycleEvents = v
return s
}
// SetStatus sets the Status field's value.
func ( s * InstanceSummary ) SetStatus ( v string ) * InstanceSummary {
s . Status = & v
return s
}
2016-01-29 20:53:56 +01:00
// Information about a deployment lifecycle event.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/LifecycleEvent
2016-01-29 20:53:56 +01:00
type LifecycleEvent struct {
_ struct { } ` type:"structure" `
// Diagnostic information about the deployment lifecycle event.
Diagnostics * Diagnostics ` locationName:"diagnostics" type:"structure" `
// A timestamp indicating when the deployment lifecycle event ended.
EndTime * time . Time ` locationName:"endTime" type:"timestamp" timestampFormat:"unix" `
// The deployment lifecycle event name, such as ApplicationStop, BeforeInstall,
// AfterInstall, ApplicationStart, or ValidateService.
LifecycleEventName * string ` locationName:"lifecycleEventName" type:"string" `
// A timestamp indicating when the deployment lifecycle event started.
StartTime * time . Time ` locationName:"startTime" type:"timestamp" timestampFormat:"unix" `
// The deployment lifecycle event status:
//
2016-11-19 19:41:01 +01:00
// * Pending: The deployment lifecycle event is pending.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * InProgress: The deployment lifecycle event is in progress.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Succeeded: The deployment lifecycle event ran successfully.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Failed: The deployment lifecycle event has failed.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Skipped: The deployment lifecycle event has been skipped.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Unknown: The deployment lifecycle event is unknown.
2016-01-29 20:53:56 +01:00
Status * string ` locationName:"status" type:"string" enum:"LifecycleEventStatus" `
}
// String returns the string representation
func ( s LifecycleEvent ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s LifecycleEvent ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDiagnostics sets the Diagnostics field's value.
func ( s * LifecycleEvent ) SetDiagnostics ( v * Diagnostics ) * LifecycleEvent {
s . Diagnostics = v
return s
}
// SetEndTime sets the EndTime field's value.
func ( s * LifecycleEvent ) SetEndTime ( v time . Time ) * LifecycleEvent {
s . EndTime = & v
return s
}
// SetLifecycleEventName sets the LifecycleEventName field's value.
func ( s * LifecycleEvent ) SetLifecycleEventName ( v string ) * LifecycleEvent {
s . LifecycleEventName = & v
return s
}
// SetStartTime sets the StartTime field's value.
func ( s * LifecycleEvent ) SetStartTime ( v time . Time ) * LifecycleEvent {
s . StartTime = & v
return s
}
// SetStatus sets the Status field's value.
func ( s * LifecycleEvent ) SetStatus ( v string ) * LifecycleEvent {
s . Status = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a list application revisions operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisionsInput
2016-01-29 20:53:56 +01:00
type ListApplicationRevisionsInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of an AWS CodeDeploy application associated with the applicable
2016-01-29 20:53:56 +01:00
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
// Whether to list revisions based on whether the revision is the target revision
// of an deployment group:
//
2016-11-19 19:41:01 +01:00
// * include: List revisions that are target revisions of a deployment group.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * exclude: Do not list revisions that are target revisions of a deployment
// group.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * ignore: List all revisions.
2016-01-29 20:53:56 +01:00
Deployed * string ` locationName:"deployed" type:"string" enum:"ListStateFilterAction" `
2016-03-18 20:35:09 +01:00
// An identifier returned from the previous list application revisions call.
// It can be used to return the next set of applications in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
2016-03-18 20:35:09 +01:00
// An Amazon S3 bucket name to limit the search for revisions.
2016-01-29 20:53:56 +01:00
//
2016-03-18 20:35:09 +01:00
// If set to null, all of the user's buckets will be searched.
2016-01-29 20:53:56 +01:00
S3Bucket * string ` locationName:"s3Bucket" type:"string" `
2016-03-18 20:35:09 +01:00
// A key prefix for the set of Amazon S3 objects to limit the search for revisions.
2016-01-29 20:53:56 +01:00
S3KeyPrefix * string ` locationName:"s3KeyPrefix" type:"string" `
2016-03-18 20:35:09 +01:00
// The column name to use to sort the list results:
2016-01-29 20:53:56 +01:00
//
2016-11-19 19:41:01 +01:00
// * registerTime: Sort by the time the revisions were registered with AWS
// CodeDeploy.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * firstUsedTime: Sort by the time the revisions were first used in a deployment.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * lastUsedTime: Sort by the time the revisions were last used in a deployment.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// If not specified or set to null, the results will be returned in an arbitrary
2016-03-18 20:35:09 +01:00
// order.
2016-01-29 20:53:56 +01:00
SortBy * string ` locationName:"sortBy" type:"string" enum:"ApplicationRevisionSortBy" `
2016-03-18 20:35:09 +01:00
// The order in which to sort the list results:
2016-01-29 20:53:56 +01:00
//
2016-11-19 19:41:01 +01:00
// * ascending: ascending order.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * descending: descending order.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// If not specified, the results will be sorted in ascending order.
2016-01-29 20:53:56 +01:00
//
// If set to null, the results will be sorted in an arbitrary order.
SortOrder * string ` locationName:"sortOrder" type:"string" enum:"SortOrder" `
}
// String returns the string representation
func ( s ListApplicationRevisionsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListApplicationRevisionsInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * ListApplicationRevisionsInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "ListApplicationRevisionsInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * ListApplicationRevisionsInput ) SetApplicationName ( v string ) * ListApplicationRevisionsInput {
s . ApplicationName = & v
return s
}
// SetDeployed sets the Deployed field's value.
func ( s * ListApplicationRevisionsInput ) SetDeployed ( v string ) * ListApplicationRevisionsInput {
s . Deployed = & v
return s
}
// SetNextToken sets the NextToken field's value.
func ( s * ListApplicationRevisionsInput ) SetNextToken ( v string ) * ListApplicationRevisionsInput {
s . NextToken = & v
return s
}
// SetS3Bucket sets the S3Bucket field's value.
func ( s * ListApplicationRevisionsInput ) SetS3Bucket ( v string ) * ListApplicationRevisionsInput {
s . S3Bucket = & v
return s
}
// SetS3KeyPrefix sets the S3KeyPrefix field's value.
func ( s * ListApplicationRevisionsInput ) SetS3KeyPrefix ( v string ) * ListApplicationRevisionsInput {
s . S3KeyPrefix = & v
return s
}
// SetSortBy sets the SortBy field's value.
func ( s * ListApplicationRevisionsInput ) SetSortBy ( v string ) * ListApplicationRevisionsInput {
s . SortBy = & v
return s
}
// SetSortOrder sets the SortOrder field's value.
func ( s * ListApplicationRevisionsInput ) SetSortOrder ( v string ) * ListApplicationRevisionsInput {
s . SortOrder = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a list application revisions operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisionsOutput
2016-01-29 20:53:56 +01:00
type ListApplicationRevisionsOutput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// If a large amount of information is returned, an identifier will also be
// returned. It can be used in a subsequent list application revisions call
// to return the next set of application revisions in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
2016-03-18 20:35:09 +01:00
// A list of locations that contain the matching revisions.
2016-01-29 20:53:56 +01:00
Revisions [ ] * RevisionLocation ` locationName:"revisions" type:"list" `
}
// String returns the string representation
func ( s ListApplicationRevisionsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListApplicationRevisionsOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetNextToken sets the NextToken field's value.
func ( s * ListApplicationRevisionsOutput ) SetNextToken ( v string ) * ListApplicationRevisionsOutput {
s . NextToken = & v
return s
}
// SetRevisions sets the Revisions field's value.
func ( s * ListApplicationRevisionsOutput ) SetRevisions ( v [ ] * RevisionLocation ) * ListApplicationRevisionsOutput {
s . Revisions = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a list applications operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationsInput
2016-01-29 20:53:56 +01:00
type ListApplicationsInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// An identifier returned from the previous list applications call. It can be
// used to return the next set of applications in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
}
// String returns the string representation
func ( s ListApplicationsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListApplicationsInput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetNextToken sets the NextToken field's value.
func ( s * ListApplicationsInput ) SetNextToken ( v string ) * ListApplicationsInput {
s . NextToken = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a list applications operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationsOutput
2016-01-29 20:53:56 +01:00
type ListApplicationsOutput struct {
_ struct { } ` type:"structure" `
// A list of application names.
Applications [ ] * string ` locationName:"applications" type:"list" `
2016-03-18 20:35:09 +01:00
// If a large amount of information is returned, an identifier is also returned.
// It can be used in a subsequent list applications call to return the next
// set of applications, will also be returned. in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
}
// String returns the string representation
func ( s ListApplicationsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListApplicationsOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetApplications sets the Applications field's value.
func ( s * ListApplicationsOutput ) SetApplications ( v [ ] * string ) * ListApplicationsOutput {
s . Applications = v
return s
}
// SetNextToken sets the NextToken field's value.
func ( s * ListApplicationsOutput ) SetNextToken ( v string ) * ListApplicationsOutput {
s . NextToken = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a list deployment configurations operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigsInput
2016-01-29 20:53:56 +01:00
type ListDeploymentConfigsInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// An identifier returned from the previous list deployment configurations call.
// It can be used to return the next set of deployment configurations in the
// list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
}
// String returns the string representation
func ( s ListDeploymentConfigsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListDeploymentConfigsInput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetNextToken sets the NextToken field's value.
func ( s * ListDeploymentConfigsInput ) SetNextToken ( v string ) * ListDeploymentConfigsInput {
s . NextToken = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a list deployment configurations operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigsOutput
2016-01-29 20:53:56 +01:00
type ListDeploymentConfigsOutput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// A list of deployment configurations, including built-in configurations such
// as CodeDeployDefault.OneAtATime.
2016-01-29 20:53:56 +01:00
DeploymentConfigsList [ ] * string ` locationName:"deploymentConfigsList" type:"list" `
2016-03-18 20:35:09 +01:00
// If a large amount of information is returned, an identifier is also returned.
// It can be used in a subsequent list deployment configurations call to return
// the next set of deployment configurations in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
}
// String returns the string representation
func ( s ListDeploymentConfigsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListDeploymentConfigsOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeploymentConfigsList sets the DeploymentConfigsList field's value.
func ( s * ListDeploymentConfigsOutput ) SetDeploymentConfigsList ( v [ ] * string ) * ListDeploymentConfigsOutput {
s . DeploymentConfigsList = v
return s
}
// SetNextToken sets the NextToken field's value.
func ( s * ListDeploymentConfigsOutput ) SetNextToken ( v string ) * ListDeploymentConfigsOutput {
s . NextToken = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a list deployment groups operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroupsInput
2016-01-29 20:53:56 +01:00
type ListDeploymentGroupsInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of an AWS CodeDeploy application associated with the applicable
2016-01-29 20:53:56 +01:00
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
2016-03-18 20:35:09 +01:00
// An identifier returned from the previous list deployment groups call. It
// can be used to return the next set of deployment groups in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
}
// String returns the string representation
func ( s ListDeploymentGroupsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListDeploymentGroupsInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * ListDeploymentGroupsInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "ListDeploymentGroupsInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * ListDeploymentGroupsInput ) SetApplicationName ( v string ) * ListDeploymentGroupsInput {
s . ApplicationName = & v
return s
}
// SetNextToken sets the NextToken field's value.
func ( s * ListDeploymentGroupsInput ) SetNextToken ( v string ) * ListDeploymentGroupsInput {
s . NextToken = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a list deployment groups operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroupsOutput
2016-01-29 20:53:56 +01:00
type ListDeploymentGroupsOutput struct {
_ struct { } ` type:"structure" `
// The application name.
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" `
// A list of corresponding deployment group names.
DeploymentGroups [ ] * string ` locationName:"deploymentGroups" type:"list" `
2016-03-18 20:35:09 +01:00
// If a large amount of information is returned, an identifier is also returned.
// It can be used in a subsequent list deployment groups call to return the
// next set of deployment groups in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
}
// String returns the string representation
func ( s ListDeploymentGroupsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListDeploymentGroupsOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * ListDeploymentGroupsOutput ) SetApplicationName ( v string ) * ListDeploymentGroupsOutput {
s . ApplicationName = & v
return s
}
// SetDeploymentGroups sets the DeploymentGroups field's value.
func ( s * ListDeploymentGroupsOutput ) SetDeploymentGroups ( v [ ] * string ) * ListDeploymentGroupsOutput {
s . DeploymentGroups = v
return s
}
// SetNextToken sets the NextToken field's value.
func ( s * ListDeploymentGroupsOutput ) SetNextToken ( v string ) * ListDeploymentGroupsOutput {
s . NextToken = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a list deployment instances operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstancesInput
2016-01-29 20:53:56 +01:00
type ListDeploymentInstancesInput struct {
_ struct { } ` type:"structure" `
// The unique ID of a deployment.
2016-10-17 23:21:08 +02:00
//
// DeploymentId is a required field
2016-01-29 20:53:56 +01:00
DeploymentId * string ` locationName:"deploymentId" type:"string" required:"true" `
2016-03-18 20:35:09 +01:00
// A subset of instances to list by status:
2016-01-29 20:53:56 +01:00
//
2016-11-19 19:41:01 +01:00
// * Pending: Include those instance with pending deployments.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * InProgress: Include those instance where deployments are still in progress.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Succeeded: Include those instances with successful deployments.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Failed: Include those instance with failed deployments.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Skipped: Include those instance with skipped deployments.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Unknown: Include those instance with deployments in an unknown state.
2016-01-29 20:53:56 +01:00
InstanceStatusFilter [ ] * string ` locationName:"instanceStatusFilter" type:"list" `
2017-01-30 15:18:29 +01:00
// The set of instances in a blue/green deployment, either those in the original
// environment ("BLUE") or those in the replacement environment ("GREEN"), for
// which you want to view instance information.
InstanceTypeFilter [ ] * string ` locationName:"instanceTypeFilter" type:"list" `
2016-03-18 20:35:09 +01:00
// An identifier returned from the previous list deployment instances call.
// It can be used to return the next set of deployment instances in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
}
// String returns the string representation
func ( s ListDeploymentInstancesInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListDeploymentInstancesInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * ListDeploymentInstancesInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "ListDeploymentInstancesInput" }
if s . DeploymentId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetDeploymentId sets the DeploymentId field's value.
func ( s * ListDeploymentInstancesInput ) SetDeploymentId ( v string ) * ListDeploymentInstancesInput {
s . DeploymentId = & v
return s
}
// SetInstanceStatusFilter sets the InstanceStatusFilter field's value.
func ( s * ListDeploymentInstancesInput ) SetInstanceStatusFilter ( v [ ] * string ) * ListDeploymentInstancesInput {
s . InstanceStatusFilter = v
return s
}
2017-01-30 15:18:29 +01:00
// SetInstanceTypeFilter sets the InstanceTypeFilter field's value.
func ( s * ListDeploymentInstancesInput ) SetInstanceTypeFilter ( v [ ] * string ) * ListDeploymentInstancesInput {
s . InstanceTypeFilter = v
return s
}
2016-11-19 19:41:01 +01:00
// SetNextToken sets the NextToken field's value.
func ( s * ListDeploymentInstancesInput ) SetNextToken ( v string ) * ListDeploymentInstancesInput {
s . NextToken = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a list deployment instances operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstancesOutput
2016-01-29 20:53:56 +01:00
type ListDeploymentInstancesOutput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// A list of instance IDs.
2016-01-29 20:53:56 +01:00
InstancesList [ ] * string ` locationName:"instancesList" type:"list" `
2016-03-18 20:35:09 +01:00
// If a large amount of information is returned, an identifier is also returned.
// It can be used in a subsequent list deployment instances call to return the
// next set of deployment instances in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
}
// String returns the string representation
func ( s ListDeploymentInstancesOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListDeploymentInstancesOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetInstancesList sets the InstancesList field's value.
func ( s * ListDeploymentInstancesOutput ) SetInstancesList ( v [ ] * string ) * ListDeploymentInstancesOutput {
s . InstancesList = v
return s
}
// SetNextToken sets the NextToken field's value.
func ( s * ListDeploymentInstancesOutput ) SetNextToken ( v string ) * ListDeploymentInstancesOutput {
s . NextToken = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a list deployments operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentsInput
2016-01-29 20:53:56 +01:00
type ListDeploymentsInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of an AWS CodeDeploy application associated with the applicable
2016-01-29 20:53:56 +01:00
// IAM user or AWS account.
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" `
2016-03-18 20:35:09 +01:00
// A time range (start and end) for returning a subset of the list of deployments.
2016-01-29 20:53:56 +01:00
CreateTimeRange * TimeRange ` locationName:"createTimeRange" type:"structure" `
// The name of an existing deployment group for the specified application.
DeploymentGroupName * string ` locationName:"deploymentGroupName" min:"1" type:"string" `
2016-03-18 20:35:09 +01:00
// A subset of deployments to list by status:
2016-01-29 20:53:56 +01:00
//
2016-11-19 19:41:01 +01:00
// * Created: Include created deployments in the resulting list.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Queued: Include queued deployments in the resulting list.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * In Progress: Include in-progress deployments in the resulting list.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Succeeded: Include successful deployments in the resulting list.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Failed: Include failed deployments in the resulting list.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Stopped: Include stopped deployments in the resulting list.
2016-01-29 20:53:56 +01:00
IncludeOnlyStatuses [ ] * string ` locationName:"includeOnlyStatuses" type:"list" `
2016-03-18 20:35:09 +01:00
// An identifier returned from the previous list deployments call. It can be
// used to return the next set of deployments in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
}
// String returns the string representation
func ( s ListDeploymentsInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListDeploymentsInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * ListDeploymentsInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "ListDeploymentsInput" }
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if s . DeploymentGroupName != nil && len ( * s . DeploymentGroupName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "DeploymentGroupName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * ListDeploymentsInput ) SetApplicationName ( v string ) * ListDeploymentsInput {
s . ApplicationName = & v
return s
}
// SetCreateTimeRange sets the CreateTimeRange field's value.
func ( s * ListDeploymentsInput ) SetCreateTimeRange ( v * TimeRange ) * ListDeploymentsInput {
s . CreateTimeRange = v
return s
}
// SetDeploymentGroupName sets the DeploymentGroupName field's value.
func ( s * ListDeploymentsInput ) SetDeploymentGroupName ( v string ) * ListDeploymentsInput {
s . DeploymentGroupName = & v
return s
}
// SetIncludeOnlyStatuses sets the IncludeOnlyStatuses field's value.
func ( s * ListDeploymentsInput ) SetIncludeOnlyStatuses ( v [ ] * string ) * ListDeploymentsInput {
s . IncludeOnlyStatuses = v
return s
}
// SetNextToken sets the NextToken field's value.
func ( s * ListDeploymentsInput ) SetNextToken ( v string ) * ListDeploymentsInput {
s . NextToken = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a list deployments operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentsOutput
2016-01-29 20:53:56 +01:00
type ListDeploymentsOutput struct {
_ struct { } ` type:"structure" `
// A list of deployment IDs.
Deployments [ ] * string ` locationName:"deployments" type:"list" `
2016-03-18 20:35:09 +01:00
// If a large amount of information is returned, an identifier is also returned.
// It can be used in a subsequent list deployments call to return the next set
// of deployments in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
}
// String returns the string representation
func ( s ListDeploymentsOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListDeploymentsOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetDeployments sets the Deployments field's value.
func ( s * ListDeploymentsOutput ) SetDeployments ( v [ ] * string ) * ListDeploymentsOutput {
s . Deployments = v
return s
}
// SetNextToken sets the NextToken field's value.
func ( s * ListDeploymentsOutput ) SetNextToken ( v string ) * ListDeploymentsOutput {
s . NextToken = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a list on-premises instances operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstancesInput
2016-01-29 20:53:56 +01:00
type ListOnPremisesInstancesInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// An identifier returned from the previous list on-premises instances call.
// It can be used to return the next set of on-premises instances in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
2016-03-18 20:35:09 +01:00
// The registration status of the on-premises instances:
2016-01-29 20:53:56 +01:00
//
2016-11-19 19:41:01 +01:00
// * Deregistered: Include deregistered on-premises instances in the resulting
// list.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Registered: Include registered on-premises instances in the resulting
// list.
2016-01-29 20:53:56 +01:00
RegistrationStatus * string ` locationName:"registrationStatus" type:"string" enum:"RegistrationStatus" `
// The on-premises instance tags that will be used to restrict the corresponding
2016-03-18 20:35:09 +01:00
// on-premises instance names returned.
2016-01-29 20:53:56 +01:00
TagFilters [ ] * TagFilter ` locationName:"tagFilters" type:"list" `
}
// String returns the string representation
func ( s ListOnPremisesInstancesInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListOnPremisesInstancesInput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetNextToken sets the NextToken field's value.
func ( s * ListOnPremisesInstancesInput ) SetNextToken ( v string ) * ListOnPremisesInstancesInput {
s . NextToken = & v
return s
}
// SetRegistrationStatus sets the RegistrationStatus field's value.
func ( s * ListOnPremisesInstancesInput ) SetRegistrationStatus ( v string ) * ListOnPremisesInstancesInput {
s . RegistrationStatus = & v
return s
}
// SetTagFilters sets the TagFilters field's value.
func ( s * ListOnPremisesInstancesInput ) SetTagFilters ( v [ ] * TagFilter ) * ListOnPremisesInstancesInput {
s . TagFilters = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of list on-premises instances operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstancesOutput
2016-01-29 20:53:56 +01:00
type ListOnPremisesInstancesOutput struct {
_ struct { } ` type:"structure" `
// The list of matching on-premises instance names.
InstanceNames [ ] * string ` locationName:"instanceNames" type:"list" `
2016-03-18 20:35:09 +01:00
// If a large amount of information is returned, an identifier is also returned.
// It can be used in a subsequent list on-premises instances call to return
// the next set of on-premises instances in the list.
2016-01-29 20:53:56 +01:00
NextToken * string ` locationName:"nextToken" type:"string" `
}
// String returns the string representation
func ( s ListOnPremisesInstancesOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s ListOnPremisesInstancesOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetInstanceNames sets the InstanceNames field's value.
func ( s * ListOnPremisesInstancesOutput ) SetInstanceNames ( v [ ] * string ) * ListOnPremisesInstancesOutput {
s . InstanceNames = v
return s
}
// SetNextToken sets the NextToken field's value.
func ( s * ListOnPremisesInstancesOutput ) SetNextToken ( v string ) * ListOnPremisesInstancesOutput {
s . NextToken = & v
return s
}
2017-01-30 15:18:29 +01:00
// Information about the load balancer used in a blue/green deployment.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/LoadBalancerInfo
type LoadBalancerInfo struct {
_ struct { } ` type:"structure" `
// An array containing information about the load balancer in Elastic Load Balancing
// to use in a blue/green deployment.
ElbInfoList [ ] * ELBInfo ` locationName:"elbInfoList" type:"list" `
}
// String returns the string representation
func ( s LoadBalancerInfo ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s LoadBalancerInfo ) GoString ( ) string {
return s . String ( )
}
// SetElbInfoList sets the ElbInfoList field's value.
func ( s * LoadBalancerInfo ) SetElbInfoList ( v [ ] * ELBInfo ) * LoadBalancerInfo {
s . ElbInfoList = v
return s
}
2016-03-18 20:35:09 +01:00
// Information about minimum healthy instance.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/MinimumHealthyHosts
2016-01-29 20:53:56 +01:00
type MinimumHealthyHosts struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The minimum healthy instance type:
2016-01-29 20:53:56 +01:00
//
2016-11-19 19:41:01 +01:00
// * HOST_COUNT: The minimum number of healthy instance as an absolute value.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * FLEET_PERCENT: The minimum number of healthy instance as a percentage
// of the total number of instance in the deployment.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// In an example of nine instance, if a HOST_COUNT of six is specified, deploy
2016-09-21 09:50:22 +02:00
// to up to three instances at a time. The deployment will be successful if
// six or more instances are deployed to successfully; otherwise, the deployment
// fails. If a FLEET_PERCENT of 40 is specified, deploy to up to five instance
// at a time. The deployment will be successful if four or more instance are
// deployed to successfully; otherwise, the deployment fails.
2016-01-29 20:53:56 +01:00
//
2016-11-19 19:41:01 +01:00
// In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime
2016-03-18 20:35:09 +01:00
// will return a minimum healthy instance type of MOST_CONCURRENCY and a value
2016-03-11 01:27:37 +01:00
// of 1. This means a deployment to only one instance at a time. (You cannot
// set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In
// addition, with CodeDeployDefault.OneAtATime, AWS CodeDeploy will try to ensure
2016-03-18 20:35:09 +01:00
// that all instances but one are kept in a healthy state during the deployment.
// Although this allows one instance at a time to be taken offline for a new
// deployment, it also means that if the deployment to the last instance fails,
// the overall deployment still succeeds.
2016-01-29 20:53:56 +01:00
Type * string ` locationName:"type" type:"string" enum:"MinimumHealthyHostsType" `
2016-03-18 20:35:09 +01:00
// The minimum healthy instance value.
2016-01-29 20:53:56 +01:00
Value * int64 ` locationName:"value" type:"integer" `
}
// String returns the string representation
func ( s MinimumHealthyHosts ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s MinimumHealthyHosts ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetType sets the Type field's value.
func ( s * MinimumHealthyHosts ) SetType ( v string ) * MinimumHealthyHosts {
s . Type = & v
return s
}
// SetValue sets the Value field's value.
func ( s * MinimumHealthyHosts ) SetValue ( v int64 ) * MinimumHealthyHosts {
s . Value = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of a register application revision operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevisionInput
2016-01-29 20:53:56 +01:00
type RegisterApplicationRevisionInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The name of an AWS CodeDeploy application associated with the applicable
2016-01-29 20:53:56 +01:00
// IAM user or AWS account.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
// A comment about the revision.
Description * string ` locationName:"description" type:"string" `
2016-03-18 20:35:09 +01:00
// Information about the application revision to register, including type and
// location.
2016-10-17 23:21:08 +02:00
//
// Revision is a required field
2016-01-29 20:53:56 +01:00
Revision * RevisionLocation ` locationName:"revision" type:"structure" required:"true" `
}
// String returns the string representation
func ( s RegisterApplicationRevisionInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s RegisterApplicationRevisionInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * RegisterApplicationRevisionInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "RegisterApplicationRevisionInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if s . Revision == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Revision" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * RegisterApplicationRevisionInput ) SetApplicationName ( v string ) * RegisterApplicationRevisionInput {
s . ApplicationName = & v
return s
}
// SetDescription sets the Description field's value.
func ( s * RegisterApplicationRevisionInput ) SetDescription ( v string ) * RegisterApplicationRevisionInput {
s . Description = & v
return s
}
// SetRevision sets the Revision field's value.
func ( s * RegisterApplicationRevisionInput ) SetRevision ( v * RevisionLocation ) * RegisterApplicationRevisionInput {
s . Revision = v
return s
}
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevisionOutput
2016-01-29 20:53:56 +01:00
type RegisterApplicationRevisionOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s RegisterApplicationRevisionOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s RegisterApplicationRevisionOutput ) GoString ( ) string {
return s . String ( )
}
2016-03-18 20:35:09 +01:00
// Represents the input of the register on-premises instance operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstanceInput
2016-01-29 20:53:56 +01:00
type RegisterOnPremisesInstanceInput struct {
_ struct { } ` type:"structure" `
2017-01-02 21:35:31 +01:00
// The ARN of the IAM session to associate with the on-premises instance.
IamSessionArn * string ` locationName:"iamSessionArn" type:"string" `
2016-01-29 20:53:56 +01:00
// The ARN of the IAM user to associate with the on-premises instance.
2017-01-02 21:35:31 +01:00
IamUserArn * string ` locationName:"iamUserArn" type:"string" `
2016-01-29 20:53:56 +01:00
// The name of the on-premises instance to register.
2016-10-17 23:21:08 +02:00
//
// InstanceName is a required field
2016-01-29 20:53:56 +01:00
InstanceName * string ` locationName:"instanceName" type:"string" required:"true" `
}
// String returns the string representation
func ( s RegisterOnPremisesInstanceInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s RegisterOnPremisesInstanceInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * RegisterOnPremisesInstanceInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "RegisterOnPremisesInstanceInput" }
if s . InstanceName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "InstanceName" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2017-01-02 21:35:31 +01:00
// SetIamSessionArn sets the IamSessionArn field's value.
func ( s * RegisterOnPremisesInstanceInput ) SetIamSessionArn ( v string ) * RegisterOnPremisesInstanceInput {
s . IamSessionArn = & v
return s
}
2016-11-19 19:41:01 +01:00
// SetIamUserArn sets the IamUserArn field's value.
func ( s * RegisterOnPremisesInstanceInput ) SetIamUserArn ( v string ) * RegisterOnPremisesInstanceInput {
s . IamUserArn = & v
return s
}
// SetInstanceName sets the InstanceName field's value.
func ( s * RegisterOnPremisesInstanceInput ) SetInstanceName ( v string ) * RegisterOnPremisesInstanceInput {
s . InstanceName = & v
return s
}
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstanceOutput
2016-01-29 20:53:56 +01:00
type RegisterOnPremisesInstanceOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s RegisterOnPremisesInstanceOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s RegisterOnPremisesInstanceOutput ) GoString ( ) string {
return s . String ( )
}
// Represents the input of a remove tags from on-premises instances operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstancesInput
2016-01-29 20:53:56 +01:00
type RemoveTagsFromOnPremisesInstancesInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The names of the on-premises instances from which to remove tags.
2016-10-17 23:21:08 +02:00
//
// InstanceNames is a required field
2016-01-29 20:53:56 +01:00
InstanceNames [ ] * string ` locationName:"instanceNames" type:"list" required:"true" `
// The tag key-value pairs to remove from the on-premises instances.
2016-10-17 23:21:08 +02:00
//
// Tags is a required field
2016-01-29 20:53:56 +01:00
Tags [ ] * Tag ` locationName:"tags" type:"list" required:"true" `
}
// String returns the string representation
func ( s RemoveTagsFromOnPremisesInstancesInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s RemoveTagsFromOnPremisesInstancesInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * RemoveTagsFromOnPremisesInstancesInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "RemoveTagsFromOnPremisesInstancesInput" }
if s . InstanceNames == nil {
invalidParams . Add ( request . NewErrParamRequired ( "InstanceNames" ) )
}
if s . Tags == nil {
invalidParams . Add ( request . NewErrParamRequired ( "Tags" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetInstanceNames sets the InstanceNames field's value.
func ( s * RemoveTagsFromOnPremisesInstancesInput ) SetInstanceNames ( v [ ] * string ) * RemoveTagsFromOnPremisesInstancesInput {
s . InstanceNames = v
return s
}
// SetTags sets the Tags field's value.
func ( s * RemoveTagsFromOnPremisesInstancesInput ) SetTags ( v [ ] * Tag ) * RemoveTagsFromOnPremisesInstancesInput {
s . Tags = v
return s
}
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstancesOutput
2016-01-29 20:53:56 +01:00
type RemoveTagsFromOnPremisesInstancesOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s RemoveTagsFromOnPremisesInstancesOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s RemoveTagsFromOnPremisesInstancesOutput ) GoString ( ) string {
return s . String ( )
}
2016-03-11 01:27:37 +01:00
// Information about an application revision.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RevisionInfo
2016-03-11 01:27:37 +01:00
type RevisionInfo struct {
_ struct { } ` type:"structure" `
2017-01-30 15:18:29 +01:00
// Information about an application revision, including usage details and associated
// deployment groups.
2016-03-11 01:27:37 +01:00
GenericRevisionInfo * GenericRevisionInfo ` locationName:"genericRevisionInfo" type:"structure" `
2017-01-02 21:35:31 +01:00
// Information about the location and type of an application revision.
2016-03-11 01:27:37 +01:00
RevisionLocation * RevisionLocation ` locationName:"revisionLocation" type:"structure" `
}
// String returns the string representation
func ( s RevisionInfo ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s RevisionInfo ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetGenericRevisionInfo sets the GenericRevisionInfo field's value.
func ( s * RevisionInfo ) SetGenericRevisionInfo ( v * GenericRevisionInfo ) * RevisionInfo {
s . GenericRevisionInfo = v
return s
}
// SetRevisionLocation sets the RevisionLocation field's value.
func ( s * RevisionInfo ) SetRevisionLocation ( v * RevisionLocation ) * RevisionInfo {
s . RevisionLocation = v
return s
}
2016-03-18 20:35:09 +01:00
// Information about the location of an application revision.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RevisionLocation
2016-01-29 20:53:56 +01:00
type RevisionLocation struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// Information about the location of application artifacts stored in GitHub.
2016-01-29 20:53:56 +01:00
GitHubLocation * GitHubLocation ` locationName:"gitHubLocation" type:"structure" `
2016-03-18 20:35:09 +01:00
// The type of application revision:
2016-01-29 20:53:56 +01:00
//
2016-11-19 19:41:01 +01:00
// * S3: An application revision stored in Amazon S3.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * GitHub: An application revision stored in GitHub.
2016-01-29 20:53:56 +01:00
RevisionType * string ` locationName:"revisionType" type:"string" enum:"RevisionLocationType" `
2016-03-18 20:35:09 +01:00
// Information about the location of application artifacts stored in Amazon
// S3.
2016-01-29 20:53:56 +01:00
S3Location * S3Location ` locationName:"s3Location" type:"structure" `
}
// String returns the string representation
func ( s RevisionLocation ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s RevisionLocation ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetGitHubLocation sets the GitHubLocation field's value.
func ( s * RevisionLocation ) SetGitHubLocation ( v * GitHubLocation ) * RevisionLocation {
s . GitHubLocation = v
return s
}
// SetRevisionType sets the RevisionType field's value.
func ( s * RevisionLocation ) SetRevisionType ( v string ) * RevisionLocation {
s . RevisionType = & v
return s
}
// SetS3Location sets the S3Location field's value.
func ( s * RevisionLocation ) SetS3Location ( v * S3Location ) * RevisionLocation {
s . S3Location = v
return s
}
2016-09-21 09:50:22 +02:00
// Information about a deployment rollback.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RollbackInfo
2016-09-21 09:50:22 +02:00
type RollbackInfo struct {
_ struct { } ` type:"structure" `
// The ID of the deployment rollback.
RollbackDeploymentId * string ` locationName:"rollbackDeploymentId" type:"string" `
// Information describing the status of a deployment rollback; for example,
// whether the deployment can't be rolled back, is in progress, failed, or succeeded.
RollbackMessage * string ` locationName:"rollbackMessage" type:"string" `
// The deployment ID of the deployment that was underway and triggered a rollback
// deployment because it failed or was stopped.
RollbackTriggeringDeploymentId * string ` locationName:"rollbackTriggeringDeploymentId" type:"string" `
}
// String returns the string representation
func ( s RollbackInfo ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s RollbackInfo ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetRollbackDeploymentId sets the RollbackDeploymentId field's value.
func ( s * RollbackInfo ) SetRollbackDeploymentId ( v string ) * RollbackInfo {
s . RollbackDeploymentId = & v
return s
}
// SetRollbackMessage sets the RollbackMessage field's value.
func ( s * RollbackInfo ) SetRollbackMessage ( v string ) * RollbackInfo {
s . RollbackMessage = & v
return s
}
// SetRollbackTriggeringDeploymentId sets the RollbackTriggeringDeploymentId field's value.
func ( s * RollbackInfo ) SetRollbackTriggeringDeploymentId ( v string ) * RollbackInfo {
s . RollbackTriggeringDeploymentId = & v
return s
}
2016-03-18 20:35:09 +01:00
// Information about the location of application artifacts stored in Amazon
// S3.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/S3Location
2016-01-29 20:53:56 +01:00
type S3Location struct {
_ struct { } ` type:"structure" `
// The name of the Amazon S3 bucket where the application revision is stored.
Bucket * string ` locationName:"bucket" type:"string" `
// The file type of the application revision. Must be one of the following:
//
2016-11-19 19:41:01 +01:00
// * tar: A tar archive file.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * tgz: A compressed tar archive file.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * zip: A zip archive file.
2016-01-29 20:53:56 +01:00
BundleType * string ` locationName:"bundleType" type:"string" enum:"BundleType" `
// The ETag of the Amazon S3 object that represents the bundled artifacts for
// the application revision.
//
// If the ETag is not specified as an input parameter, ETag validation of the
// object will be skipped.
ETag * string ` locationName:"eTag" type:"string" `
// The name of the Amazon S3 object that represents the bundled artifacts for
// the application revision.
Key * string ` locationName:"key" type:"string" `
// A specific version of the Amazon S3 object that represents the bundled artifacts
// for the application revision.
//
// If the version is not specified, the system will use the most recent version
// by default.
Version * string ` locationName:"version" type:"string" `
}
// String returns the string representation
func ( s S3Location ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s S3Location ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetBucket sets the Bucket field's value.
func ( s * S3Location ) SetBucket ( v string ) * S3Location {
s . Bucket = & v
return s
}
// SetBundleType sets the BundleType field's value.
func ( s * S3Location ) SetBundleType ( v string ) * S3Location {
s . BundleType = & v
return s
}
// SetETag sets the ETag field's value.
func ( s * S3Location ) SetETag ( v string ) * S3Location {
s . ETag = & v
return s
}
// SetKey sets the Key field's value.
func ( s * S3Location ) SetKey ( v string ) * S3Location {
s . Key = & v
return s
}
// SetVersion sets the Version field's value.
func ( s * S3Location ) SetVersion ( v string ) * S3Location {
s . Version = & v
return s
}
2017-01-30 15:18:29 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTerminationInput
type SkipWaitTimeForInstanceTerminationInput struct {
_ struct { } ` type:"structure" `
// The ID of the blue/green deployment for which you want to skip the instance
// termination wait time.
DeploymentId * string ` locationName:"deploymentId" type:"string" `
}
// String returns the string representation
func ( s SkipWaitTimeForInstanceTerminationInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s SkipWaitTimeForInstanceTerminationInput ) GoString ( ) string {
return s . String ( )
}
// SetDeploymentId sets the DeploymentId field's value.
func ( s * SkipWaitTimeForInstanceTerminationInput ) SetDeploymentId ( v string ) * SkipWaitTimeForInstanceTerminationInput {
s . DeploymentId = & v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTerminationOutput
type SkipWaitTimeForInstanceTerminationOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s SkipWaitTimeForInstanceTerminationOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s SkipWaitTimeForInstanceTerminationOutput ) GoString ( ) string {
return s . String ( )
}
2016-01-29 20:53:56 +01:00
// Represents the input of a stop deployment operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeploymentInput
2016-01-29 20:53:56 +01:00
type StopDeploymentInput struct {
_ struct { } ` type:"structure" `
2016-09-21 09:50:22 +02:00
// Indicates, when a deployment is stopped, whether instances that have been
// updated should be rolled back to the previous version of the application
// revision.
AutoRollbackEnabled * bool ` locationName:"autoRollbackEnabled" type:"boolean" `
2016-01-29 20:53:56 +01:00
// The unique ID of a deployment.
2016-10-17 23:21:08 +02:00
//
// DeploymentId is a required field
2016-01-29 20:53:56 +01:00
DeploymentId * string ` locationName:"deploymentId" type:"string" required:"true" `
}
// String returns the string representation
func ( s StopDeploymentInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s StopDeploymentInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * StopDeploymentInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "StopDeploymentInput" }
if s . DeploymentId == nil {
invalidParams . Add ( request . NewErrParamRequired ( "DeploymentId" ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetAutoRollbackEnabled sets the AutoRollbackEnabled field's value.
func ( s * StopDeploymentInput ) SetAutoRollbackEnabled ( v bool ) * StopDeploymentInput {
s . AutoRollbackEnabled = & v
return s
}
// SetDeploymentId sets the DeploymentId field's value.
func ( s * StopDeploymentInput ) SetDeploymentId ( v string ) * StopDeploymentInput {
s . DeploymentId = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of a stop deployment operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeploymentOutput
2016-01-29 20:53:56 +01:00
type StopDeploymentOutput struct {
_ struct { } ` type:"structure" `
// The status of the stop deployment operation:
//
2016-11-19 19:41:01 +01:00
// * Pending: The stop operation is pending.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * Succeeded: The stop operation was successful.
2016-01-29 20:53:56 +01:00
Status * string ` locationName:"status" type:"string" enum:"StopStatus" `
// An accompanying status message.
StatusMessage * string ` locationName:"statusMessage" type:"string" `
}
// String returns the string representation
func ( s StopDeploymentOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s StopDeploymentOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetStatus sets the Status field's value.
func ( s * StopDeploymentOutput ) SetStatus ( v string ) * StopDeploymentOutput {
s . Status = & v
return s
}
// SetStatusMessage sets the StatusMessage field's value.
func ( s * StopDeploymentOutput ) SetStatusMessage ( v string ) * StopDeploymentOutput {
s . StatusMessage = & v
return s
}
2016-01-29 20:53:56 +01:00
// Information about a tag.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/Tag
2016-01-29 20:53:56 +01:00
type Tag struct {
_ struct { } ` type:"structure" `
// The tag's key.
Key * string ` type:"string" `
// The tag's value.
Value * string ` type:"string" `
}
// String returns the string representation
func ( s Tag ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s Tag ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetKey sets the Key field's value.
func ( s * Tag ) SetKey ( v string ) * Tag {
s . Key = & v
return s
}
// SetValue sets the Value field's value.
func ( s * Tag ) SetValue ( v string ) * Tag {
s . Value = & v
return s
}
2016-01-29 20:53:56 +01:00
// Information about an on-premises instance tag filter.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TagFilter
2016-01-29 20:53:56 +01:00
type TagFilter struct {
_ struct { } ` type:"structure" `
// The on-premises instance tag filter key.
Key * string ` type:"string" `
// The on-premises instance tag filter type:
//
2016-11-19 19:41:01 +01:00
// * KEY_ONLY: Key only.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * VALUE_ONLY: Value only.
2016-09-21 09:50:22 +02:00
//
2016-11-19 19:41:01 +01:00
// * KEY_AND_VALUE: Key and value.
2016-01-29 20:53:56 +01:00
Type * string ` type:"string" enum:"TagFilterType" `
// The on-premises instance tag filter value.
Value * string ` type:"string" `
}
// String returns the string representation
func ( s TagFilter ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s TagFilter ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetKey sets the Key field's value.
func ( s * TagFilter ) SetKey ( v string ) * TagFilter {
s . Key = & v
return s
}
// SetType sets the Type field's value.
func ( s * TagFilter ) SetType ( v string ) * TagFilter {
s . Type = & v
return s
}
// SetValue sets the Value field's value.
func ( s * TagFilter ) SetValue ( v string ) * TagFilter {
s . Value = & v
return s
}
2017-01-30 15:18:29 +01:00
// Information about the instances to be used in the replacement environment
// in a blue/green deployment.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TargetInstances
type TargetInstances struct {
_ struct { } ` type:"structure" `
// The names of one or more Auto Scaling groups to identify a replacement environment
// for a blue/green deployment.
AutoScalingGroups [ ] * string ` locationName:"autoScalingGroups" type:"list" `
// The tag filter key, type, and value used to identify Amazon EC2 instances
// in a replacement environment for a blue/green deployment.
TagFilters [ ] * EC2TagFilter ` locationName:"tagFilters" type:"list" `
}
// String returns the string representation
func ( s TargetInstances ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s TargetInstances ) GoString ( ) string {
return s . String ( )
}
// SetAutoScalingGroups sets the AutoScalingGroups field's value.
func ( s * TargetInstances ) SetAutoScalingGroups ( v [ ] * string ) * TargetInstances {
s . AutoScalingGroups = v
return s
}
// SetTagFilters sets the TagFilters field's value.
func ( s * TargetInstances ) SetTagFilters ( v [ ] * EC2TagFilter ) * TargetInstances {
s . TagFilters = v
return s
}
2016-01-29 20:53:56 +01:00
// Information about a time range.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TimeRange
2016-01-29 20:53:56 +01:00
type TimeRange struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The end time of the time range.
2016-01-29 20:53:56 +01:00
//
2016-11-19 19:41:01 +01:00
// Specify null to leave the end time open-ended.
2016-01-29 20:53:56 +01:00
End * time . Time ` locationName:"end" type:"timestamp" timestampFormat:"unix" `
2016-03-18 20:35:09 +01:00
// The start time of the time range.
2016-01-29 20:53:56 +01:00
//
2016-11-19 19:41:01 +01:00
// Specify null to leave the start time open-ended.
2016-01-29 20:53:56 +01:00
Start * time . Time ` locationName:"start" type:"timestamp" timestampFormat:"unix" `
}
// String returns the string representation
func ( s TimeRange ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s TimeRange ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetEnd sets the End field's value.
func ( s * TimeRange ) SetEnd ( v time . Time ) * TimeRange {
s . End = & v
return s
}
// SetStart sets the Start field's value.
func ( s * TimeRange ) SetStart ( v time . Time ) * TimeRange {
s . Start = & v
return s
}
2016-03-11 01:27:37 +01:00
// Information about notification triggers for the deployment group.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TriggerConfig
2016-03-11 01:27:37 +01:00
type TriggerConfig struct {
_ struct { } ` type:"structure" `
// The event type or types for which notifications are triggered.
TriggerEvents [ ] * string ` locationName:"triggerEvents" type:"list" `
// The name of the notification trigger.
TriggerName * string ` locationName:"triggerName" type:"string" `
2016-03-18 20:35:09 +01:00
// The ARN of the Amazon Simple Notification Service topic through which notifications
2016-03-11 01:27:37 +01:00
// about deployment or instance events are sent.
TriggerTargetArn * string ` locationName:"triggerTargetArn" type:"string" `
}
// String returns the string representation
func ( s TriggerConfig ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s TriggerConfig ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetTriggerEvents sets the TriggerEvents field's value.
func ( s * TriggerConfig ) SetTriggerEvents ( v [ ] * string ) * TriggerConfig {
s . TriggerEvents = v
return s
}
// SetTriggerName sets the TriggerName field's value.
func ( s * TriggerConfig ) SetTriggerName ( v string ) * TriggerConfig {
s . TriggerName = & v
return s
}
// SetTriggerTargetArn sets the TriggerTargetArn field's value.
func ( s * TriggerConfig ) SetTriggerTargetArn ( v string ) * TriggerConfig {
s . TriggerTargetArn = & v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the input of an update application operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplicationInput
2016-01-29 20:53:56 +01:00
type UpdateApplicationInput struct {
_ struct { } ` type:"structure" `
2016-03-18 20:35:09 +01:00
// The current name of the application you want to change.
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" `
2016-03-18 20:35:09 +01:00
// The new name to give the application.
2016-01-29 20:53:56 +01:00
NewApplicationName * string ` locationName:"newApplicationName" min:"1" type:"string" `
}
// String returns the string representation
func ( s UpdateApplicationInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateApplicationInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateApplicationInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateApplicationInput" }
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if s . NewApplicationName != nil && len ( * s . NewApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "NewApplicationName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetApplicationName sets the ApplicationName field's value.
func ( s * UpdateApplicationInput ) SetApplicationName ( v string ) * UpdateApplicationInput {
s . ApplicationName = & v
return s
}
// SetNewApplicationName sets the NewApplicationName field's value.
func ( s * UpdateApplicationInput ) SetNewApplicationName ( v string ) * UpdateApplicationInput {
s . NewApplicationName = & v
return s
}
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplicationOutput
2016-01-29 20:53:56 +01:00
type UpdateApplicationOutput struct {
_ struct { } ` type:"structure" `
}
// String returns the string representation
func ( s UpdateApplicationOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateApplicationOutput ) GoString ( ) string {
return s . String ( )
}
// Represents the input of an update deployment group operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroupInput
2016-01-29 20:53:56 +01:00
type UpdateDeploymentGroupInput struct {
_ struct { } ` type:"structure" `
2016-09-21 09:50:22 +02:00
// Information to add or change about Amazon CloudWatch alarms when the deployment
// group is updated.
AlarmConfiguration * AlarmConfiguration ` locationName:"alarmConfiguration" type:"structure" `
2016-01-29 20:53:56 +01:00
// The application name corresponding to the deployment group to update.
2016-10-17 23:21:08 +02:00
//
// ApplicationName is a required field
2016-01-29 20:53:56 +01:00
ApplicationName * string ` locationName:"applicationName" min:"1" type:"string" required:"true" `
2016-09-21 09:50:22 +02:00
// Information for an automatic rollback configuration that is added or changed
// when a deployment group is updated.
AutoRollbackConfiguration * AutoRollbackConfiguration ` locationName:"autoRollbackConfiguration" type:"structure" `
2016-01-29 20:53:56 +01:00
// The replacement list of Auto Scaling groups to be included in the deployment
2016-03-18 20:35:09 +01:00
// group, if you want to change them. To keep the Auto Scaling groups, enter
// their names. To remove Auto Scaling groups, do not enter any Auto Scaling
2016-03-11 01:27:37 +01:00
// group names.
2016-01-29 20:53:56 +01:00
AutoScalingGroups [ ] * string ` locationName:"autoScalingGroups" type:"list" `
2017-01-30 15:18:29 +01:00
// Information about blue/green deployment options for a deployment group.
BlueGreenDeploymentConfiguration * BlueGreenDeploymentConfiguration ` locationName:"blueGreenDeploymentConfiguration" type:"structure" `
2016-03-18 20:35:09 +01:00
// The current name of the deployment group.
2016-10-17 23:21:08 +02:00
//
// CurrentDeploymentGroupName is a required field
2016-01-29 20:53:56 +01:00
CurrentDeploymentGroupName * string ` locationName:"currentDeploymentGroupName" min:"1" type:"string" required:"true" `
// The replacement deployment configuration name to use, if you want to change
// it.
DeploymentConfigName * string ` locationName:"deploymentConfigName" min:"1" type:"string" `
2017-01-30 15:18:29 +01:00
// Information about the type of deployment, either standard or blue/green,
// you want to run and whether to route deployment traffic behind a load balancer.
DeploymentStyle * DeploymentStyle ` locationName:"deploymentStyle" type:"structure" `
2016-03-18 20:35:09 +01:00
// The replacement set of Amazon EC2 tags on which to filter, if you want to
// change them. To keep the existing tags, enter their names. To remove tags,
// do not enter any tag names.
2016-01-29 20:53:56 +01:00
Ec2TagFilters [ ] * EC2TagFilter ` locationName:"ec2TagFilters" type:"list" `
2017-01-30 15:18:29 +01:00
// Information about the load balancer used in a blue/green deployment.
LoadBalancerInfo * LoadBalancerInfo ` locationName:"loadBalancerInfo" type:"structure" `
2016-01-29 20:53:56 +01:00
// The new name of the deployment group, if you want to change it.
NewDeploymentGroupName * string ` locationName:"newDeploymentGroupName" min:"1" type:"string" `
2016-03-18 20:35:09 +01:00
// The replacement set of on-premises instance tags on which to filter, if you
// want to change them. To keep the existing tags, enter their names. To remove
// tags, do not enter any tag names.
2016-01-29 20:53:56 +01:00
OnPremisesInstanceTagFilters [ ] * TagFilter ` locationName:"onPremisesInstanceTagFilters" type:"list" `
2016-03-18 20:35:09 +01:00
// A replacement ARN for the service role, if you want to change it.
2016-01-29 20:53:56 +01:00
ServiceRoleArn * string ` locationName:"serviceRoleArn" type:"string" `
2016-03-11 01:27:37 +01:00
// Information about triggers to change when the deployment group is updated.
2016-09-21 09:50:22 +02:00
// For examples, see Modify Triggers in an AWS CodeDeploy Deployment Group (http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-edit.html)
// in the AWS CodeDeploy User Guide.
2016-03-11 01:27:37 +01:00
TriggerConfigurations [ ] * TriggerConfig ` locationName:"triggerConfigurations" type:"list" `
2016-01-29 20:53:56 +01:00
}
// String returns the string representation
func ( s UpdateDeploymentGroupInput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateDeploymentGroupInput ) GoString ( ) string {
return s . String ( )
}
2016-05-05 03:06:27 +02:00
// Validate inspects the fields of the type to determine if they are valid.
func ( s * UpdateDeploymentGroupInput ) Validate ( ) error {
invalidParams := request . ErrInvalidParams { Context : "UpdateDeploymentGroupInput" }
if s . ApplicationName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "ApplicationName" ) )
}
if s . ApplicationName != nil && len ( * s . ApplicationName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "ApplicationName" , 1 ) )
}
if s . CurrentDeploymentGroupName == nil {
invalidParams . Add ( request . NewErrParamRequired ( "CurrentDeploymentGroupName" ) )
}
if s . CurrentDeploymentGroupName != nil && len ( * s . CurrentDeploymentGroupName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "CurrentDeploymentGroupName" , 1 ) )
}
if s . DeploymentConfigName != nil && len ( * s . DeploymentConfigName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "DeploymentConfigName" , 1 ) )
}
if s . NewDeploymentGroupName != nil && len ( * s . NewDeploymentGroupName ) < 1 {
invalidParams . Add ( request . NewErrParamMinLen ( "NewDeploymentGroupName" , 1 ) )
}
if invalidParams . Len ( ) > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetAlarmConfiguration sets the AlarmConfiguration field's value.
func ( s * UpdateDeploymentGroupInput ) SetAlarmConfiguration ( v * AlarmConfiguration ) * UpdateDeploymentGroupInput {
s . AlarmConfiguration = v
return s
}
// SetApplicationName sets the ApplicationName field's value.
func ( s * UpdateDeploymentGroupInput ) SetApplicationName ( v string ) * UpdateDeploymentGroupInput {
s . ApplicationName = & v
return s
}
// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value.
func ( s * UpdateDeploymentGroupInput ) SetAutoRollbackConfiguration ( v * AutoRollbackConfiguration ) * UpdateDeploymentGroupInput {
s . AutoRollbackConfiguration = v
return s
}
// SetAutoScalingGroups sets the AutoScalingGroups field's value.
func ( s * UpdateDeploymentGroupInput ) SetAutoScalingGroups ( v [ ] * string ) * UpdateDeploymentGroupInput {
s . AutoScalingGroups = v
return s
}
2017-01-30 15:18:29 +01:00
// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value.
func ( s * UpdateDeploymentGroupInput ) SetBlueGreenDeploymentConfiguration ( v * BlueGreenDeploymentConfiguration ) * UpdateDeploymentGroupInput {
s . BlueGreenDeploymentConfiguration = v
return s
}
2016-11-19 19:41:01 +01:00
// SetCurrentDeploymentGroupName sets the CurrentDeploymentGroupName field's value.
func ( s * UpdateDeploymentGroupInput ) SetCurrentDeploymentGroupName ( v string ) * UpdateDeploymentGroupInput {
s . CurrentDeploymentGroupName = & v
return s
}
// SetDeploymentConfigName sets the DeploymentConfigName field's value.
func ( s * UpdateDeploymentGroupInput ) SetDeploymentConfigName ( v string ) * UpdateDeploymentGroupInput {
s . DeploymentConfigName = & v
return s
}
2017-01-30 15:18:29 +01:00
// SetDeploymentStyle sets the DeploymentStyle field's value.
func ( s * UpdateDeploymentGroupInput ) SetDeploymentStyle ( v * DeploymentStyle ) * UpdateDeploymentGroupInput {
s . DeploymentStyle = v
return s
}
2016-11-19 19:41:01 +01:00
// SetEc2TagFilters sets the Ec2TagFilters field's value.
func ( s * UpdateDeploymentGroupInput ) SetEc2TagFilters ( v [ ] * EC2TagFilter ) * UpdateDeploymentGroupInput {
s . Ec2TagFilters = v
return s
}
2017-01-30 15:18:29 +01:00
// SetLoadBalancerInfo sets the LoadBalancerInfo field's value.
func ( s * UpdateDeploymentGroupInput ) SetLoadBalancerInfo ( v * LoadBalancerInfo ) * UpdateDeploymentGroupInput {
s . LoadBalancerInfo = v
return s
}
2016-11-19 19:41:01 +01:00
// SetNewDeploymentGroupName sets the NewDeploymentGroupName field's value.
func ( s * UpdateDeploymentGroupInput ) SetNewDeploymentGroupName ( v string ) * UpdateDeploymentGroupInput {
s . NewDeploymentGroupName = & v
return s
}
// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value.
func ( s * UpdateDeploymentGroupInput ) SetOnPremisesInstanceTagFilters ( v [ ] * TagFilter ) * UpdateDeploymentGroupInput {
s . OnPremisesInstanceTagFilters = v
return s
}
// SetServiceRoleArn sets the ServiceRoleArn field's value.
func ( s * UpdateDeploymentGroupInput ) SetServiceRoleArn ( v string ) * UpdateDeploymentGroupInput {
s . ServiceRoleArn = & v
return s
}
// SetTriggerConfigurations sets the TriggerConfigurations field's value.
func ( s * UpdateDeploymentGroupInput ) SetTriggerConfigurations ( v [ ] * TriggerConfig ) * UpdateDeploymentGroupInput {
s . TriggerConfigurations = v
return s
}
2016-01-29 20:53:56 +01:00
// Represents the output of an update deployment group operation.
2017-01-02 21:35:31 +01:00
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroupOutput
2016-01-29 20:53:56 +01:00
type UpdateDeploymentGroupOutput struct {
_ struct { } ` type:"structure" `
// If the output contains no data, and the corresponding deployment group contained
// at least one Auto Scaling group, AWS CodeDeploy successfully removed all
// corresponding Auto Scaling lifecycle event hooks from the AWS account. If
2016-03-18 20:35:09 +01:00
// the output contains data, AWS CodeDeploy could not remove some Auto Scaling
2016-01-29 20:53:56 +01:00
// lifecycle event hooks from the AWS account.
HooksNotCleanedUp [ ] * AutoScalingGroup ` locationName:"hooksNotCleanedUp" type:"list" `
}
// String returns the string representation
func ( s UpdateDeploymentGroupOutput ) String ( ) string {
return awsutil . Prettify ( s )
}
// GoString returns the string representation
func ( s UpdateDeploymentGroupOutput ) GoString ( ) string {
return s . String ( )
}
2016-11-19 19:41:01 +01:00
// SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value.
func ( s * UpdateDeploymentGroupOutput ) SetHooksNotCleanedUp ( v [ ] * AutoScalingGroup ) * UpdateDeploymentGroupOutput {
s . HooksNotCleanedUp = v
return s
}
2016-01-29 20:53:56 +01:00
const (
2016-10-17 23:21:08 +02:00
// ApplicationRevisionSortByRegisterTime is a ApplicationRevisionSortBy enum value
2016-01-29 20:53:56 +01:00
ApplicationRevisionSortByRegisterTime = "registerTime"
2016-10-17 23:21:08 +02:00
// ApplicationRevisionSortByFirstUsedTime is a ApplicationRevisionSortBy enum value
2016-01-29 20:53:56 +01:00
ApplicationRevisionSortByFirstUsedTime = "firstUsedTime"
2016-10-17 23:21:08 +02:00
// ApplicationRevisionSortByLastUsedTime is a ApplicationRevisionSortBy enum value
2016-01-29 20:53:56 +01:00
ApplicationRevisionSortByLastUsedTime = "lastUsedTime"
)
2016-09-21 09:50:22 +02:00
const (
2016-10-17 23:21:08 +02:00
// AutoRollbackEventDeploymentFailure is a AutoRollbackEvent enum value
2016-09-21 09:50:22 +02:00
AutoRollbackEventDeploymentFailure = "DEPLOYMENT_FAILURE"
2016-10-17 23:21:08 +02:00
// AutoRollbackEventDeploymentStopOnAlarm is a AutoRollbackEvent enum value
2016-09-21 09:50:22 +02:00
AutoRollbackEventDeploymentStopOnAlarm = "DEPLOYMENT_STOP_ON_ALARM"
2016-10-17 23:21:08 +02:00
// AutoRollbackEventDeploymentStopOnRequest is a AutoRollbackEvent enum value
2016-09-21 09:50:22 +02:00
AutoRollbackEventDeploymentStopOnRequest = "DEPLOYMENT_STOP_ON_REQUEST"
)
2016-01-29 20:53:56 +01:00
const (
2016-10-17 23:21:08 +02:00
// BundleTypeTar is a BundleType enum value
2016-01-29 20:53:56 +01:00
BundleTypeTar = "tar"
2016-10-17 23:21:08 +02:00
// BundleTypeTgz is a BundleType enum value
2016-01-29 20:53:56 +01:00
BundleTypeTgz = "tgz"
2016-10-17 23:21:08 +02:00
// BundleTypeZip is a BundleType enum value
2016-01-29 20:53:56 +01:00
BundleTypeZip = "zip"
)
const (
2016-10-17 23:21:08 +02:00
// DeploymentCreatorUser is a DeploymentCreator enum value
2016-01-29 20:53:56 +01:00
DeploymentCreatorUser = "user"
2016-10-17 23:21:08 +02:00
// DeploymentCreatorAutoscaling is a DeploymentCreator enum value
2016-01-29 20:53:56 +01:00
DeploymentCreatorAutoscaling = "autoscaling"
2016-10-17 23:21:08 +02:00
// DeploymentCreatorCodeDeployRollback is a DeploymentCreator enum value
2016-09-21 09:50:22 +02:00
DeploymentCreatorCodeDeployRollback = "codeDeployRollback"
2016-01-29 20:53:56 +01:00
)
2017-01-30 15:18:29 +01:00
const (
// DeploymentOptionWithTrafficControl is a DeploymentOption enum value
DeploymentOptionWithTrafficControl = "WITH_TRAFFIC_CONTROL"
// DeploymentOptionWithoutTrafficControl is a DeploymentOption enum value
DeploymentOptionWithoutTrafficControl = "WITHOUT_TRAFFIC_CONTROL"
)
const (
// DeploymentReadyActionContinueDeployment is a DeploymentReadyAction enum value
DeploymentReadyActionContinueDeployment = "CONTINUE_DEPLOYMENT"
// DeploymentReadyActionStopDeployment is a DeploymentReadyAction enum value
DeploymentReadyActionStopDeployment = "STOP_DEPLOYMENT"
)
2016-01-29 20:53:56 +01:00
const (
2016-10-17 23:21:08 +02:00
// DeploymentStatusCreated is a DeploymentStatus enum value
2016-01-29 20:53:56 +01:00
DeploymentStatusCreated = "Created"
2016-10-17 23:21:08 +02:00
// DeploymentStatusQueued is a DeploymentStatus enum value
2016-01-29 20:53:56 +01:00
DeploymentStatusQueued = "Queued"
2016-10-17 23:21:08 +02:00
// DeploymentStatusInProgress is a DeploymentStatus enum value
2016-01-29 20:53:56 +01:00
DeploymentStatusInProgress = "InProgress"
2016-10-17 23:21:08 +02:00
// DeploymentStatusSucceeded is a DeploymentStatus enum value
2016-01-29 20:53:56 +01:00
DeploymentStatusSucceeded = "Succeeded"
2016-10-17 23:21:08 +02:00
// DeploymentStatusFailed is a DeploymentStatus enum value
2016-01-29 20:53:56 +01:00
DeploymentStatusFailed = "Failed"
2016-10-17 23:21:08 +02:00
// DeploymentStatusStopped is a DeploymentStatus enum value
2016-01-29 20:53:56 +01:00
DeploymentStatusStopped = "Stopped"
2017-01-30 15:18:29 +01:00
// DeploymentStatusReady is a DeploymentStatus enum value
DeploymentStatusReady = "Ready"
)
const (
// DeploymentTypeInPlace is a DeploymentType enum value
DeploymentTypeInPlace = "IN_PLACE"
// DeploymentTypeBlueGreen is a DeploymentType enum value
DeploymentTypeBlueGreen = "BLUE_GREEN"
2016-01-29 20:53:56 +01:00
)
const (
2016-10-17 23:21:08 +02:00
// EC2TagFilterTypeKeyOnly is a EC2TagFilterType enum value
2016-01-29 20:53:56 +01:00
EC2TagFilterTypeKeyOnly = "KEY_ONLY"
2016-10-17 23:21:08 +02:00
// EC2TagFilterTypeValueOnly is a EC2TagFilterType enum value
2016-01-29 20:53:56 +01:00
EC2TagFilterTypeValueOnly = "VALUE_ONLY"
2016-10-17 23:21:08 +02:00
// EC2TagFilterTypeKeyAndValue is a EC2TagFilterType enum value
2016-01-29 20:53:56 +01:00
EC2TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
)
const (
2016-10-17 23:21:08 +02:00
// ErrorCodeDeploymentGroupMissing is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeDeploymentGroupMissing = "DEPLOYMENT_GROUP_MISSING"
2016-10-17 23:21:08 +02:00
// ErrorCodeApplicationMissing is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeApplicationMissing = "APPLICATION_MISSING"
2016-10-17 23:21:08 +02:00
// ErrorCodeRevisionMissing is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeRevisionMissing = "REVISION_MISSING"
2016-10-17 23:21:08 +02:00
// ErrorCodeIamRoleMissing is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeIamRoleMissing = "IAM_ROLE_MISSING"
2016-10-17 23:21:08 +02:00
// ErrorCodeIamRolePermissions is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeIamRolePermissions = "IAM_ROLE_PERMISSIONS"
2016-10-17 23:21:08 +02:00
// ErrorCodeNoEc2Subscription is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeNoEc2Subscription = "NO_EC2_SUBSCRIPTION"
2016-10-17 23:21:08 +02:00
// ErrorCodeOverMaxInstances is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeOverMaxInstances = "OVER_MAX_INSTANCES"
2016-10-17 23:21:08 +02:00
// ErrorCodeNoInstances is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeNoInstances = "NO_INSTANCES"
2016-10-17 23:21:08 +02:00
// ErrorCodeTimeout is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeTimeout = "TIMEOUT"
2016-10-17 23:21:08 +02:00
// ErrorCodeHealthConstraintsInvalid is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeHealthConstraintsInvalid = "HEALTH_CONSTRAINTS_INVALID"
2016-10-17 23:21:08 +02:00
// ErrorCodeHealthConstraints is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeHealthConstraints = "HEALTH_CONSTRAINTS"
2016-10-17 23:21:08 +02:00
// ErrorCodeInternalError is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeInternalError = "INTERNAL_ERROR"
2016-10-17 23:21:08 +02:00
// ErrorCodeThrottled is a ErrorCode enum value
2016-01-29 20:53:56 +01:00
ErrorCodeThrottled = "THROTTLED"
2016-10-17 23:21:08 +02:00
// ErrorCodeAlarmActive is a ErrorCode enum value
2016-09-21 09:50:22 +02:00
ErrorCodeAlarmActive = "ALARM_ACTIVE"
2016-10-17 23:21:08 +02:00
// ErrorCodeAgentIssue is a ErrorCode enum value
2016-09-21 09:50:22 +02:00
ErrorCodeAgentIssue = "AGENT_ISSUE"
2016-10-17 23:21:08 +02:00
// ErrorCodeAutoScalingIamRolePermissions is a ErrorCode enum value
2016-09-21 09:50:22 +02:00
ErrorCodeAutoScalingIamRolePermissions = "AUTO_SCALING_IAM_ROLE_PERMISSIONS"
2016-10-17 23:21:08 +02:00
// ErrorCodeAutoScalingConfiguration is a ErrorCode enum value
2016-09-21 09:50:22 +02:00
ErrorCodeAutoScalingConfiguration = "AUTO_SCALING_CONFIGURATION"
2016-10-17 23:21:08 +02:00
// ErrorCodeManualStop is a ErrorCode enum value
2016-09-21 09:50:22 +02:00
ErrorCodeManualStop = "MANUAL_STOP"
2016-01-29 20:53:56 +01:00
)
2017-01-30 15:18:29 +01:00
const (
// GreenFleetProvisioningActionDiscoverExisting is a GreenFleetProvisioningAction enum value
GreenFleetProvisioningActionDiscoverExisting = "DISCOVER_EXISTING"
// GreenFleetProvisioningActionCopyAutoScalingGroup is a GreenFleetProvisioningAction enum value
GreenFleetProvisioningActionCopyAutoScalingGroup = "COPY_AUTO_SCALING_GROUP"
)
const (
// InstanceActionTerminate is a InstanceAction enum value
InstanceActionTerminate = "TERMINATE"
// InstanceActionKeepAlive is a InstanceAction enum value
InstanceActionKeepAlive = "KEEP_ALIVE"
)
2016-01-29 20:53:56 +01:00
const (
2016-10-17 23:21:08 +02:00
// InstanceStatusPending is a InstanceStatus enum value
2016-01-29 20:53:56 +01:00
InstanceStatusPending = "Pending"
2016-10-17 23:21:08 +02:00
// InstanceStatusInProgress is a InstanceStatus enum value
2016-01-29 20:53:56 +01:00
InstanceStatusInProgress = "InProgress"
2016-10-17 23:21:08 +02:00
// InstanceStatusSucceeded is a InstanceStatus enum value
2016-01-29 20:53:56 +01:00
InstanceStatusSucceeded = "Succeeded"
2016-10-17 23:21:08 +02:00
// InstanceStatusFailed is a InstanceStatus enum value
2016-01-29 20:53:56 +01:00
InstanceStatusFailed = "Failed"
2016-10-17 23:21:08 +02:00
// InstanceStatusSkipped is a InstanceStatus enum value
2016-01-29 20:53:56 +01:00
InstanceStatusSkipped = "Skipped"
2016-10-17 23:21:08 +02:00
// InstanceStatusUnknown is a InstanceStatus enum value
2016-01-29 20:53:56 +01:00
InstanceStatusUnknown = "Unknown"
2017-01-30 15:18:29 +01:00
// InstanceStatusReady is a InstanceStatus enum value
InstanceStatusReady = "Ready"
)
const (
// InstanceTypeBlue is a InstanceType enum value
InstanceTypeBlue = "Blue"
// InstanceTypeGreen is a InstanceType enum value
InstanceTypeGreen = "Green"
2016-01-29 20:53:56 +01:00
)
const (
2016-10-17 23:21:08 +02:00
// LifecycleErrorCodeSuccess is a LifecycleErrorCode enum value
2016-01-29 20:53:56 +01:00
LifecycleErrorCodeSuccess = "Success"
2016-10-17 23:21:08 +02:00
// LifecycleErrorCodeScriptMissing is a LifecycleErrorCode enum value
2016-01-29 20:53:56 +01:00
LifecycleErrorCodeScriptMissing = "ScriptMissing"
2016-10-17 23:21:08 +02:00
// LifecycleErrorCodeScriptNotExecutable is a LifecycleErrorCode enum value
2016-01-29 20:53:56 +01:00
LifecycleErrorCodeScriptNotExecutable = "ScriptNotExecutable"
2016-10-17 23:21:08 +02:00
// LifecycleErrorCodeScriptTimedOut is a LifecycleErrorCode enum value
2016-01-29 20:53:56 +01:00
LifecycleErrorCodeScriptTimedOut = "ScriptTimedOut"
2016-10-17 23:21:08 +02:00
// LifecycleErrorCodeScriptFailed is a LifecycleErrorCode enum value
2016-01-29 20:53:56 +01:00
LifecycleErrorCodeScriptFailed = "ScriptFailed"
2016-10-17 23:21:08 +02:00
// LifecycleErrorCodeUnknownError is a LifecycleErrorCode enum value
2016-01-29 20:53:56 +01:00
LifecycleErrorCodeUnknownError = "UnknownError"
)
const (
2016-10-17 23:21:08 +02:00
// LifecycleEventStatusPending is a LifecycleEventStatus enum value
2016-01-29 20:53:56 +01:00
LifecycleEventStatusPending = "Pending"
2016-10-17 23:21:08 +02:00
// LifecycleEventStatusInProgress is a LifecycleEventStatus enum value
2016-01-29 20:53:56 +01:00
LifecycleEventStatusInProgress = "InProgress"
2016-10-17 23:21:08 +02:00
// LifecycleEventStatusSucceeded is a LifecycleEventStatus enum value
2016-01-29 20:53:56 +01:00
LifecycleEventStatusSucceeded = "Succeeded"
2016-10-17 23:21:08 +02:00
// LifecycleEventStatusFailed is a LifecycleEventStatus enum value
2016-01-29 20:53:56 +01:00
LifecycleEventStatusFailed = "Failed"
2016-10-17 23:21:08 +02:00
// LifecycleEventStatusSkipped is a LifecycleEventStatus enum value
2016-01-29 20:53:56 +01:00
LifecycleEventStatusSkipped = "Skipped"
2016-10-17 23:21:08 +02:00
// LifecycleEventStatusUnknown is a LifecycleEventStatus enum value
2016-01-29 20:53:56 +01:00
LifecycleEventStatusUnknown = "Unknown"
)
const (
2016-10-17 23:21:08 +02:00
// ListStateFilterActionInclude is a ListStateFilterAction enum value
2016-01-29 20:53:56 +01:00
ListStateFilterActionInclude = "include"
2016-10-17 23:21:08 +02:00
// ListStateFilterActionExclude is a ListStateFilterAction enum value
2016-01-29 20:53:56 +01:00
ListStateFilterActionExclude = "exclude"
2016-10-17 23:21:08 +02:00
// ListStateFilterActionIgnore is a ListStateFilterAction enum value
2016-01-29 20:53:56 +01:00
ListStateFilterActionIgnore = "ignore"
)
const (
2016-10-17 23:21:08 +02:00
// MinimumHealthyHostsTypeHostCount is a MinimumHealthyHostsType enum value
2016-01-29 20:53:56 +01:00
MinimumHealthyHostsTypeHostCount = "HOST_COUNT"
2016-10-17 23:21:08 +02:00
// MinimumHealthyHostsTypeFleetPercent is a MinimumHealthyHostsType enum value
2016-01-29 20:53:56 +01:00
MinimumHealthyHostsTypeFleetPercent = "FLEET_PERCENT"
)
const (
2016-10-17 23:21:08 +02:00
// RegistrationStatusRegistered is a RegistrationStatus enum value
2016-01-29 20:53:56 +01:00
RegistrationStatusRegistered = "Registered"
2016-10-17 23:21:08 +02:00
// RegistrationStatusDeregistered is a RegistrationStatus enum value
2016-01-29 20:53:56 +01:00
RegistrationStatusDeregistered = "Deregistered"
)
const (
2016-10-17 23:21:08 +02:00
// RevisionLocationTypeS3 is a RevisionLocationType enum value
2016-01-29 20:53:56 +01:00
RevisionLocationTypeS3 = "S3"
2016-10-17 23:21:08 +02:00
// RevisionLocationTypeGitHub is a RevisionLocationType enum value
2016-01-29 20:53:56 +01:00
RevisionLocationTypeGitHub = "GitHub"
)
const (
2016-10-17 23:21:08 +02:00
// SortOrderAscending is a SortOrder enum value
2016-01-29 20:53:56 +01:00
SortOrderAscending = "ascending"
2016-10-17 23:21:08 +02:00
// SortOrderDescending is a SortOrder enum value
2016-01-29 20:53:56 +01:00
SortOrderDescending = "descending"
)
const (
2016-10-17 23:21:08 +02:00
// StopStatusPending is a StopStatus enum value
2016-01-29 20:53:56 +01:00
StopStatusPending = "Pending"
2016-10-17 23:21:08 +02:00
// StopStatusSucceeded is a StopStatus enum value
2016-01-29 20:53:56 +01:00
StopStatusSucceeded = "Succeeded"
)
const (
2016-10-17 23:21:08 +02:00
// TagFilterTypeKeyOnly is a TagFilterType enum value
2016-01-29 20:53:56 +01:00
TagFilterTypeKeyOnly = "KEY_ONLY"
2016-10-17 23:21:08 +02:00
// TagFilterTypeValueOnly is a TagFilterType enum value
2016-01-29 20:53:56 +01:00
TagFilterTypeValueOnly = "VALUE_ONLY"
2016-10-17 23:21:08 +02:00
// TagFilterTypeKeyAndValue is a TagFilterType enum value
2016-01-29 20:53:56 +01:00
TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
)
2016-03-11 01:27:37 +01:00
const (
2016-10-17 23:21:08 +02:00
// TriggerEventTypeDeploymentStart is a TriggerEventType enum value
2016-03-11 01:27:37 +01:00
TriggerEventTypeDeploymentStart = "DeploymentStart"
2016-10-17 23:21:08 +02:00
// TriggerEventTypeDeploymentSuccess is a TriggerEventType enum value
2016-03-11 01:27:37 +01:00
TriggerEventTypeDeploymentSuccess = "DeploymentSuccess"
2016-10-17 23:21:08 +02:00
// TriggerEventTypeDeploymentFailure is a TriggerEventType enum value
2016-03-11 01:27:37 +01:00
TriggerEventTypeDeploymentFailure = "DeploymentFailure"
2016-10-17 23:21:08 +02:00
// TriggerEventTypeDeploymentStop is a TriggerEventType enum value
2016-03-11 01:27:37 +01:00
TriggerEventTypeDeploymentStop = "DeploymentStop"
2016-10-17 23:21:08 +02:00
// TriggerEventTypeDeploymentRollback is a TriggerEventType enum value
2016-09-21 09:50:22 +02:00
TriggerEventTypeDeploymentRollback = "DeploymentRollback"
2016-10-17 23:21:08 +02:00
2017-01-30 15:18:29 +01:00
// TriggerEventTypeDeploymentReady is a TriggerEventType enum value
TriggerEventTypeDeploymentReady = "DeploymentReady"
2016-10-17 23:21:08 +02:00
// TriggerEventTypeInstanceStart is a TriggerEventType enum value
2016-03-11 01:27:37 +01:00
TriggerEventTypeInstanceStart = "InstanceStart"
2016-10-17 23:21:08 +02:00
// TriggerEventTypeInstanceSuccess is a TriggerEventType enum value
2016-03-11 01:27:37 +01:00
TriggerEventTypeInstanceSuccess = "InstanceSuccess"
2016-10-17 23:21:08 +02:00
// TriggerEventTypeInstanceFailure is a TriggerEventType enum value
2016-03-11 01:27:37 +01:00
TriggerEventTypeInstanceFailure = "InstanceFailure"
2017-01-30 15:18:29 +01:00
// TriggerEventTypeInstanceReady is a TriggerEventType enum value
TriggerEventTypeInstanceReady = "InstanceReady"
2016-03-11 01:27:37 +01:00
)