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