blib/lib/Paws/LexModels/PutBotAlias.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LexModels::PutBotAlias;
3 use Moose;
4 has BotName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botName', required => 1);
5 has BotVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'botVersion', required => 1);
6 has Checksum => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'checksum');
7 has ConversationLogs => (is => 'ro', isa => 'Paws::LexModels::ConversationLogsRequest', traits => ['NameInRequest'], request_name => 'conversationLogs');
8 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
9 has Name => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'name', required => 1);
10 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::LexModels::Tag]', traits => ['NameInRequest'], request_name => 'tags');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutBotAlias');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/bots/{botName}/aliases/{name}');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModels::PutBotAliasResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::LexModels::PutBotAlias - Arguments for method PutBotAlias on L<Paws::LexModels>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method PutBotAlias on the
29 L<Amazon Lex Model Building Service|Paws::LexModels> service. Use the attributes of this class
30 as arguments to method PutBotAlias.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutBotAlias.
33  
34 =head1 SYNOPSIS
35  
36 my $models.lex = Paws->service('LexModels');
37 my $PutBotAliasResponse = $models . lex->PutBotAlias(
38 BotName => 'MyBotName',
39 BotVersion => 'MyVersion',
40 Name => 'MyAliasName',
41 Checksum => 'MyString', # OPTIONAL
42 ConversationLogs => {
43 IamRoleArn => 'MyIamRoleArn', # min: 20, max: 2048
44 LogSettings => [
45 {
46 Destination => 'CLOUDWATCH_LOGS', # values: CLOUDWATCH_LOGS, S3
47 LogType => 'AUDIO', # values: AUDIO, TEXT
48 ResourceArn => 'MyResourceArn', # min: 1, max: 2048
49 KmsKeyArn => 'MyKmsKeyArn', # min: 20, max: 2048; OPTIONAL
50 },
51 ...
52 ],
53  
54 }, # OPTIONAL
55 Description => 'MyDescription', # OPTIONAL
56 Tags => [
57 {
58 Key => 'MyTagKey', # min: 1, max: 128
59 Value => 'MyTagValue', # max: 256
60  
61 },
62 ...
63 ], # OPTIONAL
64 );
65  
66 # Results:
67 my $BotName = $PutBotAliasResponse->BotName;
68 my $BotVersion = $PutBotAliasResponse->BotVersion;
69 my $Checksum = $PutBotAliasResponse->Checksum;
70 my $ConversationLogs = $PutBotAliasResponse->ConversationLogs;
71 my $CreatedDate = $PutBotAliasResponse->CreatedDate;
72 my $Description = $PutBotAliasResponse->Description;
73 my $LastUpdatedDate = $PutBotAliasResponse->LastUpdatedDate;
74 my $Name = $PutBotAliasResponse->Name;
75 my $Tags = $PutBotAliasResponse->Tags;
76  
77 # Returns a L<Paws::LexModels::PutBotAliasResponse> object.
78  
79 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.
80 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models.lex/PutBotAlias>
81  
82 =head1 ATTRIBUTES
83  
84  
85 =head2 B<REQUIRED> BotName => Str
86  
87 The name of the bot.
88  
89  
90  
91 =head2 B<REQUIRED> BotVersion => Str
92  
93 The version of the bot.
94  
95  
96  
97 =head2 Checksum => Str
98  
99 Identifies a specific revision of the C<$LATEST> version.
100  
101 When you create a new bot alias, leave the C<checksum> field blank. If
102 you specify a checksum you get a C<BadRequestException> exception.
103  
104 When you want to update a bot alias, set the C<checksum> field to the
105 checksum of the most recent revision of the C<$LATEST> version. If you
106 don't specify the C< checksum> field, or if the checksum does not match
107 the C<$LATEST> version, you get a C<PreconditionFailedException>
108 exception.
109  
110  
111  
112 =head2 ConversationLogs => L<Paws::LexModels::ConversationLogsRequest>
113  
114 Settings for conversation logs for the alias.
115  
116  
117  
118 =head2 Description => Str
119  
120 A description of the alias.
121  
122  
123  
124 =head2 B<REQUIRED> Name => Str
125  
126 The name of the alias. The name is I<not> case sensitive.
127  
128  
129  
130 =head2 Tags => ArrayRef[L<Paws::LexModels::Tag>]
131  
132 A list of tags to add to the bot alias. You can only add tags when you
133 create an alias, you can't use the C<PutBotAlias> operation to update
134 the tags on a bot alias. To update tags, use the C<TagResource>
135 operation.
136  
137  
138  
139  
140 =head1 SEE ALSO
141  
142 This class forms part of L<Paws>, documenting arguments for method PutBotAlias in L<Paws::LexModels>
143  
144 =head1 BUGS and CONTRIBUTIONS
145  
146 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
147  
148 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
149  
150 =cut
151