Skip to content

Commit

Permalink
feat(client-cost-explorer): This release supports percentage-based th…
Browse files Browse the repository at this point in the history
…resholds on Cost Anomaly Detection alert subscriptions.
  • Loading branch information
awstools committed Dec 14, 2022
1 parent fe2b86e commit 42b1479
Show file tree
Hide file tree
Showing 6 changed files with 1,114 additions and 445 deletions.
9 changes: 5 additions & 4 deletions clients/client-cost-explorer/src/CostExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ export class CostExplorer extends CostExplorerClient {
}

/**
* <p>Adds a subscription to a cost anomaly detection monitor. You can use each subscription to
* define subscribers with email or SNS notifications. Email subscribers can set a dollar
* threshold and a time frequency for receiving notifications. </p>
* <p>Adds an alert subscription to a cost anomaly detection monitor. You can use each
* subscription to define subscribers with email or SNS notifications. Email subscribers can set
* an absolute or percentage threshold and a time frequency for receiving notifications. </p>
*/
public createAnomalySubscription(
args: CreateAnomalySubscriptionCommandInput,
Expand Down Expand Up @@ -434,7 +434,8 @@ export class CostExplorer extends CostExplorerClient {

/**
* <p>Retrieves all of the cost anomalies detected on your account during the time period that's
* specified by the <code>DateInterval</code> object. </p>
* specified by the <code>DateInterval</code> object. Anomalies are available for up to 90
* days.</p>
*/
public getAnomalies(
args: GetAnomaliesCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export interface CreateAnomalySubscriptionCommandInput extends CreateAnomalySubs
export interface CreateAnomalySubscriptionCommandOutput extends CreateAnomalySubscriptionResponse, __MetadataBearer {}

/**
* <p>Adds a subscription to a cost anomaly detection monitor. You can use each subscription to
* define subscribers with email or SNS notifications. Email subscribers can set a dollar
* threshold and a time frequency for receiving notifications. </p>
* <p>Adds an alert subscription to a cost anomaly detection monitor. You can use each
* subscription to define subscribers with email or SNS notifications. Email subscribers can set
* an absolute or percentage threshold and a time frequency for receiving notifications. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export interface GetAnomaliesCommandOutput extends GetAnomaliesResponse, __Metad

/**
* <p>Retrieves all of the cost anomalies detected on your account during the time period that's
* specified by the <code>DateInterval</code> object. </p>
* specified by the <code>DateInterval</code> object. Anomalies are available for up to 90
* days.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Loading

0 comments on commit 42b1479

Please sign in to comment.