blib/lib/Paws/CloudFront/UpdateFunction.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CloudFront::UpdateFunction;
3 use Moose;
4 has FunctionCode => (is => 'ro', isa => 'Str', required => 1);
5 has FunctionConfig => (is => 'ro', isa => 'Paws::CloudFront::FunctionConfig', required => 1);
6 has IfMatch => (is => 'ro', isa => 'Str', header_name => 'If-Match', traits => ['ParamInHeader'], required => 1);
7 has Name => (is => 'ro', isa => 'Str', uri_name => 'Name', traits => ['ParamInURI'], required => 1);
8  
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateFunction');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2020-05-31/function/{Name}');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudFront::UpdateFunctionResult');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'UpdateFunctionRequest');
18 class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'http://cloudfront.amazonaws.com/doc/2020-05-31/');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::CloudFront::UpdateFunction - Arguments for method UpdateFunction on L<Paws::CloudFront>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method UpdateFunction2020_05_31 on the
30 L<Amazon CloudFront|Paws::CloudFront> service. Use the attributes of this class
31 as arguments to method UpdateFunction2020_05_31.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateFunction2020_05_31.
34  
35 =head1 SYNOPSIS
36  
37 my $cloudfront = Paws->service('CloudFront');
38 my $UpdateFunctionResult = $cloudfront->UpdateFunction(
39 FunctionCode => 'BlobFunctionBlob',
40 FunctionConfig => {
41 Comment => 'Mystring',
42 Runtime => 'cloudfront-js-1.0', # values: cloudfront-js-1.0
43  
44 },
45 IfMatch => 'Mystring',
46 Name => 'Mystring',
47  
48 );
49  
50 # Results:
51 my $ETag = $UpdateFunctionResult->ETag;
52 my $FunctionSummary = $UpdateFunctionResult->FunctionSummary;
53  
54 # Returns a L<Paws::CloudFront::UpdateFunctionResult> object.
55  
56 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.
57 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/cloudfront/UpdateFunction>
58  
59 =head1 ATTRIBUTES
60  
61  
62 =head2 B<REQUIRED> FunctionCode => Str
63  
64 The function code. For more information about writing a CloudFront
65 function, see Writing function code for CloudFront Functions
66 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html)
67 in the I<Amazon CloudFront Developer Guide>.
68  
69  
70  
71 =head2 B<REQUIRED> FunctionConfig => L<Paws::CloudFront::FunctionConfig>
72  
73 Configuration information about the function.
74  
75  
76  
77 =head2 B<REQUIRED> IfMatch => Str
78  
79 The current version (C<ETag> value) of the function that you are
80 updating, which you can get using C<DescribeFunction>.
81  
82  
83  
84 =head2 B<REQUIRED> Name => Str
85  
86 The name of the function that you are updating.
87  
88  
89  
90  
91 =head1 SEE ALSO
92  
93 This class forms part of L<Paws>, documenting arguments for method UpdateFunction2020_05_31 in L<Paws::CloudFront>
94  
95 =head1 BUGS and CONTRIBUTIONS
96  
97 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
98  
99 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
100  
101 =cut
102