codedeploy

package
v1.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2016 License: Apache-2.0 Imports: 10 Imported by: 278

Documentation

Overview

Package codedeploy provides a client for AWS CodeDeploy.

Index

Examples

Constants

View Source
const (
	// @enum ApplicationRevisionSortBy
	ApplicationRevisionSortByRegisterTime = "registerTime"
	// @enum ApplicationRevisionSortBy
	ApplicationRevisionSortByFirstUsedTime = "firstUsedTime"
	// @enum ApplicationRevisionSortBy
	ApplicationRevisionSortByLastUsedTime = "lastUsedTime"
)
View Source
const (
	// @enum BundleType
	BundleTypeTar = "tar"
	// @enum BundleType
	BundleTypeTgz = "tgz"
	// @enum BundleType
	BundleTypeZip = "zip"
)
View Source
const (
	// @enum DeploymentCreator
	DeploymentCreatorUser = "user"
	// @enum DeploymentCreator
	DeploymentCreatorAutoscaling = "autoscaling"
)
View Source
const (
	// @enum DeploymentStatus
	DeploymentStatusCreated = "Created"
	// @enum DeploymentStatus
	DeploymentStatusQueued = "Queued"
	// @enum DeploymentStatus
	DeploymentStatusInProgress = "InProgress"
	// @enum DeploymentStatus
	DeploymentStatusSucceeded = "Succeeded"
	// @enum DeploymentStatus
	DeploymentStatusFailed = "Failed"
	// @enum DeploymentStatus
	DeploymentStatusStopped = "Stopped"
)
View Source
const (
	// @enum EC2TagFilterType
	EC2TagFilterTypeKeyOnly = "KEY_ONLY"
	// @enum EC2TagFilterType
	EC2TagFilterTypeValueOnly = "VALUE_ONLY"
	// @enum EC2TagFilterType
	EC2TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
)
View Source
const (
	// @enum ErrorCode
	ErrorCodeDeploymentGroupMissing = "DEPLOYMENT_GROUP_MISSING"
	// @enum ErrorCode
	ErrorCodeApplicationMissing = "APPLICATION_MISSING"
	// @enum ErrorCode
	ErrorCodeRevisionMissing = "REVISION_MISSING"
	// @enum ErrorCode
	ErrorCodeIamRoleMissing = "IAM_ROLE_MISSING"
	// @enum ErrorCode
	ErrorCodeIamRolePermissions = "IAM_ROLE_PERMISSIONS"
	// @enum ErrorCode
	ErrorCodeNoEc2Subscription = "NO_EC2_SUBSCRIPTION"
	// @enum ErrorCode
	ErrorCodeOverMaxInstances = "OVER_MAX_INSTANCES"
	// @enum ErrorCode
	ErrorCodeNoInstances = "NO_INSTANCES"
	// @enum ErrorCode
	ErrorCodeTimeout = "TIMEOUT"
	// @enum ErrorCode
	ErrorCodeHealthConstraintsInvalid = "HEALTH_CONSTRAINTS_INVALID"
	// @enum ErrorCode
	ErrorCodeHealthConstraints = "HEALTH_CONSTRAINTS"
	// @enum ErrorCode
	ErrorCodeInternalError = "INTERNAL_ERROR"
	// @enum ErrorCode
	ErrorCodeThrottled = "THROTTLED"
)
View Source
const (
	// @enum InstanceStatus
	InstanceStatusPending = "Pending"
	// @enum InstanceStatus
	InstanceStatusInProgress = "InProgress"
	// @enum InstanceStatus
	InstanceStatusSucceeded = "Succeeded"
	// @enum InstanceStatus
	InstanceStatusFailed = "Failed"
	// @enum InstanceStatus
	InstanceStatusSkipped = "Skipped"
	// @enum InstanceStatus
	InstanceStatusUnknown = "Unknown"
)
View Source
const (
	// @enum LifecycleErrorCode
	LifecycleErrorCodeSuccess = "Success"
	// @enum LifecycleErrorCode
	LifecycleErrorCodeScriptMissing = "ScriptMissing"
	// @enum LifecycleErrorCode
	LifecycleErrorCodeScriptNotExecutable = "ScriptNotExecutable"
	// @enum LifecycleErrorCode
	LifecycleErrorCodeScriptTimedOut = "ScriptTimedOut"
	// @enum LifecycleErrorCode
	LifecycleErrorCodeScriptFailed = "ScriptFailed"
	// @enum LifecycleErrorCode
	LifecycleErrorCodeUnknownError = "UnknownError"
)
View Source
const (
	// @enum LifecycleEventStatus
	LifecycleEventStatusPending = "Pending"
	// @enum LifecycleEventStatus
	LifecycleEventStatusInProgress = "InProgress"
	// @enum LifecycleEventStatus
	LifecycleEventStatusSucceeded = "Succeeded"
	// @enum LifecycleEventStatus
	LifecycleEventStatusFailed = "Failed"
	// @enum LifecycleEventStatus
	LifecycleEventStatusSkipped = "Skipped"
	// @enum LifecycleEventStatus
	LifecycleEventStatusUnknown = "Unknown"
)
View Source
const (
	// @enum ListStateFilterAction
	ListStateFilterActionInclude = "include"
	// @enum ListStateFilterAction
	ListStateFilterActionExclude = "exclude"
	// @enum ListStateFilterAction
	ListStateFilterActionIgnore = "ignore"
)
View Source
const (
	// @enum MinimumHealthyHostsType
	MinimumHealthyHostsTypeHostCount = "HOST_COUNT"
	// @enum MinimumHealthyHostsType
	MinimumHealthyHostsTypeFleetPercent = "FLEET_PERCENT"
)
View Source
const (
	// @enum RegistrationStatus
	RegistrationStatusRegistered = "Registered"
	// @enum RegistrationStatus
	RegistrationStatusDeregistered = "Deregistered"
)
View Source
const (
	// @enum RevisionLocationType
	RevisionLocationTypeS3 = "S3"
	// @enum RevisionLocationType
	RevisionLocationTypeGitHub = "GitHub"
)
View Source
const (
	// @enum SortOrder
	SortOrderAscending = "ascending"
	// @enum SortOrder
	SortOrderDescending = "descending"
)
View Source
const (
	// @enum StopStatus
	StopStatusPending = "Pending"
	// @enum StopStatus
	StopStatusSucceeded = "Succeeded"
)
View Source
const (
	// @enum TagFilterType
	TagFilterTypeKeyOnly = "KEY_ONLY"
	// @enum TagFilterType
	TagFilterTypeValueOnly = "VALUE_ONLY"
	// @enum TagFilterType
	TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
)
View Source
const (
	// @enum TriggerEventType
	TriggerEventTypeDeploymentStart = "DeploymentStart"
	// @enum TriggerEventType
	TriggerEventTypeDeploymentSuccess = "DeploymentSuccess"
	// @enum TriggerEventType
	TriggerEventTypeDeploymentFailure = "DeploymentFailure"
	// @enum TriggerEventType
	TriggerEventTypeDeploymentStop = "DeploymentStop"
	// @enum TriggerEventType
	TriggerEventTypeInstanceStart = "InstanceStart"
	// @enum TriggerEventType
	TriggerEventTypeInstanceSuccess = "InstanceSuccess"
	// @enum TriggerEventType
	TriggerEventTypeInstanceFailure = "InstanceFailure"
)
View Source
const ServiceName = "codedeploy"

A ServiceName is the name of the service the client will make API calls to.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTagsToOnPremisesInstancesInput

type AddTagsToOnPremisesInstancesInput struct {

	// The names of the on-premises instances to which to add tags.
	InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"`

	// The tag key-value pairs to add to the on-premises instances.
	//
	// Keys and values are both required. Keys cannot be null or empty strings.
	// Value-only tags are not allowed.
	Tags []*Tag `locationName:"tags" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of, and adds tags to, an on-premises instance operation.

func (AddTagsToOnPremisesInstancesInput) GoString added in v0.6.5

GoString returns the string representation

func (AddTagsToOnPremisesInstancesInput) String added in v0.6.5

String returns the string representation

func (*AddTagsToOnPremisesInstancesInput) Validate added in v1.1.21

Validate inspects the fields of the type to determine if they are valid.

type AddTagsToOnPremisesInstancesOutput

type AddTagsToOnPremisesInstancesOutput struct {
	// contains filtered or unexported fields
}

func (AddTagsToOnPremisesInstancesOutput) GoString added in v0.6.5

GoString returns the string representation

func (AddTagsToOnPremisesInstancesOutput) String added in v0.6.5

String returns the string representation

type ApplicationInfo

type ApplicationInfo struct {

	// The application ID.
	ApplicationId *string `locationName:"applicationId" type:"string"`

	// The application name.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`

	// The time at which the application was created.
	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"`
	// contains filtered or unexported fields
}

Information about an application.

func (ApplicationInfo) GoString added in v0.6.5

func (s ApplicationInfo) GoString() string

GoString returns the string representation

func (ApplicationInfo) String added in v0.6.5

func (s ApplicationInfo) String() string

String returns the string representation

type AutoScalingGroup

type AutoScalingGroup struct {

	// An Auto Scaling lifecycle event hook name.
	Hook *string `locationName:"hook" type:"string"`

	// The Auto Scaling group name.
	Name *string `locationName:"name" type:"string"`
	// contains filtered or unexported fields
}

Information about an Auto Scaling group.

func (AutoScalingGroup) GoString added in v0.6.5

func (s AutoScalingGroup) GoString() string

GoString returns the string representation

func (AutoScalingGroup) String added in v0.6.5

func (s AutoScalingGroup) String() string

String returns the string representation

type BatchGetApplicationRevisionsInput added in v1.1.4

type BatchGetApplicationRevisionsInput struct {

	// The name of an AWS CodeDeploy application about which to get revision information.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`

	// Information to get about the application revisions, including type and location.
	Revisions []*RevisionLocation `locationName:"revisions" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a batch get application revisions operation.

func (BatchGetApplicationRevisionsInput) GoString added in v1.1.4

GoString returns the string representation

func (BatchGetApplicationRevisionsInput) String added in v1.1.4

String returns the string representation

func (*BatchGetApplicationRevisionsInput) Validate added in v1.1.21

Validate inspects the fields of the type to determine if they are valid.

type BatchGetApplicationRevisionsOutput added in v1.1.4

type BatchGetApplicationRevisionsOutput struct {

	// 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"`

	// Additional information about the revisions, including the type and location.
	Revisions []*RevisionInfo `locationName:"revisions" type:"list"`
	// contains filtered or unexported fields
}

Represents the output of a batch get application revisions operation.

func (BatchGetApplicationRevisionsOutput) GoString added in v1.1.4

GoString returns the string representation

func (BatchGetApplicationRevisionsOutput) String added in v1.1.4

String returns the string representation

type BatchGetApplicationsInput

type BatchGetApplicationsInput struct {

	// A list of application names separated by spaces.
	ApplicationNames []*string `locationName:"applicationNames" type:"list"`
	// contains filtered or unexported fields
}

Represents the input of a batch get applications operation.

func (BatchGetApplicationsInput) GoString added in v0.6.5

func (s BatchGetApplicationsInput) GoString() string

GoString returns the string representation

func (BatchGetApplicationsInput) String added in v0.6.5

func (s BatchGetApplicationsInput) String() string

String returns the string representation

type BatchGetApplicationsOutput

type BatchGetApplicationsOutput struct {

	// Information about the applications.
	ApplicationsInfo []*ApplicationInfo `locationName:"applicationsInfo" type:"list"`
	// contains filtered or unexported fields
}

Represents the output of a batch get applications operation.

func (BatchGetApplicationsOutput) GoString added in v0.6.5

func (s BatchGetApplicationsOutput) GoString() string

GoString returns the string representation

func (BatchGetApplicationsOutput) String added in v0.6.5

String returns the string representation

