blib/lib/Paws/SavingsPlans/DescribeSavingsPlansOfferings.pm untested

filter: Statementstmt 0.0% 0 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 38 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SavingsPlans::DescribeSavingsPlansOfferings;
3 use Moose;
4 has Currencies => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'currencies');
5 has Descriptions => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'descriptions');
6 has Durations => (is => 'ro', isa => 'ArrayRef[Int]', traits => ['NameInRequest'], request_name => 'durations');
7 has Filters => (is => 'ro', isa => 'ArrayRef[Paws::SavingsPlans::SavingsPlanOfferingFilterElement]', traits => ['NameInRequest'], request_name => 'filters');
8 has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults');
9 has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken');
10 has OfferingIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'offeringIds');
11 has Operations => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'operations');
12 has PaymentOptions => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'paymentOptions');
13 has PlanTypes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'planTypes');
14 has ProductType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'productType');
15 has ServiceCodes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'serviceCodes');
16 has UsageTypes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'usageTypes');
17  
18 use MooseX::ClassAttribute;
19  
20 class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeSavingsPlansOfferings');
21 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/DescribeSavingsPlansOfferings');
22 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
23 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SavingsPlans::DescribeSavingsPlansOfferingsResponse');
24 1;
25  
26 ### main pod documentation begin ###
27  
28 =head1 NAME
29  
30 Paws::SavingsPlans::DescribeSavingsPlansOfferings - Arguments for method DescribeSavingsPlansOfferings on L<Paws::SavingsPlans>
31  
32 =head1 DESCRIPTION
33  
34 This class represents the parameters used for calling the method DescribeSavingsPlansOfferings on the
35 L<AWS Savings Plans|Paws::SavingsPlans> service. Use the attributes of this class
36 as arguments to method DescribeSavingsPlansOfferings.
37  
38 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeSavingsPlansOfferings.
39  
40 =head1 SYNOPSIS
41  
42 my $savingsplans = Paws->service('SavingsPlans');
43 my $DescribeSavingsPlansOfferingsResponse =
44 $savingsplans->DescribeSavingsPlansOfferings(
45 Currencies => [
46 'CNY', ... # values: CNY, USD
47 ], # OPTIONAL
48 Descriptions => [ 'MySavingsPlanDescription', ... ], # OPTIONAL
49 Durations => [ 1, ... ], # OPTIONAL
50 Filters => [
51 {
52 Name => 'region', # values: region, instanceFamily; OPTIONAL
53 Values => [ 'MyJsonSafeFilterValueString', ... ], # OPTIONAL
54 },
55 ...
56 ], # OPTIONAL
57 MaxResults => 1, # OPTIONAL
58 NextToken => 'MyPaginationToken', # OPTIONAL
59 OfferingIds => [ 'MyUUID', ... ], # OPTIONAL
60 Operations => [
61 'MySavingsPlanOperation', ... # max: 255
62 ], # OPTIONAL
63 PaymentOptions => [
64 'All Upfront', ... # values: All Upfront, Partial Upfront, No Upfront
65 ], # OPTIONAL
66 PlanTypes => [
67 'Compute', ... # values: Compute, EC2Instance, SageMaker
68 ], # OPTIONAL
69 ProductType => 'EC2', # OPTIONAL
70 ServiceCodes => [
71 'MySavingsPlanServiceCode', ... # max: 255
72 ], # OPTIONAL
73 UsageTypes => [
74 'MySavingsPlanUsageType', ... # max: 255
75 ], # OPTIONAL
76 );
77  
78 # Results:
79 my $NextToken = $DescribeSavingsPlansOfferingsResponse->NextToken;
80 my $SearchResults = $DescribeSavingsPlansOfferingsResponse->SearchResults;
81  
82 # Returns a L<Paws::SavingsPlans::DescribeSavingsPlansOfferingsResponse> object.
83  
84 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.
85 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/savingsplans/DescribeSavingsPlansOfferings>
86  
87 =head1 ATTRIBUTES
88  
89  
90 =head2 Currencies => ArrayRef[Str|Undef]
91  
92 The currencies.
93  
94  
95  
96 =head2 Descriptions => ArrayRef[Str|Undef]
97  
98 The descriptions.
99  
100  
101  
102 =head2 Durations => ArrayRef[Int]
103  
104 The durations, in seconds.
105  
106  
107  
108 =head2 Filters => ArrayRef[L<Paws::SavingsPlans::SavingsPlanOfferingFilterElement>]
109  
110 The filters.
111  
112  
113  
114 =head2 MaxResults => Int
115  
116 The maximum number of results to return with a single call. To retrieve
117 additional results, make another call with the returned token value.
118  
119  
120  
121 =head2 NextToken => Str
122  
123 The token for the next page of results.
124  
125  
126  
127 =head2 OfferingIds => ArrayRef[Str|Undef]
128  
129 The IDs of the offerings.
130  
131  
132  
133 =head2 Operations => ArrayRef[Str|Undef]
134  
135 The specific AWS operation for the line item in the billing report.
136  
137  
138  
139 =head2 PaymentOptions => ArrayRef[Str|Undef]
140  
141 The payment options.
142  
143  
144  
145 =head2 PlanTypes => ArrayRef[Str|Undef]
146  
147 The plan type.
148  
149  
150  
151 =head2 ProductType => Str
152  
153 The product type.
154  
155 Valid values are: C<"EC2">, C<"Fargate">, C<"Lambda">, C<"SageMaker">
156  
157 =head2 ServiceCodes => ArrayRef[Str|Undef]
158  
159 The services.
160  
161  
162  
163 =head2 UsageTypes => ArrayRef[Str|Undef]
164  
165 The usage details of the line item in the billing report.
166  
167  
168  
169  
170 =head1 SEE ALSO
171  
172 This class forms part of L<Paws>, documenting arguments for method DescribeSavingsPlansOfferings in L<Paws::SavingsPlans>
173  
174 =head1 BUGS and CONTRIBUTIONS
175  
176 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
177  
178 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
179  
180 =cut
181