1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package computeoptimizer
4
5import (
6	"github.com/aws/aws-sdk-go/private/protocol"
7)
8
9const (
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	// ErrCodeInternalServerException for service response error code
18	// "InternalServerException".
19	//
20	// An internal error has occurred. Try your call again.
21	ErrCodeInternalServerException = "InternalServerException"
22
23	// ErrCodeInvalidParameterValueException for service response error code
24	// "InvalidParameterValueException".
25	//
26	// An invalid or out-of-range value was supplied for the input parameter.
27	ErrCodeInvalidParameterValueException = "InvalidParameterValueException"
28
29	// ErrCodeLimitExceededException for service response error code
30	// "LimitExceededException".
31	//
32	// The request exceeds a limit of the service.
33	ErrCodeLimitExceededException = "LimitExceededException"
34
35	// ErrCodeMissingAuthenticationToken for service response error code
36	// "MissingAuthenticationToken".
37	//
38	// The request must contain either a valid (registered) AWS access key ID or
39	// X.509 certificate.
40	ErrCodeMissingAuthenticationToken = "MissingAuthenticationToken"
41
42	// ErrCodeOptInRequiredException for service response error code
43	// "OptInRequiredException".
44	//
45	// The account is not opted in to AWS Compute Optimizer.
46	ErrCodeOptInRequiredException = "OptInRequiredException"
47
48	// ErrCodeResourceNotFoundException for service response error code
49	// "ResourceNotFoundException".
50	//
51	// A resource that is required for the action doesn't exist.
52	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
53
54	// ErrCodeServiceUnavailableException for service response error code
55	// "ServiceUnavailableException".
56	//
57	// The request has failed due to a temporary failure of the server.
58	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
59
60	// ErrCodeThrottlingException for service response error code
61	// "ThrottlingException".
62	//
63	// The request was denied due to request throttling.
64	ErrCodeThrottlingException = "ThrottlingException"
65)
66
67var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
68	"AccessDeniedException":          newErrorAccessDeniedException,
69	"InternalServerException":        newErrorInternalServerException,
70	"InvalidParameterValueException": newErrorInvalidParameterValueException,
71	"LimitExceededException":         newErrorLimitExceededException,
72	"MissingAuthenticationToken":     newErrorMissingAuthenticationToken,
73	"OptInRequiredException":         newErrorOptInRequiredException,
74	"ResourceNotFoundException":      newErrorResourceNotFoundException,
75	"ServiceUnavailableException":    newErrorServiceUnavailableException,
76	"ThrottlingException":            newErrorThrottlingException,
77}
78