type BatchGetDeploymentGroupsInput added in v1.1.11

type BatchGetDeploymentGroupsInput struct {

	// The name of an AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`

	// The deployment groups' names.
	DeploymentGroupNames []*string `locationName:"deploymentGroupNames" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a batch get deployment groups operation.

func (BatchGetDeploymentGroupsInput) GoString added in v1.1.11

GoString returns the string representation

func (BatchGetDeploymentGroupsInput) String added in v1.1.11

String returns the string representation

func (*BatchGetDeploymentGroupsInput) Validate added in v1.1.21

func (s *BatchGetDeploymentGroupsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchGetDeploymentGroupsOutput added in v1.1.11

type BatchGetDeploymentGroupsOutput struct {

	// 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"`
	// contains filtered or unexported fields
}

Represents the output of a batch get deployment groups operation.

func (BatchGetDeploymentGroupsOutput) GoString added in v1.1.11

GoString returns the string representation

func (BatchGetDeploymentGroupsOutput) String added in v1.1.11

String returns the string representation

type BatchGetDeploymentInstancesInput added in v1.1.4

type BatchGetDeploymentInstancesInput struct {

	// The unique ID of a deployment.
	DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`

	// The unique IDs of instances in the deployment group.
	InstanceIds []*string `locationName:"instanceIds" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a batch get deployment instances operation.

func (BatchGetDeploymentInstancesInput) GoString added in v1.1.4

GoString returns the string representation

func (BatchGetDeploymentInstancesInput) String added in v1.1.4

String returns the string representation

func (*BatchGetDeploymentInstancesInput) Validate added in v1.1.21

Validate inspects the fields of the type to determine if they are valid.

type BatchGetDeploymentInstancesOutput added in v1.1.4

type BatchGetDeploymentInstancesOutput struct {

	// Information about errors that may have occurred during the API call.
	ErrorMessage *string `locationName:"errorMessage" type:"string"`

	// Information about the instance.
	InstancesSummary []*InstanceSummary `locationName:"instancesSummary" type:"list"`
	// contains filtered or unexported fields
}

Represents the output of a batch get deployment instance operation.

func (BatchGetDeploymentInstancesOutput) GoString added in v1.1.4

GoString returns the string representation

func (BatchGetDeploymentInstancesOutput) String added in v1.1.4

String returns the string representation

type BatchGetDeploymentsInput

type BatchGetDeploymentsInput struct {

	// A list of deployment IDs, separated by spaces.
	DeploymentIds []*string `locationName:"deploymentIds" type:"list"`
	// contains filtered or unexported fields
}

Represents the input of a batch get deployments operation.

func (BatchGetDeploymentsInput) GoString added in v0.6.5

func (s BatchGetDeploymentsInput) GoString() string

GoString returns the string representation

func (BatchGetDeploymentsInput) String added in v0.6.5

func (s BatchGetDeploymentsInput) String() string

String returns the string representation

type BatchGetDeploymentsOutput

type BatchGetDeploymentsOutput struct {

	// Information about the deployments.
	DeploymentsInfo []*DeploymentInfo `locationName:"deploymentsInfo" type:"list"`
	// contains filtered or unexported fields
}

Represents the output of a batch get deployments operation.

func (BatchGetDeploymentsOutput) GoString added in v0.6.5

func (s BatchGetDeploymentsOutput) GoString() string

GoString returns the string representation

func (BatchGetDeploymentsOutput) String added in v0.6.5

func (s BatchGetDeploymentsOutput) String() string

String returns the string representation

type BatchGetOnPremisesInstancesInput

type BatchGetOnPremisesInstancesInput struct {

	// The names of the on-premises instances about which to get information.
	InstanceNames []*string `locationName:"instanceNames" type:"list"`
	// contains filtered or unexported fields
}

Represents the input of a batch get on-premises instances operation.

func (BatchGetOnPremisesInstancesInput) GoString added in v0.6.5

GoString returns the string representation

func (BatchGetOnPremisesInstancesInput) String added in v0.6.5

String returns the string representation

type BatchGetOnPremisesInstancesOutput

type BatchGetOnPremisesInstancesOutput struct {

	// Information about the on-premises instances.
	InstanceInfos []*InstanceInfo `locationName:"instanceInfos" type:"list"`
	// contains filtered or unexported fields
}

Represents the output of a batch get on-premises instances operation.

func (BatchGetOnPremisesInstancesOutput) GoString added in v0.6.5

GoString returns the string representation

func (BatchGetOnPremisesInstancesOutput) String added in v0.6.5

String returns the string representation

type CodeDeploy

type CodeDeploy struct {
	*client.Client
}

Overview This reference guide provides descriptions of the AWS CodeDeploy APIs. For more information about AWS CodeDeploy, see the AWS CodeDeploy User Guide (docs.aws.amazon.com/codedeploy/latest/userguide).

Using the APIs You can use the AWS CodeDeploy APIs to work with the following:

Applications are unique identifiers used by AWS CodeDeploy to ensure the

correct combinations of revisions, deployment configurations, and deployment groups are being referenced during deployments.

You can use the AWS CodeDeploy APIs to create, delete, get, list, and update applications.

Deployment configurations are sets of deployment rules and success and

failure conditions used by AWS CodeDeploy during deployments.

You can use the AWS CodeDeploy APIs to create, delete, get, and list deployment configurations.

Deployment groups are groups of instances to which application revisions

can be deployed.

You can use the AWS CodeDeploy APIs to create, delete, get, list, and update deployment groups.

Instances represent Amazon EC2 instances to which application revisions

are deployed. Instances are identified by their Amazon EC2 tags or Auto Scaling group names. Instances belong to deployment groups.

You can use the AWS CodeDeploy APIs to get and list instance.

Deployments represent the process of deploying revisions to instances.

You can use the AWS CodeDeploy APIs to create, get, list, and stop deployments.

Application revisions are archive files stored in Amazon S3 buckets or

GitHub repositories. These revisions contain source content (such as source code, web pages, executable files, and deployment scripts) along with an application specification (AppSpec) file. (The AppSpec file is unique to AWS CodeDeploy; it defines the deployment actions you want AWS CodeDeploy to execute.) Ffor application revisions stored in Amazon S3 buckets, an application revision is uniquely identified by its Amazon S3 object key and its ETag, version, or both. For application revisions stored in GitHub repositories, an application revision is uniquely identified by its repository name and commit ID. Application revisions are deployed through deployment groups.

You can use the AWS CodeDeploy APIs to get, list, and register application revisions. The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeDeploy

New creates a new instance of the CodeDeploy client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a CodeDeploy client from just a session.
svc := codedeploy.New(mySession)

// Create a CodeDeploy client with additional configuration
svc := codedeploy.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*CodeDeploy) AddTagsToOnPremisesInstances

func (c *CodeDeploy) AddTagsToOnPremisesInstances(input *AddTagsToOnPremisesInstancesInput) (*AddTagsToOnPremisesInstancesOutput, error)

Adds tags to on-premises instances.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.AddTagsToOnPremisesInstancesInput{
		InstanceNames: []*string{ // Required
			aws.String("InstanceName"), // Required
			// More values...
		},
		Tags: []*codedeploy.Tag{ // Required
			{ // Required
				Key:   aws.String("Key"),
				Value: aws.String("Value"),
			},
			// More values...
		},
	}
	resp, err := svc.AddTagsToOnPremisesInstances(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) AddTagsToOnPremisesInstancesRequest

func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremisesInstancesInput) (req *request.Request, output *AddTagsToOnPremisesInstancesOutput)

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.

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)
}

func (*CodeDeploy) BatchGetApplicationRevisions added in v1.1.4

func (c *CodeDeploy) BatchGetApplicationRevisions(input *BatchGetApplicationRevisionsInput) (*BatchGetApplicationRevisionsOutput, error)

Gets information about one or more application revisions.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.BatchGetApplicationRevisionsInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		Revisions: []*codedeploy.RevisionLocation{ // Required
			{ // Required
				GitHubLocation: &codedeploy.GitHubLocation{
					CommitId:   aws.String("CommitId"),
					Repository: aws.String("Repository"),
				},
				RevisionType: aws.String("RevisionLocationType"),
				S3Location: &codedeploy.S3Location{
					Bucket:     aws.String("S3Bucket"),
					BundleType: aws.String("BundleType"),
					ETag:       aws.String("ETag"),
					Key:        aws.String("S3Key"),
					Version:    aws.String("VersionId"),
				},
			},
			// More values...
		},
	}
	resp, err := svc.BatchGetApplicationRevisions(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) BatchGetApplicationRevisionsRequest added in v1.1.4

func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicationRevisionsInput) (req *request.Request, output *BatchGetApplicationRevisionsOutput)

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.

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)
}

func (*CodeDeploy) BatchGetApplications

func (c *CodeDeploy) BatchGetApplications(input *BatchGetApplicationsInput) (*BatchGetApplicationsOutput, error)

Gets information about one or more applications.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.BatchGetApplicationsInput{
		ApplicationNames: []*string{
			aws.String("ApplicationName"), // Required
			// More values...
		},
	}
	resp, err := svc.BatchGetApplications(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) BatchGetApplicationsRequest

func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInput) (req *request.Request, output *BatchGetApplicationsOutput)

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.

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)
}

func (*CodeDeploy) BatchGetDeploymentGroups added in v1.1.11

func (c *CodeDeploy) BatchGetDeploymentGroups(input *BatchGetDeploymentGroupsInput) (*BatchGetDeploymentGroupsOutput, error)

Get information about one or more deployment groups.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.BatchGetDeploymentGroupsInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		DeploymentGroupNames: []*string{ // Required
			aws.String("DeploymentGroupName"), // Required
			// More values...
		},
	}
	resp, err := svc.BatchGetDeploymentGroups(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) BatchGetDeploymentGroupsRequest added in v1.1.11

func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGroupsInput) (req *request.Request, output *BatchGetDeploymentGroupsOutput)

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.

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)
}

func (*CodeDeploy) BatchGetDeploymentInstances added in v1.1.4

func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstancesInput) (*BatchGetDeploymentInstancesOutput, error)

Gets information about one or more instance that are part of a deployment group.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.BatchGetDeploymentInstancesInput{
		DeploymentId: aws.String("DeploymentId"), // Required
		InstanceIds: []*string{ // Required
			aws.String("InstanceId"), // Required
			// More values...
		},
	}
	resp, err := svc.BatchGetDeploymentInstances(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) BatchGetDeploymentInstancesRequest added in v1.1.4

func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymentInstancesInput) (req *request.Request, output *BatchGetDeploymentInstancesOutput)

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.

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)
}

func (*CodeDeploy) BatchGetDeployments

func (c *CodeDeploy) BatchGetDeployments(input *BatchGetDeploymentsInput) (*BatchGetDeploymentsOutput, error)

Gets information about one or more deployments.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.BatchGetDeploymentsInput{
		DeploymentIds: []*string{
			aws.String("DeploymentId"), // Required
			// More values...
		},
	}
	resp, err := svc.BatchGetDeployments(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) BatchGetDeploymentsRequest

func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) (req *request.Request, output *BatchGetDeploymentsOutput)

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.

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)
}

func (*CodeDeploy) BatchGetOnPremisesInstances

func (c *CodeDeploy) BatchGetOnPremisesInstances(input *BatchGetOnPremisesInstancesInput) (*BatchGetOnPremisesInstancesOutput, error)

Gets information about one or more on-premises instances.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.BatchGetOnPremisesInstancesInput{
		InstanceNames: []*string{
			aws.String("InstanceName"), // Required
			// More values...
		},
	}
	resp, err := svc.BatchGetOnPremisesInstances(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) BatchGetOnPremisesInstancesRequest

func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremisesInstancesInput) (req *request.Request, output *BatchGetOnPremisesInstancesOutput)

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.

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)
}

func (*CodeDeploy) CreateApplication

