codedeploy

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package codedeploy provides a client for AWS CodeDeploy.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTagsToOnPremisesInstancesInput

type AddTagsToOnPremisesInstancesInput struct {
	// The names of the on-premises instances to add tags to.
	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 nulls 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 an adds tags to on-premises instance operation.

type AddTagsToOnPremisesInstancesOutput

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

type ApplicationInfo

type ApplicationInfo struct {
	// The application ID.
	ApplicationID *string `locationName:"applicationId" type:"string"`

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

	// The time that 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.

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.

type BatchGetApplicationsInput

type BatchGetApplicationsInput struct {
	// A list of application names, with multiple 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.

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.

type BatchGetDeploymentsInput

type BatchGetDeploymentsInput struct {
	// A list of deployment IDs, with multiple 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.

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.

type BatchGetOnPremisesInstancesInput

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

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

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.

type CodeDeploy

type CodeDeploy struct {
	*aws.Service
}

CodeDeploy is a client for CodeDeploy.

func New

func New(config *aws.Config) *CodeDeploy

New returns a new CodeDeploy client.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) AddTagsToOnPremisesInstancesRequest

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

AddTagsToOnPremisesInstancesRequest generates a request for the AddTagsToOnPremisesInstances operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) BatchGetApplicationsRequest

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

BatchGetApplicationsRequest generates a request for the BatchGetApplications operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) BatchGetDeploymentsRequest

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

BatchGetDeploymentsRequest generates a request for the BatchGetDeployments operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) BatchGetOnPremisesInstancesRequest

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

BatchGetOnPremisesInstancesRequest generates a request for the BatchGetOnPremisesInstances operation.

func (*CodeDeploy) CreateApplication

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

Creates a new application.

Example
package main

import (
	"fmt"

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

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) CreateApplicationRequest

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

CreateApplicationRequest generates a request for the CreateApplication operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

	params := &codedeploy.CreateDeploymentInput{
		ApplicationName:               aws.String("ApplicationName"), // Required
		DeploymentConfigName:          aws.String("DeploymentConfigName"),
		DeploymentGroupName:           aws.String("DeploymentGroupName"),
		Description:                   aws.String("Description"),
		IgnoreApplicationStopFailures: aws.Boolean(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 {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) CreateDeploymentConfig

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

Creates a new deployment configuration.

Example
package main

import (
	"fmt"

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

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) CreateDeploymentConfigRequest

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

CreateDeploymentConfigRequest generates a request for the CreateDeploymentConfig operation.

func (*CodeDeploy) CreateDeploymentGroup

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

Creates a new deployment group for application revisions to be deployed to.

Example
package main

import (
	"fmt"

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

func main() {
	svc := codedeploy.New(nil)

	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{
			&codedeploy.EC2TagFilter{ // Required
				Key:   aws.String("Key"),
				Type:  aws.String("EC2TagFilterType"),
				Value: aws.String("Value"),
			},
			// More values...
		},
		OnPremisesInstanceTagFilters: []*codedeploy.TagFilter{
			&codedeploy.TagFilter{ // Required
				Key:   aws.String("Key"),
				Type:  aws.String("TagFilterType"),
				Value: aws.String("Value"),
			},
			// More values...
		},
	}
	resp, err := svc.CreateDeploymentGroup(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) CreateDeploymentGroupRequest

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

CreateDeploymentGroupRequest generates a request for the CreateDeploymentGroup operation.

func (*CodeDeploy) CreateDeploymentRequest

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

CreateDeploymentRequest generates a request for the CreateDeployment operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) DeleteApplicationRequest

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

DeleteApplicationRequest generates a request for the DeleteApplication operation.

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. Also, predefined configurations cannot be deleted.

Example
package main

import (
	"fmt"

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

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) DeleteDeploymentConfigRequest

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

DeleteDeploymentConfigRequest generates a request for the DeleteDeploymentConfig operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) DeleteDeploymentGroupRequest

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

DeleteDeploymentGroupRequest generates a request for the DeleteDeploymentGroup operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) DeregisterOnPremisesInstanceRequest

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

