[][src]Struct rusoto_ce::GetReservationCoverageRequest

pub struct GetReservationCoverageRequest {
    pub filter: Option<Expression>,
    pub granularity: Option<String>,
    pub group_by: Option<Vec<GroupDefinition>>,
    pub metrics: Option<Vec<String>>,
    pub next_page_token: Option<String>,
    pub time_period: DateInterval,
}

You can use the following request parameters to query for how much of your instance usage a reservation covered.

Fields

filter: Option<Expression>

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.

Cost category is also supported.

granularity: Option<String>

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.

group_by: Option<Vec<GroupDefinition>>

You can group the data by the following attributes:

  • AZ

  • CACHEENGINE

  • DATABASEENGINE

  • DEPLOYMENTOPTION

  • INSTANCETYPE

  • LINKEDACCOUNT

  • OPERATINGSYSTEM

  • PLATFORM

  • REGION

  • TENANCY

metrics: Option<Vec<String>>

The measurement that you want your reservation coverage reported in.

Valid values are Hour, Unit, and Cost. You can use multiple values in a request.

next_page_token: Option<String>

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.

time_period: DateInterval

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.

Trait Implementations

impl Clone for GetReservationCoverageRequest[src]

impl Debug for GetReservationCoverageRequest[src]

impl Default for GetReservationCoverageRequest[src]

impl PartialEq<GetReservationCoverageRequest> for GetReservationCoverageRequest[src]

impl Serialize for GetReservationCoverageRequest[src]

impl StructuralPartialEq for GetReservationCoverageRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.