mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-31 04:30:44 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+1912
-914
File diff suppressed because it is too large
Load Diff
+97
@@ -0,0 +1,97 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package opsworks provides the client and types for making API
|
||||
// requests to AWS OpsWorks.
|
||||
//
|
||||
// Welcome to the AWS OpsWorks Stacks API Reference. This guide provides descriptions,
|
||||
// syntax, and usage examples for AWS OpsWorks Stacks actions and data types,
|
||||
// including common parameters and error codes.
|
||||
//
|
||||
// AWS OpsWorks Stacks is an application management service that provides an
|
||||
// integrated experience for overseeing the complete application lifecycle.
|
||||
// For information about this product, go to the AWS OpsWorks (http://aws.amazon.com/opsworks/)
|
||||
// details page.
|
||||
//
|
||||
// SDKs and CLI
|
||||
//
|
||||
// The most common way to use the AWS OpsWorks Stacks API is by using the AWS
|
||||
// Command Line Interface (CLI) or by using one of the AWS SDKs to implement
|
||||
// applications in your preferred language. For more information, see:
|
||||
//
|
||||
// * AWS CLI (http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html)
|
||||
//
|
||||
// * AWS SDK for Java (http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/opsworks/AWSOpsWorksClient.html)
|
||||
//
|
||||
// * AWS SDK for .NET (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/html/N_Amazon_OpsWorks.htm)
|
||||
//
|
||||
// * AWS SDK for PHP 2 (http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.OpsWorks.OpsWorksClient.html)
|
||||
//
|
||||
// * AWS SDK for Ruby (http://docs.aws.amazon.com/sdkforruby/api/)
|
||||
//
|
||||
// * AWS SDK for Node.js (http://aws.amazon.com/documentation/sdkforjavascript/)
|
||||
//
|
||||
// * AWS SDK for Python(Boto) (http://docs.pythonboto.org/en/latest/ref/opsworks.html)
|
||||
//
|
||||
// Endpoints
|
||||
//
|
||||
// AWS OpsWorks Stacks supports the following endpoints, all HTTPS. You must
|
||||
// connect to one of the following endpoints. Stacks can only be accessed or
|
||||
// managed within the endpoint in which they are created.
|
||||
//
|
||||
// * opsworks.us-east-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.us-east-2.amazonaws.com
|
||||
//
|
||||
// * opsworks.us-west-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.us-west-2.amazonaws.com
|
||||
//
|
||||
// * opsworks.eu-west-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.eu-west-2.amazonaws.com
|
||||
//
|
||||
// * opsworks.eu-central-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.ap-northeast-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.ap-northeast-2.amazonaws.com
|
||||
//
|
||||
// * opsworks.ap-south-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.ap-southeast-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.ap-southeast-2.amazonaws.com
|
||||
//
|
||||
// * opsworks.sa-east-1.amazonaws.com
|
||||
//
|
||||
// Chef Versions
|
||||
//
|
||||
// When you call CreateStack, CloneStack, or UpdateStack we recommend you use
|
||||
// the ConfigurationManager parameter to specify the Chef version. The recommended
|
||||
// and default value for Linux stacks is currently 12. Windows stacks use Chef
|
||||
// 12.2. For more information, see Chef Versions (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-chef11.html).
|
||||
//
|
||||
// You can specify Chef 12, 11.10, or 11.4 for your Linux stack. We recommend
|
||||
// migrating your existing Linux stacks to Chef 12 as soon as possible.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18 for more information on this service.
|
||||
//
|
||||
// See opsworks package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/opsworks/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To AWS OpsWorks 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 OpsWorks client OpsWorks for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/opsworks/#New
|
||||
package opsworks
|
||||
+1
-1
@@ -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 opsworks
|
||||
|
||||
|
||||
-2035
File diff suppressed because it is too large
Load Diff
+14
-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 opsworksiface provides an interface to enable mocking the AWS OpsWorks 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 OpsWorks.
|
||||
@@ -247,6 +247,10 @@ type OpsWorksAPI interface {
|
||||
GrantAccessWithContext(aws.Context, *opsworks.GrantAccessInput, ...request.Option) (*opsworks.GrantAccessOutput, error)
|
||||
GrantAccessRequest(*opsworks.GrantAccessInput) (*request.Request, *opsworks.GrantAccessOutput)
|
||||
|
||||
ListTags(*opsworks.ListTagsInput) (*opsworks.ListTagsOutput, error)
|
||||
ListTagsWithContext(aws.Context, *opsworks.ListTagsInput, ...request.Option) (*opsworks.ListTagsOutput, error)
|
||||
ListTagsRequest(*opsworks.ListTagsInput) (*request.Request, *opsworks.ListTagsOutput)
|
||||
|
||||
RebootInstance(*opsworks.RebootInstanceInput) (*opsworks.RebootInstanceOutput, error)
|
||||
RebootInstanceWithContext(aws.Context, *opsworks.RebootInstanceInput, ...request.Option) (*opsworks.RebootInstanceOutput, error)
|
||||
RebootInstanceRequest(*opsworks.RebootInstanceInput) (*request.Request, *opsworks.RebootInstanceOutput)
|
||||
@@ -299,6 +303,10 @@ type OpsWorksAPI interface {
|
||||
StopStackWithContext(aws.Context, *opsworks.StopStackInput, ...request.Option) (*opsworks.StopStackOutput, error)
|
||||
StopStackRequest(*opsworks.StopStackInput) (*request.Request, *opsworks.StopStackOutput)
|
||||
|
||||
TagResource(*opsworks.TagResourceInput) (*opsworks.TagResourceOutput, error)
|
||||
TagResourceWithContext(aws.Context, *opsworks.TagResourceInput, ...request.Option) (*opsworks.TagResourceOutput, error)
|
||||
TagResourceRequest(*opsworks.TagResourceInput) (*request.Request, *opsworks.TagResourceOutput)
|
||||
|
||||
UnassignInstance(*opsworks.UnassignInstanceInput) (*opsworks.UnassignInstanceOutput, error)
|
||||
UnassignInstanceWithContext(aws.Context, *opsworks.UnassignInstanceInput, ...request.Option) (*opsworks.UnassignInstanceOutput, error)
|
||||
UnassignInstanceRequest(*opsworks.UnassignInstanceInput) (*request.Request, *opsworks.UnassignInstanceOutput)
|
||||
@@ -307,6 +315,10 @@ type OpsWorksAPI interface {
|
||||
UnassignVolumeWithContext(aws.Context, *opsworks.UnassignVolumeInput, ...request.Option) (*opsworks.UnassignVolumeOutput, error)
|
||||
UnassignVolumeRequest(*opsworks.UnassignVolumeInput) (*request.Request, *opsworks.UnassignVolumeOutput)
|
||||
|
||||
UntagResource(*opsworks.UntagResourceInput) (*opsworks.UntagResourceOutput, error)
|
||||
UntagResourceWithContext(aws.Context, *opsworks.UntagResourceInput, ...request.Option) (*opsworks.UntagResourceOutput, error)
|
||||
UntagResourceRequest(*opsworks.UntagResourceInput) (*request.Request, *opsworks.UntagResourceOutput)
|
||||
|
||||
UpdateApp(*opsworks.UpdateAppInput) (*opsworks.UpdateAppOutput, error)
|
||||
UpdateAppWithContext(aws.Context, *opsworks.UpdateAppInput, ...request.Option) (*opsworks.UpdateAppOutput, error)
|
||||
UpdateAppRequest(*opsworks.UpdateAppInput) (*request.Request, *opsworks.UpdateAppOutput)
|
||||
|
||||
+6
-69
@@ -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 opsworks
|
||||
|
||||
@@ -11,75 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// Welcome to the AWS OpsWorks API Reference. This guide provides descriptions,
|
||||
// syntax, and usage examples for AWS OpsWorks actions and data types, including
|
||||
// common parameters and error codes.
|
||||
// OpsWorks provides the API operation methods for making requests to
|
||||
// AWS OpsWorks. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// AWS OpsWorks is an application management service that provides an integrated
|
||||
// experience for overseeing the complete application lifecycle. For information
|
||||
// about this product, go to the AWS OpsWorks (http://aws.amazon.com/opsworks/)
|
||||
// details page.
|
||||
//
|
||||
// SDKs and CLI
|
||||
//
|
||||
// The most common way to use the AWS OpsWorks API is by using the AWS Command
|
||||
// Line Interface (CLI) or by using one of the AWS SDKs to implement applications
|
||||
// in your preferred language. For more information, see:
|
||||
//
|
||||
// * AWS CLI (http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html)
|
||||
//
|
||||
// * AWS SDK for Java (http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/opsworks/AWSOpsWorksClient.html)
|
||||
//
|
||||
// * AWS SDK for .NET (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/html/N_Amazon_OpsWorks.htm)
|
||||
//
|
||||
// * AWS SDK for PHP 2 (http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.OpsWorks.OpsWorksClient.html)
|
||||
//
|
||||
// * AWS SDK for Ruby (http://docs.aws.amazon.com/sdkforruby/api/)
|
||||
//
|
||||
// * AWS SDK for Node.js (http://aws.amazon.com/documentation/sdkforjavascript/)
|
||||
//
|
||||
// * AWS SDK for Python(Boto) (http://docs.pythonboto.org/en/latest/ref/opsworks.html)
|
||||
//
|
||||
// Endpoints
|
||||
//
|
||||
// AWS OpsWorks supports the following endpoints, all HTTPS. You must connect
|
||||
// to one of the following endpoints. Stacks can only be accessed or managed
|
||||
// within the endpoint in which they are created.
|
||||
//
|
||||
// * opsworks.us-east-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.us-west-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.us-west-2.amazonaws.com
|
||||
//
|
||||
// * opsworks.eu-west-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.eu-central-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.ap-northeast-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.ap-northeast-2.amazonaws.com
|
||||
//
|
||||
// * opsworks.ap-south-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.ap-southeast-1.amazonaws.com
|
||||
//
|
||||
// * opsworks.ap-southeast-2.amazonaws.com
|
||||
//
|
||||
// * opsworks.sa-east-1.amazonaws.com
|
||||
//
|
||||
// Chef Versions
|
||||
//
|
||||
// When you call CreateStack, CloneStack, or UpdateStack we recommend you use
|
||||
// the ConfigurationManager parameter to specify the Chef version. The recommended
|
||||
// and default value for Linux stacks is currently 12. Windows stacks use Chef
|
||||
// 12.2. For more information, see Chef Versions (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-chef11.html).
|
||||
//
|
||||
// You can specify Chef 12, 11.10, or 11.4 for your Linux stack. We recommend
|
||||
// migrating your existing Linux stacks to Chef 12 as soon as possible.
|
||||
// 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/opsworks-2013-02-18
|
||||
// OpsWorks methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type OpsWorks struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+43
-13
@@ -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 opsworks
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// WaitUntilAppExists uses the AWS OpsWorks API operation
|
||||
// DescribeApps 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 *OpsWorks) WaitUntilAppExists(input *DescribeAppsInput) error {
|
||||
return c.WaitUntilAppExistsWithContext(aws.BackgroundContext(), input)
|
||||
@@ -44,7 +44,12 @@ func (c *OpsWorks) WaitUntilAppExistsWithContext(ctx aws.Context, input *Describ
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeAppsRequest(input)
|
||||
var inCpy *DescribeAppsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeAppsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -57,7 +62,7 @@ func (c *OpsWorks) WaitUntilAppExistsWithContext(ctx aws.Context, input *Describ
|
||||
|
||||
// WaitUntilDeploymentSuccessful uses the AWS OpsWorks API operation
|
||||
// DescribeDeployments 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 *OpsWorks) WaitUntilDeploymentSuccessful(input *DescribeDeploymentsInput) error {
|
||||
return c.WaitUntilDeploymentSuccessfulWithContext(aws.BackgroundContext(), input)
|
||||
@@ -90,7 +95,12 @@ func (c *OpsWorks) WaitUntilDeploymentSuccessfulWithContext(ctx aws.Context, inp
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeDeploymentsRequest(input)
|
||||
var inCpy *DescribeDeploymentsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeDeploymentsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -103,7 +113,7 @@ func (c *OpsWorks) WaitUntilDeploymentSuccessfulWithContext(ctx aws.Context, inp
|
||||
|
||||
// WaitUntilInstanceOnline uses the AWS OpsWorks API operation
|
||||
// DescribeInstances 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 *OpsWorks) WaitUntilInstanceOnline(input *DescribeInstancesInput) error {
|
||||
return c.WaitUntilInstanceOnlineWithContext(aws.BackgroundContext(), input)
|
||||
@@ -171,7 +181,12 @@ func (c *OpsWorks) WaitUntilInstanceOnlineWithContext(ctx aws.Context, input *De
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeInstancesRequest(input)
|
||||
var inCpy *DescribeInstancesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeInstancesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -184,7 +199,7 @@ func (c *OpsWorks) WaitUntilInstanceOnlineWithContext(ctx aws.Context, input *De
|
||||
|
||||
// WaitUntilInstanceRegistered uses the AWS OpsWorks API operation
|
||||
// DescribeInstances 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 *OpsWorks) WaitUntilInstanceRegistered(input *DescribeInstancesInput) error {
|
||||
return c.WaitUntilInstanceRegisteredWithContext(aws.BackgroundContext(), input)
|
||||
@@ -247,7 +262,12 @@ func (c *OpsWorks) WaitUntilInstanceRegisteredWithContext(ctx aws.Context, input
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeInstancesRequest(input)
|
||||
var inCpy *DescribeInstancesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeInstancesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -260,7 +280,7 @@ func (c *OpsWorks) WaitUntilInstanceRegisteredWithContext(ctx aws.Context, input
|
||||
|
||||
// WaitUntilInstanceStopped uses the AWS OpsWorks API operation
|
||||
// DescribeInstances 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 *OpsWorks) WaitUntilInstanceStopped(input *DescribeInstancesInput) error {
|
||||
return c.WaitUntilInstanceStoppedWithContext(aws.BackgroundContext(), input)
|
||||
@@ -333,7 +353,12 @@ func (c *OpsWorks) WaitUntilInstanceStoppedWithContext(ctx aws.Context, input *D
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeInstancesRequest(input)
|
||||
var inCpy *DescribeInstancesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeInstancesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -346,7 +371,7 @@ func (c *OpsWorks) WaitUntilInstanceStoppedWithContext(ctx aws.Context, input *D
|
||||
|
||||
// WaitUntilInstanceTerminated uses the AWS OpsWorks API operation
|
||||
// DescribeInstances 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 *OpsWorks) WaitUntilInstanceTerminated(input *DescribeInstancesInput) error {
|
||||
return c.WaitUntilInstanceTerminatedWithContext(aws.BackgroundContext(), input)
|
||||
@@ -419,7 +444,12 @@ func (c *OpsWorks) WaitUntilInstanceTerminatedWithContext(ctx aws.Context, input
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.DescribeInstancesRequest(input)
|
||||
var inCpy *DescribeInstancesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeInstancesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
|
||||
Reference in New Issue
Block a user