DeregisterOnPremisesInstanceRequest generates a request for the DeregisterOnPremisesInstance operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) GetApplicationRequest

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

GetApplicationRequest generates a request for the GetApplication operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

	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 {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) GetApplicationRevisionRequest

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

GetApplicationRevisionRequest generates a request for the GetApplicationRevision operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.StringValue(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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) GetDeploymentConfigRequest

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

GetDeploymentConfigRequest generates a request for the GetDeploymentConfig operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) GetDeploymentGroupRequest

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

GetDeploymentGroupRequest generates a request for the GetDeploymentGroup operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) GetDeploymentInstanceRequest

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

GetDeploymentInstanceRequest generates a request for the GetDeploymentInstance operation.

func (*CodeDeploy) GetDeploymentRequest

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

GetDeploymentRequest generates a request for the GetDeployment operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) GetOnPremisesInstanceRequest

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

GetOnPremisesInstanceRequest generates a request for the GetOnPremisesInstance operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

	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 {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) ListApplicationRevisionsRequest

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

ListApplicationRevisionsRequest generates a request for the ListApplicationRevisions operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) ListApplicationsRequest

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

ListApplicationsRequest generates a request for the ListApplications operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) ListDeploymentConfigsRequest

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

ListDeploymentConfigsRequest generates a request for the ListDeploymentConfigs operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) ListDeploymentGroupsRequest

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

ListDeploymentGroupsRequest generates a request for the ListDeploymentGroups operation.

func (*CodeDeploy) ListDeploymentInstances

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

Lists the instances 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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

	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 {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) ListDeploymentInstancesRequest

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

ListDeploymentInstancesRequest generates a request for the ListDeploymentInstances operation.

func (*CodeDeploy) ListDeployments

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

Lists the deployments within 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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

	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 {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) ListDeploymentsRequest

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

ListDeploymentsRequest generates a request for the ListDeployments operation.

func (*CodeDeploy) ListOnPremisesInstances

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

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

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

	params := &codedeploy.ListOnPremisesInstancesInput{
		NextToken:          aws.String("NextToken"),
		RegistrationStatus: aws.String("RegistrationStatus"),
		TagFilters: []*codedeploy.TagFilter{
			&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 {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) ListOnPremisesInstancesRequest

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

ListOnPremisesInstancesRequest generates a request for the ListOnPremisesInstances operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

	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 {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) RegisterApplicationRevisionRequest

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

RegisterApplicationRevisionRequest generates a request for the RegisterApplicationRevision operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) RegisterOnPremisesInstanceRequest

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

RegisterOnPremisesInstanceRequest generates a request for the RegisterOnPremisesInstance operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest

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

RemoveTagsFromOnPremisesInstancesRequest generates a request for the RemoveTagsFromOnPremisesInstances operation.

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/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/codedeploy"
)

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) StopDeploymentRequest

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

StopDeploymentRequest generates a request for the StopDeployment operation.

func (*CodeDeploy) UpdateApplication

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

Changes an existing application's name.

Example
package main

