blib/lib/Paws/Pricing/GetProducts.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Pricing::GetProducts;
3 use Moose;
4 has Filters => (is => 'ro', isa => 'ArrayRef[Paws::Pricing::Filter]');
5 has FormatVersion => (is => 'ro', isa => 'Str');
6 has MaxResults => (is => 'ro', isa => 'Int');
7 has NextToken => (is => 'ro', isa => 'Str');
8 has ServiceCode => (is => 'ro', isa => 'Str');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetProducts');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Pricing::GetProductsResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::Pricing::GetProducts - Arguments for method GetProducts on L<Paws::Pricing>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method GetProducts on the
26 L<AWS Price List Service|Paws::Pricing> service. Use the attributes of this class
27 as arguments to method GetProducts.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetProducts.
30  
31 =head1 SYNOPSIS
32  
33 my $api.pricing = Paws->service('Pricing');
34 # To retrieve a list of products
35 # This operation returns a list of products that match the given criteria.
36 my $GetProductsResponse = $api . pricing->GetProducts(
37 'Filters' => [
38  
39 {
40 'Field' => 'ServiceCode',
41 'Type' => 'TERM_MATCH',
42 'Value' => 'AmazonEC2'
43 },
44  
45 {
46 'Field' => 'volumeType',
47 'Type' => 'TERM_MATCH',
48 'Value' => 'Provisioned IOPS'
49 }
50 ],
51 'FormatVersion' => 'aws_v1',
52 'MaxResults' => 1
53 );
54  
55 # Results:
56 my $FormatVersion = $GetProductsResponse->FormatVersion;
57 my $NextToken = $GetProductsResponse->NextToken;
58 my $PriceList = $GetProductsResponse->PriceList;
59  
60 # Returns a L<Paws::Pricing::GetProductsResponse> object.
61  
62 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.
63 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.pricing/GetProducts>
64  
65 =head1 ATTRIBUTES
66  
67  
68 =head2 Filters => ArrayRef[L<Paws::Pricing::Filter>]
69  
70 The list of filters that limit the returned products. only products
71 that match all filters are returned.
72  
73  
74  
75 =head2 FormatVersion => Str
76  
77 The format version that you want the response to be in.
78  
79 Valid values are: C<aws_v1>
80  
81  
82  
83 =head2 MaxResults => Int
84  
85 The maximum number of results to return in the response.
86  
87  
88  
89 =head2 NextToken => Str
90  
91 The pagination token that indicates the next set of results that you
92 want to retrieve.
93  
94  
95  
96 =head2 ServiceCode => Str
97  
98 The code for the service whose products you want to retrieve.
99  
100  
101  
102  
103 =head1 SEE ALSO
104  
105 This class forms part of L<Paws>, documenting arguments for method GetProducts in L<Paws::Pricing>
106  
107 =head1 BUGS and CONTRIBUTIONS
108  
109 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
110  
111 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
112  
113 =cut
114