Skip to content

AWS.CostExplorer reference

Source: src/AWS/CostExplorer/AnomalyMonitor.ts

A Cost Explorer anomaly detection monitor. Monitors evaluate your spend for unusual patterns; pair with an AnomalySubscription to receive alerts.

Cost Explorer is a global service — all calls are pinned to us-east-1 regardless of the stack region. Monitors are free and take effect immediately.

Custom monitor scoped by a cost allocation tag

import * as CostExplorer from "alchemy/AWS/CostExplorer";
const monitor = yield* CostExplorer.AnomalyMonitor("TeamSpend", {
monitorType: "CUSTOM",
monitorSpecification: {
Tags: { Key: "CostCenter", Values: ["10000"] },
},
});

Dimensional monitor across all AWS services

const monitor = yield* CostExplorer.AnomalyMonitor("ServiceSpend", {
monitorType: "DIMENSIONAL",
monitorDimension: "SERVICE",
});

Source: src/AWS/CostExplorer/AnomalySubscription.ts

A Cost Explorer anomaly alert subscription. Attaches email or SNS subscribers to one or more AnomalyMonitors with a notification frequency and an impact threshold.

Cost Explorer is a global service — all calls are pinned to us-east-1 regardless of the stack region. Every property is mutable in place.

AnomalySubscription: Creating Anomaly Subscriptions

Section titled “AnomalySubscription: Creating Anomaly Subscriptions”

Daily email digest for anomalies over $100

import * as CostExplorer from "alchemy/AWS/CostExplorer";
const monitor = yield* CostExplorer.AnomalyMonitor("ServiceSpend", {
monitorType: "DIMENSIONAL",
monitorDimension: "SERVICE",
});
const subscription = yield* CostExplorer.AnomalySubscription("Alerts", {
monitorArnList: [monitor.monitorArn],
frequency: "DAILY",
subscribers: [{ type: "EMAIL", address: "team@example.com" }],
thresholdExpression: {
Dimensions: {
Key: "ANOMALY_TOTAL_IMPACT_ABSOLUTE",
MatchOptions: ["GREATER_THAN_OR_EQUAL"],
Values: ["100"],
},
},
});

Immediate SNS notifications

const subscription = yield* CostExplorer.AnomalySubscription("PagerFeed", {
monitorArnList: [monitor.monitorArn],
frequency: "IMMEDIATE",
subscribers: [{ type: "SNS", address: topic.topicArn }],
});

Source: src/AWS/CostExplorer/CostCategory.ts

A Cost Explorer cost category — rule-based groupings that map your AWS costs into named values (e.g. team, environment, project) usable across Cost Explorer, Budgets, and CUR reports.

Cost Explorer is a global service — all calls are pinned to us-east-1 regardless of the stack region. Rules, the default value, and split-charge rules are mutable in place; changing the name replaces the category.

Categorize by linked account name

import * as CostExplorer from "alchemy/AWS/CostExplorer";
const category = yield* CostExplorer.CostCategory("Environment", {
rules: [
{
Value: "production",
Type: "REGULAR",
Rule: {
Dimensions: {
Key: "LINKED_ACCOUNT_NAME",
MatchOptions: ["ENDS_WITH"],
Values: ["-prod"],
},
},
},
],
defaultValue: "other",
});

Categorize by cost allocation tag

const category = yield* CostExplorer.CostCategory("Team", {
rules: [
{
Value: "platform",
Type: "REGULAR",
Rule: {
Tags: { Key: "team", Values: ["platform"], MatchOptions: ["EQUALS"] },
},
},
],
});

Source: src/AWS/CostExplorer/GetAnomalies.ts

Runtime binding for ce:GetAnomalies.

Retrieve the cost anomalies a monitor detected during a date interval (available for up to 90 days). Provide the implementation with Effect.provide(AWS.CostExplorer.GetAnomaliesHttp).

GetAnomalies: Anomaly Detection at Runtime

