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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package applicationdiscoveryservice
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAuthorizationErrorException for service response error code
    12  	// "AuthorizationErrorException".
    13  	//
    14  	// The AWS user account does not have permission to perform the action. Check
    15  	// the IAM policy associated with this account.
    16  	ErrCodeAuthorizationErrorException = "AuthorizationErrorException"
    17  
    18  	// ErrCodeConflictErrorException for service response error code
    19  	// "ConflictErrorException".
    20  	ErrCodeConflictErrorException = "ConflictErrorException"
    21  
    22  	// ErrCodeHomeRegionNotSetException for service response error code
    23  	// "HomeRegionNotSetException".
    24  	//
    25  	// The home region is not set. Set the home region to continue.
    26  	ErrCodeHomeRegionNotSetException = "HomeRegionNotSetException"
    27  
    28  	// ErrCodeInvalidParameterException for service response error code
    29  	// "InvalidParameterException".
    30  	//
    31  	// One or more parameters are not valid. Verify the parameters and try again.
    32  	ErrCodeInvalidParameterException = "InvalidParameterException"
    33  
    34  	// ErrCodeInvalidParameterValueException for service response error code
    35  	// "InvalidParameterValueException".
    36  	//
    37  	// The value of one or more parameters are either invalid or out of range. Verify
    38  	// the parameter values and try again.
    39  	ErrCodeInvalidParameterValueException = "InvalidParameterValueException"
    40  
    41  	// ErrCodeOperationNotPermittedException for service response error code
    42  	// "OperationNotPermittedException".
    43  	//
    44  	// This operation is not permitted.
    45  	ErrCodeOperationNotPermittedException = "OperationNotPermittedException"
    46  
    47  	// ErrCodeResourceInUseException for service response error code
    48  	// "ResourceInUseException".
    49  	//
    50  	// This issue occurs when the same clientRequestToken is used with the StartImportTask
    51  	// action, but with different parameters. For example, you use the same request
    52  	// token but have two different import URLs, you can encounter this issue. If
    53  	// the import tasks are meant to be different, use a different clientRequestToken,
    54  	// and try again.
    55  	ErrCodeResourceInUseException = "ResourceInUseException"
    56  
    57  	// ErrCodeResourceNotFoundException for service response error code
    58  	// "ResourceNotFoundException".
    59  	//
    60  	// The specified configuration ID was not located. Verify the configuration
    61  	// ID and try again.
    62  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    63  
    64  	// ErrCodeServerInternalErrorException for service response error code
    65  	// "ServerInternalErrorException".
    66  	//
    67  	// The server experienced an internal error. Try again.
    68  	ErrCodeServerInternalErrorException = "ServerInternalErrorException"
    69  )
    70  
    71  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    72  	"AuthorizationErrorException":    newErrorAuthorizationErrorException,
    73  	"ConflictErrorException":         newErrorConflictErrorException,
    74  	"HomeRegionNotSetException":      newErrorHomeRegionNotSetException,
    75  	"InvalidParameterException":      newErrorInvalidParameterException,
    76  	"InvalidParameterValueException": newErrorInvalidParameterValueException,
    77  	"OperationNotPermittedException": newErrorOperationNotPermittedException,
    78  	"ResourceInUseException":         newErrorResourceInUseException,
    79  	"ResourceNotFoundException":      newErrorResourceNotFoundException,
    80  	"ServerInternalErrorException":   newErrorServerInternalErrorException,
    81  }