1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package pi 4 5import ( 6 "github.com/aws/aws-sdk-go/private/protocol" 7) 8 9const ( 10 11 // ErrCodeInternalServiceError for service response error code 12 // "InternalServiceError". 13 // 14 // The request failed due to an unknown error. 15 ErrCodeInternalServiceError = "InternalServiceError" 16 17 // ErrCodeInvalidArgumentException for service response error code 18 // "InvalidArgumentException". 19 // 20 // One of the arguments provided is invalid for this request. 21 ErrCodeInvalidArgumentException = "InvalidArgumentException" 22 23 // ErrCodeNotAuthorizedException for service response error code 24 // "NotAuthorizedException". 25 // 26 // The user is not authorized to perform this request. 27 ErrCodeNotAuthorizedException = "NotAuthorizedException" 28) 29 30var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 31 "InternalServiceError": newErrorInternalServiceError, 32 "InvalidArgumentException": newErrorInvalidArgumentException, 33 "NotAuthorizedException": newErrorNotAuthorizedException, 34} 35