func (c *CodeDeploy) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error)

Creates an application.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.CreateApplicationInput{
		ApplicationName: aws.String("ApplicationName"), // Required
	}
	resp, err := svc.CreateApplication(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) CreateApplicationRequest

func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput)

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.

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)
}

func (*CodeDeploy) CreateDeployment

func (c *CodeDeploy) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error)

Deploys an application revision through the specified deployment group.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.CreateDeploymentInput{
		ApplicationName:               aws.String("ApplicationName"), // Required
		DeploymentConfigName:          aws.String("DeploymentConfigName"),
		DeploymentGroupName:           aws.String("DeploymentGroupName"),
		Description:                   aws.String("Description"),
		IgnoreApplicationStopFailures: aws.Bool(true),
		Revision: &codedeploy.RevisionLocation{
			GitHubLocation: &codedeploy.GitHubLocation{
				CommitId:   aws.String("CommitId"),
				Repository: aws.String("Repository"),
			},
			RevisionType: aws.String("RevisionLocationType"),
			S3Location: &codedeploy.S3Location{
				Bucket:     aws.String("S3Bucket"),
				BundleType: aws.String("BundleType"),
				ETag:       aws.String("ETag"),
				Key:        aws.String("S3Key"),
				Version:    aws.String("VersionId"),
			},
		},
	}
	resp, err := svc.CreateDeployment(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) CreateDeploymentConfig

func (c *CodeDeploy) CreateDeploymentConfig(input *CreateDeploymentConfigInput) (*CreateDeploymentConfigOutput, error)

Creates a deployment configuration.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.CreateDeploymentConfigInput{
		DeploymentConfigName: aws.String("DeploymentConfigName"), // Required
		MinimumHealthyHosts: &codedeploy.MinimumHealthyHosts{
			Type:  aws.String("MinimumHealthyHostsType"),
			Value: aws.Int64(1),
		},
	}
	resp, err := svc.CreateDeploymentConfig(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) CreateDeploymentConfigRequest

func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfigInput) (req *request.Request, output *CreateDeploymentConfigOutput)

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.

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)
}

func (*CodeDeploy) CreateDeploymentGroup

func (c *CodeDeploy) CreateDeploymentGroup(input *CreateDeploymentGroupInput) (*CreateDeploymentGroupOutput, error)

Creates a deployment group to which application revisions will be deployed.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.CreateDeploymentGroupInput{
		ApplicationName:     aws.String("ApplicationName"),     // Required
		DeploymentGroupName: aws.String("DeploymentGroupName"), // Required
		ServiceRoleArn:      aws.String("Role"),                // Required
		AutoScalingGroups: []*string{
			aws.String("AutoScalingGroupName"), // Required
			// More values...
		},
		DeploymentConfigName: aws.String("DeploymentConfigName"),
		Ec2TagFilters: []*codedeploy.EC2TagFilter{
			{ // Required
				Key:   aws.String("Key"),
				Type:  aws.String("EC2TagFilterType"),
				Value: aws.String("Value"),
			},
			// More values...
		},
		OnPremisesInstanceTagFilters: []*codedeploy.TagFilter{
			{ // Required
				Key:   aws.String("Key"),
				Type:  aws.String("TagFilterType"),
				Value: aws.String("Value"),
			},
			// More values...
		},
		TriggerConfigurations: []*codedeploy.TriggerConfig{
			{ // Required
				TriggerEvents: []*string{
					aws.String("TriggerEventType"), // Required
					// More values...
				},
				TriggerName:      aws.String("TriggerName"),
				TriggerTargetArn: aws.String("TriggerTargetArn"),
			},
			// More values...
		},
	}
	resp, err := svc.CreateDeploymentGroup(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) CreateDeploymentGroupRequest

func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupInput) (req *request.Request, output *CreateDeploymentGroupOutput)

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.

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)
}

func (*CodeDeploy) CreateDeploymentRequest

func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput)

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.

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)
}

func (*CodeDeploy) DeleteApplication

func (c *CodeDeploy) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error)

Deletes an application.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.DeleteApplicationInput{
		ApplicationName: aws.String("ApplicationName"), // Required
	}
	resp, err := svc.DeleteApplication(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) DeleteApplicationRequest

func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput)

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.

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)
}

func (*CodeDeploy) DeleteDeploymentConfig

func (c *CodeDeploy) DeleteDeploymentConfig(input *DeleteDeploymentConfigInput) (*DeleteDeploymentConfigOutput, error)

Deletes a deployment configuration.

A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.DeleteDeploymentConfigInput{
		DeploymentConfigName: aws.String("DeploymentConfigName"), // Required
	}
	resp, err := svc.DeleteDeploymentConfig(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) DeleteDeploymentConfigRequest

func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfigInput) (req *request.Request, output *DeleteDeploymentConfigOutput)

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.

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)
}

func (*CodeDeploy) DeleteDeploymentGroup

func (c *CodeDeploy) DeleteDeploymentGroup(input *DeleteDeploymentGroupInput) (*DeleteDeploymentGroupOutput, error)

Deletes a deployment group.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.DeleteDeploymentGroupInput{
		ApplicationName:     aws.String("ApplicationName"),     // Required
		DeploymentGroupName: aws.String("DeploymentGroupName"), // Required
	}
	resp, err := svc.DeleteDeploymentGroup(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) DeleteDeploymentGroupRequest

func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupInput) (req *request.Request, output *DeleteDeploymentGroupOutput)

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.

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)
}

func (*CodeDeploy) DeregisterOnPremisesInstance

func (c *CodeDeploy) DeregisterOnPremisesInstance(input *DeregisterOnPremisesInstanceInput) (*DeregisterOnPremisesInstanceOutput, error)

Deregisters an on-premises instance.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.DeregisterOnPremisesInstanceInput{
		InstanceName: aws.String("InstanceName"), // Required
	}
	resp, err := svc.DeregisterOnPremisesInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) DeregisterOnPremisesInstanceRequest

func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPremisesInstanceInput) (req *request.Request, output *DeregisterOnPremisesInstanceOutput)

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.

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)
}

func (*CodeDeploy) GetApplication

func (c *CodeDeploy) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error)

Gets information about an application.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.GetApplicationInput{
		ApplicationName: aws.String("ApplicationName"), // Required
	}
	resp, err := svc.GetApplication(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) GetApplicationRequest

func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput)

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.

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)
}

func (*CodeDeploy) GetApplicationRevision

func (c *CodeDeploy) GetApplicationRevision(input *GetApplicationRevisionInput) (*GetApplicationRevisionOutput, error)

Gets information about an application revision.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.GetApplicationRevisionInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		Revision: &codedeploy.RevisionLocation{ // Required
			GitHubLocation: &codedeploy.GitHubLocation{
				CommitId:   aws.String("CommitId"),
				Repository: aws.String("Repository"),
			},
			RevisionType: aws.String("RevisionLocationType"),
			S3Location: &codedeploy.S3Location{
				Bucket:     aws.String("S3Bucket"),
				BundleType: aws.String("BundleType"),
				ETag:       aws.String("ETag"),
				Key:        aws.String("S3Key"),
				Version:    aws.String("VersionId"),
			},
		},
	}
	resp, err := svc.GetApplicationRevision(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) GetApplicationRevisionRequest

func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevisionInput) (req *request.Request, output *GetApplicationRevisionOutput)

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.

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)
}

func (*CodeDeploy) GetDeployment

func (c *CodeDeploy) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error)

Gets information about a deployment.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.GetDeploymentInput{
		DeploymentId: aws.String("DeploymentId"), // Required
	}
	resp, err := svc.GetDeployment(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) GetDeploymentConfig

func (c *CodeDeploy) GetDeploymentConfig(input *GetDeploymentConfigInput) (*GetDeploymentConfigOutput, error)

Gets information about a deployment configuration.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.GetDeploymentConfigInput{
		DeploymentConfigName: aws.String("DeploymentConfigName"), // Required
	}
	resp, err := svc.GetDeploymentConfig(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) GetDeploymentConfigRequest

func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) (req *request.Request, output *GetDeploymentConfigOutput)

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.

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)
}

func (*CodeDeploy) GetDeploymentGroup

func (c *CodeDeploy) GetDeploymentGroup(input *GetDeploymentGroupInput) (*GetDeploymentGroupOutput, error)

Gets information about a deployment group.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.GetDeploymentGroupInput{
		ApplicationName:     aws.String("ApplicationName"),     // Required
		DeploymentGroupName: aws.String("DeploymentGroupName"), // Required
	}
	resp, err := svc.GetDeploymentGroup(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) GetDeploymentGroupRequest

func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) (req *request.Request, output *GetDeploymentGroupOutput)

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.

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)
}

func (*CodeDeploy) GetDeploymentInstance

func (c *CodeDeploy) GetDeploymentInstance(input *GetDeploymentInstanceInput) (*GetDeploymentInstanceOutput, error)

Gets information about an instance as part of a deployment.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.GetDeploymentInstanceInput{
		DeploymentId: aws.String("DeploymentId"), // Required
		InstanceId:   aws.String("InstanceId"),   // Required
	}
	resp, err := svc.GetDeploymentInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) GetDeploymentInstanceRequest

func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceInput) (req *request.Request, output *GetDeploymentInstanceOutput)

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.

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)
}

func (*CodeDeploy) GetDeploymentRequest

func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *GetDeploymentOutput)

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.

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)
}

func (*CodeDeploy) GetOnPremisesInstance

func (c *CodeDeploy) GetOnPremisesInstance(input *GetOnPremisesInstanceInput) (*GetOnPremisesInstanceOutput, error)

Gets information about an on-premises instance.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.GetOnPremisesInstanceInput{
		InstanceName: aws.String("InstanceName"), // Required
	}
	resp, err := svc.GetOnPremisesInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) GetOnPremisesInstanceRequest

func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceInput) (req *request.Request, output *GetOnPremisesInstanceOutput)

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.

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)
}

func (*CodeDeploy) ListApplicationRevisions

func (c *CodeDeploy) ListApplicationRevisions(input *ListApplicationRevisionsInput) (*ListApplicationRevisionsOutput, error)

Lists information about revisions for an application.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.ListApplicationRevisionsInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		Deployed:        aws.String("ListStateFilterAction"),
		NextToken:       aws.String("NextToken"),
		S3Bucket:        aws.String("S3Bucket"),
		S3KeyPrefix:     aws.String("S3Key"),
		SortBy:          aws.String("ApplicationRevisionSortBy"),
		SortOrder:       aws.String("SortOrder"),
	}
	resp, err := svc.ListApplicationRevisions(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) ListApplicationRevisionsPages added in v0.6.5

func (c *CodeDeploy) ListApplicationRevisionsPages(input *ListApplicationRevisionsInput, fn func(p *ListApplicationRevisionsOutput, lastPage bool) (shouldContinue bool)) error

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
    })

func (*CodeDeploy) ListApplicationRevisionsRequest

func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevisionsInput) (req *request.Request, output *ListApplicationRevisionsOutput)

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.

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)
}

func (*CodeDeploy) ListApplications

func (c *CodeDeploy) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error)

Lists the applications registered with the applicable IAM user or AWS account.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.ListApplicationsInput{
		NextToken: aws.String("NextToken"),
	}
	resp, err := svc.ListApplications(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) ListApplicationsPages added in v0.6.5

func (c *CodeDeploy) ListApplicationsPages(input *ListApplicationsInput, fn func(p *ListApplicationsOutput, lastPage bool) (shouldContinue bool)) error

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
    })

func (*CodeDeploy) ListApplicationsRequest

func (c *CodeDeploy) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput)

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.

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)
}

func (*CodeDeploy) ListDeploymentConfigs

func (c *CodeDeploy) ListDeploymentConfigs(input *ListDeploymentConfigsInput) (*ListDeploymentConfigsOutput, error)

