| 1 | |||
| 2 | package Paws::Budgets::UpdateBudget; | ||
| 3 | use Moose; | ||
| 4 | has AccountId => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has NewBudget => (is => 'ro', isa => 'Paws::Budgets::Budget', required => 1); | ||
| 6 | |||
| 7 | use MooseX::ClassAttribute; | ||
| 8 | |||
| 9 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateBudget'); | ||
| 10 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Budgets::UpdateBudgetResponse'); | ||
| 11 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::Budgets::UpdateBudget - Arguments for method UpdateBudget on L<Paws::Budgets> | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This class represents the parameters used for calling the method UpdateBudget on the | ||
| 23 | L<AWS Budgets|Paws::Budgets> service. Use the attributes of this class | ||
| 24 | as arguments to method UpdateBudget. | ||
| 25 | |||
| 26 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateBudget. | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | my $budgets = Paws->service('Budgets'); | ||
| 31 | my $UpdateBudgetResponse = $budgets->UpdateBudget( | ||
| 32 | AccountId => 'MyAccountId', | ||
| 33 | NewBudget => { | ||
| 34 | BudgetName => 'MyBudgetName', # min: 1, max: 100 | ||
| 35 | BudgetType => 'USAGE' | ||
| 36 | , # values: USAGE, COST, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, SAVINGS_PLANS_COVERAGE | ||
| 37 | TimeUnit => 'DAILY', # values: DAILY, MONTHLY, QUARTERLY, ANNUALLY | ||
| 38 | BudgetLimit => { | ||
| 39 | Amount => 'MyNumericValue', # min: 1, max: 2147483647 | ||
| 40 | Unit => 'MyUnitValue', # min: 1, max: 2147483647 | ||
| 41 | |||
| 42 | }, # OPTIONAL | ||
| 43 | CalculatedSpend => { | ||
| 44 | ActualSpend => { | ||
| 45 | Amount => 'MyNumericValue', # min: 1, max: 2147483647 | ||
| 46 | Unit => 'MyUnitValue', # min: 1, max: 2147483647 | ||
| 47 | |||
| 48 | }, # OPTIONAL | ||
| 49 | ForecastedSpend => { | ||
| 50 | Amount => 'MyNumericValue', # min: 1, max: 2147483647 | ||
| 51 | Unit => 'MyUnitValue', # min: 1, max: 2147483647 | ||
| 52 | |||
| 53 | }, # OPTIONAL | ||
| 54 | }, # OPTIONAL | ||
| 55 | CostFilters => { | ||
| 56 | 'MyGenericString' => [ | ||
| 57 | 'MyGenericString', ... # max: 2147483647 | ||
| 58 | ], # key: max: 2147483647 | ||
| 59 | }, # OPTIONAL | ||
| 60 | CostTypes => { | ||
| 61 | IncludeCredit => 1, # OPTIONAL | ||
| 62 | IncludeDiscount => 1, # OPTIONAL | ||
| 63 | IncludeOtherSubscription => 1, # OPTIONAL | ||
| 64 | IncludeRecurring => 1, # OPTIONAL | ||
| 65 | IncludeRefund => 1, # OPTIONAL | ||
| 66 | IncludeSubscription => 1, # OPTIONAL | ||
| 67 | IncludeSupport => 1, # OPTIONAL | ||
| 68 | IncludeTax => 1, # OPTIONAL | ||
| 69 | IncludeUpfront => 1, # OPTIONAL | ||
| 70 | UseAmortized => 1, # OPTIONAL | ||
| 71 | UseBlended => 1, # OPTIONAL | ||
| 72 | }, # OPTIONAL | ||
| 73 | LastUpdatedTime => '1970-01-01T01:00:00', # OPTIONAL | ||
| 74 | PlannedBudgetLimits => { | ||
| 75 | 'MyGenericString' => { | ||
| 76 | Amount => 'MyNumericValue', # min: 1, max: 2147483647 | ||
| 77 | Unit => 'MyUnitValue', # min: 1, max: 2147483647 | ||
| 78 | |||
| 79 | }, # key: max: 2147483647, value: OPTIONAL | ||
| 80 | }, # OPTIONAL | ||
| 81 | TimePeriod => { | ||
| 82 | End => '1970-01-01T01:00:00', # OPTIONAL | ||
| 83 | Start => '1970-01-01T01:00:00', # OPTIONAL | ||
| 84 | }, # OPTIONAL | ||
| 85 | }, | ||
| 86 | |||
| 87 | ); | ||
| 88 | |||
| 89 | 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. | ||
| 90 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/budgets/UpdateBudget> | ||
| 91 | |||
| 92 | =head1 ATTRIBUTES | ||
| 93 | |||
| 94 | |||
| 95 | =head2 B<REQUIRED> AccountId => Str | ||
| 96 | |||
| 97 | The C<accountId> that is associated with the budget that you want to | ||
| 98 | update. | ||
| 99 | |||
| 100 | |||
| 101 | |||
| 102 | =head2 B<REQUIRED> NewBudget => L<Paws::Budgets::Budget> | ||
| 103 | |||
| 104 | The budget that you want to update your budget to. | ||
| 105 | |||
| 106 | |||
| 107 | |||
| 108 | |||
| 109 | =head1 SEE ALSO | ||
| 110 | |||
| 111 | This class forms part of L<Paws>, documenting arguments for method UpdateBudget in L<Paws::Budgets> | ||
| 112 | |||
| 113 | =head1 BUGS and CONTRIBUTIONS | ||
| 114 | |||
| 115 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 116 | |||
| 117 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 118 | |||
| 119 | =cut | ||
| 120 |