@aws-sdk/client-savingsplans 3.370.0 → 3.377.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const y = "required", z = "type", A = "fn", B = "argv", C = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = "getAttr", g = { [y]: false, [z]: "String" }, h = { [y]: true, "default": false, [z]: "Boolean" }, i = { [C]: "Region" }, j = { [C]: "Endpoint" }, k = {}, l = { [C]: a }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "savingsplans", "signingRegion": "us-east-1" }] }, n = { [c]: "FIPS and DualStack are enabled, but this partition does not support one or both", [z]: c }, o = { [c]: "FIPS is enabled but this partition does not support FIPS", [z]: c }, p = { [c]: "DualStack is enabled but this partition does not support DualStack", [z]: c }, q = { "url": "https://savingsplans.amazonaws.com", "properties": m, "headers": {} }, r = [j], s = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseFIPS" }, true] }], t = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseDualStack" }, true] }], u = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseFIPS" }, true] }, { [A]: "booleanEquals", [B]: [{ [C]: "UseDualStack" }, true] }], v = [{ [A]: "booleanEquals", [B]: [true, { [A]: f, [B]: [l, "supportsFIPS"] }] }, { [A]: "booleanEquals", [B]: [true, { [A]: f, [B]: [l, "supportsDualStack"] }] }], w = [{ [A]: "booleanEquals", [B]: [true, { [A]: f, [B]: [l, "supportsFIPS"] }] }], x = [{ [A]: "booleanEquals", [B]: [true, { [A]: f, [B]: [l, "supportsDualStack"] }] }];
6
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [A]: "aws.partition", [B]: [i], assign: a }], [z]: b, rules: [{ conditions: [{ [A]: "isSet", [B]: r }, { [A]: "parseURL", [B]: r, assign: "url" }], [z]: b, rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [z]: c }, { [z]: b, rules: [{ conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [z]: c }, { endpoint: { url: j, properties: k, headers: k }, [z]: d }] }] }, { conditions: [{ [A]: e, [B]: [{ [A]: f, [B]: [l, "name"] }, "aws"] }], [z]: b, rules: [{ conditions: u, [z]: b, rules: [{ conditions: v, [z]: b, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.api.aws", properties: m, headers: k }, [z]: d }] }, n] }, { conditions: s, [z]: b, rules: [{ conditions: w, [z]: b, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.amazonaws.com", properties: m, headers: k }, [z]: d }] }, o] }, { conditions: t, [z]: b, rules: [{ conditions: x, [z]: b, rules: [{ endpoint: { url: "https://savingsplans.{Region}.api.aws", properties: m, headers: k }, [z]: d }] }, p] }, { endpoint: q, [z]: d }] }, { conditions: u, [z]: b, rules: [{ conditions: v, [z]: b, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, [z]: d }] }, n] }, { conditions: s, [z]: b, rules: [{ conditions: w, [z]: b, rules: [{ [z]: b, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, [z]: d }] }] }, o] }, { conditions: t, [z]: b, rules: [{ conditions: x, [z]: b, rules: [{ endpoint: { url: "https://savingsplans.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, [z]: d }] }, p] }, { [z]: b, rules: [{ conditions: [{ [A]: e, [B]: [i, "aws-global"] }], endpoint: q, [z]: d }, { endpoint: { url: "https://savingsplans.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, [z]: d }] }] }] };
4
+ const w = "required", x = "fn", y = "argv", z = "ref";
5
+ const a = false, b = "isSet", c = "tree", d = "booleanEquals", e = "error", f = "endpoint", g = "PartitionResult", h = "getAttr", i = { [w]: false, "type": "String" }, j = { [w]: true, "default": false, "type": "Boolean" }, k = { [z]: "Endpoint" }, l = { [x]: d, [y]: [{ [z]: "UseFIPS" }, true] }, m = { [z]: "UseFIPS" }, n = { [x]: d, [y]: [{ [z]: "UseDualStack" }, true] }, o = { [z]: "UseDualStack" }, p = {}, q = { [z]: g }, r = { [x]: d, [y]: [true, { [x]: h, [y]: [q, "supportsFIPS"] }] }, s = { [x]: d, [y]: [true, { [x]: h, [y]: [q, "supportsDualStack"] }] }, t = [l], u = [n], v = [{ [z]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [x]: b, [y]: [k] }], type: c, rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: e }, { type: c, rules: [{ conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: e }, { endpoint: { url: k, properties: p, headers: p }, type: f }] }] }, { type: c, rules: [{ conditions: [{ [x]: b, [y]: v }], type: c, rules: [{ conditions: [{ [x]: "aws.partition", [y]: v, assign: g }], type: c, rules: [{ conditions: [{ [x]: "stringEquals", [y]: [{ [x]: h, [y]: [q, "name"] }, "aws"] }, { [x]: d, [y]: [m, a] }, { [x]: d, [y]: [o, a] }], endpoint: { url: "https://savingsplans.amazonaws.com", properties: { authSchemes: [{ name: "sigv4", signingName: "savingsplans", signingRegion: "us-east-1" }] }, headers: p }, type: f }, { conditions: [l, n], type: c, rules: [{ conditions: [r, s], type: c, rules: [{ type: c, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: e }] }, { conditions: t, type: c, rules: [{ conditions: [r], type: c, rules: [{ type: c, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: f }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: e }] }, { conditions: u, type: c, rules: [{ conditions: [s], type: c, rules: [{ type: c, rules: [{ endpoint: { url: "https://savingsplans.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: e }] }, { type: c, rules: [{ endpoint: { url: "https://savingsplans.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: f }] }] }] }, { error: "Invalid Configuration: Missing Region", type: e }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SavingsPlanOfferingPropertyKey = exports.SavingsPlanOfferingFilterAttribute = exports.SavingsPlanRateFilterAttribute = exports.SavingsPlanType = exports.SavingsPlanPaymentOption = exports.SavingsPlanState = exports.SavingsPlansFilterName = exports.SavingsPlanRateUnit = exports.SavingsPlanRateServiceCode = exports.SavingsPlanRatePropertyKey = exports.SavingsPlanProductType = exports.SavingsPlanRateFilterName = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = void 0;
3
+ exports.SavingsPlanOfferingPropertyKey = exports.SavingsPlanOfferingFilterAttribute = exports.SavingsPlanRateFilterAttribute = exports.SavingsPlanType = exports.SavingsPlanPaymentOption = exports.SavingsPlanState = exports.SavingsPlansFilterName = exports.SavingsPlanRateUnit = exports.SavingsPlanRateServiceCode = exports.SavingsPlanRatePropertyKey = exports.SavingsPlanProductType = exports.CurrencyCode = exports.SavingsPlanRateFilterName = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = void 0;
4
4
  const SavingsplansServiceException_1 = require("./SavingsplansServiceException");
5
5
  class InternalServerException extends SavingsplansServiceException_1.SavingsplansServiceException {
6
6
  constructor(opts) {
@@ -64,6 +64,10 @@ exports.SavingsPlanRateFilterName = {
64
64
  TENANCY: "tenancy",
65
65
  USAGE_TYPE: "usageType",
66
66
  };
67
+ exports.CurrencyCode = {
68
+ CNY: "CNY",
69
+ USD: "USD",
70
+ };
67
71
  exports.SavingsPlanProductType = {
68
72
  EC2: "EC2",
69
73
  FARGATE: "Fargate",
@@ -1,4 +1,4 @@
1
- const y = "required", z = "type", A = "fn", B = "argv", C = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = "getAttr", g = { [y]: false, [z]: "String" }, h = { [y]: true, "default": false, [z]: "Boolean" }, i = { [C]: "Region" }, j = { [C]: "Endpoint" }, k = {}, l = { [C]: a }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "savingsplans", "signingRegion": "us-east-1" }] }, n = { [c]: "FIPS and DualStack are enabled, but this partition does not support one or both", [z]: c }, o = { [c]: "FIPS is enabled but this partition does not support FIPS", [z]: c }, p = { [c]: "DualStack is enabled but this partition does not support DualStack", [z]: c }, q = { "url": "https://savingsplans.amazonaws.com", "properties": m, "headers": {} }, r = [j], s = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseFIPS" }, true] }], t = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseDualStack" }, true] }], u = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseFIPS" }, true] }, { [A]: "booleanEquals", [B]: [{ [C]: "UseDualStack" }, true] }], v = [{ [A]: "booleanEquals", [B]: [true, { [A]: f, [B]: [l, "supportsFIPS"] }] }, { [A]: "booleanEquals", [B]: [true, { [A]: f, [B]: [l, "supportsDualStack"] }] }], w = [{ [A]: "booleanEquals", [B]: [true, { [A]: f, [B]: [l, "supportsFIPS"] }] }], x = [{ [A]: "booleanEquals", [B]: [true, { [A]: f, [B]: [l, "supportsDualStack"] }] }];
3
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [A]: "aws.partition", [B]: [i], assign: a }], [z]: b, rules: [{ conditions: [{ [A]: "isSet", [B]: r }, { [A]: "parseURL", [B]: r, assign: "url" }], [z]: b, rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [z]: c }, { [z]: b, rules: [{ conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [z]: c }, { endpoint: { url: j, properties: k, headers: k }, [z]: d }] }] }, { conditions: [{ [A]: e, [B]: [{ [A]: f, [B]: [l, "name"] }, "aws"] }], [z]: b, rules: [{ conditions: u, [z]: b, rules: [{ conditions: v, [z]: b, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.api.aws", properties: m, headers: k }, [z]: d }] }, n] }, { conditions: s, [z]: b, rules: [{ conditions: w, [z]: b, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.amazonaws.com", properties: m, headers: k }, [z]: d }] }, o] }, { conditions: t, [z]: b, rules: [{ conditions: x, [z]: b, rules: [{ endpoint: { url: "https://savingsplans.{Region}.api.aws", properties: m, headers: k }, [z]: d }] }, p] }, { endpoint: q, [z]: d }] }, { conditions: u, [z]: b, rules: [{ conditions: v, [z]: b, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, [z]: d }] }, n] }, { conditions: s, [z]: b, rules: [{ conditions: w, [z]: b, rules: [{ [z]: b, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, [z]: d }] }] }, o] }, { conditions: t, [z]: b, rules: [{ conditions: x, [z]: b, rules: [{ endpoint: { url: "https://savingsplans.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, [z]: d }] }, p] }, { [z]: b, rules: [{ conditions: [{ [A]: e, [B]: [i, "aws-global"] }], endpoint: q, [z]: d }, { endpoint: { url: "https://savingsplans.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, [z]: d }] }] }] };
1
+ const w = "required", x = "fn", y = "argv", z = "ref";
2
+ const a = false, b = "isSet", c = "tree", d = "booleanEquals", e = "error", f = "endpoint", g = "PartitionResult", h = "getAttr", i = { [w]: false, "type": "String" }, j = { [w]: true, "default": false, "type": "Boolean" }, k = { [z]: "Endpoint" }, l = { [x]: d, [y]: [{ [z]: "UseFIPS" }, true] }, m = { [z]: "UseFIPS" }, n = { [x]: d, [y]: [{ [z]: "UseDualStack" }, true] }, o = { [z]: "UseDualStack" }, p = {}, q = { [z]: g }, r = { [x]: d, [y]: [true, { [x]: h, [y]: [q, "supportsFIPS"] }] }, s = { [x]: d, [y]: [true, { [x]: h, [y]: [q, "supportsDualStack"] }] }, t = [l], u = [n], v = [{ [z]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [x]: b, [y]: [k] }], type: c, rules: [{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: e }, { type: c, rules: [{ conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: e }, { endpoint: { url: k, properties: p, headers: p }, type: f }] }] }, { type: c, rules: [{ conditions: [{ [x]: b, [y]: v }], type: c, rules: [{ conditions: [{ [x]: "aws.partition", [y]: v, assign: g }], type: c, rules: [{ conditions: [{ [x]: "stringEquals", [y]: [{ [x]: h, [y]: [q, "name"] }, "aws"] }, { [x]: d, [y]: [m, a] }, { [x]: d, [y]: [o, a] }], endpoint: { url: "https://savingsplans.amazonaws.com", properties: { authSchemes: [{ name: "sigv4", signingName: "savingsplans", signingRegion: "us-east-1" }] }, headers: p }, type: f }, { conditions: [l, n], type: c, rules: [{ conditions: [r, s], type: c, rules: [{ type: c, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: e }] }, { conditions: t, type: c, rules: [{ conditions: [r], type: c, rules: [{ type: c, rules: [{ endpoint: { url: "https://savingsplans-fips.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: f }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: e }] }, { conditions: u, type: c, rules: [{ conditions: [s], type: c, rules: [{ type: c, rules: [{ endpoint: { url: "https://savingsplans.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: p, headers: p }, type: f }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: e }] }, { type: c, rules: [{ endpoint: { url: "https://savingsplans.{Region}.{PartitionResult#dnsSuffix}", properties: p, headers: p }, type: f }] }] }] }, { error: "Invalid Configuration: Missing Region", type: e }] }] };
4
4
  export const ruleSet = _data;
@@ -57,6 +57,10 @@ export const SavingsPlanRateFilterName = {
57
57
  TENANCY: "tenancy",
58
58
  USAGE_TYPE: "usageType",
59
59
  };
60
+ export const CurrencyCode = {
61
+ CNY: "CNY",
62
+ USD: "USD",
63
+ };
60
64
  export const SavingsPlanProductType = {
61
65
  EC2: "EC2",
62
66
  FARGATE: "Fargate",
@@ -34,7 +34,7 @@ export interface DescribeSavingsPlanRatesCommandOutput extends DescribeSavingsPl
34
34
  * savingsPlanId: "STRING_VALUE", // required
35
35
  * filters: [ // SavingsPlanRateFilterList
36
36
  * { // SavingsPlanRateFilter
37
- * name: "STRING_VALUE",
37
+ * name: "region" || "instanceType" || "productDescription" || "tenancy" || "productType" || "serviceCode" || "usageType" || "operation",
38
38
  * values: [ // ListOfStrings
39
39
  * "STRING_VALUE",
40
40
  * ],
@@ -50,15 +50,15 @@ export interface DescribeSavingsPlanRatesCommandOutput extends DescribeSavingsPl
50
50
  * // searchResults: [ // SavingsPlanRateList
51
51
  * // { // SavingsPlanRate
52
52
  * // rate: "STRING_VALUE",
53
- * // currency: "STRING_VALUE",
54
- * // unit: "STRING_VALUE",
55
- * // productType: "STRING_VALUE",
56
- * // serviceCode: "STRING_VALUE",
53
+ * // currency: "CNY" || "USD",
54
+ * // unit: "Hrs" || "Lambda-GB-Second" || "Request",
55
+ * // productType: "EC2" || "Fargate" || "Lambda" || "SageMaker",
56
+ * // serviceCode: "AmazonEC2" || "AmazonECS" || "AmazonEKS" || "AWSLambda" || "AmazonSageMaker",
57
57
  * // usageType: "STRING_VALUE",
58
58
  * // operation: "STRING_VALUE",
59
59
  * // properties: [ // SavingsPlanRatePropertyList
60
60
  * // { // SavingsPlanRateProperty
61
- * // name: "STRING_VALUE",
61
+ * // name: "region" || "instanceType" || "instanceFamily" || "productDescription" || "tenancy",
62
62
  * // value: "STRING_VALUE",
63
63
  * // },
64
64
  * // ],
@@ -40,11 +40,11 @@ export interface DescribeSavingsPlansCommandOutput extends DescribeSavingsPlansR
40
40
  * nextToken: "STRING_VALUE",
41
41
  * maxResults: Number("int"),
42
42
  * states: [ // SavingsPlanStateList
43
- * "STRING_VALUE",
43
+ * "payment-pending" || "payment-failed" || "active" || "retired" || "queued" || "queued-deleted",
44
44
  * ],
45
45
  * filters: [ // SavingsPlanFilterList
46
46
  * { // SavingsPlanFilter
47
- * name: "STRING_VALUE",
47
+ * name: "region" || "ec2-instance-family" || "commitment" || "upfront" || "term" || "savings-plan-type" || "payment-option" || "start" || "end",
48
48
  * values: [ // ListOfStrings
49
49
  * "STRING_VALUE",
50
50
  * ],
@@ -62,15 +62,15 @@ export interface DescribeSavingsPlansCommandOutput extends DescribeSavingsPlansR
62
62
  * // description: "STRING_VALUE",
63
63
  * // start: "STRING_VALUE",
64
64
  * // end: "STRING_VALUE",
65
- * // state: "STRING_VALUE",
65
+ * // state: "payment-pending" || "payment-failed" || "active" || "retired" || "queued" || "queued-deleted",
66
66
  * // region: "STRING_VALUE",
67
67
  * // ec2InstanceFamily: "STRING_VALUE",
68
- * // savingsPlanType: "STRING_VALUE",
69
- * // paymentOption: "STRING_VALUE",
68
+ * // savingsPlanType: "Compute" || "EC2Instance" || "SageMaker",
69
+ * // paymentOption: "All Upfront" || "Partial Upfront" || "No Upfront",
70
70
  * // productTypes: [ // SavingsPlanProductTypeList
71
- * // "STRING_VALUE",
71
+ * // "EC2" || "Fargate" || "Lambda" || "SageMaker",
72
72
  * // ],
73
- * // currency: "STRING_VALUE",
73
+ * // currency: "CNY" || "USD",
74
74
  * // commitment: "STRING_VALUE",
75
75
  * // upfrontPaymentAmount: "STRING_VALUE",
76
76
  * // recurringPaymentAmount: "STRING_VALUE",
@@ -35,16 +35,16 @@ export interface DescribeSavingsPlansOfferingRatesCommandOutput extends Describe
35
35
  * "STRING_VALUE",
36
36
  * ],
37
37
  * savingsPlanPaymentOptions: [ // SavingsPlanPaymentOptionList
38
- * "STRING_VALUE",
38
+ * "All Upfront" || "Partial Upfront" || "No Upfront",
39
39
  * ],
40
40
  * savingsPlanTypes: [ // SavingsPlanTypeList
41
- * "STRING_VALUE",
41
+ * "Compute" || "EC2Instance" || "SageMaker",
42
42
  * ],
43
43
  * products: [ // SavingsPlanProductTypeList
44
- * "STRING_VALUE",
44
+ * "EC2" || "Fargate" || "Lambda" || "SageMaker",
45
45
  * ],
46
46
  * serviceCodes: [ // SavingsPlanRateServiceCodeList
47
- * "STRING_VALUE",
47
+ * "AmazonEC2" || "AmazonECS" || "AmazonEKS" || "AWSLambda" || "AmazonSageMaker",
48
48
  * ],
49
49
  * usageTypes: [ // SavingsPlanRateUsageTypeList
50
50
  * "STRING_VALUE",
@@ -54,7 +54,7 @@ export interface DescribeSavingsPlansOfferingRatesCommandOutput extends Describe
54
54
  * ],
55
55
  * filters: [ // SavingsPlanOfferingRateFiltersList
56
56
  * { // SavingsPlanOfferingRateFilterElement
57
- * name: "STRING_VALUE",
57
+ * name: "region" || "instanceFamily" || "instanceType" || "productDescription" || "tenancy" || "productId",
58
58
  * values: [ // FilterValuesList
59
59
  * "STRING_VALUE",
60
60
  * ],
@@ -70,16 +70,16 @@ export interface DescribeSavingsPlansOfferingRatesCommandOutput extends Describe
70
70
  * // { // SavingsPlanOfferingRate
71
71
  * // savingsPlanOffering: { // ParentSavingsPlanOffering
72
72
  * // offeringId: "STRING_VALUE",
73
- * // paymentOption: "STRING_VALUE",
74
- * // planType: "STRING_VALUE",
73
+ * // paymentOption: "All Upfront" || "Partial Upfront" || "No Upfront",
74
+ * // planType: "Compute" || "EC2Instance" || "SageMaker",
75
75
  * // durationSeconds: Number("long"),
76
- * // currency: "STRING_VALUE",
76
+ * // currency: "CNY" || "USD",
77
77
  * // planDescription: "STRING_VALUE",
78
78
  * // },
79
79
  * // rate: "STRING_VALUE",
80
- * // unit: "STRING_VALUE",
81
- * // productType: "STRING_VALUE",
82
- * // serviceCode: "STRING_VALUE",
80
+ * // unit: "Hrs" || "Lambda-GB-Second" || "Request",
81
+ * // productType: "EC2" || "Fargate" || "Lambda" || "SageMaker",
82
+ * // serviceCode: "AmazonEC2" || "AmazonECS" || "AmazonEKS" || "AWSLambda" || "AmazonSageMaker",
83
83
  * // usageType: "STRING_VALUE",
84
84
  * // operation: "STRING_VALUE",
85
85
  * // properties: [ // SavingsPlanOfferingRatePropertyList
@@ -35,17 +35,17 @@ export interface DescribeSavingsPlansOfferingsCommandOutput extends DescribeSavi
35
35
  * "STRING_VALUE",
36
36
  * ],
37
37
  * paymentOptions: [ // SavingsPlanPaymentOptionList
38
- * "STRING_VALUE",
38
+ * "All Upfront" || "Partial Upfront" || "No Upfront",
39
39
  * ],
40
- * productType: "STRING_VALUE",
40
+ * productType: "EC2" || "Fargate" || "Lambda" || "SageMaker",
41
41
  * planTypes: [ // SavingsPlanTypeList
42
- * "STRING_VALUE",
42
+ * "Compute" || "EC2Instance" || "SageMaker",
43
43
  * ],
44
44
  * durations: [ // DurationsList
45
45
  * Number("long"),
46
46
  * ],
47
47
  * currencies: [ // CurrencyList
48
- * "STRING_VALUE",
48
+ * "CNY" || "USD",
49
49
  * ],
50
50
  * descriptions: [ // SavingsPlanDescriptionsList
51
51
  * "STRING_VALUE",
@@ -61,7 +61,7 @@ export interface DescribeSavingsPlansOfferingsCommandOutput extends DescribeSavi
61
61
  * ],
62
62
  * filters: [ // SavingsPlanOfferingFiltersList
63
63
  * { // SavingsPlanOfferingFilterElement
64
- * name: "STRING_VALUE",
64
+ * name: "region" || "instanceFamily",
65
65
  * values: [ // FilterValuesList
66
66
  * "STRING_VALUE",
67
67
  * ],
@@ -77,19 +77,19 @@ export interface DescribeSavingsPlansOfferingsCommandOutput extends DescribeSavi
77
77
  * // { // SavingsPlanOffering
78
78
  * // offeringId: "STRING_VALUE",
79
79
  * // productTypes: [ // SavingsPlanProductTypeList
80
- * // "STRING_VALUE",
80
+ * // "EC2" || "Fargate" || "Lambda" || "SageMaker",
81
81
  * // ],
82
- * // planType: "STRING_VALUE",
82
+ * // planType: "Compute" || "EC2Instance" || "SageMaker",
83
83
  * // description: "STRING_VALUE",
84
- * // paymentOption: "STRING_VALUE",
84
+ * // paymentOption: "All Upfront" || "Partial Upfront" || "No Upfront",
85
85
  * // durationSeconds: Number("long"),
86
- * // currency: "STRING_VALUE",
86
+ * // currency: "CNY" || "USD",
87
87
  * // serviceCode: "STRING_VALUE",
88
88
  * // usageType: "STRING_VALUE",
89
89
  * // operation: "STRING_VALUE",
90
90
  * // properties: [ // SavingsPlanOfferingPropertyList
91
91
  * // { // SavingsPlanOfferingProperty
92
- * // name: "STRING_VALUE",
92
+ * // name: "region" || "instanceFamily",
93
93
  * // value: "STRING_VALUE",
94
94
  * // },
95
95
  * // ],
@@ -156,10 +156,18 @@ export interface DescribeSavingsPlanRatesRequest {
156
156
  */
157
157
  maxResults?: number;
158
158
  }
159
+ /**
160
+ * @public
161
+ * @enum
162
+ */
163
+ export declare const CurrencyCode: {
164
+ readonly CNY: "CNY";
165
+ readonly USD: "USD";
166
+ };
159
167
  /**
160
168
  * @public
161
169
  */
162
- export type CurrencyCode = "CNY" | "USD";
170
+ export type CurrencyCode = (typeof CurrencyCode)[keyof typeof CurrencyCode];
163
171
  /**
164
172
  * @public
165
173
  * @enum
@@ -283,7 +291,7 @@ export interface DescribeSavingsPlanRatesResponse {
283
291
  searchResults?: SavingsPlanRate[];
284
292
  /**
285
293
  * <p>The token to use to retrieve the next page of results. This value is null when there are no more
286
- * results to return.</p>
294
+ * results to return. </p>
287
295
  */
288
296
  nextToken?: string;
289
297
  }
@@ -65,7 +65,11 @@ export interface DescribeSavingsPlanRatesRequest {
65
65
  nextToken?: string;
66
66
  maxResults?: number;
67
67
  }
68
- export type CurrencyCode = "CNY" | "USD";
68
+ export declare const CurrencyCode: {
69
+ readonly CNY: "CNY";
70
+ readonly USD: "USD";
71
+ };
72
+ export type CurrencyCode = (typeof CurrencyCode)[keyof typeof CurrencyCode];
69
73
  export declare const SavingsPlanProductType: {
70
74
  readonly EC2: "EC2";
71
75
  readonly FARGATE: "Fargate";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-savingsplans",
3
3
  "description": "AWS SDK for JavaScript Savingsplans Client for Node.js, Browser and React Native",
4
- "version": "3.370.0",
4
+ "version": "3.377.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.370.0",
24
+ "@aws-sdk/client-sts": "3.377.0",
25
25
  "@aws-sdk/credential-provider-node": "3.370.0",
26
26
  "@aws-sdk/middleware-host-header": "3.370.0",
27
27
  "@aws-sdk/middleware-logger": "3.370.0",