« blib/lib/Paws/LexModelsV2/SlotValueSelectionSetting.pm
↑ Summary
blib/lib/Paws/LexModelsV2/StartImportResponse.pm »
| 1 | |||
| 2 | package Paws::LexModelsV2::StartImport; | ||
| 3 | use Moose; | ||
| 4 | has FilePassword => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'filePassword'); | ||
| 5 | has ImportId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'importId', required => 1); | ||
| 6 | has MergeStrategy => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'mergeStrategy', required => 1); | ||
| 7 | has ResourceSpecification => (is => 'ro', isa => 'Paws::LexModelsV2::ImportResourceSpecification', traits => ['NameInRequest'], request_name => 'resourceSpecification', required => 1); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'StartImport'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/imports/'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModelsV2::StartImportResponse'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::LexModelsV2::StartImport - Arguments for method StartImport on L<Paws::LexModelsV2> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method StartImport on the | ||
| 26 | L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class | ||
| 27 | as arguments to method StartImport. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartImport. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $models-v2-lex = Paws->service('LexModelsV2'); | ||
| 34 | my $StartImportResponse = $models - v2 -lex->StartImport( | ||
| 35 | ImportId => 'MyId', | ||
| 36 | MergeStrategy => 'Overwrite', | ||
| 37 | ResourceSpecification => { | ||
| 38 | BotImportSpecification => { | ||
| 39 | BotName => 'MyName', # min: 1, max: 100 | ||
| 40 | DataPrivacy => { | ||
| 41 | ChildDirected => 1, | ||
| 42 | |||
| 43 | }, | ||
| 44 | RoleArn => 'MyRoleArn', # min: 32, max: 2048 | ||
| 45 | BotTags => { | ||
| 46 | 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256 | ||
| 47 | }, # max: 200; OPTIONAL | ||
| 48 | IdleSessionTTLInSeconds => 1, # min: 60, max: 86400; OPTIONAL | ||
| 49 | TestBotAliasTags => { | ||
| 50 | 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256 | ||
| 51 | }, # max: 200; OPTIONAL | ||
| 52 | }, # OPTIONAL | ||
| 53 | BotLocaleImportSpecification => { | ||
| 54 | BotId => 'MyId', # min: 10, max: 10 | ||
| 55 | BotVersion => 'MyDraftBotVersion', # min: 5, max: 5 | ||
| 56 | LocaleId => 'MyLocaleId', | ||
| 57 | NluIntentConfidenceThreshold => 1, # max: 1; OPTIONAL | ||
| 58 | VoiceSettings => { | ||
| 59 | VoiceId => 'MyVoiceId', | ||
| 60 | |||
| 61 | }, # OPTIONAL | ||
| 62 | }, # OPTIONAL | ||
| 63 | }, | ||
| 64 | FilePassword => 'MyImportExportFilePassword', # OPTIONAL | ||
| 65 | ); | ||
| 66 | |||
| 67 | # Results: | ||
| 68 | my $CreationDateTime = $StartImportResponse->CreationDateTime; | ||
| 69 | my $ImportId = $StartImportResponse->ImportId; | ||
| 70 | my $ImportStatus = $StartImportResponse->ImportStatus; | ||
| 71 | my $MergeStrategy = $StartImportResponse->MergeStrategy; | ||
| 72 | my $ResourceSpecification = $StartImportResponse->ResourceSpecification; | ||
| 73 | |||
| 74 | # Returns a L<Paws::LexModelsV2::StartImportResponse> object. | ||
| 75 | |||
| 76 | 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. | ||
| 77 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/StartImport> | ||
| 78 | |||
| 79 | =head1 ATTRIBUTES | ||
| 80 | |||
| 81 | |||
| 82 | =head2 FilePassword => Str | ||
| 83 | |||
| 84 | The password used to encrypt the zip archive that contains the bot or | ||
| 85 | bot locale definition. You should always encrypt the zip archive to | ||
| 86 | protect it during transit between your site and Amazon Lex. | ||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | =head2 B<REQUIRED> ImportId => Str | ||
| 91 | |||
| 92 | The unique identifier for the import. It is included in the response | ||
| 93 | from the operation. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head2 B<REQUIRED> MergeStrategy => Str | ||
| 98 | |||
| 99 | The strategy to use when there is a name conflict between the imported | ||
| 100 | resource and an existing resource. When the merge strategy is | ||
| 101 | C<FailOnConflict> existing resources are not overwritten and the import | ||
| 102 | fails. | ||
| 103 | |||
| 104 | Valid values are: C<"Overwrite">, C<"FailOnConflict"> | ||
| 105 | |||
| 106 | =head2 B<REQUIRED> ResourceSpecification => L<Paws::LexModelsV2::ImportResourceSpecification> | ||
| 107 | |||
| 108 | Parameters for creating the bot or bot locale. | ||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | =head1 SEE ALSO | ||
| 114 | |||
| 115 | This class forms part of L<Paws>, documenting arguments for method StartImport in L<Paws::LexModelsV2> | ||
| 116 | |||
| 117 | =head1 BUGS and CONTRIBUTIONS | ||
| 118 | |||
| 119 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 120 | |||
| 121 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 122 | |||
| 123 | =cut | ||
| 124 |