@aws-sdk/client-bcm-pricing-calculator 3.1172.0 → 3.1173.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +75 -1
  3. package/dist-es/BCMPricingCalculator.js +2 -0
  4. package/dist-es/commands/GetUsageLinesEstimatedCostCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +6 -0
  7. package/dist-es/schemas/schemas_0.js +55 -0
  8. package/dist-types/BCMPricingCalculator.d.ts +7 -0
  9. package/dist-types/BCMPricingCalculatorClient.d.ts +3 -2
  10. package/dist-types/commands/BatchCreateBillScenarioCommitmentModificationCommand.d.ts +3 -3
  11. package/dist-types/commands/BatchCreateBillScenarioUsageModificationCommand.d.ts +3 -3
  12. package/dist-types/commands/BatchCreateWorkloadEstimateUsageCommand.d.ts +3 -3
  13. package/dist-types/commands/BatchDeleteBillScenarioCommitmentModificationCommand.d.ts +4 -4
  14. package/dist-types/commands/BatchDeleteBillScenarioUsageModificationCommand.d.ts +4 -4
  15. package/dist-types/commands/BatchDeleteWorkloadEstimateUsageCommand.d.ts +3 -3
  16. package/dist-types/commands/BatchUpdateBillScenarioCommitmentModificationCommand.d.ts +3 -3
  17. package/dist-types/commands/BatchUpdateBillScenarioUsageModificationCommand.d.ts +3 -3
  18. package/dist-types/commands/BatchUpdateWorkloadEstimateUsageCommand.d.ts +2 -2
  19. package/dist-types/commands/CreateBillEstimateCommand.d.ts +3 -3
  20. package/dist-types/commands/CreateBillScenarioCommand.d.ts +2 -2
  21. package/dist-types/commands/CreateWorkloadEstimateCommand.d.ts +2 -2
  22. package/dist-types/commands/DeleteBillEstimateCommand.d.ts +2 -2
  23. package/dist-types/commands/DeleteBillScenarioCommand.d.ts +2 -2
  24. package/dist-types/commands/DeleteWorkloadEstimateCommand.d.ts +1 -1
  25. package/dist-types/commands/GetBillEstimateCommand.d.ts +2 -2
  26. package/dist-types/commands/GetBillScenarioCommand.d.ts +2 -2
  27. package/dist-types/commands/GetPreferencesCommand.d.ts +1 -1
  28. package/dist-types/commands/GetUsageLinesEstimatedCostCommand.d.ts +121 -0
  29. package/dist-types/commands/GetWorkloadEstimateCommand.d.ts +2 -2
  30. package/dist-types/commands/ListBillEstimateCommitmentsCommand.d.ts +2 -2
  31. package/dist-types/commands/ListBillEstimateInputCommitmentModificationsCommand.d.ts +2 -2
  32. package/dist-types/commands/ListBillEstimateInputUsageModificationsCommand.d.ts +2 -2
  33. package/dist-types/commands/ListBillEstimateLineItemsCommand.d.ts +2 -2
  34. package/dist-types/commands/ListBillEstimatesCommand.d.ts +1 -1
  35. package/dist-types/commands/ListBillScenarioCommitmentModificationsCommand.d.ts +2 -2
  36. package/dist-types/commands/ListBillScenarioUsageModificationsCommand.d.ts +2 -2
  37. package/dist-types/commands/ListBillScenariosCommand.d.ts +1 -1
  38. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  39. package/dist-types/commands/ListWorkloadEstimateUsageCommand.d.ts +2 -2
  40. package/dist-types/commands/ListWorkloadEstimatesCommand.d.ts +1 -1
  41. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  42. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  43. package/dist-types/commands/UpdateBillEstimateCommand.d.ts +3 -3
  44. package/dist-types/commands/UpdateBillScenarioCommand.d.ts +3 -3
  45. package/dist-types/commands/UpdatePreferencesCommand.d.ts +1 -1
  46. package/dist-types/commands/UpdateWorkloadEstimateCommand.d.ts +3 -3
  47. package/dist-types/commands/index.d.ts +1 -0
  48. package/dist-types/models/enums.d.ts +14 -0
  49. package/dist-types/models/errors.d.ts +7 -7
  50. package/dist-types/models/models_0.d.ts +189 -20
  51. package/dist-types/schemas/schemas_0.d.ts +7 -0
  52. package/dist-types/ts3.4/BCMPricingCalculator.d.ts +17 -0
  53. package/dist-types/ts3.4/BCMPricingCalculatorClient.d.ts +6 -0
  54. package/dist-types/ts3.4/commands/GetUsageLinesEstimatedCostCommand.d.ts +42 -0
  55. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  56. package/dist-types/ts3.4/models/enums.d.ts +8 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +40 -0
  58. package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -0
  59. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import type { BatchCreateBillScenarioCommitmentModificationErrorCode, BatchCreateBillScenarioUsageModificationErrorCode, BatchCreateWorkloadEstimateUsageCode, BatchDeleteBillScenarioCommitmentModificationErrorCode, BatchDeleteBillScenarioUsageModificationErrorCode, BatchUpdateBillScenarioCommitmentModificationErrorCode, BatchUpdateBillScenarioUsageModificationErrorCode, BillEstimateStatus, BillScenarioStatus, CurrencyCode, GroupSharingPreferenceEnum, ListBillEstimateLineItemsFilterName, ListBillEstimatesFilterName, ListBillScenariosFilterName, ListUsageFilterName, ListWorkloadEstimatesFilterName, MatchOption, PurchaseAgreementType, RateType, WorkloadEstimateCostStatus, WorkloadEstimateRateType, WorkloadEstimateStatus, WorkloadEstimateUpdateUsageErrorCode } from "./enums";