Section titled “GetAnomalies: Anomaly Detection at Runtime”
// init — bind the operation to the monitor
const getAnomalies = yield* AWS.CostExplorer.GetAnomalies(monitor);
// runtime
const result = yield* getAnomalies({
DateInterval: { StartDate: "2026-06-01" },
});
const anomalies = result.Anomalies;

Source: src/AWS/CostExplorer/GetApproximateUsageRecords.ts

Runtime binding for ce:GetApproximateUsageRecords.

Retrieve estimated counts of hourly (or daily resource-level) usage records per service — useful for sizing Data Exports and CUR deliveries before enabling them. Provide the implementation with Effect.provide(AWS.CostExplorer.GetApproximateUsageRecordsHttp).

GetApproximateUsageRecords: Querying Cost and Usage

Section titled “GetApproximateUsageRecords: Querying Cost and Usage”
// init — account-level binding takes no resource
const getApproximateUsageRecords = yield* AWS.CostExplorer.GetApproximateUsageRecords();
// runtime
const result = yield* getApproximateUsageRecords({
Granularity: "HOURLY",
ApproximationDimension: "SERVICE",
});
const total = result.TotalRecords;

Source: src/AWS/CostExplorer/GetCommitmentPurchaseAnalysis.ts

Runtime binding for ce:GetCommitmentPurchaseAnalysis.

Retrieve a commitment purchase analysis result by its AnalysisId. Provide the implementation with Effect.provide(AWS.CostExplorer.GetCommitmentPurchaseAnalysisHttp).

GetCommitmentPurchaseAnalysis: Commitment Purchase Analysis

Section titled “GetCommitmentPurchaseAnalysis: Commitment Purchase Analysis”
// init — account-level binding takes no resource
const getCommitmentPurchaseAnalysis = yield* AWS.CostExplorer.GetCommitmentPurchaseAnalysis();
// runtime
const result = yield* getCommitmentPurchaseAnalysis({
AnalysisId: analysisId,
});
const status = result.AnalysisStatus;

Source: src/AWS/CostExplorer/GetCostAndUsage.ts

Runtime binding for ce:GetCostAndUsage.

Query cost and usage metrics (UnblendedCost, UsageQuantity, …) filtered and grouped by dimension over a time range — the core Cost Explorer query. Provide the implementation with Effect.provide(AWS.CostExplorer.GetCostAndUsageHttp).

// init — account-level binding takes no resource
const getCostAndUsage = yield* AWS.CostExplorer.GetCostAndUsage();
// runtime
const result = yield* getCostAndUsage({
TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
Granularity: "MONTHLY",
Metrics: ["UnblendedCost"],
});
const total = result.ResultsByTime?.[0]?.Total?.UnblendedCost?.Amount;

Source: src/AWS/CostExplorer/GetCostAndUsageComparisons.ts

Runtime binding for ce:GetCostAndUsageComparisons.

Compare cost and usage between two periods within the last 13 months (up to 38 months with multi-year data enabled). Provide the implementation with Effect.provide(AWS.CostExplorer.GetCostAndUsageComparisonsHttp).

GetCostAndUsageComparisons: Querying Cost and Usage

Section titled “GetCostAndUsageComparisons: Querying Cost and Usage”
// init — account-level binding takes no resource
const getCostAndUsageComparisons = yield* AWS.CostExplorer.GetCostAndUsageComparisons();
// runtime
const result = yield* getCostAndUsageComparisons({
BaselineTimePeriod: { Start: "2026-05-01", End: "2026-06-01" },
ComparisonTimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
MetricForComparison: "UnblendedCost",
});

Source: src/AWS/CostExplorer/GetCostAndUsageWithResources.ts

Runtime binding for ce:GetCostAndUsageWithResources.

Query cost and usage at individual-resource granularity (EC2 instance ids etc.). Requires resource-level data to be enabled in Cost Explorer settings and only covers the trailing 14 days. Provide the implementation with Effect.provide(AWS.CostExplorer.GetCostAndUsageWithResourcesHttp).

