github.com/aavshr/aws-sdk-go@v1.41.3/service/migrationhub/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package migrationhub
     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 a successfully authorized action when the DryRun
    21  	// flag is set to "true".
    22  	ErrCodeDryRunOperation = "DryRunOperation"
    23  
    24  	// ErrCodeHomeRegionNotSetException for service response error code
    25  	// "HomeRegionNotSetException".
    26  	//
    27  	// The home region is not set. Set the home region to continue.
    28  	ErrCodeHomeRegionNotSetException = "HomeRegionNotSetException"
    29  
    30  	// ErrCodeInternalServerError for service response error code
    31  	// "InternalServerError".
    32  	//
    33  	// Exception raised when an internal, configuration, or dependency error is
    34  	// encountered.
    35  	ErrCodeInternalServerError = "InternalServerError"
    36  
    37  	// ErrCodeInvalidInputException for service response error code
    38  	// "InvalidInputException".
    39  	//
    40  	// Exception raised when the provided input violates a policy constraint or
    41  	// is entered in the wrong format or data type.
    42  	ErrCodeInvalidInputException = "InvalidInputException"
    43  
    44  	// ErrCodePolicyErrorException for service response error code
    45  	// "PolicyErrorException".
    46  	//
    47  	// Exception raised when there are problems accessing Application Discovery
    48  	// Service (Application Discovery Service); most likely due to a misconfigured
    49  	// policy or the migrationhub-discovery role is missing or not configured correctly.
    50  	ErrCodePolicyErrorException = "PolicyErrorException"
    51  
    52  	// ErrCodeResourceNotFoundException for service response error code
    53  	// "ResourceNotFoundException".
    54  	//
    55  	// Exception raised when the request references a resource (Application Discovery
    56  	// Service configuration, update stream, migration task, etc.) that does not
    57  	// exist in Application Discovery Service (Application Discovery Service) or
    58  	// in Migration Hub's repository.
    59  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    60  
    61  	// ErrCodeServiceUnavailableException for service response error code
    62  	// "ServiceUnavailableException".
    63  	//
    64  	// Exception raised when there is an internal, configuration, or dependency
    65  	// error encountered.
    66  	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
    67  
    68  	// ErrCodeThrottlingException for service response error code
    69  	// "ThrottlingException".
    70  	//
    71  	// The request was denied due to request throttling.
    72  	ErrCodeThrottlingException = "ThrottlingException"
    73  
    74  	// ErrCodeUnauthorizedOperation for service response error code
    75  	// "UnauthorizedOperation".
    76  	//
    77  	// Exception raised to indicate a request was not authorized when the DryRun
    78  	// flag is set to "true".
    79  	ErrCodeUnauthorizedOperation = "UnauthorizedOperation"
    80  )
    81  
    82  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    83  	"AccessDeniedException":       newErrorAccessDeniedException,
    84  	"DryRunOperation":             newErrorDryRunOperation,
    85  	"HomeRegionNotSetException":   newErrorHomeRegionNotSetException,
    86  	"InternalServerError":         newErrorInternalServerError,
    87  	"InvalidInputException":       newErrorInvalidInputException,
    88  	"PolicyErrorException":        newErrorPolicyErrorException,
    89  	"ResourceNotFoundException":   newErrorResourceNotFoundException,
    90  	"ServiceUnavailableException": newErrorServiceUnavailableException,
    91  	"ThrottlingException":         newErrorThrottlingException,
    92  	"UnauthorizedOperation":       newErrorUnauthorizedOperation,
    93  }