import (
	"fmt"

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

func main() {
	svc := codedeploy.New(nil)

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

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) UpdateApplicationRequest

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

UpdateApplicationRequest generates a request for the UpdateApplication operation.

func (*CodeDeploy) UpdateDeploymentGroup

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

Changes information about an existing deployment group.

Example
package main

import (
	"fmt"

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

func main() {
	svc := codedeploy.New(nil)

	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{
			&codedeploy.EC2TagFilter{ // Required
				Key:   aws.String("Key"),
				Type:  aws.String("EC2TagFilterType"),
				Value: aws.String("Value"),
			},
			// More values...
		},
		NewDeploymentGroupName: aws.String("DeploymentGroupName"),
		OnPremisesInstanceTagFilters: []*codedeploy.TagFilter{
			&codedeploy.TagFilter{ // Required
				Key:   aws.String("Key"),
				Type:  aws.String("TagFilterType"),
				Value: aws.String("Value"),
			},
			// More values...
		},
		ServiceRoleARN: aws.String("Role"),
	}
	resp, err := svc.UpdateDeploymentGroup(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS Error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, The SDK should alwsy return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

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

func (*CodeDeploy) UpdateDeploymentGroupRequest

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

UpdateDeploymentGroupRequest generates a request for the UpdateDeploymentGroup operation.

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" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a create application operation.

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.

type CreateDeploymentConfigInput

type CreateDeploymentConfigInput struct {
	// The name of the deployment configuration to create.
	DeploymentConfigName *string `locationName:"deploymentConfigName" 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, then at the
	// start of the deployment AWS CodeDeploy converts the percentage to the equivalent
	// number of instances and rounds fractional instances up.  The value parameter
	// takes an integer.
	//
	// For example, to set a minimum of 95% healthy instances, 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.

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.

type CreateDeploymentGroupInput

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

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

	// If specified, the deployment configuration name must be one of the predefined
	// values, or it can be a custom deployment configuration:
	//
	//  CodeDeployDefault.AllAtOnce deploys an application revision to up to all
	// of the instances at once. The overall deployment succeeds if the application
	// revision deploys to at least one of the instances. The overall deployment
	// fails after the application revision fails to deploy to all of the instances.
	// For example, for 9 instances, deploy to up to all 9 instances at once. The
	// overall deployment succeeds if any of the 9 instances is successfully deployed
	// to, and it fails if all 9 instances fail to be deployed to. 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 deploys
	// to at least half of the instances (with fractions rounded up); otherwise,
	// the deployment fails. For example, for 9 instances, deploy to up to 4 instances
	// at a time. The overall deployment succeeds if 5 or more instances are successfully
	// deployed to; otherwise, the deployment fails. Note that the deployment may
	// successfully deploy to some instances, even if the overall deployment fails.
	// CodeDeployDefault.OneAtATime deploys the application revision to only one
	// of the instances at a time. The overall deployment succeeds if the application
	// revision deploys to all of the instances. The overall deployment fails after
	// the application revision first fails to deploy to any one instances. For
	// example, for 9 instances, deploy to one instance at a time. The overall deployment
	// succeeds if all 9 instances are successfully deployed to, and it fails if
	// any of one of the 9 instances fail to be deployed to. Note that the deployment
	// may successfully deploy to some instances, even if the overall deployment
	// fails. This is the default deployment configuration if a configuration isn't
	// specified for either the deployment or the deployment group.  To create a
	// custom deployment configuration, call the create deployment configuration
	// operation.
	DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string"`

	// The name of an existing deployment group for the specified application.
	DeploymentGroupName *string `locationName:"deploymentGroupName" type:"string" required:"true"`

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

	// The on-premises instance tags to filter on.
	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"`
	// contains filtered or unexported fields
}

Represents the input of a create deployment group operation.

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.

type CreateDeploymentInput

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

	// The name of an existing 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" type:"string"`

	// The deployment group's name.
	DeploymentGroupName *string `locationName:"deploymentGroupName" 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 fail to a specific instance, the deployment will not be
	// considered to have failed to that instance 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 a specific instance, the deployment
	// will stop to that instance, and the deployment to that instance will be considered
	// to have failed.
	IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`

	// The type of revision to deploy, along with information about the revision's
	// location.
	Revision *RevisionLocation `locationName:"revision" type:"structure"`
	// contains filtered or unexported fields
}

Represents the input of a create deployment operation.

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.

type DeleteApplicationInput

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

Represents the input of a delete application operation.

type DeleteApplicationOutput

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

type DeleteDeploymentConfigInput

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

Represents the input of a delete deployment configuration operation.

type DeleteDeploymentConfigOutput

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

type DeleteDeploymentGroupInput

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

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

Represents the input of a delete deployment group operation.

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. If the output does contain 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.

type DeploymentConfigInfo

type DeploymentConfigInfo struct {
	// The time that 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" type:"string"`

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

Information about a deployment configuration.

type DeploymentGroupInfo

type DeploymentGroupInfo struct {
	// The application name.
	ApplicationName *string `locationName:"applicationName" type:"string"`

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

	// The deployment configuration name.
	DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string"`

	// The deployment group ID.
	DeploymentGroupID *string `locationName:"deploymentGroupId" type:"string"`

	// The deployment group name.
	DeploymentGroupName *string `locationName:"deploymentGroupName" type:"string"`

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

	// The on-premises instance tags to filter on.
	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 the revision's
	// type and its location.
	TargetRevision *RevisionLocation `locationName:"targetRevision" type:"structure"`
	// contains filtered or unexported fields
}

Information about a deployment group.

type DeploymentInfo

type DeploymentInfo struct {
	// The application name.
	ApplicationName *string `locationName:"applicationName" type:"string"`

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

	// How the deployment was created:
	//
	//  user: A user created the deployment. autoscaling: Auto Scaling created
	// the deployment.
	Creator *string `locationName:"creator" type:"string"`

	// The deployment configuration name.
	DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string"`

	// The deployment group name.
	DeploymentGroupName *string `locationName:"deploymentGroupName" 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 fail to a specific instance, the deployment will not be considered
	// to have failed to that instance 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 fail to a specific instance, the deployment
	// will stop to that instance, and the deployment to that instance will be considered
	// to have failed.
	IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`

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

	// A timestamp indicating when the deployment began deploying to the deployment
	// group.
	//
	// Note that 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 various back-end servers that participate in the overall 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"`
	// contains filtered or unexported fields
}

Information about a deployment.

type DeploymentOverview

type DeploymentOverview struct {
	// The number of instances that have failed in the deployment.
	Failed *int64 `type:"long"`

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

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

	// The number of instances that have been skipped in the deployment.
	Skipped *int64 `type:"long"`

	// The number of instances that have succeeded in the deployment.
	Succeeded *int64 `type:"long"`
	// contains filtered or unexported fields
}

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

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.

type DeregisterOnPremisesInstanceOutput

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

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

	// The last portion of the associated 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.

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

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

Information about a tag filter.

type ErrorInformation

type ErrorInformation struct {
	// The error code:
	//
	//  APPLICATION_MISSING: The application was missing. Note that this error
	// code will most likely be raised if the application is deleted after the deployment
	// is created but before it starts. DEPLOYMENT_GROUP_MISSING: The deployment
	// group was missing. Note that this error code will most likely be raised if
	// the deployment group is deleted after the deployment is created but before
	// it starts. HEALTH_CONSTRAINTS: The deployment failed on too many instances
	// to be able to successfully deploy within the specified instance health constraints.
	// HEALTH_CONSTRAINTS_INVALID: The revision can never successfully deploy within
	// the instance health constraints as 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 instances were specified, or no instances can
	// be found. OVER_MAX_INSTANCES: The maximum number of instances 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. Note that this
	// error code will most likely be raised if the revision is deleted after the
	// deployment is created but before it starts.
	Code *string `locationName:"code" type:"string"`

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

Information about a deployment error.

type GenericRevisionInfo

type GenericRevisionInfo struct {
	// A list of deployment groups that use this 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.

type GetApplicationInput

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

Represents the input of a get application operation.

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.

type GetApplicationRevisionInput

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

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

Represents the input of a get application revision operation.

type GetApplicationRevisionOutput

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

	// Additional information about the revision, including the revision's type
	// and its 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.

type GetDeploymentConfigInput

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

Represents the input of a get deployment configuration operation.

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.

type GetDeploymentGroupInput

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

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

Represents the input of a get deployment group operation.

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.

type GetDeploymentInput

type GetDeploymentInput struct {
	// An existing 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.

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's deployment group.
	InstanceID *string `locationName:"instanceId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents the input of a get deployment instance operation.

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.

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.

type GetOnPremisesInstanceInput

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

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

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.

type GitHubLocation

type GitHubLocation struct {
	// The SHA1 commit ID of the GitHub commit that references the 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 that are stored in GitHub.

type InstanceInfo

type InstanceInfo struct {
	// If the on-premises instance was deregistered, the time that 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 that the on-premises instance was registered.
	RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"`

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

Information about an on-premises instance.

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

Information about an instance in a deployment.

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

Information about a deployment lifecycle event.

type ListApplicationRevisionsInput

type ListApplicationRevisionsInput struct {
	// The name of an existing AWS CodeDeploy application associated with the applicable
	// IAM user or AWS account.
	ApplicationName *string `locationName:"applicationName" 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, regardless of whether they are target
	// revisions of a deployment group.
	Deployed *string `locationName:"deployed" type:"string"`

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

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

	// A specific 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 sort the list results by:
	//
	//  registerTime: Sort the list results by when the revisions were registered
	// with AWS CodeDeploy. firstUsedTime: Sort the list results by when the revisions
	// were first used by in a deployment. lastUsedTime: Sort the list results by
	// when 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"`

	// The order to sort the list results by:
	//
	//  ascending: Sort the list of results in ascending order. descending: Sort
	// the list of results in 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"`
	// contains filtered or unexported fields
}

Represents the input of a list application revisions operation.

type ListApplicationRevisionsOutput

type ListApplicationRevisionsOutput struct {
	// If the amount of information that is returned is significantly large, an
	// identifier will also be returned, which 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 revision 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.

type ListApplicationsInput

type ListApplicationsInput struct {
	// An identifier that was returned from the previous list applications call,
	// which 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.

type ListApplicationsOutput

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

	// If the amount of information that is returned is significantly large, an
	// identifier will also be returned, which can be used in a subsequent list
	// applications call to return the next set of applications in the list.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Represents the output of a list applications operation.

type ListDeploymentConfigsInput

type ListDeploymentConfigsInput struct {
	// An identifier that was returned from the previous list deployment configurations
	// call, which 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.

type ListDeploymentConfigsOutput

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

	// If the amount of information that is returned is significantly large, an
	// identifier will also be returned, which 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.

type ListDeploymentGroupsInput

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

	// An identifier that was returned from the previous list deployment groups
	// call, which 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.

type ListDeploymentGroupsOutput

type ListDeploymentGroupsOutput struct {
	// The application name.
	ApplicationName *string `locationName:"applicationName" type:"string"`

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

	// If the amount of information that is returned is significantly large, an
	// identifier will also be returned, which 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.

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 in the resulting list those instances with pending deployments.
	// InProgress: Include in the resulting list those instances with in-progress
	// deployments. Succeeded: Include in the resulting list those instances with
	// succeeded deployments. Failed: Include in the resulting list those instances
	// with failed deployments. Skipped: Include in the resulting list those instances
	// with skipped deployments. Unknown: Include in the resulting list those instances
	// with deployments in an unknown state.
	InstanceStatusFilter []*string `locationName:"instanceStatusFilter" type:"list"`

	// An identifier that was returned from the previous list deployment instances
	// call, which 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.

type ListDeploymentInstancesOutput

type ListDeploymentInstancesOutput struct {
	// A list of instances IDs.
	InstancesList []*string `locationName:"instancesList" type:"list"`

	// If the amount of information that is returned is significantly large, an
	// identifier will also be returned, which 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.

type ListDeploymentsInput

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

	// A deployment creation start- and end-time range 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" type:"string"`

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

	// An identifier that was returned from the previous list deployments call,
	// which 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.

type ListDeploymentsOutput

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

	// If the amount of information that is returned is significantly large, an
	// identifier will also be returned, which 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.

type ListOnPremisesInstancesInput

type ListOnPremisesInstancesInput struct {
	// An identifier that was returned from the previous list on-premises instances
	// call, which can be used to return the next set of on-premises instances in
	// the list.
	NextToken *string `locationName:"nextToken" type:"string"`

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

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

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

.

type ListOnPremisesInstancesOutput

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

	// If the amount of information that is returned is significantly large, an
	// identifier will also be returned, which 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.

type MinimumHealthyHosts

type MinimumHealthyHosts struct {
	// The minimum healthy instances type:
	//
	//  HOST_COUNT: The minimum number of healthy instances, as an absolute value.
	// FLEET_PERCENT: The minimum number of healthy instances, as a percentage of
	// the total number of instances in the deployment.  For example, for 9 instances,
	// if a HOST_COUNT of 6 is specified, deploy to up to 3 instances at a time.
	// The deployment succeeds if 6 or more instances are successfully deployed
	// to; otherwise, the deployment fails. If a FLEET_PERCENT of 40 is specified,
	// deploy to up to 5 instances at a time. The deployment succeeds if 4 or more
	// instances are successfully deployed to; otherwise, the deployment fails.
	//
	// In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime
	// will return a minimum healthy instances type of MOST_CONCURRENCY and a value
	// of 1. This means a deployment to only one instances at a time. (You cannot
	// set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.)
	Type *string `locationName:"type" type:"string"`

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

Information about minimum healthy instances.

type RegisterApplicationRevisionInput

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

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

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

Represents the input of a register application revision operation.

type RegisterApplicationRevisionOutput

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

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 register on-premises instance operation.

type RegisterOnPremisesInstanceOutput

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

type RemoveTagsFromOnPremisesInstancesInput

type RemoveTagsFromOnPremisesInstancesInput struct {
	// The names of the on-premises instances to remove tags from.
	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.

type RemoveTagsFromOnPremisesInstancesOutput

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

type RevisionLocation

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

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

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

Information about an application revision's location.

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

	// 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 that are stored in Amazon S3.

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.

type StopDeploymentOutput

type StopDeploymentOutput struct {
	// The status of the stop deployment operation:
	//
	//  Pending: The stop operation is pending. Succeeded: The stop operation succeeded.
	Status *string `locationName:"status" type:"string"`

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

Represents the output of a stop deployment operation.

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.

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

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

Information about an on-premises instance tag filter.

type TimeRange

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

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

Information about a time range.

type UpdateApplicationInput

type UpdateApplicationInput struct {
	// The current name of the application that you want to change.
	ApplicationName *string `locationName:"applicationName" type:"string"`

	// The new name that you want to change the application to.
	NewApplicationName *string `locationName:"newApplicationName" type:"string"`
	// contains filtered or unexported fields
}

Represents the input of an update application operation.

type UpdateApplicationOutput

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

type UpdateDeploymentGroupInput

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

	// The replacement list of Auto Scaling groups to be included in the deployment
	// group, if you want to change them.
	AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`

	// The current name of the existing deployment group.
	CurrentDeploymentGroupName *string `locationName:"currentDeploymentGroupName" type:"string" required:"true"`

	// The replacement deployment configuration name to use, if you want to change
	// it.
	DeploymentConfigName *string `locationName:"deploymentConfigName" type:"string"`

	// The replacement set of Amazon EC2 tags to filter on, if you want to change
	// them.
	EC2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`

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

	// The replacement set of on-premises instance tags for filter on, if you want
	// to change them.
	OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`

	// A replacement service role's ARN, if you want to change it.
	ServiceRoleARN *string `locationName:"serviceRoleArn" type:"string"`
	// contains filtered or unexported fields
}

Represents the input of an update deployment group operation.

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 does contain 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.

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