mirror of https://github.com/kubernetes/kops.git
268 lines
11 KiB
Go
268 lines
11 KiB
Go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
|
|
|
package sqs
|
|
|
|
import (
|
|
"github.com/aws/aws-sdk-go/private/protocol"
|
|
)
|
|
|
|
const (
|
|
|
|
// ErrCodeBatchEntryIdsNotDistinct for service response error code
|
|
// "BatchEntryIdsNotDistinct".
|
|
//
|
|
// Two or more batch entries in the request have the same Id.
|
|
ErrCodeBatchEntryIdsNotDistinct = "BatchEntryIdsNotDistinct"
|
|
|
|
// ErrCodeBatchRequestTooLong for service response error code
|
|
// "BatchRequestTooLong".
|
|
//
|
|
// The length of all the messages put together is more than the limit.
|
|
ErrCodeBatchRequestTooLong = "BatchRequestTooLong"
|
|
|
|
// ErrCodeEmptyBatchRequest for service response error code
|
|
// "EmptyBatchRequest".
|
|
//
|
|
// The batch request doesn't contain any entries.
|
|
ErrCodeEmptyBatchRequest = "EmptyBatchRequest"
|
|
|
|
// ErrCodeInvalidAddress for service response error code
|
|
// "InvalidAddress".
|
|
//
|
|
// The accountId is invalid.
|
|
ErrCodeInvalidAddress = "InvalidAddress"
|
|
|
|
// ErrCodeInvalidAttributeName for service response error code
|
|
// "InvalidAttributeName".
|
|
//
|
|
// The specified attribute doesn't exist.
|
|
ErrCodeInvalidAttributeName = "InvalidAttributeName"
|
|
|
|
// ErrCodeInvalidAttributeValue for service response error code
|
|
// "InvalidAttributeValue".
|
|
//
|
|
// A queue attribute value is invalid.
|
|
ErrCodeInvalidAttributeValue = "InvalidAttributeValue"
|
|
|
|
// ErrCodeInvalidBatchEntryId for service response error code
|
|
// "InvalidBatchEntryId".
|
|
//
|
|
// The Id of a batch entry in a batch request doesn't abide by the specification.
|
|
ErrCodeInvalidBatchEntryId = "InvalidBatchEntryId"
|
|
|
|
// ErrCodeInvalidIdFormat for service response error code
|
|
// "InvalidIdFormat".
|
|
//
|
|
// The specified receipt handle isn't valid for the current version.
|
|
ErrCodeInvalidIdFormat = "InvalidIdFormat"
|
|
|
|
// ErrCodeInvalidMessageContents for service response error code
|
|
// "InvalidMessageContents".
|
|
//
|
|
// The message contains characters outside the allowed set.
|
|
ErrCodeInvalidMessageContents = "InvalidMessageContents"
|
|
|
|
// ErrCodeInvalidSecurity for service response error code
|
|
// "InvalidSecurity".
|
|
//
|
|
// When the request to a queue is not HTTPS and SigV4.
|
|
ErrCodeInvalidSecurity = "InvalidSecurity"
|
|
|
|
// ErrCodeKmsAccessDenied for service response error code
|
|
// "KmsAccessDenied".
|
|
//
|
|
// The caller doesn't have the required KMS access.
|
|
ErrCodeKmsAccessDenied = "KmsAccessDenied"
|
|
|
|
// ErrCodeKmsDisabled for service response error code
|
|
// "KmsDisabled".
|
|
//
|
|
// The request was denied due to request throttling.
|
|
ErrCodeKmsDisabled = "KmsDisabled"
|
|
|
|
// ErrCodeKmsInvalidKeyUsage for service response error code
|
|
// "KmsInvalidKeyUsage".
|
|
//
|
|
// The request was rejected for one of the following reasons:
|
|
//
|
|
// * The KeyUsage value of the KMS key is incompatible with the API operation.
|
|
//
|
|
// * The encryption algorithm or signing algorithm specified for the operation
|
|
// is incompatible with the type of key material in the KMS key (KeySpec).
|
|
ErrCodeKmsInvalidKeyUsage = "KmsInvalidKeyUsage"
|
|
|
|
// ErrCodeKmsInvalidState for service response error code
|
|
// "KmsInvalidState".
|
|
//
|
|
// The request was rejected because the state of the specified resource is not
|
|
// valid for this request.
|
|
ErrCodeKmsInvalidState = "KmsInvalidState"
|
|
|
|
// ErrCodeKmsNotFound for service response error code
|
|
// "KmsNotFound".
|
|
//
|
|
// The request was rejected because the specified entity or resource could not
|
|
// be found.
|
|
ErrCodeKmsNotFound = "KmsNotFound"
|
|
|
|
// ErrCodeKmsOptInRequired for service response error code
|
|
// "KmsOptInRequired".
|
|
//
|
|
// The request was rejected because the specified key policy isn't syntactically
|
|
// or semantically correct.
|
|
ErrCodeKmsOptInRequired = "KmsOptInRequired"
|
|
|
|
// ErrCodeKmsThrottled for service response error code
|
|
// "KmsThrottled".
|
|
//
|
|
// Amazon Web Services KMS throttles requests for the following conditions.
|
|
ErrCodeKmsThrottled = "KmsThrottled"
|
|
|
|
// ErrCodeMessageNotInflight for service response error code
|
|
// "MessageNotInflight".
|
|
//
|
|
// The specified message isn't in flight.
|
|
ErrCodeMessageNotInflight = "MessageNotInflight"
|
|
|
|
// ErrCodeOverLimit for service response error code
|
|
// "OverLimit".
|
|
//
|
|
// The specified action violates a limit. For example, ReceiveMessage returns
|
|
// this error if the maximum number of in flight messages is reached and AddPermission
|
|
// returns this error if the maximum number of permissions for the queue is
|
|
// reached.
|
|
ErrCodeOverLimit = "OverLimit"
|
|
|
|
// ErrCodePurgeQueueInProgress for service response error code
|
|
// "PurgeQueueInProgress".
|
|
//
|
|
// Indicates that the specified queue previously received a PurgeQueue request
|
|
// within the last 60 seconds (the time it can take to delete the messages in
|
|
// the queue).
|
|
ErrCodePurgeQueueInProgress = "PurgeQueueInProgress"
|
|
|
|
// ErrCodeQueueDeletedRecently for service response error code
|
|
// "QueueDeletedRecently".
|
|
//
|
|
// You must wait 60 seconds after deleting a queue before you can create another
|
|
// queue with the same name.
|
|
ErrCodeQueueDeletedRecently = "QueueDeletedRecently"
|
|
|
|
// ErrCodeQueueDoesNotExist for service response error code
|
|
// "QueueDoesNotExist".
|
|
//
|
|
// The specified queue doesn't exist.
|
|
ErrCodeQueueDoesNotExist = "QueueDoesNotExist"
|
|
|
|
// ErrCodeQueueNameExists for service response error code
|
|
// "QueueNameExists".
|
|
//
|
|
// A queue with this name already exists. Amazon SQS returns this error only
|
|
// if the request includes attributes whose values differ from those of the
|
|
// existing queue.
|
|
ErrCodeQueueNameExists = "QueueNameExists"
|
|
|
|
// ErrCodeReceiptHandleIsInvalid for service response error code
|
|
// "ReceiptHandleIsInvalid".
|
|
//
|
|
// The specified receipt handle isn't valid.
|
|
ErrCodeReceiptHandleIsInvalid = "ReceiptHandleIsInvalid"
|
|
|
|
// ErrCodeRequestThrottled for service response error code
|
|
// "RequestThrottled".
|
|
//
|
|
// The request was denied due to request throttling.
|
|
//
|
|
// * The rate of requests per second exceeds the Amazon Web Services KMS
|
|
// request quota for an account and Region.
|
|
//
|
|
// * A burst or sustained high rate of requests to change the state of the
|
|
// same KMS key. This condition is often known as a "hot key."
|
|
//
|
|
// * Requests for operations on KMS keys in a Amazon Web Services CloudHSM
|
|
// key store might be throttled at a lower-than-expected rate when the Amazon
|
|
// Web Services CloudHSM cluster associated with the Amazon Web Services
|
|
// CloudHSM key store is processing numerous commands, including those unrelated
|
|
// to the Amazon Web Services CloudHSM key store.
|
|
ErrCodeRequestThrottled = "RequestThrottled"
|
|
|
|
// ErrCodeResourceNotFoundException for service response error code
|
|
// "ResourceNotFoundException".
|
|
//
|
|
// One or more specified resources don't exist.
|
|
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
|
|
|
|
// ErrCodeTooManyEntriesInBatchRequest for service response error code
|
|
// "TooManyEntriesInBatchRequest".
|
|
//
|
|
// The batch request contains more entries than permissible.
|
|
ErrCodeTooManyEntriesInBatchRequest = "TooManyEntriesInBatchRequest"
|
|
|
|
// ErrCodeUnsupportedOperation for service response error code
|
|
// "UnsupportedOperation".
|
|
//
|
|
// Error code 400. Unsupported operation.
|
|
ErrCodeUnsupportedOperation = "UnsupportedOperation"
|
|
)
|
|
|
|
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
|
|
"BatchEntryIdsNotDistinct": newErrorBatchEntryIdsNotDistinct,
|
|
"BatchRequestTooLong": newErrorBatchRequestTooLong,
|
|
"EmptyBatchRequest": newErrorEmptyBatchRequest,
|
|
"InvalidAddress": newErrorInvalidAddress,
|
|
"InvalidAttributeName": newErrorInvalidAttributeName,
|
|
"InvalidAttributeValue": newErrorInvalidAttributeValue,
|
|
"InvalidBatchEntryId": newErrorInvalidBatchEntryId,
|
|
"InvalidIdFormat": newErrorInvalidIdFormat,
|
|
"InvalidMessageContents": newErrorInvalidMessageContents,
|
|
"InvalidSecurity": newErrorInvalidSecurity,
|
|
"KmsAccessDenied": newErrorKmsAccessDenied,
|
|
"KmsDisabled": newErrorKmsDisabled,
|
|
"KmsInvalidKeyUsage": newErrorKmsInvalidKeyUsage,
|
|
"KmsInvalidState": newErrorKmsInvalidState,
|
|
"KmsNotFound": newErrorKmsNotFound,
|
|
"KmsOptInRequired": newErrorKmsOptInRequired,
|
|
"KmsThrottled": newErrorKmsThrottled,
|
|
"MessageNotInflight": newErrorMessageNotInflight,
|
|
"OverLimit": newErrorOverLimit,
|
|
"PurgeQueueInProgress": newErrorPurgeQueueInProgress,
|
|
"QueueDeletedRecently": newErrorQueueDeletedRecently,
|
|
"QueueDoesNotExist": newErrorQueueDoesNotExist,
|
|
"QueueNameExists": newErrorQueueNameExists,
|
|
"ReceiptHandleIsInvalid": newErrorReceiptHandleIsInvalid,
|
|
"RequestThrottled": newErrorRequestThrottled,
|
|
"ResourceNotFoundException": newErrorResourceNotFoundException,
|
|
"TooManyEntriesInBatchRequest": newErrorTooManyEntriesInBatchRequest,
|
|
"UnsupportedOperation": newErrorUnsupportedOperation,
|
|
}
|
|
var queryExceptionFromCode = map[string]func(protocol.ResponseMetadata, string) error{
|
|
"BatchEntryIdsNotDistinct": newQueryCompatibleErrorBatchEntryIdsNotDistinct,
|
|
"BatchRequestTooLong": newQueryCompatibleErrorBatchRequestTooLong,
|
|
"EmptyBatchRequest": newQueryCompatibleErrorEmptyBatchRequest,
|
|
"InvalidAddress": newQueryCompatibleErrorInvalidAddress,
|
|
"InvalidAttributeName": newQueryCompatibleErrorInvalidAttributeName,
|
|
"InvalidAttributeValue": newQueryCompatibleErrorInvalidAttributeValue,
|
|
"InvalidBatchEntryId": newQueryCompatibleErrorInvalidBatchEntryId,
|
|
"InvalidIdFormat": newQueryCompatibleErrorInvalidIdFormat,
|
|
"InvalidMessageContents": newQueryCompatibleErrorInvalidMessageContents,
|
|
"InvalidSecurity": newQueryCompatibleErrorInvalidSecurity,
|
|
"KmsAccessDenied": newQueryCompatibleErrorKmsAccessDenied,
|
|
"KmsDisabled": newQueryCompatibleErrorKmsDisabled,
|
|
"KmsInvalidKeyUsage": newQueryCompatibleErrorKmsInvalidKeyUsage,
|
|
"KmsInvalidState": newQueryCompatibleErrorKmsInvalidState,
|
|
"KmsNotFound": newQueryCompatibleErrorKmsNotFound,
|
|
"KmsOptInRequired": newQueryCompatibleErrorKmsOptInRequired,
|
|
"KmsThrottled": newQueryCompatibleErrorKmsThrottled,
|
|
"MessageNotInflight": newQueryCompatibleErrorMessageNotInflight,
|
|
"OverLimit": newQueryCompatibleErrorOverLimit,
|
|
"PurgeQueueInProgress": newQueryCompatibleErrorPurgeQueueInProgress,
|
|
"QueueDeletedRecently": newQueryCompatibleErrorQueueDeletedRecently,
|
|
"QueueDoesNotExist": newQueryCompatibleErrorQueueDoesNotExist,
|
|
"QueueNameExists": newQueryCompatibleErrorQueueNameExists,
|
|
"ReceiptHandleIsInvalid": newQueryCompatibleErrorReceiptHandleIsInvalid,
|
|
"RequestThrottled": newQueryCompatibleErrorRequestThrottled,
|
|
"ResourceNotFoundException": newQueryCompatibleErrorResourceNotFoundException,
|
|
"TooManyEntriesInBatchRequest": newQueryCompatibleErrorTooManyEntriesInBatchRequest,
|
|
"UnsupportedOperation": newQueryCompatibleErrorUnsupportedOperation,
|
|
}
|