mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+981
-477
File diff suppressed because it is too large
Load Diff
+6
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package codedeployiface provides an interface to enable mocking the AWS CodeDeploy service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS CodeDeploy.
|
||||
@@ -194,6 +194,10 @@ type CodeDeployAPI interface {
|
||||
ListDeploymentsPages(*codedeploy.ListDeploymentsInput, func(*codedeploy.ListDeploymentsOutput, bool) bool) error
|
||||
ListDeploymentsPagesWithContext(aws.Context, *codedeploy.ListDeploymentsInput, func(*codedeploy.ListDeploymentsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListGitHubAccountTokenNames(*codedeploy.ListGitHubAccountTokenNamesInput) (*codedeploy.ListGitHubAccountTokenNamesOutput, error)
|
||||
ListGitHubAccountTokenNamesWithContext(aws.Context, *codedeploy.ListGitHubAccountTokenNamesInput, ...request.Option) (*codedeploy.ListGitHubAccountTokenNamesOutput, error)
|
||||
ListGitHubAccountTokenNamesRequest(*codedeploy.ListGitHubAccountTokenNamesInput) (*request.Request, *codedeploy.ListGitHubAccountTokenNamesOutput)
|
||||
|
||||
ListOnPremisesInstances(*codedeploy.ListOnPremisesInstancesInput) (*codedeploy.ListOnPremisesInstancesOutput, error)
|
||||
ListOnPremisesInstancesWithContext(aws.Context, *codedeploy.ListOnPremisesInstancesInput, ...request.Option) (*codedeploy.ListOnPremisesInstancesOutput, error)
|
||||
ListOnPremisesInstancesRequest(*codedeploy.ListOnPremisesInstancesInput) (*request.Request, *codedeploy.ListOnPremisesInstancesOutput)
|
||||
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package codedeploy provides the client and types for making API
|
||||
// requests to AWS CodeDeploy.
|
||||
//
|
||||
// AWS CodeDeploy is a deployment service that automates application deployments
|
||||
// to Amazon EC2 instances or on-premises instances running in your own facility.
|
||||
//
|
||||
// You can deploy a nearly unlimited variety of application content, such as
|
||||
// code, web and configuration files, executables, packages, scripts, multimedia
|
||||
// files, and so on. AWS CodeDeploy can deploy application content stored in
|
||||
// Amazon S3 buckets, GitHub repositories, or Bitbucket repositories. You do
|
||||
// not need to make changes to your existing code before you can use AWS CodeDeploy.
|
||||
//
|
||||
// AWS CodeDeploy makes it easier for you to rapidly release new features, helps
|
||||
// you avoid downtime during application deployment, and handles the complexity
|
||||
// of updating your applications, without many of the risks associated with
|
||||
// error-prone manual deployments.
|
||||
//
|
||||
// AWS CodeDeploy Components
|
||||
//
|
||||
// Use the information in this guide to help you work with the following AWS
|
||||
// CodeDeploy components:
|
||||
//
|
||||
// * Application: A name that uniquely identifies the application you want
|
||||
// to deploy. AWS CodeDeploy uses this name, which functions as a container,
|
||||
// to ensure the correct combination of revision, deployment configuration,
|
||||
// and deployment group are referenced during a deployment.
|
||||
//
|
||||
// * Deployment group: A set of individual instances. A deployment group
|
||||
// contains individually tagged instances, Amazon EC2 instances in Auto Scaling
|
||||
// groups, or both.
|
||||
//
|
||||
// * Deployment configuration: A set of deployment rules and deployment success
|
||||
// and failure conditions used by AWS CodeDeploy during a deployment.
|
||||
//
|
||||
// * Deployment: The process, and the components involved in the process,
|
||||
// of installing content on one or more instances.
|
||||
//
|
||||
// * Application revisions: An archive file containing source content—source
|
||||
// code, web pages, executable files, and deployment scripts—along with an
|
||||
// application specification file (AppSpec file). Revisions are stored in
|
||||
// Amazon S3 buckets or GitHub repositories. For Amazon S3, a revision is
|
||||
// uniquely identified by its Amazon S3 object key and its ETag, version,
|
||||
// or both. For GitHub, a revision is uniquely identified by its commit ID.
|
||||
//
|
||||
// This guide also contains information to help you get details about the instances
|
||||
// in your deployments and to make on-premises instances available for AWS CodeDeploy
|
||||
// deployments.
|
||||
//
|
||||
// AWS CodeDeploy Information Resources
|
||||
//
|
||||
// * AWS CodeDeploy User Guide (http://docs.aws.amazon.com/codedeploy/latest/userguide)
|
||||
//
|
||||
// * AWS CodeDeploy API Reference Guide (http://docs.aws.amazon.com/codedeploy/latest/APIReference/)
|
||||
//
|
||||
// * AWS CLI Reference for AWS CodeDeploy (http://docs.aws.amazon.com/cli/latest/reference/deploy/index.html)
|
||||
//
|
||||
// * AWS CodeDeploy Developer Forum (https://forums.aws.amazon.com/forum.jspa?forumID=179)
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06 for more information on this service.
|
||||
//
|
||||
// See codedeploy package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/codedeploy/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To AWS CodeDeploy with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the AWS CodeDeploy client CodeDeploy for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/codedeploy/#New
|
||||
package codedeploy
|
||||
+46
-3
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package codedeploy
|
||||
|
||||
@@ -284,6 +284,13 @@ const (
|
||||
// At least one of the deployment IDs was specified in an invalid format.
|
||||
ErrCodeInvalidDeploymentIdException = "InvalidDeploymentIdException"
|
||||
|
||||
// ErrCodeInvalidDeploymentInstanceTypeException for service response error code
|
||||
// "InvalidDeploymentInstanceTypeException".
|
||||
//
|
||||
// An instance type was specified for an in-place deployment. Instance types
|
||||
// are supported for blue/green deployments only.
|
||||
ErrCodeInvalidDeploymentInstanceTypeException = "InvalidDeploymentInstanceTypeException"
|
||||
|
||||
// ErrCodeInvalidDeploymentStatusException for service response error code
|
||||
// "InvalidDeploymentStatusException".
|
||||
//
|
||||
@@ -294,16 +301,32 @@ const (
|
||||
// "InvalidDeploymentStyleException".
|
||||
//
|
||||
// An invalid deployment style was specified. Valid deployment types include
|
||||
// "IN_PLACE" and "BLUE_GREEN". Valid deployment options for blue/green deployments
|
||||
// include "WITH_TRAFFIC_CONTROL" and "WITHOUT_TRAFFIC_CONTROL".
|
||||
// "IN_PLACE" and "BLUE_GREEN". Valid deployment options include "WITH_TRAFFIC_CONTROL"
|
||||
// and "WITHOUT_TRAFFIC_CONTROL".
|
||||
ErrCodeInvalidDeploymentStyleException = "InvalidDeploymentStyleException"
|
||||
|
||||
// ErrCodeInvalidEC2TagCombinationException for service response error code
|
||||
// "InvalidEC2TagCombinationException".
|
||||
//
|
||||
// A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but
|
||||
// only one of these data types can be used in a single call.
|
||||
ErrCodeInvalidEC2TagCombinationException = "InvalidEC2TagCombinationException"
|
||||
|
||||
// ErrCodeInvalidEC2TagException for service response error code
|
||||
// "InvalidEC2TagException".
|
||||
//
|
||||
// The tag was specified in an invalid format.
|
||||
ErrCodeInvalidEC2TagException = "InvalidEC2TagException"
|
||||
|
||||
// ErrCodeInvalidFileExistsBehaviorException for service response error code
|
||||
// "InvalidFileExistsBehaviorException".
|
||||
//
|
||||
// An invalid fileExistsBehavior option was specified to determine how AWS CodeDeploy
|
||||
// handles files or directories that already exist in a deployment target location
|
||||
// but weren't part of the previous successful deployment. Valid values include
|
||||
// "DISALLOW", "OVERWRITE", and "RETAIN".
|
||||
ErrCodeInvalidFileExistsBehaviorException = "InvalidFileExistsBehaviorException"
|
||||
|
||||
// ErrCodeInvalidIamSessionArnException for service response error code
|
||||
// "InvalidIamSessionArnException".
|
||||
//
|
||||
@@ -360,6 +383,13 @@ const (
|
||||
// The next token was specified in an invalid format.
|
||||
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
|
||||
|
||||
// ErrCodeInvalidOnPremisesTagCombinationException for service response error code
|
||||
// "InvalidOnPremisesTagCombinationException".
|
||||
//
|
||||
// A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet,
|
||||
// but only one of these data types can be used in a single call.
|
||||
ErrCodeInvalidOnPremisesTagCombinationException = "InvalidOnPremisesTagCombinationException"
|
||||
|
||||
// ErrCodeInvalidOperationException for service response error code
|
||||
// "InvalidOperationException".
|
||||
//
|
||||
@@ -451,6 +481,12 @@ const (
|
||||
// Use only one ARN type.
|
||||
ErrCodeMultipleIamArnsProvidedException = "MultipleIamArnsProvidedException"
|
||||
|
||||
// ErrCodeResourceValidationException for service response error code
|
||||
// "ResourceValidationException".
|
||||
//
|
||||
// The specified resource could not be validated.
|
||||
ErrCodeResourceValidationException = "ResourceValidationException"
|
||||
|
||||
// ErrCodeRevisionDoesNotExistException for service response error code
|
||||
// "RevisionDoesNotExistException".
|
||||
//
|
||||
@@ -481,6 +517,13 @@ const (
|
||||
// A tag was not specified.
|
||||
ErrCodeTagRequiredException = "TagRequiredException"
|
||||
|
||||
// ErrCodeTagSetListLimitExceededException for service response error code
|
||||
// "TagSetListLimitExceededException".
|
||||
//
|
||||
// The number of tag groups included in the tag set list exceeded the maximum
|
||||
// allowed limit of 3.
|
||||
ErrCodeTagSetListLimitExceededException = "TagSetListLimitExceededException"
|
||||
|
||||
// ErrCodeTriggerTargetsLimitExceededException for service response error code
|
||||
// "TriggerTargetsLimitExceededException".
|
||||
//
|
||||
|
||||
-1115
File diff suppressed because it is too large
Load Diff
+6
-56
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package codedeploy
|
||||
|
||||
@@ -11,62 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// Overview
|
||||
// CodeDeploy provides the API operation methods for making requests to
|
||||
// AWS CodeDeploy. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// This reference guide provides descriptions of the AWS CodeDeploy APIs. For
|
||||
// more information about AWS CodeDeploy, see the AWS CodeDeploy User Guide
|
||||
// (http://docs.aws.amazon.com/codedeploy/latest/userguide).
|
||||
//
|
||||
// Using the APIs
|
||||
//
|
||||
// You can use the AWS CodeDeploy APIs to work with the following:
|
||||
//
|
||||
// * Applications are unique identifiers used by AWS CodeDeploy to ensure
|
||||
// the correct combinations of revisions, deployment configurations, and
|
||||
// deployment groups are being referenced during deployments.
|
||||
//
|
||||
// You can use the AWS CodeDeploy APIs to create, delete, get, list, and update
|
||||
// applications.
|
||||
//
|
||||
// * Deployment configurations are sets of deployment rules and success and
|
||||
// failure conditions used by AWS CodeDeploy during deployments.
|
||||
//
|
||||
// You can use the AWS CodeDeploy APIs to create, delete, get, and list deployment
|
||||
// configurations.
|
||||
//
|
||||
// * Deployment groups are groups of instances to which application revisions
|
||||
// can be deployed.
|
||||
//
|
||||
// You can use the AWS CodeDeploy APIs to create, delete, get, list, and update
|
||||
// deployment groups.
|
||||
//
|
||||
// * Instances represent Amazon EC2 instances to which application revisions
|
||||
// are deployed. Instances are identified by their Amazon EC2 tags or Auto
|
||||
// Scaling group names. Instances belong to deployment groups.
|
||||
//
|
||||
// You can use the AWS CodeDeploy APIs to get and list instance.
|
||||
//
|
||||
// * Deployments represent the process of deploying revisions to instances.
|
||||
//
|
||||
// You can use the AWS CodeDeploy APIs to create, get, list, and stop deployments.
|
||||
//
|
||||
// * Application revisions are archive files stored in Amazon S3 buckets
|
||||
// or GitHub repositories. These revisions contain source content (such as
|
||||
// source code, web pages, executable files, and deployment scripts) along
|
||||
// with an application specification (AppSpec) file. (The AppSpec file is
|
||||
// unique to AWS CodeDeploy; it defines the deployment actions you want AWS
|
||||
// CodeDeploy to execute.) For application revisions stored in Amazon S3
|
||||
// buckets, an application revision is uniquely identified by its Amazon
|
||||
// S3 object key and its ETag, version, or both. For application revisions
|
||||
// stored in GitHub repositories, an application revision is uniquely identified
|
||||
// by its repository name and commit ID. Application revisions are deployed
|
||||
// through deployment groups.
|
||||
//
|
||||
// You can use the AWS CodeDeploy APIs to get, list, and register application
|
||||
// revisions.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06
|
||||
// CodeDeploy methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type CodeDeploy struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+8
-3
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package codedeploy
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// WaitUntilDeploymentSuccessful uses the CodeDeploy API operation
|
||||
// GetDeployment to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *CodeDeploy) WaitUntilDeploymentSuccessful(input *GetDeploymentInput) error {
|
||||
return c.WaitUntilDeploymentSuccessfulWithContext(aws.BackgroundContext(), input)
|
||||
@@ -49,7 +49,12 @@ func (c *CodeDeploy) WaitUntilDeploymentSuccessfulWithContext(ctx aws.Context, i
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.GetDeploymentRequest(input)
|
||||
var inCpy *GetDeploymentInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.GetDeploymentRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
|
||||
Reference in New Issue
Block a user