Lists the deployment configurations with the applicable IAM user or AWS account.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.ListDeploymentConfigsInput{
		NextToken: aws.String("NextToken"),
	}
	resp, err := svc.ListDeploymentConfigs(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) ListDeploymentConfigsPages added in v0.6.5

func (c *CodeDeploy) ListDeploymentConfigsPages(input *ListDeploymentConfigsInput, fn func(p *ListDeploymentConfigsOutput, lastPage bool) (shouldContinue bool)) error

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
    })

func (*CodeDeploy) ListDeploymentConfigsRequest

func (c *CodeDeploy) ListDeploymentConfigsRequest(input *ListDeploymentConfigsInput) (req *request.Request, output *ListDeploymentConfigsOutput)

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.

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)
}

func (*CodeDeploy) ListDeploymentGroups

func (c *CodeDeploy) ListDeploymentGroups(input *ListDeploymentGroupsInput) (*ListDeploymentGroupsOutput, error)

Lists the deployment groups for an application registered with the applicable IAM user or AWS account.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.ListDeploymentGroupsInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		NextToken:       aws.String("NextToken"),
	}
	resp, err := svc.ListDeploymentGroups(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) ListDeploymentGroupsPages added in v0.6.5

func (c *CodeDeploy) ListDeploymentGroupsPages(input *ListDeploymentGroupsInput, fn func(p *ListDeploymentGroupsOutput, lastPage bool) (shouldContinue bool)) error

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
    })

func (*CodeDeploy) ListDeploymentGroupsRequest

func (c *CodeDeploy) ListDeploymentGroupsRequest(input *ListDeploymentGroupsInput) (req *request.Request, output *ListDeploymentGroupsOutput)

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.

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)
}

func (*CodeDeploy) ListDeploymentInstances

func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput) (*ListDeploymentInstancesOutput, error)

Lists the instance for a deployment associated with the applicable IAM user or AWS account.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.ListDeploymentInstancesInput{
		DeploymentId: aws.String("DeploymentId"), // Required
		InstanceStatusFilter: []*string{
			aws.String("InstanceStatus"), // Required
			// More values...
		},
		NextToken: aws.String("NextToken"),
	}
	resp, err := svc.ListDeploymentInstances(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) ListDeploymentInstancesPages added in v0.6.5

func (c *CodeDeploy) ListDeploymentInstancesPages(input *ListDeploymentInstancesInput, fn func(p *ListDeploymentInstancesOutput, lastPage bool) (shouldContinue bool)) error

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
    })

func (*CodeDeploy) ListDeploymentInstancesRequest

func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstancesInput) (req *request.Request, output *ListDeploymentInstancesOutput)

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.

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)
}

func (*CodeDeploy) ListDeployments

func (c *CodeDeploy) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error)

Lists the deployments in a deployment group for an application registered with the applicable IAM user or AWS account.

Example
package main

import (
	"fmt"
	"time"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.ListDeploymentsInput{
		ApplicationName: aws.String("ApplicationName"),
		CreateTimeRange: &codedeploy.TimeRange{
			End:   aws.Time(time.Now()),
			Start: aws.Time(time.Now()),
		},
		DeploymentGroupName: aws.String("DeploymentGroupName"),
		IncludeOnlyStatuses: []*string{
			aws.String("DeploymentStatus"), // Required
			// More values...
		},
		NextToken: aws.String("NextToken"),
	}
	resp, err := svc.ListDeployments(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) ListDeploymentsPages added in v0.6.5

func (c *CodeDeploy) ListDeploymentsPages(input *ListDeploymentsInput, fn func(p *ListDeploymentsOutput, lastPage bool) (shouldContinue bool)) error

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
    })

func (*CodeDeploy) ListDeploymentsRequest

func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput)

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.

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)
}

func (*CodeDeploy) ListOnPremisesInstances

func (c *CodeDeploy) ListOnPremisesInstances(input *ListOnPremisesInstancesInput) (*ListOnPremisesInstancesOutput, error)

Gets a list of names for one or more on-premises instances.

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.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.ListOnPremisesInstancesInput{
		NextToken:          aws.String("NextToken"),
		RegistrationStatus: aws.String("RegistrationStatus"),
		TagFilters: []*codedeploy.TagFilter{
			{ // Required
				Key:   aws.String("Key"),
				Type:  aws.String("TagFilterType"),
				Value: aws.String("Value"),
			},
			// More values...
		},
	}
	resp, err := svc.ListOnPremisesInstances(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) ListOnPremisesInstancesRequest

func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstancesInput) (req *request.Request, output *ListOnPremisesInstancesOutput)

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.

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)
}

func (*CodeDeploy) RegisterApplicationRevision

func (c *CodeDeploy) RegisterApplicationRevision(input *RegisterApplicationRevisionInput) (*RegisterApplicationRevisionOutput, error)

Registers with AWS CodeDeploy a revision for the specified application.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.RegisterApplicationRevisionInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		Revision: &codedeploy.RevisionLocation{ // Required
			GitHubLocation: &codedeploy.GitHubLocation{
				CommitId:   aws.String("CommitId"),
				Repository: aws.String("Repository"),
			},
			RevisionType: aws.String("RevisionLocationType"),
			S3Location: &codedeploy.S3Location{
				Bucket:     aws.String("S3Bucket"),
				BundleType: aws.String("BundleType"),
				ETag:       aws.String("ETag"),
				Key:        aws.String("S3Key"),
				Version:    aws.String("VersionId"),
			},
		},
		Description: aws.String("Description"),
	}
	resp, err := svc.RegisterApplicationRevision(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) RegisterApplicationRevisionRequest

func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicationRevisionInput) (req *request.Request, output *RegisterApplicationRevisionOutput)

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.

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)
}

func (*CodeDeploy) RegisterOnPremisesInstance

func (c *CodeDeploy) RegisterOnPremisesInstance(input *RegisterOnPremisesInstanceInput) (*RegisterOnPremisesInstanceOutput, error)

Registers an on-premises instance.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.RegisterOnPremisesInstanceInput{
		IamUserArn:   aws.String("IamUserArn"),   // Required
		InstanceName: aws.String("InstanceName"), // Required
	}
	resp, err := svc.RegisterOnPremisesInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) RegisterOnPremisesInstanceRequest

func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremisesInstanceInput) (req *request.Request, output *RegisterOnPremisesInstanceOutput)

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.

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)
}

func (*CodeDeploy) RemoveTagsFromOnPremisesInstances

Removes one or more tags from one or more on-premises instances.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.RemoveTagsFromOnPremisesInstancesInput{
		InstanceNames: []*string{ // Required
			aws.String("InstanceName"), // Required
			// More values...
		},
		Tags: []*codedeploy.Tag{ // Required
			{ // Required
				Key:   aws.String("Key"),
				Value: aws.String("Value"),
			},
			// More values...
		},
	}
	resp, err := svc.RemoveTagsFromOnPremisesInstances(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest

func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsFromOnPremisesInstancesInput) (req *request.Request, output *RemoveTagsFromOnPremisesInstancesOutput)

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.

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)
}

func (*CodeDeploy) StopDeployment

func (c *CodeDeploy) StopDeployment(input *StopDeploymentInput) (*StopDeploymentOutput, error)

Attempts to stop an ongoing deployment.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.StopDeploymentInput{
		DeploymentId: aws.String("DeploymentId"), // Required
	}
	resp, err := svc.StopDeployment(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) StopDeploymentRequest

func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *request.Request, output *StopDeploymentOutput)

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.

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)
}

func (*CodeDeploy) UpdateApplication

func (c *CodeDeploy) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error)

Changes the name of an application.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.UpdateApplicationInput{
		ApplicationName:    aws.String("ApplicationName"),
		NewApplicationName: aws.String("ApplicationName"),
	}
	resp, err := svc.UpdateApplication(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) UpdateApplicationRequest

func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput)

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.

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)
}

func (*CodeDeploy) UpdateDeploymentGroup

func (c *CodeDeploy) UpdateDeploymentGroup(input *UpdateDeploymentGroupInput) (*UpdateDeploymentGroupOutput, error)

Changes information about a deployment group.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codedeploy.New(sess)

	params := &codedeploy.UpdateDeploymentGroupInput{
		ApplicationName:            aws.String("ApplicationName"),     // Required
		CurrentDeploymentGroupName: aws.String("DeploymentGroupName"), // Required
		AutoScalingGroups: []*string{
			aws.String("AutoScalingGroupName"), // Required
			// More values...
		},
		DeploymentConfigName: aws.String("DeploymentConfigName"),
		Ec2TagFilters: []*codedeploy.EC2TagFilter{
			{ // Required
				Key:   aws.String("Key"),
				Type:  aws.String("EC2TagFilterType"),
				Value: aws.String("Value"),
			},
			// More values...
		},
		NewDeploymentGroupName: aws.String("DeploymentGroupName"),
		OnPremisesInstanceTagFilters: []*codedeploy.TagFilter{
			{ // Required
				Key:   aws.String("Key"),
				Type:  aws.String("TagFilterType"),
				Value: aws.String("Value"),
			},
			// More values...
		},
		ServiceRoleArn: aws.String("Role"),
		TriggerConfigurations: []*codedeploy.TriggerConfig{
			{ // Required
				TriggerEvents: []*string{
					aws.String("TriggerEventType"), // Required
					// More values...
				},
				TriggerName:      aws.String("TriggerName"),
				TriggerTargetArn: aws.String("TriggerTargetArn"),
			},
			// More values...
		},
	}
	resp, err := svc.UpdateDeploymentGroup(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeDeploy) UpdateDeploymentGroupRequest

func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupInput) (req *request.Request, output *UpdateDeploymentGroupOutput)

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.

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)
}

func (*CodeDeploy) WaitUntilDeploymentSuccessful added in v1.2.10

func (c *CodeDeploy) WaitUntilDeploymentSuccessful(input *GetDeploymentInput) error

type CreateApplicationInput

