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

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SavingsPlans::CreateSavingsPlan;
3 use Moose;
4 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken');
5 has Commitment => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'commitment', required => 1);
6 has PurchaseTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'purchaseTime');
7 has SavingsPlanOfferingId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'savingsPlanOfferingId', required => 1);
8 has Tags => (is => 'ro', isa => 'Paws::SavingsPlans::TagMap', traits => ['NameInRequest'], request_name => 'tags');
9 has UpfrontPaymentAmount => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'upfrontPaymentAmount');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateSavingsPlan');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/CreateSavingsPlan');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SavingsPlans::CreateSavingsPlanResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::SavingsPlans::CreateSavingsPlan - Arguments for method CreateSavingsPlan on L<Paws::SavingsPlans>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateSavingsPlan on the
28 L<AWS Savings Plans|Paws::SavingsPlans> service. Use the attributes of this class
29 as arguments to method CreateSavingsPlan.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateSavingsPlan.
32  
33 =head1 SYNOPSIS
34  
35 my $savingsplans = Paws->service('SavingsPlans');
36 my $CreateSavingsPlanResponse = $savingsplans->CreateSavingsPlan(
37 Commitment => 'MyAmount',
38 SavingsPlanOfferingId => 'MySavingsPlanOfferingId',
39 ClientToken => 'MyClientToken', # OPTIONAL
40 PurchaseTime => '1970-01-01T01:00:00', # OPTIONAL
41 Tags => { 'MyTagKey' => 'MyTagValue', }, # OPTIONAL
42 UpfrontPaymentAmount => 'MyAmount', # OPTIONAL
43 );
44  
45 # Results:
46 my $SavingsPlanId = $CreateSavingsPlanResponse->SavingsPlanId;
47  
48 # Returns a L<Paws::SavingsPlans::CreateSavingsPlanResponse> object.
49  
50 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.
51 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/savingsplans/CreateSavingsPlan>
52  
53 =head1 ATTRIBUTES
54  
55  
56 =head2 ClientToken => Str
57  
58 Unique, case-sensitive identifier that you provide to ensure the
59 idempotency of the request.
60  
61  
62  
63 =head2 B<REQUIRED> Commitment => Str
64  
65 The hourly commitment, in USD. This is a value between 0.001 and 1
66 million. You cannot specify more than three digits after the decimal
67 point.
68  
69  
70  
71 =head2 PurchaseTime => Str
72  
73 The time at which to purchase the Savings Plan, in UTC format
74 (YYYY-MM-DDTHH:MM:SSZ).
75  
76  
77  
78 =head2 B<REQUIRED> SavingsPlanOfferingId => Str
79  
80 The ID of the offering.
81  
82  
83  
84 =head2 Tags => L<Paws::SavingsPlans::TagMap>
85  
86 One or more tags.
87  
88  
89  
90 =head2 UpfrontPaymentAmount => Str
91  
92 The up-front payment amount. This is a whole number between 50 and 99
93 percent of the total value of the Savings Plan. This parameter is
94 supported only if the payment option is C<Partial Upfront>.
95  
96  
97  
98  
99 =head1 SEE ALSO
100  
101 This class forms part of L<Paws>, documenting arguments for method CreateSavingsPlan in L<Paws::SavingsPlans>
102  
103 =head1 BUGS and CONTRIBUTIONS
104  
105 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
106  
107 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
108  
109 =cut
110