Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
- Service Configuration
- Errors
- ActionStatus
- ActionSubType
- ActionType
- ApprovalModel
- BudgetType
- ComparisonOperator
- EventType
- ExecutionType
- NotificationState
- NotificationType
- SubscriptionType
- ThresholdType
- TimeUnit
- Action
- ActionHistory
- ActionHistoryDetails
- ActionThreshold
- Budget
- BudgetPerformanceHistory
- BudgetedAndActualAmounts
- CalculatedSpend
- CostTypes
- Definition
- IamActionDefinition
- Notification
- NotificationWithSubscribers
- ScpActionDefinition
- Spend
- SsmActionDefinition
- Subscriber
- TimePeriod
Synopsis
- defaultService :: Service
- _AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError
- _InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError
- _ExpiredNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- _NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceLockedException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- _DuplicateRecordException :: AsError a => Getting (First ServiceError) a ServiceError
- _CreationLimitExceededException :: AsError a => Getting (First ServiceError) 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 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 Budget = Budget' {
- calculatedSpend :: Maybe CalculatedSpend
- plannedBudgetLimits :: Maybe (HashMap Text Spend)
- lastUpdatedTime :: Maybe POSIX
- budgetLimit :: Maybe Spend
- timePeriod :: Maybe TimePeriod
- costTypes :: Maybe CostTypes
- costFilters :: Maybe (HashMap Text [Text])
- budgetName :: Text
- timeUnit :: TimeUnit
- budgetType :: BudgetType
- newBudget :: Text -> TimeUnit -> BudgetType -> Budget
- budget_calculatedSpend :: Lens' Budget (Maybe CalculatedSpend)
- budget_plannedBudgetLimits :: Lens' Budget (Maybe (HashMap Text Spend))
- budget_lastUpdatedTime :: Lens' Budget (Maybe UTCTime)
- budget_budgetLimit :: Lens' Budget (Maybe Spend)
- budget_timePeriod :: Lens' Budget (Maybe TimePeriod)
- budget_costTypes :: Lens' Budget (Maybe CostTypes)
- budget_costFilters :: Lens' Budget (Maybe (HashMap Text [Text]))
- budget_budgetName :: Lens' Budget Text
- budget_timeUnit :: Lens' Budget TimeUnit
- budget_budgetType :: Lens' Budget BudgetType
- data BudgetPerformanceHistory = BudgetPerformanceHistory' {}
- newBudgetPerformanceHistory :: BudgetPerformanceHistory
- budgetPerformanceHistory_budgetedAndActualAmountsList :: Lens' BudgetPerformanceHistory (Maybe [BudgetedAndActualAmounts])
- budgetPerformanceHistory_timeUnit :: Lens' BudgetPerformanceHistory (Maybe TimeUnit)
- budgetPerformanceHistory_budgetName :: Lens' BudgetPerformanceHistory (Maybe Text)
- budgetPerformanceHistory_budgetType :: Lens' BudgetPerformanceHistory (Maybe BudgetType)
- budgetPerformanceHistory_costTypes :: Lens' BudgetPerformanceHistory (Maybe CostTypes)
- budgetPerformanceHistory_costFilters :: Lens' BudgetPerformanceHistory (Maybe (HashMap Text [Text]))
- data BudgetedAndActualAmounts = BudgetedAndActualAmounts' {}
- newBudgetedAndActualAmounts :: BudgetedAndActualAmounts
- budgetedAndActualAmounts_timePeriod :: Lens' BudgetedAndActualAmounts (Maybe TimePeriod)
- budgetedAndActualAmounts_actualAmount :: Lens' BudgetedAndActualAmounts (Maybe Spend)
- budgetedAndActualAmounts_budgetedAmount :: Lens' BudgetedAndActualAmounts (Maybe Spend)
- data CalculatedSpend = CalculatedSpend' {}
- newCalculatedSpend :: Spend -> CalculatedSpend
- calculatedSpend_forecastedSpend :: Lens' CalculatedSpend (Maybe Spend)
- calculatedSpend_actualSpend :: Lens' CalculatedSpend Spend
- data CostTypes = CostTypes' {
- useAmortized :: Maybe Bool
- includeRecurring :: Maybe Bool
- useBlended :: Maybe Bool
- includeSupport :: Maybe Bool
- includeDiscount :: Maybe Bool
- includeSubscription :: Maybe Bool
- includeRefund :: Maybe Bool
- includeUpfront :: Maybe Bool
- includeOtherSubscription :: Maybe Bool
- includeTax :: Maybe Bool
- includeCredit :: Maybe Bool
- newCostTypes :: CostTypes
- costTypes_useAmortized :: Lens' CostTypes (Maybe Bool)
- costTypes_includeRecurring :: Lens' CostTypes (Maybe Bool)
- costTypes_useBlended :: Lens' CostTypes (Maybe Bool)
- costTypes_includeSupport :: Lens' CostTypes (Maybe Bool)
- costTypes_includeDiscount :: Lens' CostTypes (Maybe Bool)
- costTypes_includeSubscription :: Lens' CostTypes (Maybe Bool)
- costTypes_includeRefund :: Lens' CostTypes (Maybe Bool)
- costTypes_includeUpfront :: Lens' CostTypes (Maybe Bool)
- costTypes_includeOtherSubscription :: Lens' CostTypes (Maybe Bool)
- costTypes_includeTax :: Lens' CostTypes (Maybe Bool)
- costTypes_includeCredit :: Lens' CostTypes (Maybe Bool)
- data Definition = Definition' {}
- newDefinition :: Definition
- definition_scpActionDefinition :: Lens' Definition (Maybe ScpActionDefinition)
- definition_iamActionDefinition :: Lens' Definition (Maybe IamActionDefinition)
- definition_ssmActionDefinition :: Lens' Definition (Maybe SsmActionDefinition)
- 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_thresholdType :: Lens' Notification (Maybe ThresholdType)
- notification_notificationState :: Lens' Notification (Maybe NotificationState)
- 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_start :: Lens' TimePeriod (Maybe UTCTime)
- timePeriod_end :: Lens' TimePeriod (Maybe UTCTime)
Service Configuration
defaultService :: Service Source #
API version 2016-10-20
of the Amazon Budgets SDK configuration.
Errors
_AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
You are not authorized to use this operation with the given parameters.
_InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError Source #
An error on the client occurred. Typically, the cause is an invalid input value.
_InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError Source #
An error on the server occurred during the processing of your request. Try again later.
_ExpiredNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The pagination token expired.
_NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
We can’t locate the resource that you specified.
_ResourceLockedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request was received and recognized by the server, but the server rejected that particular method for the requested resource.
_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The pagination token is invalid.
_DuplicateRecordException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The budget name already exists. Budget names must be unique within an account.
_CreationLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
You've exceeded the notification or subscriber limit.
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
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 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 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 generated by the system.
$sel:actionHistoryDetails:ActionHistory'
, actionHistory_actionHistoryDetails
- The description of details of 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 generated by the system.
actionHistory_actionHistoryDetails :: Lens' ActionHistory ActionHistoryDetails Source #
The description of details of the event.
ActionHistoryDetails
data ActionHistoryDetails Source #
The description of details of 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.
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 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:calculatedSpend:Budget'
, budget_calculatedSpend
- The actual and forecasted cost or usage that the budget tracks.
$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
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 4 quarters of PlannedBudgetLimits
value
entries in standard calendar quarter increments. This must start from
the current quarter and include the next 3 quarters. The key
is the
start of the quarter, UTC
in epoch seconds.
If the planned budget expires before 12 months for monthly or 4 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
will also contain BudgetLimit
representing the
current month or quarter limit present in PlannedBudgetLimits
. This
only applies to budgets created with PlannedBudgetLimits
. Budgets
created without PlannedBudgetLimits
will only contain BudgetLimit
,
and no PlannedBudgetLimits
.
$sel:lastUpdatedTime:Budget'
, budget_lastUpdatedTime
- The last time that you updated this 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
, which 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:timePeriod:Budget'
, budget_timePeriod
- The period of time that is covered by a budget. The period has a start
date and an 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, AWS 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, AWS set your start date to
01/24/18 00:00 UTC
. If you chose MONTHLY
, AWS set your start date
to 01/01/18 00:00 UTC
. If you didn't specify an end date, AWS set
your end date to 06/15/87 00:00 UTC
. The defaults are the same for
the AWS Billing and Cost Management console and the API.
You can change either date with the UpdateBudget
operation.
After the end date, AWS deletes the budget and all associated notifications and subscribers.
$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:costFilters:Budget'
, budget_costFilters
- The cost filters, such as service or tag, that are applied to a budget.
AWS Budgets supports the following services as a filter for RI budgets:
- Amazon Elastic Compute Cloud - Compute
- Amazon Redshift
- Amazon Relational Database Service
- Amazon ElastiCache
- Amazon Elasticsearch Service
$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
- Whether this budget tracks costs, usage, RI utilization, RI coverage,
Savings Plans utilization, or Savings Plans coverage.
budget_calculatedSpend :: Lens' Budget (Maybe CalculatedSpend) Source #
The actual and forecasted cost or usage that the budget tracks.
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
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 4 quarters of PlannedBudgetLimits
value
entries in standard calendar quarter increments. This must start from
the current quarter and include the next 3 quarters. The key
is the
start of the quarter, UTC
in epoch seconds.
If the planned budget expires before 12 months for monthly or 4 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
will also contain BudgetLimit
representing the
current month or quarter limit present in PlannedBudgetLimits
. This
only applies to budgets created with PlannedBudgetLimits
. Budgets
created without PlannedBudgetLimits
will only contain BudgetLimit
,
and no PlannedBudgetLimits
.
budget_lastUpdatedTime :: Lens' Budget (Maybe UTCTime) Source #
The last time that you updated this 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
, which 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_timePeriod :: Lens' Budget (Maybe TimePeriod) Source #
The period of time that is covered by a budget. The period has a start
date and an 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, AWS 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, AWS set your start date to
01/24/18 00:00 UTC
. If you chose MONTHLY
, AWS set your start date
to 01/01/18 00:00 UTC
. If you didn't specify an end date, AWS set
your end date to 06/15/87 00:00 UTC
. The defaults are the same for
the AWS Billing and Cost Management console and the API.
You can change either date with the UpdateBudget
operation.
After the end date, AWS deletes the budget and all associated notifications and subscribers.
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_costFilters :: Lens' Budget (Maybe (HashMap Text [Text])) Source #
The cost filters, such as service or tag, that are applied to a budget.
AWS Budgets supports the following services as a filter for RI budgets:
- Amazon Elastic Compute Cloud - Compute
- Amazon Redshift
- Amazon Relational Database Service
- Amazon ElastiCache
- Amazon Elasticsearch Service
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 #
Whether this budget tracks costs, usage, RI utilization, RI coverage, Savings Plans utilization, or Savings Plans coverage.
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:budgetedAndActualAmountsList:BudgetPerformanceHistory'
, budgetPerformanceHistory_budgetedAndActualAmountsList
- A list of amounts of cost or usage that you created budgets for,
compared to your actual costs or usage.
$sel:timeUnit:BudgetPerformanceHistory'
, budgetPerformanceHistory_timeUnit
- Undocumented member.
$sel:budgetName:BudgetPerformanceHistory'
, budgetPerformanceHistory_budgetName
- Undocumented member.
$sel:budgetType:BudgetPerformanceHistory'
, budgetPerformanceHistory_budgetType
- Undocumented member.
$sel:costTypes:BudgetPerformanceHistory'
, budgetPerformanceHistory_costTypes
- The history of the cost types for a budget during the specified time
period.
$sel:costFilters:BudgetPerformanceHistory'
, budgetPerformanceHistory_costFilters
- The history of the cost filters for a budget during the specified time
period.
budgetPerformanceHistory_budgetedAndActualAmountsList :: Lens' BudgetPerformanceHistory (Maybe [BudgetedAndActualAmounts]) Source #
A list of amounts of cost or usage that you created budgets for, compared to your actual costs or usage.
budgetPerformanceHistory_timeUnit :: Lens' BudgetPerformanceHistory (Maybe TimeUnit) Source #
Undocumented member.
budgetPerformanceHistory_budgetName :: Lens' BudgetPerformanceHistory (Maybe Text) Source #
Undocumented member.
budgetPerformanceHistory_budgetType :: Lens' BudgetPerformanceHistory (Maybe BudgetType) Source #
Undocumented member.
budgetPerformanceHistory_costTypes :: Lens' BudgetPerformanceHistory (Maybe CostTypes) Source #
The history of the cost types for a budget during the specified time period.
budgetPerformanceHistory_costFilters :: Lens' BudgetPerformanceHistory (Maybe (HashMap Text [Text])) Source #
The history of the cost filters for a budget during the specified time period.
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:timePeriod:BudgetedAndActualAmounts'
, budgetedAndActualAmounts_timePeriod
- The time period covered by this budget comparison.
$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.
budgetedAndActualAmounts_timePeriod :: Lens' BudgetedAndActualAmounts (Maybe TimePeriod) Source #
The time period 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.
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 you are
predicted to spend based on your historical usage profile.
For example, if it is 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 are
forecasted to use.
$sel:actualSpend:CalculatedSpend'
, calculatedSpend_actualSpend
- The amount of cost, usage, RI units, or Savings Plans units that you
have used.
calculatedSpend_forecastedSpend :: Lens' CalculatedSpend (Maybe Spend) Source #
The amount of cost, usage, RI units, or Savings Plans units that you are forecasted to use.
calculatedSpend_actualSpend :: Lens' CalculatedSpend Spend Source #
The amount of cost, usage, RI units, or Savings Plans units that you have 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 do not 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:useAmortized:CostTypes'
, costTypes_useAmortized
- Specifies whether a budget uses the amortized rate.
The default value is false
.
$sel:includeRecurring:CostTypes'
, costTypes_includeRecurring
- Specifies whether a budget includes recurring fees such as monthly RI
fees.
The default value is true
.
$sel:useBlended:CostTypes'
, costTypes_useBlended
- Specifies whether a budget uses a blended rate.
The default value is false
.
$sel:includeSupport:CostTypes'
, costTypes_includeSupport
- Specifies whether a budget includes support subscription fees.
The default value is true
.
$sel:includeDiscount:CostTypes'
, costTypes_includeDiscount
- Specifies whether a budget includes discounts.
The default value is true
.
$sel:includeSubscription:CostTypes'
, costTypes_includeSubscription
- Specifies whether a budget includes subscriptions.
The default value is true
.
$sel:includeRefund:CostTypes'
, costTypes_includeRefund
- Specifies whether a budget includes refunds.
The default value is true
.
$sel:includeUpfront:CostTypes'
, costTypes_includeUpfront
- Specifies whether a budget includes upfront RI costs.
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:includeTax:CostTypes'
, costTypes_includeTax
- Specifies whether a budget includes taxes.
The default value is true
.
$sel:includeCredit:CostTypes'
, costTypes_includeCredit
- Specifies whether a budget includes credits.
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_includeRecurring :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes recurring fees such as monthly RI fees.
The default value is true
.
costTypes_useBlended :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget uses a blended rate.
The default value is false
.
costTypes_includeSupport :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes support subscription fees.
The default value is true
.
costTypes_includeDiscount :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes discounts.
The default value is true
.
costTypes_includeSubscription :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes subscriptions.
The default value is true
.
costTypes_includeRefund :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes refunds.
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_includeOtherSubscription :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes non-RI subscription costs.
The default value is true
.
costTypes_includeTax :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes taxes.
The default value is true
.
costTypes_includeCredit :: Lens' CostTypes (Maybe Bool) Source #
Specifies whether a budget includes credits.
The default value is true
.
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:scpActionDefinition:Definition'
, definition_scpActionDefinition
- The service control policies (SCPs) action definition details.
$sel:iamActionDefinition:Definition'
, definition_iamActionDefinition
- The AWS Identity and Access Management (IAM) action definition details.
$sel:ssmActionDefinition:Definition'
, definition_ssmActionDefinition
- The AWS Systems Manager (SSM) action definition details.
definition_scpActionDefinition :: Lens' Definition (Maybe ScpActionDefinition) Source #
The service control policies (SCPs) action definition details.
definition_iamActionDefinition :: Lens' Definition (Maybe IamActionDefinition) Source #
The AWS Identity and Access Management (IAM) action definition details.
definition_ssmActionDefinition :: Lens' Definition (Maybe SsmActionDefinition) Source #
The AWS Systems Manager (SSM) action definition details.
IamActionDefinition
data IamActionDefinition Source #
The AWS 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 is 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:thresholdType:Notification'
, notification_thresholdType
- The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, AWS notifies you when you go over or are forecasted to go
over your total cost threshold. For PERCENTAGE
thresholds, AWS
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%, AWS
notifies you when you go over 160 dollars.
$sel:notificationState:Notification'
, notification_notificationState
- Whether this notification is in alarm. If a budget notification is in
the ALARM
state, you have passed the set threshold for the budget.
$sel:notificationType:Notification'
, notification_notificationType
- Whether the notification is for how much you have spent (ACTUAL
) or
for how much you're forecasted to spend (FORECASTED
).
$sel:comparisonOperator:Notification'
, notification_comparisonOperator
- The comparison that is used for this notification.
$sel:threshold:Notification'
, notification_threshold
- The threshold that is 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_thresholdType :: Lens' Notification (Maybe ThresholdType) Source #
The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, AWS notifies you when you go over or are forecasted to go
over your total cost threshold. For PERCENTAGE
thresholds, AWS
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%, AWS
notifies you when you go over 160 dollars.
notification_notificationState :: Lens' Notification (Maybe NotificationState) Source #
Whether this notification is in alarm. If a budget notification is in
the ALARM
state, you have passed the set threshold for the budget.
notification_notificationType :: Lens' Notification NotificationType Source #
Whether the notification is for how much you have spent (ACTUAL
) or
for how much you're forecasted to spend (FORECASTED
).
notification_comparisonOperator :: Lens' Notification ComparisonOperator Source #
The comparison that is used for this notification.
notification_threshold :: Lens' Notification Double Source #
The threshold that is 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 is 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 is 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 is measured for a budget.
For example, a Spend
for 3 GB
of S3 usage would have the following
parameters:
- An
Amount
of3
- A
unit
ofGB
See: newSpend
smart constructor.
Instances
Eq Spend Source # | |
Read Spend Source # | |
Show Spend Source # | |
Generic Spend Source # | |
NFData Spend Source # | |
Defined in Amazonka.Budgets.Types.Spend | |
Hashable Spend Source # | |
Defined in Amazonka.Budgets.Types.Spend | |
ToJSON Spend Source # | |
Defined in Amazonka.Budgets.Types.Spend | |
FromJSON Spend Source # | |
type Rep Spend Source # | |
Defined in Amazonka.Budgets.Types.Spend type Rep Spend = D1 ('MetaData "Spend" "Amazonka.Budgets.Types.Spend" "libZSservicesZSamazonka-budgetsZSamazonka-budgets" '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 is associated with a budget forecast,
actual spend, or budget threshold.
$sel:unit:Spend'
, spend_unit
- The unit of measurement that is used for the budget forecast, actual
spend, or budget threshold, such as dollars or GB.
spend_amount :: Lens' Spend Text Source #
The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.
spend_unit :: Lens' Spend Text Source #
The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.
SsmActionDefinition
data SsmActionDefinition Source #
The AWS 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 would have 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 AWS sends to a subscriber.
$sel:address:Subscriber'
, subscriber_address
- The address that AWS 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 AWS sends to a subscriber.
subscriber_address :: Lens' Subscriber Text Source #
The address that AWS 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 is 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:start:TimePeriod'
, timePeriod_start
- The start date for a budget. If you created your budget and didn't
specify a start date, AWS 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, AWS set your start date to 01/24/18 00:00 UTC
. If you
chose MONTHLY
, AWS set your start date to 01/01/18 00:00 UTC
. The
defaults are the same for the AWS Billing and Cost Management console
and the API.
You can change your start date with the UpdateBudget
operation.
$sel:end:TimePeriod'
, timePeriod_end
- The end date for a budget. If you didn't specify an end date, AWS set
your end date to 06/15/87 00:00 UTC
. The defaults are the same for
the AWS Billing and Cost Management console and the API.
After the end date, AWS deletes the budget and all 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, AWS 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, AWS set your start date to 01/24/18 00:00 UTC
. If you
chose MONTHLY
, AWS set your start date to 01/01/18 00:00 UTC
. The
defaults are the same for the AWS 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, AWS set
your end date to 06/15/87 00:00 UTC
. The defaults are the same for
the AWS Billing and Cost Management console and the API.
After the end date, AWS deletes the budget and all associated
notifications and subscribers. You can change your end date with the
UpdateBudget
operation.