« blib/lib/Paws/LexModelsV2/UntagResourceResponse.pm
↑ Summary
blib/lib/Paws/LexModelsV2/UpdateBotAlias.pm »
| 1 | |||
| 2 | package Paws::LexModelsV2::UpdateBot; | ||
| 3 | use Moose; | ||
| 4 | has BotId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botId', required => 1); | ||
| 5 | has BotName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'botName', required => 1); | ||
| 6 | has DataPrivacy => (is => 'ro', isa => 'Paws::LexModelsV2::DataPrivacy', traits => ['NameInRequest'], request_name => 'dataPrivacy', required => 1); | ||
| 7 | has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description'); | ||
| 8 | has IdleSessionTTLInSeconds => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'idleSessionTTLInSeconds', required => 1); | ||
| 9 | has RoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'roleArn', required => 1); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateBot'); | ||
| 14 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/bots/{botId}/'); | ||
| 15 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModelsV2::UpdateBotResponse'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::LexModelsV2::UpdateBot - Arguments for method UpdateBot on L<Paws::LexModelsV2> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method UpdateBot on the | ||
| 28 | L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class | ||
| 29 | as arguments to method UpdateBot. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateBot. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $models-v2-lex = Paws->service('LexModelsV2'); | ||
| 36 | my $UpdateBotResponse = $models - v2 -lex->UpdateBot( | ||
| 37 | BotId => 'MyId', | ||
| 38 | BotName => 'MyName', | ||
| 39 | DataPrivacy => { | ||
| 40 | ChildDirected => 1, | ||
| 41 | |||
| 42 | }, | ||
| 43 | IdleSessionTTLInSeconds => 1, | ||
| 44 | RoleArn => 'MyRoleArn', | ||
| 45 | Description => 'MyDescription', # OPTIONAL | ||
| 46 | ); | ||
| 47 | |||
| 48 | # Results: | ||
| 49 | my $BotId = $UpdateBotResponse->BotId; | ||
| 50 | my $BotName = $UpdateBotResponse->BotName; | ||
| 51 | my $BotStatus = $UpdateBotResponse->BotStatus; | ||
| 52 | my $CreationDateTime = $UpdateBotResponse->CreationDateTime; | ||
| 53 | my $DataPrivacy = $UpdateBotResponse->DataPrivacy; | ||
| 54 | my $Description = $UpdateBotResponse->Description; | ||
| 55 | my $IdleSessionTTLInSeconds = $UpdateBotResponse->IdleSessionTTLInSeconds; | ||
| 56 | my $LastUpdatedDateTime = $UpdateBotResponse->LastUpdatedDateTime; | ||
| 57 | my $RoleArn = $UpdateBotResponse->RoleArn; | ||
| 58 | |||
| 59 | # Returns a L<Paws::LexModelsV2::UpdateBotResponse> object. | ||
| 60 | |||
| 61 | 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. | ||
| 62 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/UpdateBot> | ||
| 63 | |||
| 64 | =head1 ATTRIBUTES | ||
| 65 | |||
| 66 | |||
| 67 | =head2 B<REQUIRED> BotId => Str | ||
| 68 | |||
| 69 | The unique identifier of the bot to update. This identifier is returned | ||
| 70 | by the CreateBot operation. | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 B<REQUIRED> BotName => Str | ||
| 75 | |||
| 76 | The new name of the bot. The name must be unique in the account that | ||
| 77 | creates the bot. | ||
| 78 | |||
| 79 | |||
| 80 | |||
| 81 | =head2 B<REQUIRED> DataPrivacy => L<Paws::LexModelsV2::DataPrivacy> | ||
| 82 | |||
| 83 | Provides information on additional privacy protections Amazon Lex | ||
| 84 | should use with the bot's data. | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | =head2 Description => Str | ||
| 89 | |||
| 90 | A description of the bot. | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | =head2 B<REQUIRED> IdleSessionTTLInSeconds => Int | ||
| 95 | |||
| 96 | The time, in seconds, that Amazon Lex should keep information about a | ||
| 97 | user's conversation with the bot. | ||
| 98 | |||
| 99 | A user interaction remains active for the amount of time specified. If | ||
| 100 | no conversation occurs during this time, the session expires and Amazon | ||
| 101 | Lex deletes any data provided before the timeout. | ||
| 102 | |||
| 103 | You can specify between 60 (1 minute) and 86,400 (24 hours) seconds. | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | =head2 B<REQUIRED> RoleArn => Str | ||
| 108 | |||
| 109 | The Amazon Resource Name (ARN) of an IAM role that has permissions to | ||
| 110 | access the bot. | ||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | |||
| 115 | =head1 SEE ALSO | ||
| 116 | |||
| 117 | This class forms part of L<Paws>, documenting arguments for method UpdateBot in L<Paws::LexModelsV2> | ||
| 118 | |||
| 119 | =head1 BUGS and CONTRIBUTIONS | ||
| 120 | |||
| 121 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 122 | |||
| 123 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 124 | |||
| 125 | =cut | ||
| 126 |