LexModelBuildingService / Client / exceptions / ResourceInUseException
ResourceInUseException¶
- class LexModelBuildingService.Client.exceptions.ResourceInUseException¶
- The resource that you are attempting to delete is referred to by another resource. Use this information to remove references to the resource that you are trying to delete. - The body of the exception contains a JSON object that describes the resource. - { "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,- "resourceReference": {- "name": string, "version": string } }- Example- try: ... except client.exceptions.ResourceInUseException as e: print(e.response) - response¶
- The parsed error response. All exceptions have a top level - Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.- Syntax- { 'referenceType': 'Intent'|'Bot'|'BotAlias'|'BotChannel', 'exampleReference': { 'name': 'string', 'version': 'string' }, 'Error': { 'Code': 'string', 'Message': 'string' } } - Structure- (dict) – - The resource that you are attempting to delete is referred to by another resource. Use this information to remove references to the resource that you are trying to delete. - The body of the exception contains a JSON object that describes the resource. - { "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,- "resourceReference": {- "name": string, "version": string } }- referenceType (string) – 
- exampleReference (dict) – - Describes the resource that refers to the resource that you are attempting to delete. This object is returned as part of the - ResourceInUseExceptionexception.- name (string) – - The name of the resource that is using the resource that you are trying to delete. 
- version (string) – - The version of the resource that is using the resource that you are trying to delete. 
 
- Error (dict) – Normalized access to common exception attributes. - Code (string) – An identifier specifying the exception type. 
- Message (string) – A descriptive message explaining why the exception occured.