**To create a Cost and Usage budget** The following ``create-budget`` command creates a Cost and Usage budget. :: aws budgets create-budget \ --account-id 111122223333 \ --budget file://budget.json \ --notifications-with-subscribers file://notifications-with-subscribers.json Contents of ``budget.json``:: { "BudgetLimit": { "Amount": "100", "Unit": "USD" }, "BudgetName": "Example Tag Budget", "BudgetType": "COST", "CostFilters": { "TagKeyValue": [ "user:Key$value1", "user:Key$value2" ] }, "CostTypes": { "IncludeCredit": true, "IncludeDiscount": true, "IncludeOtherSubscription": true, "IncludeRecurring": true, "IncludeRefund": true, "IncludeSubscription": true, "IncludeSupport": true, "IncludeTax": true, "IncludeUpfront": true, "UseBlended": false }, "TimePeriod": { "Start": 1477958399, "End": 3706473600 }, "TimeUnit": "MONTHLY" } Contents of ``notifications-with-subscribers.json``:: [ { "Notification": { "ComparisonOperator": "GREATER_THAN", "NotificationType": "ACTUAL", "Threshold": 80, "ThresholdType": "PERCENTAGE" }, "Subscribers": [ { "Address": "example@example.com", "SubscriptionType": "EMAIL" } ] } ]
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
create-budget.rst | File | 1.71 KB | 0644 |
|
create-notification.rst | File | 424 B | 0644 |
|
create-subscriber.rst | File | 428 B | 0644 |
|
delete-budget.rst | File | 195 B | 0644 |
|
delete-notification.rst | File | 335 B | 0644 |
|
delete-subscriber.rst | File | 404 B | 0644 |
|
describe-budget.rst | File | 1.39 KB | 0644 |
|
describe-budgets.rst | File | 1.56 KB | 0644 |
|
describe-notifications-for-budget.rst | File | 440 B | 0644 |
|
describe-subscribers-for-notification.rst | File | 645 B | 0644 |
|
update-budget.rst | File | 977 B | 0644 |
|
update-notification.rst | File | 486 B | 0644 |
|
update-subscriber.rst | File | 470 B | 0644 |
|