mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00

AWS recently launched a new version of the EC2 Instance Metadata Service, which is used to provide credentials to the awslogs driver when running on Amazon EC2. This new version of the IMDS adds defense-in-depth mechanisms against open firewalls, reverse proxies, and SSRF vulnerabilities and is generally an improvement over the previous version. An updated version of the AWS SDK is able to handle the both the previous version and the new version of the IMDS and functions when either is enabled. More information about IMDSv2 is available at the following links: * https://aws.amazon.com/blogs/security/defense-in-depth-open-firewalls-reverse-proxies-ssrf-vulnerabilities-ec2-instance-metadata-service/ * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html Closes https://github.com/moby/moby/issues/40422 Signed-off-by: Samuel Karp <skarp@amazon.com>
95 lines
3.8 KiB
Go
95 lines
3.8 KiB
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
|
|
|
package cloudwatchlogs
|
|
|
|
import (
|
|
"github.com/aws/aws-sdk-go/private/protocol"
|
|
)
|
|
|
|
const (
|
|
|
|
// ErrCodeDataAlreadyAcceptedException for service response error code
|
|
// "DataAlreadyAcceptedException".
|
|
//
|
|
// The event was already logged.
|
|
ErrCodeDataAlreadyAcceptedException = "DataAlreadyAcceptedException"
|
|
|
|
// ErrCodeInvalidOperationException for service response error code
|
|
// "InvalidOperationException".
|
|
//
|
|
// The operation is not valid on the specified resource.
|
|
ErrCodeInvalidOperationException = "InvalidOperationException"
|
|
|
|
// ErrCodeInvalidParameterException for service response error code
|
|
// "InvalidParameterException".
|
|
//
|
|
// A parameter is specified incorrectly.
|
|
ErrCodeInvalidParameterException = "InvalidParameterException"
|
|
|
|
// ErrCodeInvalidSequenceTokenException for service response error code
|
|
// "InvalidSequenceTokenException".
|
|
//
|
|
// The sequence token is not valid. You can get the correct sequence token in
|
|
// the expectedSequenceToken field in the InvalidSequenceTokenException message.
|
|
ErrCodeInvalidSequenceTokenException = "InvalidSequenceTokenException"
|
|
|
|
// ErrCodeLimitExceededException for service response error code
|
|
// "LimitExceededException".
|
|
//
|
|
// You have reached the maximum number of resources that can be created.
|
|
ErrCodeLimitExceededException = "LimitExceededException"
|
|
|
|
// ErrCodeMalformedQueryException for service response error code
|
|
// "MalformedQueryException".
|
|
//
|
|
// The query string is not valid. Details about this error are displayed in
|
|
// a QueryCompileError object. For more information, see .
|
|
//
|
|
// For more information about valid query syntax, see CloudWatch Logs Insights
|
|
// Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
|
|
ErrCodeMalformedQueryException = "MalformedQueryException"
|
|
|
|
// ErrCodeOperationAbortedException for service response error code
|
|
// "OperationAbortedException".
|
|
//
|
|
// Multiple requests to update the same resource were in conflict.
|
|
ErrCodeOperationAbortedException = "OperationAbortedException"
|
|
|
|
// ErrCodeResourceAlreadyExistsException for service response error code
|
|
// "ResourceAlreadyExistsException".
|
|
//
|
|
// The specified resource already exists.
|
|
ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
|
|
|
|
// ErrCodeResourceNotFoundException for service response error code
|
|
// "ResourceNotFoundException".
|
|
//
|
|
// The specified resource does not exist.
|
|
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
|
|
|
|
// ErrCodeServiceUnavailableException for service response error code
|
|
// "ServiceUnavailableException".
|
|
//
|
|
// The service cannot complete the request.
|
|
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
|
|
|
|
// ErrCodeUnrecognizedClientException for service response error code
|
|
// "UnrecognizedClientException".
|
|
//
|
|
// The most likely cause is an invalid AWS access key ID or secret key.
|
|
ErrCodeUnrecognizedClientException = "UnrecognizedClientException"
|
|
)
|
|
|
|
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
|
|
"DataAlreadyAcceptedException": newErrorDataAlreadyAcceptedException,
|
|
"InvalidOperationException": newErrorInvalidOperationException,
|
|
"InvalidParameterException": newErrorInvalidParameterException,
|
|
"InvalidSequenceTokenException": newErrorInvalidSequenceTokenException,
|
|
"LimitExceededException": newErrorLimitExceededException,
|
|
"MalformedQueryException": newErrorMalformedQueryException,
|
|
"OperationAbortedException": newErrorOperationAbortedException,
|
|
"ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException,
|
|
"ResourceNotFoundException": newErrorResourceNotFoundException,
|
|
"ServiceUnavailableException": newErrorServiceUnavailableException,
|
|
"UnrecognizedClientException": newErrorUnrecognizedClientException,
|
|
}
|