AWS Sustainability

2026/07/16 - AWS Sustainability - 2 new api methods

Changes  Adds support for retrieving estimated water allocation data.

GetEstimatedWaterAllocation (new) Link ¶

Returns estimated water allocation values based on customer grouping and filtering parameters. We recommend using pagination to ensure that the operation returns quickly and successfully.

See also: AWS API Documentation

Request Syntax

client.get_estimated_water_allocation(
    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',
    MaxResults=123,
    NextToken='string'
)
type TimePeriod:

dict

param TimePeriod:

[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.sssZ

  • End (datetime) -- [REQUIRED]

    The end (exclusive) of the time period. ISO-8601 formatted timestamp, for example: YYYY-MM-DDThh:mm:ss.sssZ

type GroupBy:

list

param GroupBy:

The dimensions available for grouping estimated water allocation.

  • (string) --

    Specifies the dimensions available for grouping and filtering environmental impact data.

type FilterBy:

dict

param FilterBy:

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) --

type AllocationTypes:

list

param AllocationTypes:

The allocation types to include in the results. If absent, returns TOTAL_WATER_WITHDRAWALS allocation types.

  • (string) --

    Specifies the types of water allocation calculations available.

type Granularity:

string

param Granularity:

The time granularity for the results. Only YEARLY_CALENDAR time granularity is currently supported for water allocation. Defaults to YEARLY_CALENDAR if absent.

If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting 2025-04-01T00:00:00Z to 2026-04-01T00:00:00Z with YEARLY_CALENDAR will return all the data for 2026 only.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single call. Default is 1000.

type NextToken:

string

param NextToken:

The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.

rtype:

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'
                }
            }
        },
    ],
    'NextToken': 'string'
}

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.sssZ

          • End (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.

        • 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.

    • NextToken (string) --

      The pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.

GetEstimatedWaterAllocationDimensionValues (new) Link ¶

Returns the possible dimension values available for a customer's account. We recommend using pagination to ensure that the operation returns quickly and successfully.

See also: AWS API Documentation

Request Syntax

client.get_estimated_water_allocation_dimension_values(
    TimePeriod={
        'Start': datetime(2015, 1, 1),
        'End': datetime(2015, 1, 1)
    },
    Dimensions=[
        'USAGE_ACCOUNT_ID'|'REGION'|'SERVICE',
    ],
    MaxResults=123,
    NextToken='string'
)
type TimePeriod:

dict

param TimePeriod:

[REQUIRED]

The date range for fetching the dimension values. 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.sssZ

  • End (datetime) -- [REQUIRED]

    The end (exclusive) of the time period. ISO-8601 formatted timestamp, for example: YYYY-MM-DDThh:mm:ss.sssZ

type Dimensions:

list

param Dimensions:

[REQUIRED]

The dimensions available for grouping estimated water allocation.

  • (string) --

    Specifies the dimensions available for grouping and filtering environmental impact data.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single call. Default is 1000.

type NextToken:

string

param NextToken:

The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.

rtype:

dict

returns:

Response Syntax

{
    'Results': [
        {
            'Dimension': 'USAGE_ACCOUNT_ID'|'REGION'|'SERVICE',
            'Value': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Results (list) --

      The list of possible dimensions over which the allocation data is aggregated.

      • (dict) --

        Represents a dimension and its corresponding value.

        • Dimension (string) --

          The dimension type that categorizes this entry.

        • Value (string) --

          The value for the specified dimension. Valid values vary based on the dimension type (e.g., us-east-1 for the REGION dimension, AmazonEC2 for the SERVICE dimension).

    • NextToken (string) --

      The pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.