AWS.CostExplorer reference
AnomalyMonitor
Section titled “AnomalyMonitor”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.
AnomalyMonitor: Creating Anomaly Monitors
Section titled “AnomalyMonitor: Creating Anomaly Monitors”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",});AnomalySubscription
Section titled “AnomalySubscription”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 }],});CostCategory
Section titled “CostCategory”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.
CostCategory: Creating Cost Categories
Section titled “CostCategory: Creating Cost Categories”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"] }, }, }, ],});GetAnomalies
Section titled “GetAnomalies”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 monitorconst getAnomalies = yield* AWS.CostExplorer.GetAnomalies(monitor);
// runtimeconst result = yield* getAnomalies({ DateInterval: { StartDate: "2026-06-01" },});const anomalies = result.Anomalies;GetApproximateUsageRecords
Section titled “GetApproximateUsageRecords”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 resourceconst getApproximateUsageRecords = yield* AWS.CostExplorer.GetApproximateUsageRecords();
// runtimeconst result = yield* getApproximateUsageRecords({ Granularity: "HOURLY", ApproximationDimension: "SERVICE",});const total = result.TotalRecords;GetCommitmentPurchaseAnalysis
Section titled “GetCommitmentPurchaseAnalysis”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 resourceconst getCommitmentPurchaseAnalysis = yield* AWS.CostExplorer.GetCommitmentPurchaseAnalysis();
// runtimeconst result = yield* getCommitmentPurchaseAnalysis({ AnalysisId: analysisId,});const status = result.AnalysisStatus;GetCostAndUsage
Section titled “GetCostAndUsage”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).
GetCostAndUsage: Querying Cost and Usage
Section titled “GetCostAndUsage: Querying Cost and Usage”// init — account-level binding takes no resourceconst getCostAndUsage = yield* AWS.CostExplorer.GetCostAndUsage();
// runtimeconst result = yield* getCostAndUsage({ TimePeriod: { Start: "2026-06-01", End: "2026-07-01" }, Granularity: "MONTHLY", Metrics: ["UnblendedCost"],});const total = result.ResultsByTime?.[0]?.Total?.UnblendedCost?.Amount;GetCostAndUsageComparisons
Section titled “GetCostAndUsageComparisons”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 resourceconst getCostAndUsageComparisons = yield* AWS.CostExplorer.GetCostAndUsageComparisons();
// runtimeconst result = yield* getCostAndUsageComparisons({ BaselineTimePeriod: { Start: "2026-05-01", End: "2026-06-01" }, ComparisonTimePeriod: { Start: "2026-06-01", End: "2026-07-01" }, MetricForComparison: "UnblendedCost",});GetCostAndUsageWithResources
Section titled “GetCostAndUsageWithResources”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 resourceconst getCostAndUsageWithResources = yield* AWS.CostExplorer.GetCostAndUsageWithResources();
// runtimeconst 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"],});GetCostCategories
Section titled “GetCostCategories”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 resourceconst getCostCategories = yield* AWS.CostExplorer.GetCostCategories();
// runtimeconst result = yield* getCostCategories({ TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },});const names = result.CostCategoryNames;GetCostComparisonDrivers
Section titled “GetCostComparisonDrivers”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 resourceconst getCostComparisonDrivers = yield* AWS.CostExplorer.GetCostComparisonDrivers();
// runtimeconst result = yield* getCostComparisonDrivers({ BaselineTimePeriod: { Start: "2026-05-01", End: "2026-06-01" }, ComparisonTimePeriod: { Start: "2026-06-01", End: "2026-07-01" }, MetricForComparison: "UnblendedCost",});GetCostForecast
Section titled “GetCostForecast”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).
GetCostForecast: Forecasting
Section titled “GetCostForecast: Forecasting”// init — account-level binding takes no resourceconst getCostForecast = yield* AWS.CostExplorer.GetCostForecast();
// runtimeconst result = yield* getCostForecast({ TimePeriod: { Start: "2026-08-01", End: "2026-09-01" }, Metric: "UNBLENDED_COST", Granularity: "MONTHLY",});const forecast = result.Total?.Amount;GetDimensionValues
Section titled “GetDimensionValues”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 resourceconst getDimensionValues = yield* AWS.CostExplorer.GetDimensionValues();
// runtimeconst result = yield* getDimensionValues({ TimePeriod: { Start: "2026-06-01", End: "2026-07-01" }, Dimension: "SERVICE",});const services = (result.DimensionValues ?? []).map((v) => v.Value);GetReservationCoverage
Section titled “GetReservationCoverage”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).
GetReservationCoverage: Reservations
Section titled “GetReservationCoverage: Reservations”// init — account-level binding takes no resourceconst getReservationCoverage = yield* AWS.CostExplorer.GetReservationCoverage();
// runtimeconst result = yield* getReservationCoverage({ TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },});const coverage = result.Total?.CoverageHours?.CoverageHoursPercentage;GetReservationPurchaseRecommendation
Section titled “GetReservationPurchaseRecommendation”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 resourceconst getReservationPurchaseRecommendation = yield* AWS.CostExplorer.GetReservationPurchaseRecommendation();
// runtimeconst result = yield* getReservationPurchaseRecommendation({ Service: "Amazon Elastic Compute Cloud - Compute",});const recommendations = result.Recommendations;GetReservationUtilization
Section titled “GetReservationUtilization”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).
GetReservationUtilization: Reservations
Section titled “GetReservationUtilization: Reservations”// init — account-level binding takes no resourceconst getReservationUtilization = yield* AWS.CostExplorer.GetReservationUtilization();
// runtimeconst result = yield* getReservationUtilization({ TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },});const utilization = result.Total?.UtilizationPercentage;GetRightsizingRecommendation
Section titled “GetRightsizingRecommendation”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).
GetRightsizingRecommendation: Rightsizing
Section titled “GetRightsizingRecommendation: Rightsizing”// init — account-level binding takes no resourceconst getRightsizingRecommendation = yield* AWS.CostExplorer.GetRightsizingRecommendation();
// runtimeconst 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 resourceconst getSavingsPlanPurchaseRecommendationDetails = yield* AWS.CostExplorer.GetSavingsPlanPurchaseRecommendationDetails();
// runtimeconst result = yield* getSavingsPlanPurchaseRecommendationDetails({ RecommendationDetailId: detailId,});GetSavingsPlansCoverage
Section titled “GetSavingsPlansCoverage”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).
GetSavingsPlansCoverage: Savings Plans
Section titled “GetSavingsPlansCoverage: Savings Plans”// init — account-level binding takes no resourceconst getSavingsPlansCoverage = yield* AWS.CostExplorer.GetSavingsPlansCoverage();
// runtimeconst result = yield* getSavingsPlansCoverage({ TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },});GetSavingsPlansPurchaseRecommendation
Section titled “GetSavingsPlansPurchaseRecommendation”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 resourceconst getSavingsPlansPurchaseRecommendation = yield* AWS.CostExplorer.GetSavingsPlansPurchaseRecommendation();
// runtimeconst result = yield* getSavingsPlansPurchaseRecommendation({ SavingsPlansType: "COMPUTE_SP", TermInYears: "ONE_YEAR", PaymentOption: "NO_UPFRONT", LookbackPeriodInDays: "THIRTY_DAYS",});GetSavingsPlansUtilization
Section titled “GetSavingsPlansUtilization”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).
GetSavingsPlansUtilization: Savings Plans
Section titled “GetSavingsPlansUtilization: Savings Plans”// init — account-level binding takes no resourceconst getSavingsPlansUtilization = yield* AWS.CostExplorer.GetSavingsPlansUtilization();
// runtimeconst result = yield* getSavingsPlansUtilization({ TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },});GetSavingsPlansUtilizationDetails
Section titled “GetSavingsPlansUtilizationDetails”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 resourceconst getSavingsPlansUtilizationDetails = yield* AWS.CostExplorer.GetSavingsPlansUtilizationDetails();
// runtimeconst result = yield* getSavingsPlansUtilizationDetails({ TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },});GetTags
Section titled “GetTags”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).
GetTags: Exploring Dimensions and Tags
Section titled “GetTags: Exploring Dimensions and Tags”// init — account-level binding takes no resourceconst getTags = yield* AWS.CostExplorer.GetTags();
// runtimeconst result = yield* getTags({ TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },});const keys = result.Tags;GetUsageForecast
Section titled “GetUsageForecast”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).
GetUsageForecast: Forecasting
Section titled “GetUsageForecast: Forecasting”// init — account-level binding takes no resourceconst getUsageForecast = yield* AWS.CostExplorer.GetUsageForecast();
// runtimeconst 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"] } },});ListCommitmentPurchaseAnalyses
Section titled “ListCommitmentPurchaseAnalyses”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 resourceconst listCommitmentPurchaseAnalyses = yield* AWS.CostExplorer.ListCommitmentPurchaseAnalyses();
// runtimeconst result = yield* listCommitmentPurchaseAnalyses();const analyses = result.AnalysisSummaryList;ListCostAllocationTagBackfillHistory
Section titled “ListCostAllocationTagBackfillHistory”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 resourceconst listCostAllocationTagBackfillHistory = yield* AWS.CostExplorer.ListCostAllocationTagBackfillHistory();
// runtimeconst result = yield* listCostAllocationTagBackfillHistory();const requests = result.BackfillRequests;ListCostAllocationTags
Section titled “ListCostAllocationTags”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 resourceconst listCostAllocationTags = yield* AWS.CostExplorer.ListCostAllocationTags();
// runtimeconst result = yield* listCostAllocationTags();const tags = result.CostAllocationTags;ListCostCategoryResourceAssociations
Section titled “ListCostCategoryResourceAssociations”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 categoryconst listCostCategoryResourceAssociations = yield* AWS.CostExplorer.ListCostCategoryResourceAssociations(category);
// runtimeconst 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 resourceconst listSavingsPlansPurchaseRecommendationGeneration = yield* AWS.CostExplorer.ListSavingsPlansPurchaseRecommendationGeneration();
// runtimeconst result = yield* listSavingsPlansPurchaseRecommendationGeneration();const generations = result.GenerationSummaryList;ProvideAnomalyFeedback
Section titled “ProvideAnomalyFeedback”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 resourceconst provideAnomalyFeedback = yield* AWS.CostExplorer.ProvideAnomalyFeedback();
// runtimeyield* provideAnomalyFeedback({ AnomalyId: anomalyId, Feedback: "PLANNED_ACTIVITY",});StartCommitmentPurchaseAnalysis
Section titled “StartCommitmentPurchaseAnalysis”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 resourceconst startCommitmentPurchaseAnalysis = yield* AWS.CostExplorer.StartCommitmentPurchaseAnalysis();
// runtimeconst result = yield* startCommitmentPurchaseAnalysis({ CommitmentPurchaseAnalysisConfiguration: configuration,});const analysisId = result.AnalysisId;StartCostAllocationTagBackfill
Section titled “StartCostAllocationTagBackfill”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 resourceconst startCostAllocationTagBackfill = yield* AWS.CostExplorer.StartCostAllocationTagBackfill();
// runtimeconst 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 resourceconst startSavingsPlansPurchaseRecommendationGeneration = yield* AWS.CostExplorer.StartSavingsPlansPurchaseRecommendationGeneration();
// runtimeconst result = yield* startSavingsPlansPurchaseRecommendationGeneration();const generationId = result.RecommendationId;UpdateCostAllocationTagsStatus
Section titled “UpdateCostAllocationTagsStatus”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 resourceconst updateCostAllocationTagsStatus = yield* AWS.CostExplorer.UpdateCostAllocationTagsStatus();
// runtimeyield* updateCostAllocationTagsStatus({ CostAllocationTagsStatus: [{ TagKey: "team", Status: "Active" }],});