GetCostAndUsageWithResources: Querying Cost and Usage

Section titled “GetCostAndUsageWithResources: Querying Cost and Usage”
// init — account-level binding takes no resource
const getCostAndUsageWithResources = yield* AWS.CostExplorer.GetCostAndUsageWithResources();
// runtime
const result = yield* getCostAndUsageWithResources({
TimePeriod: { Start: "2026-07-01", End: "2026-07-14" },
Granularity: "DAILY",
Filter: { Dimensions: { Key: "SERVICE", Values: ["Amazon Elastic Compute Cloud - Compute"] } },
Metrics: ["UnblendedCost"],
});

Source: src/AWS/CostExplorer/GetCostCategories.ts

Runtime binding for ce:GetCostCategories.

Retrieve the cost category names (or the values of one category) present in your cost data — usable in query filter expressions. Provide the implementation with Effect.provide(AWS.CostExplorer.GetCostCategoriesHttp).

GetCostCategories: Exploring Dimensions and Tags

Section titled “GetCostCategories: Exploring Dimensions and Tags”
// init — account-level binding takes no resource
const getCostCategories = yield* AWS.CostExplorer.GetCostCategories();
// runtime
const result = yield* getCostCategories({
TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
});
const names = result.CostCategoryNames;

Source: src/AWS/CostExplorer/GetCostComparisonDrivers.ts

Runtime binding for ce:GetCostComparisonDrivers.

Retrieve the top cost drivers explaining the change between two billing periods — which services, accounts, or usage types moved the bill. Provide the implementation with Effect.provide(AWS.CostExplorer.GetCostComparisonDriversHttp).

GetCostComparisonDrivers: Querying Cost and Usage

Section titled “GetCostComparisonDrivers: Querying Cost and Usage”
// init — account-level binding takes no resource
const getCostComparisonDrivers = yield* AWS.CostExplorer.GetCostComparisonDrivers();
// runtime
const result = yield* getCostComparisonDrivers({
BaselineTimePeriod: { Start: "2026-05-01", End: "2026-06-01" },
ComparisonTimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
MetricForComparison: "UnblendedCost",
});

Source: src/AWS/CostExplorer/GetCostForecast.ts

Runtime binding for ce:GetCostForecast.

Forecast how much AWS predicts you will spend over a future time period, with an optional prediction interval. Provide the implementation with Effect.provide(AWS.CostExplorer.GetCostForecastHttp).

// init — account-level binding takes no resource
const getCostForecast = yield* AWS.CostExplorer.GetCostForecast();
// runtime
const result = yield* getCostForecast({
TimePeriod: { Start: "2026-08-01", End: "2026-09-01" },
Metric: "UNBLENDED_COST",
Granularity: "MONTHLY",
});
const forecast = result.Total?.Amount;

Source: src/AWS/CostExplorer/GetDimensionValues.ts

Runtime binding for ce:GetDimensionValues.

Retrieve the available values for a Cost Explorer dimension (services, linked accounts, regions, usage types, …) — the building blocks of query filter expressions. Provide the implementation with Effect.provide(AWS.CostExplorer.GetDimensionValuesHttp).

GetDimensionValues: Exploring Dimensions and Tags

Section titled “GetDimensionValues: Exploring Dimensions and Tags”
// init — account-level binding takes no resource
const getDimensionValues = yield* AWS.CostExplorer.GetDimensionValues();
// runtime
const result = yield* getDimensionValues({
TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
Dimension: "SERVICE",
});
const services = (result.DimensionValues ?? []).map((v) => v.Value);

Source: src/AWS/CostExplorer/GetReservationCoverage.ts

Runtime binding for ce:GetReservationCoverage.

Retrieve how much of your eligible usage (EC2, RDS, ElastiCache, Redshift, OpenSearch, …) was covered by reservations over a time period. Provide the implementation with Effect.provide(AWS.CostExplorer.GetReservationCoverageHttp).

