@aws-sdk/client-savingsplans 3.934.0 → 3.936.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,5 +1,18 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { SavingsplansServiceException as __BaseException } from "./SavingsplansServiceException";
1
+ import {
2
+ CurrencyCode,
3
+ SavingsPlanOfferingFilterAttribute,
4
+ SavingsPlanOfferingPropertyKey,
5
+ SavingsPlanPaymentOption,
6
+ SavingsPlanProductType,
7
+ SavingsPlanRateFilterAttribute,
8
+ SavingsPlanRateFilterName,
9
+ SavingsPlanRatePropertyKey,
10
+ SavingsPlanRateServiceCode,
11
+ SavingsPlanRateUnit,
12
+ SavingsPlansFilterName,
13
+ SavingsPlanState,
14
+ SavingsPlanType,
15
+ } from "./enums";
3
16
  export interface CreateSavingsPlanRequest {
4
17
  savingsPlanOfferingId: string | undefined;
5
18
  commitment: string | undefined;
@@ -11,50 +24,10 @@ export interface CreateSavingsPlanRequest {
11
24
  export interface CreateSavingsPlanResponse {
12
25
  savingsPlanId?: string | undefined;
13
26
  }
14
- export declare class InternalServerException extends __BaseException {
15
- readonly name: "InternalServerException";
16
- readonly $fault: "server";
17
- constructor(
18
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
19
- );
20
- }
21
- export declare class ResourceNotFoundException extends __BaseException {
22
- readonly name: "ResourceNotFoundException";
23
- readonly $fault: "client";
24
- constructor(
25
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
26
- );
27
- }
28
- export declare class ServiceQuotaExceededException extends __BaseException {
29
- readonly name: "ServiceQuotaExceededException";
30
- readonly $fault: "client";
31
- constructor(
32
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
33
- );
34
- }
35
- export declare class ValidationException extends __BaseException {
36
- readonly name: "ValidationException";
37
- readonly $fault: "client";
38
- constructor(
39
- opts: __ExceptionOptionType<ValidationException, __BaseException>
40
- );
41
- }
42
27
  export interface DeleteQueuedSavingsPlanRequest {
43
28
  savingsPlanId: string | undefined;
44
29
  }
45
30
  export interface DeleteQueuedSavingsPlanResponse {}
46
- export declare const SavingsPlanRateFilterName: {
47
- readonly INSTANCE_TYPE: "instanceType";
48
- readonly OPERATION: "operation";
49
- readonly PRODUCT_DESCRIPTION: "productDescription";
50
- readonly PRODUCT_TYPE: "productType";
51
- readonly REGION: "region";
52
- readonly SERVICE_CODE: "serviceCode";
53
- readonly TENANCY: "tenancy";
54
- readonly USAGE_TYPE: "usageType";
55
- };
56
- export type SavingsPlanRateFilterName =
57
- (typeof SavingsPlanRateFilterName)[keyof typeof SavingsPlanRateFilterName];
58
31
  export interface SavingsPlanRateFilter {
59
32
  name?: SavingsPlanRateFilterName | undefined;
60
33
  values?: string[] | undefined;
@@ -65,48 +38,10 @@ export interface DescribeSavingsPlanRatesRequest {
65
38
  nextToken?: string | undefined;
66
39
  maxResults?: number | undefined;
67
40
  }
68
- export declare const CurrencyCode: {
69
- readonly CNY: "CNY";
70
- readonly USD: "USD";
71
- };
72
- export type CurrencyCode = (typeof CurrencyCode)[keyof typeof CurrencyCode];
73
- export declare const SavingsPlanProductType: {
74
- readonly EC2: "EC2";
75
- readonly FARGATE: "Fargate";
76
- readonly LAMBDA: "Lambda";
77
- readonly SAGEMAKER: "SageMaker";
78
- };
79
- export type SavingsPlanProductType =
80
- (typeof SavingsPlanProductType)[keyof typeof SavingsPlanProductType];
81
- export declare const SavingsPlanRatePropertyKey: {
82
- readonly INSTANCE_FAMILY: "instanceFamily";
83
- readonly INSTANCE_TYPE: "instanceType";
84
- readonly PRODUCT_DESCRIPTION: "productDescription";
85
- readonly REGION: "region";
86
- readonly TENANCY: "tenancy";
87
- };
88
- export type SavingsPlanRatePropertyKey =
89
- (typeof SavingsPlanRatePropertyKey)[keyof typeof SavingsPlanRatePropertyKey];
90
41
  export interface SavingsPlanRateProperty {
91
42
  name?: SavingsPlanRatePropertyKey | undefined;
92
43
  value?: string | undefined;
93
44
  }
94
- export declare const SavingsPlanRateServiceCode: {
95
- readonly EC2: "AmazonEC2";
96
- readonly FARGATE: "AmazonECS";
97
- readonly FARGATE_EKS: "AmazonEKS";
98
- readonly LAMBDA: "AWSLambda";
99
- readonly SAGEMAKER: "AmazonSageMaker";
100
- };
101
- export type SavingsPlanRateServiceCode =
102
- (typeof SavingsPlanRateServiceCode)[keyof typeof SavingsPlanRateServiceCode];
103
- export declare const SavingsPlanRateUnit: {
104
- readonly HOURS: "Hrs";
105
- readonly LAMBDA_GB_SECOND: "Lambda-GB-Second";
106
- readonly REQUEST: "Request";
107
- };
108
- export type SavingsPlanRateUnit =
109
- (typeof SavingsPlanRateUnit)[keyof typeof SavingsPlanRateUnit];
110
45
  export interface SavingsPlanRate {
111
46
  rate?: string | undefined;
112
47
  currency?: CurrencyCode | undefined;
@@ -122,35 +57,10 @@ export interface DescribeSavingsPlanRatesResponse {
122
57
  searchResults?: SavingsPlanRate[] | undefined;
123
58
  nextToken?: string | undefined;
124
59
  }
125
- export declare const SavingsPlansFilterName: {
126
- readonly COMMITMENT: "commitment";
127
- readonly EC2_INSTANCE_FAMILY: "ec2-instance-family";
128
- readonly END: "end";
129
- readonly PAYMENT_OPTION: "payment-option";
130
- readonly REGION: "region";
131
- readonly SAVINGS_PLAN_TYPE: "savings-plan-type";
132
- readonly START: "start";
133
- readonly TERM: "term";
134
- readonly UPFRONT: "upfront";
135
- };
136
- export type SavingsPlansFilterName =
137
- (typeof SavingsPlansFilterName)[keyof typeof SavingsPlansFilterName];
138
60
  export interface SavingsPlanFilter {
139
61
  name?: SavingsPlansFilterName | undefined;
140
62
  values?: string[] | undefined;
141
63
  }
142
- export declare const SavingsPlanState: {
143
- readonly ACTIVE: "active";
144
- readonly PAYMENT_FAILED: "payment-failed";
145
- readonly PAYMENT_PENDING: "payment-pending";
146
- readonly PENDING_RETURN: "pending-return";
147
- readonly QUEUED: "queued";
148
- readonly QUEUED_DELETED: "queued-deleted";
149
- readonly RETIRED: "retired";
150
- readonly RETURNED: "returned";
151
- };
152
- export type SavingsPlanState =
153
- (typeof SavingsPlanState)[keyof typeof SavingsPlanState];
154
64
  export interface DescribeSavingsPlansRequest {
155
65
  savingsPlanArns?: string[] | undefined;
156
66
  savingsPlanIds?: string[] | undefined;
@@ -159,20 +69,6 @@ export interface DescribeSavingsPlansRequest {
159
69
  states?: SavingsPlanState[] | undefined;
160
70
  filters?: SavingsPlanFilter[] | undefined;
161
71
  }
162
- export declare const SavingsPlanPaymentOption: {
163
- readonly ALL_UPFRONT: "All Upfront";
164
- readonly NO_UPFRONT: "No Upfront";
165
- readonly PARTIAL_UPFRONT: "Partial Upfront";
166
- };
167
- export type SavingsPlanPaymentOption =
168
- (typeof SavingsPlanPaymentOption)[keyof typeof SavingsPlanPaymentOption];
169
- export declare const SavingsPlanType: {
170
- readonly COMPUTE: "Compute";
171
- readonly EC2_INSTANCE: "EC2Instance";
172
- readonly SAGEMAKER: "SageMaker";
173
- };
174
- export type SavingsPlanType =
175
- (typeof SavingsPlanType)[keyof typeof SavingsPlanType];
176
72
  export interface SavingsPlan {
177
73
  offeringId?: string | undefined;
178
74
  savingsPlanId?: string | undefined;
@@ -198,16 +94,6 @@ export interface DescribeSavingsPlansResponse {
198
94
  savingsPlans?: SavingsPlan[] | undefined;
199
95
  nextToken?: string | undefined;
200
96
  }
201
- export declare const SavingsPlanRateFilterAttribute: {
202
- readonly INSTANCE_FAMILY: "instanceFamily";
203
- readonly INSTANCE_TYPE: "instanceType";
204
- readonly PRODUCT_DESCRIPTION: "productDescription";
205
- readonly PRODUCT_ID: "productId";
206
- readonly REGION: "region";
207
- readonly TENANCY: "tenancy";
208
- };
209
- export type SavingsPlanRateFilterAttribute =
210
- (typeof SavingsPlanRateFilterAttribute)[keyof typeof SavingsPlanRateFilterAttribute];
211
97
  export interface SavingsPlanOfferingRateFilterElement {
212
98
  name?: SavingsPlanRateFilterAttribute | undefined;
213
99
  values?: string[] | undefined;
@@ -250,12 +136,6 @@ export interface DescribeSavingsPlansOfferingRatesResponse {
250
136
  searchResults?: SavingsPlanOfferingRate[] | undefined;
251
137
  nextToken?: string | undefined;
252
138
  }
253
- export declare const SavingsPlanOfferingFilterAttribute: {
254
- readonly instanceFamily: "instanceFamily";
255
- readonly region: "region";
256
- };
257
- export type SavingsPlanOfferingFilterAttribute =
258
- (typeof SavingsPlanOfferingFilterAttribute)[keyof typeof SavingsPlanOfferingFilterAttribute];
259
139
  export interface SavingsPlanOfferingFilterElement {
260
140
  name?: SavingsPlanOfferingFilterAttribute | undefined;
261
141
  values?: string[] | undefined;
@@ -275,12 +155,6 @@ export interface DescribeSavingsPlansOfferingsRequest {
275
155
  nextToken?: string | undefined;
276
156
  maxResults?: number | undefined;
277
157
  }
278
- export declare const SavingsPlanOfferingPropertyKey: {
279
- readonly INSTANCE_FAMILY: "instanceFamily";
280
- readonly REGION: "region";
281
- };
282
- export type SavingsPlanOfferingPropertyKey =
283
- (typeof SavingsPlanOfferingPropertyKey)[keyof typeof SavingsPlanOfferingPropertyKey];
284
158
  export interface SavingsPlanOfferingProperty {
285
159
  name?: SavingsPlanOfferingPropertyKey | undefined;
286
160
  value?: string | undefined;
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.934.0",
4
+ "version": "3.936.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-savingsplans",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
25
- "@aws-sdk/middleware-host-header": "3.930.0",
26
- "@aws-sdk/middleware-logger": "3.930.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
29
- "@aws-sdk/region-config-resolver": "3.930.0",
30
- "@aws-sdk/types": "3.930.0",
31
- "@aws-sdk/util-endpoints": "3.930.0",
32
- "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.936.0",
25
+ "@aws-sdk/middleware-host-header": "3.936.0",
26
+ "@aws-sdk/middleware-logger": "3.936.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.936.0",
29
+ "@aws-sdk/region-config-resolver": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
+ "@aws-sdk/util-endpoints": "3.936.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.936.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";