github.com/aavshr/aws-sdk-go@v1.41.3/service/clouddirectory/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package clouddirectory 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 // Access denied or directory not found. Either you don't have permissions for 15 // this directory or the directory does not exist. Try calling ListDirectories 16 // and check your permissions. 17 ErrCodeAccessDeniedException = "AccessDeniedException" 18 19 // ErrCodeBatchWriteException for service response error code 20 // "BatchWriteException". 21 // 22 // A BatchWrite exception has occurred. 23 ErrCodeBatchWriteException = "BatchWriteException" 24 25 // ErrCodeCannotListParentOfRootException for service response error code 26 // "CannotListParentOfRootException". 27 // 28 // Cannot list the parents of a Directory root. 29 ErrCodeCannotListParentOfRootException = "CannotListParentOfRootException" 30 31 // ErrCodeDirectoryAlreadyExistsException for service response error code 32 // "DirectoryAlreadyExistsException". 33 // 34 // Indicates that a Directory could not be created due to a naming conflict. 35 // Choose a different name and try again. 36 ErrCodeDirectoryAlreadyExistsException = "DirectoryAlreadyExistsException" 37 38 // ErrCodeDirectoryDeletedException for service response error code 39 // "DirectoryDeletedException". 40 // 41 // A directory that has been deleted and to which access has been attempted. 42 // Note: The requested resource will eventually cease to exist. 43 ErrCodeDirectoryDeletedException = "DirectoryDeletedException" 44 45 // ErrCodeDirectoryNotDisabledException for service response error code 46 // "DirectoryNotDisabledException". 47 // 48 // An operation can only operate on a disabled directory. 49 ErrCodeDirectoryNotDisabledException = "DirectoryNotDisabledException" 50 51 // ErrCodeDirectoryNotEnabledException for service response error code 52 // "DirectoryNotEnabledException". 53 // 54 // Operations are only permitted on enabled directories. 55 ErrCodeDirectoryNotEnabledException = "DirectoryNotEnabledException" 56 57 // ErrCodeFacetAlreadyExistsException for service response error code 58 // "FacetAlreadyExistsException". 59 // 60 // A facet with the same name already exists. 61 ErrCodeFacetAlreadyExistsException = "FacetAlreadyExistsException" 62 63 // ErrCodeFacetInUseException for service response error code 64 // "FacetInUseException". 65 // 66 // Occurs when deleting a facet that contains an attribute that is a target 67 // to an attribute reference in a different facet. 68 ErrCodeFacetInUseException = "FacetInUseException" 69 70 // ErrCodeFacetNotFoundException for service response error code 71 // "FacetNotFoundException". 72 // 73 // The specified Facet could not be found. 74 ErrCodeFacetNotFoundException = "FacetNotFoundException" 75 76 // ErrCodeFacetValidationException for service response error code 77 // "FacetValidationException". 78 // 79 // The Facet that you provided was not well formed or could not be validated 80 // with the schema. 81 ErrCodeFacetValidationException = "FacetValidationException" 82 83 // ErrCodeIncompatibleSchemaException for service response error code 84 // "IncompatibleSchemaException". 85 // 86 // Indicates a failure occurred while performing a check for backward compatibility 87 // between the specified schema and the schema that is currently applied to 88 // the directory. 89 ErrCodeIncompatibleSchemaException = "IncompatibleSchemaException" 90 91 // ErrCodeIndexedAttributeMissingException for service response error code 92 // "IndexedAttributeMissingException". 93 // 94 // An object has been attempted to be attached to an object that does not have 95 // the appropriate attribute value. 96 ErrCodeIndexedAttributeMissingException = "IndexedAttributeMissingException" 97 98 // ErrCodeInternalServiceException for service response error code 99 // "InternalServiceException". 100 // 101 // Indicates a problem that must be resolved by Amazon Web Services. This might 102 // be a transient error in which case you can retry your request until it succeeds. 103 // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) 104 // site to see if there are any operational issues with the service. 105 ErrCodeInternalServiceException = "InternalServiceException" 106 107 // ErrCodeInvalidArnException for service response error code 108 // "InvalidArnException". 109 // 110 // Indicates that the provided ARN value is not valid. 111 ErrCodeInvalidArnException = "InvalidArnException" 112 113 // ErrCodeInvalidAttachmentException for service response error code 114 // "InvalidAttachmentException". 115 // 116 // Indicates that an attempt to make an attachment was invalid. For example, 117 // attaching two nodes with a link type that is not applicable to the nodes 118 // or attempting to apply a schema to a directory a second time. 119 ErrCodeInvalidAttachmentException = "InvalidAttachmentException" 120 121 // ErrCodeInvalidFacetUpdateException for service response error code 122 // "InvalidFacetUpdateException". 123 // 124 // An attempt to modify a Facet resulted in an invalid schema exception. 125 ErrCodeInvalidFacetUpdateException = "InvalidFacetUpdateException" 126 127 // ErrCodeInvalidNextTokenException for service response error code 128 // "InvalidNextTokenException". 129 // 130 // Indicates that the NextToken value is not valid. 131 ErrCodeInvalidNextTokenException = "InvalidNextTokenException" 132 133 // ErrCodeInvalidRuleException for service response error code 134 // "InvalidRuleException". 135 // 136 // Occurs when any of the rule parameter keys or values are invalid. 137 ErrCodeInvalidRuleException = "InvalidRuleException" 138 139 // ErrCodeInvalidSchemaDocException for service response error code 140 // "InvalidSchemaDocException". 141 // 142 // Indicates that the provided SchemaDoc value is not valid. 143 ErrCodeInvalidSchemaDocException = "InvalidSchemaDocException" 144 145 // ErrCodeInvalidTaggingRequestException for service response error code 146 // "InvalidTaggingRequestException". 147 // 148 // Can occur for multiple reasons such as when you tag a resource that doesn’t 149 // exist or if you specify a higher number of tags for a resource than the allowed 150 // limit. Allowed limit is 50 tags per resource. 151 ErrCodeInvalidTaggingRequestException = "InvalidTaggingRequestException" 152 153 // ErrCodeLimitExceededException for service response error code 154 // "LimitExceededException". 155 // 156 // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) 157 // for more information. 158 ErrCodeLimitExceededException = "LimitExceededException" 159 160 // ErrCodeLinkNameAlreadyInUseException for service response error code 161 // "LinkNameAlreadyInUseException". 162 // 163 // Indicates that a link could not be created due to a naming conflict. Choose 164 // a different name and then try again. 165 ErrCodeLinkNameAlreadyInUseException = "LinkNameAlreadyInUseException" 166 167 // ErrCodeNotIndexException for service response error code 168 // "NotIndexException". 169 // 170 // Indicates that the requested operation can only operate on index objects. 171 ErrCodeNotIndexException = "NotIndexException" 172 173 // ErrCodeNotNodeException for service response error code 174 // "NotNodeException". 175 // 176 // Occurs when any invalid operations are performed on an object that is not 177 // a node, such as calling ListObjectChildren for a leaf node object. 178 ErrCodeNotNodeException = "NotNodeException" 179 180 // ErrCodeNotPolicyException for service response error code 181 // "NotPolicyException". 182 // 183 // Indicates that the requested operation can only operate on policy objects. 184 ErrCodeNotPolicyException = "NotPolicyException" 185 186 // ErrCodeObjectAlreadyDetachedException for service response error code 187 // "ObjectAlreadyDetachedException". 188 // 189 // Indicates that the object is not attached to the index. 190 ErrCodeObjectAlreadyDetachedException = "ObjectAlreadyDetachedException" 191 192 // ErrCodeObjectNotDetachedException for service response error code 193 // "ObjectNotDetachedException". 194 // 195 // Indicates that the requested operation cannot be completed because the object 196 // has not been detached from the tree. 197 ErrCodeObjectNotDetachedException = "ObjectNotDetachedException" 198 199 // ErrCodeResourceNotFoundException for service response error code 200 // "ResourceNotFoundException". 201 // 202 // The specified resource could not be found. 203 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 204 205 // ErrCodeRetryableConflictException for service response error code 206 // "RetryableConflictException". 207 // 208 // Occurs when a conflict with a previous successful write is detected. For 209 // example, if a write operation occurs on an object and then an attempt is 210 // made to read the object using “SERIALIZABLE” consistency, this exception 211 // may result. This generally occurs when the previous write did not have time 212 // to propagate to the host serving the current request. A retry (with appropriate 213 // backoff logic) is the recommended response to this exception. 214 ErrCodeRetryableConflictException = "RetryableConflictException" 215 216 // ErrCodeSchemaAlreadyExistsException for service response error code 217 // "SchemaAlreadyExistsException". 218 // 219 // Indicates that a schema could not be created due to a naming conflict. Please 220 // select a different name and then try again. 221 ErrCodeSchemaAlreadyExistsException = "SchemaAlreadyExistsException" 222 223 // ErrCodeSchemaAlreadyPublishedException for service response error code 224 // "SchemaAlreadyPublishedException". 225 // 226 // Indicates that a schema is already published. 227 ErrCodeSchemaAlreadyPublishedException = "SchemaAlreadyPublishedException" 228 229 // ErrCodeStillContainsLinksException for service response error code 230 // "StillContainsLinksException". 231 // 232 // The object could not be deleted because links still exist. Remove the links 233 // and then try the operation again. 234 ErrCodeStillContainsLinksException = "StillContainsLinksException" 235 236 // ErrCodeUnsupportedIndexTypeException for service response error code 237 // "UnsupportedIndexTypeException". 238 // 239 // Indicates that the requested index type is not supported. 240 ErrCodeUnsupportedIndexTypeException = "UnsupportedIndexTypeException" 241 242 // ErrCodeValidationException for service response error code 243 // "ValidationException". 244 // 245 // Indicates that your request is malformed in some manner. See the exception 246 // message. 247 ErrCodeValidationException = "ValidationException" 248 ) 249 250 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 251 "AccessDeniedException": newErrorAccessDeniedException, 252 "BatchWriteException": newErrorBatchWriteException, 253 "CannotListParentOfRootException": newErrorCannotListParentOfRootException, 254 "DirectoryAlreadyExistsException": newErrorDirectoryAlreadyExistsException, 255 "DirectoryDeletedException": newErrorDirectoryDeletedException, 256 "DirectoryNotDisabledException": newErrorDirectoryNotDisabledException, 257 "DirectoryNotEnabledException": newErrorDirectoryNotEnabledException, 258 "FacetAlreadyExistsException": newErrorFacetAlreadyExistsException, 259 "FacetInUseException": newErrorFacetInUseException, 260 "FacetNotFoundException": newErrorFacetNotFoundException, 261 "FacetValidationException": newErrorFacetValidationException, 262 "IncompatibleSchemaException": newErrorIncompatibleSchemaException, 263 "IndexedAttributeMissingException": newErrorIndexedAttributeMissingException, 264 "InternalServiceException": newErrorInternalServiceException, 265 "InvalidArnException": newErrorInvalidArnException, 266 "InvalidAttachmentException": newErrorInvalidAttachmentException, 267 "InvalidFacetUpdateException": newErrorInvalidFacetUpdateException, 268 "InvalidNextTokenException": newErrorInvalidNextTokenException, 269 "InvalidRuleException": newErrorInvalidRuleException, 270 "InvalidSchemaDocException": newErrorInvalidSchemaDocException, 271 "InvalidTaggingRequestException": newErrorInvalidTaggingRequestException, 272 "LimitExceededException": newErrorLimitExceededException, 273 "LinkNameAlreadyInUseException": newErrorLinkNameAlreadyInUseException, 274 "NotIndexException": newErrorNotIndexException, 275 "NotNodeException": newErrorNotNodeException, 276 "NotPolicyException": newErrorNotPolicyException, 277 "ObjectAlreadyDetachedException": newErrorObjectAlreadyDetachedException, 278 "ObjectNotDetachedException": newErrorObjectNotDetachedException, 279 "ResourceNotFoundException": newErrorResourceNotFoundException, 280 "RetryableConflictException": newErrorRetryableConflictException, 281 "SchemaAlreadyExistsException": newErrorSchemaAlreadyExistsException, 282 "SchemaAlreadyPublishedException": newErrorSchemaAlreadyPublishedException, 283 "StillContainsLinksException": newErrorStillContainsLinksException, 284 "UnsupportedIndexTypeException": newErrorUnsupportedIndexTypeException, 285 "ValidationException": newErrorValidationException, 286 }