// init — account-level binding takes no resource
const getReservationCoverage = yield* AWS.CostExplorer.GetReservationCoverage();
// runtime
const result = yield* getReservationCoverage({
TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
});
const coverage = result.Total?.CoverageHours?.CoverageHoursPercentage;

Source: src/AWS/CostExplorer/GetReservationPurchaseRecommendation.ts

Runtime binding for ce:GetReservationPurchaseRecommendation.

Get reserved-instance purchase recommendations for a service based on your historical usage. Provide the implementation with Effect.provide(AWS.CostExplorer.GetReservationPurchaseRecommendationHttp).

GetReservationPurchaseRecommendation: Reservations

Section titled “GetReservationPurchaseRecommendation: Reservations”
// init — account-level binding takes no resource
const getReservationPurchaseRecommendation = yield* AWS.CostExplorer.GetReservationPurchaseRecommendation();
// runtime
const result = yield* getReservationPurchaseRecommendation({
Service: "Amazon Elastic Compute Cloud - Compute",
});
const recommendations = result.Recommendations;

Source: src/AWS/CostExplorer/GetReservationUtilization.ts

Runtime binding for ce:GetReservationUtilization.

Retrieve how fully your reservations were utilized over a time range, optionally grouped by subscription. Provide the implementation with Effect.provide(AWS.CostExplorer.GetReservationUtilizationHttp).

// init — account-level binding takes no resource
const getReservationUtilization = yield* AWS.CostExplorer.GetReservationUtilization();
// runtime
const result = yield* getReservationUtilization({
TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
});
const utilization = result.Total?.UtilizationPercentage;

Source: src/AWS/CostExplorer/GetRightsizingRecommendation.ts

Runtime binding for ce:GetRightsizingRecommendation.

Get recommendations for idle and underutilized EC2 instances — terminate or downsize suggestions with estimated savings. Provide the implementation with Effect.provide(AWS.CostExplorer.GetRightsizingRecommendationHttp).

// init — account-level binding takes no resource
const getRightsizingRecommendation = yield* AWS.CostExplorer.GetRightsizingRecommendation();
// runtime
const result = yield* getRightsizingRecommendation({
Service: "AmazonEC2",
});
const recommendations = result.RightsizingRecommendations;

GetSavingsPlanPurchaseRecommendationDetails

Section titled “GetSavingsPlanPurchaseRecommendationDetails”

Source: src/AWS/CostExplorer/GetSavingsPlanPurchaseRecommendationDetails.ts

Runtime binding for ce:GetSavingsPlanPurchaseRecommendationDetails.

Retrieve the hourly data points behind one Savings Plans recommendation — the cost, coverage, and utilization charts. Provide the implementation with Effect.provide(AWS.CostExplorer.GetSavingsPlanPurchaseRecommendationDetailsHttp).

GetSavingsPlanPurchaseRecommendationDetails: Savings Plans

Section titled “GetSavingsPlanPurchaseRecommendationDetails: Savings Plans”
// init — account-level binding takes no resource
const getSavingsPlanPurchaseRecommendationDetails = yield* AWS.CostExplorer.GetSavingsPlanPurchaseRecommendationDetails();
// runtime
const result = yield* getSavingsPlanPurchaseRecommendationDetails({
RecommendationDetailId: detailId,
});

Source: src/AWS/CostExplorer/GetSavingsPlansCoverage.ts

Runtime binding for ce:GetSavingsPlansCoverage.

Retrieve how much of your eligible spend was covered by Savings Plans over a time period. Provide the implementation with Effect.provide(AWS.CostExplorer.GetSavingsPlansCoverageHttp).

// init — account-level binding takes no resource
const getSavingsPlansCoverage = yield* AWS.CostExplorer.GetSavingsPlansCoverage();
// runtime
const result = yield* getSavingsPlansCoverage({
TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
});

Source: src/AWS/CostExplorer/GetSavingsPlansPurchaseRecommendation.ts

Runtime binding for ce:GetSavingsPlansPurchaseRecommendation.

