start_import
¶
start_import(
import_id: Id,
resource_specification: ImportResourceSpecification,
merge_strategy: MergeStrategy,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = 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/lex_models_v2.py
7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 | |