Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as mod from "https://aws-api.deno.dev/v0.3/services/costexplorer.ts?docs=full";

§Classes

CostExplorer

§Interfaces

Anomaly

An unusual cost pattern. This consists of the detailed metadata and the current status of the anomaly object.

AnomalyDateInterval

The time period for an anomaly.

AnomalyMonitor

This object continuously inspects your account's cost data for anomalies. It's based on MonitorType and MonitorSpecification. The content consists of detailed metadata and the current status of the monitor object.

AnomalyScore

Quantifies the anomaly. The higher score means that it's more anomalous.

AnomalySubscription

The association between a monitor, threshold, and list of subscribers used to deliver notifications about anomalies detected by a monitor that exceeds a threshold. The content consists of the detailed metadata and the current status of the AnomalySubscription object.

CostCategory

The structure of Cost Categories. This includes detailed metadata and the set of rules for the CostCategory object.

CostCategoryInheritedValueDimension

When creating or updating a cost category, you can define the CostCategoryRule rule type as INHERITED_VALUE. This rule type adds the flexibility of defining a rule that dynamically inherits the cost category value from the dimension value defined by CostCategoryInheritedValueDimension. For example, if you want to dynamically group costs that are based on the value of a specific tag key, first choose an inherited value rule type, then choose the tag dimension and specify the tag key to use.

CostCategoryProcessingStatus

The list of processing statuses for Cost Management products for a specific cost category.

CostCategoryReference

A reference to a Cost Category containing only enough information to identify the Cost Category.

CostCategoryRule

Rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that Cost Category value.

CostCategorySplitChargeRule

Use the split charge rule to split the cost of one Cost Category value across several other target values.

CostCategorySplitChargeRuleParameter

The parameters for a split charge method.

CostCategoryValues

The Cost Categories values used for filtering the costs.

Coverage

The amount of instance usage that a reservation covered.

CoverageByTime

Reservation coverage for a specified period, in hours.

CoverageCost

How much it costs to run an instance.

CoverageHours

How long a running instance either used a reservation or was On-Demand.

CoverageNormalizedUnits

The amount of instance usage, in normalized units. You can use normalized units to see your EC2 usage for multiple sizes of instances in a uniform way. For example, suppose that you run an xlarge instance and a 2xlarge instance. If you run both instances for the same amount of time, the 2xlarge instance uses twice as much of your reservation as the xlarge instance, even though both instances show only one instance-hour. When you use normalized units instead of instance-hours, the xlarge instance used 8 normalized units, and the 2xlarge instance used 16 normalized units.

CreateAnomalyMonitorRequest
CreateAnomalyMonitorResponse
CreateAnomalySubscriptionRequest
CreateAnomalySubscriptionResponse
CreateCostCategoryDefinitionRequest
CreateCostCategoryDefinitionResponse
CurrentInstance

Context about the current instance.

DateInterval

The time period of the request.

DeleteAnomalyMonitorRequest
DeleteAnomalySubscriptionRequest
DeleteCostCategoryDefinitionRequest
DeleteCostCategoryDefinitionResponse
DescribeCostCategoryDefinitionRequest
DescribeCostCategoryDefinitionResponse
DimensionValues

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

DimensionValuesWithAttributes

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

DiskResourceUtilization

The field that contains a list of disk (local storage) metrics that are associated with the current instance.

EBSResourceUtilization

The EBS field that contains a list of EBS metrics that are associated with the current instance.

EC2InstanceDetails

Details about the Amazon EC2 instances that Amazon Web Services recommends that you purchase.

EC2ResourceDetails

Details on the Amazon EC2 Resource.

EC2ResourceUtilization

Utilization metrics of the instance.

EC2Specification

The Amazon EC2 hardware specifications that you want Amazon Web Services to provide recommendations for.

ElastiCacheInstanceDetails

Details about the Amazon ElastiCache instances that Amazon Web Services recommends that you purchase.

ESInstanceDetails

Details about the Amazon OpenSearch Service instances that Amazon Web Services recommends that you purchase.

Expression

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

ForecastResult

The forecast that's created for your query.

GetAnomaliesRequest
GetAnomaliesResponse
GetAnomalyMonitorsRequest
GetAnomalyMonitorsResponse
GetAnomalySubscriptionsRequest
GetAnomalySubscriptionsResponse
GetCostAndUsageRequest
GetCostAndUsageResponse
GetCostAndUsageWithResourcesRequest
GetCostAndUsageWithResourcesResponse
GetCostCategoriesRequest
GetCostCategoriesResponse
GetCostForecastRequest
GetCostForecastResponse
GetDimensionValuesRequest
GetDimensionValuesResponse
GetReservationCoverageRequest

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

GetReservationCoverageResponse
GetReservationPurchaseRecommendationRequest
GetReservationPurchaseRecommendationResponse
GetReservationUtilizationRequest
GetReservationUtilizationResponse
GetRightsizingRecommendationRequest
GetRightsizingRecommendationResponse
GetSavingsPlansCoverageRequest
GetSavingsPlansCoverageResponse
GetSavingsPlansPurchaseRecommendationRequest
GetSavingsPlansPurchaseRecommendationResponse
GetSavingsPlansUtilizationDetailsRequest
GetSavingsPlansUtilizationDetailsResponse
GetSavingsPlansUtilizationRequest
GetSavingsPlansUtilizationResponse
GetTagsRequest
GetTagsResponse
GetUsageForecastRequest
GetUsageForecastResponse
Group

