github.com/aavshr/aws-sdk-go@v1.41.3/service/workspaces/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package workspaces 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 // The user is not authorized to access a resource. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeInvalidParameterValuesException for service response error code 18 // "InvalidParameterValuesException". 19 // 20 // One or more parameter values are not valid. 21 ErrCodeInvalidParameterValuesException = "InvalidParameterValuesException" 22 23 // ErrCodeInvalidResourceStateException for service response error code 24 // "InvalidResourceStateException". 25 // 26 // The state of the resource is not valid for this operation. 27 ErrCodeInvalidResourceStateException = "InvalidResourceStateException" 28 29 // ErrCodeOperationInProgressException for service response error code 30 // "OperationInProgressException". 31 // 32 // The properties of this WorkSpace are currently being modified. Try again 33 // in a moment. 34 ErrCodeOperationInProgressException = "OperationInProgressException" 35 36 // ErrCodeOperationNotSupportedException for service response error code 37 // "OperationNotSupportedException". 38 // 39 // This operation is not supported. 40 ErrCodeOperationNotSupportedException = "OperationNotSupportedException" 41 42 // ErrCodeResourceAlreadyExistsException for service response error code 43 // "ResourceAlreadyExistsException". 44 // 45 // The specified resource already exists. 46 ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" 47 48 // ErrCodeResourceAssociatedException for service response error code 49 // "ResourceAssociatedException". 50 // 51 // The resource is associated with a directory. 52 ErrCodeResourceAssociatedException = "ResourceAssociatedException" 53 54 // ErrCodeResourceCreationFailedException for service response error code 55 // "ResourceCreationFailedException". 56 // 57 // The resource could not be created. 58 ErrCodeResourceCreationFailedException = "ResourceCreationFailedException" 59 60 // ErrCodeResourceLimitExceededException for service response error code 61 // "ResourceLimitExceededException". 62 // 63 // Your resource limits have been exceeded. 64 ErrCodeResourceLimitExceededException = "ResourceLimitExceededException" 65 66 // ErrCodeResourceNotFoundException for service response error code 67 // "ResourceNotFoundException". 68 // 69 // The resource could not be found. 70 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 71 72 // ErrCodeResourceUnavailableException for service response error code 73 // "ResourceUnavailableException". 74 // 75 // The specified resource is not available. 76 ErrCodeResourceUnavailableException = "ResourceUnavailableException" 77 78 // ErrCodeUnsupportedNetworkConfigurationException for service response error code 79 // "UnsupportedNetworkConfigurationException". 80 // 81 // The configuration of this network is not supported for this operation, or 82 // your network configuration conflicts with the Amazon WorkSpaces management 83 // network IP range. For more information, see Configure a VPC for Amazon WorkSpaces 84 // (https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html). 85 ErrCodeUnsupportedNetworkConfigurationException = "UnsupportedNetworkConfigurationException" 86 87 // ErrCodeUnsupportedWorkspaceConfigurationException for service response error code 88 // "UnsupportedWorkspaceConfigurationException". 89 // 90 // The configuration of this WorkSpace is not supported for this operation. 91 // For more information, see Required Configuration and Service Components for 92 // WorkSpaces (https://docs.aws.amazon.com/workspaces/latest/adminguide/required-service-components.html). 93 ErrCodeUnsupportedWorkspaceConfigurationException = "UnsupportedWorkspaceConfigurationException" 94 95 // ErrCodeWorkspacesDefaultRoleNotFoundException for service response error code 96 // "WorkspacesDefaultRoleNotFoundException". 97 // 98 // The workspaces_DefaultRole role could not be found. If this is the first 99 // time you are registering a directory, you will need to create the workspaces_DefaultRole 100 // role before you can register a directory. For more information, see Creating 101 // the workspaces_DefaultRole Role (https://docs.aws.amazon.com/workspaces/latest/adminguide/workspaces-access-control.html#create-default-role). 102 ErrCodeWorkspacesDefaultRoleNotFoundException = "WorkspacesDefaultRoleNotFoundException" 103 ) 104 105 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 106 "AccessDeniedException": newErrorAccessDeniedException, 107 "InvalidParameterValuesException": newErrorInvalidParameterValuesException, 108 "InvalidResourceStateException": newErrorInvalidResourceStateException, 109 "OperationInProgressException": newErrorOperationInProgressException, 110 "OperationNotSupportedException": newErrorOperationNotSupportedException, 111 "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, 112 "ResourceAssociatedException": newErrorResourceAssociatedException, 113 "ResourceCreationFailedException": newErrorResourceCreationFailedException, 114 "ResourceLimitExceededException": newErrorResourceLimitExceededException, 115 "ResourceNotFoundException": newErrorResourceNotFoundException, 116 "ResourceUnavailableException": newErrorResourceUnavailableException, 117 "UnsupportedNetworkConfigurationException": newErrorUnsupportedNetworkConfigurationException, 118 "UnsupportedWorkspaceConfigurationException": newErrorUnsupportedWorkspaceConfigurationException, 119 "WorkspacesDefaultRoleNotFoundException": newErrorWorkspacesDefaultRoleNotFoundException, 120 }