blib/lib/Paws/Lambda/UpdateAlias.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Lambda::UpdateAlias;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName', required => 1);
6 has FunctionVersion => (is => 'ro', isa => 'Str');
7 has Name => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'Name', required => 1);
8 has RevisionId => (is => 'ro', isa => 'Str');
9 has RoutingConfig => (is => 'ro', isa => 'Paws::Lambda::AliasRoutingConfiguration');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateAlias');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/functions/{FunctionName}/aliases/{Name}');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::AliasConfiguration');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::Lambda::UpdateAlias - Arguments for method UpdateAlias on L<Paws::Lambda>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method UpdateAlias on the
28 L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class
29 as arguments to method UpdateAlias.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateAlias.
32  
33 =head1 SYNOPSIS
34  
35 my $lambda = Paws->service('Lambda');
36 # To update a function alias
37 # The following example updates the alias named BLUE to send 30% of traffic to
38 # version 2 and 70% to version 1.
39 my $AliasConfiguration = $lambda->UpdateAlias(
40 'FunctionName' => 'my-function',
41 'FunctionVersion' => 2,
42 'Name' => 'BLUE',
43 'RoutingConfig' => {
44 'AdditionalVersionWeights' => {
45 1 => 0.7
46 }
47 }
48 );
49  
50 # Results:
51 my $AliasArn = $AliasConfiguration->AliasArn;
52 my $Description = $AliasConfiguration->Description;
53 my $FunctionVersion = $AliasConfiguration->FunctionVersion;
54 my $Name = $AliasConfiguration->Name;
55 my $RevisionId = $AliasConfiguration->RevisionId;
56 my $RoutingConfig = $AliasConfiguration->RoutingConfig;
57  
58 # Returns a L<Paws::Lambda::AliasConfiguration> object.
59  
60 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.
61 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lambda/UpdateAlias>
62  
63 =head1 ATTRIBUTES
64  
65  
66 =head2 Description => Str
67  
68 A description of the alias.
69  
70  
71  
72 =head2 B<REQUIRED> FunctionName => Str
73  
74 The name of the Lambda function.
75  
76 B<Name formats>
77  
78 =over
79  
80 =item *
81  
82 B<Function name> - C<MyFunction>.
83  
84 =item *
85  
86 B<Function ARN> -
87 C<arn:aws:lambda:us-west-2:123456789012:function:MyFunction>.
88  
89 =item *
90  
91 B<Partial ARN> - C<123456789012:function:MyFunction>.
92  
93 =back
94  
95 The length constraint applies only to the full ARN. If you specify only
96 the function name, it is limited to 64 characters in length.
97  
98  
99  
100 =head2 FunctionVersion => Str
101  
102 The function version that the alias invokes.
103  
104  
105  
106 =head2 B<REQUIRED> Name => Str
107  
108 The name of the alias.
109  
110  
111  
112 =head2 RevisionId => Str
113  
114 Only update the alias if the revision ID matches the ID that's
115 specified. Use this option to avoid modifying an alias that has changed
116 since you last read it.
117  
118  
119  
120 =head2 RoutingConfig => L<Paws::Lambda::AliasRoutingConfiguration>
121  
122 The routing configuration
123 (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing)
124 of the alias.
125  
126  
127  
128  
129 =head1 SEE ALSO
130  
131 This class forms part of L<Paws>, documenting arguments for method UpdateAlias in L<Paws::Lambda>
132  
133 =head1 BUGS and CONTRIBUTIONS
134  
135 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
136  
137 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
138  
139 =cut
140