1
+ import type { BatchCreateBillScenarioCommitmentModificationErrorCode, BatchCreateBillScenarioUsageModificationErrorCode, BatchCreateWorkloadEstimateUsageCode, BatchDeleteBillScenarioCommitmentModificationErrorCode, BatchDeleteBillScenarioUsageModificationErrorCode, BatchUpdateBillScenarioCommitmentModificationErrorCode, BatchUpdateBillScenarioUsageModificationErrorCode, BillEstimateStatus, BillScenarioStatus, CurrencyCode, GetUsageLinesEstimatedCostErrorCode, GroupSharingPreferenceEnum, ListBillEstimateLineItemsFilterName, ListBillEstimatesFilterName, ListBillScenariosFilterName, ListUsageFilterName, ListWorkloadEstimatesFilterName, MatchOption, PurchaseAgreementType, RateType, WorkloadEstimateCostStatus, WorkloadEstimateRateType, WorkloadEstimateStatus, WorkloadEstimateUpdateUsageErrorCode } from "./enums";
2
2
  /**
3
3
  * <p> Represents an action to add a Reserved Instance to a bill scenario. </p>
4
4
  * @public
@@ -26,7 +26,7 @@ export interface AddSavingsPlanAction {
26
26
  */
27
27
  savingsPlanOfferingId?: string | undefined;
28
28
  /**
29
- * <p> The hourly commitment, in the same currency of the <code>savingsPlanOfferingId</code>. This is a value between 0.001 and 1 million. You cannot specify more than five digits after the decimal point. </p>
29
+ * <p> The hourly commitment, in the same currency of the <code>savingsPlanOfferingId</code>. This is a value between 0.001 and 1 million. You can't specify more than five digits after the decimal point. </p>
30
30
  * @public
31
31
  */
32
32
  commitment?: number | undefined;
