Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- Service Configuration
- Errors
- ActionStatus
- ActionSubType
- ActionType
- ApprovalModel
- AutoAdjustType
- BudgetType
- ComparisonOperator
- EventType
- ExecutionType
- NotificationState
- NotificationType
- SubscriptionType
- ThresholdType
- TimeUnit
- Action
- ActionHistory
- ActionHistoryDetails
- ActionThreshold
- AutoAdjustData
- Budget
- BudgetNotificationsForAccount
- BudgetPerformanceHistory
- BudgetedAndActualAmounts
- CalculatedSpend
- CostTypes
- Definition
- HistoricalOptions
- IamActionDefinition
- Notification
- NotificationWithSubscribers
- ScpActionDefinition
- Spend
- SsmActionDefinition
- Subscriber
- TimePeriod
Synopsis
- defaultService :: Service
- _AccessDeniedException :: AsError a => Fold a ServiceError
- _CreationLimitExceededException :: AsError a => Fold a ServiceError
- _DuplicateRecordException :: AsError a => Fold a ServiceError
- _ExpiredNextTokenException :: AsError a => Fold a ServiceError
- _InternalErrorException :: AsError a => Fold a ServiceError
- _InvalidNextTokenException :: AsError a => Fold a ServiceError
- _InvalidParameterException :: AsError a => Fold a ServiceError
- _NotFoundException :: AsError a => Fold a ServiceError
- _ResourceLockedException :: AsError a => Fold a ServiceError
- _ThrottlingException :: AsError a => Fold a ServiceError
- newtype ActionStatus where
- ActionStatus' { }
- pattern ActionStatus_EXECUTION_FAILURE :: ActionStatus
- pattern ActionStatus_EXECUTION_IN_PROGRESS :: ActionStatus
- pattern ActionStatus_EXECUTION_SUCCESS :: ActionStatus
- pattern ActionStatus_PENDING :: ActionStatus
- pattern ActionStatus_RESET_FAILURE :: ActionStatus
- pattern ActionStatus_RESET_IN_PROGRESS :: ActionStatus
- pattern ActionStatus_REVERSE_FAILURE :: ActionStatus
- pattern ActionStatus_REVERSE_IN_PROGRESS :: ActionStatus
- pattern ActionStatus_REVERSE_SUCCESS :: ActionStatus
- pattern ActionStatus_STANDBY :: ActionStatus
- newtype ActionSubType where
- ActionSubType' { }
- pattern ActionSubType_STOP_EC2_INSTANCES :: ActionSubType
- pattern ActionSubType_STOP_RDS_INSTANCES :: ActionSubType
- newtype ActionType where
- ActionType' { }
- pattern ActionType_APPLY_IAM_POLICY :: ActionType
- pattern ActionType_APPLY_SCP_POLICY :: ActionType
- pattern ActionType_RUN_SSM_DOCUMENTS :: ActionType
- newtype ApprovalModel where
- ApprovalModel' { }
- pattern ApprovalModel_AUTOMATIC :: ApprovalModel
- pattern ApprovalModel_MANUAL :: ApprovalModel
- newtype AutoAdjustType where
- AutoAdjustType' { }
- pattern AutoAdjustType_FORECAST :: AutoAdjustType
- pattern AutoAdjustType_HISTORICAL :: AutoAdjustType
- newtype BudgetType where
- BudgetType' { }
- pattern BudgetType_COST :: BudgetType
- pattern BudgetType_RI_COVERAGE :: BudgetType
- pattern BudgetType_RI_UTILIZATION :: BudgetType
- pattern BudgetType_SAVINGS_PLANS_COVERAGE :: BudgetType
- pattern BudgetType_SAVINGS_PLANS_UTILIZATION :: BudgetType
- pattern BudgetType_USAGE :: BudgetType
- newtype ComparisonOperator where
- newtype EventType where
- EventType' { }
- pattern EventType_CREATE_ACTION :: EventType
- pattern EventType_DELETE_ACTION :: EventType
- pattern EventType_EXECUTE_ACTION :: EventType
- pattern EventType_SYSTEM :: EventType
- pattern EventType_UPDATE_ACTION :: EventType
- newtype ExecutionType where
- ExecutionType' { }
- pattern ExecutionType_APPROVE_BUDGET_ACTION :: ExecutionType
- pattern ExecutionType_RESET_BUDGET_ACTION :: ExecutionType
- pattern ExecutionType_RETRY_BUDGET_ACTION :: ExecutionType
- pattern ExecutionType_REVERSE_BUDGET_ACTION :: ExecutionType
- newtype NotificationState where
- NotificationState' { }
- pattern NotificationState_ALARM :: NotificationState
- pattern NotificationState_OK :: NotificationState
- newtype NotificationType where
- NotificationType' { }
- pattern NotificationType_ACTUAL :: NotificationType
- pattern NotificationType_FORECASTED :: NotificationType
- newtype SubscriptionType where
- SubscriptionType' { }
- pattern SubscriptionType_EMAIL :: SubscriptionType
- pattern SubscriptionType_SNS :: SubscriptionType
- newtype ThresholdType where
- ThresholdType' { }
- pattern ThresholdType_ABSOLUTE_VALUE :: ThresholdType
- pattern ThresholdType_PERCENTAGE :: ThresholdType
- newtype TimeUnit where
- TimeUnit' {
- fromTimeUnit :: Text
- pattern TimeUnit_ANNUALLY :: TimeUnit
- pattern TimeUnit_DAILY :: TimeUnit
- pattern TimeUnit_MONTHLY :: TimeUnit
- pattern TimeUnit_QUARTERLY :: TimeUnit
- TimeUnit' {
- data Action = Action' {}
- newAction :: Text -> Text -> NotificationType -> ActionType -> ActionThreshold -> Definition -> Text -> ApprovalModel -> ActionStatus -> NonEmpty Subscriber -> Action
- action_actionId :: Lens' Action Text
- action_budgetName :: Lens' Action Text
- action_notificationType :: Lens' Action NotificationType
- action_actionType :: Lens' Action ActionType
- action_actionThreshold :: Lens' Action ActionThreshold
- action_definition :: Lens' Action Definition
- action_executionRoleArn :: Lens' Action Text
- action_approvalModel :: Lens' Action ApprovalModel
- action_status :: Lens' Action ActionStatus
- action_subscribers :: Lens' Action (NonEmpty Subscriber)
- data ActionHistory = ActionHistory' {}
- newActionHistory :: UTCTime -> ActionStatus -> EventType -> ActionHistoryDetails -> ActionHistory
- actionHistory_timestamp :: Lens' ActionHistory UTCTime
- actionHistory_status :: Lens' ActionHistory ActionStatus
- actionHistory_eventType :: Lens' ActionHistory EventType
- actionHistory_actionHistoryDetails :: Lens' ActionHistory ActionHistoryDetails
- data ActionHistoryDetails = ActionHistoryDetails' {}
- newActionHistoryDetails :: Text -> Action -> ActionHistoryDetails
- actionHistoryDetails_message :: Lens' ActionHistoryDetails Text
- actionHistoryDetails_action :: Lens' ActionHistoryDetails Action
- data ActionThreshold = ActionThreshold' {}
- newActionThreshold :: Double -> ThresholdType -> ActionThreshold
- actionThreshold_actionThresholdValue :: Lens' ActionThreshold Double
- actionThreshold_actionThresholdType :: Lens' ActionThreshold ThresholdType
- data AutoAdjustData = AutoAdjustData' {}
- newAutoAdjustData :: AutoAdjustType -> AutoAdjustData
- autoAdjustData_historicalOptions :: Lens' AutoAdjustData (Maybe HistoricalOptions)
- autoAdjustData_lastAutoAdjustTime :: Lens' AutoAdjustData (Maybe UTCTime)
- autoAdjustData_autoAdjustType :: Lens' AutoAdjustData AutoAdjustType
- data Budget = Budget' {
- autoAdjustData :: Maybe AutoAdjustData
- budgetLimit :: Maybe Spend
- calculatedSpend :: Maybe CalculatedSpend
- costFilters :: Maybe (HashMap Text [Text])
- costTypes :: Maybe CostTypes
- lastUpdatedTime :: Maybe POSIX
- plannedBudgetLimits :: Maybe (HashMap Text Spend)
- timePeriod :: Maybe TimePeriod
- budgetName :: Text
- timeUnit :: TimeUnit
- budgetType :: BudgetType
- newBudget :: Text -> TimeUnit -> BudgetType -> Budget
- budget_autoAdjustData :: Lens' Budget (Maybe AutoAdjustData)
- budget_budgetLimit :: Lens' Budget (Maybe Spend)
- budget_calculatedSpend :: Lens' Budget (Maybe CalculatedSpend)
- budget_costFilters :: Lens' Budget (Maybe (HashMap Text [Text]))
- budget_costTypes :: Lens' Budget (Maybe CostTypes)
- budget_lastUpdatedTime :: Lens' Budget (Maybe UTCTime)
- budget_plannedBudgetLimits :: Lens' Budget (Maybe (HashMap Text Spend))
- budget_timePeriod :: Lens' Budget (Maybe TimePeriod)
- budget_budgetName :: Lens' Budget Text
- budget_timeUnit :: Lens' Budget TimeUnit
- budget_budgetType :: Lens' Budget BudgetType
- data BudgetNotificationsForAccount = BudgetNotificationsForAccount' {}
- newBudgetNotificationsForAccount :: BudgetNotificationsForAccount
- budgetNotificationsForAccount_budgetName :: Lens' BudgetNotificationsForAccount (Maybe Text)
- budgetNotificationsForAccount_notifications :: Lens' BudgetNotificationsForAccount (Maybe [Notification])
- data BudgetPerformanceHistory = BudgetPerformanceHistory' {}
- newBudgetPerformanceHistory :: BudgetPerformanceHistory
- budgetPerformanceHistory_budgetName :: Lens' BudgetPerformanceHistory (Maybe Text)
- budgetPerformanceHistory_budgetType :: Lens' BudgetPerformanceHistory (Maybe BudgetType)
- budgetPerformanceHistory_budgetedAndActualAmountsList :: Lens' BudgetPerformanceHistory (Maybe [BudgetedAndActualAmounts])
- budgetPerformanceHistory_costFilters :: Lens' BudgetPerformanceHistory (Maybe (HashMap Text [Text]))
- budgetPerformanceHistory_costTypes :: Lens' BudgetPerformanceHistory (Maybe CostTypes)
- budgetPerformanceHistory_timeUnit :: Lens' BudgetPerformanceHistory (Maybe TimeUnit)
- data BudgetedAndActualAmounts = BudgetedAndActualAmounts' {}
- newBudgetedAndActualAmounts :: BudgetedAndActualAmounts
- budgetedAndActualAmounts_actualAmount :: Lens' BudgetedAndActualAmounts (Maybe Spend)
- budgetedAndActualAmounts_budgetedAmount :: Lens' BudgetedAndActualAmounts (Maybe Spend)
- budgetedAndActualAmounts_timePeriod :: Lens' BudgetedAndActualAmounts (Maybe TimePeriod)
- data CalculatedSpend = CalculatedSpend' {}
- newCalculatedSpend :: Spend -> CalculatedSpend
- calculatedSpend_forecastedSpend :: Lens' CalculatedSpend (Maybe Spend)
- calculatedSpend_actualSpend :: Lens' CalculatedSpend Spend
- data CostTypes = CostTypes' {
- includeCredit :: Maybe Bool
- includeDiscount :: Maybe Bool
- includeOtherSubscription :: Maybe Bool
- includeRecurring :: Maybe Bool
- includeRefund :: Maybe Bool
- includeSubscription :: Maybe Bool
- includeSupport :: Maybe Bool
- includeTax :: Maybe Bool
- includeUpfront :: Maybe Bool
- useAmortized :: Maybe Bool
- useBlended :: Maybe Bool
- newCostTypes :: CostTypes
- costTypes_includeCredit :: Lens' CostTypes (Maybe Bool)
- costTypes_includeDiscount :: Lens' CostTypes (Maybe Bool)
- costTypes_includeOtherSubscription :: Lens' CostTypes (Maybe Bool)
- costTypes_includeRecurring :: Lens' CostTypes (Maybe Bool)
- costTypes_includeRefund :: Lens' CostTypes (Maybe Bool)
- costTypes_includeSubscription :: Lens' CostTypes (Maybe Bool)
- costTypes_includeSupport :: Lens' CostTypes (Maybe Bool)
- costTypes_includeTax :: Lens' CostTypes (Maybe Bool)
- costTypes_includeUpfront :: Lens' CostTypes (Maybe Bool)
- costTypes_useAmortized :: Lens' CostTypes (Maybe Bool)
- costTypes_useBlended :: Lens' CostTypes (Maybe Bool)
- data Definition = Definition' {}
- newDefinition :: Definition
- definition_iamActionDefinition :: Lens' Definition (Maybe IamActionDefinition)
- definition_scpActionDefinition :: Lens' Definition (Maybe ScpActionDefinition)
- definition_ssmActionDefinition :: Lens' Definition (Maybe SsmActionDefinition)
- data HistoricalOptions = HistoricalOptions' {}
- newHistoricalOptions :: Natural -> HistoricalOptions
- historicalOptions_lookBackAvailablePeriods :: Lens' HistoricalOptions (Maybe Natural)
- historicalOptions_budgetAdjustmentPeriod :: Lens' HistoricalOptions Natural
- data IamActionDefinition = IamActionDefinition' {}
- newIamActionDefinition :: Text -> IamActionDefinition
- iamActionDefinition_groups :: Lens' IamActionDefinition (Maybe (NonEmpty Text))
- iamActionDefinition_roles :: Lens' IamActionDefinition (Maybe (NonEmpty Text))
- iamActionDefinition_users :: Lens' IamActionDefinition (Maybe (NonEmpty Text))
- iamActionDefinition_policyArn :: Lens' IamActionDefinition Text
- data Notification = Notification' {}
- newNotification :: NotificationType -> ComparisonOperator -> Double -> Notification
- notification_notificationState :: Lens' Notification (Maybe NotificationState)
- notification_thresholdType :: Lens' Notification (Maybe ThresholdType)
- notification_notificationType :: Lens' Notification NotificationType
- notification_comparisonOperator :: Lens' Notification ComparisonOperator
- notification_threshold :: Lens' Notification Double
- data NotificationWithSubscribers = NotificationWithSubscribers' {}
- newNotificationWithSubscribers :: Notification -> NonEmpty Subscriber -> NotificationWithSubscribers
- notificationWithSubscribers_notification :: Lens' NotificationWithSubscribers Notification
- notificationWithSubscribers_subscribers :: Lens' NotificationWithSubscribers (NonEmpty Subscriber)
- data ScpActionDefinition = ScpActionDefinition' {}
- newScpActionDefinition :: Text -> NonEmpty Text -> ScpActionDefinition
- scpActionDefinition_policyId :: Lens' ScpActionDefinition Text
- scpActionDefinition_targetIds :: Lens' ScpActionDefinition (NonEmpty Text)
- data Spend = Spend' {}
- newSpend :: Text -> Text -> Spend
- spend_amount :: Lens' Spend Text
- spend_unit :: Lens' Spend Text
- data SsmActionDefinition = SsmActionDefinition' {}
- newSsmActionDefinition :: ActionSubType -> Text -> NonEmpty Text -> SsmActionDefinition
- ssmActionDefinition_actionSubType :: Lens' SsmActionDefinition ActionSubType
- ssmActionDefinition_region :: Lens' SsmActionDefinition Text
- ssmActionDefinition_instanceIds :: Lens' SsmActionDefinition (NonEmpty Text)
- data Subscriber = Subscriber' {}
- newSubscriber :: SubscriptionType -> Text -> Subscriber
- subscriber_subscriptionType :: Lens' Subscriber SubscriptionType
- subscriber_address :: Lens' Subscriber Text
- data TimePeriod = TimePeriod' {}
- newTimePeriod :: TimePeriod
- timePeriod_end :: Lens' TimePeriod (Maybe UTCTime)
- timePeriod_start :: Lens' TimePeriod (Maybe UTCTime)
Service Configuration
defaultService :: Service Source #
API version 2016-10-20
of the Amazon Budgets SDK configuration.
Errors
_AccessDeniedException :: AsError a => Fold a ServiceError Source #
You are not authorized to use this operation with the given parameters.
_CreationLimitExceededException :: AsError a => Fold a ServiceError Source #
You've exceeded the notification or subscriber limit.
_DuplicateRecordException :: AsError a => Fold a ServiceError Source #
The budget name already exists. Budget names must be unique within an account.
_ExpiredNextTokenException :: AsError a => Fold a ServiceError Source #
The pagination token expired.
_InternalErrorException :: AsError a => Fold a ServiceError Source #
An error on the server occurred during the processing of your request. Try again later.
_InvalidNextTokenException :: AsError a => Fold a ServiceError Source #
The pagination token is invalid.
_InvalidParameterException :: AsError a => Fold a ServiceError Source #
An error on the client occurred. Typically, the cause is an invalid input value.
_NotFoundException :: AsError a => Fold a ServiceError Source #
We can’t locate the resource that you specified.
_ResourceLockedException :: AsError a => Fold a ServiceError Source #
The request was received and recognized by the server, but the server rejected that particular method for the requested resource.
_ThrottlingException :: AsError a => Fold a ServiceError Source #
The number of API requests has exceeded the maximum allowed API request throttling limit for the account.
ActionStatus
newtype ActionStatus Source #
pattern ActionStatus_EXECUTION_FAILURE :: ActionStatus | |
pattern ActionStatus_EXECUTION_IN_PROGRESS :: ActionStatus | |
pattern ActionStatus_EXECUTION_SUCCESS :: ActionStatus | |
pattern ActionStatus_PENDING :: ActionStatus | |
pattern ActionStatus_RESET_FAILURE :: ActionStatus | |
pattern ActionStatus_RESET_IN_PROGRESS :: ActionStatus | |
pattern ActionStatus_REVERSE_FAILURE :: ActionStatus | |
pattern ActionStatus_REVERSE_IN_PROGRESS :: ActionStatus | |
pattern ActionStatus_REVERSE_SUCCESS :: ActionStatus | |
pattern ActionStatus_STANDBY :: ActionStatus |
Instances
ActionSubType
newtype ActionSubType Source #
pattern ActionSubType_STOP_EC2_INSTANCES :: ActionSubType | |
pattern ActionSubType_STOP_RDS_INSTANCES :: ActionSubType |
Instances
ActionType
newtype ActionType Source #
pattern ActionType_APPLY_IAM_POLICY :: ActionType | |
pattern ActionType_APPLY_SCP_POLICY :: ActionType | |
pattern ActionType_RUN_SSM_DOCUMENTS :: ActionType |
Instances
ApprovalModel
newtype ApprovalModel Source #
pattern ApprovalModel_AUTOMATIC :: ApprovalModel | |
pattern ApprovalModel_MANUAL :: ApprovalModel |
Instances
AutoAdjustType
newtype AutoAdjustType Source #
pattern AutoAdjustType_FORECAST :: AutoAdjustType | |
pattern AutoAdjustType_HISTORICAL :: AutoAdjustType |
Instances
BudgetType
newtype BudgetType Source #
The type of a budget. It must be one of the following types:
COST
, USAGE
, RI_UTILIZATION
, RI_COVERAGE
,
SAVINGS_PLANS_UTILIZATION
, or SAVINGS_PLANS_COVERAGE
.
pattern BudgetType_COST :: BudgetType | |
pattern BudgetType_RI_COVERAGE :: BudgetType | |
pattern BudgetType_RI_UTILIZATION :: BudgetType | |
pattern BudgetType_SAVINGS_PLANS_COVERAGE :: BudgetType | |
pattern BudgetType_SAVINGS_PLANS_UTILIZATION :: BudgetType | |
pattern BudgetType_USAGE :: BudgetType |
Instances
ComparisonOperator
newtype ComparisonOperator Source #
The comparison operator of a notification. Currently, the service supports the following operators:
GREATER_THAN
, LESS_THAN
, EQUAL_TO
pattern ComparisonOperator_EQUAL_TO :: ComparisonOperator | |
pattern ComparisonOperator_GREATER_THAN :: ComparisonOperator | |
pattern ComparisonOperator_LESS_THAN :: ComparisonOperator |
Instances
EventType
pattern EventType_CREATE_ACTION :: EventType | |
pattern EventType_DELETE_ACTION :: EventType | |
pattern EventType_EXECUTE_ACTION :: EventType | |
pattern EventType_SYSTEM :: EventType | |
pattern EventType_UPDATE_ACTION :: EventType |
Instances
ExecutionType
newtype ExecutionType Source #
pattern ExecutionType_APPROVE_BUDGET_ACTION :: ExecutionType | |
pattern ExecutionType_RESET_BUDGET_ACTION :: ExecutionType | |
pattern ExecutionType_RETRY_BUDGET_ACTION :: ExecutionType | |
pattern ExecutionType_REVERSE_BUDGET_ACTION :: ExecutionType |
Instances
NotificationState
newtype NotificationState Source #
pattern NotificationState_ALARM :: NotificationState | |
pattern NotificationState_OK :: NotificationState |
Instances
NotificationType
newtype NotificationType Source #
The type of a notification. It must be ACTUAL or FORECASTED.
pattern NotificationType_ACTUAL :: NotificationType | |
pattern NotificationType_FORECASTED :: NotificationType |
Instances
SubscriptionType
newtype SubscriptionType Source #
The subscription type of the subscriber. It can be SMS or EMAIL.
pattern SubscriptionType_EMAIL :: SubscriptionType | |
pattern SubscriptionType_SNS :: SubscriptionType |
Instances
ThresholdType
newtype ThresholdType Source #
The type of threshold for a notification.
pattern ThresholdType_ABSOLUTE_VALUE :: ThresholdType | |
pattern ThresholdType_PERCENTAGE :: ThresholdType |
Instances
TimeUnit
The time unit of the budget, such as MONTHLY or QUARTERLY.
pattern TimeUnit_ANNUALLY :: TimeUnit | |
pattern TimeUnit_DAILY :: TimeUnit | |
pattern TimeUnit_MONTHLY :: TimeUnit | |
pattern TimeUnit_QUARTERLY :: TimeUnit |
Instances
Action
A budget action resource.
See: newAction
smart constructor.
Action' | |
|
Instances
:: Text | |
-> Text | |
-> NotificationType | |
-> ActionType | |
-> ActionThreshold | |
-> Definition | |
-> Text | |
-> ApprovalModel | |
-> ActionStatus | |
-> NonEmpty Subscriber | |
-> Action |
Create a value of Action
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:actionId:Action'
, action_actionId
- A system-generated universally unique identifier (UUID) for the action.
$sel:budgetName:Action'
, action_budgetName
- Undocumented member.
$sel:notificationType:Action'
, action_notificationType
- Undocumented member.
$sel:actionType:Action'
, action_actionType
- The type of action. This defines the type of tasks that can be carried
out by this action. This field also determines the format for
definition.
$sel:actionThreshold:Action'
, action_actionThreshold
- The trigger threshold of the action.
$sel:definition:Action'
, action_definition
- Where you specify all of the type-specific parameters.
$sel:executionRoleArn:Action'
, action_executionRoleArn
- The role passed for action execution and reversion. Roles and actions
must be in the same account.
$sel:approvalModel:Action'
, action_approvalModel
- This specifies if the action needs manual or automatic approval.
$sel:status:Action'
, action_status
- The status of the action.
$sel:subscribers:Action'
, action_subscribers
- Undocumented member.
action_actionId :: Lens' Action Text Source #
A system-generated universally unique identifier (UUID) for the action.
action_notificationType :: Lens' Action NotificationType Source #
Undocumented member.
action_actionType :: Lens' Action ActionType Source #
The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition.
action_actionThreshold :: Lens' Action ActionThreshold Source #
The trigger threshold of the action.
action_definition :: Lens' Action Definition Source #
Where you specify all of the type-specific parameters.
action_executionRoleArn :: Lens' Action Text Source #
The role passed for action execution and reversion. Roles and actions must be in the same account.
action_approvalModel :: Lens' Action ApprovalModel Source #
This specifies if the action needs manual or automatic approval.
action_status :: Lens' Action ActionStatus Source #
The status of the action.
action_subscribers :: Lens' Action (NonEmpty Subscriber) Source #
Undocumented member.
ActionHistory
data ActionHistory Source #
The historical records for a budget action.
See: newActionHistory
smart constructor.
ActionHistory' | |
|
Instances
Create a value of ActionHistory
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:timestamp:ActionHistory'
, actionHistory_timestamp
- Undocumented member.
$sel:status:ActionHistory'
, actionHistory_status
- The status of action at the time of the event.
$sel:eventType:ActionHistory'
, actionHistory_eventType
- This distinguishes between whether the events are triggered by the user
or are generated by the system.
$sel:actionHistoryDetails:ActionHistory'
, actionHistory_actionHistoryDetails
- The description of the details for the event.
actionHistory_timestamp :: Lens' ActionHistory UTCTime Source #
Undocumented member.
actionHistory_status :: Lens' ActionHistory ActionStatus Source #
The status of action at the time of the event.
actionHistory_eventType :: Lens' ActionHistory EventType Source #
This distinguishes between whether the events are triggered by the user or are generated by the system.
actionHistory_actionHistoryDetails :: Lens' ActionHistory ActionHistoryDetails Source #
The description of the details for the event.
ActionHistoryDetails
data ActionHistoryDetails Source #
The description of the details for the event.
See: newActionHistoryDetails
smart constructor.
Instances
newActionHistoryDetails Source #
:: Text | |
-> Action | |
-> ActionHistoryDetails |
Create a value of ActionHistoryDetails
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:message:ActionHistoryDetails'
, actionHistoryDetails_message
- Undocumented member.
$sel:action:ActionHistoryDetails'
, actionHistoryDetails_action
- The budget action resource.
actionHistoryDetails_message :: Lens' ActionHistoryDetails Text Source #
Undocumented member.
actionHistoryDetails_action :: Lens' ActionHistoryDetails Action Source #
The budget action resource.
ActionThreshold
data ActionThreshold Source #
The trigger threshold of the action.
See: newActionThreshold
smart constructor.
Instances
:: Double | |
-> ThresholdType | |
-> ActionThreshold |
Create a value of ActionThreshold
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:actionThresholdValue:ActionThreshold'
, actionThreshold_actionThresholdValue
- Undocumented member.
$sel:actionThresholdType:ActionThreshold'
, actionThreshold_actionThresholdType
- Undocumented member.
actionThreshold_actionThresholdValue :: Lens' ActionThreshold Double Source #
Undocumented member.
actionThreshold_actionThresholdType :: Lens' ActionThreshold ThresholdType Source #
Undocumented member.
AutoAdjustData
data AutoAdjustData Source #
The parameters that determine the budget amount for an auto-adjusting budget.
See: newAutoAdjustData
smart constructor.
AutoAdjustData' | |
|
Instances
Create a value of AutoAdjustData
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:historicalOptions:AutoAdjustData'
, autoAdjustData_historicalOptions
- The parameters that define or describe the historical data that your
auto-adjusting budget is based on.
$sel:lastAutoAdjustTime:AutoAdjustData'
, autoAdjustData_lastAutoAdjustTime
- The last time that your budget was auto-adjusted.
$sel:autoAdjustType:AutoAdjustData'
, autoAdjustData_autoAdjustType
- The string that defines whether your budget auto-adjusts based on
historical or forecasted data.
autoAdjustData_historicalOptions :: Lens' AutoAdjustData (Maybe HistoricalOptions) Source #
The parameters that define or describe the historical data that your auto-adjusting budget is based on.
autoAdjustData_lastAutoAdjustTime :: Lens' AutoAdjustData (Maybe UTCTime) Source #
The last time that your budget was auto-adjusted.
autoAdjustData_autoAdjustType :: Lens' AutoAdjustData AutoAdjustType Source #
The string that defines whether your budget auto-adjusts based on historical or forecasted data.
Budget
Represents the output of the CreateBudget
operation. The content
consists of the detailed metadata and data file information, and the
current status of the budget
object.
This is the Amazon Resource Name (ARN) pattern for a budget:
arn:aws:budgets::AccountId:budget/budgetName
See: newBudget
smart constructor.
Budget' | |
|
Instances
:: Text | |
-> TimeUnit | |
-> BudgetType | |
-> Budget |
Create a value of Budget
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:autoAdjustData:Budget'
, budget_autoAdjustData
- The parameters that determine the budget amount for an auto-adjusting
budget.
$sel:budgetLimit:Budget'
, budget_budgetLimit
- The total amount of cost, usage, RI utilization, RI coverage, Savings
Plans utilization, or Savings Plans coverage that you want to track with
your budget.
BudgetLimit
is required for cost or usage budgets, but optional for RI
or Savings Plans utilization or coverage budgets. RI and Savings Plans
utilization or coverage budgets default to 100
. This is the only valid
value for RI or Savings Plans utilization or coverage budgets. You
can't use BudgetLimit
with PlannedBudgetLimits
for CreateBudget
and UpdateBudget
actions.
$sel:calculatedSpend:Budget'
, budget_calculatedSpend
- The actual and forecasted cost or usage that the budget tracks.
$sel:costFilters:Budget'
, budget_costFilters
- The cost filters, such as Region
, Service
, member account
, Tag
,
or Cost Category
, that are applied to a budget.
Amazon Web Services Budgets supports the following services as a
Service
filter for RI budgets:
- Amazon EC2
- Amazon Redshift
- Amazon Relational Database Service
- Amazon ElastiCache
- Amazon OpenSearch Service
$sel:costTypes:Budget'
, budget_costTypes
- The types of costs that are included in this COST
budget.
USAGE
, RI_UTILIZATION
, RI_COVERAGE
, SAVINGS_PLANS_UTILIZATION
,
and SAVINGS_PLANS_COVERAGE
budgets do not have CostTypes
.
$sel:lastUpdatedTime:Budget'
, budget_lastUpdatedTime
- The last time that you updated this budget.
$sel:plannedBudgetLimits:Budget'
, budget_plannedBudgetLimits
- A map containing multiple BudgetLimit
, including current or future
limits.
PlannedBudgetLimits
is available for cost or usage budget and supports
both monthly and quarterly TimeUnit
.
For monthly budgets, provide 12 months of PlannedBudgetLimits
values.
This must start from the current month and include the next 11 months.
The key
is the start of the month, UTC
in epoch seconds.
For quarterly budgets, provide four quarters of PlannedBudgetLimits
value entries in standard calendar quarter increments. This must start
from the current quarter and include the next three quarters. The key
is the start of the quarter, UTC
in epoch seconds.
If the planned budget expires before 12 months for monthly or four
quarters for quarterly, provide the PlannedBudgetLimits
values only
for the remaining periods.
If the budget begins at a date in the future, provide
PlannedBudgetLimits
values from the start date of the budget.
After all of the BudgetLimit
values in PlannedBudgetLimits
are used,
the budget continues to use the last limit as the BudgetLimit
. At that
point, the planned budget provides the same experience as a fixed
budget.
DescribeBudget
and DescribeBudgets
response along with
PlannedBudgetLimits
also contain BudgetLimit
representing the
current month or quarter limit present in PlannedBudgetLimits
. This
only applies to budgets that are created with PlannedBudgetLimits
.
Budgets that are created without PlannedBudgetLimits
only contain
BudgetLimit
. They don't contain PlannedBudgetLimits
.
$sel:timePeriod:Budget'
, budget_timePeriod
- The period of time that's covered by a budget. You setthe start date
and end date. The start date must come before the end date. The end date
must come before 06/15/87 00:00 UTC
.
If you create your budget and don't specify a start date, Amazon Web
Services defaults to the start of your chosen time period (DAILY,
MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your
budget on January 24, 2018, chose DAILY
, and didn't set a start date,
Amazon Web Services set your start date to 01/24/18 00:00 UTC
. If
you chose MONTHLY
, Amazon Web Services set your start date to
01/01/18 00:00 UTC
. If you didn't specify an end date, Amazon Web
Services set your end date to 06/15/87 00:00 UTC
. The defaults are
the same for the Billing and Cost Management console and the API.
You can change either date with the UpdateBudget
operation.
After the end date, Amazon Web Services deletes the budget and all the associated notifications and subscribers.
$sel:budgetName:Budget'
, budget_budgetName
- The name of a budget. The name must be unique within an account. The :
and \
characters aren't allowed in BudgetName
.
$sel:timeUnit:Budget'
, budget_timeUnit
- The length of time until a budget resets the actual and forecasted
spend.
$sel:budgetType:Budget'
, budget_budgetType
- Specifies whether this budget tracks costs, usage, RI utilization, RI
coverage, Savings Plans utilization, or Savings Plans coverage.
budget_autoAdjustData :: Lens' Budget (Maybe AutoAdjustData) Source #
The parameters that determine the budget amount for an auto-adjusting budget.
budget_budgetLimit :: Lens' Budget (Maybe Spend) Source #
The total amount of cost, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage that you want to track with your budget.
BudgetLimit
is required for cost or usage budgets, but optional for RI
or Savings Plans utilization or coverage budgets. RI and Savings Plans
utilization or coverage budgets default to 100
. This is the only valid
value for RI or Savings Plans utilization or coverage budgets. You
can't use BudgetLimit
with PlannedBudgetLimits
for CreateBudget
and UpdateBudget
actions.
budget_calculatedSpend :: Lens' Budget (Maybe CalculatedSpend) Source #
The actual and forecasted cost or usage that the budget tracks.
budget_costFilters :: Lens' Budget (Maybe (HashMap Text [Text])) Source #
The cost filters, such as Region
, Service
, member account
, Tag
,
or Cost Category
, that are applied to a budget.
Amazon Web Services Budgets supports the following services as a
Service
filter for RI budgets:
- Amazon EC2
- Amazon Redshift
- Amazon Relational Database Service
- Amazon ElastiCache
- Amazon OpenSearch Service
budget_costTypes :: Lens' Budget (Maybe CostTypes) Source #
The types of costs that are included in this COST
budget.
USAGE
, RI_UTILIZATION
, RI_COVERAGE
, SAVINGS_PLANS_UTILIZATION
,
and SAVINGS_PLANS_COVERAGE
budgets do not have CostTypes
.
budget_lastUpdatedTime :: Lens' Budget (Maybe UTCTime) Source #
The last time that you updated this budget.
budget_plannedBudgetLimits :: Lens' Budget (Maybe (HashMap Text Spend)) Source #
A map containing multiple BudgetLimit
, including current or future
limits.
PlannedBudgetLimits
is available for cost or usage budget and supports
both monthly and quarterly TimeUnit
.
For monthly budgets, provide 12 months of PlannedBudgetLimits
values.
This must start from the current month and include the next 11 months.
The key
is the start of the month, UTC
in epoch seconds.
For quarterly budgets, provide four quarters of PlannedBudgetLimits
value entries in standard calendar quarter increments. This must start
from the current quarter and include the next three quarters. The key
is the start of the quarter, UTC
in epoch seconds.
If the planned budget expires before 12 months for monthly or four
quarters for quarterly, provide the PlannedBudgetLimits
values only
for the remaining periods.
If the budget begins at a date in the future, provide
PlannedBudgetLimits
values from the start date of the budget.
After all of the BudgetLimit
values in PlannedBudgetLimits
are used,
the budget continues to use the last limit as the BudgetLimit
. At that
point, the planned budget provides the same experience as a fixed
budget.
DescribeBudget
and DescribeBudgets
response along with
PlannedBudgetLimits
also contain BudgetLimit
representing the
current month or quarter limit present in PlannedBudgetLimits
. This
only applies to budgets that are created with PlannedBudgetLimits
.
Budgets that are created without PlannedBudgetLimits
only contain
BudgetLimit
. They don't contain PlannedBudgetLimits
.
budget_timePeriod :: Lens' Budget (Maybe TimePeriod) Source #
The period of time that's covered by a budget. You setthe start date
and end date. The start date must come before the end date. The end date
must come before 06/15/87 00:00 UTC
.
If you create your budget and don't specify a start date, Amazon Web
Services defaults to the start of your chosen time period (DAILY,
MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your
budget on January 24, 2018, chose DAILY
, and didn't set a start date,
Amazon Web Services set your start date to 01/24/18 00:00 UTC
. If
you chose MONTHLY
, Amazon Web Services set your start date to
01/01/18 00:00 UTC
. If you didn't specify an end date, Amazon Web
Services set your end date to 06/15/87 00:00 UTC
. The defaults are
the same for the Billing and Cost Management console and the API.
You can change either date with the UpdateBudget
operation.
After the end date, Amazon Web Services deletes the budget and all the associated notifications and subscribers.
budget_budgetName :: Lens' Budget Text Source #
The name of a budget. The name must be unique within an account. The :
and \
characters aren't allowed in BudgetName
.
budget_timeUnit :: Lens' Budget TimeUnit Source #
The length of time until a budget resets the actual and forecasted spend.
budget_budgetType :: Lens' Budget BudgetType Source #
Specifies whether this budget tracks costs, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage.
BudgetNotificationsForAccount
data BudgetNotificationsForAccount Source #
The budget name and associated notifications for an account.
See: newBudgetNotificationsForAccount
smart constructor.
Instances
newBudgetNotificationsForAccount :: BudgetNotificationsForAccount Source #
Create a value of BudgetNotificationsForAccount
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:budgetName:BudgetNotificationsForAccount'
, budgetNotificationsForAccount_budgetName
- Undocumented member.
$sel:notifications:BudgetNotificationsForAccount'
, budgetNotificationsForAccount_notifications
- Undocumented member.
budgetNotificationsForAccount_budgetName :: Lens' BudgetNotificationsForAccount (Maybe Text) Source #
Undocumented member.
budgetNotificationsForAccount_notifications :: Lens' BudgetNotificationsForAccount (Maybe [Notification]) Source #
Undocumented member.
BudgetPerformanceHistory
data BudgetPerformanceHistory Source #
A history of the state of a budget at the end of the budget's specified time period.
See: newBudgetPerformanceHistory
smart constructor.
BudgetPerformanceHistory' | |
|
Instances
newBudgetPerformanceHistory :: BudgetPerformanceHistory Source #
Create a value of BudgetPerformanceHistory
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:budgetName:BudgetPerformanceHistory'
, budgetPerformanceHistory_budgetName
- Undocumented member.
$sel:budgetType:BudgetPerformanceHistory'
, budgetPerformanceHistory_budgetType
- Undocumented member.
$sel:budgetedAndActualAmountsList:BudgetPerformanceHistory'
, budgetPerformanceHistory_budgetedAndActualAmountsList
- A list of amounts of cost or usage that you created budgets for, which
are compared to your actual costs or usage.
$sel:costFilters:BudgetPerformanceHistory'
, budgetPerformanceHistory_costFilters
- The history of the cost filters for a budget during the specified time
period.
$sel:costTypes:BudgetPerformanceHistory'
, budgetPerformanceHistory_costTypes
- The history of the cost types for a budget during the specified time
period.
$sel:timeUnit:BudgetPerformanceHistory'
, budgetPerformanceHistory_timeUnit
- Undocumented member.
budgetPerformanceHistory_budgetName :: Lens' BudgetPerformanceHistory (Maybe Text) Source #
Undocumented member.
budgetPerformanceHistory_budgetType :: Lens' BudgetPerformanceHistory (Maybe BudgetType) Source #
Undocumented member.
budgetPerformanceHistory_budgetedAndActualAmountsList :: Lens' BudgetPerformanceHistory (Maybe [BudgetedAndActualAmounts]) Source #
A list of amounts of cost or usage that you created budgets for, which are compared to your actual costs or usage.
budgetPerformanceHistory_costFilters :: Lens' BudgetPerformanceHistory (Maybe (HashMap Text [Text])) Source #
The history of the cost filters for a budget during the specified time period.
budgetPerformanceHistory_costTypes :: Lens' BudgetPerformanceHistory (Maybe CostTypes) Source #
The history of the cost types for a budget during the specified time period.
budgetPerformanceHistory_timeUnit :: Lens' BudgetPerformanceHistory (Maybe TimeUnit) Source #
Undocumented member.
BudgetedAndActualAmounts
data BudgetedAndActualAmounts Source #
The amount of cost or usage that you created the budget for, compared to your actual costs or usage.
See: newBudgetedAndActualAmounts
smart constructor.
BudgetedAndActualAmounts' | |
|
Instances
newBudgetedAndActualAmounts :: BudgetedAndActualAmounts Source #
Create a value of BudgetedAndActualAmounts
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:actualAmount:BudgetedAndActualAmounts'
, budgetedAndActualAmounts_actualAmount
- Your actual costs or usage for a budget period.
$sel:budgetedAmount:BudgetedAndActualAmounts'
, budgetedAndActualAmounts_budgetedAmount
- The amount of cost or usage that you created the budget for.
$sel:timePeriod:BudgetedAndActualAmounts'
, budgetedAndActualAmounts_timePeriod
- The time period that's covered by this budget comparison.
budgetedAndActualAmounts_actualAmount :: Lens' BudgetedAndActualAmounts (Maybe Spend) Source #
Your actual costs or usage for a budget period.
budgetedAndActualAmounts_budgetedAmount :: Lens' BudgetedAndActualAmounts (Maybe Spend) Source #
The amount of cost or usage that you created the budget for.
budgetedAndActualAmounts_timePeriod :: Lens' BudgetedAndActualAmounts (Maybe TimePeriod) Source #
The time period that's covered by this budget comparison.
CalculatedSpend
data CalculatedSpend Source #
The spend objects that are associated with this budget. The
actualSpend
tracks how much you've used, cost, usage, RI units, or
Savings Plans units and the forecastedSpend
tracks how much that
you're predicted to spend based on your historical usage profile.
For example, if it's the 20th of the month and you have spent 50
dollars on Amazon EC2, your actualSpend
is 50 USD
, and your
forecastedSpend
is 75 USD
.
See: newCalculatedSpend
smart constructor.
CalculatedSpend' | |
|
Instances
Create a value of CalculatedSpend
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:forecastedSpend:CalculatedSpend'
, calculatedSpend_forecastedSpend
- The amount of cost, usage, RI units, or Savings Plans units that you're
forecasted to use.
$sel:actualSpend:CalculatedSpend'
, calculatedSpend_actualSpend
- The amount of cost, usage, RI units, or Savings Plans units that you
used.
calculatedSpend_forecastedSpend :: Lens' CalculatedSpend (Maybe Spend) Source #
The amount of cost, usage, RI units, or Savings Plans units that you're forecasted to use.
calculatedSpend_actualSpend :: Lens' CalculatedSpend Spend Source #
The amount of cost, usage, RI units, or Savings Plans units that you used.
CostTypes
The types of cost that are included in a COST
budget, such as tax and
subscriptions.
USAGE
, RI_UTILIZATION
, RI_COVERAGE
, SAVINGS_PLANS_UTILIZATION
,
and SAVINGS_PLANS_COVERAGE
budgets don't have CostTypes
.
See: newCostTypes
smart constructor.
CostTypes' | |
|
Instances
newCostTypes :: CostTypes Source #
Create a value of CostTypes
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:includeCredit:CostTypes'
, costTypes_includeCredit
- Specifies whether a budget includes credits.
The default value is true
.
$sel:includeDiscount:CostTypes'
, costTypes_includeDiscount
- Specifies whether a budget includes discounts.
The default value is true
.
$sel:includeOtherSubscription:CostTypes'
, costTypes_includeOtherSubscription
- Specifies whether a budget includes non-RI subscription costs.
The default value is true
.
$sel:includeRecurring:CostTypes'
, costTypes_includeRecurring
- Specifies whether a budget includes recurring fees such as monthly RI
fees.
The default value is true
.
$sel:includeRefund:CostTypes'
, costTypes_includeRefund
- Specifies whether a budget includes refunds.
The default value is true
.
$sel:includeSubscription:CostTypes'
, costTypes_includeSubscription
- Specifies whether a budget includes subscriptions.
The default value is true
.
$sel:includeSupport:CostTypes'
, costTypes_includeSupport
- Specifies whether a budget includes support subscription fees.
The default value is true
.
$sel:includeTax:CostTypes'
, costTypes_includeTax
- Specifies whether a budget includes taxes.
The default value is true
.
$sel:includeUpfront:CostTypes'
, costTypes_includeUpfront
- Specifies whether a budget includes upfront RI costs.
The default value is true
.
$sel:useAmortized:CostTypes'
, costTypes_useAmortized
- Specifies whether a budget uses the amortized rate.
The default value is false
.
$sel:useBlended:CostTypes'
, costTypes_useBlended
- Specifies whether a budget uses a blended rate.
The default value is false
.
costTypes_includeCredit :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes credits.
The default value is true
.
costTypes_includeDiscount :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes discounts.
The default value is true
.
costTypes_includeOtherSubscription :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes non-RI subscription costs.
The default value is true
.
costTypes_includeRecurring :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes recurring fees such as monthly RI fees.
The default value is true
.
costTypes_includeRefund :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes refunds.
The default value is true
.
costTypes_includeSubscription :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes subscriptions.
The default value is true
.
costTypes_includeSupport :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes support subscription fees.
The default value is true
.
costTypes_includeTax :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes taxes.
The default value is true
.
costTypes_includeUpfront :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes upfront RI costs.
The default value is true
.
costTypes_useAmortized :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget uses the amortized rate.
The default value is false
.
costTypes_useBlended :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget uses a blended rate.
The default value is false
.
Definition
data Definition Source #
Specifies all of the type-specific parameters.
See: newDefinition
smart constructor.
Definition' | |
|
Instances
newDefinition :: Definition Source #
Create a value of Definition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:iamActionDefinition:Definition'
, definition_iamActionDefinition
- The Identity and Access Management (IAM) action definition details.
$sel:scpActionDefinition:Definition'
, definition_scpActionDefinition
- The service control policies (SCPs) action definition details.
$sel:ssmActionDefinition:Definition'
, definition_ssmActionDefinition
- The Amazon Web Services Systems Manager (SSM) action definition details.
definition_iamActionDefinition :: Lens' Definition (Maybe IamActionDefinition) Source #
The Identity and Access Management (IAM) action definition details.
definition_scpActionDefinition :: Lens' Definition (Maybe ScpActionDefinition) Source #
The service control policies (SCPs) action definition details.
definition_ssmActionDefinition :: Lens' Definition (Maybe SsmActionDefinition) Source #
The Amazon Web Services Systems Manager (SSM) action definition details.
HistoricalOptions
data HistoricalOptions Source #
The parameters that define or describe the historical data that your auto-adjusting budget is based on.
See: newHistoricalOptions
smart constructor.
HistoricalOptions' | |
|
Instances
Create a value of HistoricalOptions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lookBackAvailablePeriods:HistoricalOptions'
, historicalOptions_lookBackAvailablePeriods
- The integer that describes how many budget periods in your
BudgetAdjustmentPeriod
are included in the calculation of your current
BudgetLimit
. If the first budget period in your
BudgetAdjustmentPeriod
has no cost data, then that budget period isn’t
included in the average that determines your budget limit.
For example, if you set BudgetAdjustmentPeriod
as 4
quarters, but
your account had no cost data in the first quarter, then only the last
three quarters are included in the calculation. In this scenario,
LookBackAvailablePeriods
returns 3
.
You can’t set your own LookBackAvailablePeriods
. The value is
automatically calculated from the BudgetAdjustmentPeriod
and your
historical cost data.
$sel:budgetAdjustmentPeriod:HistoricalOptions'
, historicalOptions_budgetAdjustmentPeriod
- The number of budget periods included in the moving-average calculation
that determines your auto-adjusted budget amount. The maximum value
depends on the TimeUnit
granularity of the budget:
- For the
DAILY
granularity, the maximum value is60
. - For the
MONTHLY
granularity, the maximum value is12
. - For the
QUARTERLY
granularity, the maximum value is4
. - For the
ANNUALLY
granularity, the maximum value is1
.
historicalOptions_lookBackAvailablePeriods :: Lens' HistoricalOptions (Maybe Natural) Source #
The integer that describes how many budget periods in your
BudgetAdjustmentPeriod
are included in the calculation of your current
BudgetLimit
. If the first budget period in your
BudgetAdjustmentPeriod
has no cost data, then that budget period isn’t
included in the average that determines your budget limit.
For example, if you set BudgetAdjustmentPeriod
as 4
quarters, but
your account had no cost data in the first quarter, then only the last
three quarters are included in the calculation. In this scenario,
LookBackAvailablePeriods
returns 3
.
You can’t set your own LookBackAvailablePeriods
. The value is
automatically calculated from the BudgetAdjustmentPeriod
and your
historical cost data.
historicalOptions_budgetAdjustmentPeriod :: Lens' HistoricalOptions Natural Source #
The number of budget periods included in the moving-average calculation
that determines your auto-adjusted budget amount. The maximum value
depends on the TimeUnit
granularity of the budget:
- For the
DAILY
granularity, the maximum value is60
. - For the
MONTHLY
granularity, the maximum value is12
. - For the
QUARTERLY
granularity, the maximum value is4
. - For the
ANNUALLY
granularity, the maximum value is1
.
IamActionDefinition
data IamActionDefinition Source #
The Identity and Access Management (IAM) action definition details.
See: newIamActionDefinition
smart constructor.
IamActionDefinition' | |
|
Instances
newIamActionDefinition Source #
Create a value of IamActionDefinition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:groups:IamActionDefinition'
, iamActionDefinition_groups
- A list of groups to be attached. There must be at least one group.
$sel:roles:IamActionDefinition'
, iamActionDefinition_roles
- A list of roles to be attached. There must be at least one role.
$sel:users:IamActionDefinition'
, iamActionDefinition_users
- A list of users to be attached. There must be at least one user.
$sel:policyArn:IamActionDefinition'
, iamActionDefinition_policyArn
- The Amazon Resource Name (ARN) of the policy to be attached.
iamActionDefinition_groups :: Lens' IamActionDefinition (Maybe (NonEmpty Text)) Source #
A list of groups to be attached. There must be at least one group.
iamActionDefinition_roles :: Lens' IamActionDefinition (Maybe (NonEmpty Text)) Source #
A list of roles to be attached. There must be at least one role.
iamActionDefinition_users :: Lens' IamActionDefinition (Maybe (NonEmpty Text)) Source #
A list of users to be attached. There must be at least one user.
iamActionDefinition_policyArn :: Lens' IamActionDefinition Text Source #
The Amazon Resource Name (ARN) of the policy to be attached.
Notification
data Notification Source #
A notification that's associated with a budget. A budget can have up to ten notifications.
Each notification must have at least one subscriber. A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers.
For example, if you have a budget for 200 dollars and you want to be notified when you go over 160 dollars, create a notification with the following parameters:
- A notificationType of
ACTUAL
- A
thresholdType
ofPERCENTAGE
- A
comparisonOperator
ofGREATER_THAN
- A notification
threshold
of80
See: newNotification
smart constructor.
Notification' | |
|
Instances
Create a value of Notification
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:notificationState:Notification'
, notification_notificationState
- Specifies whether this notification is in alarm. If a budget
notification is in the ALARM
state, you passed the set threshold for
the budget.
$sel:thresholdType:Notification'
, notification_thresholdType
- The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, Amazon Web Services notifies you when you go over or are
forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, Amazon Web Services notifies you when you go over or are
forecasted to go over a certain percentage of your forecasted spend. For
example, if you have a budget for 200 dollars and you have a
PERCENTAGE
threshold of 80%, Amazon Web Services notifies you when you
go over 160 dollars.
$sel:notificationType:Notification'
, notification_notificationType
- Specifies whether the notification is for how much you have spent
(ACTUAL
) or for how much that you're forecasted to spend
(FORECASTED
).
$sel:comparisonOperator:Notification'
, notification_comparisonOperator
- The comparison that's used for this notification.
$sel:threshold:Notification'
, notification_threshold
- The threshold that's associated with a notification. Thresholds are
always a percentage, and many customers find value being alerted between
50% - 200% of the budgeted amount. The maximum limit for your threshold
is 1,000,000% above the budgeted amount.
notification_notificationState :: Lens' Notification (Maybe NotificationState) Source #
Specifies whether this notification is in alarm. If a budget
notification is in the ALARM
state, you passed the set threshold for
the budget.
notification_thresholdType :: Lens' Notification (Maybe ThresholdType) Source #
The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, Amazon Web Services notifies you when you go over or are
forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, Amazon Web Services notifies you when you go over or are
forecasted to go over a certain percentage of your forecasted spend. For
example, if you have a budget for 200 dollars and you have a
PERCENTAGE
threshold of 80%, Amazon Web Services notifies you when you
go over 160 dollars.
notification_notificationType :: Lens' Notification NotificationType Source #
Specifies whether the notification is for how much you have spent
(ACTUAL
) or for how much that you're forecasted to spend
(FORECASTED
).
notification_comparisonOperator :: Lens' Notification ComparisonOperator Source #
The comparison that's used for this notification.
notification_threshold :: Lens' Notification Double Source #
The threshold that's associated with a notification. Thresholds are always a percentage, and many customers find value being alerted between 50% - 200% of the budgeted amount. The maximum limit for your threshold is 1,000,000% above the budgeted amount.
NotificationWithSubscribers
data NotificationWithSubscribers Source #
A notification with subscribers. A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers.
See: newNotificationWithSubscribers
smart constructor.
NotificationWithSubscribers' | |
|
Instances
newNotificationWithSubscribers Source #
Create a value of NotificationWithSubscribers
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:notification:NotificationWithSubscribers'
, notificationWithSubscribers_notification
- The notification that's associated with a budget.
$sel:subscribers:NotificationWithSubscribers'
, notificationWithSubscribers_subscribers
- A list of subscribers who are subscribed to this notification.
notificationWithSubscribers_notification :: Lens' NotificationWithSubscribers Notification Source #
The notification that's associated with a budget.
notificationWithSubscribers_subscribers :: Lens' NotificationWithSubscribers (NonEmpty Subscriber) Source #
A list of subscribers who are subscribed to this notification.
ScpActionDefinition
data ScpActionDefinition Source #
The service control policies (SCP) action definition details.
See: newScpActionDefinition
smart constructor.
Instances
newScpActionDefinition Source #
:: Text | |
-> NonEmpty Text | |
-> ScpActionDefinition |
Create a value of ScpActionDefinition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:policyId:ScpActionDefinition'
, scpActionDefinition_policyId
- The policy ID attached.
$sel:targetIds:ScpActionDefinition'
, scpActionDefinition_targetIds
- A list of target IDs.
scpActionDefinition_policyId :: Lens' ScpActionDefinition Text Source #
The policy ID attached.
scpActionDefinition_targetIds :: Lens' ScpActionDefinition (NonEmpty Text) Source #
A list of target IDs.
Spend
The amount of cost or usage that's measured for a budget.
For example, a Spend
for 3 GB
of S3 usage has the following
parameters:
- An
Amount
of3
- A
unit
ofGB
See: newSpend
smart constructor.
Instances
FromJSON Spend Source # | |
ToJSON Spend Source # | |
Defined in Amazonka.Budgets.Types.Spend | |
Generic Spend Source # | |
Read Spend Source # | |
Show Spend Source # | |
NFData Spend Source # | |
Defined in Amazonka.Budgets.Types.Spend | |
Eq Spend Source # | |
Hashable Spend Source # | |
Defined in Amazonka.Budgets.Types.Spend | |
type Rep Spend Source # | |
Defined in Amazonka.Budgets.Types.Spend type Rep Spend = D1 ('MetaData "Spend" "Amazonka.Budgets.Types.Spend" "amazonka-budgets-2.0-7U1RWOWP6pxJESvTUhAD5Y" 'False) (C1 ('MetaCons "Spend'" 'PrefixI 'True) (S1 ('MetaSel ('Just "amount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
Create a value of Spend
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:amount:Spend'
, spend_amount
- The cost or usage amount that's associated with a budget forecast,
actual spend, or budget threshold.
$sel:unit:Spend'
, spend_unit
- The unit of measurement that's used for the budget forecast, actual
spend, or budget threshold, such as USD or GBP.
spend_amount :: Lens' Spend Text Source #
The cost or usage amount that's associated with a budget forecast, actual spend, or budget threshold.
spend_unit :: Lens' Spend Text Source #
The unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as USD or GBP.
SsmActionDefinition
data SsmActionDefinition Source #
The Amazon Web Services Systems Manager (SSM) action definition details.
See: newSsmActionDefinition
smart constructor.
SsmActionDefinition' | |
|
Instances
newSsmActionDefinition Source #
:: ActionSubType | |
-> Text | |
-> NonEmpty Text | |
-> SsmActionDefinition |
Create a value of SsmActionDefinition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:actionSubType:SsmActionDefinition'
, ssmActionDefinition_actionSubType
- The action subType.
$sel:region:SsmActionDefinition'
, ssmActionDefinition_region
- The Region to run the SSM document.
$sel:instanceIds:SsmActionDefinition'
, ssmActionDefinition_instanceIds
- The EC2 and RDS instance IDs.
ssmActionDefinition_actionSubType :: Lens' SsmActionDefinition ActionSubType Source #
The action subType.
ssmActionDefinition_region :: Lens' SsmActionDefinition Text Source #
The Region to run the SSM document.
ssmActionDefinition_instanceIds :: Lens' SsmActionDefinition (NonEmpty Text) Source #
The EC2 and RDS instance IDs.
Subscriber
data Subscriber Source #
The subscriber to a budget notification. The subscriber consists of a subscription type and either an Amazon SNS topic or an email address.
For example, an email subscriber has the following parameters:
- A
subscriptionType
ofEMAIL
- An
address
ofexample@example.com
See: newSubscriber
smart constructor.
Subscriber' | |
|
Instances
Create a value of Subscriber
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:subscriptionType:Subscriber'
, subscriber_subscriptionType
- The type of notification that Amazon Web Services sends to a subscriber.
$sel:address:Subscriber'
, subscriber_address
- The address that Amazon Web Services sends budget notifications to,
either an SNS topic or an email.
When you create a subscriber, the value of Address
can't contain line
breaks.
subscriber_subscriptionType :: Lens' Subscriber SubscriptionType Source #
The type of notification that Amazon Web Services sends to a subscriber.
subscriber_address :: Lens' Subscriber Text Source #
The address that Amazon Web Services sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of Address
can't contain line
breaks.
TimePeriod
data TimePeriod Source #
The period of time that's covered by a budget. The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.
See: newTimePeriod
smart constructor.
TimePeriod' | |
|
Instances
newTimePeriod :: TimePeriod Source #
Create a value of TimePeriod
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:end:TimePeriod'
, timePeriod_end
- The end date for a budget. If you didn't specify an end date, Amazon
Web Services set your end date to 06/15/87 00:00 UTC
. The defaults
are the same for the Billing and Cost Management console and the API.
After the end date, Amazon Web Services deletes the budget and all the
associated notifications and subscribers. You can change your end date
with the UpdateBudget
operation.
$sel:start:TimePeriod'
, timePeriod_start
- The start date for a budget. If you created your budget and didn't
specify a start date, Amazon Web Services defaults to the start of your
chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For
example, if you created your budget on January 24, 2018, chose DAILY
,
and didn't set a start date, Amazon Web Services set your start date to
01/24/18 00:00 UTC
. If you chose MONTHLY
, Amazon Web Services set
your start date to 01/01/18 00:00 UTC
. The defaults are the same for
the Billing and Cost Management console and the API.
You can change your start date with the UpdateBudget
operation.
timePeriod_end :: Lens' TimePeriod (Maybe UTCTime) Source #
The end date for a budget. If you didn't specify an end date, Amazon
Web Services set your end date to 06/15/87 00:00 UTC
. The defaults
are the same for the Billing and Cost Management console and the API.
After the end date, Amazon Web Services deletes the budget and all the
associated notifications and subscribers. You can change your end date
with the UpdateBudget
operation.
timePeriod_start :: Lens' TimePeriod (Maybe UTCTime) Source #
The start date for a budget. If you created your budget and didn't
specify a start date, Amazon Web Services defaults to the start of your
chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For
example, if you created your budget on January 24, 2018, chose DAILY
,
and didn't set a start date, Amazon Web Services set your start date to
01/24/18 00:00 UTC
. If you chose MONTHLY
, Amazon Web Services set
your start date to 01/01/18 00:00 UTC
. The defaults are the same for
the Billing and Cost Management console and the API.
You can change your start date with the UpdateBudget
operation.