You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::LexModelBuildingService::Types::StartImportRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb

Overview

Note:

When making an API call, you may pass StartImportRequest data as a hash:

{
  payload: "data", # required
  resource_type: "BOT", # required, accepts BOT, INTENT, SLOT_TYPE
  merge_strategy: "OVERWRITE_LATEST", # required, accepts OVERWRITE_LATEST, FAIL_ON_CONFLICT
}

Instance Attribute Summary collapse

Instance Attribute Details

#merge_strategyString

Specifies the action that the StartImport operation should take when there is an existing resource with the same name.

  • FAIL_ON_CONFLICT - 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 failureReason field of the response to the GetImport operation.

    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.

Returns:

  • (String)


3559
3560
3561
3562
3563
3564
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 3559

class StartImportRequest < Struct.new(
  :payload,
  :resource_type,
  :merge_strategy)
  include Aws::Structure
end

#payloadString

A 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.

Returns:

  • (String)


3559
3560
3561
3562
3563
3564
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 3559

class StartImportRequest < Struct.new(
  :payload,
  :resource_type,
  :merge_strategy)
  include Aws::Structure
end

#resource_typeString

Specifies 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.

Returns:

  • (String)


3559
3560
3561
3562
3563
3564
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 3559

class StartImportRequest < Struct.new(
  :payload,
  :resource_type,
  :merge_strategy)
  include Aws::Structure
end