type CreateApplicationInput struct {

	// The name of the application. This name must be unique with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a create application operation.

func (CreateApplicationInput) GoString added in v0.6.5

func (s CreateApplicationInput) GoString() string

GoString returns the string representation

func (CreateApplicationInput) String added in v0.6.5

func (s CreateApplicationInput) String() string

String returns the string representation

func (*CreateApplicationInput) Validate added in v1.1.21

func (s *CreateApplicationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateApplicationOutput

type CreateApplicationOutput struct {

	// A unique application ID.
	ApplicationId *string `locationName:"applicationId" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of a create application operation.

func (CreateApplicationOutput) GoString added in v0.6.5

func (s CreateApplicationOutput) GoString() string

GoString returns the string representation

func (CreateApplicationOutput) String added in v0.6.5

func (s CreateApplicationOutput) String() string

String returns the string representation

type CreateDeploymentConfigInput

type CreateDeploymentConfigInput struct {

	// The name of the deployment configuration to create.
	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:
	//
	//  HOST_COUNT: The value parameter represents the minimum number of healthy
	// instances as an absolute value. 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.  The value parameter
	// takes an integer.
	//
	// For example, to set a minimum of 95% healthy instance, specify a type of
	// FLEET_PERCENT and a value of 95.
	MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"`
	// contains filtered or unexported fields
}

Represents the input of a create deployment configuration operation.

func (CreateDeploymentConfigInput) GoString added in v0.6.5

func (s CreateDeploymentConfigInput) GoString() string

GoString returns the string representation

func (CreateDeploymentConfigInput) String added in v0.6.5

String returns the string representation

func (*CreateDeploymentConfigInput) Validate added in v1.1.21

func (s *CreateDeploymentConfigInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateDeploymentConfigOutput

type CreateDeploymentConfigOutput struct {

	// A unique deployment configuration ID.
	DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of a create deployment configuration operation.

func (CreateDeploymentConfigOutput) GoString added in v0.6.5

func (s CreateDeploymentConfigOutput) GoString() string

GoString returns the string representation

func (CreateDeploymentConfigOutput) String added in v0.6.5

String returns the string representation

type CreateDeploymentGroupInput

type CreateDeploymentGroupInput struct {

	// The name of an AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`

	// A list of associated Auto Scaling groups.
	AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`

	// If specified, the deployment configuration name can be either one of the
	// predefined configurations provided with AWS CodeDeploy or a custom deployment
	// configuration that you create by calling the create deployment configuration
	// operation.
	//
	//  CodeDeployDefault.OneAtATime is the default deployment configuration. It
	// is used if a configuration isn't specified for the deployment or the deployment
	// group.
	//
	//  The predefined deployment configurations include the following:
	//
	//   CodeDeployDefault.AllAtOnce attempts to deploy an application revision
	// to as many instance as possible at once. The status of the overall deployment
	// will be displayed as Succeeded if the application revision is deployed to
	// one or more of the instances. The status of the overall deployment will be
	// displayed as Failed if the application revision is not deployed to any of
	// the instances. Using an example of nine instance, CodeDeployDefault.AllAtOnce
	// will attempt to deploy to all nine instance at once. The overall deployment
	// will succeed if deployment to even a single instance is successful; it will
	// fail only if deployments to all nine instance fail.
	//
	//   CodeDeployDefault.HalfAtATime deploys to up to half of the instances at
	// a time (with fractions rounded down). The overall deployment succeeds if
	// the application revision is deployed to at least half of the instances (with
	// fractions rounded up); otherwise, the deployment fails. In the example of
	// nine instances, it will deploy to up to four instance at a time. The overall
	// deployment succeeds if deployment to five or more instances succeed; otherwise,
	// the deployment fails. The deployment may be successfully deployed to some
	// instances even if the overall deployment fails.
	//
	//   CodeDeployDefault.OneAtATime deploys the application revision to only
	// one instance at a time.
	//
	// For deployment groups that contain more than one instance:
	//
	//   The overall deployment succeeds if the application revision is deployed
	// to all of the instances. The exception to this rule is if deployment to the
	// last instance fails, the overall deployment still succeeds. This is because
	// AWS CodeDeploy allows only one instance at a time to be taken offline with
	// the CodeDeployDefault.OneAtATime configuration.
	//
	//   The overall deployment fails as soon as the application revision fails
	// to be deployed to any but the last instance. The deployment may be successfully
	// deployed to some instances even if the overall deployment fails.
	//
	//   In an example using nine instance, it will deploy to one instance at a
	// time. The overall deployment succeeds if deployment to the first eight instance
	// is successful; the overall deployment fails if deployment to any of the first
	// eight instance fails.
	//
	//   For deployment groups that contain only one instance, the overall deployment
	// is successful only if deployment to the single instance is successful
	DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`

	// The name of a new deployment group for the specified application.
	DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`

	// The Amazon EC2 tags on which to filter.
	Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`

	// The on-premises instance tags on which to filter.
	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.
	ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string" required:"true"`

	// Information about triggers to create when the deployment group is created.
	TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
	// contains filtered or unexported fields
}

Represents the input of a create deployment group operation.

func (CreateDeploymentGroupInput) GoString added in v0.6.5

func (s CreateDeploymentGroupInput) GoString() string

GoString returns the string representation

func (CreateDeploymentGroupInput) String added in v0.6.5

String returns the string representation

func (*CreateDeploymentGroupInput) Validate added in v1.1.21

func (s *CreateDeploymentGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateDeploymentGroupOutput

type CreateDeploymentGroupOutput struct {

	// A unique deployment group ID.
	DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of a create deployment group operation.

func (CreateDeploymentGroupOutput) GoString added in v0.6.5

func (s CreateDeploymentGroupOutput) GoString() string

GoString returns the string representation

func (CreateDeploymentGroupOutput) String added in v0.6.5

String returns the string representation

type CreateDeploymentInput

type CreateDeploymentInput struct {

	// The name of an AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`

	// The name of a deployment configuration associated with the applicable IAM
	// user or AWS account.
	//
	// 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"`

	// The name of the deployment group.
	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
	// 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.
	//
	// If set to false or not specified, then if the deployment causes the ApplicationStop
	// deployment lifecycle event to fail to an instance, the deployment to that
	// instance will stop, and the deployment to that instance will be considered
	// to have failed.
	IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`

	// The type and location of the revision to deploy.
	Revision *RevisionLocation `locationName:"revision" type:"structure"`
	// contains filtered or unexported fields
}

Represents the input of a create deployment operation.

func (CreateDeploymentInput) GoString added in v0.6.5

func (s CreateDeploymentInput) GoString() string

GoString returns the string representation

func (CreateDeploymentInput) String added in v0.6.5

func (s CreateDeploymentInput) String() string

String returns the string representation

func (*CreateDeploymentInput) Validate added in v1.1.21

func (s *CreateDeploymentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateDeploymentOutput

type CreateDeploymentOutput struct {

	// A unique deployment ID.
	DeploymentId *string `locationName:"deploymentId" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of a create deployment operation.

func (CreateDeploymentOutput) GoString added in v0.6.5

func (s CreateDeploymentOutput) GoString() string

GoString returns the string representation

func (CreateDeploymentOutput) String added in v0.6.5

func (s CreateDeploymentOutput) String() string

String returns the string representation

type DeleteApplicationInput

type DeleteApplicationInput struct {

	// The name of an AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a delete application operation.

func (DeleteApplicationInput) GoString added in v0.6.5

func (s DeleteApplicationInput) GoString() string

GoString returns the string representation

func (DeleteApplicationInput) String added in v0.6.5

func (s DeleteApplicationInput) String() string

String returns the string representation

func (*DeleteApplicationInput) Validate added in v1.1.21

func (s *DeleteApplicationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteApplicationOutput

type DeleteApplicationOutput struct {
	// contains filtered or unexported fields
}

func (DeleteApplicationOutput) GoString added in v0.6.5

func (s DeleteApplicationOutput) GoString() string

GoString returns the string representation

func (DeleteApplicationOutput) String added in v0.6.5

func (s DeleteApplicationOutput) String() string

String returns the string representation

type DeleteDeploymentConfigInput

type DeleteDeploymentConfigInput struct {

	// The name of a deployment configuration associated with the applicable IAM
	// user or AWS account.
	DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a delete deployment configuration operation.

func (DeleteDeploymentConfigInput) GoString added in v0.6.5

func (s DeleteDeploymentConfigInput) GoString() string

GoString returns the string representation

func (DeleteDeploymentConfigInput) String added in v0.6.5

String returns the string representation

func (*DeleteDeploymentConfigInput) Validate added in v1.1.21

func (s *DeleteDeploymentConfigInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteDeploymentConfigOutput

type DeleteDeploymentConfigOutput struct {
	// contains filtered or unexported fields
}

func (DeleteDeploymentConfigOutput) GoString added in v0.6.5

func (s DeleteDeploymentConfigOutput) GoString() string

GoString returns the string representation

func (DeleteDeploymentConfigOutput) String added in v0.6.5

String returns the string representation

type DeleteDeploymentGroupInput

type DeleteDeploymentGroupInput struct {

	// The name of an AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`

	// The name of an existing deployment group for the specified application.
	DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a delete deployment group operation.

func (DeleteDeploymentGroupInput) GoString added in v0.6.5

func (s DeleteDeploymentGroupInput) GoString() string

GoString returns the string representation

func (DeleteDeploymentGroupInput) String added in v0.6.5

String returns the string representation

func (*DeleteDeploymentGroupInput) Validate added in v1.1.21

func (s *DeleteDeploymentGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteDeploymentGroupOutput

type DeleteDeploymentGroupOutput struct {

	// 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
	// in the Auto Scaling group. If the output contains data, AWS CodeDeploy could
	// not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances
	// in the Auto Scaling group.
	HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"`
	// contains filtered or unexported fields
}

Represents the output of a delete deployment group operation.

func (DeleteDeploymentGroupOutput) GoString added in v0.6.5

func (s DeleteDeploymentGroupOutput) GoString() string

GoString returns the string representation

func (DeleteDeploymentGroupOutput) String added in v0.6.5

String returns the string representation

type DeploymentConfigInfo

type DeploymentConfigInfo struct {

	// The time at which the deployment configuration was created.
	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"`

	// Information about the number or percentage of minimum healthy instance.
	MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"`
	// contains filtered or unexported fields
}

Information about a deployment configuration.

func (DeploymentConfigInfo) GoString added in v0.6.5

func (s DeploymentConfigInfo) GoString() string

GoString returns the string representation

func (DeploymentConfigInfo) String added in v0.6.5

func (s DeploymentConfigInfo) String() string

String returns the string representation

type DeploymentGroupInfo

type DeploymentGroupInfo struct {

	// The application name.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`

	// A list of associated Auto Scaling groups.
	AutoScalingGroups []*AutoScalingGroup `locationName:"autoScalingGroups" type:"list"`

	// 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"`

	// The Amazon EC2 tags on which to filter.
	Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`

	// The on-premises instance tags on which to filter.
	OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`

	// A service role ARN.
	ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`

	// Information about the deployment group's target revision, including type
	// and location.
	TargetRevision *RevisionLocation `locationName:"targetRevision" type:"structure"`

	// A list of associated triggers.
	TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
	// contains filtered or unexported fields
}

Information about a deployment group.

func (DeploymentGroupInfo) GoString added in v0.6.5

func (s DeploymentGroupInfo) GoString() string

GoString returns the string representation

func (DeploymentGroupInfo) String added in v0.6.5

func (s DeploymentGroupInfo) String() string

String returns the string representation

type DeploymentInfo

type DeploymentInfo struct {

	// The application name.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`

	// A timestamp indicating when the deployment was complete.
	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"`

	// The means by which the deployment was created:
	//
	//  user: A user created the deployment. autoscaling: Auto Scaling created
	// the deployment.
	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"`

	// 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
	// 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.
	//
	// If false or not specified, then if the deployment causes the ApplicationStop
	// deployment lifecycle event to an instance to fail, the deployment to that
	// instance will stop, and the deployment to that instance will be considered
	// to have failed.
	IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`

	// Information about the location of stored application artifacts and the service
	// from which to retrieve them.
	Revision *RevisionLocation `locationName:"revision" type:"structure"`

	// A timestamp indicating when the deployment was deployed to the deployment
	// group.
	//
	// 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.
	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"`
	// contains filtered or unexported fields
}

Information about a deployment.

func (DeploymentInfo) GoString added in v0.6.5

func (s DeploymentInfo) GoString() string

GoString returns the string representation

func (DeploymentInfo) String added in v0.6.5

func (s DeploymentInfo) String() string

String returns the string representation

type DeploymentOverview

type DeploymentOverview struct {

	// The number of instances in the deployment in a failed state.
	Failed *int64 `type:"long"`

	// The number of instances in which the deployment is in progress.
	InProgress *int64 `type:"long"`

	// The number of instances in the deployment in a pending state.
	Pending *int64 `type:"long"`

	// The number of instances in the deployment in a skipped state.
	Skipped *int64 `type:"long"`

	// The number of instances in the deployment to which revisions have been successfully
	// deployed.
	Succeeded *int64 `type:"long"`
	// contains filtered or unexported fields
}

Information about the deployment status of the instances in the deployment.

func (DeploymentOverview) GoString added in v0.6.5

func (s DeploymentOverview) GoString() string

GoString returns the string representation

func (DeploymentOverview) String added in v0.6.5

func (s DeploymentOverview) String() string

String returns the string representation

type DeregisterOnPremisesInstanceInput

type DeregisterOnPremisesInstanceInput struct {

	// The name of the on-premises instance to deregister.
	InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a deregister on-premises instance operation.

func (DeregisterOnPremisesInstanceInput) GoString added in v0.6.5

GoString returns the string representation

func (DeregisterOnPremisesInstanceInput) String added in v0.6.5

String returns the string representation

func (*DeregisterOnPremisesInstanceInput) Validate added in v1.1.21

Validate inspects the fields of the type to determine if they are valid.

type DeregisterOnPremisesInstanceOutput

type DeregisterOnPremisesInstanceOutput struct {
	// contains filtered or unexported fields
}

func (DeregisterOnPremisesInstanceOutput) GoString added in v0.6.5

GoString returns the string representation

func (DeregisterOnPremisesInstanceOutput) String added in v0.6.5

String returns the string representation

type Diagnostics

type Diagnostics struct {

	// The associated error code:
	//
	//  Success: The specified script ran. ScriptMissing: The specified script
	// was not found in the specified location. ScriptNotExecutable: The specified
	// script is not a recognized executable file type. ScriptTimedOut: The specified
	// script did not finish running in the specified time period. ScriptFailed:
	// The specified script failed to run as expected. UnknownError: The specified
	// script did not run for an unknown reason.
	ErrorCode *string `locationName:"errorCode" type:"string" enum:"LifecycleErrorCode"`

	// The last portion of the diagnostic log.
	//
	// If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic
	// log.
	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"`
	// contains filtered or unexported fields
}

Diagnostic information about executable scripts that are part of a deployment.

func (Diagnostics) GoString added in v0.6.5

func (s Diagnostics) GoString() string

GoString returns the string representation

func (Diagnostics) String added in v0.6.5

func (s Diagnostics) String() string

String returns the string representation

type EC2TagFilter

type EC2TagFilter struct {

	// The tag filter key.
	Key *string `type:"string"`

	// The tag filter type:
	//
	//  KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value.
	Type *string `type:"string" enum:"EC2TagFilterType"`

	// The tag filter value.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a tag filter.

func (EC2TagFilter) GoString added in v0.6.5

func (s EC2TagFilter) GoString() string

GoString returns the string representation

func (EC2TagFilter) String added in v0.6.5

func (s EC2TagFilter) String() string

String returns the string representation

type ErrorInformation

type ErrorInformation struct {

	// The error code:
	//
	//  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. 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.
	// HEALTH_CONSTRAINTS: The deployment failed on too many instances to be successfully
	// deployed within the instance health constraints specified. HEALTH_CONSTRAINTS_INVALID:
	// The revision cannot be successfully deployed within the instance health constraints
	// specified. IAM_ROLE_MISSING: The service role cannot be accessed. IAM_ROLE_PERMISSIONS:
	// The service role does not have the correct permissions. INTERNAL_ERROR: There
	// was an internal error. NO_EC2_SUBSCRIPTION: The calling account is not subscribed
	// to the Amazon EC2 service. NO_INSTANCES: No instance were specified, or no
	// instance can be found. OVER_MAX_INSTANCES: The maximum number of instance
	// was exceeded. THROTTLED: The operation was throttled because the calling
	// account exceeded the throttling limits of one or more AWS services. TIMEOUT:
	// The deployment has timed out. 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.
	Code *string `locationName:"code" type:"string" enum:"ErrorCode"`

	// An accompanying error message.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Information about a deployment error.

func (ErrorInformation) GoString added in v0.6.5

func (s ErrorInformation) GoString() string

GoString returns the string representation

func (ErrorInformation) String added in v0.6.5

func (s ErrorInformation) String() string

String returns the string representation

type GenericRevisionInfo

type GenericRevisionInfo struct {

	// The deployment groups for which this is the current target revision.
	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"`
	// contains filtered or unexported fields
}

Information about an application revision.

func (GenericRevisionInfo) GoString added in v0.6.5

func (s GenericRevisionInfo) GoString() string

GoString returns the string representation

func (GenericRevisionInfo) String added in v0.6.5

func (s GenericRevisionInfo) String() string

String returns the string representation

type GetApplicationInput

type GetApplicationInput struct {

	// The name of an AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a get application operation.

func (GetApplicationInput) GoString added in v0.6.5

func (s GetApplicationInput) GoString() string

GoString returns the string representation

func (GetApplicationInput) String added in v0.6.5

func (s GetApplicationInput) String() string

String returns the string representation

func (*GetApplicationInput) Validate added in v1.1.21

func (s *GetApplicationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetApplicationOutput

type GetApplicationOutput struct {

	// Information about the application.
	Application *ApplicationInfo `locationName:"application" type:"structure"`
	// contains filtered or unexported fields
}

Represents the output of a get application operation.

func (GetApplicationOutput) GoString added in v0.6.5

func (s GetApplicationOutput) GoString() string

GoString returns the string representation

func (GetApplicationOutput) String added in v0.6.5

func (s GetApplicationOutput) String() string

String returns the string representation

type GetApplicationRevisionInput

type GetApplicationRevisionInput struct {

	// The name of the application that corresponds to the revision.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`

	// Information about the application revision to get, including type and location.
	Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a get application revision operation.

func (GetApplicationRevisionInput) GoString added in v0.6.5

func (s GetApplicationRevisionInput) GoString() string

GoString returns the string representation

func (GetApplicationRevisionInput) String added in v0.6.5

String returns the string representation

func (*GetApplicationRevisionInput) Validate added in v1.1.21

func (s *GetApplicationRevisionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetApplicationRevisionOutput

type GetApplicationRevisionOutput struct {

	// The name of the application that corresponds to the revision.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`

	// Additional information about the revision, including type and location.
	Revision *RevisionLocation `locationName:"revision" type:"structure"`

	// General information about the revision.
	RevisionInfo *GenericRevisionInfo `locationName:"revisionInfo" type:"structure"`
	// contains filtered or unexported fields
}

Represents the output of a get application revision operation.

func (GetApplicationRevisionOutput) GoString added in v0.6.5

func (s GetApplicationRevisionOutput) GoString() string

GoString returns the string representation

func (GetApplicationRevisionOutput) String added in v0.6.5

String returns the string representation

type GetDeploymentConfigInput

type GetDeploymentConfigInput struct {

	// The name of a deployment configuration associated with the applicable IAM
	// user or AWS account.
	DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a get deployment configuration operation.

func (GetDeploymentConfigInput) GoString added in v0.6.5

func (s GetDeploymentConfigInput) GoString() string

GoString returns the string representation

func (GetDeploymentConfigInput) String added in v0.6.5

func (s GetDeploymentConfigInput) String() string

String returns the string representation

func (*GetDeploymentConfigInput) Validate added in v1.1.21

func (s *GetDeploymentConfigInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetDeploymentConfigOutput

type GetDeploymentConfigOutput struct {

	// Information about the deployment configuration.
	DeploymentConfigInfo *DeploymentConfigInfo `locationName:"deploymentConfigInfo" type:"structure"`
	// contains filtered or unexported fields
}

Represents the output of a get deployment configuration operation.

func (GetDeploymentConfigOutput) GoString added in v0.6.5

func (s GetDeploymentConfigOutput) GoString() string

GoString returns the string representation

func (GetDeploymentConfigOutput) String added in v0.6.5

func (s GetDeploymentConfigOutput) String() string

String returns the string representation

type GetDeploymentGroupInput

type GetDeploymentGroupInput struct {

	// The name of an AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`

	// The name of an existing deployment group for the specified application.
	DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a get deployment group operation.

func (GetDeploymentGroupInput) GoString added in v0.6.5

func (s GetDeploymentGroupInput) GoString() string

GoString returns the string representation

func (GetDeploymentGroupInput) String added in v0.6.5

func (s GetDeploymentGroupInput) String() string

String returns the string representation

func (*GetDeploymentGroupInput) Validate added in v1.1.21

func (s *GetDeploymentGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetDeploymentGroupOutput

type GetDeploymentGroupOutput struct {

	// Information about the deployment group.
	DeploymentGroupInfo *DeploymentGroupInfo `locationName:"deploymentGroupInfo" type:"structure"`
	// contains filtered or unexported fields
}

Represents the output of a get deployment group operation.

func (GetDeploymentGroupOutput) GoString added in v0.6.5

func (s GetDeploymentGroupOutput) GoString() string

GoString returns the string representation

func (GetDeploymentGroupOutput) String added in v0.6.5

func (s GetDeploymentGroupOutput) String() string

String returns the string representation

type GetDeploymentInput

type GetDeploymentInput struct {

	// A deployment ID associated with the applicable IAM user or AWS account.
	DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a get deployment operation.

func (GetDeploymentInput) GoString added in v0.6.5

func (s GetDeploymentInput) GoString() string

GoString returns the string representation

func (GetDeploymentInput) String added in v0.6.5

func (s GetDeploymentInput) String() string

String returns the string representation

func (*GetDeploymentInput) Validate added in v1.1.21

func (s *GetDeploymentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetDeploymentInstanceInput

type GetDeploymentInstanceInput struct {

	// The unique ID of a deployment.
	DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`

	// The unique ID of an instance in the deployment group.
	InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a get deployment instance operation.

func (GetDeploymentInstanceInput) GoString added in v0.6.5

func (s GetDeploymentInstanceInput) GoString() string

GoString returns the string representation

func (GetDeploymentInstanceInput) String added in v0.6.5

String returns the string representation

func (*GetDeploymentInstanceInput) Validate added in v1.1.21

func (s *GetDeploymentInstanceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetDeploymentInstanceOutput

type GetDeploymentInstanceOutput struct {

	// Information about the instance.
	InstanceSummary *InstanceSummary `locationName:"instanceSummary" type:"structure"`
	// contains filtered or unexported fields
}

Represents the output of a get deployment instance operation.

func (GetDeploymentInstanceOutput) GoString added in v0.6.5

func (s GetDeploymentInstanceOutput) GoString() string

GoString returns the string representation

func (GetDeploymentInstanceOutput) String added in v0.6.5

String returns the string representation

type GetDeploymentOutput

type GetDeploymentOutput struct {

	// Information about the deployment.
	DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"`
	// contains filtered or unexported fields
}

Represents the output of a get deployment operation.

func (GetDeploymentOutput) GoString added in v0.6.5

func (s GetDeploymentOutput) GoString() string

GoString returns the string representation

func (GetDeploymentOutput) String added in v0.6.5

func (s GetDeploymentOutput) String() string

String returns the string representation

type GetOnPremisesInstanceInput

type GetOnPremisesInstanceInput struct {

	// The name of the on-premises instance about which to get information.
	InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a get on-premises instance operation.

func (GetOnPremisesInstanceInput) GoString added in v0.6.5

func (s GetOnPremisesInstanceInput) GoString() string

GoString returns the string representation

func (GetOnPremisesInstanceInput) String added in v0.6.5

String returns the string representation

func (*GetOnPremisesInstanceInput) Validate added in v1.1.21

func (s *GetOnPremisesInstanceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetOnPremisesInstanceOutput

type GetOnPremisesInstanceOutput struct {

	// Information about the on-premises instance.
	InstanceInfo *InstanceInfo `locationName:"instanceInfo" type:"structure"`
	// contains filtered or unexported fields
}

Represents the output of a get on-premises instance operation.

func (GetOnPremisesInstanceOutput) GoString added in v0.6.5

func (s GetOnPremisesInstanceOutput) GoString() string

GoString returns the string representation

func (GetOnPremisesInstanceOutput) String added in v0.6.5

String returns the string representation

type GitHubLocation

type GitHubLocation struct {

	// The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
	// for the application revision.
	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"`
	// contains filtered or unexported fields
}

Information about the location of application artifacts stored in GitHub.

func (GitHubLocation) GoString added in v0.6.5

func (s GitHubLocation) GoString() string

GoString returns the string representation

func (GitHubLocation) String added in v0.6.5

func (s GitHubLocation) String() string

String returns the string representation

type InstanceInfo

type InstanceInfo struct {

	// If the on-premises instance was deregistered, the time at which the on-premises
	// instance was deregistered.
	DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp" timestampFormat:"unix"`

	// 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"`

	// The time at which the on-premises instance was registered.
	RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"`

	// The tags currently associated with the on-premises instance.
	Tags []*Tag `locationName:"tags" type:"list"`
	// contains filtered or unexported fields
}

Information about an on-premises instance.

func (InstanceInfo) GoString added in v0.6.5

func (s InstanceInfo) GoString() string

GoString returns the string representation

func (InstanceInfo) String added in v0.6.5

func (s InstanceInfo) String() string

String returns the string representation

type InstanceSummary

type InstanceSummary struct {

	// The deployment ID.
	DeploymentId *string `locationName:"deploymentId" type:"string"`

	// The instance ID.
	InstanceId *string `locationName:"instanceId" type:"string"`

	// 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:
	//
	//  Pending: The deployment is pending for this instance. In Progress: The
	// deployment is in progress for this instance. Succeeded: The deployment has
	// succeeded for this instance. Failed: The deployment has failed for this instance.
	// Skipped: The deployment has been skipped for this instance. Unknown: The
	// deployment status is unknown for this instance.
	Status *string `locationName:"status" type:"string" enum:"InstanceStatus"`
	// contains filtered or unexported fields
}

Information about an instance in a deployment.

func (InstanceSummary) GoString added in v0.6.5

func (s InstanceSummary) GoString() string

GoString returns the string representation

func (InstanceSummary) String added in v0.6.5

func (s InstanceSummary) String() string

String returns the string representation

type LifecycleEvent

type LifecycleEvent struct {

	// 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:
	//
	//  Pending: The deployment lifecycle event is pending. InProgress: The deployment
	// lifecycle event is in progress. Succeeded: The deployment lifecycle event
	// ran successfully. Failed: The deployment lifecycle event has failed. Skipped:
	// The deployment lifecycle event has been skipped. Unknown: The deployment
	// lifecycle event is unknown.
	Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"`
	// contains filtered or unexported fields
}

Information about a deployment lifecycle event.

func (LifecycleEvent) GoString added in v0.6.5

func (s LifecycleEvent) GoString() string

GoString returns the string representation

func (LifecycleEvent) String added in v0.6.5

func (s LifecycleEvent) String() string

String returns the string representation

type ListApplicationRevisionsInput

type ListApplicationRevisionsInput struct {

	// The name of an AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	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:
	//
	//  include: List revisions that are target revisions of a deployment group.
	// exclude: Do not list revisions that are target revisions of a deployment
	// group. ignore: List all revisions.
	Deployed *string `locationName:"deployed" type:"string" enum:"ListStateFilterAction"`

	// An identifier returned from the previous list application revisions call.
	// It can be used to return the next set of applications in the list.
	NextToken *string `locationName:"nextToken" type:"string"`

	// An Amazon S3 bucket name to limit the search for revisions.
	//
	// If set to null, all of the user's buckets will be searched.
	S3Bucket *string `locationName:"s3Bucket" type:"string"`

	// A key prefix for the set of Amazon S3 objects to limit the search for revisions.
	S3KeyPrefix *string `locationName:"s3KeyPrefix" type:"string"`

	// The column name to use to sort the list results:
	//
	//  registerTime: Sort by the time the revisions were registered with AWS CodeDeploy.
	// firstUsedTime: Sort by the time the revisions were first used in a deployment.
	// lastUsedTime: Sort by the time the revisions were last used in a deployment.
	//  If not specified or set to null, the results will be returned in an arbitrary
	// order.
	SortBy *string `locationName:"sortBy" type:"string" enum:"ApplicationRevisionSortBy"`

	// The order in which to sort the list results:
	//
	//  ascending: ascending order. descending: descending order.  If not specified,
	// the results will be sorted in ascending order.
	//
	// If set to null, the results will be sorted in an arbitrary order.
	SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrder"`
	// contains filtered or unexported fields
}

Represents the input of a list application revisions operation.

func (ListApplicationRevisionsInput) GoString added in v0.6.5

GoString returns the string representation

func (ListApplicationRevisionsInput) String added in v0.6.5

String returns the string representation

func (*ListApplicationRevisionsInput) Validate added in v1.1.21

func (s *ListApplicationRevisionsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListApplicationRevisionsOutput

type ListApplicationRevisionsOutput struct {

	// 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.
	NextToken *string `locationName:"nextToken" type:"string"`

	// A list of locations that contain the matching revisions.
	Revisions []*RevisionLocation `locationName:"revisions" type:"list"`
	// contains filtered or unexported fields
}

Represents the output of a list application revisions operation.

func (ListApplicationRevisionsOutput) GoString added in v0.6.5

GoString returns the string representation

func (ListApplicationRevisionsOutput) String added in v0.6.5

String returns the string representation

type ListApplicationsInput

type ListApplicationsInput struct {

	// An identifier returned from the previous list applications call. It can be
	// used to return the next set of applications in the list.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the input of a list applications operation.

func (ListApplicationsInput) GoString added in v0.6.5

func (s ListApplicationsInput) GoString() string

GoString returns the string representation

func (ListApplicationsInput) String added in v0.6.5

func (s ListApplicationsInput) String() string

String returns the string representation

type ListApplicationsOutput

type ListApplicationsOutput struct {

	// A list of application names.
	Applications []*string `locationName:"applications" type:"list"`

	// 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.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of a list applications operation.

func (ListApplicationsOutput) GoString added in v0.6.5

func (s ListApplicationsOutput) GoString() string

GoString returns the string representation

func (ListApplicationsOutput) String added in v0.6.5

func (s ListApplicationsOutput) String() string

String returns the string representation

type ListDeploymentConfigsInput

type ListDeploymentConfigsInput struct {

	// 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.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the input of a list deployment configurations operation.

func (ListDeploymentConfigsInput) GoString added in v0.6.5

func (s ListDeploymentConfigsInput) GoString() string

GoString returns the string representation

func (ListDeploymentConfigsInput) String added in v0.6.5

String returns the string representation

type ListDeploymentConfigsOutput

type ListDeploymentConfigsOutput struct {

	// A list of deployment configurations, including built-in configurations such
	// as CodeDeployDefault.OneAtATime.
	DeploymentConfigsList []*string `locationName:"deploymentConfigsList" type:"list"`

	// 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.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of a list deployment configurations operation.

func (ListDeploymentConfigsOutput) GoString added in v0.6.5

func (s ListDeploymentConfigsOutput) GoString() string

GoString returns the string representation

func (ListDeploymentConfigsOutput) String added in v0.6.5

String returns the string representation

type ListDeploymentGroupsInput

type ListDeploymentGroupsInput struct {

	// The name of an AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`

	// 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.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the input of a list deployment groups operation.

func (ListDeploymentGroupsInput) GoString added in v0.6.5

func (s ListDeploymentGroupsInput) GoString() string

GoString returns the string representation

func (ListDeploymentGroupsInput) String added in v0.6.5

func (s ListDeploymentGroupsInput) String() string

String returns the string representation

func (*ListDeploymentGroupsInput) Validate added in v1.1.21

func (s *ListDeploymentGroupsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListDeploymentGroupsOutput

type ListDeploymentGroupsOutput struct {

	// The application name.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`

	// A list of corresponding deployment group names.
	DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"`

	// 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.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of a list deployment groups operation.

func (ListDeploymentGroupsOutput) GoString added in v0.6.5

func (s ListDeploymentGroupsOutput) GoString() string

GoString returns the string representation

func (ListDeploymentGroupsOutput) String added in v0.6.5

String returns the string representation

type ListDeploymentInstancesInput

type ListDeploymentInstancesInput struct {

	// The unique ID of a deployment.
	DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`

	// A subset of instances to list by status:
	//
	//  Pending: Include those instance with pending deployments. InProgress: Include
	// those instance where deployments are still in progress. Succeeded: Include
	// those instances with successful deployments. Failed: Include those instance
	// with failed deployments. Skipped: Include those instance with skipped deployments.
	// Unknown: Include those instance with deployments in an unknown state.
	InstanceStatusFilter []*string `locationName:"instanceStatusFilter" type:"list"`

	// 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.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the input of a list deployment instances operation.

func (ListDeploymentInstancesInput) GoString added in v0.6.5

func (s ListDeploymentInstancesInput) GoString() string

GoString returns the string representation

func (ListDeploymentInstancesInput) String added in v0.6.5

String returns the string representation

func (*ListDeploymentInstancesInput) Validate added in v1.1.21

func (s *ListDeploymentInstancesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListDeploymentInstancesOutput

type ListDeploymentInstancesOutput struct {

	// A list of instance IDs.
	InstancesList []*string `locationName:"instancesList" type:"list"`

	// 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.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of a list deployment instances operation.

func (ListDeploymentInstancesOutput) GoString added in v0.6.5

GoString returns the string representation

func (ListDeploymentInstancesOutput) String added in v0.6.5

String returns the string representation

type ListDeploymentsInput

type ListDeploymentsInput struct {

	// The name of an AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`

	// A time range (start and end) for returning a subset of the list of deployments.
	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"`

	// A subset of deployments to list by status:
	//
	//  Created: Include created deployments in the resulting list. Queued: Include
	// queued deployments in the resulting list. In Progress: Include in-progress
	// deployments in the resulting list. Succeeded: Include successful deployments
	// in the resulting list. Failed: Include failed deployments in the resulting
	// list. Stopped: Include stopped deployments in the resulting list.
	IncludeOnlyStatuses []*string `locationName:"includeOnlyStatuses" type:"list"`

	// An identifier returned from the previous list deployments call. It can be
	// used to return the next set of deployments in the list.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the input of a list deployments operation.

func (ListDeploymentsInput) GoString added in v0.6.5

func (s ListDeploymentsInput) GoString() string

GoString returns the string representation

func (ListDeploymentsInput) String added in v0.6.5

func (s ListDeploymentsInput) String() string

String returns the string representation

func (*ListDeploymentsInput) Validate added in v1.1.21

func (s *ListDeploymentsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListDeploymentsOutput

type ListDeploymentsOutput struct {

	// A list of deployment IDs.
	Deployments []*string `locationName:"deployments" type:"list"`

	// 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.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of a list deployments operation.

func (ListDeploymentsOutput) GoString added in v0.6.5

func (s ListDeploymentsOutput) GoString() string

GoString returns the string representation

func (ListDeploymentsOutput) String added in v0.6.5

func (s ListDeploymentsOutput) String() string

String returns the string representation

type ListOnPremisesInstancesInput

type ListOnPremisesInstancesInput struct {

	// 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.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The registration status of the on-premises instances:
	//
	//  Deregistered: Include deregistered on-premises instances in the resulting
	// list. Registered: Include registered on-premises instances in the resulting
	// list.
	RegistrationStatus *string `locationName:"registrationStatus" type:"string" enum:"RegistrationStatus"`

	// The on-premises instance tags that will be used to restrict the corresponding
	// on-premises instance names returned.
	TagFilters []*TagFilter `locationName:"tagFilters" type:"list"`
	// contains filtered or unexported fields
}

Represents the input of a list on-premises instances operation.

.

func (ListOnPremisesInstancesInput) GoString added in v0.6.5

func (s ListOnPremisesInstancesInput) GoString() string

GoString returns the string representation

func (ListOnPremisesInstancesInput) String added in v0.6.5

String returns the string representation

type ListOnPremisesInstancesOutput

type ListOnPremisesInstancesOutput struct {

	// The list of matching on-premises instance names.
	InstanceNames []*string `locationName:"instanceNames" type:"list"`

	// 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.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of list on-premises instances operation.

func (ListOnPremisesInstancesOutput) GoString added in v0.6.5

GoString returns the string representation

func (ListOnPremisesInstancesOutput) String added in v0.6.5

String returns the string representation

type MinimumHealthyHosts

type MinimumHealthyHosts struct {

	// The minimum healthy instance type:
	//
	//  HOST_COUNT: The minimum number of healthy instance as an absolute value.
	// FLEET_PERCENT: The minimum number of healthy instance as a percentage of
	// the total number of instance in the deployment.  In an example of nine instance,
	// if a HOST_COUNT of six is specified, deploy 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.
	//
	// In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime
	// will return a minimum healthy instance type of MOST_CONCURRENCY and a value
	// 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
	// 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.
	Type *string `locationName:"type" type:"string" enum:"MinimumHealthyHostsType"`

	// The minimum healthy instance value.
	Value *int64 `locationName:"value" type:"integer"`
	// contains filtered or unexported fields
}

Information about minimum healthy instance.

func (MinimumHealthyHosts) GoString added in v0.6.5

func (s MinimumHealthyHosts) GoString() string

GoString returns the string representation

func (MinimumHealthyHosts) String added in v0.6.5

func (s MinimumHealthyHosts) String() string

String returns the string representation

type RegisterApplicationRevisionInput

type RegisterApplicationRevisionInput struct {

	// The name of an AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`

	// A comment about the revision.
	Description *string `locationName:"description" type:"string"`

	// Information about the application revision to register, including type and
	// location.
	Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a register application revision operation.

func (RegisterApplicationRevisionInput) GoString added in v0.6.5

GoString returns the string representation

func (RegisterApplicationRevisionInput) String added in v0.6.5

String returns the string representation

func (*RegisterApplicationRevisionInput) Validate added in v1.1.21

Validate inspects the fields of the type to determine if they are valid.

type RegisterApplicationRevisionOutput

type RegisterApplicationRevisionOutput struct {
	// contains filtered or unexported fields
}

func (RegisterApplicationRevisionOutput) GoString added in v0.6.5

GoString returns the string representation

func (RegisterApplicationRevisionOutput) String added in v0.6.5

String returns the string representation

type RegisterOnPremisesInstanceInput

type RegisterOnPremisesInstanceInput struct {

	// The ARN of the IAM user to associate with the on-premises instance.
	IamUserArn *string `locationName:"iamUserArn" type:"string" required:"true"`

	// The name of the on-premises instance to register.
	InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of the register on-premises instance operation.

func (RegisterOnPremisesInstanceInput) GoString added in v0.6.5

GoString returns the string representation

func (RegisterOnPremisesInstanceInput) String added in v0.6.5

String returns the string representation

func (*RegisterOnPremisesInstanceInput) Validate added in v1.1.21

func (s *RegisterOnPremisesInstanceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RegisterOnPremisesInstanceOutput

type RegisterOnPremisesInstanceOutput struct {
	// contains filtered or unexported fields
}

func (RegisterOnPremisesInstanceOutput) GoString added in v0.6.5

GoString returns the string representation

func (RegisterOnPremisesInstanceOutput) String added in v0.6.5

String returns the string representation

type RemoveTagsFromOnPremisesInstancesInput

type RemoveTagsFromOnPremisesInstancesInput struct {

	// The names of the on-premises instances from which to remove tags.
	InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"`

	// The tag key-value pairs to remove from the on-premises instances.
	Tags []*Tag `locationName:"tags" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a remove tags from on-premises instances operation.

func (RemoveTagsFromOnPremisesInstancesInput) GoString added in v0.6.5

GoString returns the string representation

func (RemoveTagsFromOnPremisesInstancesInput) String added in v0.6.5

String returns the string representation

func (*RemoveTagsFromOnPremisesInstancesInput) Validate added in v1.1.21

Validate inspects the fields of the type to determine if they are valid.

type RemoveTagsFromOnPremisesInstancesOutput

type RemoveTagsFromOnPremisesInstancesOutput struct {
	// contains filtered or unexported fields
}

func (RemoveTagsFromOnPremisesInstancesOutput) GoString added in v0.6.5

GoString returns the string representation

func (RemoveTagsFromOnPremisesInstancesOutput) String added in v0.6.5

String returns the string representation

type RevisionInfo added in v1.1.4

type RevisionInfo struct {

	// Information about an application revision.
	GenericRevisionInfo *GenericRevisionInfo `locationName:"genericRevisionInfo" type:"structure"`

	// Information about the location of an application revision.
	RevisionLocation *RevisionLocation `locationName:"revisionLocation" type:"structure"`
	// contains filtered or unexported fields
}

Information about an application revision.

func (RevisionInfo) GoString added in v1.1.4

func (s RevisionInfo) GoString() string

GoString returns the string representation

func (RevisionInfo) String added in v1.1.4

func (s RevisionInfo) String() string

String returns the string representation

type RevisionLocation

type RevisionLocation struct {

	// Information about the location of application artifacts stored in GitHub.
	GitHubLocation *GitHubLocation `locationName:"gitHubLocation" type:"structure"`

	// The type of application revision:
	//
	//  S3: An application revision stored in Amazon S3. GitHub: An application
	// revision stored in GitHub.
	RevisionType *string `locationName:"revisionType" type:"string" enum:"RevisionLocationType"`

	// Information about the location of application artifacts stored in Amazon
	// S3.
	S3Location *S3Location `locationName:"s3Location" type:"structure"`
	// contains filtered or unexported fields
}

Information about the location of an application revision.

func (RevisionLocation) GoString added in v0.6.5

func (s RevisionLocation) GoString() string

GoString returns the string representation

func (RevisionLocation) String added in v0.6.5

func (s RevisionLocation) String() string

String returns the string representation

type S3Location

type S3Location struct {

	// 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:
	//
	//  tar: A tar archive file. tgz: A compressed tar archive file. zip: A zip
	// archive file.
	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"`
	// contains filtered or unexported fields
}

Information about the location of application artifacts stored in Amazon S3.

func (S3Location) GoString added in v0.6.5

func (s S3Location) GoString() string

GoString returns the string representation

func (S3Location) String added in v0.6.5

func (s S3Location) String() string

String returns the string representation

type StopDeploymentInput

type StopDeploymentInput struct {

	// The unique ID of a deployment.
	DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a stop deployment operation.

func (StopDeploymentInput) GoString added in v0.6.5

func (s StopDeploymentInput) GoString() string

GoString returns the string representation

func (StopDeploymentInput) String added in v0.6.5

func (s StopDeploymentInput) String() string

String returns the string representation

func (*StopDeploymentInput) Validate added in v1.1.21

func (s *StopDeploymentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StopDeploymentOutput

type StopDeploymentOutput struct {

	// The status of the stop deployment operation:
	//
	//  Pending: The stop operation is pending. Succeeded: The stop operation was
	// successful.
	Status *string `locationName:"status" type:"string" enum:"StopStatus"`

	// An accompanying status message.
	StatusMessage *string `locationName:"statusMessage" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of a stop deployment operation.

func (StopDeploymentOutput) GoString added in v0.6.5

func (s StopDeploymentOutput) GoString() string

GoString returns the string representation

func (StopDeploymentOutput) String added in v0.6.5

func (s StopDeploymentOutput) String() string

String returns the string representation

type Tag

type Tag struct {

	// The tag's key.
	Key *string `type:"string"`

	// The tag's value.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a tag.

func (Tag) GoString added in v0.6.5

func (s Tag) GoString() string

GoString returns the string representation

func (Tag) String added in v0.6.5

func (s Tag) String() string

String returns the string representation

type TagFilter

type TagFilter struct {

	// The on-premises instance tag filter key.
	Key *string `type:"string"`

	// The on-premises instance tag filter type:
	//
	//  KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value.
	Type *string `type:"string" enum:"TagFilterType"`

	// The on-premises instance tag filter value.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Information about an on-premises instance tag filter.

func (TagFilter) GoString added in v0.6.5

func (s TagFilter) GoString() string

GoString returns the string representation

func (TagFilter) String added in v0.6.5

func (s TagFilter) String() string

String returns the string representation

type TimeRange

type TimeRange struct {

	// The end time of the time range.
	//
	// Specify null to leave the end time open-ended.
	End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"unix"`

	// The start time of the time range.
	//
	// Specify null to leave the start time open-ended.
	Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Information about a time range.

func (TimeRange) GoString added in v0.6.5

func (s TimeRange) GoString() string

GoString returns the string representation

func (TimeRange) String added in v0.6.5

func (s TimeRange) String() string

String returns the string representation

type TriggerConfig added in v1.1.4

type TriggerConfig struct {

	// The event type or types for which notifications are triggered.
	//
	// The following event type values are supported:
	//
	//  DEPLOYMENT_START DEPLOYMENT_SUCCESS DEPLOYMENT_FAILURE DEPLOYMENT_STOP
	// INSTANCE_START INSTANCE_SUCCESS INSTANCE_FAILURE
	TriggerEvents []*string `locationName:"triggerEvents" type:"list"`

	// The name of the notification trigger.
	TriggerName *string `locationName:"triggerName" type:"string"`

	// The ARN of the Amazon Simple Notification Service topic through which notifications
	// about deployment or instance events are sent.
	TriggerTargetArn *string `locationName:"triggerTargetArn" type:"string"`
	// contains filtered or unexported fields
}

Information about notification triggers for the deployment group.

func (TriggerConfig) GoString added in v1.1.4

func (s TriggerConfig) GoString() string

GoString returns the string representation

func (TriggerConfig) String added in v1.1.4

func (s TriggerConfig) String() string

String returns the string representation

type UpdateApplicationInput

type UpdateApplicationInput struct {

	// The current name of the application you want to change.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`

	// The new name to give the application.
	NewApplicationName *string `locationName:"newApplicationName" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Represents the input of an update application operation.

func (UpdateApplicationInput) GoString added in v0.6.5

func (s UpdateApplicationInput) GoString() string

GoString returns the string representation

func (UpdateApplicationInput) String added in v0.6.5

func (s UpdateApplicationInput) String() string

String returns the string representation

func (*UpdateApplicationInput) Validate added in v1.1.21

func (s *UpdateApplicationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateApplicationOutput

type UpdateApplicationOutput struct {
	// contains filtered or unexported fields
}

func (UpdateApplicationOutput) GoString added in v0.6.5

func (s UpdateApplicationOutput) GoString() string

GoString returns the string representation

func (UpdateApplicationOutput) String added in v0.6.5

func (s UpdateApplicationOutput) String() string

String returns the string representation

type UpdateDeploymentGroupInput

type UpdateDeploymentGroupInput struct {

	// The application name corresponding to the deployment group to update.
	ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`

	// The replacement list of Auto Scaling groups to be included in the deployment
	// 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
	// group names.
	AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`

	// The current name of the deployment group.
	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"`

	// 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.
	Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`

	// The new name of the deployment group, if you want to change it.
	NewDeploymentGroupName *string `locationName:"newDeploymentGroupName" min:"1" type:"string"`

	// 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.
	OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`

	// A replacement ARN for the service role, if you want to change it.
	ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`

	// Information about triggers to change when the deployment group is updated.
	TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
	// contains filtered or unexported fields
}

Represents the input of an update deployment group operation.

func (UpdateDeploymentGroupInput) GoString added in v0.6.5

func (s UpdateDeploymentGroupInput) GoString() string

GoString returns the string representation

func (UpdateDeploymentGroupInput) String added in v0.6.5

String returns the string representation

func (*UpdateDeploymentGroupInput) Validate added in v1.1.21

func (s *UpdateDeploymentGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateDeploymentGroupOutput

type UpdateDeploymentGroupOutput struct {

	// 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
	// the output contains data, AWS CodeDeploy could not remove some Auto Scaling
	// lifecycle event hooks from the AWS account.
	HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"`
	// contains filtered or unexported fields
}

Represents the output of an update deployment group operation.

func (UpdateDeploymentGroupOutput) GoString added in v0.6.5

func (s UpdateDeploymentGroupOutput) GoString() string

GoString returns the string representation

func (UpdateDeploymentGroupOutput) String added in v0.6.5

String returns the string representation

Directories

Path Synopsis
Package codedeployiface provides an interface for the AWS CodeDeploy.
Package codedeployiface provides an interface for the AWS CodeDeploy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL