github.com/aavshr/aws-sdk-go@v1.41.3/service/servicecatalog/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package servicecatalog 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeDuplicateResourceException for service response error code 12 // "DuplicateResourceException". 13 // 14 // The specified resource is a duplicate. 15 ErrCodeDuplicateResourceException = "DuplicateResourceException" 16 17 // ErrCodeInvalidParametersException for service response error code 18 // "InvalidParametersException". 19 // 20 // One or more parameters provided to the operation are not valid. 21 ErrCodeInvalidParametersException = "InvalidParametersException" 22 23 // ErrCodeInvalidStateException for service response error code 24 // "InvalidStateException". 25 // 26 // An attempt was made to modify a resource that is in a state that is not valid. 27 // Check your resources to ensure that they are in valid states before retrying 28 // the operation. 29 ErrCodeInvalidStateException = "InvalidStateException" 30 31 // ErrCodeLimitExceededException for service response error code 32 // "LimitExceededException". 33 // 34 // The current limits of the service would have been exceeded by this operation. 35 // Decrease your resource use or increase your service limits and retry the 36 // operation. 37 ErrCodeLimitExceededException = "LimitExceededException" 38 39 // ErrCodeOperationNotSupportedException for service response error code 40 // "OperationNotSupportedException". 41 // 42 // The operation is not supported. 43 ErrCodeOperationNotSupportedException = "OperationNotSupportedException" 44 45 // ErrCodeResourceInUseException for service response error code 46 // "ResourceInUseException". 47 // 48 // A resource that is currently in use. Ensure that the resource is not in use 49 // and retry the operation. 50 ErrCodeResourceInUseException = "ResourceInUseException" 51 52 // ErrCodeResourceNotFoundException for service response error code 53 // "ResourceNotFoundException". 54 // 55 // The specified resource was not found. 56 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 57 58 // ErrCodeTagOptionNotMigratedException for service response error code 59 // "TagOptionNotMigratedException". 60 // 61 // An operation requiring TagOptions failed because the TagOptions migration 62 // process has not been performed for this account. Please use the AWS console 63 // to perform the migration process before retrying the operation. 64 ErrCodeTagOptionNotMigratedException = "TagOptionNotMigratedException" 65 ) 66 67 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 68 "DuplicateResourceException": newErrorDuplicateResourceException, 69 "InvalidParametersException": newErrorInvalidParametersException, 70 "InvalidStateException": newErrorInvalidStateException, 71 "LimitExceededException": newErrorLimitExceededException, 72 "OperationNotSupportedException": newErrorOperationNotSupportedException, 73 "ResourceInUseException": newErrorResourceInUseException, 74 "ResourceNotFoundException": newErrorResourceNotFoundException, 75 "TagOptionNotMigratedException": newErrorTagOptionNotMigratedException, 76 }