From 0ab4d32566c14b6a994f484d1418bed368525adb Mon Sep 17 00:00:00 2001 From: Brenda Sukh Date: Thu, 25 Feb 2021 10:05:44 -0500 Subject: [PATCH] Add routing to params Signed-off-by: Brenda Sukh --- plugins/cost-insights/contrib/aws-cost-explorer-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/cost-insights/contrib/aws-cost-explorer-api.md b/plugins/cost-insights/contrib/aws-cost-explorer-api.md index 2181fb1d52..5b5e6d32b6 100644 --- a/plugins/cost-insights/contrib/aws-cost-explorer-api.md +++ b/plugins/cost-insights/contrib/aws-cost-explorer-api.md @@ -51,7 +51,7 @@ const client = new CostExplorerClient({ }); ``` -2. Initiate a command with the relevant input params. The SDK provides a variety of commands, but you can access most cost data using the [GetCostAndUsageCommand](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_GetCostAndUsage.html) command. You can find more information on the required input params for each command [here](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Operations_AWS_Cost_Explorer_Service.html). +2. Initiate a command with the relevant input params. The SDK provides a variety of commands, but you can access most cost data using the [GetCostAndUsageCommand](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_GetCostAndUsage.html) commands with the relevant [parameters](#GetCostAndUsageCommand-Parameters). ```ts const command = new GetCostAndUsageCommand(params); @@ -133,7 +133,7 @@ You can get grouped daily costs from the API by using the `GetCostAndUsageComman Sample command: ```ts -new GetCostAndUsageCommand({ +const command = new GetCostAndUsageCommand({ TimePeriod: { Start: '2020-12-01', End: '2021-01-02' }, Metrics: ['Unblended Cost'], Filter: {