Retrieve Savings Plans purchase recommendations. Generate a fresh set first with StartSavingsPlansPurchaseRecommendationGeneration. Provide the implementation with Effect.provide(AWS.CostExplorer.GetSavingsPlansPurchaseRecommendationHttp).

GetSavingsPlansPurchaseRecommendation: Savings Plans

Section titled “GetSavingsPlansPurchaseRecommendation: Savings Plans”
// init — account-level binding takes no resource
const getSavingsPlansPurchaseRecommendation = yield* AWS.CostExplorer.GetSavingsPlansPurchaseRecommendation();
// runtime
const result = yield* getSavingsPlansPurchaseRecommendation({
SavingsPlansType: "COMPUTE_SP",
TermInYears: "ONE_YEAR",
PaymentOption: "NO_UPFRONT",
LookbackPeriodInDays: "THIRTY_DAYS",
});

Source: src/AWS/CostExplorer/GetSavingsPlansUtilization.ts

Runtime binding for ce:GetSavingsPlansUtilization.

Retrieve aggregate Savings Plans utilization across a date range with daily or monthly granularity. Provide the implementation with Effect.provide(AWS.CostExplorer.GetSavingsPlansUtilizationHttp).

// init — account-level binding takes no resource
const getSavingsPlansUtilization = yield* AWS.CostExplorer.GetSavingsPlansUtilization();
// runtime
const result = yield* getSavingsPlansUtilization({
TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
});

Source: src/AWS/CostExplorer/GetSavingsPlansUtilizationDetails.ts

Runtime binding for ce:GetSavingsPlansUtilizationDetails.

Retrieve per-Savings-Plan attribute, utilization, and savings detail for a time period. Provide the implementation with Effect.provide(AWS.CostExplorer.GetSavingsPlansUtilizationDetailsHttp).

GetSavingsPlansUtilizationDetails: Savings Plans

Section titled “GetSavingsPlansUtilizationDetails: Savings Plans”
// init — account-level binding takes no resource
const getSavingsPlansUtilizationDetails = yield* AWS.CostExplorer.GetSavingsPlansUtilizationDetails();
// runtime
const result = yield* getSavingsPlansUtilizationDetails({
TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
});

Source: src/AWS/CostExplorer/GetTags.ts

Runtime binding for ce:GetTags.

Retrieve the cost allocation tag keys (or the values of one key) present in your cost data over a time period. Provide the implementation with Effect.provide(AWS.CostExplorer.GetTagsHttp).

// init — account-level binding takes no resource
const getTags = yield* AWS.CostExplorer.GetTags();
// runtime
const result = yield* getTags({
TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
});
const keys = result.Tags;

Source: src/AWS/CostExplorer/GetUsageForecast.ts

Runtime binding for ce:GetUsageForecast.

Forecast usage quantity (e.g. hours, requests) over a future time period for a filtered slice of your usage. Provide the implementation with Effect.provide(AWS.CostExplorer.GetUsageForecastHttp).

// init — account-level binding takes no resource
const getUsageForecast = yield* AWS.CostExplorer.GetUsageForecast();
// runtime
const result = yield* getUsageForecast({
TimePeriod: { Start: "2026-08-01", End: "2026-09-01" },
Metric: "USAGE_QUANTITY",
Granularity: "MONTHLY",
Filter: { Dimensions: { Key: "USAGE_TYPE_GROUP", Values: ["EC2: Running Hours"] } },
});

Source: src/AWS/CostExplorer/ListCommitmentPurchaseAnalyses.ts

Runtime binding for ce:ListCommitmentPurchaseAnalyses.

List the commitment purchase analyses run in your account. Provide the implementation with Effect.provide(AWS.CostExplorer.ListCommitmentPurchaseAnalysesHttp).

ListCommitmentPurchaseAnalyses: Commitment Purchase Analysis

Section titled “ListCommitmentPurchaseAnalyses: Commitment Purchase Analysis”
// init — account-level binding takes no resource
const listCommitmentPurchaseAnalyses = yield* AWS.CostExplorer.ListCommitmentPurchaseAnalyses();
// runtime
const result = yield* listCommitmentPurchaseAnalyses();
const analyses = result.AnalysisSummaryList;

