1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package appconfig
4
5import (
6	"github.com/aws/aws-sdk-go/private/protocol"
7)
8
9const (
10
11	// ErrCodeBadRequestException for service response error code
12	// "BadRequestException".
13	//
14	// The input fails to satisfy the constraints specified by an AWS service.
15	ErrCodeBadRequestException = "BadRequestException"
16
17	// ErrCodeConflictException for service response error code
18	// "ConflictException".
19	//
20	// The request could not be processed because of conflict in the current state
21	// of the resource.
22	ErrCodeConflictException = "ConflictException"
23
24	// ErrCodeInternalServerException for service response error code
25	// "InternalServerException".
26	//
27	// There was an internal failure in the AppConfig service.
28	ErrCodeInternalServerException = "InternalServerException"
29
30	// ErrCodePayloadTooLargeException for service response error code
31	// "PayloadTooLargeException".
32	//
33	// The configuration size is too large.
34	ErrCodePayloadTooLargeException = "PayloadTooLargeException"
35
36	// ErrCodeResourceNotFoundException for service response error code
37	// "ResourceNotFoundException".
38	//
39	// The requested resource could not be found.
40	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
41
42	// ErrCodeServiceQuotaExceededException for service response error code
43	// "ServiceQuotaExceededException".
44	//
45	// The number of hosted configuration versions exceeds the limit for the AppConfig
46	// configuration store. Delete one or more versions and try again.
47	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
48)
49
50var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
51	"BadRequestException":           newErrorBadRequestException,
52	"ConflictException":             newErrorConflictException,
53	"InternalServerException":       newErrorInternalServerException,
54	"PayloadTooLargeException":      newErrorPayloadTooLargeException,
55	"ResourceNotFoundException":     newErrorResourceNotFoundException,
56	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
57}
58