« blib/lib/Paws/LexModelsV2/UpdateBot.pm
↑ Summary
blib/lib/Paws/LexModelsV2/UpdateBotAliasResponse.pm »
| 1 | |||
| 2 | package Paws::LexModelsV2::UpdateBotAlias; | ||
| 3 | use Moose; | ||
| 4 | has BotAliasId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botAliasId', required => 1); | ||
| 5 | has BotAliasLocaleSettings => (is => 'ro', isa => 'Paws::LexModelsV2::BotAliasLocaleSettingsMap', traits => ['NameInRequest'], request_name => 'botAliasLocaleSettings'); | ||
| 6 | has BotAliasName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'botAliasName', required => 1); | ||
| 7 | has BotId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botId', required => 1); | ||
| 8 | has BotVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'botVersion'); | ||
| 9 | has ConversationLogSettings => (is => 'ro', isa => 'Paws::LexModelsV2::ConversationLogSettings', traits => ['NameInRequest'], request_name => 'conversationLogSettings'); | ||
| 10 | has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description'); | ||
| 11 | has SentimentAnalysisSettings => (is => 'ro', isa => 'Paws::LexModelsV2::SentimentAnalysisSettings', traits => ['NameInRequest'], request_name => 'sentimentAnalysisSettings'); | ||
| 12 | |||
| 13 | use MooseX::ClassAttribute; | ||
| 14 | |||
| 15 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateBotAlias'); | ||
| 16 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/bots/{botId}/botaliases/{botAliasId}/'); | ||
| 17 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 18 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModelsV2::UpdateBotAliasResponse'); | ||
| 19 | 1; | ||
| 20 | |||
| 21 | ### main pod documentation begin ### | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Paws::LexModelsV2::UpdateBotAlias - Arguments for method UpdateBotAlias on L<Paws::LexModelsV2> | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | This class represents the parameters used for calling the method UpdateBotAlias on the | ||
| 30 | L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class | ||
| 31 | as arguments to method UpdateBotAlias. | ||
| 32 | |||
| 33 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateBotAlias. | ||
| 34 | |||
| 35 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | my $models-v2-lex = Paws->service('LexModelsV2'); | ||
| 38 | my $UpdateBotAliasResponse = $models - v2 -lex->UpdateBotAlias( | ||
| 39 | BotAliasId => 'MyBotAliasId', | ||
| 40 | BotAliasName => 'MyName', | ||
| 41 | BotId => 'MyId', | ||
| 42 | BotAliasLocaleSettings => { | ||
| 43 | 'MyLocaleId' => { | ||
| 44 | Enabled => 1, | ||
| 45 | CodeHookSpecification => { | ||
| 46 | LambdaCodeHook => { | ||
| 47 | CodeHookInterfaceVersion => | ||
| 48 | 'MyCodeHookInterfaceVersion', # min: 1, max: 5 | ||
| 49 | LambdaARN => 'MyLambdaARN', # min: 20, max: 2048 | ||
| 50 | |||
| 51 | }, | ||
| 52 | |||
| 53 | }, # OPTIONAL | ||
| 54 | }, | ||
| 55 | }, # OPTIONAL | ||
| 56 | BotVersion => 'MyBotVersion', # OPTIONAL | ||
| 57 | ConversationLogSettings => { | ||
| 58 | AudioLogSettings => [ | ||
| 59 | { | ||
| 60 | Destination => { | ||
| 61 | S3Bucket => { | ||
| 62 | LogPrefix => 'MyLogPrefix', # max: 1024 | ||
| 63 | S3BucketArn => 'MyS3BucketArn', # min: 1, max: 2048 | ||
| 64 | KmsKeyArn => 'MyKmsKeyArn', # min: 20, max: 2048; OPTIONAL | ||
| 65 | }, | ||
| 66 | |||
| 67 | }, | ||
| 68 | Enabled => 1, | ||
| 69 | |||
| 70 | }, | ||
| 71 | ... | ||
| 72 | ], # min: 1, max: 1; OPTIONAL | ||
| 73 | TextLogSettings => [ | ||
| 74 | { | ||
| 75 | Destination => { | ||
| 76 | CloudWatch => { | ||
| 77 | CloudWatchLogGroupArn => | ||
| 78 | 'MyCloudWatchLogGroupArn', # min: 1, max: 2048 | ||
| 79 | LogPrefix => 'MyLogPrefix', # max: 1024 | ||
| 80 | |||
| 81 | }, | ||
| 82 | |||
| 83 | }, | ||
| 84 | Enabled => 1, | ||
| 85 | |||
| 86 | }, | ||
| 87 | ... | ||
| 88 | ], # min: 1, max: 1; OPTIONAL | ||
| 89 | }, # OPTIONAL | ||
| 90 | Description => 'MyDescription', # OPTIONAL | ||
| 91 | SentimentAnalysisSettings => { | ||
| 92 | DetectSentiment => 1, | ||
| 93 | |||
| 94 | }, # OPTIONAL | ||
| 95 | ); | ||
| 96 | |||
| 97 | # Results: | ||
| 98 | my $BotAliasId = $UpdateBotAliasResponse->BotAliasId; | ||
| 99 | my $BotAliasLocaleSettings = | ||
| 100 | $UpdateBotAliasResponse->BotAliasLocaleSettings; | ||
| 101 | my $BotAliasName = $UpdateBotAliasResponse->BotAliasName; | ||
| 102 | my $BotAliasStatus = $UpdateBotAliasResponse->BotAliasStatus; | ||
| 103 | my $BotId = $UpdateBotAliasResponse->BotId; | ||
| 104 | my $BotVersion = $UpdateBotAliasResponse->BotVersion; | ||
| 105 | my $ConversationLogSettings = | ||
| 106 | $UpdateBotAliasResponse->ConversationLogSettings; | ||
| 107 | my $CreationDateTime = $UpdateBotAliasResponse->CreationDateTime; | ||
| 108 | my $Description = $UpdateBotAliasResponse->Description; | ||
| 109 | my $LastUpdatedDateTime = $UpdateBotAliasResponse->LastUpdatedDateTime; | ||
| 110 | my $SentimentAnalysisSettings = | ||
| 111 | $UpdateBotAliasResponse->SentimentAnalysisSettings; | ||
| 112 | |||
| 113 | # Returns a L<Paws::LexModelsV2::UpdateBotAliasResponse> object. | ||
| 114 | |||
| 115 | 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. | ||
| 116 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/UpdateBotAlias> | ||
| 117 | |||
| 118 | =head1 ATTRIBUTES | ||
| 119 | |||
| 120 | |||
| 121 | =head2 B<REQUIRED> BotAliasId => Str | ||
| 122 | |||
| 123 | The unique identifier of the bot alias. | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | =head2 BotAliasLocaleSettings => L<Paws::LexModelsV2::BotAliasLocaleSettingsMap> | ||
| 128 | |||
| 129 | The new Lambda functions to use in each locale for the bot alias. | ||
| 130 | |||
| 131 | |||
| 132 | |||
| 133 | =head2 B<REQUIRED> BotAliasName => Str | ||
| 134 | |||
| 135 | The new name to assign to the bot alias. | ||
| 136 | |||
| 137 | |||
| 138 | |||
| 139 | =head2 B<REQUIRED> BotId => Str | ||
| 140 | |||
| 141 | The identifier of the bot with the updated alias. | ||
| 142 | |||
| 143 | |||
| 144 | |||
| 145 | =head2 BotVersion => Str | ||
| 146 | |||
| 147 | The new bot version to assign to the bot alias. | ||
| 148 | |||
| 149 | |||
| 150 | |||
| 151 | =head2 ConversationLogSettings => L<Paws::LexModelsV2::ConversationLogSettings> | ||
| 152 | |||
| 153 | The new settings for storing conversation logs in Amazon CloudWatch | ||
| 154 | Logs and Amazon S3 buckets. | ||
| 155 | |||
| 156 | |||
| 157 | |||
| 158 | =head2 Description => Str | ||
| 159 | |||
| 160 | The new description to assign to the bot alias. | ||
| 161 | |||
| 162 | |||
| 163 | |||
| 164 | =head2 SentimentAnalysisSettings => L<Paws::LexModelsV2::SentimentAnalysisSettings> | ||
| 165 | |||
| 166 | |||
| 167 | |||
| 168 | |||
| 169 | |||
| 170 | |||
| 171 | =head1 SEE ALSO | ||
| 172 | |||
| 173 | This class forms part of L<Paws>, documenting arguments for method UpdateBotAlias in L<Paws::LexModelsV2> | ||
| 174 | |||
| 175 | =head1 BUGS and CONTRIBUTIONS | ||
| 176 | |||
| 177 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 178 | |||
| 179 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 180 | |||
| 181 | =cut | ||
| 182 |