File Coverage

blib/lib/Paws/Lambda/DeleteFunction.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::Lambda::DeleteFunction;
3 1     1   298 use Moose;
  1         4  
  1         5  
4             has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName' , required => 1);
5             has Qualifier => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'Qualifier' );
6              
7 1     1   5359 use MooseX::ClassAttribute;
  1         2  
  1         8  
8              
9             class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteFunction');
10             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/functions/{FunctionName}');
11             class_has _api_method => (isa => 'Str', is => 'ro', default => 'DELETE');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
13             class_has _result_key => (isa => 'Str', is => 'ro');
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::Lambda::DeleteFunction - Arguments for method DeleteFunction on Paws::Lambda
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method DeleteFunction on the
25             AWS Lambda service. Use the attributes of this class
26             as arguments to method DeleteFunction.
27              
28             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DeleteFunction.
29              
30             As an example:
31              
32             $service_obj->DeleteFunction(Att1 => $value1, Att2 => $value2, ...);
33              
34             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.
35              
36             =head1 ATTRIBUTES
37              
38              
39             =head2 B<REQUIRED> FunctionName => Str
40              
41             The Lambda function to delete.
42              
43             You can specify the function name (for example, C<Thumbnail>) or you
44             can specify Amazon Resource Name (ARN) of the function (for example,
45             C<arn:aws:lambda:us-west-2:account-id:function:ThumbNail>). If you are
46             using versioning, you can also provide a qualified function ARN (ARN
47             that is qualified with function version or alias name as suffix). AWS
48             Lambda also allows you to specify only the function name with the
49             account ID qualifier (for example, C<account-id:Thumbnail>). Note that
50             the length constraint applies only to the ARN. If you specify only the
51             function name, it is limited to 64 characters in length.
52              
53              
54              
55             =head2 Qualifier => Str
56              
57             Using this optional parameter you can specify a function version (but
58             not the C<$LATEST> version) to direct AWS Lambda to delete a specific
59             function version. If the function version has one or more aliases
60             pointing to it, you will get an error because you cannot have aliases
61             pointing to it. You can delete any function version but not the
62             C<$LATEST>, that is, you cannot specify C<$LATEST> as the value of this
63             parameter. The C<$LATEST> version can be deleted only when you want to
64             delete all the function versions and aliases.
65              
66             You can only specify a function version, not an alias name, using this
67             parameter. You cannot delete a function version using its alias.
68              
69             If you don't specify this parameter, AWS Lambda will delete the
70             function, including all of its versions and aliases.
71              
72              
73              
74              
75             =head1 SEE ALSO
76              
77             This class forms part of L<Paws>, documenting arguments for method DeleteFunction in L<Paws::Lambda>
78              
79             =head1 BUGS and CONTRIBUTIONS
80              
81             The source code is located here: https://github.com/pplu/aws-sdk-perl
82              
83             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
84              
85             =cut
86