Sustainability / Paginator / GetEstimatedWaterAllocation
GetEstimatedWaterAllocation¶
- class Sustainability.Paginator.GetEstimatedWaterAllocation¶
paginator = client.get_paginator('get_estimated_water_allocation')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
Sustainability.Client.get_estimated_water_allocation().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( TimePeriod={ 'Start': datetime(2015, 1, 1), 'End': datetime(2015, 1, 1) }, GroupBy=[ 'USAGE_ACCOUNT_ID'|'REGION'|'SERVICE', ], FilterBy={ 'Dimensions': { 'string': [ 'string', ] } }, AllocationTypes=[ 'TOTAL_WATER_WITHDRAWALS', ], Granularity='YEARLY_CALENDAR'|'YEARLY_FISCAL'|'QUARTERLY_CALENDAR'|'QUARTERLY_FISCAL'|'MONTHLY', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
TimePeriod (dict) –
[REQUIRED]
The date range for fetching estimated water allocation. The range must include the start date of a year for that year’s data to be included in the response.
Start (datetime) – [REQUIRED]
The start (inclusive) of the time period. ISO-8601 formatted timestamp, for example:
YYYY-MM-DDThh:mm:ss.sssZEnd (datetime) – [REQUIRED]
The end (exclusive) of the time period. ISO-8601 formatted timestamp, for example:
YYYY-MM-DDThh:mm:ss.sssZ
GroupBy (list) –
The dimensions available for grouping estimated water allocation.
(string) –
Specifies the dimensions available for grouping and filtering environmental impact data.
FilterBy (dict) –
The criteria for filtering estimated water allocation. To determine which dimensions are available to be filtered by, you can first call GetEstimatedWaterAllocationDimensionValues
Dimensions (dict) –
Filters environmental impact values by specific dimension values.
(string) –
Specifies the dimensions available for grouping and filtering environmental impact data.
(list) –
(string) –
AllocationTypes (list) –
The allocation types to include in the results. If absent, returns
TOTAL_WATER_WITHDRAWALSallocation types.(string) –
Specifies the types of water allocation calculations available.
Granularity (string) –
The time granularity for the results. Only
YEARLY_CALENDARtime granularity is currently supported for water allocation. Defaults toYEARLY_CALENDARif absent.If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting
2025-04-01T00:00:00Zto2026-04-01T00:00:00ZwithYEARLY_CALENDARwill return all the data for 2026 only.PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'Results': [ { 'TimePeriod': { 'Start': datetime(2015, 1, 1), 'End': datetime(2015, 1, 1) }, 'DimensionsValues': { 'string': 'string' }, 'ModelVersion': 'string', 'AllocationValues': { 'string': { 'Value': 123.0, 'Unit': 'm3' } } }, ], }
Response Structure
(dict) –
Results (list) –
The result of the requested inputs.
(dict) –
Contains estimated water allocation data for a specific time period and dimension grouping.
TimePeriod (dict) –
The reporting period for water allocation values.
Start (datetime) –
The start (inclusive) of the time period. ISO-8601 formatted timestamp, for example:
YYYY-MM-DDThh:mm:ss.sssZEnd (datetime) –
The end (exclusive) of the time period. ISO-8601 formatted timestamp, for example:
YYYY-MM-DDThh:mm:ss.sssZ
DimensionsValues (dict) –
The dimensions used to group water allocation values.
(string) –
Specifies the dimensions available for grouping and filtering environmental impact data.
(string) –
ModelVersion (string) –
The semantic version-formatted string that indicates the methodology version used to calculate the water allocation values.
Note
The AWS Sustainability service reflects the most recent model version for every month. You will not see two entries for the same month with different
ModelVersionvalues.AllocationValues (dict) –
The allocation values for the requested water allocation types.
(string) –
Specifies the types of water allocation calculations available.
(dict) –
Represents a water allocation quantity with its value and unit of measurement.
Value (float) –
The numeric value of the allocation quantity.
Unit (string) –
The unit of measurement for the allocation value.