github.com/aavshr/aws-sdk-go@v1.41.3/service/ebs/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package ebs
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAccessDeniedException for service response error code
    12  	// "AccessDeniedException".
    13  	//
    14  	// You do not have sufficient access to perform this action.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeConcurrentLimitExceededException for service response error code
    18  	// "ConcurrentLimitExceededException".
    19  	//
    20  	// You have reached the limit for concurrent API requests. For more information,
    21  	// see Optimizing performance of the EBS direct APIs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapi-performance)
    22  	// in the Amazon Elastic Compute Cloud User Guide.
    23  	ErrCodeConcurrentLimitExceededException = "ConcurrentLimitExceededException"
    24  
    25  	// ErrCodeConflictException for service response error code
    26  	// "ConflictException".
    27  	//
    28  	// The request uses the same client token as a previous, but non-identical request.
    29  	ErrCodeConflictException = "ConflictException"
    30  
    31  	// ErrCodeInternalServerException for service response error code
    32  	// "InternalServerException".
    33  	//
    34  	// An internal error has occurred.
    35  	ErrCodeInternalServerException = "InternalServerException"
    36  
    37  	// ErrCodeRequestThrottledException for service response error code
    38  	// "RequestThrottledException".
    39  	//
    40  	// The number of API requests has exceed the maximum allowed API request throttling
    41  	// limit.
    42  	ErrCodeRequestThrottledException = "RequestThrottledException"
    43  
    44  	// ErrCodeResourceNotFoundException for service response error code
    45  	// "ResourceNotFoundException".
    46  	//
    47  	// The specified resource does not exist.
    48  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    49  
    50  	// ErrCodeServiceQuotaExceededException for service response error code
    51  	// "ServiceQuotaExceededException".
    52  	//
    53  	// Your current service quotas do not allow you to perform this action.
    54  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    55  
    56  	// ErrCodeValidationException for service response error code
    57  	// "ValidationException".
    58  	//
    59  	// The input fails to satisfy the constraints of the EBS direct APIs.
    60  	ErrCodeValidationException = "ValidationException"
    61  )
    62  
    63  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    64  	"AccessDeniedException":            newErrorAccessDeniedException,
    65  	"ConcurrentLimitExceededException": newErrorConcurrentLimitExceededException,
    66  	"ConflictException":                newErrorConflictException,
    67  	"InternalServerException":          newErrorInternalServerException,
    68  	"RequestThrottledException":        newErrorRequestThrottledException,
    69  	"ResourceNotFoundException":        newErrorResourceNotFoundException,
    70  	"ServiceQuotaExceededException":    newErrorServiceQuotaExceededException,
    71  	"ValidationException":              newErrorValidationException,
    72  }