Source: src/AWS/CostExplorer/ListCostAllocationTagBackfillHistory.ts

Runtime binding for ce:ListCostAllocationTagBackfillHistory.

List your historical cost allocation tag backfill requests and their status. Provide the implementation with Effect.provide(AWS.CostExplorer.ListCostAllocationTagBackfillHistoryHttp).

ListCostAllocationTagBackfillHistory: Cost Allocation Tags

Section titled “ListCostAllocationTagBackfillHistory: Cost Allocation Tags”
// init — account-level binding takes no resource
const listCostAllocationTagBackfillHistory = yield* AWS.CostExplorer.ListCostAllocationTagBackfillHistory();
// runtime
const result = yield* listCostAllocationTagBackfillHistory();
const requests = result.BackfillRequests;

Source: src/AWS/CostExplorer/ListCostAllocationTags.ts

Runtime binding for ce:ListCostAllocationTags.

List your cost allocation tags with their activation status — user-defined and AWS-generated. Provide the implementation with Effect.provide(AWS.CostExplorer.ListCostAllocationTagsHttp).

ListCostAllocationTags: Cost Allocation Tags

Section titled “ListCostAllocationTags: Cost Allocation Tags”
// init — account-level binding takes no resource
const listCostAllocationTags = yield* AWS.CostExplorer.ListCostAllocationTags();
// runtime
const result = yield* listCostAllocationTags();
const tags = result.CostAllocationTags;

Source: src/AWS/CostExplorer/ListCostCategoryResourceAssociations.ts

Runtime binding for ce:ListCostCategoryResourceAssociations.

List the resources associated with the bound cost category’s values. The category’s ARN is injected into the request; the IAM grant is on * (the action supports no resource types). Provide the implementation with Effect.provide(AWS.CostExplorer.ListCostCategoryResourceAssociationsHttp).

ListCostCategoryResourceAssociations: Cost Category Associations

Section titled “ListCostCategoryResourceAssociations: Cost Category Associations”
// init — bind the operation to the cost category
const listCostCategoryResourceAssociations = yield* AWS.CostExplorer.ListCostCategoryResourceAssociations(category);
// runtime
const result = yield* listCostCategoryResourceAssociations();
const associations = result.CostCategoryResourceAssociations;

ListSavingsPlansPurchaseRecommendationGeneration

Section titled “ListSavingsPlansPurchaseRecommendationGeneration”

Source: src/AWS/CostExplorer/ListSavingsPlansPurchaseRecommendationGeneration.ts

Runtime binding for ce:ListSavingsPlansPurchaseRecommendationGeneration.

List your Savings Plans recommendation generations from the past 30 days with their status. Provide the implementation with Effect.provide(AWS.CostExplorer.ListSavingsPlansPurchaseRecommendationGenerationHttp).

ListSavingsPlansPurchaseRecommendationGeneration: Savings Plans

Section titled “ListSavingsPlansPurchaseRecommendationGeneration: Savings Plans”
// init — account-level binding takes no resource
const listSavingsPlansPurchaseRecommendationGeneration = yield* AWS.CostExplorer.ListSavingsPlansPurchaseRecommendationGeneration();
// runtime
const result = yield* listSavingsPlansPurchaseRecommendationGeneration();
const generations = result.GenerationSummaryList;

Source: src/AWS/CostExplorer/ProvideAnomalyFeedback.ts

Runtime binding for ce:ProvideAnomalyFeedback.

Record feedback on a detected anomaly (YES / NO / PLANNED_ACTIVITY), improving future detection. Anomalies are addressed by id; per the ce service authorization reference the action supports no resource types, so this is an account-level binding. Provide the implementation with Effect.provide(AWS.CostExplorer.ProvideAnomalyFeedbackHttp).

ProvideAnomalyFeedback: Anomaly Detection at Runtime

