NAME

Paws::LexModels::StartImport - Arguments for method StartImport on Paws::LexModels

DESCRIPTION

This class represents the parameters used for calling the method StartImport on the Amazon Lex Model Building Service service. Use the attributes of this class as arguments to method StartImport.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartImport.

SYNOPSIS

my $models.lex = Paws->service('LexModels');
my $StartImportResponse = $models . lex->StartImport(
  MergeStrategy => 'OVERWRITE_LATEST',
  Payload       => 'BlobBlob',
  ResourceType  => 'BOT',
  Tags          => [
    {
      Key   => 'MyTagKey',      # min: 1, max: 128
      Value => 'MyTagValue',    # max: 256

    },
    ...
  ],    # OPTIONAL
);

# Results:
my $CreatedDate   = $StartImportResponse->CreatedDate;
my $ImportId      = $StartImportResponse->ImportId;
my $ImportStatus  = $StartImportResponse->ImportStatus;
my $MergeStrategy = $StartImportResponse->MergeStrategy;
my $Name          = $StartImportResponse->Name;
my $ResourceType  = $StartImportResponse->ResourceType;
my $Tags          = $StartImportResponse->Tags;

# Returns a L<Paws::LexModels::StartImportResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/models.lex/StartImport

ATTRIBUTES

REQUIRED MergeStrategy => Str

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.

Valid values are: "OVERWRITE_LATEST", "FAIL_ON_CONFLICT"

REQUIRED Payload => Str

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.

REQUIRED ResourceType => Str

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.

Valid values are: "BOT", "INTENT", "SLOT_TYPE"

Tags => ArrayRef[Paws::LexModels::Tag]

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.

SEE ALSO

This class forms part of Paws, documenting arguments for method StartImport in Paws::LexModels

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues