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 |
Returns an estimate of the monthly cost for DevOps Guru to analyze your AWS resources. For more information, see Estimate your Amazon DevOps Guru costs and Amazon DevOps Guru pricing.
This operation returns paginated results.
Synopsis
- data GetCostEstimation = GetCostEstimation' {}
- newGetCostEstimation :: GetCostEstimation
- getCostEstimation_nextToken :: Lens' GetCostEstimation (Maybe Text)
- data GetCostEstimationResponse = GetCostEstimationResponse' {}
- newGetCostEstimationResponse :: Int -> GetCostEstimationResponse
- getCostEstimationResponse_status :: Lens' GetCostEstimationResponse (Maybe CostEstimationStatus)
- getCostEstimationResponse_resourceCollection :: Lens' GetCostEstimationResponse (Maybe CostEstimationResourceCollectionFilter)
- getCostEstimationResponse_timeRange :: Lens' GetCostEstimationResponse (Maybe CostEstimationTimeRange)
- getCostEstimationResponse_costs :: Lens' GetCostEstimationResponse (Maybe [ServiceResourceCost])
- getCostEstimationResponse_nextToken :: Lens' GetCostEstimationResponse (Maybe Text)
- getCostEstimationResponse_totalCost :: Lens' GetCostEstimationResponse (Maybe Double)
- getCostEstimationResponse_httpStatus :: Lens' GetCostEstimationResponse Int
Creating a Request
data GetCostEstimation Source #
See: newGetCostEstimation
smart constructor.
Instances
newGetCostEstimation :: GetCostEstimation Source #
Create a value of GetCostEstimation
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:nextToken:GetCostEstimation'
, getCostEstimation_nextToken
- The pagination token to use to retrieve the next page of results for
this operation. If this value is null, it retrieves the first page.
Request Lenses
getCostEstimation_nextToken :: Lens' GetCostEstimation (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
Destructuring the Response
data GetCostEstimationResponse Source #
See: newGetCostEstimationResponse
smart constructor.
GetCostEstimationResponse' | |
|
Instances
newGetCostEstimationResponse Source #
Create a value of GetCostEstimationResponse
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:status:GetCostEstimationResponse'
, getCostEstimationResponse_status
- The status of creating this cost estimate. If it's still in progress,
the status ONGOING
is returned. If it is finished, the status
COMPLETED
is returned.
$sel:resourceCollection:GetCostEstimationResponse'
, getCostEstimationResponse_resourceCollection
- The collection of the AWS resources used to create your monthly DevOps
Guru cost estimate.
$sel:timeRange:GetCostEstimationResponse'
, getCostEstimationResponse_timeRange
- The start and end time of the cost estimation.
$sel:costs:GetCostEstimationResponse'
, getCostEstimationResponse_costs
- An array of ResourceCost
objects that each contains details about the
monthly cost estimate to analyze one of your AWS resources.
$sel:nextToken:GetCostEstimation'
, getCostEstimationResponse_nextToken
- The pagination token to use to retrieve the next page of results for
this operation. If there are no more pages, this value is null.
$sel:totalCost:GetCostEstimationResponse'
, getCostEstimationResponse_totalCost
- The estimated monthly cost to analyze the AWS resources. This value is
the sum of the estimated costs to analyze each resource in the Costs
object in this response.
$sel:httpStatus:GetCostEstimationResponse'
, getCostEstimationResponse_httpStatus
- The response's http status code.
Response Lenses
getCostEstimationResponse_status :: Lens' GetCostEstimationResponse (Maybe CostEstimationStatus) Source #
The status of creating this cost estimate. If it's still in progress,
the status ONGOING
is returned. If it is finished, the status
COMPLETED
is returned.
getCostEstimationResponse_resourceCollection :: Lens' GetCostEstimationResponse (Maybe CostEstimationResourceCollectionFilter) Source #
The collection of the AWS resources used to create your monthly DevOps Guru cost estimate.
getCostEstimationResponse_timeRange :: Lens' GetCostEstimationResponse (Maybe CostEstimationTimeRange) Source #
The start and end time of the cost estimation.
getCostEstimationResponse_costs :: Lens' GetCostEstimationResponse (Maybe [ServiceResourceCost]) Source #
An array of ResourceCost
objects that each contains details about the
monthly cost estimate to analyze one of your AWS resources.
getCostEstimationResponse_nextToken :: Lens' GetCostEstimationResponse (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
getCostEstimationResponse_totalCost :: Lens' GetCostEstimationResponse (Maybe Double) Source #
The estimated monthly cost to analyze the AWS resources. This value is
the sum of the estimated costs to analyze each resource in the Costs
object in this response.
getCostEstimationResponse_httpStatus :: Lens' GetCostEstimationResponse Int Source #
The response's http status code.