1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package glacier
4
5import (
6	"github.com/aws/aws-sdk-go/private/protocol"
7)
8
9const (
10
11	// ErrCodeInsufficientCapacityException for service response error code
12	// "InsufficientCapacityException".
13	//
14	// Returned if there is insufficient capacity to process this expedited request.
15	// This error only applies to expedited retrievals and not to standard or bulk
16	// retrievals.
17	ErrCodeInsufficientCapacityException = "InsufficientCapacityException"
18
19	// ErrCodeInvalidParameterValueException for service response error code
20	// "InvalidParameterValueException".
21	//
22	// Returned if a parameter of the request is incorrectly specified.
23	ErrCodeInvalidParameterValueException = "InvalidParameterValueException"
24
25	// ErrCodeLimitExceededException for service response error code
26	// "LimitExceededException".
27	//
28	// Returned if the request results in a vault or account limit being exceeded.
29	ErrCodeLimitExceededException = "LimitExceededException"
30
31	// ErrCodeMissingParameterValueException for service response error code
32	// "MissingParameterValueException".
33	//
34	// Returned if a required header or parameter is missing from the request.
35	ErrCodeMissingParameterValueException = "MissingParameterValueException"
36
37	// ErrCodePolicyEnforcedException for service response error code
38	// "PolicyEnforcedException".
39	//
40	// Returned if a retrieval job would exceed the current data policy's retrieval
41	// rate limit. For more information about data retrieval policies,
42	ErrCodePolicyEnforcedException = "PolicyEnforcedException"
43
44	// ErrCodeRequestTimeoutException for service response error code
45	// "RequestTimeoutException".
46	//
47	// Returned if, when uploading an archive, Amazon S3 Glacier times out while
48	// receiving the upload.
49	ErrCodeRequestTimeoutException = "RequestTimeoutException"
50
51	// ErrCodeResourceNotFoundException for service response error code
52	// "ResourceNotFoundException".
53	//
54	// Returned if the specified resource (such as a vault, upload ID, or job ID)
55	// doesn't exist.
56	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
57
58	// ErrCodeServiceUnavailableException for service response error code
59	// "ServiceUnavailableException".
60	//
61	// Returned if the service cannot complete the request.
62	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
63)
64
65var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
66	"InsufficientCapacityException":  newErrorInsufficientCapacityException,
67	"InvalidParameterValueException": newErrorInvalidParameterValueException,
68	"LimitExceededException":         newErrorLimitExceededException,
69	"MissingParameterValueException": newErrorMissingParameterValueException,
70	"PolicyEnforcedException":        newErrorPolicyEnforcedException,
71	"RequestTimeoutException":        newErrorRequestTimeoutException,
72	"ResourceNotFoundException":      newErrorResourceNotFoundException,
73	"ServiceUnavailableException":    newErrorServiceUnavailableException,
74}
75