blib/lib/Paws/LexModelsV2/CreateBotAlias.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LexModelsV2::CreateBotAlias;
3 use Moose;
4 has BotAliasLocaleSettings => (is => 'ro', isa => 'Paws::LexModelsV2::BotAliasLocaleSettingsMap', traits => ['NameInRequest'], request_name => 'botAliasLocaleSettings');
5 has BotAliasName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'botAliasName', required => 1);
6 has BotId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botId', required => 1);
7 has BotVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'botVersion');
8 has ConversationLogSettings => (is => 'ro', isa => 'Paws::LexModelsV2::ConversationLogSettings', traits => ['NameInRequest'], request_name => 'conversationLogSettings');
9 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
10 has SentimentAnalysisSettings => (is => 'ro', isa => 'Paws::LexModelsV2::SentimentAnalysisSettings', traits => ['NameInRequest'], request_name => 'sentimentAnalysisSettings');
11 has Tags => (is => 'ro', isa => 'Paws::LexModelsV2::TagMap', traits => ['NameInRequest'], request_name => 'tags');
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateBotAlias');
16 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/bots/{botId}/botaliases/');
17 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModelsV2::CreateBotAliasResponse');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::LexModelsV2::CreateBotAlias - Arguments for method CreateBotAlias on L<Paws::LexModelsV2>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method CreateBotAlias on the
30 L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class
31 as arguments to method CreateBotAlias.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateBotAlias.
34  
35 =head1 SYNOPSIS
36  
37 my $models-v2-lex = Paws->service('LexModelsV2');
38 my $CreateBotAliasResponse = $models - v2 -lex->CreateBotAlias(
39 BotAliasName => 'MyName',
40 BotId => 'MyId',
41 BotAliasLocaleSettings => {
42 'MyLocaleId' => {
43 Enabled => 1,
44 CodeHookSpecification => {
45 LambdaCodeHook => {
46 CodeHookInterfaceVersion =>
47 'MyCodeHookInterfaceVersion', # min: 1, max: 5
48 LambdaARN => 'MyLambdaARN', # min: 20, max: 2048
49  
50 },
51  
52 }, # OPTIONAL
53 },
54 }, # OPTIONAL
55 BotVersion => 'MyNumericalBotVersion', # OPTIONAL
56 ConversationLogSettings => {
57 AudioLogSettings => [
58 {
59 Destination => {
60 S3Bucket => {
61 LogPrefix => 'MyLogPrefix', # max: 1024
62 S3BucketArn => 'MyS3BucketArn', # min: 1, max: 2048
63 KmsKeyArn => 'MyKmsKeyArn', # min: 20, max: 2048; OPTIONAL
64 },
65  
66 },
67 Enabled => 1,
68  
69 },
70 ...
71 ], # min: 1, max: 1; OPTIONAL
72 TextLogSettings => [
73 {
74 Destination => {
75 CloudWatch => {
76 CloudWatchLogGroupArn =>
77 'MyCloudWatchLogGroupArn', # min: 1, max: 2048
78 LogPrefix => 'MyLogPrefix', # max: 1024
79  
80 },
81  
82 },
83 Enabled => 1,
84  
85 },
86 ...
87 ], # min: 1, max: 1; OPTIONAL
88 }, # OPTIONAL
89 Description => 'MyDescription', # OPTIONAL
90 SentimentAnalysisSettings => {
91 DetectSentiment => 1,
92  
93 }, # OPTIONAL
94 Tags => {
95 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
96 }, # OPTIONAL
97 );
98  
99 # Results:
100 my $BotAliasId = $CreateBotAliasResponse->BotAliasId;
101 my $BotAliasLocaleSettings =
102 $CreateBotAliasResponse->BotAliasLocaleSettings;
103 my $BotAliasName = $CreateBotAliasResponse->BotAliasName;
104 my $BotAliasStatus = $CreateBotAliasResponse->BotAliasStatus;
105 my $BotId = $CreateBotAliasResponse->BotId;
106 my $BotVersion = $CreateBotAliasResponse->BotVersion;
107 my $ConversationLogSettings =
108 $CreateBotAliasResponse->ConversationLogSettings;
109 my $CreationDateTime = $CreateBotAliasResponse->CreationDateTime;
110 my $Description = $CreateBotAliasResponse->Description;
111 my $SentimentAnalysisSettings =
112 $CreateBotAliasResponse->SentimentAnalysisSettings;
113 my $Tags = $CreateBotAliasResponse->Tags;
114  
115 # Returns a L<Paws::LexModelsV2::CreateBotAliasResponse> object.
116  
117 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.
118 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/CreateBotAlias>
119  
120 =head1 ATTRIBUTES
121  
122  
123 =head2 BotAliasLocaleSettings => L<Paws::LexModelsV2::BotAliasLocaleSettingsMap>
124  
125 Maps configuration information to a specific locale. You can use this
126 parameter to specify a specific Lambda function to run different
127 functions in different locales.
128  
129  
130  
131 =head2 B<REQUIRED> BotAliasName => Str
132  
133 The alias to create. The name must be unique for the bot.
134  
135  
136  
137 =head2 B<REQUIRED> BotId => Str
138  
139 The unique identifier of the bot that the alias applies to.
140  
141  
142  
143 =head2 BotVersion => Str
144  
145 The version of the bot that this alias points to. You can use the
146 operation to change the bot version associated with the alias.
147  
148  
149  
150 =head2 ConversationLogSettings => L<Paws::LexModelsV2::ConversationLogSettings>
151  
152 Specifies whether Amazon Lex logs text and audio for a conversation
153 with the bot. When you enable conversation logs, text logs store text
154 input, transcripts of audio input, and associated metadata in Amazon
155 CloudWatch Logs. Audio logs store audio input in Amazon S3.
156  
157  
158  
159 =head2 Description => Str
160  
161 A description of the alias. Use this description to help identify the
162 alias.
163  
164  
165  
166 =head2 SentimentAnalysisSettings => L<Paws::LexModelsV2::SentimentAnalysisSettings>
167  
168  
169  
170  
171  
172 =head2 Tags => L<Paws::LexModelsV2::TagMap>
173  
174 A list of tags to add to the bot alias. You can only add tags when you
175 create an alias, you can't use the C<UpdateBotAlias> operation to
176 update the tags on a bot alias. To update tags, use the C<TagResource>
177 operation.
178  
179  
180  
181  
182 =head1 SEE ALSO
183  
184 This class forms part of L<Paws>, documenting arguments for method CreateBotAlias in L<Paws::LexModelsV2>
185  
186 =head1 BUGS and CONTRIBUTIONS
187  
188 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
189  
190 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
191  
192 =cut
193