github.com/aavshr/aws-sdk-go@v1.41.3/service/migrationhubconfig/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package migrationhubconfig 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 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 // ErrCodeDryRunOperation for service response error code 18 // "DryRunOperation". 19 // 20 // Exception raised to indicate that authorization of an action was successful, 21 // when the DryRun flag is set to true. 22 ErrCodeDryRunOperation = "DryRunOperation" 23 24 // ErrCodeInternalServerError for service response error code 25 // "InternalServerError". 26 // 27 // Exception raised when an internal, configuration, or dependency error is 28 // encountered. 29 ErrCodeInternalServerError = "InternalServerError" 30 31 // ErrCodeInvalidInputException for service response error code 32 // "InvalidInputException". 33 // 34 // Exception raised when the provided input violates a policy constraint or 35 // is entered in the wrong format or data type. 36 ErrCodeInvalidInputException = "InvalidInputException" 37 38 // ErrCodeServiceUnavailableException for service response error code 39 // "ServiceUnavailableException". 40 // 41 // Exception raised when a request fails due to temporary unavailability of 42 // the service. 43 ErrCodeServiceUnavailableException = "ServiceUnavailableException" 44 45 // ErrCodeThrottlingException for service response error code 46 // "ThrottlingException". 47 // 48 // The request was denied due to request throttling. 49 ErrCodeThrottlingException = "ThrottlingException" 50 ) 51 52 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 53 "AccessDeniedException": newErrorAccessDeniedException, 54 "DryRunOperation": newErrorDryRunOperation, 55 "InternalServerError": newErrorInternalServerError, 56 "InvalidInputException": newErrorInvalidInputException, 57 "ServiceUnavailableException": newErrorServiceUnavailableException, 58 "ThrottlingException": newErrorThrottlingException, 59 }