Update vendored deps, including AWS SDK, openpgp, ftp, ...

This commit is contained in:
Andrey Smirnov
2018-04-05 17:46:45 +03:00
parent cef4fefc40
commit 0e6ee35942
1497 changed files with 450721 additions and 68034 deletions
+8
View File
@@ -72,6 +72,10 @@ type ACMAPI interface {
DescribeCertificateWithContext(aws.Context, *acm.DescribeCertificateInput, ...request.Option) (*acm.DescribeCertificateOutput, error)
DescribeCertificateRequest(*acm.DescribeCertificateInput) (*request.Request, *acm.DescribeCertificateOutput)
ExportCertificate(*acm.ExportCertificateInput) (*acm.ExportCertificateOutput, error)
ExportCertificateWithContext(aws.Context, *acm.ExportCertificateInput, ...request.Option) (*acm.ExportCertificateOutput, error)
ExportCertificateRequest(*acm.ExportCertificateInput) (*request.Request, *acm.ExportCertificateOutput)
GetCertificate(*acm.GetCertificateInput) (*acm.GetCertificateOutput, error)
GetCertificateWithContext(aws.Context, *acm.GetCertificateInput, ...request.Option) (*acm.GetCertificateOutput, error)
GetCertificateRequest(*acm.GetCertificateInput) (*request.Request, *acm.GetCertificateOutput)
@@ -102,6 +106,10 @@ type ACMAPI interface {
ResendValidationEmail(*acm.ResendValidationEmailInput) (*acm.ResendValidationEmailOutput, error)
ResendValidationEmailWithContext(aws.Context, *acm.ResendValidationEmailInput, ...request.Option) (*acm.ResendValidationEmailOutput, error)
ResendValidationEmailRequest(*acm.ResendValidationEmailInput) (*request.Request, *acm.ResendValidationEmailOutput)
UpdateCertificateOptions(*acm.UpdateCertificateOptionsInput) (*acm.UpdateCertificateOptionsOutput, error)
UpdateCertificateOptionsWithContext(aws.Context, *acm.UpdateCertificateOptionsInput, ...request.Option) (*acm.UpdateCertificateOptionsOutput, error)
UpdateCertificateOptionsRequest(*acm.UpdateCertificateOptionsInput) (*request.Request, *acm.UpdateCertificateOptionsOutput)
}
var _ ACMAPI = (*acm.ACM)(nil)
+1019 -188
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -7,7 +7,7 @@
//
// You can use ACM to manage SSL/TLS certificates for your AWS-based websites
// and applications. For general information about using ACM, see the AWS Certificate
// Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/).
// Manager User Guide (http://docs.aws.amazon.com/http:/docs.aws.amazon.comacm/latest/userguide/).
//
// See https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08 for more information on this service.
//
@@ -16,7 +16,7 @@
//
// Using the Client
//
// To AWS Certificate Manager with the SDK use the New function to create
// To contact AWS Certificate Manager 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.
//
+3 -10
View File
@@ -19,10 +19,7 @@ const (
// ErrCodeInvalidStateException for service response error code
// "InvalidStateException".
//
// Processing has reached an invalid state. For example, this exception can
// occur if the specified domain is not using email validation, or the current
// certificate status does not permit the requested operation. See the exception
// message returned by ACM to determine which state is not valid.
// Processing has reached an invalid state.
ErrCodeInvalidStateException = "InvalidStateException"
// ErrCodeInvalidTagException for service response error code
@@ -35,11 +32,7 @@ const (
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// An ACM limit has been exceeded. For example, you may have input more domains
// than are allowed or you've requested too many certificates for your account.
// See the exception message returned by ACM to determine which limit you have
// violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html)
// topic.
// An ACM limit has been exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeRequestInProgressException for service response error code
@@ -59,7 +52,7 @@ const (
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified certificate cannot be found in the caller's account, or the
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
@@ -0,0 +1,128 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package acmpcaiface provides an interface to enable mocking the AWS Certificate Manager Private Certificate Authority service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package acmpcaiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/acmpca"
)
// ACMPCAAPI provides an interface to enable mocking the
// acmpca.ACMPCA service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// 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 SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AWS Certificate Manager Private Certificate Authority.
// func myFunc(svc acmpcaiface.ACMPCAAPI) bool {
// // Make svc.CreateCertificateAuthority request
// }
//
// func main() {
// sess := session.New()
// svc := acmpca.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockACMPCAClient struct {
// acmpcaiface.ACMPCAAPI
// }
// func (m *mockACMPCAClient) CreateCertificateAuthority(input *acmpca.CreateCertificateAuthorityInput) (*acmpca.CreateCertificateAuthorityOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockACMPCAClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type ACMPCAAPI interface {
CreateCertificateAuthority(*acmpca.CreateCertificateAuthorityInput) (*acmpca.CreateCertificateAuthorityOutput, error)
CreateCertificateAuthorityWithContext(aws.Context, *acmpca.CreateCertificateAuthorityInput, ...request.Option) (*acmpca.CreateCertificateAuthorityOutput, error)
CreateCertificateAuthorityRequest(*acmpca.CreateCertificateAuthorityInput) (*request.Request, *acmpca.CreateCertificateAuthorityOutput)
CreateCertificateAuthorityAuditReport(*acmpca.CreateCertificateAuthorityAuditReportInput) (*acmpca.CreateCertificateAuthorityAuditReportOutput, error)
CreateCertificateAuthorityAuditReportWithContext(aws.Context, *acmpca.CreateCertificateAuthorityAuditReportInput, ...request.Option) (*acmpca.CreateCertificateAuthorityAuditReportOutput, error)
CreateCertificateAuthorityAuditReportRequest(*acmpca.CreateCertificateAuthorityAuditReportInput) (*request.Request, *acmpca.CreateCertificateAuthorityAuditReportOutput)
DeleteCertificateAuthority(*acmpca.DeleteCertificateAuthorityInput) (*acmpca.DeleteCertificateAuthorityOutput, error)
DeleteCertificateAuthorityWithContext(aws.Context, *acmpca.DeleteCertificateAuthorityInput, ...request.Option) (*acmpca.DeleteCertificateAuthorityOutput, error)
DeleteCertificateAuthorityRequest(*acmpca.DeleteCertificateAuthorityInput) (*request.Request, *acmpca.DeleteCertificateAuthorityOutput)
DescribeCertificateAuthority(*acmpca.DescribeCertificateAuthorityInput) (*acmpca.DescribeCertificateAuthorityOutput, error)
DescribeCertificateAuthorityWithContext(aws.Context, *acmpca.DescribeCertificateAuthorityInput, ...request.Option) (*acmpca.DescribeCertificateAuthorityOutput, error)
DescribeCertificateAuthorityRequest(*acmpca.DescribeCertificateAuthorityInput) (*request.Request, *acmpca.DescribeCertificateAuthorityOutput)
DescribeCertificateAuthorityAuditReport(*acmpca.DescribeCertificateAuthorityAuditReportInput) (*acmpca.DescribeCertificateAuthorityAuditReportOutput, error)
DescribeCertificateAuthorityAuditReportWithContext(aws.Context, *acmpca.DescribeCertificateAuthorityAuditReportInput, ...request.Option) (*acmpca.DescribeCertificateAuthorityAuditReportOutput, error)
DescribeCertificateAuthorityAuditReportRequest(*acmpca.DescribeCertificateAuthorityAuditReportInput) (*request.Request, *acmpca.DescribeCertificateAuthorityAuditReportOutput)
GetCertificate(*acmpca.GetCertificateInput) (*acmpca.GetCertificateOutput, error)
GetCertificateWithContext(aws.Context, *acmpca.GetCertificateInput, ...request.Option) (*acmpca.GetCertificateOutput, error)
GetCertificateRequest(*acmpca.GetCertificateInput) (*request.Request, *acmpca.GetCertificateOutput)
GetCertificateAuthorityCertificate(*acmpca.GetCertificateAuthorityCertificateInput) (*acmpca.GetCertificateAuthorityCertificateOutput, error)
GetCertificateAuthorityCertificateWithContext(aws.Context, *acmpca.GetCertificateAuthorityCertificateInput, ...request.Option) (*acmpca.GetCertificateAuthorityCertificateOutput, error)
GetCertificateAuthorityCertificateRequest(*acmpca.GetCertificateAuthorityCertificateInput) (*request.Request, *acmpca.GetCertificateAuthorityCertificateOutput)
GetCertificateAuthorityCsr(*acmpca.GetCertificateAuthorityCsrInput) (*acmpca.GetCertificateAuthorityCsrOutput, error)
GetCertificateAuthorityCsrWithContext(aws.Context, *acmpca.GetCertificateAuthorityCsrInput, ...request.Option) (*acmpca.GetCertificateAuthorityCsrOutput, error)
GetCertificateAuthorityCsrRequest(*acmpca.GetCertificateAuthorityCsrInput) (*request.Request, *acmpca.GetCertificateAuthorityCsrOutput)
ImportCertificateAuthorityCertificate(*acmpca.ImportCertificateAuthorityCertificateInput) (*acmpca.ImportCertificateAuthorityCertificateOutput, error)
ImportCertificateAuthorityCertificateWithContext(aws.Context, *acmpca.ImportCertificateAuthorityCertificateInput, ...request.Option) (*acmpca.ImportCertificateAuthorityCertificateOutput, error)
ImportCertificateAuthorityCertificateRequest(*acmpca.ImportCertificateAuthorityCertificateInput) (*request.Request, *acmpca.ImportCertificateAuthorityCertificateOutput)
IssueCertificate(*acmpca.IssueCertificateInput) (*acmpca.IssueCertificateOutput, error)
IssueCertificateWithContext(aws.Context, *acmpca.IssueCertificateInput, ...request.Option) (*acmpca.IssueCertificateOutput, error)
IssueCertificateRequest(*acmpca.IssueCertificateInput) (*request.Request, *acmpca.IssueCertificateOutput)
ListCertificateAuthorities(*acmpca.ListCertificateAuthoritiesInput) (*acmpca.ListCertificateAuthoritiesOutput, error)
ListCertificateAuthoritiesWithContext(aws.Context, *acmpca.ListCertificateAuthoritiesInput, ...request.Option) (*acmpca.ListCertificateAuthoritiesOutput, error)
ListCertificateAuthoritiesRequest(*acmpca.ListCertificateAuthoritiesInput) (*request.Request, *acmpca.ListCertificateAuthoritiesOutput)
ListTags(*acmpca.ListTagsInput) (*acmpca.ListTagsOutput, error)
ListTagsWithContext(aws.Context, *acmpca.ListTagsInput, ...request.Option) (*acmpca.ListTagsOutput, error)
ListTagsRequest(*acmpca.ListTagsInput) (*request.Request, *acmpca.ListTagsOutput)
RevokeCertificate(*acmpca.RevokeCertificateInput) (*acmpca.RevokeCertificateOutput, error)
RevokeCertificateWithContext(aws.Context, *acmpca.RevokeCertificateInput, ...request.Option) (*acmpca.RevokeCertificateOutput, error)
RevokeCertificateRequest(*acmpca.RevokeCertificateInput) (*request.Request, *acmpca.RevokeCertificateOutput)
TagCertificateAuthority(*acmpca.TagCertificateAuthorityInput) (*acmpca.TagCertificateAuthorityOutput, error)
TagCertificateAuthorityWithContext(aws.Context, *acmpca.TagCertificateAuthorityInput, ...request.Option) (*acmpca.TagCertificateAuthorityOutput, error)
TagCertificateAuthorityRequest(*acmpca.TagCertificateAuthorityInput) (*request.Request, *acmpca.TagCertificateAuthorityOutput)
UntagCertificateAuthority(*acmpca.UntagCertificateAuthorityInput) (*acmpca.UntagCertificateAuthorityOutput, error)
UntagCertificateAuthorityWithContext(aws.Context, *acmpca.UntagCertificateAuthorityInput, ...request.Option) (*acmpca.UntagCertificateAuthorityOutput, error)
UntagCertificateAuthorityRequest(*acmpca.UntagCertificateAuthorityInput) (*request.Request, *acmpca.UntagCertificateAuthorityOutput)
UpdateCertificateAuthority(*acmpca.UpdateCertificateAuthorityInput) (*acmpca.UpdateCertificateAuthorityOutput, error)
UpdateCertificateAuthorityWithContext(aws.Context, *acmpca.UpdateCertificateAuthorityInput, ...request.Option) (*acmpca.UpdateCertificateAuthorityOutput, error)
UpdateCertificateAuthorityRequest(*acmpca.UpdateCertificateAuthorityInput) (*request.Request, *acmpca.UpdateCertificateAuthorityOutput)
}
var _ ACMPCAAPI = (*acmpca.ACMPCA)(nil)
File diff suppressed because it is too large Load Diff
+55
View File
@@ -0,0 +1,55 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package acmpca provides the client and types for making API
// requests to AWS Certificate Manager Private Certificate Authority.
//
// You can use the ACM PCA API to create a private certificate authority (CA).
// You must first call the CreateCertificateAuthority function. If successful,
// the function returns an Amazon Resource Name (ARN) for your private CA. Use
// this ARN as input to the GetCertificateAuthorityCsr function to retrieve
// the certificate signing request (CSR) for your private CA certificate. Sign
// the CSR using the root or an intermediate CA in your on-premises PKI hierarchy,
// and call the ImportCertificateAuthorityCertificate to import your signed
// private CA certificate into ACM PCA.
//
// Use your private CA to issue and revoke certificates. These are private certificates
// that identify and secure client computers, servers, applications, services,
// devices, and users over SSLS/TLS connections within your organization. Call
// the IssueCertificate function to issue a certificate. Call the RevokeCertificate
// function to revoke a certificate.
//
// Certificates issued by your private CA can be trusted only within your organization,
// not publicly.
//
// Your private CA can optionally create a certificate revocation list (CRL)
// to track the certificates you revoke. To create a CRL, you must specify a
// RevocationConfiguration object when you call the CreateCertificateAuthority
// function. ACM PCA writes the CRL to an S3 bucket that you specify. You must
// specify a bucket policy that grants ACM PCA write permission.
//
// You can also call the CreateCertificateAuthorityAuditReport to create an
// optional audit report that lists every time the CA private key is used. The
// private key is used for signing when the IssueCertificate or RevokeCertificate
// function is called.
//
// See https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22 for more information on this service.
//
// See acmpca package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/acmpca/
//
// Using the Client
//
// To contact AWS Certificate Manager Private Certificate Authority 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 Certificate Manager Private Certificate Authority client ACMPCA for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/acmpca/#New
package acmpca
+109
View File
@@ -0,0 +1,109 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acmpca
const (
// ErrCodeCertificateMismatchException for service response error code
// "CertificateMismatchException".
//
// The certificate authority certificate you are importing does not comply with
// conditions specified in the certificate that signed it.
ErrCodeCertificateMismatchException = "CertificateMismatchException"
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// A previous update to your private CA is still ongoing.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeInvalidArgsException for service response error code
// "InvalidArgsException".
//
// One or more of the specified arguments was not valid.
ErrCodeInvalidArgsException = "InvalidArgsException"
// ErrCodeInvalidArnException for service response error code
// "InvalidArnException".
//
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
ErrCodeInvalidArnException = "InvalidArnException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// The token specified in the NextToken argument is not valid. Use the token
// returned from your previous call to ListCertificateAuthorities.
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeInvalidPolicyException for service response error code
// "InvalidPolicyException".
//
// The S3 bucket policy is not valid. The policy must give ACM PCA rights to
// read from and write to the bucket and find the bucket location.
ErrCodeInvalidPolicyException = "InvalidPolicyException"
// ErrCodeInvalidStateException for service response error code
// "InvalidStateException".
//
// The private CA is in a state during which a report cannot be generated.
ErrCodeInvalidStateException = "InvalidStateException"
// ErrCodeInvalidTagException for service response error code
// "InvalidTagException".
//
// The tag associated with the CA is not valid. The invalid argument is contained
// in the message field.
ErrCodeInvalidTagException = "InvalidTagException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// An ACM PCA limit has been exceeded. See the exception message returned to
// determine the limit that was exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeMalformedCSRException for service response error code
// "MalformedCSRException".
//
// The certificate signing request is invalid.
ErrCodeMalformedCSRException = "MalformedCSRException"
// ErrCodeMalformedCertificateException for service response error code
// "MalformedCertificateException".
//
// One or more fields in the certificate are invalid.
ErrCodeMalformedCertificateException = "MalformedCertificateException"
// ErrCodeRequestAlreadyProcessedException for service response error code
// "RequestAlreadyProcessedException".
//
// Your request has already been completed.
ErrCodeRequestAlreadyProcessedException = "RequestAlreadyProcessedException"
// ErrCodeRequestFailedException for service response error code
// "RequestFailedException".
//
// The request has failed for an unspecified reason.
ErrCodeRequestFailedException = "RequestFailedException"
// ErrCodeRequestInProgressException for service response error code
// "RequestInProgressException".
//
// Your request is already in progress.
ErrCodeRequestInProgressException = "RequestInProgressException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// A resource such as a private CA, S3 bucket, certificate, or audit report
// cannot be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// You can associate up to 50 tags with a private CA. Exception information
// is contained in the exception message field.
ErrCodeTooManyTagsException = "TooManyTagsException"
)
+95
View File
@@ -0,0 +1,95 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acmpca
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// ACMPCA provides the API operation methods for making requests to
// AWS Certificate Manager Private Certificate Authority. See this package's package overview docs
// for details on the service.
//
// ACMPCA methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type ACMPCA struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "acm-pca" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the ACMPCA client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a ACMPCA client from just a session.
// svc := acmpca.New(mySession)
//
// // Create a ACMPCA client with additional configuration
// svc := acmpca.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ACMPCA {
c := p.ClientConfig(EndpointsID, cfgs...)
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ACMPCA {
svc := &ACMPCA{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2017-08-22",
JSONVersion: "1.1",
TargetPrefix: "ACMPrivateCA",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a ACMPCA operation and runs any
// custom request initialization.
func (c *ACMPCA) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
@@ -0,0 +1,283 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package alexaforbusinessiface provides an interface to enable mocking the Alexa For Business service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package alexaforbusinessiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/alexaforbusiness"
)
// AlexaForBusinessAPI provides an interface to enable mocking the
// alexaforbusiness.AlexaForBusiness service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// 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 SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // Alexa For Business.
// func myFunc(svc alexaforbusinessiface.AlexaForBusinessAPI) bool {
// // Make svc.AssociateContactWithAddressBook request
// }
//
// func main() {
// sess := session.New()
// svc := alexaforbusiness.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockAlexaForBusinessClient struct {
// alexaforbusinessiface.AlexaForBusinessAPI
// }
// func (m *mockAlexaForBusinessClient) AssociateContactWithAddressBook(input *alexaforbusiness.AssociateContactWithAddressBookInput) (*alexaforbusiness.AssociateContactWithAddressBookOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockAlexaForBusinessClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type AlexaForBusinessAPI interface {
AssociateContactWithAddressBook(*alexaforbusiness.AssociateContactWithAddressBookInput) (*alexaforbusiness.AssociateContactWithAddressBookOutput, error)
AssociateContactWithAddressBookWithContext(aws.Context, *alexaforbusiness.AssociateContactWithAddressBookInput, ...request.Option) (*alexaforbusiness.AssociateContactWithAddressBookOutput, error)
AssociateContactWithAddressBookRequest(*alexaforbusiness.AssociateContactWithAddressBookInput) (*request.Request, *alexaforbusiness.AssociateContactWithAddressBookOutput)
AssociateDeviceWithRoom(*alexaforbusiness.AssociateDeviceWithRoomInput) (*alexaforbusiness.AssociateDeviceWithRoomOutput, error)
AssociateDeviceWithRoomWithContext(aws.Context, *alexaforbusiness.AssociateDeviceWithRoomInput, ...request.Option) (*alexaforbusiness.AssociateDeviceWithRoomOutput, error)
AssociateDeviceWithRoomRequest(*alexaforbusiness.AssociateDeviceWithRoomInput) (*request.Request, *alexaforbusiness.AssociateDeviceWithRoomOutput)
AssociateSkillGroupWithRoom(*alexaforbusiness.AssociateSkillGroupWithRoomInput) (*alexaforbusiness.AssociateSkillGroupWithRoomOutput, error)
AssociateSkillGroupWithRoomWithContext(aws.Context, *alexaforbusiness.AssociateSkillGroupWithRoomInput, ...request.Option) (*alexaforbusiness.AssociateSkillGroupWithRoomOutput, error)
AssociateSkillGroupWithRoomRequest(*alexaforbusiness.AssociateSkillGroupWithRoomInput) (*request.Request, *alexaforbusiness.AssociateSkillGroupWithRoomOutput)
CreateAddressBook(*alexaforbusiness.CreateAddressBookInput) (*alexaforbusiness.CreateAddressBookOutput, error)
CreateAddressBookWithContext(aws.Context, *alexaforbusiness.CreateAddressBookInput, ...request.Option) (*alexaforbusiness.CreateAddressBookOutput, error)
CreateAddressBookRequest(*alexaforbusiness.CreateAddressBookInput) (*request.Request, *alexaforbusiness.CreateAddressBookOutput)
CreateContact(*alexaforbusiness.CreateContactInput) (*alexaforbusiness.CreateContactOutput, error)
CreateContactWithContext(aws.Context, *alexaforbusiness.CreateContactInput, ...request.Option) (*alexaforbusiness.CreateContactOutput, error)
CreateContactRequest(*alexaforbusiness.CreateContactInput) (*request.Request, *alexaforbusiness.CreateContactOutput)
CreateProfile(*alexaforbusiness.CreateProfileInput) (*alexaforbusiness.CreateProfileOutput, error)
CreateProfileWithContext(aws.Context, *alexaforbusiness.CreateProfileInput, ...request.Option) (*alexaforbusiness.CreateProfileOutput, error)
CreateProfileRequest(*alexaforbusiness.CreateProfileInput) (*request.Request, *alexaforbusiness.CreateProfileOutput)
CreateRoom(*alexaforbusiness.CreateRoomInput) (*alexaforbusiness.CreateRoomOutput, error)
CreateRoomWithContext(aws.Context, *alexaforbusiness.CreateRoomInput, ...request.Option) (*alexaforbusiness.CreateRoomOutput, error)
CreateRoomRequest(*alexaforbusiness.CreateRoomInput) (*request.Request, *alexaforbusiness.CreateRoomOutput)
CreateSkillGroup(*alexaforbusiness.CreateSkillGroupInput) (*alexaforbusiness.CreateSkillGroupOutput, error)
CreateSkillGroupWithContext(aws.Context, *alexaforbusiness.CreateSkillGroupInput, ...request.Option) (*alexaforbusiness.CreateSkillGroupOutput, error)
CreateSkillGroupRequest(*alexaforbusiness.CreateSkillGroupInput) (*request.Request, *alexaforbusiness.CreateSkillGroupOutput)
CreateUser(*alexaforbusiness.CreateUserInput) (*alexaforbusiness.CreateUserOutput, error)
CreateUserWithContext(aws.Context, *alexaforbusiness.CreateUserInput, ...request.Option) (*alexaforbusiness.CreateUserOutput, error)
CreateUserRequest(*alexaforbusiness.CreateUserInput) (*request.Request, *alexaforbusiness.CreateUserOutput)
DeleteAddressBook(*alexaforbusiness.DeleteAddressBookInput) (*alexaforbusiness.DeleteAddressBookOutput, error)
DeleteAddressBookWithContext(aws.Context, *alexaforbusiness.DeleteAddressBookInput, ...request.Option) (*alexaforbusiness.DeleteAddressBookOutput, error)
DeleteAddressBookRequest(*alexaforbusiness.DeleteAddressBookInput) (*request.Request, *alexaforbusiness.DeleteAddressBookOutput)
DeleteContact(*alexaforbusiness.DeleteContactInput) (*alexaforbusiness.DeleteContactOutput, error)
DeleteContactWithContext(aws.Context, *alexaforbusiness.DeleteContactInput, ...request.Option) (*alexaforbusiness.DeleteContactOutput, error)
DeleteContactRequest(*alexaforbusiness.DeleteContactInput) (*request.Request, *alexaforbusiness.DeleteContactOutput)
DeleteProfile(*alexaforbusiness.DeleteProfileInput) (*alexaforbusiness.DeleteProfileOutput, error)
DeleteProfileWithContext(aws.Context, *alexaforbusiness.DeleteProfileInput, ...request.Option) (*alexaforbusiness.DeleteProfileOutput, error)
DeleteProfileRequest(*alexaforbusiness.DeleteProfileInput) (*request.Request, *alexaforbusiness.DeleteProfileOutput)
DeleteRoom(*alexaforbusiness.DeleteRoomInput) (*alexaforbusiness.DeleteRoomOutput, error)
DeleteRoomWithContext(aws.Context, *alexaforbusiness.DeleteRoomInput, ...request.Option) (*alexaforbusiness.DeleteRoomOutput, error)
DeleteRoomRequest(*alexaforbusiness.DeleteRoomInput) (*request.Request, *alexaforbusiness.DeleteRoomOutput)
DeleteRoomSkillParameter(*alexaforbusiness.DeleteRoomSkillParameterInput) (*alexaforbusiness.DeleteRoomSkillParameterOutput, error)
DeleteRoomSkillParameterWithContext(aws.Context, *alexaforbusiness.DeleteRoomSkillParameterInput, ...request.Option) (*alexaforbusiness.DeleteRoomSkillParameterOutput, error)
DeleteRoomSkillParameterRequest(*alexaforbusiness.DeleteRoomSkillParameterInput) (*request.Request, *alexaforbusiness.DeleteRoomSkillParameterOutput)
DeleteSkillGroup(*alexaforbusiness.DeleteSkillGroupInput) (*alexaforbusiness.DeleteSkillGroupOutput, error)
DeleteSkillGroupWithContext(aws.Context, *alexaforbusiness.DeleteSkillGroupInput, ...request.Option) (*alexaforbusiness.DeleteSkillGroupOutput, error)
DeleteSkillGroupRequest(*alexaforbusiness.DeleteSkillGroupInput) (*request.Request, *alexaforbusiness.DeleteSkillGroupOutput)
DeleteUser(*alexaforbusiness.DeleteUserInput) (*alexaforbusiness.DeleteUserOutput, error)
DeleteUserWithContext(aws.Context, *alexaforbusiness.DeleteUserInput, ...request.Option) (*alexaforbusiness.DeleteUserOutput, error)
DeleteUserRequest(*alexaforbusiness.DeleteUserInput) (*request.Request, *alexaforbusiness.DeleteUserOutput)
DisassociateContactFromAddressBook(*alexaforbusiness.DisassociateContactFromAddressBookInput) (*alexaforbusiness.DisassociateContactFromAddressBookOutput, error)
DisassociateContactFromAddressBookWithContext(aws.Context, *alexaforbusiness.DisassociateContactFromAddressBookInput, ...request.Option) (*alexaforbusiness.DisassociateContactFromAddressBookOutput, error)
DisassociateContactFromAddressBookRequest(*alexaforbusiness.DisassociateContactFromAddressBookInput) (*request.Request, *alexaforbusiness.DisassociateContactFromAddressBookOutput)
DisassociateDeviceFromRoom(*alexaforbusiness.DisassociateDeviceFromRoomInput) (*alexaforbusiness.DisassociateDeviceFromRoomOutput, error)
DisassociateDeviceFromRoomWithContext(aws.Context, *alexaforbusiness.DisassociateDeviceFromRoomInput, ...request.Option) (*alexaforbusiness.DisassociateDeviceFromRoomOutput, error)
DisassociateDeviceFromRoomRequest(*alexaforbusiness.DisassociateDeviceFromRoomInput) (*request.Request, *alexaforbusiness.DisassociateDeviceFromRoomOutput)
DisassociateSkillGroupFromRoom(*alexaforbusiness.DisassociateSkillGroupFromRoomInput) (*alexaforbusiness.DisassociateSkillGroupFromRoomOutput, error)
DisassociateSkillGroupFromRoomWithContext(aws.Context, *alexaforbusiness.DisassociateSkillGroupFromRoomInput, ...request.Option) (*alexaforbusiness.DisassociateSkillGroupFromRoomOutput, error)
DisassociateSkillGroupFromRoomRequest(*alexaforbusiness.DisassociateSkillGroupFromRoomInput) (*request.Request, *alexaforbusiness.DisassociateSkillGroupFromRoomOutput)
GetAddressBook(*alexaforbusiness.GetAddressBookInput) (*alexaforbusiness.GetAddressBookOutput, error)
GetAddressBookWithContext(aws.Context, *alexaforbusiness.GetAddressBookInput, ...request.Option) (*alexaforbusiness.GetAddressBookOutput, error)
GetAddressBookRequest(*alexaforbusiness.GetAddressBookInput) (*request.Request, *alexaforbusiness.GetAddressBookOutput)
GetContact(*alexaforbusiness.GetContactInput) (*alexaforbusiness.GetContactOutput, error)
GetContactWithContext(aws.Context, *alexaforbusiness.GetContactInput, ...request.Option) (*alexaforbusiness.GetContactOutput, error)
GetContactRequest(*alexaforbusiness.GetContactInput) (*request.Request, *alexaforbusiness.GetContactOutput)
GetDevice(*alexaforbusiness.GetDeviceInput) (*alexaforbusiness.GetDeviceOutput, error)
GetDeviceWithContext(aws.Context, *alexaforbusiness.GetDeviceInput, ...request.Option) (*alexaforbusiness.GetDeviceOutput, error)
GetDeviceRequest(*alexaforbusiness.GetDeviceInput) (*request.Request, *alexaforbusiness.GetDeviceOutput)
GetProfile(*alexaforbusiness.GetProfileInput) (*alexaforbusiness.GetProfileOutput, error)
GetProfileWithContext(aws.Context, *alexaforbusiness.GetProfileInput, ...request.Option) (*alexaforbusiness.GetProfileOutput, error)
GetProfileRequest(*alexaforbusiness.GetProfileInput) (*request.Request, *alexaforbusiness.GetProfileOutput)
GetRoom(*alexaforbusiness.GetRoomInput) (*alexaforbusiness.GetRoomOutput, error)
GetRoomWithContext(aws.Context, *alexaforbusiness.GetRoomInput, ...request.Option) (*alexaforbusiness.GetRoomOutput, error)
GetRoomRequest(*alexaforbusiness.GetRoomInput) (*request.Request, *alexaforbusiness.GetRoomOutput)
GetRoomSkillParameter(*alexaforbusiness.GetRoomSkillParameterInput) (*alexaforbusiness.GetRoomSkillParameterOutput, error)
GetRoomSkillParameterWithContext(aws.Context, *alexaforbusiness.GetRoomSkillParameterInput, ...request.Option) (*alexaforbusiness.GetRoomSkillParameterOutput, error)
GetRoomSkillParameterRequest(*alexaforbusiness.GetRoomSkillParameterInput) (*request.Request, *alexaforbusiness.GetRoomSkillParameterOutput)
GetSkillGroup(*alexaforbusiness.GetSkillGroupInput) (*alexaforbusiness.GetSkillGroupOutput, error)
GetSkillGroupWithContext(aws.Context, *alexaforbusiness.GetSkillGroupInput, ...request.Option) (*alexaforbusiness.GetSkillGroupOutput, error)
GetSkillGroupRequest(*alexaforbusiness.GetSkillGroupInput) (*request.Request, *alexaforbusiness.GetSkillGroupOutput)
ListSkills(*alexaforbusiness.ListSkillsInput) (*alexaforbusiness.ListSkillsOutput, error)
ListSkillsWithContext(aws.Context, *alexaforbusiness.ListSkillsInput, ...request.Option) (*alexaforbusiness.ListSkillsOutput, error)
ListSkillsRequest(*alexaforbusiness.ListSkillsInput) (*request.Request, *alexaforbusiness.ListSkillsOutput)
ListSkillsPages(*alexaforbusiness.ListSkillsInput, func(*alexaforbusiness.ListSkillsOutput, bool) bool) error
ListSkillsPagesWithContext(aws.Context, *alexaforbusiness.ListSkillsInput, func(*alexaforbusiness.ListSkillsOutput, bool) bool, ...request.Option) error
ListTags(*alexaforbusiness.ListTagsInput) (*alexaforbusiness.ListTagsOutput, error)
ListTagsWithContext(aws.Context, *alexaforbusiness.ListTagsInput, ...request.Option) (*alexaforbusiness.ListTagsOutput, error)
ListTagsRequest(*alexaforbusiness.ListTagsInput) (*request.Request, *alexaforbusiness.ListTagsOutput)
ListTagsPages(*alexaforbusiness.ListTagsInput, func(*alexaforbusiness.ListTagsOutput, bool) bool) error
ListTagsPagesWithContext(aws.Context, *alexaforbusiness.ListTagsInput, func(*alexaforbusiness.ListTagsOutput, bool) bool, ...request.Option) error
PutRoomSkillParameter(*alexaforbusiness.PutRoomSkillParameterInput) (*alexaforbusiness.PutRoomSkillParameterOutput, error)
PutRoomSkillParameterWithContext(aws.Context, *alexaforbusiness.PutRoomSkillParameterInput, ...request.Option) (*alexaforbusiness.PutRoomSkillParameterOutput, error)
PutRoomSkillParameterRequest(*alexaforbusiness.PutRoomSkillParameterInput) (*request.Request, *alexaforbusiness.PutRoomSkillParameterOutput)
ResolveRoom(*alexaforbusiness.ResolveRoomInput) (*alexaforbusiness.ResolveRoomOutput, error)
ResolveRoomWithContext(aws.Context, *alexaforbusiness.ResolveRoomInput, ...request.Option) (*alexaforbusiness.ResolveRoomOutput, error)
ResolveRoomRequest(*alexaforbusiness.ResolveRoomInput) (*request.Request, *alexaforbusiness.ResolveRoomOutput)
RevokeInvitation(*alexaforbusiness.RevokeInvitationInput) (*alexaforbusiness.RevokeInvitationOutput, error)
RevokeInvitationWithContext(aws.Context, *alexaforbusiness.RevokeInvitationInput, ...request.Option) (*alexaforbusiness.RevokeInvitationOutput, error)
RevokeInvitationRequest(*alexaforbusiness.RevokeInvitationInput) (*request.Request, *alexaforbusiness.RevokeInvitationOutput)
SearchAddressBooks(*alexaforbusiness.SearchAddressBooksInput) (*alexaforbusiness.SearchAddressBooksOutput, error)
SearchAddressBooksWithContext(aws.Context, *alexaforbusiness.SearchAddressBooksInput, ...request.Option) (*alexaforbusiness.SearchAddressBooksOutput, error)
SearchAddressBooksRequest(*alexaforbusiness.SearchAddressBooksInput) (*request.Request, *alexaforbusiness.SearchAddressBooksOutput)
SearchAddressBooksPages(*alexaforbusiness.SearchAddressBooksInput, func(*alexaforbusiness.SearchAddressBooksOutput, bool) bool) error
SearchAddressBooksPagesWithContext(aws.Context, *alexaforbusiness.SearchAddressBooksInput, func(*alexaforbusiness.SearchAddressBooksOutput, bool) bool, ...request.Option) error
SearchContacts(*alexaforbusiness.SearchContactsInput) (*alexaforbusiness.SearchContactsOutput, error)
SearchContactsWithContext(aws.Context, *alexaforbusiness.SearchContactsInput, ...request.Option) (*alexaforbusiness.SearchContactsOutput, error)
SearchContactsRequest(*alexaforbusiness.SearchContactsInput) (*request.Request, *alexaforbusiness.SearchContactsOutput)
SearchContactsPages(*alexaforbusiness.SearchContactsInput, func(*alexaforbusiness.SearchContactsOutput, bool) bool) error
SearchContactsPagesWithContext(aws.Context, *alexaforbusiness.SearchContactsInput, func(*alexaforbusiness.SearchContactsOutput, bool) bool, ...request.Option) error
SearchDevices(*alexaforbusiness.SearchDevicesInput) (*alexaforbusiness.SearchDevicesOutput, error)
SearchDevicesWithContext(aws.Context, *alexaforbusiness.SearchDevicesInput, ...request.Option) (*alexaforbusiness.SearchDevicesOutput, error)
SearchDevicesRequest(*alexaforbusiness.SearchDevicesInput) (*request.Request, *alexaforbusiness.SearchDevicesOutput)
SearchDevicesPages(*alexaforbusiness.SearchDevicesInput, func(*alexaforbusiness.SearchDevicesOutput, bool) bool) error
SearchDevicesPagesWithContext(aws.Context, *alexaforbusiness.SearchDevicesInput, func(*alexaforbusiness.SearchDevicesOutput, bool) bool, ...request.Option) error
SearchProfiles(*alexaforbusiness.SearchProfilesInput) (*alexaforbusiness.SearchProfilesOutput, error)
SearchProfilesWithContext(aws.Context, *alexaforbusiness.SearchProfilesInput, ...request.Option) (*alexaforbusiness.SearchProfilesOutput, error)
SearchProfilesRequest(*alexaforbusiness.SearchProfilesInput) (*request.Request, *alexaforbusiness.SearchProfilesOutput)
SearchProfilesPages(*alexaforbusiness.SearchProfilesInput, func(*alexaforbusiness.SearchProfilesOutput, bool) bool) error
SearchProfilesPagesWithContext(aws.Context, *alexaforbusiness.SearchProfilesInput, func(*alexaforbusiness.SearchProfilesOutput, bool) bool, ...request.Option) error
SearchRooms(*alexaforbusiness.SearchRoomsInput) (*alexaforbusiness.SearchRoomsOutput, error)
SearchRoomsWithContext(aws.Context, *alexaforbusiness.SearchRoomsInput, ...request.Option) (*alexaforbusiness.SearchRoomsOutput, error)
SearchRoomsRequest(*alexaforbusiness.SearchRoomsInput) (*request.Request, *alexaforbusiness.SearchRoomsOutput)
SearchRoomsPages(*alexaforbusiness.SearchRoomsInput, func(*alexaforbusiness.SearchRoomsOutput, bool) bool) error
SearchRoomsPagesWithContext(aws.Context, *alexaforbusiness.SearchRoomsInput, func(*alexaforbusiness.SearchRoomsOutput, bool) bool, ...request.Option) error
SearchSkillGroups(*alexaforbusiness.SearchSkillGroupsInput) (*alexaforbusiness.SearchSkillGroupsOutput, error)
SearchSkillGroupsWithContext(aws.Context, *alexaforbusiness.SearchSkillGroupsInput, ...request.Option) (*alexaforbusiness.SearchSkillGroupsOutput, error)
SearchSkillGroupsRequest(*alexaforbusiness.SearchSkillGroupsInput) (*request.Request, *alexaforbusiness.SearchSkillGroupsOutput)
SearchSkillGroupsPages(*alexaforbusiness.SearchSkillGroupsInput, func(*alexaforbusiness.SearchSkillGroupsOutput, bool) bool) error
SearchSkillGroupsPagesWithContext(aws.Context, *alexaforbusiness.SearchSkillGroupsInput, func(*alexaforbusiness.SearchSkillGroupsOutput, bool) bool, ...request.Option) error
SearchUsers(*alexaforbusiness.SearchUsersInput) (*alexaforbusiness.SearchUsersOutput, error)
SearchUsersWithContext(aws.Context, *alexaforbusiness.SearchUsersInput, ...request.Option) (*alexaforbusiness.SearchUsersOutput, error)
SearchUsersRequest(*alexaforbusiness.SearchUsersInput) (*request.Request, *alexaforbusiness.SearchUsersOutput)
SearchUsersPages(*alexaforbusiness.SearchUsersInput, func(*alexaforbusiness.SearchUsersOutput, bool) bool) error
SearchUsersPagesWithContext(aws.Context, *alexaforbusiness.SearchUsersInput, func(*alexaforbusiness.SearchUsersOutput, bool) bool, ...request.Option) error
SendInvitation(*alexaforbusiness.SendInvitationInput) (*alexaforbusiness.SendInvitationOutput, error)
SendInvitationWithContext(aws.Context, *alexaforbusiness.SendInvitationInput, ...request.Option) (*alexaforbusiness.SendInvitationOutput, error)
SendInvitationRequest(*alexaforbusiness.SendInvitationInput) (*request.Request, *alexaforbusiness.SendInvitationOutput)
StartDeviceSync(*alexaforbusiness.StartDeviceSyncInput) (*alexaforbusiness.StartDeviceSyncOutput, error)
StartDeviceSyncWithContext(aws.Context, *alexaforbusiness.StartDeviceSyncInput, ...request.Option) (*alexaforbusiness.StartDeviceSyncOutput, error)
StartDeviceSyncRequest(*alexaforbusiness.StartDeviceSyncInput) (*request.Request, *alexaforbusiness.StartDeviceSyncOutput)
TagResource(*alexaforbusiness.TagResourceInput) (*alexaforbusiness.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *alexaforbusiness.TagResourceInput, ...request.Option) (*alexaforbusiness.TagResourceOutput, error)
TagResourceRequest(*alexaforbusiness.TagResourceInput) (*request.Request, *alexaforbusiness.TagResourceOutput)
UntagResource(*alexaforbusiness.UntagResourceInput) (*alexaforbusiness.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *alexaforbusiness.UntagResourceInput, ...request.Option) (*alexaforbusiness.UntagResourceOutput, error)
UntagResourceRequest(*alexaforbusiness.UntagResourceInput) (*request.Request, *alexaforbusiness.UntagResourceOutput)
UpdateAddressBook(*alexaforbusiness.UpdateAddressBookInput) (*alexaforbusiness.UpdateAddressBookOutput, error)
UpdateAddressBookWithContext(aws.Context, *alexaforbusiness.UpdateAddressBookInput, ...request.Option) (*alexaforbusiness.UpdateAddressBookOutput, error)
UpdateAddressBookRequest(*alexaforbusiness.UpdateAddressBookInput) (*request.Request, *alexaforbusiness.UpdateAddressBookOutput)
UpdateContact(*alexaforbusiness.UpdateContactInput) (*alexaforbusiness.UpdateContactOutput, error)
UpdateContactWithContext(aws.Context, *alexaforbusiness.UpdateContactInput, ...request.Option) (*alexaforbusiness.UpdateContactOutput, error)
UpdateContactRequest(*alexaforbusiness.UpdateContactInput) (*request.Request, *alexaforbusiness.UpdateContactOutput)
UpdateDevice(*alexaforbusiness.UpdateDeviceInput) (*alexaforbusiness.UpdateDeviceOutput, error)
UpdateDeviceWithContext(aws.Context, *alexaforbusiness.UpdateDeviceInput, ...request.Option) (*alexaforbusiness.UpdateDeviceOutput, error)
UpdateDeviceRequest(*alexaforbusiness.UpdateDeviceInput) (*request.Request, *alexaforbusiness.UpdateDeviceOutput)
UpdateProfile(*alexaforbusiness.UpdateProfileInput) (*alexaforbusiness.UpdateProfileOutput, error)
UpdateProfileWithContext(aws.Context, *alexaforbusiness.UpdateProfileInput, ...request.Option) (*alexaforbusiness.UpdateProfileOutput, error)
UpdateProfileRequest(*alexaforbusiness.UpdateProfileInput) (*request.Request, *alexaforbusiness.UpdateProfileOutput)
UpdateRoom(*alexaforbusiness.UpdateRoomInput) (*alexaforbusiness.UpdateRoomOutput, error)
UpdateRoomWithContext(aws.Context, *alexaforbusiness.UpdateRoomInput, ...request.Option) (*alexaforbusiness.UpdateRoomOutput, error)
UpdateRoomRequest(*alexaforbusiness.UpdateRoomInput) (*request.Request, *alexaforbusiness.UpdateRoomOutput)
UpdateSkillGroup(*alexaforbusiness.UpdateSkillGroupInput) (*alexaforbusiness.UpdateSkillGroupOutput, error)
UpdateSkillGroupWithContext(aws.Context, *alexaforbusiness.UpdateSkillGroupInput, ...request.Option) (*alexaforbusiness.UpdateSkillGroupOutput, error)
UpdateSkillGroupRequest(*alexaforbusiness.UpdateSkillGroupInput) (*request.Request, *alexaforbusiness.UpdateSkillGroupOutput)
}
var _ AlexaForBusinessAPI = (*alexaforbusiness.AlexaForBusiness)(nil)
File diff suppressed because it is too large Load Diff
+34
View File
@@ -0,0 +1,34 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package alexaforbusiness provides the client and types for making API
// requests to Alexa For Business.
//
// Alexa for Business makes it easy for you to use Alexa in your organization.
// Alexa for Business gives you the tools you need to manage Alexa devices,
// enroll your users, and assign skills, at scale. You can build your own context-aware
// voice skills using the Alexa Skills Kit, and the Alexa for Business APIs,
// and you can make these available as private skills for your organization.
// Alexa for Business also makes it easy to voice-enable your products and services,
// providing context-aware voice experiences for your customers.
//
// See https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09 for more information on this service.
//
// See alexaforbusiness package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/alexaforbusiness/
//
// Using the Client
//
// To contact Alexa For Business 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 Alexa For Business client AlexaForBusiness for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/alexaforbusiness/#New
package alexaforbusiness
+44
View File
@@ -0,0 +1,44 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package alexaforbusiness
const (
// ErrCodeAlreadyExistsException for service response error code
// "AlreadyExistsException".
//
// The resource being created already exists. HTTP Status Code: 400
ErrCodeAlreadyExistsException = "AlreadyExistsException"
// ErrCodeInvalidUserStatusException for service response error code
// "InvalidUserStatusException".
//
// The attempt to update a user is invalid due to the user's current status.
// HTTP Status Code: 400
ErrCodeInvalidUserStatusException = "InvalidUserStatusException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// You are performing an action that would put you beyond your account's limits.
// HTTP Status Code: 400
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNameInUseException for service response error code
// "NameInUseException".
//
// The name sent in the request is already in use. HTTP Status Code: 400
ErrCodeNameInUseException = "NameInUseException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The resource is not found. HTTP Status Code: 400
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// The resource in the request is already in use. HTTP Status Code: 400
ErrCodeResourceInUseException = "ResourceInUseException"
)
+95
View File
@@ -0,0 +1,95 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package alexaforbusiness
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// AlexaForBusiness provides the API operation methods for making requests to
// Alexa For Business. See this package's package overview docs
// for details on the service.
//
// AlexaForBusiness methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type AlexaForBusiness struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "a4b" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the AlexaForBusiness client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a AlexaForBusiness client from just a session.
// svc := alexaforbusiness.New(mySession)
//
// // Create a AlexaForBusiness client with additional configuration
// svc := alexaforbusiness.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AlexaForBusiness {
c := p.ClientConfig(EndpointsID, cfgs...)
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *AlexaForBusiness {
svc := &AlexaForBusiness{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2017-11-09",
JSONVersion: "1.1",
TargetPrefix: "AlexaForBusiness",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a AlexaForBusiness operation and runs any
// custom request initialization.
func (c *AlexaForBusiness) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
File diff suppressed because it is too large Load Diff
@@ -116,6 +116,10 @@ type APIGatewayAPI interface {
CreateUsagePlanKeyWithContext(aws.Context, *apigateway.CreateUsagePlanKeyInput, ...request.Option) (*apigateway.UsagePlanKey, error)
CreateUsagePlanKeyRequest(*apigateway.CreateUsagePlanKeyInput) (*request.Request, *apigateway.UsagePlanKey)
CreateVpcLink(*apigateway.CreateVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error)
CreateVpcLinkWithContext(aws.Context, *apigateway.CreateVpcLinkInput, ...request.Option) (*apigateway.UpdateVpcLinkOutput, error)
CreateVpcLinkRequest(*apigateway.CreateVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput)
DeleteApiKey(*apigateway.DeleteApiKeyInput) (*apigateway.DeleteApiKeyOutput, error)
DeleteApiKeyWithContext(aws.Context, *apigateway.DeleteApiKeyInput, ...request.Option) (*apigateway.DeleteApiKeyOutput, error)
DeleteApiKeyRequest(*apigateway.DeleteApiKeyInput) (*request.Request, *apigateway.DeleteApiKeyOutput)
@@ -196,6 +200,10 @@ type APIGatewayAPI interface {
DeleteUsagePlanKeyWithContext(aws.Context, *apigateway.DeleteUsagePlanKeyInput, ...request.Option) (*apigateway.DeleteUsagePlanKeyOutput, error)
DeleteUsagePlanKeyRequest(*apigateway.DeleteUsagePlanKeyInput) (*request.Request, *apigateway.DeleteUsagePlanKeyOutput)
DeleteVpcLink(*apigateway.DeleteVpcLinkInput) (*apigateway.DeleteVpcLinkOutput, error)
DeleteVpcLinkWithContext(aws.Context, *apigateway.DeleteVpcLinkInput, ...request.Option) (*apigateway.DeleteVpcLinkOutput, error)
DeleteVpcLinkRequest(*apigateway.DeleteVpcLinkInput) (*request.Request, *apigateway.DeleteVpcLinkOutput)
FlushStageAuthorizersCache(*apigateway.FlushStageAuthorizersCacheInput) (*apigateway.FlushStageAuthorizersCacheOutput, error)
FlushStageAuthorizersCacheWithContext(aws.Context, *apigateway.FlushStageAuthorizersCacheInput, ...request.Option) (*apigateway.FlushStageAuthorizersCacheOutput, error)
FlushStageAuthorizersCacheRequest(*apigateway.FlushStageAuthorizersCacheInput) (*request.Request, *apigateway.FlushStageAuthorizersCacheOutput)
@@ -384,6 +392,10 @@ type APIGatewayAPI interface {
GetStagesWithContext(aws.Context, *apigateway.GetStagesInput, ...request.Option) (*apigateway.GetStagesOutput, error)
GetStagesRequest(*apigateway.GetStagesInput) (*request.Request, *apigateway.GetStagesOutput)
GetTags(*apigateway.GetTagsInput) (*apigateway.GetTagsOutput, error)
GetTagsWithContext(aws.Context, *apigateway.GetTagsInput, ...request.Option) (*apigateway.GetTagsOutput, error)
GetTagsRequest(*apigateway.GetTagsInput) (*request.Request, *apigateway.GetTagsOutput)
GetUsage(*apigateway.GetUsageInput) (*apigateway.Usage, error)
GetUsageWithContext(aws.Context, *apigateway.GetUsageInput, ...request.Option) (*apigateway.Usage, error)
GetUsageRequest(*apigateway.GetUsageInput) (*request.Request, *apigateway.Usage)
@@ -413,6 +425,17 @@ type APIGatewayAPI interface {
GetUsagePlansPages(*apigateway.GetUsagePlansInput, func(*apigateway.GetUsagePlansOutput, bool) bool) error
GetUsagePlansPagesWithContext(aws.Context, *apigateway.GetUsagePlansInput, func(*apigateway.GetUsagePlansOutput, bool) bool, ...request.Option) error
GetVpcLink(*apigateway.GetVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error)
GetVpcLinkWithContext(aws.Context, *apigateway.GetVpcLinkInput, ...request.Option) (*apigateway.UpdateVpcLinkOutput, error)
GetVpcLinkRequest(*apigateway.GetVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput)
GetVpcLinks(*apigateway.GetVpcLinksInput) (*apigateway.GetVpcLinksOutput, error)
GetVpcLinksWithContext(aws.Context, *apigateway.GetVpcLinksInput, ...request.Option) (*apigateway.GetVpcLinksOutput, error)
GetVpcLinksRequest(*apigateway.GetVpcLinksInput) (*request.Request, *apigateway.GetVpcLinksOutput)
GetVpcLinksPages(*apigateway.GetVpcLinksInput, func(*apigateway.GetVpcLinksOutput, bool) bool) error
GetVpcLinksPagesWithContext(aws.Context, *apigateway.GetVpcLinksInput, func(*apigateway.GetVpcLinksOutput, bool) bool, ...request.Option) error
ImportApiKeys(*apigateway.ImportApiKeysInput) (*apigateway.ImportApiKeysOutput, error)
ImportApiKeysWithContext(aws.Context, *apigateway.ImportApiKeysInput, ...request.Option) (*apigateway.ImportApiKeysOutput, error)
ImportApiKeysRequest(*apigateway.ImportApiKeysInput) (*request.Request, *apigateway.ImportApiKeysOutput)
@@ -449,6 +472,10 @@ type APIGatewayAPI interface {
PutRestApiWithContext(aws.Context, *apigateway.PutRestApiInput, ...request.Option) (*apigateway.RestApi, error)
PutRestApiRequest(*apigateway.PutRestApiInput) (*request.Request, *apigateway.RestApi)
TagResource(*apigateway.TagResourceInput) (*apigateway.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *apigateway.TagResourceInput, ...request.Option) (*apigateway.TagResourceOutput, error)
TagResourceRequest(*apigateway.TagResourceInput) (*request.Request, *apigateway.TagResourceOutput)
TestInvokeAuthorizer(*apigateway.TestInvokeAuthorizerInput) (*apigateway.TestInvokeAuthorizerOutput, error)
TestInvokeAuthorizerWithContext(aws.Context, *apigateway.TestInvokeAuthorizerInput, ...request.Option) (*apigateway.TestInvokeAuthorizerOutput, error)
TestInvokeAuthorizerRequest(*apigateway.TestInvokeAuthorizerInput) (*request.Request, *apigateway.TestInvokeAuthorizerOutput)
@@ -457,6 +484,10 @@ type APIGatewayAPI interface {
TestInvokeMethodWithContext(aws.Context, *apigateway.TestInvokeMethodInput, ...request.Option) (*apigateway.TestInvokeMethodOutput, error)
TestInvokeMethodRequest(*apigateway.TestInvokeMethodInput) (*request.Request, *apigateway.TestInvokeMethodOutput)
UntagResource(*apigateway.UntagResourceInput) (*apigateway.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *apigateway.UntagResourceInput, ...request.Option) (*apigateway.UntagResourceOutput, error)
UntagResourceRequest(*apigateway.UntagResourceInput) (*request.Request, *apigateway.UntagResourceOutput)
UpdateAccount(*apigateway.UpdateAccountInput) (*apigateway.Account, error)
UpdateAccountWithContext(aws.Context, *apigateway.UpdateAccountInput, ...request.Option) (*apigateway.Account, error)
UpdateAccountRequest(*apigateway.UpdateAccountInput) (*request.Request, *apigateway.Account)
@@ -540,6 +571,10 @@ type APIGatewayAPI interface {
UpdateUsagePlan(*apigateway.UpdateUsagePlanInput) (*apigateway.UsagePlan, error)
UpdateUsagePlanWithContext(aws.Context, *apigateway.UpdateUsagePlanInput, ...request.Option) (*apigateway.UsagePlan, error)
UpdateUsagePlanRequest(*apigateway.UpdateUsagePlanInput) (*request.Request, *apigateway.UsagePlan)
UpdateVpcLink(*apigateway.UpdateVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error)
UpdateVpcLinkWithContext(aws.Context, *apigateway.UpdateVpcLinkInput, ...request.Option) (*apigateway.UpdateVpcLinkOutput, error)
UpdateVpcLinkRequest(*apigateway.UpdateVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput)
}
var _ APIGatewayAPI = (*apigateway.APIGateway)(nil)
+5 -5
View File
@@ -4,17 +4,17 @@
// requests to Amazon API Gateway.
//
// Amazon API Gateway helps developers deliver robust, secure, and scalable
// mobile and web application back ends. Amazon API Gateway allows developers
// to securely connect mobile and web applications to APIs that run on AWS Lambda,
// Amazon EC2, or other publicly addressable web services that are hosted outside
// of AWS.
// mobile and web application back ends. API Gateway allows developers to securely
// connect mobile and web applications to APIs that run on AWS Lambda, Amazon
// EC2, or other publicly addressable web services that are hosted outside of
// AWS.
//
// See apigateway package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/apigateway/
//
// Using the Client
//
// To Amazon API Gateway with the SDK use the New function to create
// To contact Amazon API Gateway 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.
//
File diff suppressed because it is too large Load Diff
@@ -64,6 +64,10 @@ type ApplicationAutoScalingAPI interface {
DeleteScalingPolicyWithContext(aws.Context, *applicationautoscaling.DeleteScalingPolicyInput, ...request.Option) (*applicationautoscaling.DeleteScalingPolicyOutput, error)
DeleteScalingPolicyRequest(*applicationautoscaling.DeleteScalingPolicyInput) (*request.Request, *applicationautoscaling.DeleteScalingPolicyOutput)
DeleteScheduledAction(*applicationautoscaling.DeleteScheduledActionInput) (*applicationautoscaling.DeleteScheduledActionOutput, error)
DeleteScheduledActionWithContext(aws.Context, *applicationautoscaling.DeleteScheduledActionInput, ...request.Option) (*applicationautoscaling.DeleteScheduledActionOutput, error)
DeleteScheduledActionRequest(*applicationautoscaling.DeleteScheduledActionInput) (*request.Request, *applicationautoscaling.DeleteScheduledActionOutput)
DeregisterScalableTarget(*applicationautoscaling.DeregisterScalableTargetInput) (*applicationautoscaling.DeregisterScalableTargetOutput, error)
DeregisterScalableTargetWithContext(aws.Context, *applicationautoscaling.DeregisterScalableTargetInput, ...request.Option) (*applicationautoscaling.DeregisterScalableTargetOutput, error)
DeregisterScalableTargetRequest(*applicationautoscaling.DeregisterScalableTargetInput) (*request.Request, *applicationautoscaling.DeregisterScalableTargetOutput)
@@ -89,10 +93,18 @@ type ApplicationAutoScalingAPI interface {
DescribeScalingPoliciesPages(*applicationautoscaling.DescribeScalingPoliciesInput, func(*applicationautoscaling.DescribeScalingPoliciesOutput, bool) bool) error
DescribeScalingPoliciesPagesWithContext(aws.Context, *applicationautoscaling.DescribeScalingPoliciesInput, func(*applicationautoscaling.DescribeScalingPoliciesOutput, bool) bool, ...request.Option) error
DescribeScheduledActions(*applicationautoscaling.DescribeScheduledActionsInput) (*applicationautoscaling.DescribeScheduledActionsOutput, error)
DescribeScheduledActionsWithContext(aws.Context, *applicationautoscaling.DescribeScheduledActionsInput, ...request.Option) (*applicationautoscaling.DescribeScheduledActionsOutput, error)
DescribeScheduledActionsRequest(*applicationautoscaling.DescribeScheduledActionsInput) (*request.Request, *applicationautoscaling.DescribeScheduledActionsOutput)
PutScalingPolicy(*applicationautoscaling.PutScalingPolicyInput) (*applicationautoscaling.PutScalingPolicyOutput, error)
PutScalingPolicyWithContext(aws.Context, *applicationautoscaling.PutScalingPolicyInput, ...request.Option) (*applicationautoscaling.PutScalingPolicyOutput, error)
PutScalingPolicyRequest(*applicationautoscaling.PutScalingPolicyInput) (*request.Request, *applicationautoscaling.PutScalingPolicyOutput)
PutScheduledAction(*applicationautoscaling.PutScheduledActionInput) (*applicationautoscaling.PutScheduledActionOutput, error)
PutScheduledActionWithContext(aws.Context, *applicationautoscaling.PutScheduledActionInput, ...request.Option) (*applicationautoscaling.PutScheduledActionOutput, error)
PutScheduledActionRequest(*applicationautoscaling.PutScheduledActionInput) (*request.Request, *applicationautoscaling.PutScheduledActionOutput)
RegisterScalableTarget(*applicationautoscaling.RegisterScalableTargetInput) (*applicationautoscaling.RegisterScalableTargetOutput, error)
RegisterScalableTargetWithContext(aws.Context, *applicationautoscaling.RegisterScalableTargetInput, ...request.Option) (*applicationautoscaling.RegisterScalableTargetOutput, error)
RegisterScalableTargetRequest(*applicationautoscaling.RegisterScalableTargetInput) (*request.Request, *applicationautoscaling.RegisterScalableTargetOutput)
+17 -5
View File
@@ -3,21 +3,23 @@
// Package applicationautoscaling provides the client and types for making API
// requests to Application Auto Scaling.
//
// With Application Auto Scaling, you can automatically scale your AWS resources.
// The experience similar to that of Auto Scaling (https://aws.amazon.com/autoscaling/).
// You can use Application Auto Scaling to accomplish the following tasks:
// With Application Auto Scaling, you can configure automatic scaling for your
// scalable AWS resources. You can use Application Auto Scaling to accomplish
// the following tasks:
//
// * Define scaling policies to automatically scale your AWS resources
//
// * Scale your resources in response to CloudWatch alarms
//
// * Schedule one-time or recurring scaling actions
//
// * View the history of your scaling events
//
// Application Auto Scaling can scale the following AWS resources:
//
// * Amazon ECS services. For more information, see Service Auto Scaling
// (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html)
// in the Amazon EC2 Container Service Developer Guide.
// in the Amazon Elastic Container Service Developer Guide.
//
// * Amazon EC2 Spot fleets. For more information, see Automatic Scaling
// for Spot Fleet (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-auto-scaling.html)
@@ -36,6 +38,16 @@
// Automatically with DynamoDB Auto Scaling (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html)
// in the Amazon DynamoDB Developer Guide.
//
// * Amazon Aurora Replicas. For more information, see Using Amazon Aurora
// Auto Scaling with Aurora Replicas (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Integrating.AutoScaling.html).
//
// * Amazon SageMaker endpoints. For more information, see Automatically
// Scaling Amazon SageMaker Models (http://docs.aws.amazon.com/sagemaker/latest/dg/endpoint-auto-scaling.html).
//
// To configure automatic scaling for multiple resources across multiple services,
// use AWS Auto Scaling to create a scaling plan for your application. For more
// information, see AWS Auto Scaling (http://aws.amazon.com/autoscaling).
//
// For a list of supported regions, see AWS Regions and Endpoints: Application
// Auto Scaling (http://docs.aws.amazon.com/general/latest/gr/rande.html#as-app_region)
// in the AWS General Reference.
@@ -47,7 +59,7 @@
//
// Using the Client
//
// To Application Auto Scaling with the SDK use the New function to create
// To contact Application Auto Scaling 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.
//
+8 -10
View File
@@ -19,7 +19,7 @@ const (
// with a scaling policy due to a client error, for example, if the role ARN
// specified for a scalable target does not have permission to call the CloudWatch
// DescribeAlarms (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html)
// API operation on behalf of your account.
// on your behalf.
ErrCodeFailedResourceAccessException = "FailedResourceAccessException"
// ErrCodeInternalServiceException for service response error code
@@ -37,20 +37,18 @@ const (
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// Your account exceeded a limit. This exception is thrown when a per-account
// resource limit is exceeded. For more information, see Application Auto Scaling
// Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_as-app).
// A per-account resource limit is exceeded. For more information, see Application
// Auto Scaling Limits (http://docs.aws.amazon.com/ApplicationAutoScaling/latest/userguide/application-auto-scaling-limits.html).
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeObjectNotFoundException for service response error code
// "ObjectNotFoundException".
//
// The specified object could not be found. For any Put or Register API operation,
// which depends on the existence of a scalable target, this exception is thrown
// if the scalable target with the specified service namespace, resource ID,
// and scalable dimension does not exist. For any Delete or Deregister API operation,
// this exception is thrown if the resource that is to be deleted or deregistered
// cannot be found.
// The specified object could not be found. For any operation that depends on
// the existence of a scalable target, this exception is thrown if the scalable
// target with the specified service namespace, resource ID, and scalable dimension
// does not exist. For any operation that deletes or deregisters a resource,
// this exception is thrown if the resource cannot be found.
ErrCodeObjectNotFoundException = "ObjectNotFoundException"
// ErrCodeValidationException for service response error code
@@ -45,14 +45,14 @@ const (
// svc := applicationautoscaling.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationAutoScaling {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "application-autoscaling"
}
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ApplicationAutoScaling {
if len(signingName) == 0 {
signingName = "application-autoscaling"
}
svc := &ApplicationAutoScaling{
Client: client.New(
cfg,
+67 -117
View File
@@ -15,7 +15,7 @@ const opAssociateConfigurationItemsToApplication = "AssociateConfigurationItemsT
// AssociateConfigurationItemsToApplicationRequest generates a "aws/request.Request" representing the
// client's request for the AssociateConfigurationItemsToApplication operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -36,7 +36,7 @@ const opAssociateConfigurationItemsToApplication = "AssociateConfigurationItemsT
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication
func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplicationRequest(input *AssociateConfigurationItemsToApplicationInput) (req *request.Request, output *AssociateConfigurationItemsToApplicationOutput) {
op := &request.Operation{
Name: opAssociateConfigurationItemsToApplication,
@@ -79,7 +79,7 @@ func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplicationRe
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication
func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplication(input *AssociateConfigurationItemsToApplicationInput) (*AssociateConfigurationItemsToApplicationOutput, error) {
req, out := c.AssociateConfigurationItemsToApplicationRequest(input)
return out, req.Send()
@@ -105,7 +105,7 @@ const opCreateApplication = "CreateApplication"
// CreateApplicationRequest generates a "aws/request.Request" representing the
// client's request for the CreateApplication operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -126,7 +126,7 @@ const opCreateApplication = "CreateApplication"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication
func (c *ApplicationDiscoveryService) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) {
op := &request.Operation{
Name: opCreateApplication,
@@ -169,7 +169,7 @@ func (c *ApplicationDiscoveryService) CreateApplicationRequest(input *CreateAppl
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication
func (c *ApplicationDiscoveryService) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) {
req, out := c.CreateApplicationRequest(input)
return out, req.Send()
@@ -195,7 +195,7 @@ const opCreateTags = "CreateTags"
// CreateTagsRequest generates a "aws/request.Request" representing the
// client's request for the CreateTags operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -216,7 +216,7 @@ const opCreateTags = "CreateTags"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags
func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) {
op := &request.Operation{
Name: opCreateTags,
@@ -265,7 +265,7 @@ func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput)
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags
func (c *ApplicationDiscoveryService) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) {
req, out := c.CreateTagsRequest(input)
return out, req.Send()
@@ -291,7 +291,7 @@ const opDeleteApplications = "DeleteApplications"
// DeleteApplicationsRequest generates a "aws/request.Request" representing the
// client's request for the DeleteApplications operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -312,7 +312,7 @@ const opDeleteApplications = "DeleteApplications"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications
func (c *ApplicationDiscoveryService) DeleteApplicationsRequest(input *DeleteApplicationsInput) (req *request.Request, output *DeleteApplicationsOutput) {
op := &request.Operation{
Name: opDeleteApplications,
@@ -356,7 +356,7 @@ func (c *ApplicationDiscoveryService) DeleteApplicationsRequest(input *DeleteApp
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications
func (c *ApplicationDiscoveryService) DeleteApplications(input *DeleteApplicationsInput) (*DeleteApplicationsOutput, error) {
req, out := c.DeleteApplicationsRequest(input)
return out, req.Send()
@@ -382,7 +382,7 @@ const opDeleteTags = "DeleteTags"
// DeleteTagsRequest generates a "aws/request.Request" representing the
// client's request for the DeleteTags operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -403,7 +403,7 @@ const opDeleteTags = "DeleteTags"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags
func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
op := &request.Operation{
Name: opDeleteTags,
@@ -451,7 +451,7 @@ func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput)
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags
func (c *ApplicationDiscoveryService) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
req, out := c.DeleteTagsRequest(input)
return out, req.Send()
@@ -477,7 +477,7 @@ const opDescribeAgents = "DescribeAgents"
// DescribeAgentsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeAgents operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -498,7 +498,7 @@ const opDescribeAgents = "DescribeAgents"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents
func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgentsInput) (req *request.Request, output *DescribeAgentsOutput) {
op := &request.Operation{
Name: opDescribeAgents,
@@ -542,7 +542,7 @@ func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgent
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents
func (c *ApplicationDiscoveryService) DescribeAgents(input *DescribeAgentsInput) (*DescribeAgentsOutput, error) {
req, out := c.DescribeAgentsRequest(input)
return out, req.Send()
@@ -568,7 +568,7 @@ const opDescribeConfigurations = "DescribeConfigurations"
// DescribeConfigurationsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeConfigurations operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -589,7 +589,7 @@ const opDescribeConfigurations = "DescribeConfigurations"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations
func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *DescribeConfigurationsInput) (req *request.Request, output *DescribeConfigurationsOutput) {
op := &request.Operation{
Name: opDescribeConfigurations,
@@ -639,7 +639,7 @@ func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *Descr
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations
func (c *ApplicationDiscoveryService) DescribeConfigurations(input *DescribeConfigurationsInput) (*DescribeConfigurationsOutput, error) {
req, out := c.DescribeConfigurationsRequest(input)
return out, req.Send()
@@ -665,7 +665,7 @@ const opDescribeExportConfigurations = "DescribeExportConfigurations"
// DescribeExportConfigurationsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeExportConfigurations operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -686,7 +686,7 @@ const opDescribeExportConfigurations = "DescribeExportConfigurations"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations
func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input *DescribeExportConfigurationsInput) (req *request.Request, output *DescribeExportConfigurationsOutput) {
if c.Client.Config.Logger != nil {
c.Client.Config.Logger.Log("This operation, DescribeExportConfigurations, has been deprecated")
@@ -739,7 +739,7 @@ func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations
func (c *ApplicationDiscoveryService) DescribeExportConfigurations(input *DescribeExportConfigurationsInput) (*DescribeExportConfigurationsOutput, error) {
req, out := c.DescribeExportConfigurationsRequest(input)
return out, req.Send()
@@ -765,7 +765,7 @@ const opDescribeExportTasks = "DescribeExportTasks"
// DescribeExportTasksRequest generates a "aws/request.Request" representing the
// client's request for the DescribeExportTasks operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -786,7 +786,7 @@ const opDescribeExportTasks = "DescribeExportTasks"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks
func (c *ApplicationDiscoveryService) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
op := &request.Operation{
Name: opDescribeExportTasks,
@@ -830,7 +830,7 @@ func (c *ApplicationDiscoveryService) DescribeExportTasksRequest(input *Describe
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks
func (c *ApplicationDiscoveryService) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) {
req, out := c.DescribeExportTasksRequest(input)
return out, req.Send()
@@ -856,7 +856,7 @@ const opDescribeTags = "DescribeTags"
// DescribeTagsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeTags operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -877,7 +877,7 @@ const opDescribeTags = "DescribeTags"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags
func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
op := &request.Operation{
Name: opDescribeTags,
@@ -925,7 +925,7 @@ func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInp
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags
func (c *ApplicationDiscoveryService) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
req, out := c.DescribeTagsRequest(input)
return out, req.Send()
@@ -951,7 +951,7 @@ const opDisassociateConfigurationItemsFromApplication = "DisassociateConfigurati
// DisassociateConfigurationItemsFromApplicationRequest generates a "aws/request.Request" representing the
// client's request for the DisassociateConfigurationItemsFromApplication operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -972,7 +972,7 @@ const opDisassociateConfigurationItemsFromApplication = "DisassociateConfigurati
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication
func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplicationRequest(input *DisassociateConfigurationItemsFromApplicationInput) (req *request.Request, output *DisassociateConfigurationItemsFromApplicationOutput) {
op := &request.Operation{
Name: opDisassociateConfigurationItemsFromApplication,
@@ -1015,7 +1015,7 @@ func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplicat
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication
func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplication(input *DisassociateConfigurationItemsFromApplicationInput) (*DisassociateConfigurationItemsFromApplicationOutput, error) {
req, out := c.DisassociateConfigurationItemsFromApplicationRequest(input)
return out, req.Send()
@@ -1041,7 +1041,7 @@ const opExportConfigurations = "ExportConfigurations"
// ExportConfigurationsRequest generates a "aws/request.Request" representing the
// client's request for the ExportConfigurations operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1062,7 +1062,7 @@ const opExportConfigurations = "ExportConfigurations"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations
func (c *ApplicationDiscoveryService) ExportConfigurationsRequest(input *ExportConfigurationsInput) (req *request.Request, output *ExportConfigurationsOutput) {
if c.Client.Config.Logger != nil {
c.Client.Config.Logger.Log("This operation, ExportConfigurations, has been deprecated")
@@ -1117,7 +1117,7 @@ func (c *ApplicationDiscoveryService) ExportConfigurationsRequest(input *ExportC
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not permitted.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations
func (c *ApplicationDiscoveryService) ExportConfigurations(input *ExportConfigurationsInput) (*ExportConfigurationsOutput, error) {
req, out := c.ExportConfigurationsRequest(input)
return out, req.Send()
@@ -1143,7 +1143,7 @@ const opGetDiscoverySummary = "GetDiscoverySummary"
// GetDiscoverySummaryRequest generates a "aws/request.Request" representing the
// client's request for the GetDiscoverySummary operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1164,7 +1164,7 @@ const opGetDiscoverySummary = "GetDiscoverySummary"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary
func (c *ApplicationDiscoveryService) GetDiscoverySummaryRequest(input *GetDiscoverySummaryInput) (req *request.Request, output *GetDiscoverySummaryOutput) {
op := &request.Operation{
Name: opGetDiscoverySummary,
@@ -1207,7 +1207,7 @@ func (c *ApplicationDiscoveryService) GetDiscoverySummaryRequest(input *GetDisco
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary
func (c *ApplicationDiscoveryService) GetDiscoverySummary(input *GetDiscoverySummaryInput) (*GetDiscoverySummaryOutput, error) {
req, out := c.GetDiscoverySummaryRequest(input)
return out, req.Send()
@@ -1233,7 +1233,7 @@ const opListConfigurations = "ListConfigurations"
// ListConfigurationsRequest generates a "aws/request.Request" representing the
// client's request for the ListConfigurations operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1254,7 +1254,7 @@ const opListConfigurations = "ListConfigurations"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations
func (c *ApplicationDiscoveryService) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsOutput) {
op := &request.Operation{
Name: opListConfigurations,
@@ -1302,7 +1302,7 @@ func (c *ApplicationDiscoveryService) ListConfigurationsRequest(input *ListConfi
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations
func (c *ApplicationDiscoveryService) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsOutput, error) {
req, out := c.ListConfigurationsRequest(input)
return out, req.Send()
@@ -1328,7 +1328,7 @@ const opListServerNeighbors = "ListServerNeighbors"
// ListServerNeighborsRequest generates a "aws/request.Request" representing the
// client's request for the ListServerNeighbors operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1349,7 +1349,7 @@ const opListServerNeighbors = "ListServerNeighbors"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors
func (c *ApplicationDiscoveryService) ListServerNeighborsRequest(input *ListServerNeighborsInput) (req *request.Request, output *ListServerNeighborsOutput) {
op := &request.Operation{
Name: opListServerNeighbors,
@@ -1393,7 +1393,7 @@ func (c *ApplicationDiscoveryService) ListServerNeighborsRequest(input *ListServ
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors
func (c *ApplicationDiscoveryService) ListServerNeighbors(input *ListServerNeighborsInput) (*ListServerNeighborsOutput, error) {
req, out := c.ListServerNeighborsRequest(input)
return out, req.Send()
@@ -1419,7 +1419,7 @@ const opStartDataCollectionByAgentIds = "StartDataCollectionByAgentIds"
// StartDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the
// client's request for the StartDataCollectionByAgentIds operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1440,7 +1440,7 @@ const opStartDataCollectionByAgentIds = "StartDataCollectionByAgentIds"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds
func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsRequest(input *StartDataCollectionByAgentIdsInput) (req *request.Request, output *StartDataCollectionByAgentIdsOutput) {
op := &request.Operation{
Name: opStartDataCollectionByAgentIds,
@@ -1483,7 +1483,7 @@ func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsRequest(input
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds
func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIds(input *StartDataCollectionByAgentIdsInput) (*StartDataCollectionByAgentIdsOutput, error) {
req, out := c.StartDataCollectionByAgentIdsRequest(input)
return out, req.Send()
@@ -1509,7 +1509,7 @@ const opStartExportTask = "StartExportTask"
// StartExportTaskRequest generates a "aws/request.Request" representing the
// client's request for the StartExportTask operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1530,7 +1530,7 @@ const opStartExportTask = "StartExportTask"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask
func (c *ApplicationDiscoveryService) StartExportTaskRequest(input *StartExportTaskInput) (req *request.Request, output *StartExportTaskOutput) {
op := &request.Operation{
Name: opStartExportTask,
@@ -1551,13 +1551,13 @@ func (c *ApplicationDiscoveryService) StartExportTaskRequest(input *StartExportT
//
// Begins the export of discovered data to an S3 bucket.
//
// If you specify agentId in a filter, the task exports up to 72 hours of detailed
// If you specify agentIds in a filter, the task exports up to 72 hours of detailed
// data collected by the identified Application Discovery Agent, including network,
// process, and performance details. A time range for exported agent data may
// be set by using startTime and endTime. Export of detailed agent data is limited
// to five concurrently running exports.
//
// If you do not include an agentId filter, summary data is exported that includes
// If you do not include an agentIds filter, summary data is exported that includes
// both AWS Agentless Discovery Connector data and summary data from AWS Discovery
// Agents. Export of summary data is limited to two exports per day.
//
@@ -1586,7 +1586,7 @@ func (c *ApplicationDiscoveryService) StartExportTaskRequest(input *StartExportT
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This operation is not permitted.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask
func (c *ApplicationDiscoveryService) StartExportTask(input *StartExportTaskInput) (*StartExportTaskOutput, error) {
req, out := c.StartExportTaskRequest(input)
return out, req.Send()
@@ -1612,7 +1612,7 @@ const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds"
// StopDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the
// client's request for the StopDataCollectionByAgentIds operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1633,7 +1633,7 @@ const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds
func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input *StopDataCollectionByAgentIdsInput) (req *request.Request, output *StopDataCollectionByAgentIdsOutput) {
op := &request.Operation{
Name: opStopDataCollectionByAgentIds,
@@ -1676,7 +1676,7 @@ func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds
func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIds(input *StopDataCollectionByAgentIdsInput) (*StopDataCollectionByAgentIdsOutput, error) {
req, out := c.StopDataCollectionByAgentIdsRequest(input)
return out, req.Send()
@@ -1702,7 +1702,7 @@ const opUpdateApplication = "UpdateApplication"
// UpdateApplicationRequest generates a "aws/request.Request" representing the
// client's request for the UpdateApplication operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1723,7 +1723,7 @@ const opUpdateApplication = "UpdateApplication"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication
func (c *ApplicationDiscoveryService) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) {
op := &request.Operation{
Name: opUpdateApplication,
@@ -1766,7 +1766,7 @@ func (c *ApplicationDiscoveryService) UpdateApplicationRequest(input *UpdateAppl
// * ErrCodeServerInternalErrorException "ServerInternalErrorException"
// The server experienced an internal error. Try again.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication
// See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication
func (c *ApplicationDiscoveryService) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) {
req, out := c.UpdateApplicationRequest(input)
return out, req.Send()
@@ -1791,7 +1791,6 @@ func (c *ApplicationDiscoveryService) UpdateApplicationWithContext(ctx aws.Conte
// Information about agents or connectors that were instructed to start collecting
// data. Information includes the agent/connector ID, a description of the operation,
// and whether the agent/connector configuration was updated.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AgentConfigurationStatus
type AgentConfigurationStatus struct {
_ struct{} `type:"structure"`
@@ -1839,7 +1838,6 @@ func (s *AgentConfigurationStatus) SetOperationSucceeded(v bool) *AgentConfigura
// Information includes agent or connector IDs, IP addresses, media access control
// (MAC) addresses, agent or connector health, hostname where the agent or connector
// resides, and agent version for each agent.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AgentInfo
type AgentInfo struct {
_ struct{} `type:"structure"`
@@ -1946,7 +1944,6 @@ func (s *AgentInfo) SetVersion(v string) *AgentInfo {
}
// Network details about the host where the agent/connector resides.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AgentNetworkInfo
type AgentNetworkInfo struct {
_ struct{} `type:"structure"`
@@ -1979,7 +1976,6 @@ func (s *AgentNetworkInfo) SetMacAddress(v string) *AgentNetworkInfo {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplicationRequest
type AssociateConfigurationItemsToApplicationInput struct {
_ struct{} `type:"structure"`
@@ -2032,7 +2028,6 @@ func (s *AssociateConfigurationItemsToApplicationInput) SetConfigurationIds(v []
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplicationResponse
type AssociateConfigurationItemsToApplicationOutput struct {
_ struct{} `type:"structure"`
}
@@ -2049,7 +2044,6 @@ func (s AssociateConfigurationItemsToApplicationOutput) GoString() string {
// Tags for a configuration item. Tags are metadata that help you categorize
// IT assets.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ConfigurationTag
type ConfigurationTag struct {
_ struct{} `type:"structure"`
@@ -2112,7 +2106,6 @@ func (s *ConfigurationTag) SetValue(v string) *ConfigurationTag {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplicationRequest
type CreateApplicationInput struct {
_ struct{} `type:"structure"`
@@ -2160,7 +2153,6 @@ func (s *CreateApplicationInput) SetName(v string) *CreateApplicationInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplicationResponse
type CreateApplicationOutput struct {
_ struct{} `type:"structure"`
@@ -2184,7 +2176,6 @@ func (s *CreateApplicationOutput) SetConfigurationId(v string) *CreateApplicatio
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTagsRequest
type CreateTagsInput struct {
_ struct{} `type:"structure"`
@@ -2199,7 +2190,7 @@ type CreateTagsInput struct {
// {"key": "serverType", "value": "webServer"}
//
// Tags is a required field
Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list" required:"true"`
Tags []*Tag `locationName:"tags" type:"list" required:"true"`
}
// String returns the string representation
@@ -2250,7 +2241,6 @@ func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTagsResponse
type CreateTagsOutput struct {
_ struct{} `type:"structure"`
}
@@ -2266,7 +2256,6 @@ func (s CreateTagsOutput) GoString() string {
}
// Inventory data for installed discovery agents.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CustomerAgentInfo
type CustomerAgentInfo struct {
_ struct{} `type:"structure"`
@@ -2359,7 +2348,6 @@ func (s *CustomerAgentInfo) SetUnknownAgents(v int64) *CustomerAgentInfo {
}
// Inventory data for installed discovery connectors.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CustomerConnectorInfo
type CustomerConnectorInfo struct {
_ struct{} `type:"structure"`
@@ -2451,7 +2439,6 @@ func (s *CustomerConnectorInfo) SetUnknownConnectors(v int64) *CustomerConnector
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplicationsRequest
type DeleteApplicationsInput struct {
_ struct{} `type:"structure"`
@@ -2490,7 +2477,6 @@ func (s *DeleteApplicationsInput) SetConfigurationIds(v []*string) *DeleteApplic
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplicationsResponse
type DeleteApplicationsOutput struct {
_ struct{} `type:"structure"`
}
@@ -2505,7 +2491,6 @@ func (s DeleteApplicationsOutput) GoString() string {
return s.String()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTagsRequest
type DeleteTagsInput struct {
_ struct{} `type:"structure"`
@@ -2518,7 +2503,7 @@ type DeleteTagsInput struct {
// the tags that you want to delete in a key-value format. For example:
//
// {"key": "serverType", "value": "webServer"}
Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list"`
Tags []*Tag `locationName:"tags" type:"list"`
}
// String returns the string representation
@@ -2566,7 +2551,6 @@ func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTagsResponse
type DeleteTagsOutput struct {
_ struct{} `type:"structure"`
}
@@ -2581,7 +2565,6 @@ func (s DeleteTagsOutput) GoString() string {
return s.String()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgentsRequest
type DescribeAgentsInput struct {
_ struct{} `type:"structure"`
@@ -2661,7 +2644,6 @@ func (s *DescribeAgentsInput) SetNextToken(v string) *DescribeAgentsInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgentsResponse
type DescribeAgentsOutput struct {
_ struct{} `type:"structure"`
@@ -2701,7 +2683,6 @@ func (s *DescribeAgentsOutput) SetNextToken(v string) *DescribeAgentsOutput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurationsRequest
type DescribeConfigurationsInput struct {
_ struct{} `type:"structure"`
@@ -2740,7 +2721,6 @@ func (s *DescribeConfigurationsInput) SetConfigurationIds(v []*string) *Describe
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurationsResponse
type DescribeConfigurationsOutput struct {
_ struct{} `type:"structure"`
@@ -2764,7 +2744,6 @@ func (s *DescribeConfigurationsOutput) SetConfigurations(v []map[string]*string)
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurationsRequest
type DescribeExportConfigurationsInput struct {
_ struct{} `type:"structure"`
@@ -2809,7 +2788,6 @@ func (s *DescribeExportConfigurationsInput) SetNextToken(v string) *DescribeExpo
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurationsResponse
type DescribeExportConfigurationsOutput struct {
_ struct{} `type:"structure"`
@@ -2846,7 +2824,6 @@ func (s *DescribeExportConfigurationsOutput) SetNextToken(v string) *DescribeExp
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasksRequest
type DescribeExportTasksInput struct {
_ struct{} `type:"structure"`
@@ -2925,7 +2902,6 @@ func (s *DescribeExportTasksInput) SetNextToken(v string) *DescribeExportTasksIn
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasksResponse
type DescribeExportTasksOutput struct {
_ struct{} `type:"structure"`
@@ -2963,7 +2939,6 @@ func (s *DescribeExportTasksOutput) SetNextToken(v string) *DescribeExportTasksO
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTagsRequest
type DescribeTagsInput struct {
_ struct{} `type:"structure"`
@@ -3028,7 +3003,6 @@ func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTagsResponse
type DescribeTagsOutput struct {
_ struct{} `type:"structure"`
@@ -3037,7 +3011,7 @@ type DescribeTagsOutput struct {
// Depending on the input, this is a list of configuration items tagged with
// a specific tag, or a list of tags for a specific configuration item.
Tags []*ConfigurationTag `locationName:"tags" locationNameList:"item" type:"list"`
Tags []*ConfigurationTag `locationName:"tags" type:"list"`
}
// String returns the string representation
@@ -3062,7 +3036,6 @@ func (s *DescribeTagsOutput) SetTags(v []*ConfigurationTag) *DescribeTagsOutput
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplicationRequest
type DisassociateConfigurationItemsFromApplicationInput struct {
_ struct{} `type:"structure"`
@@ -3115,7 +3088,6 @@ func (s *DisassociateConfigurationItemsFromApplicationInput) SetConfigurationIds
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplicationResponse
type DisassociateConfigurationItemsFromApplicationOutput struct {
_ struct{} `type:"structure"`
}
@@ -3130,7 +3102,6 @@ func (s DisassociateConfigurationItemsFromApplicationOutput) GoString() string {
return s.String()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurationsInput
type ExportConfigurationsInput struct {
_ struct{} `type:"structure"`
}
@@ -3145,7 +3116,6 @@ func (s ExportConfigurationsInput) GoString() string {
return s.String()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurationsResponse
type ExportConfigurationsOutput struct {
_ struct{} `type:"structure"`
@@ -3172,7 +3142,6 @@ func (s *ExportConfigurationsOutput) SetExportId(v string) *ExportConfigurations
// Used to select which agent's data is to be exported. A single agent ID may
// be selected for export using the StartExportTask (http://docs.aws.amazon.com/application-discovery/latest/APIReference/API_StartExportTask.html)
// action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportFilter
type ExportFilter struct {
_ struct{} `type:"structure"`
@@ -3191,7 +3160,7 @@ type ExportFilter struct {
// action. Typically an ADS agentId is in the form o-0123456789abcdef0.
//
// Values is a required field
Values []*string `locationName:"values" locationNameList:"item" type:"list" required:"true"`
Values []*string `locationName:"values" type:"list" required:"true"`
}
// String returns the string representation
@@ -3243,7 +3212,6 @@ func (s *ExportFilter) SetValues(v []*string) *ExportFilter {
// Information regarding the export status of discovered data. The value is
// an array of objects.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportInfo
type ExportInfo struct {
_ struct{} `type:"structure"`
@@ -3348,7 +3316,6 @@ func (s *ExportInfo) SetStatusMessage(v string) *ExportInfo {
//
// For more information about filters, see Querying Discovered Configuration
// Items (http://docs.aws.amazon.com/application-discovery/latest/APIReference/discovery-api-queries.html).
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/Filter
type Filter struct {
_ struct{} `type:"structure"`
@@ -3371,7 +3338,7 @@ type Filter struct {
// filter name, you could specify Ubuntu for the value.
//
// Values is a required field
Values []*string `locationName:"values" locationNameList:"item" type:"list" required:"true"`
Values []*string `locationName:"values" type:"list" required:"true"`
}
// String returns the string representation
@@ -3421,7 +3388,6 @@ func (s *Filter) SetValues(v []*string) *Filter {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummaryRequest
type GetDiscoverySummaryInput struct {
_ struct{} `type:"structure"`
}
@@ -3436,7 +3402,6 @@ func (s GetDiscoverySummaryInput) GoString() string {
return s.String()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummaryResponse
type GetDiscoverySummaryOutput struct {
_ struct{} `type:"structure"`
@@ -3505,7 +3470,6 @@ func (s *GetDiscoverySummaryOutput) SetServersMappedtoTags(v int64) *GetDiscover
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurationsRequest
type ListConfigurationsInput struct {
_ struct{} `type:"structure"`
@@ -3611,7 +3575,6 @@ func (s *ListConfigurationsInput) SetOrderBy(v []*OrderByElement) *ListConfigura
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurationsResponse
type ListConfigurationsOutput struct {
_ struct{} `type:"structure"`
@@ -3648,7 +3611,6 @@ func (s *ListConfigurationsOutput) SetNextToken(v string) *ListConfigurationsOut
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighborsRequest
type ListServerNeighborsInput struct {
_ struct{} `type:"structure"`
@@ -3728,7 +3690,6 @@ func (s *ListServerNeighborsInput) SetPortInformationNeeded(v bool) *ListServerN
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighborsResponse
type ListServerNeighborsOutput struct {
_ struct{} `type:"structure"`
@@ -3776,7 +3737,6 @@ func (s *ListServerNeighborsOutput) SetNextToken(v string) *ListServerNeighborsO
}
// Details about neighboring servers.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/NeighborConnectionDetail
type NeighborConnectionDetail struct {
_ struct{} `type:"structure"`
@@ -3843,7 +3803,6 @@ func (s *NeighborConnectionDetail) SetTransportProtocol(v string) *NeighborConne
}
// A field and direction for ordered output.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/OrderByElement
type OrderByElement struct {
_ struct{} `type:"structure"`
@@ -3891,7 +3850,6 @@ func (s *OrderByElement) SetSortOrder(v string) *OrderByElement {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIdsRequest
type StartDataCollectionByAgentIdsInput struct {
_ struct{} `type:"structure"`
@@ -3936,7 +3894,6 @@ func (s *StartDataCollectionByAgentIdsInput) SetAgentIds(v []*string) *StartData
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIdsResponse
type StartDataCollectionByAgentIdsOutput struct {
_ struct{} `type:"structure"`
@@ -3962,7 +3919,6 @@ func (s *StartDataCollectionByAgentIdsOutput) SetAgentsConfigurationStatus(v []*
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTaskRequest
type StartExportTaskInput struct {
_ struct{} `type:"structure"`
@@ -3971,7 +3927,8 @@ type StartExportTaskInput struct {
// the most recent data collected by the agent.
EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
// The file format for the returned export data. Default value is CSV.
// The file format for the returned export data. Default value is CSV. Note:TheGRAPHMLoption
// has been deprecated.
ExportDataFormat []*string `locationName:"exportDataFormat" type:"list"`
// If a filter is present, it selects the single agentId of the Application
@@ -4041,7 +3998,6 @@ func (s *StartExportTaskInput) SetStartTime(v time.Time) *StartExportTaskInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTaskResponse
type StartExportTaskOutput struct {
_ struct{} `type:"structure"`
@@ -4065,7 +4021,6 @@ func (s *StartExportTaskOutput) SetExportId(v string) *StartExportTaskOutput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIdsRequest
type StopDataCollectionByAgentIdsInput struct {
_ struct{} `type:"structure"`
@@ -4104,7 +4059,6 @@ func (s *StopDataCollectionByAgentIdsInput) SetAgentIds(v []*string) *StopDataCo
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIdsResponse
type StopDataCollectionByAgentIdsOutput struct {
_ struct{} `type:"structure"`
@@ -4131,7 +4085,6 @@ func (s *StopDataCollectionByAgentIdsOutput) SetAgentsConfigurationStatus(v []*A
}
// Metadata that help you categorize IT assets.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/Tag
type Tag struct {
_ struct{} `type:"structure"`
@@ -4185,7 +4138,6 @@ func (s *Tag) SetValue(v string) *Tag {
}
// The tag filter. Valid names are: tagKey, tagValue, configurationId.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/TagFilter
type TagFilter struct {
_ struct{} `type:"structure"`
@@ -4197,7 +4149,7 @@ type TagFilter struct {
// Values for the tag filter.
//
// Values is a required field
Values []*string `locationName:"values" locationNameList:"item" type:"list" required:"true"`
Values []*string `locationName:"values" type:"list" required:"true"`
}
// String returns the string representation
@@ -4238,7 +4190,6 @@ func (s *TagFilter) SetValues(v []*string) *TagFilter {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplicationRequest
type UpdateApplicationInput struct {
_ struct{} `type:"structure"`
@@ -4295,7 +4246,6 @@ func (s *UpdateApplicationInput) SetName(v string) *UpdateApplicationInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplicationResponse
type UpdateApplicationOutput struct {
_ struct{} `type:"structure"`
}
+21 -22
View File
@@ -8,12 +8,12 @@
// software dependencies running in your on-premises data centers. Application
// Discovery Service also collects application performance data, which can help
// you assess the outcome of your migration. The data collected by Application
// Discovery Service is securely retained in an Amazon-hosted and managed database
// Discovery Service is securely retained in an AWS-hosted and managed database
// in the cloud. You can export the data as a CSV or XML file into your preferred
// visualization tool or cloud-migration solution to plan your migration. For
// more information, see the Application Discovery Service FAQ (http://aws.amazon.com/application-discovery/faqs/).
// more information, see AWS Application Discovery Service FAQ (http://aws.amazon.com/application-discovery/faqs/).
//
// Application Discovery Service offers two modes of operation.
// Application Discovery Service offers two modes of operation:
//
// * Agentless discovery mode is recommended for environments that use VMware
// vCenter Server. This mode doesn't require you to install an agent on each
@@ -21,21 +21,22 @@
// operating systems, which minimizes the time required for initial on-premises
// infrastructure assessment. Agentless discovery doesn't collect information
// about software and software dependencies. It also doesn't work in non-VMware
// environments. We recommend that you use agent-based discovery for non-VMware
// environments and if you want to collect information about software and
// software dependencies. You can also run agent-based and agentless discovery
// simultaneously. Use agentless discovery to quickly complete the initial
// infrastructure assessment and then install agents on select hosts to gather
// information about software and software dependencies.
// environments.
//
// * Agent-based discovery mode collects a richer set of data than agentless
// discovery by using Amazon software, the AWS Application Discovery Agent,
// which you install on one or more hosts in your data center. The agent
// captures infrastructure and application information, including an inventory
// of installed software applications, system and process performance, resource
// utilization, and network dependencies between workloads. The information
// collected by agents is secured at rest and in transit to the Application
// Discovery Service database in the cloud.
// discovery by using the AWS Application Discovery Agent, which you install
// on one or more hosts in your data center. The agent captures infrastructure
// and application information, including an inventory of installed software
// applications, system and process performance, resource utilization, and
// network dependencies between workloads. The information collected by agents
// is secured at rest and in transit to the Application Discovery Service
// database in the cloud.
//
// We recommend that you use agent-based discovery for non-VMware environments
// and to collect information about software and software dependencies. You
// can also run agent-based and agentless discovery simultaneously. Use agentless
// discovery to quickly complete the initial infrastructure assessment and then
// install agents on select hosts.
//
// Application Discovery Service integrates with application discovery solutions
// from AWS Partner Network (APN) partners. Third-party application discovery
@@ -45,14 +46,12 @@
//
// Application Discovery Service doesn't gather sensitive information. All data
// is handled according to the AWS Privacy Policy (http://aws.amazon.com/privacy/).
// You can operate Application Discovery Service using offline mode to inspect
// collected data before it is shared with the service.
// You can operate Application Discovery Service offline to inspect collected
// data before it is shared with the service.
//
// Your AWS account must be granted access to Application Discovery Service,
// a process called whitelisting. This is true for AWS partners and customers
// alike. To request access, sign up for AWS Application Discovery Service here
// (http://aws.amazon.com/application-discovery/preview/). We send you information
// about how to get started.
// alike. To request access, sign up for Application Discovery Service (http://aws.amazon.com/application-discovery/).
//
// This API reference provides descriptions, syntax, and usage examples for
// each of the actions and data types for Application Discovery Service. The
@@ -71,7 +70,7 @@
//
// Using the Client
//
// To AWS Application Discovery Service with the SDK use the New function to create
// To contact AWS Application Discovery Service 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.
//
File diff suppressed because it is too large Load Diff
@@ -64,6 +64,10 @@ type AppStreamAPI interface {
AssociateFleetWithContext(aws.Context, *appstream.AssociateFleetInput, ...request.Option) (*appstream.AssociateFleetOutput, error)
AssociateFleetRequest(*appstream.AssociateFleetInput) (*request.Request, *appstream.AssociateFleetOutput)
CopyImage(*appstream.CopyImageInput) (*appstream.CopyImageOutput, error)
CopyImageWithContext(aws.Context, *appstream.CopyImageInput, ...request.Option) (*appstream.CopyImageOutput, error)
CopyImageRequest(*appstream.CopyImageInput) (*request.Request, *appstream.CopyImageOutput)
CreateDirectoryConfig(*appstream.CreateDirectoryConfigInput) (*appstream.CreateDirectoryConfigOutput, error)
CreateDirectoryConfigWithContext(aws.Context, *appstream.CreateDirectoryConfigInput, ...request.Option) (*appstream.CreateDirectoryConfigOutput, error)
CreateDirectoryConfigRequest(*appstream.CreateDirectoryConfigInput) (*request.Request, *appstream.CreateDirectoryConfigOutput)
@@ -72,6 +76,14 @@ type AppStreamAPI interface {
CreateFleetWithContext(aws.Context, *appstream.CreateFleetInput, ...request.Option) (*appstream.CreateFleetOutput, error)
CreateFleetRequest(*appstream.CreateFleetInput) (*request.Request, *appstream.CreateFleetOutput)
CreateImageBuilder(*appstream.CreateImageBuilderInput) (*appstream.CreateImageBuilderOutput, error)
CreateImageBuilderWithContext(aws.Context, *appstream.CreateImageBuilderInput, ...request.Option) (*appstream.CreateImageBuilderOutput, error)
CreateImageBuilderRequest(*appstream.CreateImageBuilderInput) (*request.Request, *appstream.CreateImageBuilderOutput)
CreateImageBuilderStreamingURL(*appstream.CreateImageBuilderStreamingURLInput) (*appstream.CreateImageBuilderStreamingURLOutput, error)
CreateImageBuilderStreamingURLWithContext(aws.Context, *appstream.CreateImageBuilderStreamingURLInput, ...request.Option) (*appstream.CreateImageBuilderStreamingURLOutput, error)
CreateImageBuilderStreamingURLRequest(*appstream.CreateImageBuilderStreamingURLInput) (*request.Request, *appstream.CreateImageBuilderStreamingURLOutput)
CreateStack(*appstream.CreateStackInput) (*appstream.CreateStackOutput, error)
CreateStackWithContext(aws.Context, *appstream.CreateStackInput, ...request.Option) (*appstream.CreateStackOutput, error)
CreateStackRequest(*appstream.CreateStackInput) (*request.Request, *appstream.CreateStackOutput)
@@ -88,6 +100,14 @@ type AppStreamAPI interface {
DeleteFleetWithContext(aws.Context, *appstream.DeleteFleetInput, ...request.Option) (*appstream.DeleteFleetOutput, error)
DeleteFleetRequest(*appstream.DeleteFleetInput) (*request.Request, *appstream.DeleteFleetOutput)
DeleteImage(*appstream.DeleteImageInput) (*appstream.DeleteImageOutput, error)
DeleteImageWithContext(aws.Context, *appstream.DeleteImageInput, ...request.Option) (*appstream.DeleteImageOutput, error)
DeleteImageRequest(*appstream.DeleteImageInput) (*request.Request, *appstream.DeleteImageOutput)
DeleteImageBuilder(*appstream.DeleteImageBuilderInput) (*appstream.DeleteImageBuilderOutput, error)
DeleteImageBuilderWithContext(aws.Context, *appstream.DeleteImageBuilderInput, ...request.Option) (*appstream.DeleteImageBuilderOutput, error)
DeleteImageBuilderRequest(*appstream.DeleteImageBuilderInput) (*request.Request, *appstream.DeleteImageBuilderOutput)
DeleteStack(*appstream.DeleteStackInput) (*appstream.DeleteStackOutput, error)
DeleteStackWithContext(aws.Context, *appstream.DeleteStackInput, ...request.Option) (*appstream.DeleteStackOutput, error)
DeleteStackRequest(*appstream.DeleteStackInput) (*request.Request, *appstream.DeleteStackOutput)
@@ -100,6 +120,10 @@ type AppStreamAPI interface {
DescribeFleetsWithContext(aws.Context, *appstream.DescribeFleetsInput, ...request.Option) (*appstream.DescribeFleetsOutput, error)
DescribeFleetsRequest(*appstream.DescribeFleetsInput) (*request.Request, *appstream.DescribeFleetsOutput)
DescribeImageBuilders(*appstream.DescribeImageBuildersInput) (*appstream.DescribeImageBuildersOutput, error)
DescribeImageBuildersWithContext(aws.Context, *appstream.DescribeImageBuildersInput, ...request.Option) (*appstream.DescribeImageBuildersOutput, error)
DescribeImageBuildersRequest(*appstream.DescribeImageBuildersInput) (*request.Request, *appstream.DescribeImageBuildersOutput)
DescribeImages(*appstream.DescribeImagesInput) (*appstream.DescribeImagesOutput, error)
DescribeImagesWithContext(aws.Context, *appstream.DescribeImagesInput, ...request.Option) (*appstream.DescribeImagesOutput, error)
DescribeImagesRequest(*appstream.DescribeImagesInput) (*request.Request, *appstream.DescribeImagesOutput)
@@ -128,14 +152,34 @@ type AppStreamAPI interface {
ListAssociatedStacksWithContext(aws.Context, *appstream.ListAssociatedStacksInput, ...request.Option) (*appstream.ListAssociatedStacksOutput, error)
ListAssociatedStacksRequest(*appstream.ListAssociatedStacksInput) (*request.Request, *appstream.ListAssociatedStacksOutput)
ListTagsForResource(*appstream.ListTagsForResourceInput) (*appstream.ListTagsForResourceOutput, error)
ListTagsForResourceWithContext(aws.Context, *appstream.ListTagsForResourceInput, ...request.Option) (*appstream.ListTagsForResourceOutput, error)
ListTagsForResourceRequest(*appstream.ListTagsForResourceInput) (*request.Request, *appstream.ListTagsForResourceOutput)
StartFleet(*appstream.StartFleetInput) (*appstream.StartFleetOutput, error)
StartFleetWithContext(aws.Context, *appstream.StartFleetInput, ...request.Option) (*appstream.StartFleetOutput, error)
StartFleetRequest(*appstream.StartFleetInput) (*request.Request, *appstream.StartFleetOutput)
StartImageBuilder(*appstream.StartImageBuilderInput) (*appstream.StartImageBuilderOutput, error)
StartImageBuilderWithContext(aws.Context, *appstream.StartImageBuilderInput, ...request.Option) (*appstream.StartImageBuilderOutput, error)
StartImageBuilderRequest(*appstream.StartImageBuilderInput) (*request.Request, *appstream.StartImageBuilderOutput)
StopFleet(*appstream.StopFleetInput) (*appstream.StopFleetOutput, error)
StopFleetWithContext(aws.Context, *appstream.StopFleetInput, ...request.Option) (*appstream.StopFleetOutput, error)
StopFleetRequest(*appstream.StopFleetInput) (*request.Request, *appstream.StopFleetOutput)
StopImageBuilder(*appstream.StopImageBuilderInput) (*appstream.StopImageBuilderOutput, error)
StopImageBuilderWithContext(aws.Context, *appstream.StopImageBuilderInput, ...request.Option) (*appstream.StopImageBuilderOutput, error)
StopImageBuilderRequest(*appstream.StopImageBuilderInput) (*request.Request, *appstream.StopImageBuilderOutput)
TagResource(*appstream.TagResourceInput) (*appstream.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *appstream.TagResourceInput, ...request.Option) (*appstream.TagResourceOutput, error)
TagResourceRequest(*appstream.TagResourceInput) (*request.Request, *appstream.TagResourceOutput)
UntagResource(*appstream.UntagResourceInput) (*appstream.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *appstream.UntagResourceInput, ...request.Option) (*appstream.UntagResourceOutput, error)
UntagResourceRequest(*appstream.UntagResourceInput) (*request.Request, *appstream.UntagResourceOutput)
UpdateDirectoryConfig(*appstream.UpdateDirectoryConfigInput) (*appstream.UpdateDirectoryConfigOutput, error)
UpdateDirectoryConfigWithContext(aws.Context, *appstream.UpdateDirectoryConfigInput, ...request.Option) (*appstream.UpdateDirectoryConfigOutput, error)
UpdateDirectoryConfigRequest(*appstream.UpdateDirectoryConfigInput) (*request.Request, *appstream.UpdateDirectoryConfigOutput)
+3 -2
View File
@@ -3,7 +3,8 @@
// Package appstream provides the client and types for making API
// requests to Amazon AppStream.
//
// API documentation for Amazon AppStream 2.0.
// You can use Amazon AppStream 2.0 to stream desktop applications to any device
// running a web browser, without rewriting them.
//
// See https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01 for more information on this service.
//
@@ -12,7 +13,7 @@
//
// Using the Client
//
// To Amazon AppStream with the SDK use the New function to create
// To contact Amazon AppStream 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.
//
+7
View File
@@ -16,6 +16,13 @@ const (
// The image does not support storage connectors.
ErrCodeIncompatibleImageException = "IncompatibleImageException"
// ErrCodeInvalidAccountStatusException for service response error code
// "InvalidAccountStatusException".
//
// The resource cannot be created because your AWS account is suspended. For
// assistance, contact AWS Support.
ErrCodeInvalidAccountStatusException = "InvalidAccountStatusException"
// ErrCodeInvalidParameterCombinationException for service response error code
// "InvalidParameterCombinationException".
//
+3 -3
View File
@@ -45,14 +45,14 @@ const (
// svc := appstream.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppStream {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "appstream"
}
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *AppStream {
if len(signingName) == 0 {
signingName = "appstream"
}
svc := &AppStream{
Client: client.New(
cfg,
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,172 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package appsynciface provides an interface to enable mocking the AWS AppSync service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package appsynciface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/appsync"
)
// AppSyncAPI provides an interface to enable mocking the
// appsync.AppSync service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// 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 SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AWS AppSync.
// func myFunc(svc appsynciface.AppSyncAPI) bool {
// // Make svc.CreateApiKey request
// }
//
// func main() {
// sess := session.New()
// svc := appsync.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockAppSyncClient struct {
// appsynciface.AppSyncAPI
// }
// func (m *mockAppSyncClient) CreateApiKey(input *appsync.CreateApiKeyInput) (*appsync.CreateApiKeyOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockAppSyncClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type AppSyncAPI interface {
CreateApiKey(*appsync.CreateApiKeyInput) (*appsync.CreateApiKeyOutput, error)
CreateApiKeyWithContext(aws.Context, *appsync.CreateApiKeyInput, ...request.Option) (*appsync.CreateApiKeyOutput, error)
CreateApiKeyRequest(*appsync.CreateApiKeyInput) (*request.Request, *appsync.CreateApiKeyOutput)
CreateDataSource(*appsync.CreateDataSourceInput) (*appsync.CreateDataSourceOutput, error)
CreateDataSourceWithContext(aws.Context, *appsync.CreateDataSourceInput, ...request.Option) (*appsync.CreateDataSourceOutput, error)
CreateDataSourceRequest(*appsync.CreateDataSourceInput) (*request.Request, *appsync.CreateDataSourceOutput)
CreateGraphqlApi(*appsync.CreateGraphqlApiInput) (*appsync.CreateGraphqlApiOutput, error)
CreateGraphqlApiWithContext(aws.Context, *appsync.CreateGraphqlApiInput, ...request.Option) (*appsync.CreateGraphqlApiOutput, error)
CreateGraphqlApiRequest(*appsync.CreateGraphqlApiInput) (*request.Request, *appsync.CreateGraphqlApiOutput)
CreateResolver(*appsync.CreateResolverInput) (*appsync.CreateResolverOutput, error)
CreateResolverWithContext(aws.Context, *appsync.CreateResolverInput, ...request.Option) (*appsync.CreateResolverOutput, error)
CreateResolverRequest(*appsync.CreateResolverInput) (*request.Request, *appsync.CreateResolverOutput)
CreateType(*appsync.CreateTypeInput) (*appsync.CreateTypeOutput, error)
CreateTypeWithContext(aws.Context, *appsync.CreateTypeInput, ...request.Option) (*appsync.CreateTypeOutput, error)
CreateTypeRequest(*appsync.CreateTypeInput) (*request.Request, *appsync.CreateTypeOutput)
DeleteApiKey(*appsync.DeleteApiKeyInput) (*appsync.DeleteApiKeyOutput, error)
DeleteApiKeyWithContext(aws.Context, *appsync.DeleteApiKeyInput, ...request.Option) (*appsync.DeleteApiKeyOutput, error)
DeleteApiKeyRequest(*appsync.DeleteApiKeyInput) (*request.Request, *appsync.DeleteApiKeyOutput)
DeleteDataSource(*appsync.DeleteDataSourceInput) (*appsync.DeleteDataSourceOutput, error)
DeleteDataSourceWithContext(aws.Context, *appsync.DeleteDataSourceInput, ...request.Option) (*appsync.DeleteDataSourceOutput, error)
DeleteDataSourceRequest(*appsync.DeleteDataSourceInput) (*request.Request, *appsync.DeleteDataSourceOutput)
DeleteGraphqlApi(*appsync.DeleteGraphqlApiInput) (*appsync.DeleteGraphqlApiOutput, error)
DeleteGraphqlApiWithContext(aws.Context, *appsync.DeleteGraphqlApiInput, ...request.Option) (*appsync.DeleteGraphqlApiOutput, error)
DeleteGraphqlApiRequest(*appsync.DeleteGraphqlApiInput) (*request.Request, *appsync.DeleteGraphqlApiOutput)
DeleteResolver(*appsync.DeleteResolverInput) (*appsync.DeleteResolverOutput, error)
DeleteResolverWithContext(aws.Context, *appsync.DeleteResolverInput, ...request.Option) (*appsync.DeleteResolverOutput, error)
DeleteResolverRequest(*appsync.DeleteResolverInput) (*request.Request, *appsync.DeleteResolverOutput)
DeleteType(*appsync.DeleteTypeInput) (*appsync.DeleteTypeOutput, error)
DeleteTypeWithContext(aws.Context, *appsync.DeleteTypeInput, ...request.Option) (*appsync.DeleteTypeOutput, error)
DeleteTypeRequest(*appsync.DeleteTypeInput) (*request.Request, *appsync.DeleteTypeOutput)
GetDataSource(*appsync.GetDataSourceInput) (*appsync.GetDataSourceOutput, error)
GetDataSourceWithContext(aws.Context, *appsync.GetDataSourceInput, ...request.Option) (*appsync.GetDataSourceOutput, error)
GetDataSourceRequest(*appsync.GetDataSourceInput) (*request.Request, *appsync.GetDataSourceOutput)
GetGraphqlApi(*appsync.GetGraphqlApiInput) (*appsync.GetGraphqlApiOutput, error)
GetGraphqlApiWithContext(aws.Context, *appsync.GetGraphqlApiInput, ...request.Option) (*appsync.GetGraphqlApiOutput, error)
GetGraphqlApiRequest(*appsync.GetGraphqlApiInput) (*request.Request, *appsync.GetGraphqlApiOutput)
GetIntrospectionSchema(*appsync.GetIntrospectionSchemaInput) (*appsync.GetIntrospectionSchemaOutput, error)
GetIntrospectionSchemaWithContext(aws.Context, *appsync.GetIntrospectionSchemaInput, ...request.Option) (*appsync.GetIntrospectionSchemaOutput, error)
GetIntrospectionSchemaRequest(*appsync.GetIntrospectionSchemaInput) (*request.Request, *appsync.GetIntrospectionSchemaOutput)
GetResolver(*appsync.GetResolverInput) (*appsync.GetResolverOutput, error)
GetResolverWithContext(aws.Context, *appsync.GetResolverInput, ...request.Option) (*appsync.GetResolverOutput, error)
GetResolverRequest(*appsync.GetResolverInput) (*request.Request, *appsync.GetResolverOutput)
GetSchemaCreationStatus(*appsync.GetSchemaCreationStatusInput) (*appsync.GetSchemaCreationStatusOutput, error)
GetSchemaCreationStatusWithContext(aws.Context, *appsync.GetSchemaCreationStatusInput, ...request.Option) (*appsync.GetSchemaCreationStatusOutput, error)
GetSchemaCreationStatusRequest(*appsync.GetSchemaCreationStatusInput) (*request.Request, *appsync.GetSchemaCreationStatusOutput)
GetType(*appsync.GetTypeInput) (*appsync.GetTypeOutput, error)
GetTypeWithContext(aws.Context, *appsync.GetTypeInput, ...request.Option) (*appsync.GetTypeOutput, error)
GetTypeRequest(*appsync.GetTypeInput) (*request.Request, *appsync.GetTypeOutput)
ListApiKeys(*appsync.ListApiKeysInput) (*appsync.ListApiKeysOutput, error)
ListApiKeysWithContext(aws.Context, *appsync.ListApiKeysInput, ...request.Option) (*appsync.ListApiKeysOutput, error)
ListApiKeysRequest(*appsync.ListApiKeysInput) (*request.Request, *appsync.ListApiKeysOutput)
ListDataSources(*appsync.ListDataSourcesInput) (*appsync.ListDataSourcesOutput, error)
ListDataSourcesWithContext(aws.Context, *appsync.ListDataSourcesInput, ...request.Option) (*appsync.ListDataSourcesOutput, error)
ListDataSourcesRequest(*appsync.ListDataSourcesInput) (*request.Request, *appsync.ListDataSourcesOutput)
ListGraphqlApis(*appsync.ListGraphqlApisInput) (*appsync.ListGraphqlApisOutput, error)
ListGraphqlApisWithContext(aws.Context, *appsync.ListGraphqlApisInput, ...request.Option) (*appsync.ListGraphqlApisOutput, error)
ListGraphqlApisRequest(*appsync.ListGraphqlApisInput) (*request.Request, *appsync.ListGraphqlApisOutput)
ListResolvers(*appsync.ListResolversInput) (*appsync.ListResolversOutput, error)
ListResolversWithContext(aws.Context, *appsync.ListResolversInput, ...request.Option) (*appsync.ListResolversOutput, error)
ListResolversRequest(*appsync.ListResolversInput) (*request.Request, *appsync.ListResolversOutput)
ListTypes(*appsync.ListTypesInput) (*appsync.ListTypesOutput, error)
ListTypesWithContext(aws.Context, *appsync.ListTypesInput, ...request.Option) (*appsync.ListTypesOutput, error)
ListTypesRequest(*appsync.ListTypesInput) (*request.Request, *appsync.ListTypesOutput)
StartSchemaCreation(*appsync.StartSchemaCreationInput) (*appsync.StartSchemaCreationOutput, error)
StartSchemaCreationWithContext(aws.Context, *appsync.StartSchemaCreationInput, ...request.Option) (*appsync.StartSchemaCreationOutput, error)
StartSchemaCreationRequest(*appsync.StartSchemaCreationInput) (*request.Request, *appsync.StartSchemaCreationOutput)
UpdateApiKey(*appsync.UpdateApiKeyInput) (*appsync.UpdateApiKeyOutput, error)
UpdateApiKeyWithContext(aws.Context, *appsync.UpdateApiKeyInput, ...request.Option) (*appsync.UpdateApiKeyOutput, error)
UpdateApiKeyRequest(*appsync.UpdateApiKeyInput) (*request.Request, *appsync.UpdateApiKeyOutput)
UpdateDataSource(*appsync.UpdateDataSourceInput) (*appsync.UpdateDataSourceOutput, error)
UpdateDataSourceWithContext(aws.Context, *appsync.UpdateDataSourceInput, ...request.Option) (*appsync.UpdateDataSourceOutput, error)
UpdateDataSourceRequest(*appsync.UpdateDataSourceInput) (*request.Request, *appsync.UpdateDataSourceOutput)
UpdateGraphqlApi(*appsync.UpdateGraphqlApiInput) (*appsync.UpdateGraphqlApiOutput, error)
UpdateGraphqlApiWithContext(aws.Context, *appsync.UpdateGraphqlApiInput, ...request.Option) (*appsync.UpdateGraphqlApiOutput, error)
UpdateGraphqlApiRequest(*appsync.UpdateGraphqlApiInput) (*request.Request, *appsync.UpdateGraphqlApiOutput)
UpdateResolver(*appsync.UpdateResolverInput) (*appsync.UpdateResolverOutput, error)
UpdateResolverWithContext(aws.Context, *appsync.UpdateResolverInput, ...request.Option) (*appsync.UpdateResolverOutput, error)
UpdateResolverRequest(*appsync.UpdateResolverInput) (*request.Request, *appsync.UpdateResolverOutput)
UpdateType(*appsync.UpdateTypeInput) (*appsync.UpdateTypeOutput, error)
UpdateTypeWithContext(aws.Context, *appsync.UpdateTypeInput, ...request.Option) (*appsync.UpdateTypeOutput, error)
UpdateTypeRequest(*appsync.UpdateTypeInput) (*request.Request, *appsync.UpdateTypeOutput)
}
var _ AppSyncAPI = (*appsync.AppSync)(nil)
+29
View File
@@ -0,0 +1,29 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package appsync provides the client and types for making API
// requests to AWS AppSync.
//
// AWS AppSync provides API actions for creating and interacting with data sources
// using GraphQL from your application.
//
// See https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25 for more information on this service.
//
// See appsync package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/appsync/
//
// Using the Client
//
// To contact AWS AppSync 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 AppSync client AppSync for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/appsync/#New
package appsync
+69
View File
@@ -0,0 +1,69 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appsync
const (
// ErrCodeApiKeyLimitExceededException for service response error code
// "ApiKeyLimitExceededException".
//
// The API key exceeded a limit. Try your request again.
ErrCodeApiKeyLimitExceededException = "ApiKeyLimitExceededException"
// ErrCodeApiKeyValidityOutOfBoundsException for service response error code
// "ApiKeyValidityOutOfBoundsException".
//
// The API key expiration must be set to a value between 1 and 365 days.
ErrCodeApiKeyValidityOutOfBoundsException = "ApiKeyValidityOutOfBoundsException"
// ErrCodeApiLimitExceededException for service response error code
// "ApiLimitExceededException".
//
// The GraphQL API exceeded a limit. Try your request again.
ErrCodeApiLimitExceededException = "ApiLimitExceededException"
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// The request is not well formed. For example, a value is invalid or a required
// field is missing. Check the field values, and try again.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// Another modification is being made. That modification must complete before
// you can make your change.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeGraphQLSchemaException for service response error code
// "GraphQLSchemaException".
//
// The GraphQL schema is not valid.
ErrCodeGraphQLSchemaException = "GraphQLSchemaException"
// ErrCodeInternalFailureException for service response error code
// "InternalFailureException".
//
// An internal AWS AppSync error occurred. Try your request again.
ErrCodeInternalFailureException = "InternalFailureException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The request exceeded a limit. Try your request again.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The resource specified in the request was not found. Check the resource and
// try again.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeUnauthorizedException for service response error code
// "UnauthorizedException".
//
// You are not authorized to perform this operation.
ErrCodeUnauthorizedException = "UnauthorizedException"
)
+97
View File
@@ -0,0 +1,97 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appsync
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// AppSync provides the API operation methods for making requests to
// AWS AppSync. See this package's package overview docs
// for details on the service.
//
// AppSync methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type AppSync struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "appsync" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the AppSync client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a AppSync client from just a session.
// svc := appsync.New(mySession)
//
// // Create a AppSync client with additional configuration
// svc := appsync.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppSync {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "appsync"
}
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *AppSync {
svc := &AppSync{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2017-07-25",
JSONVersion: "1.1",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a AppSync operation and runs any
// custom request initialization.
func (c *AppSync) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
+33 -69
View File
@@ -14,7 +14,7 @@ const opBatchGetNamedQuery = "BatchGetNamedQuery"
// BatchGetNamedQueryRequest generates a "aws/request.Request" representing the
// client's request for the BatchGetNamedQuery operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -35,7 +35,7 @@ const opBatchGetNamedQuery = "BatchGetNamedQuery"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery
func (c *Athena) BatchGetNamedQueryRequest(input *BatchGetNamedQueryInput) (req *request.Request, output *BatchGetNamedQueryOutput) {
op := &request.Operation{
Name: opBatchGetNamedQuery,
@@ -78,7 +78,7 @@ func (c *Athena) BatchGetNamedQueryRequest(input *BatchGetNamedQueryInput) (req
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQuery
func (c *Athena) BatchGetNamedQuery(input *BatchGetNamedQueryInput) (*BatchGetNamedQueryOutput, error) {
req, out := c.BatchGetNamedQueryRequest(input)
return out, req.Send()
@@ -104,7 +104,7 @@ const opBatchGetQueryExecution = "BatchGetQueryExecution"
// BatchGetQueryExecutionRequest generates a "aws/request.Request" representing the
// client's request for the BatchGetQueryExecution operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -125,7 +125,7 @@ const opBatchGetQueryExecution = "BatchGetQueryExecution"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution
func (c *Athena) BatchGetQueryExecutionRequest(input *BatchGetQueryExecutionInput) (req *request.Request, output *BatchGetQueryExecutionOutput) {
op := &request.Operation{
Name: opBatchGetQueryExecution,
@@ -166,7 +166,7 @@ func (c *Athena) BatchGetQueryExecutionRequest(input *BatchGetQueryExecutionInpu
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecution
func (c *Athena) BatchGetQueryExecution(input *BatchGetQueryExecutionInput) (*BatchGetQueryExecutionOutput, error) {
req, out := c.BatchGetQueryExecutionRequest(input)
return out, req.Send()
@@ -192,7 +192,7 @@ const opCreateNamedQuery = "CreateNamedQuery"
// CreateNamedQueryRequest generates a "aws/request.Request" representing the
// client's request for the CreateNamedQuery operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -213,7 +213,7 @@ const opCreateNamedQuery = "CreateNamedQuery"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery
func (c *Athena) CreateNamedQueryRequest(input *CreateNamedQueryInput) (req *request.Request, output *CreateNamedQueryOutput) {
op := &request.Operation{
Name: opCreateNamedQuery,
@@ -254,7 +254,7 @@ func (c *Athena) CreateNamedQueryRequest(input *CreateNamedQueryInput) (req *req
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQuery
func (c *Athena) CreateNamedQuery(input *CreateNamedQueryInput) (*CreateNamedQueryOutput, error) {
req, out := c.CreateNamedQueryRequest(input)
return out, req.Send()
@@ -280,7 +280,7 @@ const opDeleteNamedQuery = "DeleteNamedQuery"
// DeleteNamedQueryRequest generates a "aws/request.Request" representing the
// client's request for the DeleteNamedQuery operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -301,7 +301,7 @@ const opDeleteNamedQuery = "DeleteNamedQuery"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery
func (c *Athena) DeleteNamedQueryRequest(input *DeleteNamedQueryInput) (req *request.Request, output *DeleteNamedQueryOutput) {
op := &request.Operation{
Name: opDeleteNamedQuery,
@@ -342,7 +342,7 @@ func (c *Athena) DeleteNamedQueryRequest(input *DeleteNamedQueryInput) (req *req
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQuery
func (c *Athena) DeleteNamedQuery(input *DeleteNamedQueryInput) (*DeleteNamedQueryOutput, error) {
req, out := c.DeleteNamedQueryRequest(input)
return out, req.Send()
@@ -368,7 +368,7 @@ const opGetNamedQuery = "GetNamedQuery"
// GetNamedQueryRequest generates a "aws/request.Request" representing the
// client's request for the GetNamedQuery operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -389,7 +389,7 @@ const opGetNamedQuery = "GetNamedQuery"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery
func (c *Athena) GetNamedQueryRequest(input *GetNamedQueryInput) (req *request.Request, output *GetNamedQueryOutput) {
op := &request.Operation{
Name: opGetNamedQuery,
@@ -426,7 +426,7 @@ func (c *Athena) GetNamedQueryRequest(input *GetNamedQueryInput) (req *request.R
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQuery
func (c *Athena) GetNamedQuery(input *GetNamedQueryInput) (*GetNamedQueryOutput, error) {
req, out := c.GetNamedQueryRequest(input)
return out, req.Send()
@@ -452,7 +452,7 @@ const opGetQueryExecution = "GetQueryExecution"
// GetQueryExecutionRequest generates a "aws/request.Request" representing the
// client's request for the GetQueryExecution operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -473,7 +473,7 @@ const opGetQueryExecution = "GetQueryExecution"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution
func (c *Athena) GetQueryExecutionRequest(input *GetQueryExecutionInput) (req *request.Request, output *GetQueryExecutionOutput) {
op := &request.Operation{
Name: opGetQueryExecution,
@@ -511,7 +511,7 @@ func (c *Athena) GetQueryExecutionRequest(input *GetQueryExecutionInput) (req *r
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution
func (c *Athena) GetQueryExecution(input *GetQueryExecutionInput) (*GetQueryExecutionOutput, error) {
req, out := c.GetQueryExecutionRequest(input)
return out, req.Send()
@@ -537,7 +537,7 @@ const opGetQueryResults = "GetQueryResults"
// GetQueryResultsRequest generates a "aws/request.Request" representing the
// client's request for the GetQueryResults operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -558,7 +558,7 @@ const opGetQueryResults = "GetQueryResults"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults
func (c *Athena) GetQueryResultsRequest(input *GetQueryResultsInput) (req *request.Request, output *GetQueryResultsOutput) {
op := &request.Operation{
Name: opGetQueryResults,
@@ -603,7 +603,7 @@ func (c *Athena) GetQueryResultsRequest(input *GetQueryResultsInput) (req *reque
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResults
func (c *Athena) GetQueryResults(input *GetQueryResultsInput) (*GetQueryResultsOutput, error) {
req, out := c.GetQueryResultsRequest(input)
return out, req.Send()
@@ -679,7 +679,7 @@ const opListNamedQueries = "ListNamedQueries"
// ListNamedQueriesRequest generates a "aws/request.Request" representing the
// client's request for the ListNamedQueries operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -700,7 +700,7 @@ const opListNamedQueries = "ListNamedQueries"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries
func (c *Athena) ListNamedQueriesRequest(input *ListNamedQueriesInput) (req *request.Request, output *ListNamedQueriesOutput) {
op := &request.Operation{
Name: opListNamedQueries,
@@ -747,7 +747,7 @@ func (c *Athena) ListNamedQueriesRequest(input *ListNamedQueriesInput) (req *req
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueries
func (c *Athena) ListNamedQueries(input *ListNamedQueriesInput) (*ListNamedQueriesOutput, error) {
req, out := c.ListNamedQueriesRequest(input)
return out, req.Send()
@@ -823,7 +823,7 @@ const opListQueryExecutions = "ListQueryExecutions"
// ListQueryExecutionsRequest generates a "aws/request.Request" representing the
// client's request for the ListQueryExecutions operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -844,7 +844,7 @@ const opListQueryExecutions = "ListQueryExecutions"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions
func (c *Athena) ListQueryExecutionsRequest(input *ListQueryExecutionsInput) (req *request.Request, output *ListQueryExecutionsOutput) {
op := &request.Operation{
Name: opListQueryExecutions,
@@ -891,7 +891,7 @@ func (c *Athena) ListQueryExecutionsRequest(input *ListQueryExecutionsInput) (re
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutions
func (c *Athena) ListQueryExecutions(input *ListQueryExecutionsInput) (*ListQueryExecutionsOutput, error) {
req, out := c.ListQueryExecutionsRequest(input)
return out, req.Send()
@@ -967,7 +967,7 @@ const opStartQueryExecution = "StartQueryExecution"
// StartQueryExecutionRequest generates a "aws/request.Request" representing the
// client's request for the StartQueryExecution operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -988,7 +988,7 @@ const opStartQueryExecution = "StartQueryExecution"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution
func (c *Athena) StartQueryExecutionRequest(input *StartQueryExecutionInput) (req *request.Request, output *StartQueryExecutionOutput) {
op := &request.Operation{
Name: opStartQueryExecution,
@@ -1032,7 +1032,7 @@ func (c *Athena) StartQueryExecutionRequest(input *StartQueryExecutionInput) (re
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
// Indicates that the request was throttled.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution
func (c *Athena) StartQueryExecution(input *StartQueryExecutionInput) (*StartQueryExecutionOutput, error) {
req, out := c.StartQueryExecutionRequest(input)
return out, req.Send()
@@ -1058,7 +1058,7 @@ const opStopQueryExecution = "StopQueryExecution"
// StopQueryExecutionRequest generates a "aws/request.Request" representing the
// client's request for the StopQueryExecution operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1079,7 +1079,7 @@ const opStopQueryExecution = "StopQueryExecution"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution
func (c *Athena) StopQueryExecutionRequest(input *StopQueryExecutionInput) (req *request.Request, output *StopQueryExecutionOutput) {
op := &request.Operation{
Name: opStopQueryExecution,
@@ -1120,7 +1120,7 @@ func (c *Athena) StopQueryExecutionRequest(input *StopQueryExecutionInput) (req
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution
// See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution
func (c *Athena) StopQueryExecution(input *StopQueryExecutionInput) (*StopQueryExecutionOutput, error) {
req, out := c.StopQueryExecutionRequest(input)
return out, req.Send()
@@ -1142,7 +1142,6 @@ func (c *Athena) StopQueryExecutionWithContext(ctx aws.Context, input *StopQuery
return out, req.Send()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQueryInput
type BatchGetNamedQueryInput struct {
_ struct{} `type:"structure"`
@@ -1184,7 +1183,6 @@ func (s *BatchGetNamedQueryInput) SetNamedQueryIds(v []*string) *BatchGetNamedQu
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetNamedQueryOutput
type BatchGetNamedQueryOutput struct {
_ struct{} `type:"structure"`
@@ -1217,7 +1215,6 @@ func (s *BatchGetNamedQueryOutput) SetUnprocessedNamedQueryIds(v []*UnprocessedN
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecutionInput
type BatchGetQueryExecutionInput struct {
_ struct{} `type:"structure"`
@@ -1259,7 +1256,6 @@ func (s *BatchGetQueryExecutionInput) SetQueryExecutionIds(v []*string) *BatchGe
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetQueryExecutionOutput
type BatchGetQueryExecutionOutput struct {
_ struct{} `type:"structure"`
@@ -1293,7 +1289,6 @@ func (s *BatchGetQueryExecutionOutput) SetUnprocessedQueryExecutionIds(v []*Unpr
}
// Information about the columns in a query execution result.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ColumnInfo
type ColumnInfo struct {
_ struct{} `type:"structure"`
@@ -1404,7 +1399,6 @@ func (s *ColumnInfo) SetType(v string) *ColumnInfo {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQueryInput
type CreateNamedQueryInput struct {
_ struct{} `type:"structure"`
@@ -1511,7 +1505,6 @@ func (s *CreateNamedQueryInput) SetQueryString(v string) *CreateNamedQueryInput
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateNamedQueryOutput
type CreateNamedQueryOutput struct {
_ struct{} `type:"structure"`
@@ -1536,7 +1529,6 @@ func (s *CreateNamedQueryOutput) SetNamedQueryId(v string) *CreateNamedQueryOutp
}
// A piece of data (a field in the table).
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/Datum
type Datum struct {
_ struct{} `type:"structure"`
@@ -1560,7 +1552,6 @@ func (s *Datum) SetVarCharValue(v string) *Datum {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQueryInput
type DeleteNamedQueryInput struct {
_ struct{} `type:"structure"`
@@ -1599,7 +1590,6 @@ func (s *DeleteNamedQueryInput) SetNamedQueryId(v string) *DeleteNamedQueryInput
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteNamedQueryOutput
type DeleteNamedQueryOutput struct {
_ struct{} `type:"structure"`
}
@@ -1616,7 +1606,6 @@ func (s DeleteNamedQueryOutput) GoString() string {
// If query results are encrypted in Amazon S3, indicates the Amazon S3 encryption
// option used.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/EncryptionConfiguration
type EncryptionConfiguration struct {
_ struct{} `type:"structure"`
@@ -1666,7 +1655,6 @@ func (s *EncryptionConfiguration) SetKmsKey(v string) *EncryptionConfiguration {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQueryInput
type GetNamedQueryInput struct {
_ struct{} `type:"structure"`
@@ -1705,7 +1693,6 @@ func (s *GetNamedQueryInput) SetNamedQueryId(v string) *GetNamedQueryInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetNamedQueryOutput
type GetNamedQueryOutput struct {
_ struct{} `type:"structure"`
@@ -1729,7 +1716,6 @@ func (s *GetNamedQueryOutput) SetNamedQuery(v *NamedQuery) *GetNamedQueryOutput
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecutionInput
type GetQueryExecutionInput struct {
_ struct{} `type:"structure"`
@@ -1768,7 +1754,6 @@ func (s *GetQueryExecutionInput) SetQueryExecutionId(v string) *GetQueryExecutio
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecutionOutput
type GetQueryExecutionOutput struct {
_ struct{} `type:"structure"`
@@ -1792,7 +1777,6 @@ func (s *GetQueryExecutionOutput) SetQueryExecution(v *QueryExecution) *GetQuery
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResultsInput
type GetQueryResultsInput struct {
_ struct{} `type:"structure"`
@@ -1850,7 +1834,6 @@ func (s *GetQueryResultsInput) SetQueryExecutionId(v string) *GetQueryResultsInp
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryResultsOutput
type GetQueryResultsOutput struct {
_ struct{} `type:"structure"`
@@ -1883,7 +1866,6 @@ func (s *GetQueryResultsOutput) SetResultSet(v *ResultSet) *GetQueryResultsOutpu
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueriesInput
type ListNamedQueriesInput struct {
_ struct{} `type:"structure"`
@@ -1917,7 +1899,6 @@ func (s *ListNamedQueriesInput) SetNextToken(v string) *ListNamedQueriesInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListNamedQueriesOutput
type ListNamedQueriesOutput struct {
_ struct{} `type:"structure"`
@@ -1950,7 +1931,6 @@ func (s *ListNamedQueriesOutput) SetNextToken(v string) *ListNamedQueriesOutput
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutionsInput
type ListQueryExecutionsInput struct {
_ struct{} `type:"structure"`
@@ -1984,7 +1964,6 @@ func (s *ListQueryExecutionsInput) SetNextToken(v string) *ListQueryExecutionsIn
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListQueryExecutionsOutput
type ListQueryExecutionsOutput struct {
_ struct{} `type:"structure"`
@@ -2019,7 +1998,6 @@ func (s *ListQueryExecutionsOutput) SetQueryExecutionIds(v []*string) *ListQuery
// A query, where QueryString is the SQL query statements that comprise the
// query.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/NamedQuery
type NamedQuery struct {
_ struct{} `type:"structure"`
@@ -2086,7 +2064,6 @@ func (s *NamedQuery) SetQueryString(v string) *NamedQuery {
}
// Information about a single instance of a query execution.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecution
type QueryExecution struct {
_ struct{} `type:"structure"`
@@ -2159,7 +2136,6 @@ func (s *QueryExecution) SetStatus(v *QueryExecutionStatus) *QueryExecution {
}
// The database in which the query execution occurs.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionContext
type QueryExecutionContext struct {
_ struct{} `type:"structure"`
@@ -2198,7 +2174,6 @@ func (s *QueryExecutionContext) SetDatabase(v string) *QueryExecutionContext {
// The amount of data scanned during the query execution and the amount of time
// that it took to execute.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionStatistics
type QueryExecutionStatistics struct {
_ struct{} `type:"structure"`
@@ -2233,7 +2208,6 @@ func (s *QueryExecutionStatistics) SetEngineExecutionTimeInMillis(v int64) *Quer
// The completion date, current state, submission time, and state change reason
// (if applicable) for the query execution.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionStatus
type QueryExecutionStatus struct {
_ struct{} `type:"structure"`
@@ -2290,7 +2264,6 @@ func (s *QueryExecutionStatus) SetSubmissionDateTime(v time.Time) *QueryExecutio
// The location in Amazon S3 where query results are stored and the encryption
// option, if any, used for query results.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfiguration
type ResultConfiguration struct {
_ struct{} `type:"structure"`
@@ -2346,7 +2319,6 @@ func (s *ResultConfiguration) SetOutputLocation(v string) *ResultConfiguration {
// The metadata and rows that comprise a query result set. The metadata describes
// the column structure and data types.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultSet
type ResultSet struct {
_ struct{} `type:"structure"`
@@ -2382,7 +2354,6 @@ func (s *ResultSet) SetRows(v []*Row) *ResultSet {
// The metadata that describes the column structure and data types of a table
// of query results.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultSetMetadata
type ResultSetMetadata struct {
_ struct{} `type:"structure"`
@@ -2407,7 +2378,6 @@ func (s *ResultSetMetadata) SetColumnInfo(v []*ColumnInfo) *ResultSetMetadata {
}
// The rows that comprise a query result table.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/Row
type Row struct {
_ struct{} `type:"structure"`
@@ -2431,7 +2401,6 @@ func (s *Row) SetData(v []*Datum) *Row {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecutionInput
type StartQueryExecutionInput struct {
_ struct{} `type:"structure"`
@@ -2526,7 +2495,6 @@ func (s *StartQueryExecutionInput) SetResultConfiguration(v *ResultConfiguration
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecutionOutput
type StartQueryExecutionOutput struct {
_ struct{} `type:"structure"`
@@ -2550,7 +2518,6 @@ func (s *StartQueryExecutionOutput) SetQueryExecutionId(v string) *StartQueryExe
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecutionInput
type StopQueryExecutionInput struct {
_ struct{} `type:"structure"`
@@ -2589,7 +2556,6 @@ func (s *StopQueryExecutionInput) SetQueryExecutionId(v string) *StopQueryExecut
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecutionOutput
type StopQueryExecutionOutput struct {
_ struct{} `type:"structure"`
}
@@ -2605,7 +2571,6 @@ func (s StopQueryExecutionOutput) GoString() string {
}
// Information about a named query ID that could not be processed.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UnprocessedNamedQueryId
type UnprocessedNamedQueryId struct {
_ struct{} `type:"structure"`
@@ -2650,7 +2615,6 @@ func (s *UnprocessedNamedQueryId) SetNamedQueryId(v string) *UnprocessedNamedQue
}
// Describes a query execution that failed to process.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UnprocessedQueryExecutionId
type UnprocessedQueryExecutionId struct {
_ struct{} `type:"structure"`
+1 -1
View File
@@ -23,7 +23,7 @@
//
// Using the Client
//
// To Amazon Athena with the SDK use the New function to create
// To contact Amazon Athena 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.
//
File diff suppressed because it is too large Load Diff
+5 -4
View File
@@ -3,9 +3,10 @@
// Package autoscaling provides the client and types for making API
// requests to Auto Scaling.
//
// Auto Scaling is designed to automatically launch or terminate EC2 instances
// based on user-defined policies, schedules, and health checks. Use this service
// in conjunction with the Amazon CloudWatch and Elastic Load Balancing services.
// Amazon EC2 Auto Scaling is designed to automatically launch or terminate
// EC2 instances based on user-defined policies, schedules, and health checks.
// Use this service in conjunction with the AWS Auto Scaling, Amazon CloudWatch,
// and Elastic Load Balancing services.
//
// See https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01 for more information on this service.
//
@@ -14,7 +15,7 @@
//
// Using the Client
//
// To Auto Scaling with the SDK use the New function to create
// To contact Auto Scaling 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.
//
+6
View File
@@ -44,4 +44,10 @@ const (
// The operation can't be performed because there are scaling activities in
// progress.
ErrCodeScalingActivityInProgressFault = "ScalingActivityInProgress"
// ErrCodeServiceLinkedRoleFailure for service response error code
// "ServiceLinkedRoleFailure".
//
// The service-linked role is not yet ready for use.
ErrCodeServiceLinkedRoleFailure = "ServiceLinkedRoleFailure"
)
+26
View File
@@ -43,6 +43,8 @@ func ExampleAutoScaling_AttachInstances_shared00() {
switch aerr.Code() {
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -75,6 +77,8 @@ func ExampleAutoScaling_AttachLoadBalancerTargetGroups_shared00() {
switch aerr.Code() {
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -107,6 +111,8 @@ func ExampleAutoScaling_AttachLoadBalancers_shared00() {
switch aerr.Code() {
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -177,6 +183,8 @@ func ExampleAutoScaling_CreateAutoScalingGroup_shared00() {
fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error())
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -222,6 +230,8 @@ func ExampleAutoScaling_CreateAutoScalingGroup_shared01() {
fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error())
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -264,6 +274,8 @@ func ExampleAutoScaling_CreateAutoScalingGroup_shared02() {
fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error())
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -541,6 +553,8 @@ func ExampleAutoScaling_DeletePolicy_shared00() {
switch aerr.Code() {
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -997,6 +1011,8 @@ func ExampleAutoScaling_DescribePolicies_shared00() {
fmt.Println(autoscaling.ErrCodeInvalidNextToken, aerr.Error())
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -1482,6 +1498,8 @@ func ExampleAutoScaling_PutNotificationConfiguration_shared00() {
fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error())
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -1516,6 +1534,8 @@ func ExampleAutoScaling_PutScalingPolicy_shared00() {
fmt.Println(autoscaling.ErrCodeLimitExceededFault, aerr.Error())
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -1856,6 +1876,8 @@ func ExampleAutoScaling_UpdateAutoScalingGroup_shared00() {
fmt.Println(autoscaling.ErrCodeScalingActivityInProgressFault, aerr.Error())
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -1890,6 +1912,8 @@ func ExampleAutoScaling_UpdateAutoScalingGroup_shared01() {
fmt.Println(autoscaling.ErrCodeScalingActivityInProgressFault, aerr.Error())
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -1922,6 +1946,8 @@ func ExampleAutoScaling_UpdateAutoScalingGroup_shared02() {
fmt.Println(autoscaling.ErrCodeScalingActivityInProgressFault, aerr.Error())
case autoscaling.ErrCodeResourceContentionFault:
fmt.Println(autoscaling.ErrCodeResourceContentionFault, aerr.Error())
case autoscaling.ErrCodeServiceLinkedRoleFailure:
fmt.Println(autoscaling.ErrCodeServiceLinkedRoleFailure, aerr.Error())
default:
fmt.Println(aerr.Error())
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,80 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package autoscalingplansiface provides an interface to enable mocking the AWS Auto Scaling Plans service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package autoscalingplansiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/autoscalingplans"
)
// AutoScalingPlansAPI provides an interface to enable mocking the
// autoscalingplans.AutoScalingPlans service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// 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 SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AWS Auto Scaling Plans.
// func myFunc(svc autoscalingplansiface.AutoScalingPlansAPI) bool {
// // Make svc.CreateScalingPlan request
// }
//
// func main() {
// sess := session.New()
// svc := autoscalingplans.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockAutoScalingPlansClient struct {
// autoscalingplansiface.AutoScalingPlansAPI
// }
// func (m *mockAutoScalingPlansClient) CreateScalingPlan(input *autoscalingplans.CreateScalingPlanInput) (*autoscalingplans.CreateScalingPlanOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockAutoScalingPlansClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type AutoScalingPlansAPI interface {
CreateScalingPlan(*autoscalingplans.CreateScalingPlanInput) (*autoscalingplans.CreateScalingPlanOutput, error)
CreateScalingPlanWithContext(aws.Context, *autoscalingplans.CreateScalingPlanInput, ...request.Option) (*autoscalingplans.CreateScalingPlanOutput, error)
CreateScalingPlanRequest(*autoscalingplans.CreateScalingPlanInput) (*request.Request, *autoscalingplans.CreateScalingPlanOutput)
DeleteScalingPlan(*autoscalingplans.DeleteScalingPlanInput) (*autoscalingplans.DeleteScalingPlanOutput, error)
DeleteScalingPlanWithContext(aws.Context, *autoscalingplans.DeleteScalingPlanInput, ...request.Option) (*autoscalingplans.DeleteScalingPlanOutput, error)
DeleteScalingPlanRequest(*autoscalingplans.DeleteScalingPlanInput) (*request.Request, *autoscalingplans.DeleteScalingPlanOutput)
DescribeScalingPlanResources(*autoscalingplans.DescribeScalingPlanResourcesInput) (*autoscalingplans.DescribeScalingPlanResourcesOutput, error)
DescribeScalingPlanResourcesWithContext(aws.Context, *autoscalingplans.DescribeScalingPlanResourcesInput, ...request.Option) (*autoscalingplans.DescribeScalingPlanResourcesOutput, error)
DescribeScalingPlanResourcesRequest(*autoscalingplans.DescribeScalingPlanResourcesInput) (*request.Request, *autoscalingplans.DescribeScalingPlanResourcesOutput)
DescribeScalingPlans(*autoscalingplans.DescribeScalingPlansInput) (*autoscalingplans.DescribeScalingPlansOutput, error)
DescribeScalingPlansWithContext(aws.Context, *autoscalingplans.DescribeScalingPlansInput, ...request.Option) (*autoscalingplans.DescribeScalingPlansOutput, error)
DescribeScalingPlansRequest(*autoscalingplans.DescribeScalingPlansInput) (*request.Request, *autoscalingplans.DescribeScalingPlansOutput)
}
var _ AutoScalingPlansAPI = (*autoscalingplans.AutoScalingPlans)(nil)
+36
View File
@@ -0,0 +1,36 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package autoscalingplans provides the client and types for making API
// requests to AWS Auto Scaling Plans.
//
// Use AWS Auto Scaling to quickly discover all the scalable AWS resources for
// your application and configure dynamic scaling for your scalable resources.
//
// To get started, create a scaling plan with a set of instructions used to
// configure dynamic scaling for the scalable resources in your application.
// AWS Auto Scaling creates target tracking scaling policies for the scalable
// resources in your scaling plan. Target tracking scaling policies adjust the
// capacity of your scalable resource as required to maintain resource utilization
// at the target value that you specified.
//
// See https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06 for more information on this service.
//
// See autoscalingplans package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/autoscalingplans/
//
// Using the Client
//
// To contact AWS Auto Scaling Plans 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 Auto Scaling Plans client AutoScalingPlans for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/autoscalingplans/#New
package autoscalingplans
+44
View File
@@ -0,0 +1,44 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package autoscalingplans
const (
// ErrCodeConcurrentUpdateException for service response error code
// "ConcurrentUpdateException".
//
// Concurrent updates caused an exception, for example, if you request an update
// to a scaling plan that already has a pending update.
ErrCodeConcurrentUpdateException = "ConcurrentUpdateException"
// ErrCodeInternalServiceException for service response error code
// "InternalServiceException".
//
// The service encountered an internal error.
ErrCodeInternalServiceException = "InternalServiceException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// The token provided is not valid.
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// Your account exceeded a limit. This exception is thrown when a per-account
// resource limit is exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeObjectNotFoundException for service response error code
// "ObjectNotFoundException".
//
// The specified object could not be found.
ErrCodeObjectNotFoundException = "ObjectNotFoundException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// An exception was thrown for a validation issue. Review the parameters provided.
ErrCodeValidationException = "ValidationException"
)
+98
View File
@@ -0,0 +1,98 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package autoscalingplans
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// AutoScalingPlans provides the API operation methods for making requests to
// AWS Auto Scaling Plans. See this package's package overview docs
// for details on the service.
//
// AutoScalingPlans methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type AutoScalingPlans struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "autoscaling" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the AutoScalingPlans client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a AutoScalingPlans client from just a session.
// svc := autoscalingplans.New(mySession)
//
// // Create a AutoScalingPlans client with additional configuration
// svc := autoscalingplans.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AutoScalingPlans {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "autoscaling-plans"
}
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *AutoScalingPlans {
svc := &AutoScalingPlans{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2018-01-06",
JSONVersion: "1.1",
TargetPrefix: "AnyScaleScalingPlannerFrontendService",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a AutoScalingPlans operation and runs any
// custom request initialization.
func (c *AutoScalingPlans) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
+483 -188
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -28,7 +28,7 @@
//
// Using the Client
//
// To AWS Batch with the SDK use the New function to create
// To contact AWS Batch 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.
//
+2 -2
View File
@@ -8,8 +8,8 @@ const (
// "ClientException".
//
// These errors are usually caused by a client action, such as using an action
// or resource on behalf of a user that doesn't have permission to use the action
// or resource, or specifying an identifier that is not valid.
// or resource on behalf of a user that doesn't have permissions to use the
// action or resource, or specifying an identifier that is not valid.
ErrCodeClientException = "ClientException"
// ErrCodeServerException for service response error code
+396 -292
View File
File diff suppressed because it is too large Load Diff
+34 -2
View File
@@ -3,14 +3,46 @@
// Package budgets provides the client and types for making API
// requests to AWS Budgets.
//
// All public APIs for AWS Budgets
// Budgets enable you to plan your service usage, service costs, and your RI
// utilization. You can also track how close your plan is to your budgeted amount
// or to the free tier limits. Budgets provide you with a quick way to see your
// usage-to-date and current estimated charges from AWS and to see how much
// your predicted usage accrues in charges by the end of the month. Budgets
// also compare current estimates and charges to the amount that you indicated
// you want to use or spend and lets you see how much of your budget has been
// used. AWS updates your budget status several times a day. Budgets track your
// unblended costs, subscriptions, and refunds. You can create the following
// types of budgets:
//
// * Cost budgets allow you to say how much you want to spend on a service.
//
// * Usage budgets allow you to say how many hours you want to use for one
// or more services.
//
// * RI utilization budgets allow you to define a utilization threshold and
// receive alerts when RIs are tracking below that threshold.
//
// You can create up to 20,000 budgets per AWS master account. Your first two
// budgets are free of charge. Each additional budget costs $0.02 per day. You
// can set up optional notifications that warn you if you exceed, or are forecasted
// to exceed, your budgeted amount. You can have notifications sent to an Amazon
// SNS topic, to an email address, or to both. For more information, see Creating
// an Amazon SNS Topic for Budget Notifications (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-sns-policy.html).
// AWS Free Tier usage alerts via AWS Budgets are provided for you, and do not
// count toward your budget limits.
//
// Service Endpoint
//
// The AWS Budgets API provides the following endpoint:
//
// * https://budgets.us-east-1.amazonaws.com
//
// See budgets package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/budgets/
//
// Using the Client
//
// To AWS Budgets with the SDK use the New function to create
// To contact AWS Budgets 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.
//
+9 -12
View File
@@ -7,47 +7,44 @@ const (
// ErrCodeCreationLimitExceededException for service response error code
// "CreationLimitExceededException".
//
// The exception is thrown when customer tries to create a record (e.g. budget),
// but the number this record already exceeds the limitation.
// You've exceeded the notification or subscriber limit.
ErrCodeCreationLimitExceededException = "CreationLimitExceededException"
// ErrCodeDuplicateRecordException for service response error code
// "DuplicateRecordException".
//
// The exception is thrown when customer tries to create a record (e.g. budget)
// that already exists.
// The budget name already exists. Budget names must be unique within an account.
ErrCodeDuplicateRecordException = "DuplicateRecordException"
// ErrCodeExpiredNextTokenException for service response error code
// "ExpiredNextTokenException".
//
// This exception is thrown if the paging token is expired - past its TTL
// The pagination token expired.
ErrCodeExpiredNextTokenException = "ExpiredNextTokenException"
// ErrCodeInternalErrorException for service response error code
// "InternalErrorException".
//
// This exception is thrown on an unknown internal failure.
// An error on the server occurred during the processing of your request. Try
// again later.
ErrCodeInternalErrorException = "InternalErrorException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// This exception is thrown if paging token signature didn't match the token,
// or the paging token isn't for this request
// The pagination token is invalid.
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeInvalidParameterException for service response error code
// "InvalidParameterException".
//
// This exception is thrown if any request is given an invalid parameter. E.g.,
// if a required Date field is null.
// An error on the client occurred. Typically, the cause is an invalid input
// value.
ErrCodeInvalidParameterException = "InvalidParameterException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// This exception is thrown if a requested entity is not found. E.g., if a budget
// id doesn't exist for an account ID.
// We cant locate the resource that you specified.
ErrCodeNotFoundException = "NotFoundException"
)
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,110 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package cloud9iface provides an interface to enable mocking the AWS Cloud9 service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package cloud9iface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/cloud9"
)
// Cloud9API provides an interface to enable mocking the
// cloud9.Cloud9 service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// 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 SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AWS Cloud9.
// func myFunc(svc cloud9iface.Cloud9API) bool {
// // Make svc.CreateEnvironmentEC2 request
// }
//
// func main() {
// sess := session.New()
// svc := cloud9.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockCloud9Client struct {
// cloud9iface.Cloud9API
// }
// func (m *mockCloud9Client) CreateEnvironmentEC2(input *cloud9.CreateEnvironmentEC2Input) (*cloud9.CreateEnvironmentEC2Output, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockCloud9Client{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type Cloud9API interface {
CreateEnvironmentEC2(*cloud9.CreateEnvironmentEC2Input) (*cloud9.CreateEnvironmentEC2Output, error)
CreateEnvironmentEC2WithContext(aws.Context, *cloud9.CreateEnvironmentEC2Input, ...request.Option) (*cloud9.CreateEnvironmentEC2Output, error)
CreateEnvironmentEC2Request(*cloud9.CreateEnvironmentEC2Input) (*request.Request, *cloud9.CreateEnvironmentEC2Output)
CreateEnvironmentMembership(*cloud9.CreateEnvironmentMembershipInput) (*cloud9.CreateEnvironmentMembershipOutput, error)
CreateEnvironmentMembershipWithContext(aws.Context, *cloud9.CreateEnvironmentMembershipInput, ...request.Option) (*cloud9.CreateEnvironmentMembershipOutput, error)
CreateEnvironmentMembershipRequest(*cloud9.CreateEnvironmentMembershipInput) (*request.Request, *cloud9.CreateEnvironmentMembershipOutput)
DeleteEnvironment(*cloud9.DeleteEnvironmentInput) (*cloud9.DeleteEnvironmentOutput, error)
DeleteEnvironmentWithContext(aws.Context, *cloud9.DeleteEnvironmentInput, ...request.Option) (*cloud9.DeleteEnvironmentOutput, error)
DeleteEnvironmentRequest(*cloud9.DeleteEnvironmentInput) (*request.Request, *cloud9.DeleteEnvironmentOutput)
DeleteEnvironmentMembership(*cloud9.DeleteEnvironmentMembershipInput) (*cloud9.DeleteEnvironmentMembershipOutput, error)
DeleteEnvironmentMembershipWithContext(aws.Context, *cloud9.DeleteEnvironmentMembershipInput, ...request.Option) (*cloud9.DeleteEnvironmentMembershipOutput, error)
DeleteEnvironmentMembershipRequest(*cloud9.DeleteEnvironmentMembershipInput) (*request.Request, *cloud9.DeleteEnvironmentMembershipOutput)
DescribeEnvironmentMemberships(*cloud9.DescribeEnvironmentMembershipsInput) (*cloud9.DescribeEnvironmentMembershipsOutput, error)
DescribeEnvironmentMembershipsWithContext(aws.Context, *cloud9.DescribeEnvironmentMembershipsInput, ...request.Option) (*cloud9.DescribeEnvironmentMembershipsOutput, error)
DescribeEnvironmentMembershipsRequest(*cloud9.DescribeEnvironmentMembershipsInput) (*request.Request, *cloud9.DescribeEnvironmentMembershipsOutput)
DescribeEnvironmentMembershipsPages(*cloud9.DescribeEnvironmentMembershipsInput, func(*cloud9.DescribeEnvironmentMembershipsOutput, bool) bool) error
DescribeEnvironmentMembershipsPagesWithContext(aws.Context, *cloud9.DescribeEnvironmentMembershipsInput, func(*cloud9.DescribeEnvironmentMembershipsOutput, bool) bool, ...request.Option) error
DescribeEnvironmentStatus(*cloud9.DescribeEnvironmentStatusInput) (*cloud9.DescribeEnvironmentStatusOutput, error)
DescribeEnvironmentStatusWithContext(aws.Context, *cloud9.DescribeEnvironmentStatusInput, ...request.Option) (*cloud9.DescribeEnvironmentStatusOutput, error)
DescribeEnvironmentStatusRequest(*cloud9.DescribeEnvironmentStatusInput) (*request.Request, *cloud9.DescribeEnvironmentStatusOutput)
DescribeEnvironments(*cloud9.DescribeEnvironmentsInput) (*cloud9.DescribeEnvironmentsOutput, error)
DescribeEnvironmentsWithContext(aws.Context, *cloud9.DescribeEnvironmentsInput, ...request.Option) (*cloud9.DescribeEnvironmentsOutput, error)
DescribeEnvironmentsRequest(*cloud9.DescribeEnvironmentsInput) (*request.Request, *cloud9.DescribeEnvironmentsOutput)
ListEnvironments(*cloud9.ListEnvironmentsInput) (*cloud9.ListEnvironmentsOutput, error)
ListEnvironmentsWithContext(aws.Context, *cloud9.ListEnvironmentsInput, ...request.Option) (*cloud9.ListEnvironmentsOutput, error)
ListEnvironmentsRequest(*cloud9.ListEnvironmentsInput) (*request.Request, *cloud9.ListEnvironmentsOutput)
ListEnvironmentsPages(*cloud9.ListEnvironmentsInput, func(*cloud9.ListEnvironmentsOutput, bool) bool) error
ListEnvironmentsPagesWithContext(aws.Context, *cloud9.ListEnvironmentsInput, func(*cloud9.ListEnvironmentsOutput, bool) bool, ...request.Option) error
UpdateEnvironment(*cloud9.UpdateEnvironmentInput) (*cloud9.UpdateEnvironmentOutput, error)
UpdateEnvironmentWithContext(aws.Context, *cloud9.UpdateEnvironmentInput, ...request.Option) (*cloud9.UpdateEnvironmentOutput, error)
UpdateEnvironmentRequest(*cloud9.UpdateEnvironmentInput) (*request.Request, *cloud9.UpdateEnvironmentOutput)
UpdateEnvironmentMembership(*cloud9.UpdateEnvironmentMembershipInput) (*cloud9.UpdateEnvironmentMembershipOutput, error)
UpdateEnvironmentMembershipWithContext(aws.Context, *cloud9.UpdateEnvironmentMembershipInput, ...request.Option) (*cloud9.UpdateEnvironmentMembershipOutput, error)
UpdateEnvironmentMembershipRequest(*cloud9.UpdateEnvironmentMembershipInput) (*request.Request, *cloud9.UpdateEnvironmentMembershipOutput)
}
var _ Cloud9API = (*cloud9.Cloud9)(nil)
+58
View File
@@ -0,0 +1,58 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package cloud9 provides the client and types for making API
// requests to AWS Cloud9.
//
// AWS Cloud9 is a collection of tools that you can use to code, build, run,
// test, debug, and release software in the cloud.
//
// For more information about AWS Cloud9, see the AWS Cloud9 User Guide (https://docs.aws.amazon.com/cloud9/latest/user-guide).
//
// AWS Cloud9 supports these operations:
//
// * CreateEnvironmentEC2: Creates an AWS Cloud9 development environment,
// launches an Amazon EC2 instance, and then connects from the instance to
// the environment.
//
// * CreateEnvironmentMembership: Adds an environment member to an environment.
//
// * DeleteEnvironment: Deletes an environment. If an Amazon EC2 instance
// is connected to the environment, also terminates the instance.
//
// * DeleteEnvironmentMembership: Deletes an environment member from an environment.
//
// * DescribeEnvironmentMemberships: Gets information about environment members
// for an environment.
//
// * DescribeEnvironments: Gets information about environments.
//
// * DescribeEnvironmentStatus: Gets status information for an environment.
//
// * ListEnvironments: Gets a list of environment identifiers.
//
// * UpdateEnvironment: Changes the settings of an existing environment.
//
// * UpdateEnvironmentMembership: Changes the settings of an existing environment
// member for an environment.
//
// See https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23 for more information on this service.
//
// See cloud9 package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloud9/
//
// Using the Client
//
// To contact AWS Cloud9 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 Cloud9 client Cloud9 for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloud9/#New
package cloud9
+48
View File
@@ -0,0 +1,48 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package cloud9
const (
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// The target request is invalid.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// A conflict occurred.
ErrCodeConflictException = "ConflictException"
// ErrCodeForbiddenException for service response error code
// "ForbiddenException".
//
// An access permissions issue occurred.
ErrCodeForbiddenException = "ForbiddenException"
// ErrCodeInternalServerErrorException for service response error code
// "InternalServerErrorException".
//
// An internal server error occurred.
ErrCodeInternalServerErrorException = "InternalServerErrorException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// A service limit was exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The target resource cannot be found.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException".
//
// Too many service requests were made over the given time period.
ErrCodeTooManyRequestsException = "TooManyRequestsException"
)
+537
View File
@@ -0,0 +1,537 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package cloud9_test
import (
"fmt"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloud9"
)
var _ time.Duration
var _ strings.Reader
var _ aws.Config
func parseTime(layout, value string) *time.Time {
t, err := time.Parse(layout, value)
if err != nil {
panic(err)
}
return &t
}
// CreateEnvironmentEC2
//
func ExampleCloud9_CreateEnvironmentEC2_shared00() {
svc := cloud9.New(session.New())
input := &cloud9.CreateEnvironmentEC2Input{
AutomaticStopTimeMinutes: aws.Int64(60),
Description: aws.String("This is my demonstration environment."),
InstanceType: aws.String("t2.micro"),
Name: aws.String("my-demo-environment"),
OwnerArn: aws.String("arn:aws:iam::123456789012:user/MyDemoUser"),
SubnetId: aws.String("subnet-1fab8aEX"),
}
result, err := svc.CreateEnvironmentEC2(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// CreateEnvironmentMembership
//
func ExampleCloud9_CreateEnvironmentMembership_shared00() {
svc := cloud9.New(session.New())
input := &cloud9.CreateEnvironmentMembershipInput{
EnvironmentId: aws.String("8d9967e2f0624182b74e7690ad69ebEX"),
Permissions: aws.String("read-write"),
UserArn: aws.String("arn:aws:iam::123456789012:user/AnotherDemoUser"),
}
result, err := svc.CreateEnvironmentMembership(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// DeleteEnvironment
//
func ExampleCloud9_DeleteEnvironment_shared00() {
svc := cloud9.New(session.New())
input := &cloud9.DeleteEnvironmentInput{
EnvironmentId: aws.String("8d9967e2f0624182b74e7690ad69ebEX"),
}
result, err := svc.DeleteEnvironment(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// DeleteEnvironmentMembership
//
func ExampleCloud9_DeleteEnvironmentMembership_shared00() {
svc := cloud9.New(session.New())
input := &cloud9.DeleteEnvironmentMembershipInput{
EnvironmentId: aws.String("8d9967e2f0624182b74e7690ad69ebEX"),
UserArn: aws.String("arn:aws:iam::123456789012:user/AnotherDemoUser"),
}
result, err := svc.DeleteEnvironmentMembership(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// DescribeEnvironmentMemberships1
//
// The following example gets information about all of the environment members for the
// specified AWS Cloud9 development environment.
func ExampleCloud9_DescribeEnvironmentMemberships_shared00() {
svc := cloud9.New(session.New())
input := &cloud9.DescribeEnvironmentMembershipsInput{
EnvironmentId: aws.String("8d9967e2f0624182b74e7690ad69ebEX"),
}
result, err := svc.DescribeEnvironmentMemberships(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// DescribeEnvironmentMemberships2
//
// The following example gets information about the owner of the specified AWS Cloud9
// development environment.
func ExampleCloud9_DescribeEnvironmentMemberships_shared01() {
svc := cloud9.New(session.New())
input := &cloud9.DescribeEnvironmentMembershipsInput{
EnvironmentId: aws.String("8d9967e2f0624182b74e7690ad69ebEX"),
Permissions: []*string{
aws.String("owner"),
},
}
result, err := svc.DescribeEnvironmentMemberships(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// DescribeEnvironmentMemberships3
//
// The following example gets AWS Cloud9 development environment membership information
// for the specified user.
func ExampleCloud9_DescribeEnvironmentMemberships_shared02() {
svc := cloud9.New(session.New())
input := &cloud9.DescribeEnvironmentMembershipsInput{
UserArn: aws.String("arn:aws:iam::123456789012:user/MyDemoUser"),
}
result, err := svc.DescribeEnvironmentMemberships(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// DescribeEnvironmentStatus
//
func ExampleCloud9_DescribeEnvironmentStatus_shared00() {
svc := cloud9.New(session.New())
input := &cloud9.DescribeEnvironmentStatusInput{
EnvironmentId: aws.String("8d9967e2f0624182b74e7690ad69ebEX"),
}
result, err := svc.DescribeEnvironmentStatus(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// DescribeEnvironments
//
func ExampleCloud9_DescribeEnvironments_shared00() {
svc := cloud9.New(session.New())
input := &cloud9.DescribeEnvironmentsInput{
EnvironmentIds: []*string{
aws.String("8d9967e2f0624182b74e7690ad69ebEX"),
aws.String("349c86d4579e4e7298d500ff57a6b2EX"),
},
}
result, err := svc.DescribeEnvironments(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// ListEnvironments
//
func ExampleCloud9_ListEnvironments_shared00() {
svc := cloud9.New(session.New())
input := &cloud9.ListEnvironmentsInput{}
result, err := svc.ListEnvironments(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// UpdateEnvironment
//
func ExampleCloud9_UpdateEnvironment_shared00() {
svc := cloud9.New(session.New())
input := &cloud9.UpdateEnvironmentInput{
Description: aws.String("This is my changed demonstration environment."),
EnvironmentId: aws.String("8d9967e2f0624182b74e7690ad69ebEX"),
Name: aws.String("my-changed-demo-environment"),
}
result, err := svc.UpdateEnvironment(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// UpdateEnvironmentMembership
//
func ExampleCloud9_UpdateEnvironmentMembership_shared00() {
svc := cloud9.New(session.New())
input := &cloud9.UpdateEnvironmentMembershipInput{
EnvironmentId: aws.String("8d9967e2f0624182b74e7690ad69ebEX"),
Permissions: aws.String("read-only"),
UserArn: aws.String("arn:aws:iam::123456789012:user/AnotherDemoUser"),
}
result, err := svc.UpdateEnvironmentMembership(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case cloud9.ErrCodeBadRequestException:
fmt.Println(cloud9.ErrCodeBadRequestException, aerr.Error())
case cloud9.ErrCodeConflictException:
fmt.Println(cloud9.ErrCodeConflictException, aerr.Error())
case cloud9.ErrCodeNotFoundException:
fmt.Println(cloud9.ErrCodeNotFoundException, aerr.Error())
case cloud9.ErrCodeForbiddenException:
fmt.Println(cloud9.ErrCodeForbiddenException, aerr.Error())
case cloud9.ErrCodeTooManyRequestsException:
fmt.Println(cloud9.ErrCodeTooManyRequestsException, aerr.Error())
case cloud9.ErrCodeLimitExceededException:
fmt.Println(cloud9.ErrCodeLimitExceededException, aerr.Error())
case cloud9.ErrCodeInternalServerErrorException:
fmt.Println(cloud9.ErrCodeInternalServerErrorException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
+95
View File
@@ -0,0 +1,95 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package cloud9
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// Cloud9 provides the API operation methods for making requests to
// AWS Cloud9. See this package's package overview docs
// for details on the service.
//
// Cloud9 methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type Cloud9 struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "cloud9" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the Cloud9 client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a Cloud9 client from just a session.
// svc := cloud9.New(mySession)
//
// // Create a Cloud9 client with additional configuration
// svc := cloud9.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Cloud9 {
c := p.ClientConfig(EndpointsID, cfgs...)
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Cloud9 {
svc := &Cloud9{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2017-09-23",
JSONVersion: "1.1",
TargetPrefix: "AWSCloud9WorkspaceManagementService",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a Cloud9 operation and runs any
// custom request initialization.
func (c *Cloud9) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
File diff suppressed because it is too large Load Diff
@@ -160,6 +160,10 @@ type CloudDirectoryAPI interface {
EnableDirectoryWithContext(aws.Context, *clouddirectory.EnableDirectoryInput, ...request.Option) (*clouddirectory.EnableDirectoryOutput, error)
EnableDirectoryRequest(*clouddirectory.EnableDirectoryInput) (*request.Request, *clouddirectory.EnableDirectoryOutput)
GetAppliedSchemaVersion(*clouddirectory.GetAppliedSchemaVersionInput) (*clouddirectory.GetAppliedSchemaVersionOutput, error)
GetAppliedSchemaVersionWithContext(aws.Context, *clouddirectory.GetAppliedSchemaVersionInput, ...request.Option) (*clouddirectory.GetAppliedSchemaVersionOutput, error)
GetAppliedSchemaVersionRequest(*clouddirectory.GetAppliedSchemaVersionInput) (*request.Request, *clouddirectory.GetAppliedSchemaVersionOutput)
GetDirectory(*clouddirectory.GetDirectoryInput) (*clouddirectory.GetDirectoryOutput, error)
GetDirectoryWithContext(aws.Context, *clouddirectory.GetDirectoryInput, ...request.Option) (*clouddirectory.GetDirectoryOutput, error)
GetDirectoryRequest(*clouddirectory.GetDirectoryInput) (*request.Request, *clouddirectory.GetDirectoryOutput)
@@ -168,6 +172,10 @@ type CloudDirectoryAPI interface {
GetFacetWithContext(aws.Context, *clouddirectory.GetFacetInput, ...request.Option) (*clouddirectory.GetFacetOutput, error)
GetFacetRequest(*clouddirectory.GetFacetInput) (*request.Request, *clouddirectory.GetFacetOutput)
GetObjectAttributes(*clouddirectory.GetObjectAttributesInput) (*clouddirectory.GetObjectAttributesOutput, error)
GetObjectAttributesWithContext(aws.Context, *clouddirectory.GetObjectAttributesInput, ...request.Option) (*clouddirectory.GetObjectAttributesOutput, error)
GetObjectAttributesRequest(*clouddirectory.GetObjectAttributesInput) (*request.Request, *clouddirectory.GetObjectAttributesOutput)
GetObjectInformation(*clouddirectory.GetObjectInformationInput) (*clouddirectory.GetObjectInformationOutput, error)
GetObjectInformationWithContext(aws.Context, *clouddirectory.GetObjectInformationInput, ...request.Option) (*clouddirectory.GetObjectInformationOutput, error)
GetObjectInformationRequest(*clouddirectory.GetObjectInformationInput) (*request.Request, *clouddirectory.GetObjectInformationOutput)
@@ -349,6 +357,14 @@ type CloudDirectoryAPI interface {
UpdateTypedLinkFacet(*clouddirectory.UpdateTypedLinkFacetInput) (*clouddirectory.UpdateTypedLinkFacetOutput, error)
UpdateTypedLinkFacetWithContext(aws.Context, *clouddirectory.UpdateTypedLinkFacetInput, ...request.Option) (*clouddirectory.UpdateTypedLinkFacetOutput, error)
UpdateTypedLinkFacetRequest(*clouddirectory.UpdateTypedLinkFacetInput) (*request.Request, *clouddirectory.UpdateTypedLinkFacetOutput)
UpgradeAppliedSchema(*clouddirectory.UpgradeAppliedSchemaInput) (*clouddirectory.UpgradeAppliedSchemaOutput, error)
UpgradeAppliedSchemaWithContext(aws.Context, *clouddirectory.UpgradeAppliedSchemaInput, ...request.Option) (*clouddirectory.UpgradeAppliedSchemaOutput, error)
UpgradeAppliedSchemaRequest(*clouddirectory.UpgradeAppliedSchemaInput) (*request.Request, *clouddirectory.UpgradeAppliedSchemaOutput)
UpgradePublishedSchema(*clouddirectory.UpgradePublishedSchemaInput) (*clouddirectory.UpgradePublishedSchemaOutput, error)
UpgradePublishedSchemaWithContext(aws.Context, *clouddirectory.UpgradePublishedSchemaInput, ...request.Option) (*clouddirectory.UpgradePublishedSchemaOutput, error)
UpgradePublishedSchemaRequest(*clouddirectory.UpgradePublishedSchemaInput) (*request.Request, *clouddirectory.UpgradePublishedSchemaOutput)
}
var _ CloudDirectoryAPI = (*clouddirectory.CloudDirectory)(nil)
+1 -1
View File
@@ -17,7 +17,7 @@
//
// Using the Client
//
// To Amazon CloudDirectory with the SDK use the New function to create
// To contact Amazon CloudDirectory 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.
//
+9 -1
View File
@@ -45,7 +45,7 @@ const (
// ErrCodeDirectoryNotEnabledException for service response error code
// "DirectoryNotEnabledException".
//
// An operation can only operate on a directory that is not enabled.
// Operations are only permitted on enabled directories.
ErrCodeDirectoryNotEnabledException = "DirectoryNotEnabledException"
// ErrCodeFacetAlreadyExistsException for service response error code
@@ -74,6 +74,14 @@ const (
// with the schema.
ErrCodeFacetValidationException = "FacetValidationException"
// ErrCodeIncompatibleSchemaException for service response error code
// "IncompatibleSchemaException".
//
// Indicates a failure occurred while performing a check for backward compatibility
// between the specified schema and the schema that is currently applied to
// the directory.
ErrCodeIncompatibleSchemaException = "IncompatibleSchemaException"
// ErrCodeIndexedAttributeMissingException for service response error code
// "IndexedAttributeMissingException".
//
+3 -3
View File
@@ -45,14 +45,14 @@ const (
// svc := clouddirectory.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudDirectory {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "clouddirectory"
}
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudDirectory {
if len(signingName) == 0 {
signingName = "clouddirectory"
}
svc := &CloudDirectory{
Client: client.New(
cfg,
File diff suppressed because it is too large Load Diff
@@ -226,6 +226,10 @@ type CloudFormationAPI interface {
UpdateStackWithContext(aws.Context, *cloudformation.UpdateStackInput, ...request.Option) (*cloudformation.UpdateStackOutput, error)
UpdateStackRequest(*cloudformation.UpdateStackInput) (*request.Request, *cloudformation.UpdateStackOutput)
UpdateStackInstances(*cloudformation.UpdateStackInstancesInput) (*cloudformation.UpdateStackInstancesOutput, error)
UpdateStackInstancesWithContext(aws.Context, *cloudformation.UpdateStackInstancesInput, ...request.Option) (*cloudformation.UpdateStackInstancesOutput, error)
UpdateStackInstancesRequest(*cloudformation.UpdateStackInstancesInput) (*request.Request, *cloudformation.UpdateStackInstancesOutput)
UpdateStackSet(*cloudformation.UpdateStackSetInput) (*cloudformation.UpdateStackSetOutput, error)
UpdateStackSetWithContext(aws.Context, *cloudformation.UpdateStackSetInput, ...request.Option) (*cloudformation.UpdateStackSetOutput, error)
UpdateStackSetRequest(*cloudformation.UpdateStackSetInput) (*request.Request, *cloudformation.UpdateStackSetOutput)
+1 -1
View File
@@ -30,7 +30,7 @@
//
// Using the Client
//
// To AWS CloudFormation with the SDK use the New function to create
// To contact AWS CloudFormation 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.
//
File diff suppressed because it is too large Load Diff
@@ -72,10 +72,22 @@ type CloudFrontAPI interface {
CreateDistributionWithTagsWithContext(aws.Context, *cloudfront.CreateDistributionWithTagsInput, ...request.Option) (*cloudfront.CreateDistributionWithTagsOutput, error)
CreateDistributionWithTagsRequest(*cloudfront.CreateDistributionWithTagsInput) (*request.Request, *cloudfront.CreateDistributionWithTagsOutput)
CreateFieldLevelEncryptionConfig(*cloudfront.CreateFieldLevelEncryptionConfigInput) (*cloudfront.CreateFieldLevelEncryptionConfigOutput, error)
CreateFieldLevelEncryptionConfigWithContext(aws.Context, *cloudfront.CreateFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.CreateFieldLevelEncryptionConfigOutput, error)
CreateFieldLevelEncryptionConfigRequest(*cloudfront.CreateFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.CreateFieldLevelEncryptionConfigOutput)
CreateFieldLevelEncryptionProfile(*cloudfront.CreateFieldLevelEncryptionProfileInput) (*cloudfront.CreateFieldLevelEncryptionProfileOutput, error)
CreateFieldLevelEncryptionProfileWithContext(aws.Context, *cloudfront.CreateFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.CreateFieldLevelEncryptionProfileOutput, error)
CreateFieldLevelEncryptionProfileRequest(*cloudfront.CreateFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.CreateFieldLevelEncryptionProfileOutput)
CreateInvalidation(*cloudfront.CreateInvalidationInput) (*cloudfront.CreateInvalidationOutput, error)
CreateInvalidationWithContext(aws.Context, *cloudfront.CreateInvalidationInput, ...request.Option) (*cloudfront.CreateInvalidationOutput, error)
CreateInvalidationRequest(*cloudfront.CreateInvalidationInput) (*request.Request, *cloudfront.CreateInvalidationOutput)
CreatePublicKey(*cloudfront.CreatePublicKeyInput) (*cloudfront.CreatePublicKeyOutput, error)
CreatePublicKeyWithContext(aws.Context, *cloudfront.CreatePublicKeyInput, ...request.Option) (*cloudfront.CreatePublicKeyOutput, error)
CreatePublicKeyRequest(*cloudfront.CreatePublicKeyInput) (*request.Request, *cloudfront.CreatePublicKeyOutput)
CreateStreamingDistribution(*cloudfront.CreateStreamingDistributionInput) (*cloudfront.CreateStreamingDistributionOutput, error)
CreateStreamingDistributionWithContext(aws.Context, *cloudfront.CreateStreamingDistributionInput, ...request.Option) (*cloudfront.CreateStreamingDistributionOutput, error)
CreateStreamingDistributionRequest(*cloudfront.CreateStreamingDistributionInput) (*request.Request, *cloudfront.CreateStreamingDistributionOutput)
@@ -92,6 +104,22 @@ type CloudFrontAPI interface {
DeleteDistributionWithContext(aws.Context, *cloudfront.DeleteDistributionInput, ...request.Option) (*cloudfront.DeleteDistributionOutput, error)
DeleteDistributionRequest(*cloudfront.DeleteDistributionInput) (*request.Request, *cloudfront.DeleteDistributionOutput)
DeleteFieldLevelEncryptionConfig(*cloudfront.DeleteFieldLevelEncryptionConfigInput) (*cloudfront.DeleteFieldLevelEncryptionConfigOutput, error)
DeleteFieldLevelEncryptionConfigWithContext(aws.Context, *cloudfront.DeleteFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.DeleteFieldLevelEncryptionConfigOutput, error)
DeleteFieldLevelEncryptionConfigRequest(*cloudfront.DeleteFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.DeleteFieldLevelEncryptionConfigOutput)
DeleteFieldLevelEncryptionProfile(*cloudfront.DeleteFieldLevelEncryptionProfileInput) (*cloudfront.DeleteFieldLevelEncryptionProfileOutput, error)
DeleteFieldLevelEncryptionProfileWithContext(aws.Context, *cloudfront.DeleteFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.DeleteFieldLevelEncryptionProfileOutput, error)
DeleteFieldLevelEncryptionProfileRequest(*cloudfront.DeleteFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.DeleteFieldLevelEncryptionProfileOutput)
DeletePublicKey(*cloudfront.DeletePublicKeyInput) (*cloudfront.DeletePublicKeyOutput, error)
DeletePublicKeyWithContext(aws.Context, *cloudfront.DeletePublicKeyInput, ...request.Option) (*cloudfront.DeletePublicKeyOutput, error)
DeletePublicKeyRequest(*cloudfront.DeletePublicKeyInput) (*request.Request, *cloudfront.DeletePublicKeyOutput)
DeleteServiceLinkedRole(*cloudfront.DeleteServiceLinkedRoleInput) (*cloudfront.DeleteServiceLinkedRoleOutput, error)
DeleteServiceLinkedRoleWithContext(aws.Context, *cloudfront.DeleteServiceLinkedRoleInput, ...request.Option) (*cloudfront.DeleteServiceLinkedRoleOutput, error)
DeleteServiceLinkedRoleRequest(*cloudfront.DeleteServiceLinkedRoleInput) (*request.Request, *cloudfront.DeleteServiceLinkedRoleOutput)
DeleteStreamingDistribution(*cloudfront.DeleteStreamingDistributionInput) (*cloudfront.DeleteStreamingDistributionOutput, error)
DeleteStreamingDistributionWithContext(aws.Context, *cloudfront.DeleteStreamingDistributionInput, ...request.Option) (*cloudfront.DeleteStreamingDistributionOutput, error)
DeleteStreamingDistributionRequest(*cloudfront.DeleteStreamingDistributionInput) (*request.Request, *cloudfront.DeleteStreamingDistributionOutput)
@@ -112,10 +140,34 @@ type CloudFrontAPI interface {
GetDistributionConfigWithContext(aws.Context, *cloudfront.GetDistributionConfigInput, ...request.Option) (*cloudfront.GetDistributionConfigOutput, error)
GetDistributionConfigRequest(*cloudfront.GetDistributionConfigInput) (*request.Request, *cloudfront.GetDistributionConfigOutput)
GetFieldLevelEncryption(*cloudfront.GetFieldLevelEncryptionInput) (*cloudfront.GetFieldLevelEncryptionOutput, error)
GetFieldLevelEncryptionWithContext(aws.Context, *cloudfront.GetFieldLevelEncryptionInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionOutput, error)
GetFieldLevelEncryptionRequest(*cloudfront.GetFieldLevelEncryptionInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionOutput)
GetFieldLevelEncryptionConfig(*cloudfront.GetFieldLevelEncryptionConfigInput) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error)
GetFieldLevelEncryptionConfigWithContext(aws.Context, *cloudfront.GetFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error)
GetFieldLevelEncryptionConfigRequest(*cloudfront.GetFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionConfigOutput)
GetFieldLevelEncryptionProfile(*cloudfront.GetFieldLevelEncryptionProfileInput) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error)
GetFieldLevelEncryptionProfileWithContext(aws.Context, *cloudfront.GetFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error)
GetFieldLevelEncryptionProfileRequest(*cloudfront.GetFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileOutput)
GetFieldLevelEncryptionProfileConfig(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error)
GetFieldLevelEncryptionProfileConfigWithContext(aws.Context, *cloudfront.GetFieldLevelEncryptionProfileConfigInput, ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error)
GetFieldLevelEncryptionProfileConfigRequest(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileConfigOutput)
GetInvalidation(*cloudfront.GetInvalidationInput) (*cloudfront.GetInvalidationOutput, error)
GetInvalidationWithContext(aws.Context, *cloudfront.GetInvalidationInput, ...request.Option) (*cloudfront.GetInvalidationOutput, error)
GetInvalidationRequest(*cloudfront.GetInvalidationInput) (*request.Request, *cloudfront.GetInvalidationOutput)
GetPublicKey(*cloudfront.GetPublicKeyInput) (*cloudfront.GetPublicKeyOutput, error)
GetPublicKeyWithContext(aws.Context, *cloudfront.GetPublicKeyInput, ...request.Option) (*cloudfront.GetPublicKeyOutput, error)
GetPublicKeyRequest(*cloudfront.GetPublicKeyInput) (*request.Request, *cloudfront.GetPublicKeyOutput)
GetPublicKeyConfig(*cloudfront.GetPublicKeyConfigInput) (*cloudfront.GetPublicKeyConfigOutput, error)
GetPublicKeyConfigWithContext(aws.Context, *cloudfront.GetPublicKeyConfigInput, ...request.Option) (*cloudfront.GetPublicKeyConfigOutput, error)
GetPublicKeyConfigRequest(*cloudfront.GetPublicKeyConfigInput) (*request.Request, *cloudfront.GetPublicKeyConfigOutput)
GetStreamingDistribution(*cloudfront.GetStreamingDistributionInput) (*cloudfront.GetStreamingDistributionOutput, error)
GetStreamingDistributionWithContext(aws.Context, *cloudfront.GetStreamingDistributionInput, ...request.Option) (*cloudfront.GetStreamingDistributionOutput, error)
GetStreamingDistributionRequest(*cloudfront.GetStreamingDistributionInput) (*request.Request, *cloudfront.GetStreamingDistributionOutput)
@@ -142,6 +194,14 @@ type CloudFrontAPI interface {
ListDistributionsByWebACLIdWithContext(aws.Context, *cloudfront.ListDistributionsByWebACLIdInput, ...request.Option) (*cloudfront.ListDistributionsByWebACLIdOutput, error)
ListDistributionsByWebACLIdRequest(*cloudfront.ListDistributionsByWebACLIdInput) (*request.Request, *cloudfront.ListDistributionsByWebACLIdOutput)
ListFieldLevelEncryptionConfigs(*cloudfront.ListFieldLevelEncryptionConfigsInput) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error)
ListFieldLevelEncryptionConfigsWithContext(aws.Context, *cloudfront.ListFieldLevelEncryptionConfigsInput, ...request.Option) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error)
ListFieldLevelEncryptionConfigsRequest(*cloudfront.ListFieldLevelEncryptionConfigsInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionConfigsOutput)
ListFieldLevelEncryptionProfiles(*cloudfront.ListFieldLevelEncryptionProfilesInput) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error)
ListFieldLevelEncryptionProfilesWithContext(aws.Context, *cloudfront.ListFieldLevelEncryptionProfilesInput, ...request.Option) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error)
ListFieldLevelEncryptionProfilesRequest(*cloudfront.ListFieldLevelEncryptionProfilesInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionProfilesOutput)
ListInvalidations(*cloudfront.ListInvalidationsInput) (*cloudfront.ListInvalidationsOutput, error)
ListInvalidationsWithContext(aws.Context, *cloudfront.ListInvalidationsInput, ...request.Option) (*cloudfront.ListInvalidationsOutput, error)
ListInvalidationsRequest(*cloudfront.ListInvalidationsInput) (*request.Request, *cloudfront.ListInvalidationsOutput)
@@ -149,6 +209,10 @@ type CloudFrontAPI interface {
ListInvalidationsPages(*cloudfront.ListInvalidationsInput, func(*cloudfront.ListInvalidationsOutput, bool) bool) error
ListInvalidationsPagesWithContext(aws.Context, *cloudfront.ListInvalidationsInput, func(*cloudfront.ListInvalidationsOutput, bool) bool, ...request.Option) error
ListPublicKeys(*cloudfront.ListPublicKeysInput) (*cloudfront.ListPublicKeysOutput, error)
ListPublicKeysWithContext(aws.Context, *cloudfront.ListPublicKeysInput, ...request.Option) (*cloudfront.ListPublicKeysOutput, error)
ListPublicKeysRequest(*cloudfront.ListPublicKeysInput) (*request.Request, *cloudfront.ListPublicKeysOutput)
ListStreamingDistributions(*cloudfront.ListStreamingDistributionsInput) (*cloudfront.ListStreamingDistributionsOutput, error)
ListStreamingDistributionsWithContext(aws.Context, *cloudfront.ListStreamingDistributionsInput, ...request.Option) (*cloudfront.ListStreamingDistributionsOutput, error)
ListStreamingDistributionsRequest(*cloudfront.ListStreamingDistributionsInput) (*request.Request, *cloudfront.ListStreamingDistributionsOutput)
@@ -176,6 +240,18 @@ type CloudFrontAPI interface {
UpdateDistributionWithContext(aws.Context, *cloudfront.UpdateDistributionInput, ...request.Option) (*cloudfront.UpdateDistributionOutput, error)
UpdateDistributionRequest(*cloudfront.UpdateDistributionInput) (*request.Request, *cloudfront.UpdateDistributionOutput)
UpdateFieldLevelEncryptionConfig(*cloudfront.UpdateFieldLevelEncryptionConfigInput) (*cloudfront.UpdateFieldLevelEncryptionConfigOutput, error)
UpdateFieldLevelEncryptionConfigWithContext(aws.Context, *cloudfront.UpdateFieldLevelEncryptionConfigInput, ...request.Option) (*cloudfront.UpdateFieldLevelEncryptionConfigOutput, error)
UpdateFieldLevelEncryptionConfigRequest(*cloudfront.UpdateFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.UpdateFieldLevelEncryptionConfigOutput)
UpdateFieldLevelEncryptionProfile(*cloudfront.UpdateFieldLevelEncryptionProfileInput) (*cloudfront.UpdateFieldLevelEncryptionProfileOutput, error)
UpdateFieldLevelEncryptionProfileWithContext(aws.Context, *cloudfront.UpdateFieldLevelEncryptionProfileInput, ...request.Option) (*cloudfront.UpdateFieldLevelEncryptionProfileOutput, error)
UpdateFieldLevelEncryptionProfileRequest(*cloudfront.UpdateFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.UpdateFieldLevelEncryptionProfileOutput)
UpdatePublicKey(*cloudfront.UpdatePublicKeyInput) (*cloudfront.UpdatePublicKeyOutput, error)
UpdatePublicKeyWithContext(aws.Context, *cloudfront.UpdatePublicKeyInput, ...request.Option) (*cloudfront.UpdatePublicKeyOutput, error)
UpdatePublicKeyRequest(*cloudfront.UpdatePublicKeyInput) (*request.Request, *cloudfront.UpdatePublicKeyOutput)
UpdateStreamingDistribution(*cloudfront.UpdateStreamingDistributionInput) (*cloudfront.UpdateStreamingDistributionOutput, error)
UpdateStreamingDistributionWithContext(aws.Context, *cloudfront.UpdateStreamingDistributionInput, ...request.Option) (*cloudfront.UpdateStreamingDistributionOutput, error)
UpdateStreamingDistributionRequest(*cloudfront.UpdateStreamingDistributionInput) (*request.Request, *cloudfront.UpdateStreamingDistributionOutput)
+5 -5
View File
@@ -4,18 +4,18 @@
// requests to Amazon CloudFront.
//
// This is the Amazon CloudFront API Reference. This guide is for developers
// who need detailed information about the CloudFront API actions, data types,
// and errors. For detailed information about CloudFront features and their
// associated API calls, see the Amazon CloudFront Developer Guide.
// who need detailed information about CloudFront API actions, data types, and
// errors. For detailed information about CloudFront features, see the Amazon
// CloudFront Developer Guide.
//
// See https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25 for more information on this service.
// See https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30 for more information on this service.
//
// See cloudfront package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudfront/
//
// Using the Client
//
// To Amazon CloudFront with the SDK use the New function to create
// To contact Amazon CloudFront 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.
//
+140 -2
View File
@@ -18,6 +18,12 @@ const (
// "CNAMEAlreadyExists".
ErrCodeCNAMEAlreadyExists = "CNAMEAlreadyExists"
// ErrCodeCannotChangeImmutablePublicKeyFields for service response error code
// "CannotChangeImmutablePublicKeyFields".
//
// You can't change the value of a public key.
ErrCodeCannotChangeImmutablePublicKeyFields = "CannotChangeImmutablePublicKeyFields"
// ErrCodeDistributionAlreadyExists for service response error code
// "DistributionAlreadyExists".
//
@@ -29,6 +35,43 @@ const (
// "DistributionNotDisabled".
ErrCodeDistributionNotDisabled = "DistributionNotDisabled"
// ErrCodeFieldLevelEncryptionConfigAlreadyExists for service response error code
// "FieldLevelEncryptionConfigAlreadyExists".
//
// The specified configuration for field-level encryption already exists.
ErrCodeFieldLevelEncryptionConfigAlreadyExists = "FieldLevelEncryptionConfigAlreadyExists"
// ErrCodeFieldLevelEncryptionConfigInUse for service response error code
// "FieldLevelEncryptionConfigInUse".
//
// The specified configuration for field-level encryption is in use.
ErrCodeFieldLevelEncryptionConfigInUse = "FieldLevelEncryptionConfigInUse"
// ErrCodeFieldLevelEncryptionProfileAlreadyExists for service response error code
// "FieldLevelEncryptionProfileAlreadyExists".
//
// The specified profile for field-level encryption already exists.
ErrCodeFieldLevelEncryptionProfileAlreadyExists = "FieldLevelEncryptionProfileAlreadyExists"
// ErrCodeFieldLevelEncryptionProfileInUse for service response error code
// "FieldLevelEncryptionProfileInUse".
//
// The specified profile for field-level encryption is in use.
ErrCodeFieldLevelEncryptionProfileInUse = "FieldLevelEncryptionProfileInUse"
// ErrCodeFieldLevelEncryptionProfileSizeExceeded for service response error code
// "FieldLevelEncryptionProfileSizeExceeded".
//
// The maximum size of a profile for field-level encryption was exceeded.
ErrCodeFieldLevelEncryptionProfileSizeExceeded = "FieldLevelEncryptionProfileSizeExceeded"
// ErrCodeIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior for service response error code
// "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior".
//
// The specified configuration for field-level encryption can't be associated
// with the specified cache behavior.
ErrCodeIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior = "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"
// ErrCodeIllegalUpdate for service response error code
// "IllegalUpdate".
//
@@ -38,7 +81,7 @@ const (
// ErrCodeInconsistentQuantities for service response error code
// "InconsistentQuantities".
//
// The value of Quantity and the size of Items do not match.
// The value of Quantity and the size of Items don't match.
ErrCodeInconsistentQuantities = "InconsistentQuantities"
// ErrCodeInvalidArgument for service response error code
@@ -180,6 +223,18 @@ const (
// The specified distribution does not exist.
ErrCodeNoSuchDistribution = "NoSuchDistribution"
// ErrCodeNoSuchFieldLevelEncryptionConfig for service response error code
// "NoSuchFieldLevelEncryptionConfig".
//
// The specified configuration for field-level encryption doesn't exist.
ErrCodeNoSuchFieldLevelEncryptionConfig = "NoSuchFieldLevelEncryptionConfig"
// ErrCodeNoSuchFieldLevelEncryptionProfile for service response error code
// "NoSuchFieldLevelEncryptionProfile".
//
// The specified profile for field-level encryption doesn't exist.
ErrCodeNoSuchFieldLevelEncryptionProfile = "NoSuchFieldLevelEncryptionProfile"
// ErrCodeNoSuchInvalidation for service response error code
// "NoSuchInvalidation".
//
@@ -192,6 +247,12 @@ const (
// No origin exists with the specified Origin Id.
ErrCodeNoSuchOrigin = "NoSuchOrigin"
// ErrCodeNoSuchPublicKey for service response error code
// "NoSuchPublicKey".
//
// The specified public key doesn't exist.
ErrCodeNoSuchPublicKey = "NoSuchPublicKey"
// ErrCodeNoSuchResource for service response error code
// "NoSuchResource".
ErrCodeNoSuchResource = "NoSuchResource"
@@ -222,6 +283,28 @@ const (
// to false.
ErrCodePreconditionFailed = "PreconditionFailed"
// ErrCodePublicKeyAlreadyExists for service response error code
// "PublicKeyAlreadyExists".
//
// The specified public key already exists.
ErrCodePublicKeyAlreadyExists = "PublicKeyAlreadyExists"
// ErrCodePublicKeyInUse for service response error code
// "PublicKeyInUse".
//
// The specified public key is in use.
ErrCodePublicKeyInUse = "PublicKeyInUse"
// ErrCodeQueryArgProfileEmpty for service response error code
// "QueryArgProfileEmpty".
//
// No profile specified for the field-level encryption query argument.
ErrCodeQueryArgProfileEmpty = "QueryArgProfileEmpty"
// ErrCodeResourceInUse for service response error code
// "ResourceInUse".
ErrCodeResourceInUse = "ResourceInUse"
// ErrCodeStreamingDistributionAlreadyExists for service response error code
// "StreamingDistributionAlreadyExists".
ErrCodeStreamingDistributionAlreadyExists = "StreamingDistributionAlreadyExists"
@@ -269,6 +352,13 @@ const (
// allowed.
ErrCodeTooManyDistributions = "TooManyDistributions"
// ErrCodeTooManyDistributionsAssociatedToFieldLevelEncryptionConfig for service response error code
// "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig".
//
// The maximum number of distributions have been associated with the specified
// configuration for field-level encryption.
ErrCodeTooManyDistributionsAssociatedToFieldLevelEncryptionConfig = "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"
// ErrCodeTooManyDistributionsWithLambdaAssociations for service response error code
// "TooManyDistributionsWithLambdaAssociations".
//
@@ -276,6 +366,47 @@ const (
// Lambda function associations per owner to be exceeded.
ErrCodeTooManyDistributionsWithLambdaAssociations = "TooManyDistributionsWithLambdaAssociations"
// ErrCodeTooManyFieldLevelEncryptionConfigs for service response error code
// "TooManyFieldLevelEncryptionConfigs".
//
// The maximum number of configurations for field-level encryption have been
// created.
ErrCodeTooManyFieldLevelEncryptionConfigs = "TooManyFieldLevelEncryptionConfigs"
// ErrCodeTooManyFieldLevelEncryptionContentTypeProfiles for service response error code
// "TooManyFieldLevelEncryptionContentTypeProfiles".
//
// The maximum number of content type profiles for field-level encryption have
// been created.
ErrCodeTooManyFieldLevelEncryptionContentTypeProfiles = "TooManyFieldLevelEncryptionContentTypeProfiles"
// ErrCodeTooManyFieldLevelEncryptionEncryptionEntities for service response error code
// "TooManyFieldLevelEncryptionEncryptionEntities".
//
// The maximum number of encryption entities for field-level encryption have
// been created.
ErrCodeTooManyFieldLevelEncryptionEncryptionEntities = "TooManyFieldLevelEncryptionEncryptionEntities"
// ErrCodeTooManyFieldLevelEncryptionFieldPatterns for service response error code
// "TooManyFieldLevelEncryptionFieldPatterns".
//
// The maximum number of field patterns for field-level encryption have been
// created.
ErrCodeTooManyFieldLevelEncryptionFieldPatterns = "TooManyFieldLevelEncryptionFieldPatterns"
// ErrCodeTooManyFieldLevelEncryptionProfiles for service response error code
// "TooManyFieldLevelEncryptionProfiles".
//
// The maximum number of profiles for field-level encryption have been created.
ErrCodeTooManyFieldLevelEncryptionProfiles = "TooManyFieldLevelEncryptionProfiles"
// ErrCodeTooManyFieldLevelEncryptionQueryArgProfiles for service response error code
// "TooManyFieldLevelEncryptionQueryArgProfiles".
//
// The maximum number of query arg profiles for field-level encryption have
// been created.
ErrCodeTooManyFieldLevelEncryptionQueryArgProfiles = "TooManyFieldLevelEncryptionQueryArgProfiles"
// ErrCodeTooManyHeadersInForwardedValues for service response error code
// "TooManyHeadersInForwardedValues".
ErrCodeTooManyHeadersInForwardedValues = "TooManyHeadersInForwardedValues"
@@ -304,6 +435,13 @@ const (
// You cannot create more origins for the distribution.
ErrCodeTooManyOrigins = "TooManyOrigins"
// ErrCodeTooManyPublicKeys for service response error code
// "TooManyPublicKeys".
//
// The maximum number of public keys for field-level encryption have been created.
// To create a new public key, delete one of the existing keys.
ErrCodeTooManyPublicKeys = "TooManyPublicKeys"
// ErrCodeTooManyQueryStringParameters for service response error code
// "TooManyQueryStringParameters".
ErrCodeTooManyQueryStringParameters = "TooManyQueryStringParameters"
@@ -328,6 +466,6 @@ const (
// ErrCodeTrustedSignerDoesNotExist for service response error code
// "TrustedSignerDoesNotExist".
//
// One or more of your trusted signers do not exist.
// One or more of your trusted signers don't exist.
ErrCodeTrustedSignerDoesNotExist = "TrustedSignerDoesNotExist"
)
+1 -1
View File
@@ -58,7 +58,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2017-03-25",
APIVersion: "2017-10-30",
},
handlers,
),
+60 -22
View File
@@ -4,8 +4,6 @@ import (
"crypto/rsa"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func TestNewCookieSigner(t *testing.T) {
@@ -15,26 +13,42 @@ func TestNewCookieSigner(t *testing.T) {
}
signer := NewCookieSigner("keyID", privKey)
assert.Equal(t, "keyID", signer.keyID)
assert.Equal(t, privKey, signer.privKey)
if e, a := "keyID", signer.keyID; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := privKey, signer.privKey; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestSignCookie(t *testing.T) {
privKey, err := rsa.GenerateKey(randReader, 1024)
assert.NoError(t, err)
if err != nil {
t.Errorf("expect no error, got %v", err)
}
signer := NewCookieSigner("keyID", privKey)
cookies, err := signer.Sign("http*://*", time.Now().Add(1*time.Hour))
assert.NoError(t, err)
assert.Equal(t, CookiePolicyName, cookies[0].Name)
assert.Equal(t, CookieSignatureName, cookies[1].Name)
assert.Equal(t, CookieKeyIDName, cookies[2].Name)
if err != nil {
t.Errorf("expect no error, got %v", err)
}
if e, a := CookiePolicyName, cookies[0].Name; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := CookieSignatureName, cookies[1].Name; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := CookieKeyIDName, cookies[2].Name; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestSignCookie_WithPolicy(t *testing.T) {
privKey, err := rsa.GenerateKey(randReader, 1024)
assert.NoError(t, err)
if err != nil {
t.Errorf("expect no error, got %v", err)
}
p := &Policy{
Statements: []Statement{
@@ -50,15 +64,25 @@ func TestSignCookie_WithPolicy(t *testing.T) {
signer := NewCookieSigner("keyID", privKey)
cookies, err := signer.SignWithPolicy(p)
assert.NoError(t, err)
assert.Equal(t, CookiePolicyName, cookies[0].Name)
assert.Equal(t, CookieSignatureName, cookies[1].Name)
assert.Equal(t, CookieKeyIDName, cookies[2].Name)
if err != nil {
t.Errorf("expect no error, got %v", err)
}
if e, a := CookiePolicyName, cookies[0].Name; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := CookieSignatureName, cookies[1].Name; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := CookieKeyIDName, cookies[2].Name; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestSignCookie_WithCookieOptions(t *testing.T) {
privKey, err := rsa.GenerateKey(randReader, 1024)
assert.NoError(t, err)
if err != nil {
t.Errorf("expect no error, got %v", err)
}
expires := time.Now().Add(1 * time.Hour)
@@ -70,14 +94,28 @@ func TestSignCookie_WithCookieOptions(t *testing.T) {
})
assert.NoError(t, err)
assert.Equal(t, CookiePolicyName, cookies[0].Name)
assert.Equal(t, CookieSignatureName, cookies[1].Name)
assert.Equal(t, CookieKeyIDName, cookies[2].Name)
if err != nil {
t.Errorf("expect no error, got %v", err)
}
if e, a := CookiePolicyName, cookies[0].Name; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := CookieSignatureName, cookies[1].Name; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := CookieKeyIDName, cookies[2].Name; e != a {
t.Errorf("expect %v, got %v", e, a)
}
for _, c := range cookies {
assert.Equal(t, "/", c.Path)
assert.Equal(t, ".example.com", c.Domain)
assert.True(t, c.Secure)
if e, a := "/", c.Path; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := ".example.com", c.Domain; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if !c.Secure {
t.Errorf("expect to be true")
}
}
}
File diff suppressed because it is too large Load Diff
+9 -2
View File
@@ -3,7 +3,14 @@
// Package cloudhsm provides the client and types for making API
// requests to Amazon CloudHSM.
//
// AWS CloudHSM Service
// This is documentation for AWS CloudHSM Classic. For more information, see
// AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
// the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
// and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
//
// For information about the current version of AWS CloudHSM, see AWS CloudHSM
// (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
// and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
//
// See https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30 for more information on this service.
//
@@ -12,7 +19,7 @@
//
// Using the Client
//
// To Amazon CloudHSM with the SDK use the New function to create
// To contact Amazon CloudHSM 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.
//
+33 -57
View File
@@ -15,7 +15,7 @@ const opCreateCluster = "CreateCluster"
// CreateClusterRequest generates a "aws/request.Request" representing the
// client's request for the CreateCluster operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -36,7 +36,7 @@ const opCreateCluster = "CreateCluster"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateCluster
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateCluster
func (c *CloudHSMV2) CreateClusterRequest(input *CreateClusterInput) (req *request.Request, output *CreateClusterOutput) {
op := &request.Operation{
Name: opCreateCluster,
@@ -82,7 +82,7 @@ func (c *CloudHSMV2) CreateClusterRequest(input *CreateClusterInput) (req *reque
// The request was rejected because the requester does not have permission to
// perform the requested operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateCluster
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateCluster
func (c *CloudHSMV2) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) {
req, out := c.CreateClusterRequest(input)
return out, req.Send()
@@ -108,7 +108,7 @@ const opCreateHsm = "CreateHsm"
// CreateHsmRequest generates a "aws/request.Request" representing the
// client's request for the CreateHsm operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -129,7 +129,7 @@ const opCreateHsm = "CreateHsm"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateHsm
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateHsm
func (c *CloudHSMV2) CreateHsmRequest(input *CreateHsmInput) (req *request.Request, output *CreateHsmOutput) {
op := &request.Operation{
Name: opCreateHsm,
@@ -176,7 +176,7 @@ func (c *CloudHSMV2) CreateHsmRequest(input *CreateHsmInput) (req *request.Reque
// The request was rejected because the requester does not have permission to
// perform the requested operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateHsm
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateHsm
func (c *CloudHSMV2) CreateHsm(input *CreateHsmInput) (*CreateHsmOutput, error) {
req, out := c.CreateHsmRequest(input)
return out, req.Send()
@@ -202,7 +202,7 @@ const opDeleteCluster = "DeleteCluster"
// DeleteClusterRequest generates a "aws/request.Request" representing the
// client's request for the DeleteCluster operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -223,7 +223,7 @@ const opDeleteCluster = "DeleteCluster"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteCluster
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteCluster
func (c *CloudHSMV2) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Request, output *DeleteClusterOutput) {
op := &request.Operation{
Name: opDeleteCluster,
@@ -271,7 +271,7 @@ func (c *CloudHSMV2) DeleteClusterRequest(input *DeleteClusterInput) (req *reque
// The request was rejected because the requester does not have permission to
// perform the requested operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteCluster
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteCluster
func (c *CloudHSMV2) DeleteCluster(input *DeleteClusterInput) (*DeleteClusterOutput, error) {
req, out := c.DeleteClusterRequest(input)
return out, req.Send()
@@ -297,7 +297,7 @@ const opDeleteHsm = "DeleteHsm"
// DeleteHsmRequest generates a "aws/request.Request" representing the
// client's request for the DeleteHsm operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -318,7 +318,7 @@ const opDeleteHsm = "DeleteHsm"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteHsm
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteHsm
func (c *CloudHSMV2) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Request, output *DeleteHsmOutput) {
op := &request.Operation{
Name: opDeleteHsm,
@@ -367,7 +367,7 @@ func (c *CloudHSMV2) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Reque
// The request was rejected because the requester does not have permission to
// perform the requested operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteHsm
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteHsm
func (c *CloudHSMV2) DeleteHsm(input *DeleteHsmInput) (*DeleteHsmOutput, error) {
req, out := c.DeleteHsmRequest(input)
return out, req.Send()
@@ -393,7 +393,7 @@ const opDescribeBackups = "DescribeBackups"
// DescribeBackupsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeBackups operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -414,7 +414,7 @@ const opDescribeBackups = "DescribeBackups"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackups
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackups
func (c *CloudHSMV2) DescribeBackupsRequest(input *DescribeBackupsInput) (req *request.Request, output *DescribeBackupsOutput) {
op := &request.Operation{
Name: opDescribeBackups,
@@ -473,7 +473,7 @@ func (c *CloudHSMV2) DescribeBackupsRequest(input *DescribeBackupsInput) (req *r
// The request was rejected because the requester does not have permission to
// perform the requested operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackups
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackups
func (c *CloudHSMV2) DescribeBackups(input *DescribeBackupsInput) (*DescribeBackupsOutput, error) {
req, out := c.DescribeBackupsRequest(input)
return out, req.Send()
@@ -549,7 +549,7 @@ const opDescribeClusters = "DescribeClusters"
// DescribeClustersRequest generates a "aws/request.Request" representing the
// client's request for the DescribeClusters operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -570,7 +570,7 @@ const opDescribeClusters = "DescribeClusters"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeClusters
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeClusters
func (c *CloudHSMV2) DescribeClustersRequest(input *DescribeClustersInput) (req *request.Request, output *DescribeClustersOutput) {
op := &request.Operation{
Name: opDescribeClusters,
@@ -626,7 +626,7 @@ func (c *CloudHSMV2) DescribeClustersRequest(input *DescribeClustersInput) (req
// The request was rejected because the requester does not have permission to
// perform the requested operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeClusters
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeClusters
func (c *CloudHSMV2) DescribeClusters(input *DescribeClustersInput) (*DescribeClustersOutput, error) {
req, out := c.DescribeClustersRequest(input)
return out, req.Send()
@@ -702,7 +702,7 @@ const opInitializeCluster = "InitializeCluster"
// InitializeClusterRequest generates a "aws/request.Request" representing the
// client's request for the InitializeCluster operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -723,7 +723,7 @@ const opInitializeCluster = "InitializeCluster"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/InitializeCluster
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/InitializeCluster
func (c *CloudHSMV2) InitializeClusterRequest(input *InitializeClusterInput) (req *request.Request, output *InitializeClusterOutput) {
op := &request.Operation{
Name: opInitializeCluster,
@@ -772,7 +772,7 @@ func (c *CloudHSMV2) InitializeClusterRequest(input *InitializeClusterInput) (re
// The request was rejected because the requester does not have permission to
// perform the requested operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/InitializeCluster
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/InitializeCluster
func (c *CloudHSMV2) InitializeCluster(input *InitializeClusterInput) (*InitializeClusterOutput, error) {
req, out := c.InitializeClusterRequest(input)
return out, req.Send()
@@ -798,7 +798,7 @@ const opListTags = "ListTags"
// ListTagsRequest generates a "aws/request.Request" representing the
// client's request for the ListTags operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -819,7 +819,7 @@ const opListTags = "ListTags"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ListTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ListTags
func (c *CloudHSMV2) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) {
op := &request.Operation{
Name: opListTags,
@@ -877,7 +877,7 @@ func (c *CloudHSMV2) ListTagsRequest(input *ListTagsInput) (req *request.Request
// The request was rejected because the requester does not have permission to
// perform the requested operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ListTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ListTags
func (c *CloudHSMV2) ListTags(input *ListTagsInput) (*ListTagsOutput, error) {
req, out := c.ListTagsRequest(input)
return out, req.Send()
@@ -953,7 +953,7 @@ const opTagResource = "TagResource"
// TagResourceRequest generates a "aws/request.Request" representing the
// client's request for the TagResource operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -974,7 +974,7 @@ const opTagResource = "TagResource"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/TagResource
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/TagResource
func (c *CloudHSMV2) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
op := &request.Operation{
Name: opTagResource,
@@ -1020,7 +1020,7 @@ func (c *CloudHSMV2) TagResourceRequest(input *TagResourceInput) (req *request.R
// The request was rejected because the requester does not have permission to
// perform the requested operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/TagResource
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/TagResource
func (c *CloudHSMV2) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
return out, req.Send()
@@ -1046,7 +1046,7 @@ const opUntagResource = "UntagResource"
// UntagResourceRequest generates a "aws/request.Request" representing the
// client's request for the UntagResource operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1067,7 +1067,7 @@ const opUntagResource = "UntagResource"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/UntagResource
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/UntagResource
func (c *CloudHSMV2) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
op := &request.Operation{
Name: opUntagResource,
@@ -1113,7 +1113,7 @@ func (c *CloudHSMV2) UntagResourceRequest(input *UntagResourceInput) (req *reque
// The request was rejected because the requester does not have permission to
// perform the requested operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/UntagResource
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/UntagResource
func (c *CloudHSMV2) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
return out, req.Send()
@@ -1136,7 +1136,6 @@ func (c *CloudHSMV2) UntagResourceWithContext(ctx aws.Context, input *UntagResou
}
// Contains information about a backup of an AWS CloudHSM cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Backup
type Backup struct {
_ struct{} `type:"structure"`
@@ -1190,7 +1189,6 @@ func (s *Backup) SetCreateTimestamp(v time.Time) *Backup {
}
// Contains one or more certificates or a certificate signing request (CSR).
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Certificates
type Certificates struct {
_ struct{} `type:"structure"`
@@ -1253,7 +1251,6 @@ func (s *Certificates) SetManufacturerHardwareCertificate(v string) *Certificate
}
// Contains information about an AWS CloudHSM cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Cluster
type Cluster struct {
_ struct{} `type:"structure"`
@@ -1387,7 +1384,6 @@ func (s *Cluster) SetVpcId(v string) *Cluster {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateClusterRequest
type CreateClusterInput struct {
_ struct{} `type:"structure"`
@@ -1461,7 +1457,6 @@ func (s *CreateClusterInput) SetSubnetIds(v []*string) *CreateClusterInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateClusterResponse
type CreateClusterOutput struct {
_ struct{} `type:"structure"`
@@ -1485,7 +1480,6 @@ func (s *CreateClusterOutput) SetCluster(v *Cluster) *CreateClusterOutput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateHsmRequest
type CreateHsmInput struct {
_ struct{} `type:"structure"`
@@ -1551,7 +1545,6 @@ func (s *CreateHsmInput) SetIpAddress(v string) *CreateHsmInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateHsmResponse
type CreateHsmOutput struct {
_ struct{} `type:"structure"`
@@ -1575,7 +1568,6 @@ func (s *CreateHsmOutput) SetHsm(v *Hsm) *CreateHsmOutput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteClusterRequest
type DeleteClusterInput struct {
_ struct{} `type:"structure"`
@@ -1615,7 +1607,6 @@ func (s *DeleteClusterInput) SetClusterId(v string) *DeleteClusterInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteClusterResponse
type DeleteClusterOutput struct {
_ struct{} `type:"structure"`
@@ -1639,7 +1630,6 @@ func (s *DeleteClusterOutput) SetCluster(v *Cluster) *DeleteClusterOutput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteHsmRequest
type DeleteHsmInput struct {
_ struct{} `type:"structure"`
@@ -1707,7 +1697,6 @@ func (s *DeleteHsmInput) SetHsmId(v string) *DeleteHsmInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteHsmResponse
type DeleteHsmOutput struct {
_ struct{} `type:"structure"`
@@ -1731,7 +1720,6 @@ func (s *DeleteHsmOutput) SetHsmId(v string) *DeleteHsmOutput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackupsRequest
type DescribeBackupsInput struct {
_ struct{} `type:"structure"`
@@ -1796,7 +1784,6 @@ func (s *DescribeBackupsInput) SetNextToken(v string) *DescribeBackupsInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackupsResponse
type DescribeBackupsOutput struct {
_ struct{} `type:"structure"`
@@ -1831,7 +1818,6 @@ func (s *DescribeBackupsOutput) SetNextToken(v string) *DescribeBackupsOutput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeClustersRequest
type DescribeClustersInput struct {
_ struct{} `type:"structure"`
@@ -1897,7 +1883,6 @@ func (s *DescribeClustersInput) SetNextToken(v string) *DescribeClustersInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeClustersResponse
type DescribeClustersOutput struct {
_ struct{} `type:"structure"`
@@ -1934,7 +1919,6 @@ func (s *DescribeClustersOutput) SetNextToken(v string) *DescribeClustersOutput
// Contains information about a hardware security module (HSM) in an AWS CloudHSM
// cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Hsm
type Hsm struct {
_ struct{} `type:"structure"`
@@ -2023,7 +2007,6 @@ func (s *Hsm) SetSubnetId(v string) *Hsm {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/InitializeClusterRequest
type InitializeClusterInput struct {
_ struct{} `type:"structure"`
@@ -2034,7 +2017,8 @@ type InitializeClusterInput struct {
ClusterId *string `type:"string" required:"true"`
// The cluster certificate issued (signed) by your issuing certificate authority
// (CA). The certificate must be in PEM format.
// (CA). The certificate must be in PEM format and can contain a maximum of
// 5000 characters.
//
// SignedCert is a required field
SignedCert *string `type:"string" required:"true"`
@@ -2043,7 +2027,7 @@ type InitializeClusterInput struct {
// (signed) the cluster certificate. This can be a root (self-signed) certificate
// or a certificate chain that begins with the certificate that issued the cluster
// certificate and ends with a root certificate. The certificate or certificate
// chain must be in PEM format.
// chain must be in PEM format and can contain a maximum of 5000 characters.
//
// TrustAnchor is a required field
TrustAnchor *string `type:"string" required:"true"`
@@ -2096,7 +2080,6 @@ func (s *InitializeClusterInput) SetTrustAnchor(v string) *InitializeClusterInpu
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/InitializeClusterResponse
type InitializeClusterOutput struct {
_ struct{} `type:"structure"`
@@ -2129,7 +2112,6 @@ func (s *InitializeClusterOutput) SetStateMessage(v string) *InitializeClusterOu
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ListTagsRequest
type ListTagsInput struct {
_ struct{} `type:"structure"`
@@ -2192,7 +2174,6 @@ func (s *ListTagsInput) SetResourceId(v string) *ListTagsInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ListTagsResponse
type ListTagsOutput struct {
_ struct{} `type:"structure"`
@@ -2229,7 +2210,6 @@ func (s *ListTagsOutput) SetTagList(v []*Tag) *ListTagsOutput {
}
// Contains a tag. A tag is a key-value pair.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Tag
type Tag struct {
_ struct{} `type:"structure"`
@@ -2285,7 +2265,6 @@ func (s *Tag) SetValue(v string) *Tag {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/TagResourceRequest
type TagResourceInput struct {
_ struct{} `type:"structure"`
@@ -2352,7 +2331,6 @@ func (s *TagResourceInput) SetTagList(v []*Tag) *TagResourceInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/TagResourceResponse
type TagResourceOutput struct {
_ struct{} `type:"structure"`
}
@@ -2367,7 +2345,6 @@ func (s TagResourceOutput) GoString() string {
return s.String()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/UntagResourceRequest
type UntagResourceInput struct {
_ struct{} `type:"structure"`
@@ -2425,7 +2402,6 @@ func (s *UntagResourceInput) SetTagKeyList(v []*string) *UntagResourceInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/UntagResourceResponse
type UntagResourceOutput struct {
_ struct{} `type:"structure"`
}
+1 -1
View File
@@ -13,7 +13,7 @@
//
// Using the Client
//
// To AWS CloudHSM V2 with the SDK use the New function to create
// To contact AWS CloudHSM V2 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.
//
+3 -3
View File
@@ -45,14 +45,14 @@ const (
// svc := cloudhsmv2.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudHSMV2 {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "cloudhsm"
}
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudHSMV2 {
if len(signingName) == 0 {
signingName = "cloudhsm"
}
svc := &CloudHSMV2{
Client: client.New(
cfg,
+24 -24
View File
@@ -14,7 +14,7 @@ const opBuildSuggesters = "BuildSuggesters"
// BuildSuggestersRequest generates a "aws/request.Request" representing the
// client's request for the BuildSuggesters operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -100,7 +100,7 @@ const opCreateDomain = "CreateDomain"
// CreateDomainRequest generates a "aws/request.Request" representing the
// client's request for the CreateDomain operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -185,7 +185,7 @@ const opDefineAnalysisScheme = "DefineAnalysisScheme"
// DefineAnalysisSchemeRequest generates a "aws/request.Request" representing the
// client's request for the DefineAnalysisScheme operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -278,7 +278,7 @@ const opDefineExpression = "DefineExpression"
// DefineExpressionRequest generates a "aws/request.Request" representing the
// client's request for the DefineExpression operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -371,7 +371,7 @@ const opDefineIndexField = "DefineIndexField"
// DefineIndexFieldRequest generates a "aws/request.Request" representing the
// client's request for the DefineIndexField operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -468,7 +468,7 @@ const opDefineSuggester = "DefineSuggester"
// DefineSuggesterRequest generates a "aws/request.Request" representing the
// client's request for the DefineSuggester operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -563,7 +563,7 @@ const opDeleteAnalysisScheme = "DeleteAnalysisScheme"
// DeleteAnalysisSchemeRequest generates a "aws/request.Request" representing the
// client's request for the DeleteAnalysisScheme operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -652,7 +652,7 @@ const opDeleteDomain = "DeleteDomain"
// DeleteDomainRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDomain operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -735,7 +735,7 @@ const opDeleteExpression = "DeleteExpression"
// DeleteExpressionRequest generates a "aws/request.Request" representing the
// client's request for the DeleteExpression operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -824,7 +824,7 @@ const opDeleteIndexField = "DeleteIndexField"
// DeleteIndexFieldRequest generates a "aws/request.Request" representing the
// client's request for the DeleteIndexField operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -913,7 +913,7 @@ const opDeleteSuggester = "DeleteSuggester"
// DeleteSuggesterRequest generates a "aws/request.Request" representing the
// client's request for the DeleteSuggester operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1002,7 +1002,7 @@ const opDescribeAnalysisSchemes = "DescribeAnalysisSchemes"
// DescribeAnalysisSchemesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeAnalysisSchemes operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1092,7 +1092,7 @@ const opDescribeAvailabilityOptions = "DescribeAvailabilityOptions"
// DescribeAvailabilityOptionsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeAvailabilityOptions operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1189,7 +1189,7 @@ const opDescribeDomains = "DescribeDomains"
// DescribeDomainsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeDomains operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1274,7 +1274,7 @@ const opDescribeExpressions = "DescribeExpressions"
// DescribeExpressionsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeExpressions operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1363,7 +1363,7 @@ const opDescribeIndexFields = "DescribeIndexFields"
// DescribeIndexFieldsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeIndexFields operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1452,7 +1452,7 @@ const opDescribeScalingParameters = "DescribeScalingParameters"
// DescribeScalingParametersRequest generates a "aws/request.Request" representing the
// client's request for the DescribeScalingParameters operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1539,7 +1539,7 @@ const opDescribeServiceAccessPolicies = "DescribeServiceAccessPolicies"
// DescribeServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeServiceAccessPolicies operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1628,7 +1628,7 @@ const opDescribeSuggesters = "DescribeSuggesters"
// DescribeSuggestersRequest generates a "aws/request.Request" representing the
// client's request for the DescribeSuggesters operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1718,7 +1718,7 @@ const opIndexDocuments = "IndexDocuments"
// IndexDocumentsRequest generates a "aws/request.Request" representing the
// client's request for the IndexDocuments operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1804,7 +1804,7 @@ const opListDomainNames = "ListDomainNames"
// ListDomainNamesRequest generates a "aws/request.Request" representing the
// client's request for the ListDomainNames operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1880,7 +1880,7 @@ const opUpdateAvailabilityOptions = "UpdateAvailabilityOptions"
// UpdateAvailabilityOptionsRequest generates a "aws/request.Request" representing the
// client's request for the UpdateAvailabilityOptions operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1978,7 +1978,7 @@ const opUpdateScalingParameters = "UpdateScalingParameters"
// UpdateScalingParametersRequest generates a "aws/request.Request" representing the
// client's request for the UpdateScalingParameters operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -2075,7 +2075,7 @@ const opUpdateServiceAccessPolicies = "UpdateServiceAccessPolicies"
// UpdateServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
// client's request for the UpdateServiceAccessPolicies operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
+1 -1
View File
@@ -17,7 +17,7 @@
//
// Using the Client
//
// To Amazon CloudSearch with the SDK use the New function to create
// To contact Amazon CloudSearch 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.
//
+3 -3
View File
@@ -14,7 +14,7 @@ const opSearch = "Search"
// SearchRequest generates a "aws/request.Request" representing the
// client's request for the Search operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -110,7 +110,7 @@ const opSuggest = "Suggest"
// SuggestRequest generates a "aws/request.Request" representing the
// client's request for the Suggest operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -202,7 +202,7 @@ const opUploadDocuments = "UploadDocuments"
// UploadDocumentsRequest generates a "aws/request.Request" representing the
// client's request for the UploadDocuments operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -3,8 +3,6 @@ package cloudsearchdomain_test
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/awstesting/unit"
"github.com/aws/aws-sdk-go/service/cloudsearchdomain"
@@ -18,9 +16,15 @@ func TestRequireEndpointIfRegionProvided(t *testing.T) {
req, _ := svc.SearchRequest(nil)
err := req.Build()
assert.Equal(t, "", svc.Endpoint)
assert.Error(t, err)
assert.Equal(t, aws.ErrMissingEndpoint, err)
if e, a := "", svc.Endpoint; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if err == nil {
t.Errorf("expect error, got none")
}
if e, a := aws.ErrMissingEndpoint, err; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestRequireEndpointIfNoRegionProvided(t *testing.T) {
@@ -30,9 +34,15 @@ func TestRequireEndpointIfNoRegionProvided(t *testing.T) {
req, _ := svc.SearchRequest(nil)
err := req.Build()
assert.Equal(t, "", svc.Endpoint)
assert.Error(t, err)
assert.Equal(t, aws.ErrMissingEndpoint, err)
if e, a := "", svc.Endpoint; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if err == nil {
t.Errorf("expect error, got none")
}
if e, a := aws.ErrMissingEndpoint, err; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestRequireEndpointUsed(t *testing.T) {
@@ -44,6 +54,10 @@ func TestRequireEndpointUsed(t *testing.T) {
req, _ := svc.SearchRequest(nil)
err := req.Build()
assert.Equal(t, "https://endpoint", svc.Endpoint)
assert.NoError(t, err)
if e, a := "https://endpoint", svc.Endpoint; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if err != nil {
t.Errorf("expect no error, got %v", err)
}
}
+1 -1
View File
@@ -19,7 +19,7 @@
//
// Using the Client
//
// To Amazon CloudSearch Domain with the SDK use the New function to create
// To contact Amazon CloudSearch Domain 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.
//
+3 -3
View File
@@ -50,14 +50,14 @@ func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudSearchDomain {
} else {
c = p.ClientConfig(EndpointsID, cfgs...)
}
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "cloudsearch"
}
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *CloudSearchDomain {
if len(signingName) == 0 {
signingName = "cloudsearch"
}
svc := &CloudSearchDomain{
Client: client.New(
cfg,
+42 -79
View File
@@ -15,7 +15,7 @@ const opAddTags = "AddTags"
// AddTagsRequest generates a "aws/request.Request" representing the
// client's request for the AddTags operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -36,7 +36,7 @@ const opAddTags = "AddTags"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTags
func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
op := &request.Operation{
Name: opAddTags,
@@ -113,7 +113,7 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request,
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This exception is thrown when the requested operation is not permitted.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTags
func (c *CloudTrail) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
req, out := c.AddTagsRequest(input)
return out, req.Send()
@@ -139,7 +139,7 @@ const opCreateTrail = "CreateTrail"
// CreateTrailRequest generates a "aws/request.Request" representing the
// client's request for the CreateTrail operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -160,7 +160,7 @@ const opCreateTrail = "CreateTrail"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrail
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrail
func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.Request, output *CreateTrailOutput) {
op := &request.Operation{
Name: opCreateTrail,
@@ -271,7 +271,7 @@ func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.R
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This exception is thrown when the requested operation is not permitted.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrail
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrail
func (c *CloudTrail) CreateTrail(input *CreateTrailInput) (*CreateTrailOutput, error) {
req, out := c.CreateTrailRequest(input)
return out, req.Send()
@@ -297,7 +297,7 @@ const opDeleteTrail = "DeleteTrail"
// DeleteTrailRequest generates a "aws/request.Request" representing the
// client's request for the DeleteTrail operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -318,7 +318,7 @@ const opDeleteTrail = "DeleteTrail"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrail
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrail
func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.Request, output *DeleteTrailOutput) {
op := &request.Operation{
Name: opDeleteTrail,
@@ -372,7 +372,7 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R
// This exception is thrown when an operation is called on a trail from a region
// other than the region in which the trail was created.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrail
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrail
func (c *CloudTrail) DeleteTrail(input *DeleteTrailInput) (*DeleteTrailOutput, error) {
req, out := c.DeleteTrailRequest(input)
return out, req.Send()
@@ -398,7 +398,7 @@ const opDescribeTrails = "DescribeTrails"
// DescribeTrailsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeTrails operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -419,7 +419,7 @@ const opDescribeTrails = "DescribeTrails"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrails
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrails
func (c *CloudTrail) DescribeTrailsRequest(input *DescribeTrailsInput) (req *request.Request, output *DescribeTrailsOutput) {
op := &request.Operation{
Name: opDescribeTrails,
@@ -455,7 +455,7 @@ func (c *CloudTrail) DescribeTrailsRequest(input *DescribeTrailsInput) (req *req
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This exception is thrown when the requested operation is not permitted.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrails
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrails
func (c *CloudTrail) DescribeTrails(input *DescribeTrailsInput) (*DescribeTrailsOutput, error) {
req, out := c.DescribeTrailsRequest(input)
return out, req.Send()
@@ -481,7 +481,7 @@ const opGetEventSelectors = "GetEventSelectors"
// GetEventSelectorsRequest generates a "aws/request.Request" representing the
// client's request for the GetEventSelectors operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -502,7 +502,7 @@ const opGetEventSelectors = "GetEventSelectors"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectors
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectors
func (c *CloudTrail) GetEventSelectorsRequest(input *GetEventSelectorsInput) (req *request.Request, output *GetEventSelectorsOutput) {
op := &request.Operation{
Name: opGetEventSelectors,
@@ -568,7 +568,7 @@ func (c *CloudTrail) GetEventSelectorsRequest(input *GetEventSelectorsInput) (re
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This exception is thrown when the requested operation is not permitted.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectors
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectors
func (c *CloudTrail) GetEventSelectors(input *GetEventSelectorsInput) (*GetEventSelectorsOutput, error) {
req, out := c.GetEventSelectorsRequest(input)
return out, req.Send()
@@ -594,7 +594,7 @@ const opGetTrailStatus = "GetTrailStatus"
// GetTrailStatusRequest generates a "aws/request.Request" representing the
// client's request for the GetTrailStatus operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -615,7 +615,7 @@ const opGetTrailStatus = "GetTrailStatus"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatus
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatus
func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *request.Request, output *GetTrailStatusOutput) {
op := &request.Operation{
Name: opGetTrailStatus,
@@ -667,7 +667,7 @@ func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *req
//
// * Not be in IP address format (for example, 192.168.5.4)
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatus
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatus
func (c *CloudTrail) GetTrailStatus(input *GetTrailStatusInput) (*GetTrailStatusOutput, error) {
req, out := c.GetTrailStatusRequest(input)
return out, req.Send()
@@ -693,7 +693,7 @@ const opListPublicKeys = "ListPublicKeys"
// ListPublicKeysRequest generates a "aws/request.Request" representing the
// client's request for the ListPublicKeys operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -714,7 +714,7 @@ const opListPublicKeys = "ListPublicKeys"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeys
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeys
func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *request.Request, output *ListPublicKeysOutput) {
op := &request.Operation{
Name: opListPublicKeys,
@@ -763,7 +763,7 @@ func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *req
// * ErrCodeInvalidTokenException "InvalidTokenException"
// Reserved for future use.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeys
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeys
func (c *CloudTrail) ListPublicKeys(input *ListPublicKeysInput) (*ListPublicKeysOutput, error) {
req, out := c.ListPublicKeysRequest(input)
return out, req.Send()
@@ -789,7 +789,7 @@ const opListTags = "ListTags"
// ListTagsRequest generates a "aws/request.Request" representing the
// client's request for the ListTags operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -810,7 +810,7 @@ const opListTags = "ListTags"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTags
func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) {
op := &request.Operation{
Name: opListTags,
@@ -877,7 +877,7 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request
// * ErrCodeInvalidTokenException "InvalidTokenException"
// Reserved for future use.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTags
func (c *CloudTrail) ListTags(input *ListTagsInput) (*ListTagsOutput, error) {
req, out := c.ListTagsRequest(input)
return out, req.Send()
@@ -903,7 +903,7 @@ const opLookupEvents = "LookupEvents"
// LookupEventsRequest generates a "aws/request.Request" representing the
// client's request for the LookupEvents operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -924,7 +924,7 @@ const opLookupEvents = "LookupEvents"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEvents
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEvents
func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request.Request, output *LookupEventsOutput) {
op := &request.Operation{
Name: opLookupEvents,
@@ -998,7 +998,7 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request
// Invalid token or token that was previously used in a request with different
// parameters. This exception is thrown if the token is invalid.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEvents
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEvents
func (c *CloudTrail) LookupEvents(input *LookupEventsInput) (*LookupEventsOutput, error) {
req, out := c.LookupEventsRequest(input)
return out, req.Send()
@@ -1074,7 +1074,7 @@ const opPutEventSelectors = "PutEventSelectors"
// PutEventSelectorsRequest generates a "aws/request.Request" representing the
// client's request for the PutEventSelectors operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1095,7 +1095,7 @@ const opPutEventSelectors = "PutEventSelectors"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectors
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectors
func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (req *request.Request, output *PutEventSelectorsOutput) {
op := &request.Operation{
Name: opPutEventSelectors,
@@ -1192,7 +1192,7 @@ func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (re
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This exception is thrown when the requested operation is not permitted.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectors
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectors
func (c *CloudTrail) PutEventSelectors(input *PutEventSelectorsInput) (*PutEventSelectorsOutput, error) {
req, out := c.PutEventSelectorsRequest(input)
return out, req.Send()
@@ -1218,7 +1218,7 @@ const opRemoveTags = "RemoveTags"
// RemoveTagsRequest generates a "aws/request.Request" representing the
// client's request for the RemoveTags operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1239,7 +1239,7 @@ const opRemoveTags = "RemoveTags"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTags
func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
op := &request.Operation{
Name: opRemoveTags,
@@ -1307,7 +1307,7 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This exception is thrown when the requested operation is not permitted.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTags
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTags
func (c *CloudTrail) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
req, out := c.RemoveTagsRequest(input)
return out, req.Send()
@@ -1333,7 +1333,7 @@ const opStartLogging = "StartLogging"
// StartLoggingRequest generates a "aws/request.Request" representing the
// client's request for the StartLogging operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1354,7 +1354,7 @@ const opStartLogging = "StartLogging"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLogging
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLogging
func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request.Request, output *StartLoggingOutput) {
op := &request.Operation{
Name: opStartLogging,
@@ -1410,7 +1410,7 @@ func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request
// This exception is thrown when an operation is called on a trail from a region
// other than the region in which the trail was created.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLogging
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLogging
func (c *CloudTrail) StartLogging(input *StartLoggingInput) (*StartLoggingOutput, error) {
req, out := c.StartLoggingRequest(input)
return out, req.Send()
@@ -1436,7 +1436,7 @@ const opStopLogging = "StopLogging"
// StopLoggingRequest generates a "aws/request.Request" representing the
// client's request for the StopLogging operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1457,7 +1457,7 @@ const opStopLogging = "StopLogging"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLogging
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLogging
func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.Request, output *StopLoggingOutput) {
op := &request.Operation{
Name: opStopLogging,
@@ -1515,7 +1515,7 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R
// This exception is thrown when an operation is called on a trail from a region
// other than the region in which the trail was created.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLogging
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLogging
func (c *CloudTrail) StopLogging(input *StopLoggingInput) (*StopLoggingOutput, error) {
req, out := c.StopLoggingRequest(input)
return out, req.Send()
@@ -1541,7 +1541,7 @@ const opUpdateTrail = "UpdateTrail"
// UpdateTrailRequest generates a "aws/request.Request" representing the
// client's request for the UpdateTrail operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1562,7 +1562,7 @@ const opUpdateTrail = "UpdateTrail"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrail
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrail
func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.Request, output *UpdateTrailOutput) {
op := &request.Operation{
Name: opUpdateTrail,
@@ -1677,7 +1677,7 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R
// * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
// This exception is thrown when the requested operation is not permitted.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrail
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrail
func (c *CloudTrail) UpdateTrail(input *UpdateTrailInput) (*UpdateTrailOutput, error) {
req, out := c.UpdateTrailRequest(input)
return out, req.Send()
@@ -1700,7 +1700,6 @@ func (c *CloudTrail) UpdateTrailWithContext(ctx aws.Context, input *UpdateTrailI
}
// Specifies the tags to add to a trail.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTagsRequest
type AddTagsInput struct {
_ struct{} `type:"structure"`
@@ -1763,7 +1762,6 @@ func (s *AddTagsInput) SetTagsList(v []*Tag) *AddTagsInput {
// Returns the objects or data listed below if successful. Otherwise, returns
// an error.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTagsResponse
type AddTagsOutput struct {
_ struct{} `type:"structure"`
}
@@ -1779,7 +1777,6 @@ func (s AddTagsOutput) GoString() string {
}
// Specifies the settings for each trail.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrailRequest
type CreateTrailInput struct {
_ struct{} `type:"structure"`
@@ -1950,7 +1947,6 @@ func (s *CreateTrailInput) SetSnsTopicName(v string) *CreateTrailInput {
// Returns the objects or data listed below if successful. Otherwise, returns
// an error.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrailResponse
type CreateTrailOutput struct {
_ struct{} `type:"structure"`
@@ -2107,7 +2103,6 @@ func (s *CreateTrailOutput) SetTrailARN(v string) *CreateTrailOutput {
//
// The event occurs on an object in an S3 bucket that you didn't specify in
// the event selector. The trail doesnt log the event.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DataResource
type DataResource struct {
_ struct{} `type:"structure"`
@@ -2150,7 +2145,6 @@ func (s *DataResource) SetValues(v []*string) *DataResource {
}
// The request that specifies the name of a trail to delete.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrailRequest
type DeleteTrailInput struct {
_ struct{} `type:"structure"`
@@ -2192,7 +2186,6 @@ func (s *DeleteTrailInput) SetName(v string) *DeleteTrailInput {
// Returns the objects or data listed below if successful. Otherwise, returns
// an error.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrailResponse
type DeleteTrailOutput struct {
_ struct{} `type:"structure"`
}
@@ -2208,7 +2201,6 @@ func (s DeleteTrailOutput) GoString() string {
}
// Returns information about the trail.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrailsRequest
type DescribeTrailsInput struct {
_ struct{} `type:"structure"`
@@ -2263,7 +2255,6 @@ func (s *DescribeTrailsInput) SetTrailNameList(v []*string) *DescribeTrailsInput
// Returns the objects or data listed below if successful. Otherwise, returns
// an error.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrailsResponse
type DescribeTrailsOutput struct {
_ struct{} `type:"structure"`
@@ -2289,7 +2280,6 @@ func (s *DescribeTrailsOutput) SetTrailList(v []*Trail) *DescribeTrailsOutput {
// Contains information about an event that was returned by a lookup request.
// The result includes a representation of a CloudTrail event.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Event
type Event struct {
_ struct{} `type:"structure"`
@@ -2375,7 +2365,6 @@ func (s *Event) SetUsername(v string) *Event {
// match any event selector, the trail doesn't log the event.
//
// You can configure up to five event selectors for a trail.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventSelector
type EventSelector struct {
_ struct{} `type:"structure"`
@@ -2431,7 +2420,6 @@ func (s *EventSelector) SetReadWriteType(v string) *EventSelector {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectorsRequest
type GetEventSelectorsInput struct {
_ struct{} `type:"structure"`
@@ -2487,7 +2475,6 @@ func (s *GetEventSelectorsInput) SetTrailName(v string) *GetEventSelectorsInput
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectorsResponse
type GetEventSelectorsOutput struct {
_ struct{} `type:"structure"`
@@ -2521,7 +2508,6 @@ func (s *GetEventSelectorsOutput) SetTrailARN(v string) *GetEventSelectorsOutput
}
// The name of a trail about which you want the current status.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatusRequest
type GetTrailStatusInput struct {
_ struct{} `type:"structure"`
@@ -2566,7 +2552,6 @@ func (s *GetTrailStatusInput) SetName(v string) *GetTrailStatusInput {
// Returns the objects or data listed below if successful. Otherwise, returns
// an error.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatusResponse
type GetTrailStatusOutput struct {
_ struct{} `type:"structure"`
@@ -2760,7 +2745,6 @@ func (s *GetTrailStatusOutput) SetTimeLoggingStopped(v string) *GetTrailStatusOu
}
// Requests the public keys for a specified time range.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeysRequest
type ListPublicKeysInput struct {
_ struct{} `type:"structure"`
@@ -2807,7 +2791,6 @@ func (s *ListPublicKeysInput) SetStartTime(v time.Time) *ListPublicKeysInput {
// Returns the objects or data listed below if successful. Otherwise, returns
// an error.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeysResponse
type ListPublicKeysOutput struct {
_ struct{} `type:"structure"`
@@ -2843,7 +2826,6 @@ func (s *ListPublicKeysOutput) SetPublicKeyList(v []*PublicKey) *ListPublicKeysO
}
// Specifies a list of trail tags to return.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTagsRequest
type ListTagsInput struct {
_ struct{} `type:"structure"`
@@ -2896,7 +2878,6 @@ func (s *ListTagsInput) SetResourceIdList(v []*string) *ListTagsInput {
// Returns the objects or data listed below if successful. Otherwise, returns
// an error.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTagsResponse
type ListTagsOutput struct {
_ struct{} `type:"structure"`
@@ -2930,7 +2911,6 @@ func (s *ListTagsOutput) SetResourceTagList(v []*ResourceTag) *ListTagsOutput {
}
// Specifies an attribute and value that filter the events returned.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupAttribute
type LookupAttribute struct {
_ struct{} `type:"structure"`
@@ -2984,7 +2964,6 @@ func (s *LookupAttribute) SetAttributeValue(v string) *LookupAttribute {
}
// Contains a request for LookupEvents.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEventsRequest
type LookupEventsInput struct {
_ struct{} `type:"structure"`
@@ -3078,7 +3057,6 @@ func (s *LookupEventsInput) SetStartTime(v time.Time) *LookupEventsInput {
}
// Contains a response to a LookupEvents action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEventsResponse
type LookupEventsOutput struct {
_ struct{} `type:"structure"`
@@ -3118,7 +3096,6 @@ func (s *LookupEventsOutput) SetNextToken(v string) *LookupEventsOutput {
}
// Contains information about a returned public key.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PublicKey
type PublicKey struct {
_ struct{} `type:"structure"`
@@ -3171,7 +3148,6 @@ func (s *PublicKey) SetValue(v []byte) *PublicKey {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectorsRequest
type PutEventSelectorsInput struct {
_ struct{} `type:"structure"`
@@ -3242,7 +3218,6 @@ func (s *PutEventSelectorsInput) SetTrailName(v string) *PutEventSelectorsInput
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectorsResponse
type PutEventSelectorsOutput struct {
_ struct{} `type:"structure"`
@@ -3279,7 +3254,6 @@ func (s *PutEventSelectorsOutput) SetTrailARN(v string) *PutEventSelectorsOutput
}
// Specifies the tags to remove from a trail.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTagsRequest
type RemoveTagsInput struct {
_ struct{} `type:"structure"`
@@ -3342,7 +3316,6 @@ func (s *RemoveTagsInput) SetTagsList(v []*Tag) *RemoveTagsInput {
// Returns the objects or data listed below if successful. Otherwise, returns
// an error.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTagsResponse
type RemoveTagsOutput struct {
_ struct{} `type:"structure"`
}
@@ -3358,7 +3331,6 @@ func (s RemoveTagsOutput) GoString() string {
}
// Specifies the type and name of a resource referenced by an event.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Resource
type Resource struct {
_ struct{} `type:"structure"`
@@ -3399,7 +3371,6 @@ func (s *Resource) SetResourceType(v string) *Resource {
}
// A resource tag.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ResourceTag
type ResourceTag struct {
_ struct{} `type:"structure"`
@@ -3433,7 +3404,6 @@ func (s *ResourceTag) SetTagsList(v []*Tag) *ResourceTag {
}
// The request to CloudTrail to start logging AWS API calls for an account.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLoggingRequest
type StartLoggingInput struct {
_ struct{} `type:"structure"`
@@ -3477,7 +3447,6 @@ func (s *StartLoggingInput) SetName(v string) *StartLoggingInput {
// Returns the objects or data listed below if successful. Otherwise, returns
// an error.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLoggingResponse
type StartLoggingOutput struct {
_ struct{} `type:"structure"`
}
@@ -3494,7 +3463,6 @@ func (s StartLoggingOutput) GoString() string {
// Passes the request to CloudTrail to stop logging AWS API calls for the specified
// account.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLoggingRequest
type StopLoggingInput struct {
_ struct{} `type:"structure"`
@@ -3538,7 +3506,6 @@ func (s *StopLoggingInput) SetName(v string) *StopLoggingInput {
// Returns the objects or data listed below if successful. Otherwise, returns
// an error.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLoggingResponse
type StopLoggingOutput struct {
_ struct{} `type:"structure"`
}
@@ -3554,7 +3521,6 @@ func (s StopLoggingOutput) GoString() string {
}
// A custom key-value pair associated with a resource such as a CloudTrail trail.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Tag
type Tag struct {
_ struct{} `type:"structure"`
@@ -3605,7 +3571,6 @@ func (s *Tag) SetValue(v string) *Tag {
}
// The settings for a trail.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Trail
type Trail struct {
_ struct{} `type:"structure"`
@@ -3762,7 +3727,6 @@ func (s *Trail) SetTrailARN(v string) *Trail {
}
// Specifies settings to update for the trail.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrailRequest
type UpdateTrailInput struct {
_ struct{} `type:"structure"`
@@ -3936,7 +3900,6 @@ func (s *UpdateTrailInput) SetSnsTopicName(v string) *UpdateTrailInput {
// Returns the objects or data listed below if successful. Otherwise, returns
// an error.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrailResponse
type UpdateTrailOutput struct {
_ struct{} `type:"structure"`
+1 -1
View File
@@ -32,7 +32,7 @@
//
// Using the Client
//
// To AWS CloudTrail with the SDK use the New function to create
// To contact AWS CloudTrail 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.
//
File diff suppressed because it is too large Load Diff
@@ -98,6 +98,10 @@ type CloudWatchAPI interface {
GetDashboardWithContext(aws.Context, *cloudwatch.GetDashboardInput, ...request.Option) (*cloudwatch.GetDashboardOutput, error)
GetDashboardRequest(*cloudwatch.GetDashboardInput) (*request.Request, *cloudwatch.GetDashboardOutput)
GetMetricData(*cloudwatch.GetMetricDataInput) (*cloudwatch.GetMetricDataOutput, error)
GetMetricDataWithContext(aws.Context, *cloudwatch.GetMetricDataInput, ...request.Option) (*cloudwatch.GetMetricDataOutput, error)
GetMetricDataRequest(*cloudwatch.GetMetricDataInput) (*request.Request, *cloudwatch.GetMetricDataOutput)
GetMetricStatistics(*cloudwatch.GetMetricStatisticsInput) (*cloudwatch.GetMetricStatisticsOutput, error)
GetMetricStatisticsWithContext(aws.Context, *cloudwatch.GetMetricStatisticsInput, ...request.Option) (*cloudwatch.GetMetricStatisticsOutput, error)
GetMetricStatisticsRequest(*cloudwatch.GetMetricStatisticsInput) (*request.Request, *cloudwatch.GetMetricStatisticsOutput)
+1 -1
View File
@@ -26,7 +26,7 @@
//
// Using the Client
//
// To Amazon CloudWatch with the SDK use the New function to create
// To contact Amazon CloudWatch 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.
//
+244 -94
View File
@@ -17,7 +17,7 @@ const opDeleteRule = "DeleteRule"
// DeleteRuleRequest generates a "aws/request.Request" representing the
// client's request for the DeleteRule operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -38,7 +38,7 @@ const opDeleteRule = "DeleteRule"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule
func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) {
op := &request.Operation{
Name: opDeleteRule,
@@ -81,7 +81,7 @@ func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *reque
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule
func (c *CloudWatchEvents) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) {
req, out := c.DeleteRuleRequest(input)
return out, req.Send()
@@ -107,7 +107,7 @@ const opDescribeEventBus = "DescribeEventBus"
// DescribeEventBusRequest generates a "aws/request.Request" representing the
// client's request for the DescribeEventBus operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -128,7 +128,7 @@ const opDescribeEventBus = "DescribeEventBus"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus
func (c *CloudWatchEvents) DescribeEventBusRequest(input *DescribeEventBusInput) (req *request.Request, output *DescribeEventBusOutput) {
op := &request.Operation{
Name: opDescribeEventBus,
@@ -165,7 +165,7 @@ func (c *CloudWatchEvents) DescribeEventBusRequest(input *DescribeEventBusInput)
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus
func (c *CloudWatchEvents) DescribeEventBus(input *DescribeEventBusInput) (*DescribeEventBusOutput, error) {
req, out := c.DescribeEventBusRequest(input)
return out, req.Send()
@@ -191,7 +191,7 @@ const opDescribeRule = "DescribeRule"
// DescribeRuleRequest generates a "aws/request.Request" representing the
// client's request for the DescribeRule operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -212,7 +212,7 @@ const opDescribeRule = "DescribeRule"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule
func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *request.Request, output *DescribeRuleOutput) {
op := &request.Operation{
Name: opDescribeRule,
@@ -247,7 +247,7 @@ func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *r
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule
func (c *CloudWatchEvents) DescribeRule(input *DescribeRuleInput) (*DescribeRuleOutput, error) {
req, out := c.DescribeRuleRequest(input)
return out, req.Send()
@@ -273,7 +273,7 @@ const opDisableRule = "DisableRule"
// DisableRuleRequest generates a "aws/request.Request" representing the
// client's request for the DisableRule operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -294,7 +294,7 @@ const opDisableRule = "DisableRule"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule
func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *request.Request, output *DisableRuleOutput) {
op := &request.Operation{
Name: opDisableRule,
@@ -338,7 +338,7 @@ func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *req
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule
func (c *CloudWatchEvents) DisableRule(input *DisableRuleInput) (*DisableRuleOutput, error) {
req, out := c.DisableRuleRequest(input)
return out, req.Send()
@@ -364,7 +364,7 @@ const opEnableRule = "EnableRule"
// EnableRuleRequest generates a "aws/request.Request" representing the
// client's request for the EnableRule operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -385,7 +385,7 @@ const opEnableRule = "EnableRule"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule
func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *request.Request, output *EnableRuleOutput) {
op := &request.Operation{
Name: opEnableRule,
@@ -429,7 +429,7 @@ func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *reque
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule
func (c *CloudWatchEvents) EnableRule(input *EnableRuleInput) (*EnableRuleOutput, error) {
req, out := c.EnableRuleRequest(input)
return out, req.Send()
@@ -455,7 +455,7 @@ const opListRuleNamesByTarget = "ListRuleNamesByTarget"
// ListRuleNamesByTargetRequest generates a "aws/request.Request" representing the
// client's request for the ListRuleNamesByTarget operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -476,7 +476,7 @@ const opListRuleNamesByTarget = "ListRuleNamesByTarget"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget
func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTargetInput) (req *request.Request, output *ListRuleNamesByTargetOutput) {
op := &request.Operation{
Name: opListRuleNamesByTarget,
@@ -509,7 +509,7 @@ func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTa
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget
func (c *CloudWatchEvents) ListRuleNamesByTarget(input *ListRuleNamesByTargetInput) (*ListRuleNamesByTargetOutput, error) {
req, out := c.ListRuleNamesByTargetRequest(input)
return out, req.Send()
@@ -535,7 +535,7 @@ const opListRules = "ListRules"
// ListRulesRequest generates a "aws/request.Request" representing the
// client's request for the ListRules operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -556,7 +556,7 @@ const opListRules = "ListRules"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules
func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) (req *request.Request, output *ListRulesOutput) {
op := &request.Operation{
Name: opListRules,
@@ -589,7 +589,7 @@ func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) (req *request
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules
func (c *CloudWatchEvents) ListRules(input *ListRulesInput) (*ListRulesOutput, error) {
req, out := c.ListRulesRequest(input)
return out, req.Send()
@@ -615,7 +615,7 @@ const opListTargetsByRule = "ListTargetsByRule"
// ListTargetsByRuleRequest generates a "aws/request.Request" representing the
// client's request for the ListTargetsByRule operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -636,7 +636,7 @@ const opListTargetsByRule = "ListTargetsByRule"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule
func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInput) (req *request.Request, output *ListTargetsByRuleOutput) {
op := &request.Operation{
Name: opListTargetsByRule,
@@ -671,7 +671,7 @@ func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInpu
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule
func (c *CloudWatchEvents) ListTargetsByRule(input *ListTargetsByRuleInput) (*ListTargetsByRuleOutput, error) {
req, out := c.ListTargetsByRuleRequest(input)
return out, req.Send()
@@ -697,7 +697,7 @@ const opPutEvents = "PutEvents"
// PutEventsRequest generates a "aws/request.Request" representing the
// client's request for the PutEvents operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -718,7 +718,7 @@ const opPutEvents = "PutEvents"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents
func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) (req *request.Request, output *PutEventsOutput) {
op := &request.Operation{
Name: opPutEvents,
@@ -751,7 +751,7 @@ func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) (req *request
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents
func (c *CloudWatchEvents) PutEvents(input *PutEventsInput) (*PutEventsOutput, error) {
req, out := c.PutEventsRequest(input)
return out, req.Send()
@@ -777,7 +777,7 @@ const opPutPermission = "PutPermission"
// PutPermissionRequest generates a "aws/request.Request" representing the
// client's request for the PutPermission operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -798,7 +798,7 @@ const opPutPermission = "PutPermission"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission
func (c *CloudWatchEvents) PutPermissionRequest(input *PutPermissionInput) (req *request.Request, output *PutPermissionOutput) {
op := &request.Operation{
Name: opPutPermission,
@@ -852,7 +852,7 @@ func (c *CloudWatchEvents) PutPermissionRequest(input *PutPermissionInput) (req
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
// There is concurrent modification on a rule or target.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission
func (c *CloudWatchEvents) PutPermission(input *PutPermissionInput) (*PutPermissionOutput, error) {
req, out := c.PutPermissionRequest(input)
return out, req.Send()
@@ -878,7 +878,7 @@ const opPutRule = "PutRule"
// PutRuleRequest generates a "aws/request.Request" representing the
// client's request for the PutRule operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -899,7 +899,7 @@ const opPutRule = "PutRule"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule
func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Request, output *PutRuleOutput) {
op := &request.Operation{
Name: opPutRule,
@@ -921,6 +921,11 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req
// Creates or updates the specified rule. Rules are enabled by default, or based
// on value of the state. You can disable a rule using DisableRule.
//
// If you are updating an existing rule, the rule is completely replaced with
// what you specify in this PutRule command. If you omit arguments in PutRule,
// the old values for those arguments are not kept. Instead, they are replaced
// with null values.
//
// When you create or update a rule, incoming events might not immediately start
// matching to new or updated rules. Please allow a short period of time for
// changes to take effect.
@@ -956,7 +961,7 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule
func (c *CloudWatchEvents) PutRule(input *PutRuleInput) (*PutRuleOutput, error) {
req, out := c.PutRuleRequest(input)
return out, req.Send()
@@ -982,7 +987,7 @@ const opPutTargets = "PutTargets"
// PutTargetsRequest generates a "aws/request.Request" representing the
// client's request for the PutTargets operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1003,7 +1008,7 @@ const opPutTargets = "PutTargets"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets
func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *request.Request, output *PutTargetsOutput) {
op := &request.Operation{
Name: opPutTargets,
@@ -1041,13 +1046,15 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque
//
// * AWS Step Functions state machines
//
// * AWS Batch jobs
//
// * Pipelines in Amazon Code Pipeline
//
// * Amazon Inspector assessment templates
//
// * Amazon SNS topics
//
// * Amazon SQS queues
// * Amazon SQS queues, including FIFO queues
//
// * The default event bus of another AWS account
//
@@ -1099,8 +1106,8 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque
// are extracted from the event and used as values in a template that you
// specify as the input to the target.
//
// When you specify Input, InputPath, or InputTransformer, you must use JSON
// dot notation, not bracket notation.
// When you specify InputPath or InputTransformer, you must use JSON dot notation,
// not bracket notation.
//
// When you add targets to a rule and the associated rule triggers soon after,
// new or updated targets might not be immediately invoked. Please allow a short
@@ -1131,7 +1138,7 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets
func (c *CloudWatchEvents) PutTargets(input *PutTargetsInput) (*PutTargetsOutput, error) {
req, out := c.PutTargetsRequest(input)
return out, req.Send()
@@ -1157,7 +1164,7 @@ const opRemovePermission = "RemovePermission"
// RemovePermissionRequest generates a "aws/request.Request" representing the
// client's request for the RemovePermission operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1178,7 +1185,7 @@ const opRemovePermission = "RemovePermission"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission
func (c *CloudWatchEvents) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) {
op := &request.Operation{
Name: opRemovePermission,
@@ -1221,7 +1228,7 @@ func (c *CloudWatchEvents) RemovePermissionRequest(input *RemovePermissionInput)
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
// There is concurrent modification on a rule or target.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission
func (c *CloudWatchEvents) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) {
req, out := c.RemovePermissionRequest(input)
return out, req.Send()
@@ -1247,7 +1254,7 @@ const opRemoveTargets = "RemoveTargets"
// RemoveTargetsRequest generates a "aws/request.Request" representing the
// client's request for the RemoveTargets operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1268,7 +1275,7 @@ const opRemoveTargets = "RemoveTargets"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets
func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req *request.Request, output *RemoveTargetsOutput) {
op := &request.Operation{
Name: opRemoveTargets,
@@ -1316,7 +1323,7 @@ func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets
func (c *CloudWatchEvents) RemoveTargets(input *RemoveTargetsInput) (*RemoveTargetsOutput, error) {
req, out := c.RemoveTargetsRequest(input)
return out, req.Send()
@@ -1342,7 +1349,7 @@ const opTestEventPattern = "TestEventPattern"
// TestEventPatternRequest generates a "aws/request.Request" representing the
// client's request for the TestEventPattern operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@@ -1363,7 +1370,7 @@ const opTestEventPattern = "TestEventPattern"
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern
func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) (req *request.Request, output *TestEventPatternOutput) {
op := &request.Operation{
Name: opTestEventPattern,
@@ -1403,7 +1410,7 @@ func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput)
// * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern
// See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern
func (c *CloudWatchEvents) TestEventPattern(input *TestEventPatternInput) (*TestEventPatternOutput, error) {
req, out := c.TestEventPatternRequest(input)
return out, req.Send()
@@ -1425,7 +1432,140 @@ func (c *CloudWatchEvents) TestEventPatternWithContext(ctx aws.Context, input *T
return out, req.Send()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRuleRequest
// The array properties for the submitted job, such as the size of the array.
// The array size can be between 2 and 10,000. If you specify array properties
// for a job, it becomes an array job. This parameter is used only if the target
// is an AWS Batch job.
type BatchArrayProperties struct {
_ struct{} `type:"structure"`
// The size of the array, if this is an array batch job. Valid values are integers
// between 2 and 10,000.
Size *int64 `type:"integer"`
}
// String returns the string representation
func (s BatchArrayProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BatchArrayProperties) GoString() string {
return s.String()
}
// SetSize sets the Size field's value.
func (s *BatchArrayProperties) SetSize(v int64) *BatchArrayProperties {
s.Size = &v
return s
}
// The custom parameters to be used when the target is an AWS Batch job.
type BatchParameters struct {
_ struct{} `type:"structure"`
// The array properties for the submitted job, such as the size of the array.
// The array size can be between 2 and 10,000. If you specify array properties
// for a job, it becomes an array job. This parameter is used only if the target
// is an AWS Batch job.
ArrayProperties *BatchArrayProperties `type:"structure"`
// The ARN or name of the job definition to use if the event target is an AWS
// Batch job. This job definition must already exist.
//
// JobDefinition is a required field
JobDefinition *string `type:"string" required:"true"`
// The name to use for this execution of the job, if the target is an AWS Batch
// job.
//
// JobName is a required field
JobName *string `type:"string" required:"true"`
// The retry strategy to use for failed jobs, if the target is an AWS Batch
// job. The retry strategy is the number of times to retry the failed job execution.
// Valid values are 1 to 10. When you specify a retry strategy here, it overrides
// the retry strategy defined in the job definition.
RetryStrategy *BatchRetryStrategy `type:"structure"`
}
// String returns the string representation
func (s BatchParameters) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BatchParameters) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *BatchParameters) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "BatchParameters"}
if s.JobDefinition == nil {
invalidParams.Add(request.NewErrParamRequired("JobDefinition"))
}
if s.JobName == nil {
invalidParams.Add(request.NewErrParamRequired("JobName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetArrayProperties sets the ArrayProperties field's value.
func (s *BatchParameters) SetArrayProperties(v *BatchArrayProperties) *BatchParameters {
s.ArrayProperties = v
return s
}
// SetJobDefinition sets the JobDefinition field's value.
func (s *BatchParameters) SetJobDefinition(v string) *BatchParameters {
s.JobDefinition = &v
return s
}
// SetJobName sets the JobName field's value.
func (s *BatchParameters) SetJobName(v string) *BatchParameters {
s.JobName = &v
return s
}
// SetRetryStrategy sets the RetryStrategy field's value.
func (s *BatchParameters) SetRetryStrategy(v *BatchRetryStrategy) *BatchParameters {
s.RetryStrategy = v
return s
}
// The retry strategy to use for failed jobs, if the target is an AWS Batch
// job. If you specify a retry strategy here, it overrides the retry strategy
// defined in the job definition.
type BatchRetryStrategy struct {
_ struct{} `type:"structure"`
// The number of times to attempt to retry, if the job fails. Valid values are
// 1 to 10.
Attempts *int64 `type:"integer"`
}
// String returns the string representation
func (s BatchRetryStrategy) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BatchRetryStrategy) GoString() string {
return s.String()
}
// SetAttempts sets the Attempts field's value.
func (s *BatchRetryStrategy) SetAttempts(v int64) *BatchRetryStrategy {
s.Attempts = &v
return s
}
type DeleteRuleInput struct {
_ struct{} `type:"structure"`
@@ -1467,7 +1607,6 @@ func (s *DeleteRuleInput) SetName(v string) *DeleteRuleInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRuleOutput
type DeleteRuleOutput struct {
_ struct{} `type:"structure"`
}
@@ -1482,7 +1621,6 @@ func (s DeleteRuleOutput) GoString() string {
return s.String()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBusRequest
type DescribeEventBusInput struct {
_ struct{} `type:"structure"`
}
@@ -1497,7 +1635,6 @@ func (s DescribeEventBusInput) GoString() string {
return s.String()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBusResponse
type DescribeEventBusOutput struct {
_ struct{} `type:"structure"`
@@ -1540,7 +1677,6 @@ func (s *DescribeEventBusOutput) SetPolicy(v string) *DescribeEventBusOutput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleRequest
type DescribeRuleInput struct {
_ struct{} `type:"structure"`
@@ -1582,7 +1718,6 @@ func (s *DescribeRuleInput) SetName(v string) *DescribeRuleInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRuleResponse
type DescribeRuleOutput struct {
_ struct{} `type:"structure"`
@@ -1661,7 +1796,6 @@ func (s *DescribeRuleOutput) SetState(v string) *DescribeRuleOutput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRuleRequest
type DisableRuleInput struct {
_ struct{} `type:"structure"`
@@ -1703,7 +1837,6 @@ func (s *DisableRuleInput) SetName(v string) *DisableRuleInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRuleOutput
type DisableRuleOutput struct {
_ struct{} `type:"structure"`
}
@@ -1719,7 +1852,6 @@ func (s DisableRuleOutput) GoString() string {
}
// The custom parameters to be used when the target is an Amazon ECS cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EcsParameters
type EcsParameters struct {
_ struct{} `type:"structure"`
@@ -1775,7 +1907,6 @@ func (s *EcsParameters) SetTaskDefinitionArn(v string) *EcsParameters {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRuleRequest
type EnableRuleInput struct {
_ struct{} `type:"structure"`
@@ -1817,7 +1948,6 @@ func (s *EnableRuleInput) SetName(v string) *EnableRuleInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRuleOutput
type EnableRuleOutput struct {
_ struct{} `type:"structure"`
}
@@ -1834,7 +1964,6 @@ func (s EnableRuleOutput) GoString() string {
// Contains the parameters needed for you to provide custom input to a target
// based on one or more pieces of data extracted from the event.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/InputTransformer
type InputTransformer struct {
_ struct{} `type:"structure"`
@@ -1892,7 +2021,6 @@ func (s *InputTransformer) SetInputTemplate(v string) *InputTransformer {
// and use as the partition key for the Amazon Kinesis stream, so that you can
// control the shard to which the event goes. If you do not include this parameter,
// the default is to use the eventId as the partition key.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/KinesisParameters
type KinesisParameters struct {
_ struct{} `type:"structure"`
@@ -1933,7 +2061,6 @@ func (s *KinesisParameters) SetPartitionKeyPath(v string) *KinesisParameters {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTargetRequest
type ListRuleNamesByTargetInput struct {
_ struct{} `type:"structure"`
@@ -1999,7 +2126,6 @@ func (s *ListRuleNamesByTargetInput) SetTargetArn(v string) *ListRuleNamesByTarg
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTargetResponse
type ListRuleNamesByTargetOutput struct {
_ struct{} `type:"structure"`
@@ -2033,7 +2159,6 @@ func (s *ListRuleNamesByTargetOutput) SetRuleNames(v []*string) *ListRuleNamesBy
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRulesRequest
type ListRulesInput struct {
_ struct{} `type:"structure"`
@@ -2094,7 +2219,6 @@ func (s *ListRulesInput) SetNextToken(v string) *ListRulesInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRulesResponse
type ListRulesOutput struct {
_ struct{} `type:"structure"`
@@ -2128,7 +2252,6 @@ func (s *ListRulesOutput) SetRules(v []*Rule) *ListRulesOutput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRuleRequest
type ListTargetsByRuleInput struct {
_ struct{} `type:"structure"`
@@ -2194,7 +2317,6 @@ func (s *ListTargetsByRuleInput) SetRule(v string) *ListTargetsByRuleInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRuleResponse
type ListTargetsByRuleOutput struct {
_ struct{} `type:"structure"`
@@ -2228,7 +2350,6 @@ func (s *ListTargetsByRuleOutput) SetTargets(v []*Target) *ListTargetsByRuleOutp
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequest
type PutEventsInput struct {
_ struct{} `type:"structure"`
@@ -2272,7 +2393,6 @@ func (s *PutEventsInput) SetEntries(v []*PutEventsRequestEntry) *PutEventsInput
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsResponse
type PutEventsOutput struct {
_ struct{} `type:"structure"`
@@ -2308,12 +2428,11 @@ func (s *PutEventsOutput) SetFailedEntryCount(v int64) *PutEventsOutput {
}
// Represents an event to be submitted.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequestEntry
type PutEventsRequestEntry struct {
_ struct{} `type:"structure"`
// In the JSON sense, an object containing fields, which may also contain nested
// subobjects. No constraints are imposed on its contents.
// A valid JSON string. There is no other schema imposed. The JSON string may
// contain fields and nested subobjects.
Detail *string `type:"string"`
// Free-form string used to decide what fields to expect in the event detail.
@@ -2372,7 +2491,6 @@ func (s *PutEventsRequestEntry) SetTime(v time.Time) *PutEventsRequestEntry {
}
// Represents an event that failed to be submitted.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsResultEntry
type PutEventsResultEntry struct {
_ struct{} `type:"structure"`
@@ -2414,7 +2532,6 @@ func (s *PutEventsResultEntry) SetEventId(v string) *PutEventsResultEntry {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermissionRequest
type PutPermissionInput struct {
_ struct{} `type:"structure"`
@@ -2501,7 +2618,6 @@ func (s *PutPermissionInput) SetStatementId(v string) *PutPermissionInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermissionOutput
type PutPermissionOutput struct {
_ struct{} `type:"structure"`
}
@@ -2516,7 +2632,6 @@ func (s PutPermissionOutput) GoString() string {
return s.String()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRuleRequest
type PutRuleInput struct {
_ struct{} `type:"structure"`
@@ -2607,7 +2722,6 @@ func (s *PutRuleInput) SetState(v string) *PutRuleInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRuleResponse
type PutRuleOutput struct {
_ struct{} `type:"structure"`
@@ -2631,7 +2745,6 @@ func (s *PutRuleOutput) SetRuleArn(v string) *PutRuleOutput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsRequest
type PutTargetsInput struct {
_ struct{} `type:"structure"`
@@ -2700,7 +2813,6 @@ func (s *PutTargetsInput) SetTargets(v []*Target) *PutTargetsInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsResponse
type PutTargetsOutput struct {
_ struct{} `type:"structure"`
@@ -2734,7 +2846,6 @@ func (s *PutTargetsOutput) SetFailedEntryCount(v int64) *PutTargetsOutput {
}
// Represents a target that failed to be added to a rule.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsResultEntry
type PutTargetsResultEntry struct {
_ struct{} `type:"structure"`
@@ -2778,7 +2889,6 @@ func (s *PutTargetsResultEntry) SetTargetId(v string) *PutTargetsResultEntry {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermissionRequest
type RemovePermissionInput struct {
_ struct{} `type:"structure"`
@@ -2821,7 +2931,6 @@ func (s *RemovePermissionInput) SetStatementId(v string) *RemovePermissionInput
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermissionOutput
type RemovePermissionOutput struct {
_ struct{} `type:"structure"`
}
@@ -2836,7 +2945,6 @@ func (s RemovePermissionOutput) GoString() string {
return s.String()
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsRequest
type RemoveTargetsInput struct {
_ struct{} `type:"structure"`
@@ -2895,7 +3003,6 @@ func (s *RemoveTargetsInput) SetRule(v string) *RemoveTargetsInput {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsResponse
type RemoveTargetsOutput struct {
_ struct{} `type:"structure"`
@@ -2929,7 +3036,6 @@ func (s *RemoveTargetsOutput) SetFailedEntryCount(v int64) *RemoveTargetsOutput
}
// Represents a target that failed to be removed from a rule.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsResultEntry
type RemoveTargetsResultEntry struct {
_ struct{} `type:"structure"`
@@ -2974,7 +3080,6 @@ func (s *RemoveTargetsResultEntry) SetTargetId(v string) *RemoveTargetsResultEnt
}
// Contains information about a rule in Amazon CloudWatch Events.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Rule
type Rule struct {
_ struct{} `type:"structure"`
@@ -3056,7 +3161,6 @@ func (s *Rule) SetState(v string) *Rule {
// This parameter contains the criteria (either InstanceIds or a tag) used to
// specify which EC2 instances are to be sent the command.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RunCommandParameters
type RunCommandParameters struct {
_ struct{} `type:"structure"`
@@ -3112,7 +3216,6 @@ func (s *RunCommandParameters) SetRunCommandTargets(v []*RunCommandTarget) *RunC
// Information about the EC2 instances that are to be sent the command, specified
// as key-value pairs. Each RunCommandTarget block can include only one key,
// but this key may specify multiple values.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RunCommandTarget
type RunCommandTarget struct {
_ struct{} `type:"structure"`
@@ -3172,11 +3275,35 @@ func (s *RunCommandTarget) SetValues(v []*string) *RunCommandTarget {
return s
}
// This structure includes the custom parameter to be used when the target is
// an SQS FIFO queue.
type SqsParameters struct {
_ struct{} `type:"structure"`
// The FIFO message group ID to use as the target.
MessageGroupId *string `type:"string"`
}
// String returns the string representation
func (s SqsParameters) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SqsParameters) GoString() string {
return s.String()
}
// SetMessageGroupId sets the MessageGroupId field's value.
func (s *SqsParameters) SetMessageGroupId(v string) *SqsParameters {
s.MessageGroupId = &v
return s
}
// Targets are the resources to be invoked when a rule is triggered. Target
// types include EC2 instances, AWS Lambda functions, Amazon Kinesis streams,
// Amazon ECS tasks, AWS Step Functions state machines, Run Command, and built-in
// targets.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Target
type Target struct {
_ struct{} `type:"structure"`
@@ -3185,6 +3312,12 @@ type Target struct {
// Arn is a required field
Arn *string `min:"1" type:"string" required:"true"`
// Contains the job definition, job name, and other parameters if the event
// target is an AWS Batch job. For more information about AWS Batch, see Jobs
// (http://docs.aws.amazon.com/batch/latest/userguide/jobs.html) in the AWS
// Batch User Guide.
BatchParameters *BatchParameters `type:"structure"`
// Contains the Amazon ECS task definition and task count to be used, if the
// event target is an Amazon ECS task. For more information about Amazon ECS
// tasks, see Task Definitions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html)
@@ -3197,9 +3330,8 @@ type Target struct {
Id *string `min:"1" type:"string" required:"true"`
// Valid JSON text passed to the target. In this case, nothing from the event
// itself is passed to the target. You must use JSON dot notation, not bracket
// notation. For more information, see The JavaScript Object Notation (JSON)
// Data Interchange Format (http://www.rfc-editor.org/rfc/rfc7159.txt).
// itself is passed to the target. For more information, see The JavaScript
// Object Notation (JSON) Data Interchange Format (http://www.rfc-editor.org/rfc/rfc7159.txt).
Input *string `type:"string"`
// The value of the JSONPath that is used for extracting part of the matched
@@ -3224,6 +3356,9 @@ type Target struct {
// Parameters used when you are using the rule to invoke Amazon EC2 Run Command.
RunCommandParameters *RunCommandParameters `type:"structure"`
// Contains the message group ID to use when the target is a FIFO queue.
SqsParameters *SqsParameters `type:"structure"`
}
// String returns the string representation
@@ -3254,6 +3389,11 @@ func (s *Target) Validate() error {
if s.RoleArn != nil && len(*s.RoleArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
}
if s.BatchParameters != nil {
if err := s.BatchParameters.Validate(); err != nil {
invalidParams.AddNested("BatchParameters", err.(request.ErrInvalidParams))
}
}
if s.EcsParameters != nil {
if err := s.EcsParameters.Validate(); err != nil {
invalidParams.AddNested("EcsParameters", err.(request.ErrInvalidParams))
@@ -3287,6 +3427,12 @@ func (s *Target) SetArn(v string) *Target {
return s
}
// SetBatchParameters sets the BatchParameters field's value.
func (s *Target) SetBatchParameters(v *BatchParameters) *Target {
s.BatchParameters = v
return s
}
// SetEcsParameters sets the EcsParameters field's value.
func (s *Target) SetEcsParameters(v *EcsParameters) *Target {
s.EcsParameters = v
@@ -3335,7 +3481,12 @@ func (s *Target) SetRunCommandParameters(v *RunCommandParameters) *Target {
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPatternRequest
// SetSqsParameters sets the SqsParameters field's value.
func (s *Target) SetSqsParameters(v *SqsParameters) *Target {
s.SqsParameters = v
return s
}
type TestEventPatternInput struct {
_ struct{} `type:"structure"`
@@ -3389,7 +3540,6 @@ func (s *TestEventPatternInput) SetEventPattern(v string) *TestEventPatternInput
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPatternResponse
type TestEventPatternOutput struct {
_ struct{} `type:"structure"`
+1 -1
View File
@@ -29,7 +29,7 @@
//
// Using the Client
//
// To Amazon CloudWatch Events with the SDK use the New function to create
// To contact Amazon CloudWatch Events 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.
//
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -41,7 +41,7 @@
//
// Using the Client
//
// To Amazon CloudWatch Logs with the SDK use the New function to create
// To contact Amazon CloudWatch Logs 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.
//
File diff suppressed because it is too large Load Diff
@@ -76,10 +76,22 @@ type CodeBuildAPI interface {
CreateProjectWithContext(aws.Context, *codebuild.CreateProjectInput, ...request.Option) (*codebuild.CreateProjectOutput, error)
CreateProjectRequest(*codebuild.CreateProjectInput) (*request.Request, *codebuild.CreateProjectOutput)
CreateWebhook(*codebuild.CreateWebhookInput) (*codebuild.CreateWebhookOutput, error)
CreateWebhookWithContext(aws.Context, *codebuild.CreateWebhookInput, ...request.Option) (*codebuild.CreateWebhookOutput, error)
CreateWebhookRequest(*codebuild.CreateWebhookInput) (*request.Request, *codebuild.CreateWebhookOutput)
DeleteProject(*codebuild.DeleteProjectInput) (*codebuild.DeleteProjectOutput, error)
DeleteProjectWithContext(aws.Context, *codebuild.DeleteProjectInput, ...request.Option) (*codebuild.DeleteProjectOutput, error)
DeleteProjectRequest(*codebuild.DeleteProjectInput) (*request.Request, *codebuild.DeleteProjectOutput)
DeleteWebhook(*codebuild.DeleteWebhookInput) (*codebuild.DeleteWebhookOutput, error)
DeleteWebhookWithContext(aws.Context, *codebuild.DeleteWebhookInput, ...request.Option) (*codebuild.DeleteWebhookOutput, error)
DeleteWebhookRequest(*codebuild.DeleteWebhookInput) (*request.Request, *codebuild.DeleteWebhookOutput)
InvalidateProjectCache(*codebuild.InvalidateProjectCacheInput) (*codebuild.InvalidateProjectCacheOutput, error)
InvalidateProjectCacheWithContext(aws.Context, *codebuild.InvalidateProjectCacheInput, ...request.Option) (*codebuild.InvalidateProjectCacheOutput, error)
InvalidateProjectCacheRequest(*codebuild.InvalidateProjectCacheInput) (*request.Request, *codebuild.InvalidateProjectCacheOutput)
ListBuilds(*codebuild.ListBuildsInput) (*codebuild.ListBuildsOutput, error)
ListBuildsWithContext(aws.Context, *codebuild.ListBuildsInput, ...request.Option) (*codebuild.ListBuildsOutput, error)
ListBuildsRequest(*codebuild.ListBuildsInput) (*request.Request, *codebuild.ListBuildsOutput)
@@ -107,6 +119,10 @@ type CodeBuildAPI interface {
UpdateProject(*codebuild.UpdateProjectInput) (*codebuild.UpdateProjectOutput, error)
UpdateProjectWithContext(aws.Context, *codebuild.UpdateProjectInput, ...request.Option) (*codebuild.UpdateProjectOutput, error)
UpdateProjectRequest(*codebuild.UpdateProjectInput) (*request.Request, *codebuild.UpdateProjectOutput)
UpdateWebhook(*codebuild.UpdateWebhookInput) (*codebuild.UpdateWebhookOutput, error)
UpdateWebhookWithContext(aws.Context, *codebuild.UpdateWebhookInput, ...request.Option) (*codebuild.UpdateWebhookOutput, error)
UpdateWebhookRequest(*codebuild.UpdateWebhookInput) (*request.Request, *codebuild.UpdateWebhookOutput)
}
var _ CodeBuildAPI = (*codebuild.CodeBuild)(nil)
+14 -2
View File
@@ -7,7 +7,7 @@
// compiles your source code, runs unit tests, and produces artifacts that are
// ready to deploy. AWS CodeBuild eliminates the need to provision, manage,
// and scale your own build servers. It provides prepackaged build environments
// for the most popular programming languages and build tools, such as Apach
// for the most popular programming languages and build tools, such as Apache
// Maven, Gradle, and more. You can also fully customize build environments
// in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically
// to meet peak build requests, and you pay only for the build time you consume.
@@ -28,8 +28,20 @@
//
// * CreateProject: Creates a build project.
//
// * CreateWebhook: For an existing AWS CodeBuild build project that has
// its source code stored in a GitHub repository, enables AWS CodeBuild to
// begin automatically rebuilding the source code every time a code change
// is pushed to the repository.
//
// * UpdateWebhook: Changes the settings of an existing webhook.
//
// * DeleteProject: Deletes a build project.
//
// * DeleteWebhook: For an existing AWS CodeBuild build project that has
// its source code stored in a GitHub repository, stops AWS CodeBuild from
// automatically rebuilding the source code every time a code change is pushed
// to the repository.
//
// * ListProjects: Gets a list of build project names, with each build project
// name representing a single build project.
//
@@ -57,7 +69,7 @@
//
// Using the Client
//
// To AWS CodeBuild with the SDK use the New function to create
// To contact AWS CodeBuild 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.
//
+6
View File
@@ -16,6 +16,12 @@ const (
// The input value that was provided is not valid.
ErrCodeInvalidInputException = "InvalidInputException"
// ErrCodeOAuthProviderException for service response error code
// "OAuthProviderException".
//
// There was a problem with the underlying OAuth provider.
ErrCodeOAuthProviderException = "OAuthProviderException"
// ErrCodeResourceAlreadyExistsException for service response error code
// "ResourceAlreadyExistsException".
//
File diff suppressed because it is too large Load Diff
@@ -68,14 +68,33 @@ type CodeCommitAPI interface {
CreateBranchWithContext(aws.Context, *codecommit.CreateBranchInput, ...request.Option) (*codecommit.CreateBranchOutput, error)
CreateBranchRequest(*codecommit.CreateBranchInput) (*request.Request, *codecommit.CreateBranchOutput)
CreatePullRequest(*codecommit.CreatePullRequestInput) (*codecommit.CreatePullRequestOutput, error)
CreatePullRequestWithContext(aws.Context, *codecommit.CreatePullRequestInput, ...request.Option) (*codecommit.CreatePullRequestOutput, error)
CreatePullRequestRequest(*codecommit.CreatePullRequestInput) (*request.Request, *codecommit.CreatePullRequestOutput)
CreateRepository(*codecommit.CreateRepositoryInput) (*codecommit.CreateRepositoryOutput, error)
CreateRepositoryWithContext(aws.Context, *codecommit.CreateRepositoryInput, ...request.Option) (*codecommit.CreateRepositoryOutput, error)
CreateRepositoryRequest(*codecommit.CreateRepositoryInput) (*request.Request, *codecommit.CreateRepositoryOutput)
DeleteBranch(*codecommit.DeleteBranchInput) (*codecommit.DeleteBranchOutput, error)
DeleteBranchWithContext(aws.Context, *codecommit.DeleteBranchInput, ...request.Option) (*codecommit.DeleteBranchOutput, error)
DeleteBranchRequest(*codecommit.DeleteBranchInput) (*request.Request, *codecommit.DeleteBranchOutput)
DeleteCommentContent(*codecommit.DeleteCommentContentInput) (*codecommit.DeleteCommentContentOutput, error)
DeleteCommentContentWithContext(aws.Context, *codecommit.DeleteCommentContentInput, ...request.Option) (*codecommit.DeleteCommentContentOutput, error)
DeleteCommentContentRequest(*codecommit.DeleteCommentContentInput) (*request.Request, *codecommit.DeleteCommentContentOutput)
DeleteRepository(*codecommit.DeleteRepositoryInput) (*codecommit.DeleteRepositoryOutput, error)
DeleteRepositoryWithContext(aws.Context, *codecommit.DeleteRepositoryInput, ...request.Option) (*codecommit.DeleteRepositoryOutput, error)
DeleteRepositoryRequest(*codecommit.DeleteRepositoryInput) (*request.Request, *codecommit.DeleteRepositoryOutput)
DescribePullRequestEvents(*codecommit.DescribePullRequestEventsInput) (*codecommit.DescribePullRequestEventsOutput, error)
DescribePullRequestEventsWithContext(aws.Context, *codecommit.DescribePullRequestEventsInput, ...request.Option) (*codecommit.DescribePullRequestEventsOutput, error)
DescribePullRequestEventsRequest(*codecommit.DescribePullRequestEventsInput) (*request.Request, *codecommit.DescribePullRequestEventsOutput)
DescribePullRequestEventsPages(*codecommit.DescribePullRequestEventsInput, func(*codecommit.DescribePullRequestEventsOutput, bool) bool) error
DescribePullRequestEventsPagesWithContext(aws.Context, *codecommit.DescribePullRequestEventsInput, func(*codecommit.DescribePullRequestEventsOutput, bool) bool, ...request.Option) error
GetBlob(*codecommit.GetBlobInput) (*codecommit.GetBlobOutput, error)
GetBlobWithContext(aws.Context, *codecommit.GetBlobInput, ...request.Option) (*codecommit.GetBlobOutput, error)
GetBlobRequest(*codecommit.GetBlobInput) (*request.Request, *codecommit.GetBlobOutput)
@@ -84,6 +103,24 @@ type CodeCommitAPI interface {
GetBranchWithContext(aws.Context, *codecommit.GetBranchInput, ...request.Option) (*codecommit.GetBranchOutput, error)
GetBranchRequest(*codecommit.GetBranchInput) (*request.Request, *codecommit.GetBranchOutput)
GetComment(*codecommit.GetCommentInput) (*codecommit.GetCommentOutput, error)
GetCommentWithContext(aws.Context, *codecommit.GetCommentInput, ...request.Option) (*codecommit.GetCommentOutput, error)
GetCommentRequest(*codecommit.GetCommentInput) (*request.Request, *codecommit.GetCommentOutput)
GetCommentsForComparedCommit(*codecommit.GetCommentsForComparedCommitInput) (*codecommit.GetCommentsForComparedCommitOutput, error)
GetCommentsForComparedCommitWithContext(aws.Context, *codecommit.GetCommentsForComparedCommitInput, ...request.Option) (*codecommit.GetCommentsForComparedCommitOutput, error)
GetCommentsForComparedCommitRequest(*codecommit.GetCommentsForComparedCommitInput) (*request.Request, *codecommit.GetCommentsForComparedCommitOutput)
GetCommentsForComparedCommitPages(*codecommit.GetCommentsForComparedCommitInput, func(*codecommit.GetCommentsForComparedCommitOutput, bool) bool) error
GetCommentsForComparedCommitPagesWithContext(aws.Context, *codecommit.GetCommentsForComparedCommitInput, func(*codecommit.GetCommentsForComparedCommitOutput, bool) bool, ...request.Option) error
GetCommentsForPullRequest(*codecommit.GetCommentsForPullRequestInput) (*codecommit.GetCommentsForPullRequestOutput, error)
GetCommentsForPullRequestWithContext(aws.Context, *codecommit.GetCommentsForPullRequestInput, ...request.Option) (*codecommit.GetCommentsForPullRequestOutput, error)
GetCommentsForPullRequestRequest(*codecommit.GetCommentsForPullRequestInput) (*request.Request, *codecommit.GetCommentsForPullRequestOutput)
GetCommentsForPullRequestPages(*codecommit.GetCommentsForPullRequestInput, func(*codecommit.GetCommentsForPullRequestOutput, bool) bool) error
GetCommentsForPullRequestPagesWithContext(aws.Context, *codecommit.GetCommentsForPullRequestInput, func(*codecommit.GetCommentsForPullRequestOutput, bool) bool, ...request.Option) error
GetCommit(*codecommit.GetCommitInput) (*codecommit.GetCommitOutput, error)
GetCommitWithContext(aws.Context, *codecommit.GetCommitInput, ...request.Option) (*codecommit.GetCommitOutput, error)
GetCommitRequest(*codecommit.GetCommitInput) (*request.Request, *codecommit.GetCommitOutput)
@@ -95,6 +132,14 @@ type CodeCommitAPI interface {
GetDifferencesPages(*codecommit.GetDifferencesInput, func(*codecommit.GetDifferencesOutput, bool) bool) error
GetDifferencesPagesWithContext(aws.Context, *codecommit.GetDifferencesInput, func(*codecommit.GetDifferencesOutput, bool) bool, ...request.Option) error
GetMergeConflicts(*codecommit.GetMergeConflictsInput) (*codecommit.GetMergeConflictsOutput, error)
GetMergeConflictsWithContext(aws.Context, *codecommit.GetMergeConflictsInput, ...request.Option) (*codecommit.GetMergeConflictsOutput, error)
GetMergeConflictsRequest(*codecommit.GetMergeConflictsInput) (*request.Request, *codecommit.GetMergeConflictsOutput)
GetPullRequest(*codecommit.GetPullRequestInput) (*codecommit.GetPullRequestOutput, error)
GetPullRequestWithContext(aws.Context, *codecommit.GetPullRequestInput, ...request.Option) (*codecommit.GetPullRequestOutput, error)
GetPullRequestRequest(*codecommit.GetPullRequestInput) (*request.Request, *codecommit.GetPullRequestOutput)
GetRepository(*codecommit.GetRepositoryInput) (*codecommit.GetRepositoryOutput, error)
GetRepositoryWithContext(aws.Context, *codecommit.GetRepositoryInput, ...request.Option) (*codecommit.GetRepositoryOutput, error)
GetRepositoryRequest(*codecommit.GetRepositoryInput) (*request.Request, *codecommit.GetRepositoryOutput)
@@ -110,6 +155,13 @@ type CodeCommitAPI interface {
ListBranchesPages(*codecommit.ListBranchesInput, func(*codecommit.ListBranchesOutput, bool) bool) error
ListBranchesPagesWithContext(aws.Context, *codecommit.ListBranchesInput, func(*codecommit.ListBranchesOutput, bool) bool, ...request.Option) error
ListPullRequests(*codecommit.ListPullRequestsInput) (*codecommit.ListPullRequestsOutput, error)
ListPullRequestsWithContext(aws.Context, *codecommit.ListPullRequestsInput, ...request.Option) (*codecommit.ListPullRequestsOutput, error)
ListPullRequestsRequest(*codecommit.ListPullRequestsInput) (*request.Request, *codecommit.ListPullRequestsOutput)
ListPullRequestsPages(*codecommit.ListPullRequestsInput, func(*codecommit.ListPullRequestsOutput, bool) bool) error
ListPullRequestsPagesWithContext(aws.Context, *codecommit.ListPullRequestsInput, func(*codecommit.ListPullRequestsOutput, bool) bool, ...request.Option) error
ListRepositories(*codecommit.ListRepositoriesInput) (*codecommit.ListRepositoriesOutput, error)
ListRepositoriesWithContext(aws.Context, *codecommit.ListRepositoriesInput, ...request.Option) (*codecommit.ListRepositoriesOutput, error)
ListRepositoriesRequest(*codecommit.ListRepositoriesInput) (*request.Request, *codecommit.ListRepositoriesOutput)
@@ -117,6 +169,26 @@ type CodeCommitAPI interface {
ListRepositoriesPages(*codecommit.ListRepositoriesInput, func(*codecommit.ListRepositoriesOutput, bool) bool) error
ListRepositoriesPagesWithContext(aws.Context, *codecommit.ListRepositoriesInput, func(*codecommit.ListRepositoriesOutput, bool) bool, ...request.Option) error
MergePullRequestByFastForward(*codecommit.MergePullRequestByFastForwardInput) (*codecommit.MergePullRequestByFastForwardOutput, error)
MergePullRequestByFastForwardWithContext(aws.Context, *codecommit.MergePullRequestByFastForwardInput, ...request.Option) (*codecommit.MergePullRequestByFastForwardOutput, error)
MergePullRequestByFastForwardRequest(*codecommit.MergePullRequestByFastForwardInput) (*request.Request, *codecommit.MergePullRequestByFastForwardOutput)
PostCommentForComparedCommit(*codecommit.PostCommentForComparedCommitInput) (*codecommit.PostCommentForComparedCommitOutput, error)
PostCommentForComparedCommitWithContext(aws.Context, *codecommit.PostCommentForComparedCommitInput, ...request.Option) (*codecommit.PostCommentForComparedCommitOutput, error)
PostCommentForComparedCommitRequest(*codecommit.PostCommentForComparedCommitInput) (*request.Request, *codecommit.PostCommentForComparedCommitOutput)
PostCommentForPullRequest(*codecommit.PostCommentForPullRequestInput) (*codecommit.PostCommentForPullRequestOutput, error)
PostCommentForPullRequestWithContext(aws.Context, *codecommit.PostCommentForPullRequestInput, ...request.Option) (*codecommit.PostCommentForPullRequestOutput, error)
PostCommentForPullRequestRequest(*codecommit.PostCommentForPullRequestInput) (*request.Request, *codecommit.PostCommentForPullRequestOutput)
PostCommentReply(*codecommit.PostCommentReplyInput) (*codecommit.PostCommentReplyOutput, error)
PostCommentReplyWithContext(aws.Context, *codecommit.PostCommentReplyInput, ...request.Option) (*codecommit.PostCommentReplyOutput, error)
PostCommentReplyRequest(*codecommit.PostCommentReplyInput) (*request.Request, *codecommit.PostCommentReplyOutput)
PutFile(*codecommit.PutFileInput) (*codecommit.PutFileOutput, error)
PutFileWithContext(aws.Context, *codecommit.PutFileInput, ...request.Option) (*codecommit.PutFileOutput, error)
PutFileRequest(*codecommit.PutFileInput) (*request.Request, *codecommit.PutFileOutput)
PutRepositoryTriggers(*codecommit.PutRepositoryTriggersInput) (*codecommit.PutRepositoryTriggersOutput, error)
PutRepositoryTriggersWithContext(aws.Context, *codecommit.PutRepositoryTriggersInput, ...request.Option) (*codecommit.PutRepositoryTriggersOutput, error)
PutRepositoryTriggersRequest(*codecommit.PutRepositoryTriggersInput) (*request.Request, *codecommit.PutRepositoryTriggersOutput)
@@ -125,10 +197,26 @@ type CodeCommitAPI interface {
TestRepositoryTriggersWithContext(aws.Context, *codecommit.TestRepositoryTriggersInput, ...request.Option) (*codecommit.TestRepositoryTriggersOutput, error)
TestRepositoryTriggersRequest(*codecommit.TestRepositoryTriggersInput) (*request.Request, *codecommit.TestRepositoryTriggersOutput)
UpdateComment(*codecommit.UpdateCommentInput) (*codecommit.UpdateCommentOutput, error)
UpdateCommentWithContext(aws.Context, *codecommit.UpdateCommentInput, ...request.Option) (*codecommit.UpdateCommentOutput, error)
UpdateCommentRequest(*codecommit.UpdateCommentInput) (*request.Request, *codecommit.UpdateCommentOutput)
UpdateDefaultBranch(*codecommit.UpdateDefaultBranchInput) (*codecommit.UpdateDefaultBranchOutput, error)
UpdateDefaultBranchWithContext(aws.Context, *codecommit.UpdateDefaultBranchInput, ...request.Option) (*codecommit.UpdateDefaultBranchOutput, error)
UpdateDefaultBranchRequest(*codecommit.UpdateDefaultBranchInput) (*request.Request, *codecommit.UpdateDefaultBranchOutput)
UpdatePullRequestDescription(*codecommit.UpdatePullRequestDescriptionInput) (*codecommit.UpdatePullRequestDescriptionOutput, error)
UpdatePullRequestDescriptionWithContext(aws.Context, *codecommit.UpdatePullRequestDescriptionInput, ...request.Option) (*codecommit.UpdatePullRequestDescriptionOutput, error)
UpdatePullRequestDescriptionRequest(*codecommit.UpdatePullRequestDescriptionInput) (*request.Request, *codecommit.UpdatePullRequestDescriptionOutput)
UpdatePullRequestStatus(*codecommit.UpdatePullRequestStatusInput) (*codecommit.UpdatePullRequestStatusOutput, error)
UpdatePullRequestStatusWithContext(aws.Context, *codecommit.UpdatePullRequestStatusInput, ...request.Option) (*codecommit.UpdatePullRequestStatusOutput, error)
UpdatePullRequestStatusRequest(*codecommit.UpdatePullRequestStatusInput) (*request.Request, *codecommit.UpdatePullRequestStatusOutput)
UpdatePullRequestTitle(*codecommit.UpdatePullRequestTitleInput) (*codecommit.UpdatePullRequestTitleOutput, error)
UpdatePullRequestTitleWithContext(aws.Context, *codecommit.UpdatePullRequestTitleInput, ...request.Option) (*codecommit.UpdatePullRequestTitleOutput, error)
UpdatePullRequestTitleRequest(*codecommit.UpdatePullRequestTitleInput) (*request.Request, *codecommit.UpdatePullRequestTitleOutput)
UpdateRepositoryDescription(*codecommit.UpdateRepositoryDescriptionInput) (*codecommit.UpdateRepositoryDescriptionOutput, error)
UpdateRepositoryDescriptionWithContext(aws.Context, *codecommit.UpdateRepositoryDescriptionInput, ...request.Option) (*codecommit.UpdateRepositoryDescriptionOutput, error)
UpdateRepositoryDescriptionRequest(*codecommit.UpdateRepositoryDescriptionInput) (*request.Request, *codecommit.UpdateRepositoryDescriptionOutput)
+74 -17
View File
@@ -12,19 +12,19 @@
// Repositories, by calling the following:
//
// * BatchGetRepositories, which returns information about one or more repositories
// associated with your AWS account
// associated with your AWS account.
//
// * CreateRepository, which creates an AWS CodeCommit repository
// * CreateRepository, which creates an AWS CodeCommit repository.
//
// * DeleteRepository, which deletes an AWS CodeCommit repository
// * DeleteRepository, which deletes an AWS CodeCommit repository.
//
// * GetRepository, which returns information about a specified repository
// * GetRepository, which returns information about a specified repository.
//
// * ListRepositories, which lists all AWS CodeCommit repositories associated
// with your AWS account
// with your AWS account.
//
// * UpdateRepositoryDescription, which sets or updates the description of
// the repository
// the repository.
//
// * UpdateRepositoryName, which changes the name of the repository. If you
// change the name of a repository, no other users of that repository will
@@ -32,36 +32,93 @@
//
// Branches, by calling the following:
//
// * CreateBranch, which creates a new branch in a specified repository
// * CreateBranch, which creates a new branch in a specified repository.
//
// * GetBranch, which returns information about a specified branch
// * DeleteBranch, which deletes the specified branch in a repository unless
// it is the default branch.
//
// * ListBranches, which lists all branches for a specified repository
// * GetBranch, which returns information about a specified branch.
//
// * UpdateDefaultBranch, which changes the default branch for a repository
// * ListBranches, which lists all branches for a specified repository.
//
// * UpdateDefaultBranch, which changes the default branch for a repository.
//
// Files, by calling the following:
//
// * PutFile, which adds or modifies a file in a specified repository and
// branch.
//
// Information about committed code in a repository, by calling the following:
//
// * GetBlob, which returns the base-64 encoded content of an individual
// Git blob object within a repository
// Git blob object within a repository.
//
// * GetCommit, which returns information about a commit, including commit
// messages and author and committer information
// messages and author and committer information.
//
// * GetDifferences, which returns information about the differences in a
// valid commit specifier (such as a branch, tag, HEAD, commit ID or other
// fully qualified reference)
// fully qualified reference).
//
// Pull requests, by calling the following:
//
// * CreatePullRequest, which creates a pull request in a specified repository.
//
// * DescribePullRequestEvents, which returns information about one or more
// pull request events.
//
// * GetCommentsForPullRequest, which returns information about comments
// on a specified pull request.
//
// * GetMergeConflicts, which returns information about merge conflicts between
// the source and destination branch in a pull request.
//
// * GetPullRequest, which returns information about a specified pull request.
//
// * ListPullRequests, which lists all pull requests for a repository.
//
// * MergePullRequestByFastForward, which merges the source destination branch
// of a pull request into the specified destination branch for that pull
// request using the fast-forward merge option.
//
// * PostCommentForPullRequest, which posts a comment to a pull request at
// the specified line, file, or request.
//
// * UpdatePullRequestDescription, which updates the description of a pull
// request.
//
// * UpdatePullRequestStatus, which updates the status of a pull request.
//
// * UpdatePullRequestTitle, which updates the title of a pull request.
//
// Information about comments in a repository, by calling the following:
//
// * DeleteCommentContent, which deletes the content of a comment on a commit
// in a repository.
//
// * GetComment, which returns information about a comment on a commit.
//
// * GetCommentsForComparedCommit, which returns information about comments
// on the comparison between two commit specifiers in a repository.
//
// * PostCommentForComparedCommit, which creates a comment on the comparison
// between two commit specifiers in a repository.
//
// * PostCommentReply, which creates a reply to a comment.
//
// * UpdateComment, which updates the content of a comment on a commit in
// a repository.
//
// Triggers, by calling the following:
//
// * GetRepositoryTriggers, which returns information about triggers configured
// for a repository
// for a repository.
//
// * PutRepositoryTriggers, which replaces all triggers for a repository
// and can be used to create or delete triggers
// and can be used to create or delete triggers.
//
// * TestRepositoryTriggers, which tests the functionality of a repository
// trigger by sending data to the trigger target
// trigger by sending data to the trigger target.
//
// For information about how to use AWS CodeCommit, see the AWS CodeCommit User
// Guide (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html).
@@ -73,7 +130,7 @@
//
// Using the Client
//
// To AWS CodeCommit with the SDK use the New function to create
// To contact AWS CodeCommit 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.
//
+460 -1
View File
@@ -4,6 +4,25 @@ package codecommit
const (
// ErrCodeActorDoesNotExistException for service response error code
// "ActorDoesNotExistException".
//
// The specified Amazon Resource Name (ARN) does not exist in the AWS account.
ErrCodeActorDoesNotExistException = "ActorDoesNotExistException"
// ErrCodeAuthorDoesNotExistException for service response error code
// "AuthorDoesNotExistException".
//
// The specified Amazon Resource Name (ARN) does not exist in the AWS account.
ErrCodeAuthorDoesNotExistException = "AuthorDoesNotExistException"
// ErrCodeBeforeCommitIdAndAfterCommitIdAreSameException for service response error code
// "BeforeCommitIdAndAfterCommitIdAreSameException".
//
// The before commit ID and the after commit ID are the same, which is not valid.
// The before commit ID and the after commit ID must be different commit IDs.
ErrCodeBeforeCommitIdAndAfterCommitIdAreSameException = "BeforeCommitIdAndAfterCommitIdAreSameException"
// ErrCodeBlobIdDoesNotExistException for service response error code
// "BlobIdDoesNotExistException".
//
@@ -28,12 +47,70 @@ const (
// The specified branch name already exists.
ErrCodeBranchNameExistsException = "BranchNameExistsException"
// ErrCodeBranchNameIsTagNameException for service response error code
// "BranchNameIsTagNameException".
//
// The specified branch name is not valid because it is a tag name. Type the
// name of a current branch in the repository. For a list of valid branch names,
// use ListBranches.
ErrCodeBranchNameIsTagNameException = "BranchNameIsTagNameException"
// ErrCodeBranchNameRequiredException for service response error code
// "BranchNameRequiredException".
//
// A branch name is required but was not specified.
ErrCodeBranchNameRequiredException = "BranchNameRequiredException"
// ErrCodeClientRequestTokenRequiredException for service response error code
// "ClientRequestTokenRequiredException".
//
// A client request token is required. A client request token is an unique,
// client-generated idempotency token that when provided in a request, ensures
// the request cannot be repeated with a changed parameter. If a request is
// received with the same parameters and a token is included, the request will
// return information about the initial request that used that token.
ErrCodeClientRequestTokenRequiredException = "ClientRequestTokenRequiredException"
// ErrCodeCommentContentRequiredException for service response error code
// "CommentContentRequiredException".
//
// The comment is empty. You must provide some content for a comment. The content
// cannot be null.
ErrCodeCommentContentRequiredException = "CommentContentRequiredException"
// ErrCodeCommentContentSizeLimitExceededException for service response error code
// "CommentContentSizeLimitExceededException".
//
// The comment is too large. Comments are limited to 1,000 characters.
ErrCodeCommentContentSizeLimitExceededException = "CommentContentSizeLimitExceededException"
// ErrCodeCommentDeletedException for service response error code
// "CommentDeletedException".
//
// This comment has already been deleted. You cannot edit or delete a deleted
// comment.
ErrCodeCommentDeletedException = "CommentDeletedException"
// ErrCodeCommentDoesNotExistException for service response error code
// "CommentDoesNotExistException".
//
// No comment exists with the provided ID. Verify that you have provided the
// correct ID, and then try again.
ErrCodeCommentDoesNotExistException = "CommentDoesNotExistException"
// ErrCodeCommentIdRequiredException for service response error code
// "CommentIdRequiredException".
//
// The comment ID is missing or null. A comment ID is required.
ErrCodeCommentIdRequiredException = "CommentIdRequiredException"
// ErrCodeCommentNotCreatedByCallerException for service response error code
// "CommentNotCreatedByCallerException".
//
// You cannot modify or delete this comment. Only comment authors can modify
// or delete their comments.
ErrCodeCommentNotCreatedByCallerException = "CommentNotCreatedByCallerException"
// ErrCodeCommitDoesNotExistException for service response error code
// "CommitDoesNotExistException".
//
@@ -53,12 +130,35 @@ const (
// A commit ID was not specified.
ErrCodeCommitIdRequiredException = "CommitIdRequiredException"
// ErrCodeCommitMessageLengthExceededException for service response error code
// "CommitMessageLengthExceededException".
//
// The commit message is too long. Provide a shorter string.
ErrCodeCommitMessageLengthExceededException = "CommitMessageLengthExceededException"
// ErrCodeCommitRequiredException for service response error code
// "CommitRequiredException".
//
// A commit was not specified.
ErrCodeCommitRequiredException = "CommitRequiredException"
// ErrCodeDefaultBranchCannotBeDeletedException for service response error code
// "DefaultBranchCannotBeDeletedException".
//
// The specified branch is the default branch for the repository, and cannot
// be deleted. To delete this branch, you must first set another branch as the
// default branch.
ErrCodeDefaultBranchCannotBeDeletedException = "DefaultBranchCannotBeDeletedException"
// ErrCodeDirectoryNameConflictsWithFileNameException for service response error code
// "DirectoryNameConflictsWithFileNameException".
//
// A file cannot be added to the repository because the specified path name
// has the same name as a file that already exists in this repository. Either
// provide a different name for the file, or specify a different path for the
// file.
ErrCodeDirectoryNameConflictsWithFileNameException = "DirectoryNameConflictsWithFileNameException"
// ErrCodeEncryptionIntegrityChecksFailedException for service response error code
// "EncryptionIntegrityChecksFailedException".
//
@@ -89,6 +189,30 @@ const (
// The encryption key is not available.
ErrCodeEncryptionKeyUnavailableException = "EncryptionKeyUnavailableException"
// ErrCodeFileContentRequiredException for service response error code
// "FileContentRequiredException".
//
// The file cannot be added because it is empty. Empty files cannot be added
// to the repository with this API.
ErrCodeFileContentRequiredException = "FileContentRequiredException"
// ErrCodeFileContentSizeLimitExceededException for service response error code
// "FileContentSizeLimitExceededException".
//
// The file cannot be added because it is too large. The maximum file size that
// can be added using PutFile is 6 MB. For files larger than 6 MB but smaller
// than 2 GB, add them using a Git client.
ErrCodeFileContentSizeLimitExceededException = "FileContentSizeLimitExceededException"
// ErrCodeFileNameConflictsWithDirectoryNameException for service response error code
// "FileNameConflictsWithDirectoryNameException".
//
// A file cannot be added to the repository because the specified file name
// has the same name as a directory in this repository. Either provide another
// name for the file, or add the file in a directory that does not match the
// file name.
ErrCodeFileNameConflictsWithDirectoryNameException = "FileNameConflictsWithDirectoryNameException"
// ErrCodeFileTooLargeException for service response error code
// "FileTooLargeException".
//
@@ -97,6 +221,28 @@ const (
// (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html).
ErrCodeFileTooLargeException = "FileTooLargeException"
// ErrCodeIdempotencyParameterMismatchException for service response error code
// "IdempotencyParameterMismatchException".
//
// The client request token is not valid. Either the token is not in a valid
// format, or the token has been used in a previous request and cannot be re-used.
ErrCodeIdempotencyParameterMismatchException = "IdempotencyParameterMismatchException"
// ErrCodeInvalidActorArnException for service response error code
// "InvalidActorArnException".
//
// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
// the full ARN for the user who initiated the change for the pull request,
// and then try again.
ErrCodeInvalidActorArnException = "InvalidActorArnException"
// ErrCodeInvalidAuthorArnException for service response error code
// "InvalidAuthorArnException".
//
// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided
// the full ARN for the author of the pull request, and then try again.
ErrCodeInvalidAuthorArnException = "InvalidAuthorArnException"
// ErrCodeInvalidBlobIdException for service response error code
// "InvalidBlobIdException".
//
@@ -106,9 +252,22 @@ const (
// ErrCodeInvalidBranchNameException for service response error code
// "InvalidBranchNameException".
//
// The specified branch name is not valid.
// The specified reference name is not valid.
ErrCodeInvalidBranchNameException = "InvalidBranchNameException"
// ErrCodeInvalidClientRequestTokenException for service response error code
// "InvalidClientRequestTokenException".
//
// The client request token is not valid.
ErrCodeInvalidClientRequestTokenException = "InvalidClientRequestTokenException"
// ErrCodeInvalidCommentIdException for service response error code
// "InvalidCommentIdException".
//
// The comment ID is not in a valid format. Make sure that you have provided
// the full comment ID.
ErrCodeInvalidCommentIdException = "InvalidCommentIdException"
// ErrCodeInvalidCommitException for service response error code
// "InvalidCommitException".
//
@@ -127,24 +286,125 @@ const (
// The specified continuation token is not valid.
ErrCodeInvalidContinuationTokenException = "InvalidContinuationTokenException"
// ErrCodeInvalidDescriptionException for service response error code
// "InvalidDescriptionException".
//
// The pull request description is not valid. Descriptions are limited to 1,000
// characters in length.
ErrCodeInvalidDescriptionException = "InvalidDescriptionException"
// ErrCodeInvalidDestinationCommitSpecifierException for service response error code
// "InvalidDestinationCommitSpecifierException".
//
// The destination commit specifier is not valid. You must provide a valid branch
// name, tag, or full commit ID.
ErrCodeInvalidDestinationCommitSpecifierException = "InvalidDestinationCommitSpecifierException"
// ErrCodeInvalidEmailException for service response error code
// "InvalidEmailException".
//
// The specified email address either contains one or more characters that are
// not allowed, or it exceeds the maximum number of characters allowed for an
// email address.
ErrCodeInvalidEmailException = "InvalidEmailException"
// ErrCodeInvalidFileLocationException for service response error code
// "InvalidFileLocationException".
//
// The location of the file is not valid. Make sure that you include the extension
// of the file as well as the file name.
ErrCodeInvalidFileLocationException = "InvalidFileLocationException"
// ErrCodeInvalidFileModeException for service response error code
// "InvalidFileModeException".
//
// The specified file mode permission is not valid. For a list of valid file
// mode permissions, see PutFile.
ErrCodeInvalidFileModeException = "InvalidFileModeException"
// ErrCodeInvalidFilePositionException for service response error code
// "InvalidFilePositionException".
//
// The position is not valid. Make sure that the line number exists in the version
// of the file you want to comment on.
ErrCodeInvalidFilePositionException = "InvalidFilePositionException"
// ErrCodeInvalidMaxResultsException for service response error code
// "InvalidMaxResultsException".
//
// The specified number of maximum results is not valid.
ErrCodeInvalidMaxResultsException = "InvalidMaxResultsException"
// ErrCodeInvalidMergeOptionException for service response error code
// "InvalidMergeOptionException".
//
// The specified merge option is not valid. The only valid value is FAST_FORWARD_MERGE.
ErrCodeInvalidMergeOptionException = "InvalidMergeOptionException"
// ErrCodeInvalidOrderException for service response error code
// "InvalidOrderException".
//
// The specified sort order is not valid.
ErrCodeInvalidOrderException = "InvalidOrderException"
// ErrCodeInvalidParentCommitIdException for service response error code
// "InvalidParentCommitIdException".
//
// The parent commit ID is not valid. The commit ID cannot be empty, and must
// match the head commit ID for the branch of the repository where you want
// to add or update a file.
ErrCodeInvalidParentCommitIdException = "InvalidParentCommitIdException"
// ErrCodeInvalidPathException for service response error code
// "InvalidPathException".
//
// The specified path is not valid.
ErrCodeInvalidPathException = "InvalidPathException"
// ErrCodeInvalidPullRequestEventTypeException for service response error code
// "InvalidPullRequestEventTypeException".
//
// The pull request event type is not valid.
ErrCodeInvalidPullRequestEventTypeException = "InvalidPullRequestEventTypeException"
// ErrCodeInvalidPullRequestIdException for service response error code
// "InvalidPullRequestIdException".
//
// The pull request ID is not valid. Make sure that you have provided the full
// ID and that the pull request is in the specified repository, and then try
// again.
ErrCodeInvalidPullRequestIdException = "InvalidPullRequestIdException"
// ErrCodeInvalidPullRequestStatusException for service response error code
// "InvalidPullRequestStatusException".
//
// The pull request status is not valid. The only valid values are OPEN and
// CLOSED.
ErrCodeInvalidPullRequestStatusException = "InvalidPullRequestStatusException"
// ErrCodeInvalidPullRequestStatusUpdateException for service response error code
// "InvalidPullRequestStatusUpdateException".
//
// The pull request status update is not valid. The only valid update is from
// OPEN to CLOSED.
ErrCodeInvalidPullRequestStatusUpdateException = "InvalidPullRequestStatusUpdateException"
// ErrCodeInvalidReferenceNameException for service response error code
// "InvalidReferenceNameException".
//
// The specified reference name format is not valid. Reference names must conform
// to the Git references format, for example refs/heads/master. For more information,
// see Git Internals - Git References (https://git-scm.com/book/en/v2/Git-Internals-Git-References)
// or consult your Git documentation.
ErrCodeInvalidReferenceNameException = "InvalidReferenceNameException"
// ErrCodeInvalidRelativeFileVersionEnumException for service response error code
// "InvalidRelativeFileVersionEnumException".
//
// Either the enum is not in a valid format, or the specified file version enum
// is not valid in respect to the current file version.
ErrCodeInvalidRelativeFileVersionEnumException = "InvalidRelativeFileVersionEnumException"
// ErrCodeInvalidRepositoryDescriptionException for service response error code
// "InvalidRepositoryDescriptionException".
//
@@ -207,12 +467,58 @@ const (
// The specified sort by value is not valid.
ErrCodeInvalidSortByException = "InvalidSortByException"
// ErrCodeInvalidSourceCommitSpecifierException for service response error code
// "InvalidSourceCommitSpecifierException".
//
// The source commit specifier is not valid. You must provide a valid branch
// name, tag, or full commit ID.
ErrCodeInvalidSourceCommitSpecifierException = "InvalidSourceCommitSpecifierException"
// ErrCodeInvalidTargetException for service response error code
// "InvalidTargetException".
//
// The target for the pull request is not valid. A target must contain the full
// values for the repository name, source branch, and destination branch for
// the pull request.
ErrCodeInvalidTargetException = "InvalidTargetException"
// ErrCodeInvalidTargetsException for service response error code
// "InvalidTargetsException".
//
// The targets for the pull request is not valid or not in a valid format. Targets
// are a list of target objects. Each target object must contain the full values
// for the repository name, source branch, and destination branch for a pull
// request.
ErrCodeInvalidTargetsException = "InvalidTargetsException"
// ErrCodeInvalidTitleException for service response error code
// "InvalidTitleException".
//
// The title of the pull request is not valid. Pull request titles cannot exceed
// 100 characters in length.
ErrCodeInvalidTitleException = "InvalidTitleException"
// ErrCodeManualMergeRequiredException for service response error code
// "ManualMergeRequiredException".
//
// The pull request cannot be merged automatically into the destination branch.
// You must manually merge the branches and resolve any conflicts.
ErrCodeManualMergeRequiredException = "ManualMergeRequiredException"
// ErrCodeMaximumBranchesExceededException for service response error code
// "MaximumBranchesExceededException".
//
// The number of branches for the trigger was exceeded.
ErrCodeMaximumBranchesExceededException = "MaximumBranchesExceededException"
// ErrCodeMaximumOpenPullRequestsExceededException for service response error code
// "MaximumOpenPullRequestsExceededException".
//
// You cannot create the pull request because the repository has too many open
// pull requests. The maximum number of open pull requests for a repository
// is 1,000. Close one or more open pull requests, and then try again.
ErrCodeMaximumOpenPullRequestsExceededException = "MaximumOpenPullRequestsExceededException"
// ErrCodeMaximumRepositoryNamesExceededException for service response error code
// "MaximumRepositoryNamesExceededException".
//
@@ -226,12 +532,106 @@ const (
// The number of triggers allowed for the repository was exceeded.
ErrCodeMaximumRepositoryTriggersExceededException = "MaximumRepositoryTriggersExceededException"
// ErrCodeMergeOptionRequiredException for service response error code
// "MergeOptionRequiredException".
//
// A merge option or stategy is required, and none was provided.
ErrCodeMergeOptionRequiredException = "MergeOptionRequiredException"
// ErrCodeMultipleRepositoriesInPullRequestException for service response error code
// "MultipleRepositoriesInPullRequestException".
//
// You cannot include more than one repository in a pull request. Make sure
// you have specified only one repository name in your request, and then try
// again.
ErrCodeMultipleRepositoriesInPullRequestException = "MultipleRepositoriesInPullRequestException"
// ErrCodeNameLengthExceededException for service response error code
// "NameLengthExceededException".
//
// The file name is not valid because it has exceeded the character limit for
// file names. File names, including the path to the file, cannot exceed the
// character limit.
ErrCodeNameLengthExceededException = "NameLengthExceededException"
// ErrCodeParentCommitDoesNotExistException for service response error code
// "ParentCommitDoesNotExistException".
//
// The parent commit ID is not valid. The specified parent commit ID does not
// exist in the specified branch of the repository.
ErrCodeParentCommitDoesNotExistException = "ParentCommitDoesNotExistException"
// ErrCodeParentCommitIdOutdatedException for service response error code
// "ParentCommitIdOutdatedException".
//
// The file could not be added because the provided parent commit ID is not
// the current tip of the specified branch. To view the full commit ID of the
// current head of the branch, use GetBranch.
ErrCodeParentCommitIdOutdatedException = "ParentCommitIdOutdatedException"
// ErrCodeParentCommitIdRequiredException for service response error code
// "ParentCommitIdRequiredException".
//
// A parent commit ID is required. To view the full commit ID of a branch in
// a repository, use GetBranch or a Git command (for example, git pull or git
// log).
ErrCodeParentCommitIdRequiredException = "ParentCommitIdRequiredException"
// ErrCodePathDoesNotExistException for service response error code
// "PathDoesNotExistException".
//
// The specified path does not exist.
ErrCodePathDoesNotExistException = "PathDoesNotExistException"
// ErrCodePathRequiredException for service response error code
// "PathRequiredException".
//
// The filePath for a location cannot be empty or null.
ErrCodePathRequiredException = "PathRequiredException"
// ErrCodePullRequestAlreadyClosedException for service response error code
// "PullRequestAlreadyClosedException".
//
// The pull request status cannot be updated because it is already closed.
ErrCodePullRequestAlreadyClosedException = "PullRequestAlreadyClosedException"
// ErrCodePullRequestDoesNotExistException for service response error code
// "PullRequestDoesNotExistException".
//
// The pull request ID could not be found. Make sure that you have specified
// the correct repository name and pull request ID, and then try again.
ErrCodePullRequestDoesNotExistException = "PullRequestDoesNotExistException"
// ErrCodePullRequestIdRequiredException for service response error code
// "PullRequestIdRequiredException".
//
// A pull request ID is required, but none was provided.
ErrCodePullRequestIdRequiredException = "PullRequestIdRequiredException"
// ErrCodePullRequestStatusRequiredException for service response error code
// "PullRequestStatusRequiredException".
//
// A pull request status is required, but none was provided.
ErrCodePullRequestStatusRequiredException = "PullRequestStatusRequiredException"
// ErrCodeReferenceDoesNotExistException for service response error code
// "ReferenceDoesNotExistException".
//
// The specified reference does not exist. You must provide a full commit ID.
ErrCodeReferenceDoesNotExistException = "ReferenceDoesNotExistException"
// ErrCodeReferenceNameRequiredException for service response error code
// "ReferenceNameRequiredException".
//
// A reference name is required, but none was provided.
ErrCodeReferenceNameRequiredException = "ReferenceNameRequiredException"
// ErrCodeReferenceTypeNotSupportedException for service response error code
// "ReferenceTypeNotSupportedException".
//
// The specified reference is not a supported type.
ErrCodeReferenceTypeNotSupportedException = "ReferenceTypeNotSupportedException"
// ErrCodeRepositoryDoesNotExistException for service response error code
// "RepositoryDoesNotExistException".
//
@@ -262,6 +662,14 @@ const (
// A repository names object is required but was not specified.
ErrCodeRepositoryNamesRequiredException = "RepositoryNamesRequiredException"
// ErrCodeRepositoryNotAssociatedWithPullRequestException for service response error code
// "RepositoryNotAssociatedWithPullRequestException".
//
// The repository does not contain any pull requests with that pull request
// ID. Check to make sure you have provided the correct repository name for
// the pull request.
ErrCodeRepositoryNotAssociatedWithPullRequestException = "RepositoryNotAssociatedWithPullRequestException"
// ErrCodeRepositoryTriggerBranchNameListRequiredException for service response error code
// "RepositoryTriggerBranchNameListRequiredException".
//
@@ -293,4 +701,55 @@ const (
//
// The list of triggers for the repository is required but was not specified.
ErrCodeRepositoryTriggersListRequiredException = "RepositoryTriggersListRequiredException"
// ErrCodeSameFileContentException for service response error code
// "SameFileContentException".
//
// The file was not added or updated because the content of the file is exactly
// the same as the content of that file in the repository and branch that you
// specified.
ErrCodeSameFileContentException = "SameFileContentException"
// ErrCodeSourceAndDestinationAreSameException for service response error code
// "SourceAndDestinationAreSameException".
//
// The source branch and the destination branch for the pull request are the
// same. You must specify different branches for the source and destination.
ErrCodeSourceAndDestinationAreSameException = "SourceAndDestinationAreSameException"
// ErrCodeTargetRequiredException for service response error code
// "TargetRequiredException".
//
// A pull request target is required. It cannot be empty or null. A pull request
// target must contain the full values for the repository name, source branch,
// and destination branch for the pull request.
ErrCodeTargetRequiredException = "TargetRequiredException"
// ErrCodeTargetsRequiredException for service response error code
// "TargetsRequiredException".
//
// An array of target objects is required. It cannot be empty or null.
ErrCodeTargetsRequiredException = "TargetsRequiredException"
// ErrCodeTipOfSourceReferenceIsDifferentException for service response error code
// "TipOfSourceReferenceIsDifferentException".
//
// The tip of the source branch in the destination repository does not match
// the tip of the source branch specified in your request. The pull request
// might have been updated. Make sure that you have the latest changes.
ErrCodeTipOfSourceReferenceIsDifferentException = "TipOfSourceReferenceIsDifferentException"
// ErrCodeTipsDivergenceExceededException for service response error code
// "TipsDivergenceExceededException".
//
// The divergence between the tips of the provided commit specifiers is too
// great to determine whether there might be any merge conflicts. Locally compare
// the specifiers using git diff or a diff tool.
ErrCodeTipsDivergenceExceededException = "TipsDivergenceExceededException"
// ErrCodeTitleRequiredException for service response error code
// "TitleRequiredException".
//
// A pull request title is required. It cannot be empty or null.
ErrCodeTitleRequiredException = "TitleRequiredException"
)
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More