Section titled “ProvideAnomalyFeedback: Anomaly Detection at Runtime”
// init — account-level binding takes no resource
const provideAnomalyFeedback = yield* AWS.CostExplorer.ProvideAnomalyFeedback();
// runtime
yield* provideAnomalyFeedback({
AnomalyId: anomalyId,
Feedback: "PLANNED_ACTIVITY",
});

Source: src/AWS/CostExplorer/StartCommitmentPurchaseAnalysis.ts

Runtime binding for ce:StartCommitmentPurchaseAnalysis.

Start an analysis of a planned Savings Plans commitment purchase — projects the cost impact before you buy. Provide the implementation with Effect.provide(AWS.CostExplorer.StartCommitmentPurchaseAnalysisHttp).

StartCommitmentPurchaseAnalysis: Commitment Purchase Analysis

Section titled “StartCommitmentPurchaseAnalysis: Commitment Purchase Analysis”
// init — account-level binding takes no resource
const startCommitmentPurchaseAnalysis = yield* AWS.CostExplorer.StartCommitmentPurchaseAnalysis();
// runtime
const result = yield* startCommitmentPurchaseAnalysis({
CommitmentPurchaseAnalysisConfiguration: configuration,
});
const analysisId = result.AnalysisId;

Source: src/AWS/CostExplorer/StartCostAllocationTagBackfill.ts

Runtime binding for ce:StartCostAllocationTagBackfill.

Backfill cost allocation tag activation status to past billing periods (allowed once every 24 hours). Provide the implementation with Effect.provide(AWS.CostExplorer.StartCostAllocationTagBackfillHttp).

StartCostAllocationTagBackfill: Cost Allocation Tags

Section titled “StartCostAllocationTagBackfill: Cost Allocation Tags”
// init — account-level binding takes no resource
const startCostAllocationTagBackfill = yield* AWS.CostExplorer.StartCostAllocationTagBackfill();
// runtime
const result = yield* startCostAllocationTagBackfill({
BackfillFrom: "2026-01-01T00:00:00Z",
});

StartSavingsPlansPurchaseRecommendationGeneration

Section titled “StartSavingsPlansPurchaseRecommendationGeneration”

Source: src/AWS/CostExplorer/StartSavingsPlansPurchaseRecommendationGeneration.ts

Runtime binding for ce:StartSavingsPlansPurchaseRecommendationGeneration.

Request a fresh Savings Plans recommendation generation based on your latest usage (limited to one generation per day). Provide the implementation with Effect.provide(AWS.CostExplorer.StartSavingsPlansPurchaseRecommendationGenerationHttp).

StartSavingsPlansPurchaseRecommendationGeneration: Savings Plans

Section titled “StartSavingsPlansPurchaseRecommendationGeneration: Savings Plans”
// init — account-level binding takes no resource
const startSavingsPlansPurchaseRecommendationGeneration = yield* AWS.CostExplorer.StartSavingsPlansPurchaseRecommendationGeneration();
// runtime
const result = yield* startSavingsPlansPurchaseRecommendationGeneration();
const generationId = result.RecommendationId;

Source: src/AWS/CostExplorer/UpdateCostAllocationTagsStatus.ts

Runtime binding for ce:UpdateCostAllocationTagsStatus.

Activate or deactivate cost allocation tag keys in bulk (max 20 per call). Activation makes the tag usable in cost queries, categories, and CUR reports. Provide the implementation with Effect.provide(AWS.CostExplorer.UpdateCostAllocationTagsStatusHttp).

UpdateCostAllocationTagsStatus: Cost Allocation Tags

Section titled “UpdateCostAllocationTagsStatus: Cost Allocation Tags”
// init — account-level binding takes no resource
const updateCostAllocationTagsStatus = yield* AWS.CostExplorer.UpdateCostAllocationTagsStatus();
// runtime
yield* updateCostAllocationTagsStatus({
CostAllocationTagsStatus: [{ TagKey: "team", Status: "Active" }],
});