AWS Cost Explorer Service

2018/12/05 - AWS Cost Explorer Service - 2 updated api methods

Changes  Update ce client to latest version

GetReservationCoverage (updated) Link ¶
Changes (request, response)
Request
{'Metrics': ['string']}
Response
{'CoveragesByTime': {'Groups': {'Coverage': {'CoverageCost': {'OnDemandCost': 'string'},
                                             'CoverageNormalizedUnits': {'CoverageNormalizedUnitsPercentage': 'string',
                                                                         'OnDemandNormalizedUnits': 'string',
                                                                         'ReservedNormalizedUnits': 'string',
                                                                         'TotalRunningNormalizedUnits': 'string'}}},
                     'Total': {'CoverageCost': {'OnDemandCost': 'string'},
                               'CoverageNormalizedUnits': {'CoverageNormalizedUnitsPercentage': 'string',
                                                           'OnDemandNormalizedUnits': 'string',
                                                           'ReservedNormalizedUnits': 'string',
                                                           'TotalRunningNormalizedUnits': 'string'}}},
 'Total': {'CoverageCost': {'OnDemandCost': 'string'},
           'CoverageNormalizedUnits': {'CoverageNormalizedUnitsPercentage': 'string',
                                       'OnDemandNormalizedUnits': 'string',
                                       'ReservedNormalizedUnits': 'string',
                                       'TotalRunningNormalizedUnits': 'string'}}}

Retrieves the reservation coverage for your account. This enables you to see how much of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or Amazon Redshift usage is covered by a reservation. An organization's master account can see the coverage of the associated member accounts. For any time period, you can filter data about reservation usage by the following dimensions:

  • AZ

  • CACHE_ENGINE

  • DATABASE_ENGINE

  • DEPLOYMENT_OPTION

  • INSTANCE_TYPE

  • LINKED_ACCOUNT

  • OPERATING_SYSTEM

  • PLATFORM

  • REGION

  • SERVICE

  • TAG

  • TENANCY

To determine valid values for a dimension, use the GetDimensionValues operation.

See also: AWS API Documentation

Request Syntax

client.get_reservation_coverage(
    TimePeriod={
        'Start': 'string',
        'End': 'string'
    },
    GroupBy=[
        {
            'Type': 'DIMENSION'|'TAG',
            'Key': 'string'
        },
    ],
    Granularity='DAILY'|'MONTHLY'|'HOURLY',
    Filter={
        'Or': [
            {'... recursive ...'},
        ],
        'And': [
            {'... recursive ...'},
        ],
        'Not': {'... recursive ...'},
        'Dimensions': {
            'Key': 'AZ'|'INSTANCE_TYPE'|'LINKED_ACCOUNT'|'OPERATION'|'PURCHASE_TYPE'|'REGION'|'SERVICE'|'USAGE_TYPE'|'USAGE_TYPE_GROUP'|'RECORD_TYPE'|'OPERATING_SYSTEM'|'TENANCY'|'SCOPE'|'PLATFORM'|'SUBSCRIPTION_ID'|'LEGAL_ENTITY_NAME'|'DEPLOYMENT_OPTION'|'DATABASE_ENGINE'|'CACHE_ENGINE'|'INSTANCE_TYPE_FAMILY'|'BILLING_ENTITY'|'RESERVATION_ID',
            'Values': [
                'string',
            ]
        },
        'Tags': {
            'Key': 'string',
            'Values': [
                'string',
            ]
        }
    },
    Metrics=[
        'string',
    ],
    NextPageToken='string'
)
type TimePeriod:

dict

param TimePeriod:

[REQUIRED]

The start and end dates of the period that you want to retrieve data about reservation coverage for. You can retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

  • Start (string) -- [REQUIRED]

    The beginning of the time period that you want the usage and costs for. The start date is inclusive. For example, if start is 2017-01-01, AWS retrieves cost and usage data starting at 2017-01-01 up to the end date.

  • End (string) -- [REQUIRED]

    The end of the time period that you want the usage and costs for. The end date is exclusive. For example, if end is 2017-05-01, AWS retrieves cost and usage data from the start date up to, but not including, 2017-05-01.

type GroupBy:

list

param GroupBy:

You can group the data by the following attributes:

  • AZ

  • CACHE_ENGINE

  • DATABASE_ENGINE

  • DEPLOYMENT_OPTION

  • INSTANCE_TYPE

  • LINKED_ACCOUNT

  • OPERATING_SYSTEM

  • PLATFORM

  • REGION

  • TAG

  • TENANCY

  • (dict) --

    Represents a group when you specify a group by criteria or in the response to a query with a specific grouping.

    • Type (string) --

      The string that represents the type of group.

    • Key (string) --

      The string that represents a key for a specified group.

type Granularity:

string

param Granularity:

The granularity of the AWS cost data for the reservation. Valid values are MONTHLY and DAILY.

If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object doesn't include Granularity, either MONTHLY or DAILY.

The GetReservationCoverage operation supports only DAILY and MONTHLY granularities.

type Filter:

dict

param Filter:

Filters utilization data by dimensions. You can filter by the following dimensions:

  • AZ

  • CACHE_ENGINE

  • DATABASE_ENGINE

  • DEPLOYMENT_OPTION

  • INSTANCE_TYPE

  • LINKED_ACCOUNT

  • OPERATING_SYSTEM

  • PLATFORM

  • REGION

  • SERVICE

  • TAG

  • TENANCY

GetReservationCoverage uses the same Expression object as the other operations, but only AND is supported among each dimension. You can nest only one level deep. If there are multiple values for a dimension, they are OR'd together.

