pub struct StartImportRequest {
pub merge_strategy: String,
pub payload: Bytes,
pub resource_type: String,
pub tags: Option<Vec<Tag>>,
}Fields§
§merge_strategy: StringSpecifies the action that the StartImport operation should take when there is an existing resource with the same name.
-
FAILONCONFLICT - The import operation is stopped on the first conflict between a resource in the import file and an existing resource. The name of the resource causing the conflict is in the
failureReasonfield of the response to theGetImportoperation.OVERWRITE_LATEST - The import operation proceeds even if there is a conflict with an existing resource. The $LASTEST version of the existing resource is overwritten with the data from the import file.
payload: BytesA zip archive in binary format. The archive should contain one file, a JSON file containing the resource to import. The resource should match the type specified in the resourceType field.
resource_type: StringSpecifies the type of resource to export. Each resource also exports any resources that it depends on.
-
A bot exports dependent intents.
-
An intent exports dependent slot types.
A list of tags to add to the imported bot. You can only add tags when you import a bot, you can't add tags to an intent or slot type.
Trait Implementations§
Source§impl Clone for StartImportRequest
impl Clone for StartImportRequest
Source§fn clone(&self) -> StartImportRequest
fn clone(&self) -> StartImportRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more