blib/lib/Paws/Budgets/UpdateBudgetAction.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Budgets::UpdateBudgetAction;
3 use Moose;
4 has AccountId => (is => 'ro', isa => 'Str', required => 1);
5 has ActionId => (is => 'ro', isa => 'Str', required => 1);
6 has ActionThreshold => (is => 'ro', isa => 'Paws::Budgets::ActionThreshold');
7 has ApprovalModel => (is => 'ro', isa => 'Str');
8 has BudgetName => (is => 'ro', isa => 'Str', required => 1);
9 has Definition => (is => 'ro', isa => 'Paws::Budgets::Definition');
10 has ExecutionRoleArn => (is => 'ro', isa => 'Str');
11 has NotificationType => (is => 'ro', isa => 'Str');
12 has Subscribers => (is => 'ro', isa => 'ArrayRef[Paws::Budgets::Subscriber]');
13  
14 use MooseX::ClassAttribute;
15  
16 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateBudgetAction');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Budgets::UpdateBudgetActionResponse');
18 class_has _result_key => (isa => 'Str', is => 'ro');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::Budgets::UpdateBudgetAction - Arguments for method UpdateBudgetAction on L<Paws::Budgets>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method UpdateBudgetAction on the
30 L<AWS Budgets|Paws::Budgets> service. Use the attributes of this class
31 as arguments to method UpdateBudgetAction.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateBudgetAction.
34  
35 =head1 SYNOPSIS
36  
37 my $budgets = Paws->service('Budgets');
38 my $UpdateBudgetActionResponse = $budgets->UpdateBudgetAction(
39 AccountId => 'MyAccountId',
40 ActionId => 'MyActionId',
41 BudgetName => 'MyBudgetName',
42 ActionThreshold => {
43 ActionThresholdType =>
44 'PERCENTAGE', # values: PERCENTAGE, ABSOLUTE_VALUE
45 ActionThresholdValue => 1, # max: 40000000000
46  
47 }, # OPTIONAL
48 ApprovalModel => 'AUTOMATIC', # OPTIONAL
49 Definition => {
50 IamActionDefinition => {
51 PolicyArn => 'MyPolicyArn', # min: 25, max: 684
52 Groups => [
53 'MyGroup', ... # min: 1, max: 640
54 ], # min: 1, max: 100; OPTIONAL
55 Roles => [
56 'MyRole', ... # min: 1, max: 576
57 ], # min: 1, max: 100; OPTIONAL
58 Users => [
59 'MyUser', ... # min: 1, max: 576
60 ], # min: 1, max: 100; OPTIONAL
61 }, # OPTIONAL
62 ScpActionDefinition => {
63 PolicyId => 'MyPolicyId', # min: 10, max: 130
64 TargetIds => [
65 'MyTargetId', ... # min: 12, max: 68
66 ], # min: 1, max: 100
67  
68 }, # OPTIONAL
69 SsmActionDefinition => {
70 ActionSubType => 'STOP_EC2_INSTANCES'
71 , # values: STOP_EC2_INSTANCES, STOP_RDS_INSTANCES
72 InstanceIds => [
73 'MyInstanceId', ... # min: 1, max: 63
74 ], # min: 1, max: 100
75 Region => 'MyRegion', # min: 9, max: 20
76  
77 }, # OPTIONAL
78 }, # OPTIONAL
79 ExecutionRoleArn => 'MyRoleArn', # OPTIONAL
80 NotificationType => 'ACTUAL', # OPTIONAL
81 Subscribers => [
82 {
83 Address => 'MySubscriberAddress', # min: 1, max: 2147483647
84 SubscriptionType => 'SNS', # values: SNS, EMAIL
85  
86 },
87 ...
88 ], # OPTIONAL
89 );
90  
91 # Results:
92 my $AccountId = $UpdateBudgetActionResponse->AccountId;
93 my $BudgetName = $UpdateBudgetActionResponse->BudgetName;
94 my $NewAction = $UpdateBudgetActionResponse->NewAction;
95 my $OldAction = $UpdateBudgetActionResponse->OldAction;
96  
97 # Returns a L<Paws::Budgets::UpdateBudgetActionResponse> object.
98  
99 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.
100 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/budgets/UpdateBudgetAction>
101  
102 =head1 ATTRIBUTES
103  
104  
105 =head2 B<REQUIRED> AccountId => Str
106  
107  
108  
109  
110  
111 =head2 B<REQUIRED> ActionId => Str
112  
113 A system-generated universally unique identifier (UUID) for the action.
114  
115  
116  
117 =head2 ActionThreshold => L<Paws::Budgets::ActionThreshold>
118  
119  
120  
121  
122  
123 =head2 ApprovalModel => Str
124  
125 This specifies if the action needs manual or automatic approval.
126  
127 Valid values are: C<"AUTOMATIC">, C<"MANUAL">
128  
129 =head2 B<REQUIRED> BudgetName => Str
130  
131  
132  
133  
134  
135 =head2 Definition => L<Paws::Budgets::Definition>
136  
137  
138  
139  
140  
141 =head2 ExecutionRoleArn => Str
142  
143 The role passed for action execution and reversion. Roles and actions
144 must be in the same account.
145  
146  
147  
148 =head2 NotificationType => Str
149  
150  
151  
152 Valid values are: C<"ACTUAL">, C<"FORECASTED">
153  
154 =head2 Subscribers => ArrayRef[L<Paws::Budgets::Subscriber>]
155  
156  
157  
158  
159  
160  
161 =head1 SEE ALSO
162  
163 This class forms part of L<Paws>, documenting arguments for method UpdateBudgetAction in L<Paws::Budgets>
164  
165 =head1 BUGS and CONTRIBUTIONS
166  
167 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
168  
169 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
170  
171 =cut
172