One level of grouped data in the results.

GroupDefinition

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

Impact

The dollar value of the anomaly.

InstanceDetails

Details about the instances that Amazon Web Services recommends that you purchase.

ListCostCategoryDefinitionsRequest
ListCostCategoryDefinitionsResponse
MetricValue

The aggregated value for a metric.

ModifyRecommendationDetail

Details on the modification recommendation.

NetworkResourceUtilization

The network field that contains a list of network metrics that are associated with the current instance.

ProvideAnomalyFeedbackRequest
ProvideAnomalyFeedbackResponse
RDSInstanceDetails

Details about the Amazon RDS instances that Amazon Web Services recommends that you purchase.

RedshiftInstanceDetails

Details about the Amazon Redshift instances that Amazon Web Services recommends that you purchase.

ReservationAggregates

The aggregated numbers for your reservation usage.

ReservationCoverageGroup

A group of reservations that share a set of attributes.

ReservationPurchaseRecommendation

A specific reservation that Amazon Web Services recommends for purchase.

ReservationPurchaseRecommendationDetail

Details about your recommended reservation purchase.

ReservationPurchaseRecommendationMetadata

Information about this specific recommendation, such as the timestamp for when Amazon Web Services made a specific recommendation.

ReservationPurchaseRecommendationSummary

A summary about this recommendation, such as the currency code, the amount that Amazon Web Services estimates that you could save, and the total amount of reservation to purchase.

ReservationUtilizationGroup

A group of reservations that share a set of attributes.

ResourceDetails

Details on the resource.

ResourceUtilization

Resource utilization of current resource.

ResultByTime

The result that's associated with a time period.

RightsizingRecommendation

Recommendations to rightsize resources.

RightsizingRecommendationConfiguration

You can use RightsizingRecommendationConfiguration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.

RightsizingRecommendationMetadata

Metadata for this recommendation set.

RightsizingRecommendationSummary

The summary of rightsizing recommendations

RootCause

The combination of Amazon Web Services service, linked account, Region, and usage type where a cost anomaly is observed.

SavingsPlansAmortizedCommitment

The amortized amount of Savings Plans purchased in a specific account during a specific time interval.

SavingsPlansCoverage

The amount of Savings Plans eligible usage that is covered by Savings Plans. All calculations consider the On-Demand equivalent of your Savings Plans usage.

SavingsPlansCoverageData

Specific coverage percentage, On-Demand costs, and spend covered by Savings Plans, and total Savings Plans costs for an account.

SavingsPlansDetails

The attribute details on a specific Savings Plan.

SavingsPlansPurchaseRecommendation

Contains your request parameters, Savings Plan Recommendations Summary, and Details.

SavingsPlansPurchaseRecommendationDetail

Details for your recommended Savings Plans.

SavingsPlansPurchaseRecommendationMetadata

Metadata about your Savings Plans Purchase Recommendations.

SavingsPlansPurchaseRecommendationSummary

Summary metrics for your Savings Plans Purchase Recommendations.

SavingsPlansSavings

The amount of savings that you're accumulating, against the public On-Demand rate of the usage accrued in an account.

SavingsPlansUtilization

The measurement of how well you're using your existing Savings Plans.

SavingsPlansUtilizationAggregates

The aggregated utilization metrics for your Savings Plans usage.

SavingsPlansUtilizationByTime

The amount of Savings Plans utilization, in hours.

SavingsPlansUtilizationDetail

A single daily or monthly Savings Plans utilization rate, and details for your account. A management account in an organization have access to member accounts. You can use GetDimensionValues to determine the possible dimension values.

ServiceSpecification

Hardware specifications for the service that you want recommendations for.

SortDefinition

The details of how to sort the data.

Subscriber

The recipient of AnomalySubscription notifications.

TagValues

The values that are available for a tag.

TargetInstance

Details on recommended instance.

TerminateRecommendationDetail

Details on termination recommendation.

TotalImpactFilter

Filters cost anomalies based on the total impact.

UpdateAnomalyMonitorRequest
UpdateAnomalyMonitorResponse
UpdateAnomalySubscriptionRequest
UpdateAnomalySubscriptionResponse
UpdateCostCategoryDefinitionRequest
UpdateCostCategoryDefinitionResponse
UtilizationByTime

The amount of utilization, in hours.

§Type Aliases

AccountScope
AnomalyFeedbackType
AnomalySubscriptionFrequency
Context
CostCategoryInheritedValueDimensionName
CostCategoryRuleType
CostCategoryRuleVersion

The rule schema version in this particular Cost Category.

CostCategorySplitChargeMethod
CostCategorySplitChargeRuleParameterType
CostCategoryStatus
CostCategoryStatusComponent
Dimension
FindingReasonCode
Granularity
GroupDefinitionType
LookbackPeriodInDays
MatchOption
Metric
MonitorDimension
MonitorType
NumericOperator
OfferingClass
PaymentOption
PlatformDifference
RecommendationTarget
RightsizingType
SavingsPlansDataType
SortOrder
SubscriberStatus
SubscriberType
SupportedSavingsPlansType
TermInYears