@@ -671,7 +671,7 @@ export interface CreateBillEstimateResponse {
671
671
  */
672
672
  expiresAt?: Date | undefined;
673
673
  /**
674
- * <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
674
+ * <p>The setting for the reserved instance and savings plans group sharing used in this estimate.</p>
675
675
  * @public
676
676
  */
677
677
  groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
@@ -756,7 +756,7 @@ export interface GetBillEstimateResponse {
756
756
  */
757
757
  expiresAt?: Date | undefined;
758
758
  /**
759
- * <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
759
+ * <p>The setting for the reserved instance and savings plans group sharing used in this estimate.</p>
760
760
  * @public
761
761
  */
762
762
  groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
@@ -954,7 +954,7 @@ export interface UpdateBillEstimateResponse {
954
954
  */
955
955
  expiresAt?: Date | undefined;
956
956
  /**
957
- * <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
957
+ * <p>The setting for the reserved instance and savings plans group sharing used in this estimate.</p>
958
958
  * @public
959
959
  */
960
960
  groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
@@ -1077,7 +1077,7 @@ export interface BatchCreateBillScenarioCommitmentModificationResponse {
1077
1077
  */
1078
1078
  items?: BatchCreateBillScenarioCommitmentModificationItem[] | undefined;
1079
1079
  /**
1080
- * <p> Returns the list of errors reason and the commitment item keys that cannot be created in the Bill Scenario. </p>
1080
+ * <p> Returns the list of errors reason and the commitment item keys that can't be created in the Bill Scenario. </p>
1081
1081
  * @public
1082
1082
  */
1083
1083
  errors?: BatchCreateBillScenarioCommitmentModificationError[] | undefined;
@@ -1123,7 +1123,7 @@ export interface BatchDeleteBillScenarioCommitmentModificationError {
1123
1123
  */
1124
1124
  export interface BatchDeleteBillScenarioCommitmentModificationResponse {
1125
1125
  /**
1126
- * <p> Returns the list of errors reason and the commitment item keys that cannot be deleted from the Bill Scenario. </p>
1126
+ * <p> Returns the list of errors reason and the commitment item keys that can't be deleted from the Bill Scenario. </p>
1127
1127
  * @public
1128
1128
  */
1129
1129
  errors?: BatchDeleteBillScenarioCommitmentModificationError[] | undefined;
@@ -1216,7 +1216,7 @@ export interface BatchUpdateBillScenarioCommitmentModificationResponse {
1216
1216
  */
1217
1217
  items?: BillScenarioCommitmentModificationItem[] | undefined;
1218
1218
  /**
1219
- * <p> Returns the list of error reasons and commitment line item IDs that could not be updated for the Bill Scenario. </p>
1219
+ * <p> Returns the list of error reasons and commitment line item IDs that couldn't be updated for the Bill Scenario. </p>
1220
1220
  * @public
1221
1221
  */
1222
1222
  errors?: BatchUpdateBillScenarioCommitmentModificationError[] | undefined;
@@ -1334,7 +1334,7 @@ export interface BatchDeleteBillScenarioUsageModificationError {
1334
1334
  */
1335
1335
  export interface BatchDeleteBillScenarioUsageModificationResponse {
1336
1336
  /**
1337
- * <p> Returns the list of errors reason and the usage item keys that cannot be deleted from the Bill Scenario. </p>
1337
+ * <p> Returns the list of errors reason and the usage item keys that can't be deleted from the Bill Scenario. </p>
1338
1338
  * @public
1339
1339
  */
1340
1340
  errors?: BatchDeleteBillScenarioUsageModificationError[] | undefined;
@@ -1441,7 +1441,7 @@ export interface CreateBillScenarioRequest {
1441
1441
  */
1442
1442
  tags?: Record<string, string> | undefined;
1443
1443
  /**
1444
- * <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
1444
+ * <p>The setting for the reserved instance and savings plans group sharing used in this estimate.</p>
1445
1445
  * @public
1446
1446
  */
1447
1447
  groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
@@ -1491,7 +1491,7 @@ export interface CreateBillScenarioResponse {
1491
1491
  */
1492
1492
  failureMessage?: string | undefined;
1493
1493
  /**
1494
- * <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
1494
+ * <p>The setting for the reserved instance and savings plans group sharing used in this estimate.</p>
1495
1495
  * @public
1496
1496
  */
1497
1497
  groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
@@ -1566,7 +1566,7 @@ export interface GetBillScenarioResponse {
1566
1566
  */
1567
1567
  failureMessage?: string | undefined;
1568
1568
  /**
1569
- * <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
1569
+ * <p>The setting for the reserved instance and savings plans group sharing used in this estimate.</p>
1570
1570
  * @public
1571
1571
  */
1572
1572
  groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
@@ -1713,7 +1713,7 @@ export interface UpdateBillScenarioRequest {
1713
1713
  */
1714
1714
  expiresAt?: Date | undefined;
1715
1715
  /**
1716
- * <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
1716
+ * <p>The setting for the reserved instance and savings plans group sharing used in this estimate.</p>
1717
1717
  * @public
1718
1718
  */
1719
1719
  groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
@@ -1763,7 +1763,7 @@ export interface UpdateBillScenarioResponse {
1763
1763
  */
1764
1764
  failureMessage?: string | undefined;
1765
1765
  /**
1766
- * <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
1766
+ * <p>The setting for the reserved instance and savings plans group sharing used in this estimate.</p>
1767
1767
  * @public
1768
1768
  */
1769
1769
  groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
@@ -1798,6 +1798,175 @@ export interface GetPreferencesResponse {
1798
1798
  */
1799
1799
  standaloneAccountRateTypeSelections?: RateType[] | undefined;
1800
1800
  }
1801
+ /**
1802
+ * <p> Represents a usage line that you want to estimate. </p>
1803
+ * @public
1804
+ */
1805
+ export interface GetUsageLinesEstimatedCostInput {
1806
+ /**
1807
+ * <p> The Amazon Web Services service code of the usage line, for example <code>AmazonEC2</code>. </p>
1808
+ * @public
1809
+ */
1810
+ serviceCode: string | undefined;
1811
+ /**
1812
+ * <p> The usage type of the usage line, for example <code>BoxUsage:t3.micro</code>. </p>
1813
+ * @public
1814
+ */
1815
+ usageType: string | undefined;
1816
+ /**
1817
+ * <p> The operation of the usage line, for example <code>RunInstances</code>. </p>
1818
+ * @public
1819
+ */
1820
+ operation: string | undefined;
1821
+ /**
1822
+ * <p> A unique identifier for the usage line in the request. Use the key to match the usage line with its result in <code>lineItems</code> or <code>errors</code> in the response. </p>
1823
+ * @public
1824
+ */
1825
+ key: string | undefined;
1826
+ /**
1827
+ * <p> The usage amount to price for the usage line in the usage type's pricing unit. This value must be 0 or greater. </p>
1828
+ * @public
1829
+ */
1830
+ amount: number | undefined;
1831
+ }
1832
+ /**
1833
+ * @public
1834
+ */
1835
+ export interface GetUsageLinesEstimatedCostRequest {
1836
+ /**
1837
+ * <p> The usage lines that you want to estimate. You can include up to 500 usage lines in a request. </p>
1838
+ * @public
1839
+ */
1840
+ usage: GetUsageLinesEstimatedCostInput[] | undefined;
1841
+ /**
1842
+ * <p> The type of pricing rates to use to estimate the cost of the usage lines. You can only use a rate type that your Pricing Calculator rate preferences allow. If you use billing transfer as a bill source account, you can only use BEFORE_DISCOUNTS </p>
1843
+ * @public
1844
+ */
1845
+ rateType: RateType | undefined;
1846
+ }
1847
+ /**
1848
+ * <p> Represents a usage line that couldn't be priced. </p>
1849
+ * @public
1850
+ */
1851
+ export interface GetUsageLinesEstimatedCostError {
1852
+ /**
1853
+ * <p> The key of the usage line in the request that couldn't be priced. </p>
1854
+ * @public
1855
+ */
1856
+ key: string | undefined;
1857
+ /**
1858
+ * <p> The Amazon Web Services service code of the usage line that couldn't be priced. </p>
1859
+ * @public
1860
+ */
1861
+ serviceCode: string | undefined;
1862
+ /**
1863
+ * <p> The usage type of the usage line that couldn't be priced. </p>
1864
+ * @public
1865
+ */
1866
+ usageType: string | undefined;
1867
+ /**
1868
+ * <p> The operation of the usage line that couldn't be priced. </p>
1869
+ * @public
1870
+ */
1871
+ operation: string | undefined;
1872
+ /**
1873
+ * <p> The code associated with the error. </p>
1874
+ * @public
1875
+ */
1876
+ errorCode: GetUsageLinesEstimatedCostErrorCode | undefined;
1877
+ /**
1878
+ * <p> The message that describes the error. </p>
1879
+ * @public
1880
+ */
1881
+ errorMessage: string | undefined;
1882
+ }
1883
+ /**
1884
+ * <p> Represents the estimated cost of the usage amount for a usage line. </p>
1885
+ * @public
1886
+ */
1887
+ export interface GetUsageLinesEstimatedCostEstimatedCost {
1888
+ /**
1889
+ * <p> The usage amount that was priced. </p>
1890
+ * @public
1891
+ */
1892
+ usageAmount?: number | undefined;
1893
+ /**
1894
+ * <p> The unit of the usage amount, for example <code>Hrs</code> or <code>GB-Mo</code>. </p>
1895
+ * @public
1896
+ */
1897
+ usageUnit?: string | undefined;
1898
+ /**
1899
+ * <p> The estimated cost for the given usage amount. </p>
1900
+ * @public
1901
+ */
1902
+ cost?: number | undefined;
1903
+ /**
1904
+ * <p> The currency of the estimated cost. </p>
1905
+ * @public
1906
+ */
1907
+ currency?: CurrencyCode | undefined;
1908
+ }
1909
+ /**
1910
+ * <p> Represents the estimated cost of a usage line that was priced. </p>
1911
+ * @public
1912
+ */
1913
+ export interface GetUsageLinesEstimatedCostLineItem {
1914
+ /**
1915
+ * <p> The key of the usage line in the request. </p>
1916
+ * @public
1917
+ */
1918
+ key: string | undefined;
1919
+ /**
1920
+ * <p> The Amazon Web Services service code of the usage line. </p>
1921
+ * @public
1922
+ */
1923
+ serviceCode?: string | undefined;
1924
+ /**
1925
+ * <p> The usage type of the usage line. </p>
1926
+ * @public
1927
+ */
1928
+ usageType?: string | undefined;
1929
+ /**
1930
+ * <p> The operation of the usage line. </p>
1931
+ * @public
1932
+ */
1933
+ operation?: string | undefined;
1934
+ /**
1935
+ * <p> The estimated cost of the usage amount in the request. </p>
1936
+ * @public
1937
+ */
1938
+ estimatedCost?: GetUsageLinesEstimatedCostEstimatedCost | undefined;
1939
+ }
1940
+ /**
1941
+ * @public
1942
+ */
1943
+ export interface GetUsageLinesEstimatedCostResponse {
1944
+ /**
1945
+ * <p> The type of pricing rates used to estimate the cost of the usage lines. </p>
1946
+ * @public
1947
+ */
1948
+ rateType?: RateType | undefined;
1949
+ /**
1950
+ * <p> The sum of the estimated costs of all usage lines that were priced. Usage lines returned in <code>errors</code> aren't included. </p>
1951
+ * @public
1952
+ */
1953
+ totalCost?: number | undefined;
1954
+ /**
1955
+ * <p> The currency of the costs in the response. </p>
1956
+ * @public
1957
+ */
1958
+ currency?: CurrencyCode | undefined;
1959
+ /**
1960
+ * <p> The estimated cost of each usage line that was priced. </p>
1961
+ * @public
1962
+ */
1963
+ lineItems?: GetUsageLinesEstimatedCostLineItem[] | undefined;
1964
+ /**
1965
+ * <p> The usage lines that couldn't be priced, and the reason that each one couldn't be priced. </p>
1966
+ * @public
1967
+ */
1968
+ errors?: GetUsageLinesEstimatedCostError[] | undefined;
1969
+ }
1801
1970
  /**
1802
1971
  * @public
1803
1972
  */
@@ -1913,7 +2082,7 @@ export interface CreateWorkloadEstimateRequest {
1913
2082
  */
1914
2083
  clientToken?: string | undefined;
1915
2084
  /**
1916
- * <p> The type of pricing rates to use for the estimate. </p>
2085
+ * <p> The type of pricing rates for the estimate. You can only use a rate type that your Pricing Calculator rate preferences allow. If you use billing transfer as a bill source account, you can only use BEFORE_DISCOUNTS. </p>
1917
2086
  * @public
1918
2087
  */
1919
2088
  rateType?: WorkloadEstimateRateType | undefined;
@@ -2336,7 +2505,7 @@ export interface BatchDeleteWorkloadEstimateUsageError {
2336
2505
  */
2337
2506
  export interface BatchDeleteWorkloadEstimateUsageResponse {
2338
2507
  /**
2339
- * <p> Returns the list of errors reason and the usage item keys that cannot be deleted from the Workload estimate. </p>
2508
+ * <p> Returns the list of errors reason and the usage item keys that can't be deleted from the Workload estimate. </p>
2340
2509
  * @public
2341
2510
  */
2342
2511
  errors?: BatchDeleteWorkloadEstimateUsageError[] | undefined;
@@ -2937,7 +3106,7 @@ export interface BatchCreateBillScenarioUsageModificationResponse {
2937
3106
  */
2938
3107
  items?: BatchCreateBillScenarioUsageModificationItem[] | undefined;
2939
3108
  /**
2940
- * <p> Returns the list of errors reason and the usage item keys that cannot be created in the Bill Scenario. </p>
3109
+ * <p> Returns the list of errors reason and the usage item keys that can't be created in the Bill Scenario. </p>
2941
3110
  * @public
2942
3111
  */
2943
3112
  errors?: BatchCreateBillScenarioUsageModificationError[] | undefined;
@@ -2972,7 +3141,7 @@ export interface BatchCreateWorkloadEstimateUsageResponse {
2972
3141
  */
2973
3142
  items?: BatchCreateWorkloadEstimateUsageItem[] | undefined;
2974
3143
  /**
2975
- * <p> Returns the list of errors reason and the usage item keys that cannot be created in the Workload estimate. </p>
3144
+ * <p> Returns the list of errors reason and the usage item keys that can't be created in the Workload estimate. </p>
2976
3145
  * @public
2977
3146
  */
2978
3147
  errors?: BatchCreateWorkloadEstimateUsageError[] | undefined;
@@ -2987,7 +3156,7 @@ export interface BatchUpdateBillScenarioUsageModificationResponse {
2987
3156
  */
2988
3157
  items?: BillScenarioUsageModificationItem[] | undefined;
2989
3158
  /**
2990
- * <p> Returns the list of error reasons and usage line item IDs that could not be updated for the Bill Scenario. </p>
3159
+ * <p> Returns the list of error reasons and usage line item IDs that couldn't be updated for the Bill Scenario. </p>
2991
3160
  * @public
2992
3161
  */
2993
3162
  errors?: BatchUpdateBillScenarioUsageModificationError[] | undefined;
@@ -3002,7 +3171,7 @@ export interface BatchUpdateWorkloadEstimateUsageResponse {
3002
3171
  */
3003
3172
  items?: WorkloadEstimateUsageItem[] | undefined;
3004
3173
  /**
3005
- * <p> Returns the list of error reasons and usage line item IDs that could not be updated for the Workload estimate. </p>
3174
+ * <p> Returns the list of error reasons and usage line item IDs that couldn't be updated for the Workload estimate. </p>
3006
3175
  * @public
3007
3176
  */
3008
3177
  errors?: BatchUpdateWorkloadEstimateUsageError[] | undefined;
@@ -86,6 +86,12 @@ export declare var GetBillScenarioRequest$: StaticStructureSchema;
86
86
  export declare var GetBillScenarioResponse$: StaticStructureSchema;
87
87
  export declare var GetPreferencesRequest$: StaticStructureSchema;
88
88
  export declare var GetPreferencesResponse$: StaticStructureSchema;
89
+ export declare var GetUsageLinesEstimatedCostError$: StaticStructureSchema;
90
+ export declare var GetUsageLinesEstimatedCostEstimatedCost$: StaticStructureSchema;
91
+ export declare var GetUsageLinesEstimatedCostInput$: StaticStructureSchema;
92
+ export declare var GetUsageLinesEstimatedCostLineItem$: StaticStructureSchema;
93
+ export declare var GetUsageLinesEstimatedCostRequest$: StaticStructureSchema;
94
+ export declare var GetUsageLinesEstimatedCostResponse$: StaticStructureSchema;
89
95
  export declare var GetWorkloadEstimateRequest$: StaticStructureSchema;
90
96
  export declare var GetWorkloadEstimateResponse$: StaticStructureSchema;
91
97
  export declare var HistoricalUsageEntity$: StaticStructureSchema;
@@ -156,6 +162,7 @@ export declare var DeleteWorkloadEstimate$: StaticOperationSchema;
156
162
  export declare var GetBillEstimate$: StaticOperationSchema;
157
163
  export declare var GetBillScenario$: StaticOperationSchema;
158
164
  export declare var GetPreferences$: StaticOperationSchema;
165
+ export declare var GetUsageLinesEstimatedCost$: StaticOperationSchema;
159
166
  export declare var GetWorkloadEstimate$: StaticOperationSchema;
160
167
  export declare var ListBillEstimateCommitments$: StaticOperationSchema;
161
168
  export declare var ListBillEstimateInputCommitmentModifications$: StaticOperationSchema;
@@ -77,6 +77,10 @@ import {
77
77
  GetPreferencesCommandInput,
78
78
  GetPreferencesCommandOutput,
79
79
  } from "./commands/GetPreferencesCommand";
80
+ import {
81
+ GetUsageLinesEstimatedCostCommandInput,
82
+ GetUsageLinesEstimatedCostCommandOutput,
83
+ } from "./commands/GetUsageLinesEstimatedCostCommand";
80
84
  import {
81
85
  GetWorkloadEstimateCommandInput,
82
86
  GetWorkloadEstimateCommandOutput,
@@ -385,6 +389,19 @@ export interface BCMPricingCalculator {
385
389
  options: BCMPricingCalculatorRequestOptions,
386
390
  cb: (err: any, data?: GetPreferencesCommandOutput) => void,
387
391
  ): void;
392
+ getUsageLinesEstimatedCost(
393
+ args: GetUsageLinesEstimatedCostCommandInput,
394
+ options?: BCMPricingCalculatorRequestOptions,
395
+ ): Promise<GetUsageLinesEstimatedCostCommandOutput>;
396
+ getUsageLinesEstimatedCost(
397
+ args: GetUsageLinesEstimatedCostCommandInput,
398
+ cb: (err: any, data?: GetUsageLinesEstimatedCostCommandOutput) => void,
399
+ ): void;
400
+ getUsageLinesEstimatedCost(
401
+ args: GetUsageLinesEstimatedCostCommandInput,
402
+ options: BCMPricingCalculatorRequestOptions,
403
+ cb: (err: any, data?: GetUsageLinesEstimatedCostCommandOutput) => void,
404
+ ): void;
388
405
  getWorkloadEstimate(
389
406
  args: GetWorkloadEstimateCommandInput,
390
407
  options?: BCMPricingCalculatorRequestOptions,
@@ -105,6 +105,10 @@ import {
105
105
  GetPreferencesCommandInput,
106
106
  GetPreferencesCommandOutput,
107
107
  } from "./commands/GetPreferencesCommand";
108
+ import {
109
+ GetUsageLinesEstimatedCostCommandInput,
110
+ GetUsageLinesEstimatedCostCommandOutput,
111
+ } from "./commands/GetUsageLinesEstimatedCostCommand";
108
112
  import {
109
113
  GetWorkloadEstimateCommandInput,
110
114
  GetWorkloadEstimateCommandOutput,
@@ -200,6 +204,7 @@ export type ServiceInputTypes =
200
204
  | GetBillEstimateCommandInput
201
205
  | GetBillScenarioCommandInput
202
206
  | GetPreferencesCommandInput
207
+ | GetUsageLinesEstimatedCostCommandInput
203
208
  | GetWorkloadEstimateCommandInput
204
209
  | ListBillEstimateCommitmentsCommandInput
205
210
  | ListBillEstimateInputCommitmentModificationsCommandInput
@@ -237,6 +242,7 @@ export type ServiceOutputTypes =
237
242
  | GetBillEstimateCommandOutput
238
243
  | GetBillScenarioCommandOutput
239
244
  | GetPreferencesCommandOutput
245
+ | GetUsageLinesEstimatedCostCommandOutput
240
246
  | GetWorkloadEstimateCommandOutput
241
247
  | ListBillEstimateCommitmentsCommandOutput
242
248
  | ListBillEstimateInputCommitmentModificationsCommandOutput
@@ -0,0 +1,42 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ GetUsageLinesEstimatedCostRequest,
4
+ GetUsageLinesEstimatedCostResponse,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface GetUsageLinesEstimatedCostCommandInput extends GetUsageLinesEstimatedCostRequest {}
8
+ export interface GetUsageLinesEstimatedCostCommandOutput
9
+ extends GetUsageLinesEstimatedCostResponse, __MetadataBearer {}
10
+ declare const GetUsageLinesEstimatedCostCommand_base: {
11
+ new (
12
+ input: GetUsageLinesEstimatedCostCommandInput,
13
+ ): import("@smithy/core/client").CommandImpl<
14
+ GetUsageLinesEstimatedCostCommandInput,
15
+ GetUsageLinesEstimatedCostCommandOutput,
16
+ import("..").BCMPricingCalculatorClientResolvedConfig,
17
+ import("..").ServiceInputTypes,
18
+ import("..").ServiceOutputTypes
19
+ >;
20
+ new (
21
+ input: GetUsageLinesEstimatedCostCommandInput,
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ GetUsageLinesEstimatedCostCommandInput,
24
+ GetUsageLinesEstimatedCostCommandOutput,
25
+ import("..").BCMPricingCalculatorClientResolvedConfig,
26
+ import("..").ServiceInputTypes,
27
+ import("..").ServiceOutputTypes
28
+ >;
29
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
+ };
31
+ export declare class GetUsageLinesEstimatedCostCommand extends GetUsageLinesEstimatedCostCommand_base {
32
+ protected static __types: {
33
+ api: {
34
+ input: GetUsageLinesEstimatedCostRequest;
35
+ output: GetUsageLinesEstimatedCostResponse;
36
+ };
37
+ sdk: {
38
+ input: GetUsageLinesEstimatedCostCommandInput;
39
+ output: GetUsageLinesEstimatedCostCommandOutput;
40
+ };
41
+ };
42
+ }
@@ -16,6 +16,7 @@ export * from "./DeleteWorkloadEstimateCommand";
16
16
  export * from "./GetBillEstimateCommand";
17
17
  export * from "./GetBillScenarioCommand";
18
18
  export * from "./GetPreferencesCommand";
19
+ export * from "./GetUsageLinesEstimatedCostCommand";
19
20
  export * from "./GetWorkloadEstimateCommand";
20
21
  export * from "./ListBillEstimateCommitmentsCommand";
21
22
  export * from "./ListBillEstimateInputCommitmentModificationsCommand";
@@ -133,6 +133,14 @@ export declare const RateType: {
133
133
  readonly BEFORE_DISCOUNTS: "BEFORE_DISCOUNTS";
134
134
  };
135
135
  export type RateType = (typeof RateType)[keyof typeof RateType];
136
+ export declare const GetUsageLinesEstimatedCostErrorCode: {
137
+ readonly BAD_REQUEST: "BAD_REQUEST";
138
+ readonly CONFLICT: "CONFLICT";
139
+ readonly INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR";
140
+ readonly NOT_FOUND: "NOT_FOUND";
141
+ };
142
+ export type GetUsageLinesEstimatedCostErrorCode =
143
+ (typeof GetUsageLinesEstimatedCostErrorCode)[keyof typeof GetUsageLinesEstimatedCostErrorCode];
136
144
  export declare const WorkloadEstimateRateType: {
137
145
  readonly AFTER_DISCOUNTS: "AFTER_DISCOUNTS";
138
146
  readonly AFTER_DISCOUNTS_AND_COMMITMENTS: "AFTER_DISCOUNTS_AND_COMMITMENTS";
@@ -9,6 +9,7 @@ import {
9
9
  BillEstimateStatus,
10
10
  BillScenarioStatus,
11
11
  CurrencyCode,
12
+ GetUsageLinesEstimatedCostErrorCode,
12
13
  GroupSharingPreferenceEnum,
13
14
  ListBillEstimateLineItemsFilterName,
14
15
  ListBillEstimatesFilterName,
@@ -483,6 +484,45 @@ export interface GetPreferencesResponse {
483
484
  memberAccountRateTypeSelections?: RateType[] | undefined;
484
485
  standaloneAccountRateTypeSelections?: RateType[] | undefined;
485
486
  }
487
+ export interface GetUsageLinesEstimatedCostInput {
488
+ serviceCode: string | undefined;
489
+ usageType: string | undefined;
490
+ operation: string | undefined;
491
+ key: string | undefined;
492
+ amount: number | undefined;
493
+ }
494
+ export interface GetUsageLinesEstimatedCostRequest {
495
+ usage: GetUsageLinesEstimatedCostInput[] | undefined;
496
+ rateType: RateType | undefined;
497
+ }
498
+ export interface GetUsageLinesEstimatedCostError {
499
+ key: string | undefined;
500
+ serviceCode: string | undefined;
501
+ usageType: string | undefined;
502
+ operation: string | undefined;
503
+ errorCode: GetUsageLinesEstimatedCostErrorCode | undefined;
504
+ errorMessage: string | undefined;
505
+ }
506
+ export interface GetUsageLinesEstimatedCostEstimatedCost {
507
+ usageAmount?: number | undefined;
508
+ usageUnit?: string | undefined;
509
+ cost?: number | undefined;
510
+ currency?: CurrencyCode | undefined;
511
+ }
512
+ export interface GetUsageLinesEstimatedCostLineItem {
513
+ key: string | undefined;
514
+ serviceCode?: string | undefined;
515
+ usageType?: string | undefined;
516
+ operation?: string | undefined;
517
+ estimatedCost?: GetUsageLinesEstimatedCostEstimatedCost | undefined;
518
+ }
519
+ export interface GetUsageLinesEstimatedCostResponse {
520
+ rateType?: RateType | undefined;
521
+ totalCost?: number | undefined;
522
+ currency?: CurrencyCode | undefined;
523
+ lineItems?: GetUsageLinesEstimatedCostLineItem[] | undefined;
524
+ errors?: GetUsageLinesEstimatedCostError[] | undefined;
525
+ }
486
526
  export interface ListTagsForResourceRequest {
487
527
  arn: string | undefined;
488
528
  }
@@ -86,6 +86,12 @@ export declare var GetBillScenarioRequest$: StaticStructureSchema;
86
86
  export declare var GetBillScenarioResponse$: StaticStructureSchema;
87
87
  export declare var GetPreferencesRequest$: StaticStructureSchema;
88
88
  export declare var GetPreferencesResponse$: StaticStructureSchema;
89
+ export declare var GetUsageLinesEstimatedCostError$: StaticStructureSchema;
90
+ export declare var GetUsageLinesEstimatedCostEstimatedCost$: StaticStructureSchema;
91
+ export declare var GetUsageLinesEstimatedCostInput$: StaticStructureSchema;
92
+ export declare var GetUsageLinesEstimatedCostLineItem$: StaticStructureSchema;
93
+ export declare var GetUsageLinesEstimatedCostRequest$: StaticStructureSchema;
94
+ export declare var GetUsageLinesEstimatedCostResponse$: StaticStructureSchema;
89
95
  export declare var GetWorkloadEstimateRequest$: StaticStructureSchema;
90
96
  export declare var GetWorkloadEstimateResponse$: StaticStructureSchema;
91
97
  export declare var HistoricalUsageEntity$: StaticStructureSchema;
@@ -156,6 +162,7 @@ export declare var DeleteWorkloadEstimate$: StaticOperationSchema;
156
162
  export declare var GetBillEstimate$: StaticOperationSchema;
157
163
  export declare var GetBillScenario$: StaticOperationSchema;
158
164
  export declare var GetPreferences$: StaticOperationSchema;
165
+ export declare var GetUsageLinesEstimatedCost$: StaticOperationSchema;
159
166
  export declare var GetWorkloadEstimate$: StaticOperationSchema;
160
167
  export declare var ListBillEstimateCommitments$: StaticOperationSchema;
161
168
  export declare var ListBillEstimateInputCommitmentModifications$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bcm-pricing-calculator",
3
- "version": "3.1172.0",
3
+ "version": "3.1173.0",
4
4
  "description": "AWS SDK for JavaScript Bcm Pricing Calculator Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bcm-pricing-calculator",
6
6
  "license": "Apache-2.0",