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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package firehose
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeConcurrentModificationException for service response error code
    12  	// "ConcurrentModificationException".
    13  	//
    14  	// Another modification has already happened. Fetch VersionId again and use
    15  	// it to update the destination.
    16  	ErrCodeConcurrentModificationException = "ConcurrentModificationException"
    17  
    18  	// ErrCodeInvalidArgumentException for service response error code
    19  	// "InvalidArgumentException".
    20  	//
    21  	// The specified input parameter has a value that is not valid.
    22  	ErrCodeInvalidArgumentException = "InvalidArgumentException"
    23  
    24  	// ErrCodeInvalidKMSResourceException for service response error code
    25  	// "InvalidKMSResourceException".
    26  	//
    27  	// Kinesis Data Firehose throws this exception when an attempt to put records
    28  	// or to start or stop delivery stream encryption fails. This happens when the
    29  	// KMS service throws one of the following exception types: AccessDeniedException,
    30  	// InvalidStateException, DisabledException, or NotFoundException.
    31  	ErrCodeInvalidKMSResourceException = "InvalidKMSResourceException"
    32  
    33  	// ErrCodeLimitExceededException for service response error code
    34  	// "LimitExceededException".
    35  	//
    36  	// You have already reached the limit for a requested resource.
    37  	ErrCodeLimitExceededException = "LimitExceededException"
    38  
    39  	// ErrCodeResourceInUseException for service response error code
    40  	// "ResourceInUseException".
    41  	//
    42  	// The resource is already in use and not available for this operation.
    43  	ErrCodeResourceInUseException = "ResourceInUseException"
    44  
    45  	// ErrCodeResourceNotFoundException for service response error code
    46  	// "ResourceNotFoundException".
    47  	//
    48  	// The specified resource could not be found.
    49  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    50  
    51  	// ErrCodeServiceUnavailableException for service response error code
    52  	// "ServiceUnavailableException".
    53  	//
    54  	// The service is unavailable. Back off and retry the operation. If you continue
    55  	// to see the exception, throughput limits for the delivery stream may have
    56  	// been exceeded. For more information about limits and how to request an increase,
    57  	// see Amazon Kinesis Data Firehose Limits (https://docs.aws.amazon.com/firehose/latest/dev/limits.html).
    58  	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
    59  )
    60  
    61  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    62  	"ConcurrentModificationException": newErrorConcurrentModificationException,
    63  	"InvalidArgumentException":        newErrorInvalidArgumentException,
    64  	"InvalidKMSResourceException":     newErrorInvalidKMSResourceException,
    65  	"LimitExceededException":          newErrorLimitExceededException,
    66  	"ResourceInUseException":          newErrorResourceInUseException,
    67  	"ResourceNotFoundException":       newErrorResourceNotFoundException,
    68  	"ServiceUnavailableException":     newErrorServiceUnavailableException,
    69  }