If you don't provide a SERVICE filter, Cost Explorer defaults to EC2.

  • Or (list) --

    Return results that match either Dimension object.

    • (dict) --

      Use Expression to filter by cost or by usage. There are two patterns:

      • Simple dimension values - You can set the dimension name and values for the filters that you plan to use. For example, you can filter for INSTANCE_TYPE==m4.xlarge OR INSTANCE_TYPE==c4.large. The Expression for that looks like this: { "Dimensions": { "Key": "INSTANCE_TYPE", "Values": [ "m4.xlarge", “c4.large” ] } } The list of dimension values are OR'd together to retrieve cost or usage data. You can create Expression and DimensionValues objects using either with* methods or set* methods in multiple lines.

      • Compound dimension values with logical operations - You can use multiple Expression types and the logical operators AND/OR/NOT to create a list of one or more Expression objects. This allows you to filter on more advanced options. For example, you can filter on ((INSTANCE_TYPE == m4.large OR INSTANCE_TYPE == m3.large) OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer). The Expression for that looks like this: { "And": [ {"Or": [ {"Dimensions": { "Key": "INSTANCE_TYPE", "Values": [ "m4.x.large", "c4.large" ] }}, {"Tags": { "Key": "TagName", "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] }

  • And (list) --

    Return results that match both Dimension objects.

    • (dict) --

      Use Expression to filter by cost or by usage. There are two patterns:

      • Simple dimension values - You can set the dimension name and values for the filters that you plan to use. For example, you can filter for INSTANCE_TYPE==m4.xlarge OR INSTANCE_TYPE==c4.large. The Expression for that looks like this: { "Dimensions": { "Key": "INSTANCE_TYPE", "Values": [ "m4.xlarge", “c4.large” ] } } The list of dimension values are OR'd together to retrieve cost or usage data. You can create Expression and DimensionValues objects using either with* methods or set* methods in multiple lines.

      • Compound dimension values with logical operations - You can use multiple Expression types and the logical operators AND/OR/NOT to create a list of one or more Expression objects. This allows you to filter on more advanced options. For example, you can filter on ((INSTANCE_TYPE == m4.large OR INSTANCE_TYPE == m3.large) OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer). The Expression for that looks like this: { "And": [ {"Or": [ {"Dimensions": { "Key": "INSTANCE_TYPE", "Values": [ "m4.x.large", "c4.large" ] }}, {"Tags": { "Key": "TagName", "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] }

  • Not (dict) --

    Return results that don't match a Dimension object.

  • Dimensions (dict) --

    The specific Dimension to use for Expression.

    • Key (string) --

      The names of the metadata types that you can use to filter and group your results. For example, AZ returns a list of Availability Zones.

    • Values (list) --

      The metadata values that you can use to filter and group your results. You can use GetDimensionValues to find specific values.

      Valid values for the SERVICE dimension are Amazon Elastic Compute Cloud - Compute, Amazon Elasticsearch Service, Amazon ElastiCache, Amazon Redshift, and Amazon Relational Database Service.

      • (string) --

  • Tags (dict) --

    The specific Tag to use for Expression.

    • Key (string) --

      The key for the tag.

    • Values (list) --

      The specific value of the tag.

      • (string) --

type Metrics:

list

param Metrics:
  • (string) --

type NextPageToken:

string

param NextPageToken:

The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.

rtype:

dict

returns:

Response Syntax

{
    'CoveragesByTime': [
        {
            'TimePeriod': {
                'Start': 'string',
                'End': 'string'
            },
            'Groups': [
                {
                    'Attributes': {
                        'string': 'string'
                    },
                    'Coverage': {
                        'CoverageHours': {
                            'OnDemandHours': 'string',
                            'ReservedHours': 'string',
                            'TotalRunningHours': 'string',
                            'CoverageHoursPercentage': 'string'
                        },
                        'CoverageNormalizedUnits': {
                            'OnDemandNormalizedUnits': 'string',
                            'ReservedNormalizedUnits': 'string',
                            'TotalRunningNormalizedUnits': 'string',
                            'CoverageNormalizedUnitsPercentage': 'string'
                        },
                        'CoverageCost': {
                            'OnDemandCost': 'string'
                        }
                    }
                },
            ],
            'Total': {
                'CoverageHours': {
                    'OnDemandHours': 'string',
                    'ReservedHours': 'string',
                    'TotalRunningHours': 'string',
                    'CoverageHoursPercentage': 'string'
                },
                'CoverageNormalizedUnits': {
                    'OnDemandNormalizedUnits': 'string',
                    'ReservedNormalizedUnits': 'string',
                    'TotalRunningNormalizedUnits': 'string',
                    'CoverageNormalizedUnitsPercentage': 'string'
                },
                'CoverageCost': {
                    'OnDemandCost': 'string'
                }
            }
        },
    ],
    'Total': {
        'CoverageHours': {
            'OnDemandHours': 'string',
            'ReservedHours': 'string',
            'TotalRunningHours': 'string',
            'CoverageHoursPercentage': 'string'
        },
        'CoverageNormalizedUnits': {
            'OnDemandNormalizedUnits': 'string',
            'ReservedNormalizedUnits': 'string',
            'TotalRunningNormalizedUnits': 'string',
            'CoverageNormalizedUnitsPercentage': 'string'
        },
        'CoverageCost': {
            'OnDemandCost': 'string'
        }
    },
    'NextPageToken': 'string'
}

Response Structure

  • (dict) --

    • CoveragesByTime (list) --

      The amount of time that your reservations covered.

      • (dict) --

        Reservation coverage for a specified period, in hours.

        • TimePeriod (dict) --

          The period that this coverage was used over.

          • Start (string) --

            The beginning of the time period that you want the usage and costs for. The start date is inclusive. For example, if start is 2017-01-01, AWS retrieves cost and usage data starting at 2017-01-01 up to the end date.

          • End (string) --

            The end of the time period that you want the usage and costs for. The end date is exclusive. For example, if end is 2017-05-01, AWS retrieves cost and usage data from the start date up to, but not including, 2017-05-01.

        • Groups (list) --

          The groups of instances that the reservation covered.

          • (dict) --

            A group of reservations that share a set of attributes.

            • Attributes (dict) --

              The attributes for this group of reservations.

              • (string) --

                • (string) --

            • Coverage (dict) --

              How much instance usage this group of reservations covered.

              • CoverageHours (dict) --

                The amount of instance usage that the reservation covered, in hours.

                • OnDemandHours (string) --

                  The number of instance running hours that On-Demand Instances covered.

                • ReservedHours (string) --

                  The number of instance running hours that reservations covered.

                • TotalRunningHours (string) --

                  The total instance usage, in hours.

                • CoverageHoursPercentage (string) --

                  The percentage of instance hours that a reservation covered.

              • CoverageNormalizedUnits (dict) --

                The amount of instance usage that the reservation covered, in normalized units.

                • OnDemandNormalizedUnits (string) --

                  The number of normalized units that are covered by On-Demand Instances instead of a reservation.

                • ReservedNormalizedUnits (string) --

                  The number of normalized units that a reservation covers.

                • TotalRunningNormalizedUnits (string) --

                  The total number of normalized units that you used.

                • CoverageNormalizedUnitsPercentage (string) --

                  The percentage of your used instance normalized units that a reservation covers.

              • CoverageCost (dict) --

                The amount of cost that the reservation covered.

                • OnDemandCost (string) --

                  How much an On-Demand instance cost.

        • Total (dict) --

          The total reservation coverage, in hours.

          • CoverageHours (dict) --

            The amount of instance usage that the reservation covered, in hours.

            • OnDemandHours (string) --

              The number of instance running hours that On-Demand Instances covered.

            • ReservedHours (string) --

              The number of instance running hours that reservations covered.

            • TotalRunningHours (string) --

              The total instance usage, in hours.

            • CoverageHoursPercentage (string) --

              The percentage of instance hours that a reservation covered.

          • CoverageNormalizedUnits (dict) --

            The amount of instance usage that the reservation covered, in normalized units.

            • OnDemandNormalizedUnits (string) --

              The number of normalized units that are covered by On-Demand Instances instead of a reservation.

            • ReservedNormalizedUnits (string) --

              The number of normalized units that a reservation covers.

            • TotalRunningNormalizedUnits (string) --

              The total number of normalized units that you used.

            • CoverageNormalizedUnitsPercentage (string) --

              The percentage of your used instance normalized units that a reservation covers.

          • CoverageCost (dict) --

            The amount of cost that the reservation covered.

            • OnDemandCost (string) --

              How much an On-Demand instance cost.

    • Total (dict) --

      The total amount of instance usage that a reservation covered.

      • CoverageHours (dict) --

        The amount of instance usage that the reservation covered, in hours.

        • OnDemandHours (string) --

          The number of instance running hours that On-Demand Instances covered.

        • ReservedHours (string) --

          The number of instance running hours that reservations covered.

        • TotalRunningHours (string) --

          The total instance usage, in hours.

        • CoverageHoursPercentage (string) --

          The percentage of instance hours that a reservation covered.

      • CoverageNormalizedUnits (dict) --

        The amount of instance usage that the reservation covered, in normalized units.

        • OnDemandNormalizedUnits (string) --

          The number of normalized units that are covered by On-Demand Instances instead of a reservation.

        • ReservedNormalizedUnits (string) --

          The number of normalized units that a reservation covers.

        • TotalRunningNormalizedUnits (string) --

          The total number of normalized units that you used.

        • CoverageNormalizedUnitsPercentage (string) --

          The percentage of your used instance normalized units that a reservation covers.

      • CoverageCost (dict) --

        The amount of cost that the reservation covered.

        • OnDemandCost (string) --

          How much an On-Demand instance cost.

    • NextPageToken (string) --

      The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.

GetReservationUtilization (updated) Link ¶
Changes (response)
{'Total': {'PurchasedUnits': 'string',
           'TotalActualUnits': 'string',
           'UnusedUnits': 'string',
           'UtilizationPercentageInUnits': 'string'},
 'UtilizationsByTime': {'Groups': {'Utilization': {'PurchasedUnits': 'string',
                                                   'TotalActualUnits': 'string',
                                                   'UnusedUnits': 'string',
                                                   'UtilizationPercentageInUnits': 'string'}},
                        'Total': {'PurchasedUnits': 'string',
                                  'TotalActualUnits': 'string',
                                  'UnusedUnits': 'string',
                                  'UtilizationPercentageInUnits': 'string'}}}

Retrieves the reservation utilization for your account. Master accounts in an organization have access to member accounts. You can filter data by dimensions in a time period. You can use GetDimensionValues to determine the possible dimension values. Currently, you can group only by SUBSCRIPTION_ID.

See also: AWS API Documentation

Request Syntax

client.get_reservation_utilization(
    TimePeriod={
        'Start': 'string',
        'End': 'string'
    },
    GroupBy=[
        {
            'Type': 'DIMENSION'|'TAG',
            'Key': 'string'
        },
    ],
    Granularity='DAILY'|'MONTHLY'|'HOURLY',
    Filter={
        'Or': [
            {'... recursive ...'},
        ],
        'And': [
            {'... recursive ...'},
        ],
        'Not': {'... recursive ...'},
        'Dimensions': {
            'Key': 'AZ'|'INSTANCE_TYPE'|'LINKED_ACCOUNT'|'OPERATION'|'PURCHASE_TYPE'|'REGION'|'SERVICE'|'USAGE_TYPE'|'USAGE_TYPE_GROUP'|'RECORD_TYPE'|'OPERATING_SYSTEM'|'TENANCY'|'SCOPE'|'PLATFORM'|'SUBSCRIPTION_ID'|'LEGAL_ENTITY_NAME'|'DEPLOYMENT_OPTION'|'DATABASE_ENGINE'|'CACHE_ENGINE'|'INSTANCE_TYPE_FAMILY'|'BILLING_ENTITY'|'RESERVATION_ID',
            'Values': [
                'string',
            ]
        },
        'Tags': {
            'Key': 'string',
            'Values': [
                'string',
            ]
        }
    },
    NextPageToken='string'
)
type TimePeriod:

dict

param TimePeriod:

[REQUIRED]

Sets the start and end dates for retrieving RI utilization. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

  • Start (string) -- [REQUIRED]

    The beginning of the time period that you want the usage and costs for. The start date is inclusive. For example, if start is 2017-01-01, AWS retrieves cost and usage data starting at 2017-01-01 up to the end date.

  • End (string) -- [REQUIRED]

    The end of the time period that you want the usage and costs for. The end date is exclusive. For example, if end is 2017-05-01, AWS retrieves cost and usage data from the start date up to, but not including, 2017-05-01.

type GroupBy:

list

param GroupBy:

Groups only by SUBSCRIPTION_ID. Metadata is included.

  • (dict) --

    Represents a group when you specify a group by criteria or in the response to a query with a specific grouping.

    • Type (string) --

      The string that represents the type of group.

    • Key (string) --

      The string that represents a key for a specified group.

type Granularity:

string

param Granularity:

If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object doesn't include Granularity, either MONTHLY or DAILY. If both GroupBy and Granularity aren't set, GetReservationUtilization defaults to DAILY.

The GetReservationUtilization operation supports only DAILY and MONTHLY granularities.

type Filter:

dict

param Filter:

Filters utilization data by dimensions. You can filter by the following dimensions:

  • AZ

  • CACHE_ENGINE

  • DATABASE_ENGINE

  • DEPLOYMENT_OPTION

  • INSTANCE_TYPE

  • LINKED_ACCOUNT

  • OPERATING_SYSTEM

  • PLATFORM

  • REGION

  • SERVICE

  • SCOPE

  • TENANCY

GetReservationUtilization uses the same Expression object as the other operations, but only AND is supported among each dimension, and nesting is supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together.

  • Or (list) --

    Return results that match either Dimension object.

    • (dict) --

      Use Expression to filter by cost or by usage. There are two patterns:

      • Simple dimension values - You can set the dimension name and values for the filters that you plan to use. For example, you can filter for INSTANCE_TYPE==m4.xlarge OR INSTANCE_TYPE==c4.large. The Expression for that looks like this: { "Dimensions": { "Key": "INSTANCE_TYPE", "Values": [ "m4.xlarge", “c4.large” ] } } The list of dimension values are OR'd together to retrieve cost or usage data. You can create Expression and DimensionValues objects using either with* methods or set* methods in multiple lines.

      • Compound dimension values with logical operations - You can use multiple Expression types and the logical operators AND/OR/NOT to create a list of one or more Expression objects. This allows you to filter on more advanced options. For example, you can filter on ((INSTANCE_TYPE == m4.large OR INSTANCE_TYPE == m3.large) OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer). The Expression for that looks like this: { "And": [ {"Or": [ {"Dimensions": { "Key": "INSTANCE_TYPE", "Values": [ "m4.x.large", "c4.large" ] }}, {"Tags": { "Key": "TagName", "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] }

  • And (list) --

    Return results that match both Dimension objects.

    • (dict) --

      Use Expression to filter by cost or by usage. There are two patterns:

      • Simple dimension values - You can set the dimension name and values for the filters that you plan to use. For example, you can filter for INSTANCE_TYPE==m4.xlarge OR INSTANCE_TYPE==c4.large. The Expression for that looks like this: { "Dimensions": { "Key": "INSTANCE_TYPE", "Values": [ "m4.xlarge", “c4.large” ] } } The list of dimension values are OR'd together to retrieve cost or usage data. You can create Expression and DimensionValues objects using either with* methods or set* methods in multiple lines.

      • Compound dimension values with logical operations - You can use multiple Expression types and the logical operators AND/OR/NOT to create a list of one or more Expression objects. This allows you to filter on more advanced options. For example, you can filter on ((INSTANCE_TYPE == m4.large OR INSTANCE_TYPE == m3.large) OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer). The Expression for that looks like this: { "And": [ {"Or": [ {"Dimensions": { "Key": "INSTANCE_TYPE", "Values": [ "m4.x.large", "c4.large" ] }}, {"Tags": { "Key": "TagName", "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] }

  • Not (dict) --

    Return results that don't match a Dimension object.

  • Dimensions (dict) --

    The specific Dimension to use for Expression.

    • Key (string) --

      The names of the metadata types that you can use to filter and group your results. For example, AZ returns a list of Availability Zones.

    • Values (list) --

      The metadata values that you can use to filter and group your results. You can use GetDimensionValues to find specific values.

      Valid values for the SERVICE dimension are Amazon Elastic Compute Cloud - Compute, Amazon Elasticsearch Service, Amazon ElastiCache, Amazon Redshift, and Amazon Relational Database Service.

      • (string) --

  • Tags (dict) --

    The specific Tag to use for Expression.

    • Key (string) --

      The key for the tag.

    • Values (list) --

      The specific value of the tag.

      • (string) --

type NextPageToken:

string

param NextPageToken:

The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.

rtype:

dict

returns:

Response Syntax

{
    'UtilizationsByTime': [
        {
            'TimePeriod': {
                'Start': 'string',
                'End': 'string'
            },
            'Groups': [
                {
                    'Key': 'string',
                    'Value': 'string',
                    'Attributes': {
                        'string': 'string'
                    },
                    'Utilization': {
                        'UtilizationPercentage': 'string',
                        'UtilizationPercentageInUnits': 'string',
                        'PurchasedHours': 'string',
                        'PurchasedUnits': 'string',
                        'TotalActualHours': 'string',
                        'TotalActualUnits': 'string',
                        'UnusedHours': 'string',
                        'UnusedUnits': 'string',
                        'OnDemandCostOfRIHoursUsed': 'string',
                        'NetRISavings': 'string',
                        'TotalPotentialRISavings': 'string',
                        'AmortizedUpfrontFee': 'string',
                        'AmortizedRecurringFee': 'string',
                        'TotalAmortizedFee': 'string'
                    }
                },
            ],
            'Total': {
                'UtilizationPercentage': 'string',
                'UtilizationPercentageInUnits': 'string',
                'PurchasedHours': 'string',
                'PurchasedUnits': 'string',
                'TotalActualHours': 'string',
                'TotalActualUnits': 'string',
                'UnusedHours': 'string',
                'UnusedUnits': 'string',
                'OnDemandCostOfRIHoursUsed': 'string',
                'NetRISavings': 'string',
                'TotalPotentialRISavings': 'string',
                'AmortizedUpfrontFee': 'string',
                'AmortizedRecurringFee': 'string',
                'TotalAmortizedFee': 'string'
            }
        },
    ],
    'Total': {
        'UtilizationPercentage': 'string',
        'UtilizationPercentageInUnits': 'string',
        'PurchasedHours': 'string',
        'PurchasedUnits': 'string',
        'TotalActualHours': 'string',
        'TotalActualUnits': 'string',
        'UnusedHours': 'string',
        'UnusedUnits': 'string',
        'OnDemandCostOfRIHoursUsed': 'string',
        'NetRISavings': 'string',
        'TotalPotentialRISavings': 'string',
        'AmortizedUpfrontFee': 'string',
        'AmortizedRecurringFee': 'string',
        'TotalAmortizedFee': 'string'
    },
    'NextPageToken': 'string'
}

Response Structure

  • (dict) --

    • UtilizationsByTime (list) --

      The amount of time that you used your RIs.

      • (dict) --

        The amount of utilization, in hours.

        • TimePeriod (dict) --

          The period of time that this utilization was used for.

          • Start (string) --

            The beginning of the time period that you want the usage and costs for. The start date is inclusive. For example, if start is 2017-01-01, AWS retrieves cost and usage data starting at 2017-01-01 up to the end date.

          • End (string) --

            The end of the time period that you want the usage and costs for. The end date is exclusive. For example, if end is 2017-05-01, AWS retrieves cost and usage data from the start date up to, but not including, 2017-05-01.

        • Groups (list) --

          The groups that this utilization result uses.

          • (dict) --

            A group of reservations that share a set of attributes.

            • Key (string) --

              The key for a specific reservation attribute.

            • Value (string) --

              The value of a specific reservation attribute.

            • Attributes (dict) --

              The attributes for this group of reservations.

              • (string) --

                • (string) --

            • Utilization (dict) --

              How much you used this group of reservations.

              • UtilizationPercentage (string) --

                The percentage of reservation time that you used.

              • UtilizationPercentageInUnits (string) --

                The percentage of Amazon EC2 reservation time that you used, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

              • PurchasedHours (string) --

                How many reservation hours that you purchased.

              • PurchasedUnits (string) --

                How many Amazon EC2 reservation hours that you purchased, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

              • TotalActualHours (string) --

                The total number of reservation hours that you used.

              • TotalActualUnits (string) --

                The total number of Amazon EC2 reservation hours that you used, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

              • UnusedHours (string) --

                The number of reservation hours that you didn't use.

              • UnusedUnits (string) --

                The number of Amazon EC2 reservation hours that you didn't use, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

              • OnDemandCostOfRIHoursUsed (string) --

                How much your reservation would cost if charged On-Demand rates.

              • NetRISavings (string) --

                How much you saved due to purchasing and utilizing reservation. AWS calculates this by subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed.

              • TotalPotentialRISavings (string) --

                How much you could save if you use your entire reservation.

              • AmortizedUpfrontFee (string) --

                The upfront cost of your reservation, amortized over the reservation period.

              • AmortizedRecurringFee (string) --

                The monthly cost of your reservation, amortized over the reservation period.

              • TotalAmortizedFee (string) --

                The total cost of your reservation, amortized over the reservation period.

        • Total (dict) --

          The total number of reservation hours that were used.

          • UtilizationPercentage (string) --

            The percentage of reservation time that you used.

          • UtilizationPercentageInUnits (string) --

            The percentage of Amazon EC2 reservation time that you used, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

          • PurchasedHours (string) --

            How many reservation hours that you purchased.

          • PurchasedUnits (string) --

            How many Amazon EC2 reservation hours that you purchased, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

          • TotalActualHours (string) --

            The total number of reservation hours that you used.

          • TotalActualUnits (string) --

            The total number of Amazon EC2 reservation hours that you used, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

          • UnusedHours (string) --

            The number of reservation hours that you didn't use.

          • UnusedUnits (string) --

            The number of Amazon EC2 reservation hours that you didn't use, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

          • OnDemandCostOfRIHoursUsed (string) --

            How much your reservation would cost if charged On-Demand rates.

          • NetRISavings (string) --

            How much you saved due to purchasing and utilizing reservation. AWS calculates this by subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed.

          • TotalPotentialRISavings (string) --

            How much you could save if you use your entire reservation.

          • AmortizedUpfrontFee (string) --

            The upfront cost of your reservation, amortized over the reservation period.

          • AmortizedRecurringFee (string) --

            The monthly cost of your reservation, amortized over the reservation period.

          • TotalAmortizedFee (string) --

            The total cost of your reservation, amortized over the reservation period.

    • Total (dict) --

      The total amount of time that you used your RIs.

      • UtilizationPercentage (string) --

        The percentage of reservation time that you used.

      • UtilizationPercentageInUnits (string) --

        The percentage of Amazon EC2 reservation time that you used, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

      • PurchasedHours (string) --

        How many reservation hours that you purchased.

      • PurchasedUnits (string) --

        How many Amazon EC2 reservation hours that you purchased, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

      • TotalActualHours (string) --

        The total number of reservation hours that you used.

      • TotalActualUnits (string) --

        The total number of Amazon EC2 reservation hours that you used, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

      • UnusedHours (string) --

        The number of reservation hours that you didn't use.

      • UnusedUnits (string) --

        The number of Amazon EC2 reservation hours that you didn't use, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

      • OnDemandCostOfRIHoursUsed (string) --

        How much your reservation would cost if charged On-Demand rates.

      • NetRISavings (string) --

        How much you saved due to purchasing and utilizing reservation. AWS calculates this by subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed.

      • TotalPotentialRISavings (string) --

        How much you could save if you use your entire reservation.

      • AmortizedUpfrontFee (string) --

        The upfront cost of your reservation, amortized over the reservation period.

      • AmortizedRecurringFee (string) --

        The monthly cost of your reservation, amortized over the reservation period.

      • TotalAmortizedFee (string) --

        The total cost of your reservation, amortized over the reservation period.

    • NextPageToken (string) --

      The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.