start_import
async
¶
start_import(
import_id: Id,
resource_specification: ImportResourceSpecification,
merge_strategy: MergeStrategy,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
file_password: Optional[ImportExportFilePassword] = None,
) -> StartImportResponse
Starts importing a bot, bot locale, or custom vocabulary from a zip archive that you uploaded to an S3 bucket.
Parameters:
-
import_id(Id) –The unique identifier for the import. It is included in the response from the CreateUploadUrl operation.
-
resource_specification(ImportResourceSpecification) –Parameters for creating the bot, bot locale or custom vocabulary.
-
merge_strategy(MergeStrategy) –The strategy to use when there is a name conflict between the imported resource and an existing resource. When the merge strategy is
FailOnConflictexisting resources are not overwritten and the import fails. -
file_password(Optional[ImportExportFilePassword], default:None) –The password used to encrypt the zip archive that contains the resource definition. You should always encrypt the zip archive to protect it during transit between your site and Amazon Lex.
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.
-
ResourceNotFoundException–You asked to describe a resource that doesn't exist. Check the resource that you are requesting 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
7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 | |