delete_bot_version
async
¶
delete_bot_version(
bot_id: Id,
bot_version: NumericalBotVersion,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
skip_resource_in_use_check: Optional[SkipResourceInUseCheck] = None,
) -> DeleteBotVersionResponse
Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation.
Parameters:
-
bot_id(Id) –The identifier of the bot that contains the version.
-
bot_version(NumericalBotVersion) –The version of the bot to delete.
-
skip_resource_in_use_check(Optional[SkipResourceInUseCheck], default:None) –By default, Amazon Lex checks if any other resource, such as an alias or bot network, is using the bot version before it is deleted and throws a
ResourceInUseExceptionexception if the version is being used by another resource. Set this parameter totrueto skip this check and remove the version even if it is being used by another resource.
Raises:
-
ConflictException–The action that you tried to perform couldn't be completed because the resource is in a conflicting state. For example, deleting a bot that is in the CREATING state. Try your request again.
-
InternalServerException–The service encountered an unexpected condition. Try your request again.
-
PreconditionFailedException–Your request couldn't be completed because one or more request fields aren't valid. Check the fields in your request and try again.
-
ServiceQuotaExceededException–You have reached a quota for your bot.
-
ThrottlingException–Your request rate is too high. Reduce the frequency of requests.
-
ValidationException–One of the input parameters in your request isn't valid. Check the parameters and try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lex_models_v2/_services/async_lex_models_v2.py
2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 | |