@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.
@@ -0,0 +1,50 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { SavingsplansServiceException as __BaseException } from "./SavingsplansServiceException";
3
+ /**
4
+ * <p>An unexpected error occurred.</p>
5
+ * @public
6
+ */
7
+ export declare class InternalServerException extends __BaseException {
8
+ readonly name: "InternalServerException";
9
+ readonly $fault: "server";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>The specified resource was not found.</p>
17
+ * @public
18
+ */
19
+ export declare class ResourceNotFoundException extends __BaseException {
20
+ readonly name: "ResourceNotFoundException";
21
+ readonly $fault: "client";
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
26
+ }
27
+ /**
28
+ * <p>A service quota has been exceeded.</p>
29
+ * @public
30
+ */
31
+ export declare class ServiceQuotaExceededException extends __BaseException {
32
+ readonly name: "ServiceQuotaExceededException";
33
+ readonly $fault: "client";
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
38
+ }
39
+ /**
40
+ * <p>One of the input parameters is not valid.</p>
41
+ * @public
42
+ */
43
+ export declare class ValidationException extends __BaseException {
44
+ readonly name: "ValidationException";
45
+ readonly $fault: "client";
46
+ /**
47
+ * @internal
48
+ */
49
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
50
+ }
@@ -1,5 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { SavingsplansServiceException as __BaseException } from "./SavingsplansServiceException";
1
+ import { CurrencyCode, SavingsPlanOfferingFilterAttribute, SavingsPlanOfferingPropertyKey, SavingsPlanPaymentOption, SavingsPlanProductType, SavingsPlanRateFilterAttribute, SavingsPlanRateFilterName, SavingsPlanRatePropertyKey, SavingsPlanRateServiceCode, SavingsPlanRateUnit, SavingsPlansFilterName, SavingsPlanState, SavingsPlanType } from "./enums";
3
2
  /**
4
3
  * @public
5
4
  */
@@ -51,54 +50,6 @@ export interface CreateSavingsPlanResponse {
51
50
  */
52
51
  savingsPlanId?: string | undefined;
53
52
  }
54
- /**
55
- * <p>An unexpected error occurred.</p>
56
- * @public
57
- */
58
- export declare class InternalServerException extends __BaseException {
59
- readonly name: "InternalServerException";
60
- readonly $fault: "server";
61
- /**
62
- * @internal
63
- */
64
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
65
- }
66
- /**
67
- * <p>The specified resource was not found.</p>
68
- * @public
69
- */
70
- export declare class ResourceNotFoundException extends __BaseException {
71
- readonly name: "ResourceNotFoundException";
72
- readonly $fault: "client";
73
- /**
74
- * @internal
75
- */
76
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
77
- }
78
- /**
79
- * <p>A service quota has been exceeded.</p>
80
- * @public
81
- */
82
- export declare class ServiceQuotaExceededException extends __BaseException {
83
- readonly name: "ServiceQuotaExceededException";
84
- readonly $fault: "client";
85
- /**
86
- * @internal
87
- */
88
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
89
- }
90
- /**
91
- * <p>One of the input parameters is not valid.</p>
92
- * @public
93
- */
94
- export declare class ValidationException extends __BaseException {
95
- readonly name: "ValidationException";
96
- readonly $fault: "client";
97
- /**
98
- * @internal
99
- */
100
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
101
- }
102
53
  /**
103
54
  * @public
104
55
  */
@@ -114,24 +65,6 @@ export interface DeleteQueuedSavingsPlanRequest {
114
65
  */
115
66
  export interface DeleteQueuedSavingsPlanResponse {
116
67
  }
117
- /**
118
- * @public
119
- * @enum
120
- */
121
- export declare const SavingsPlanRateFilterName: {
122
- readonly INSTANCE_TYPE: "instanceType";
123
- readonly OPERATION: "operation";
124
- readonly PRODUCT_DESCRIPTION: "productDescription";
125
- readonly PRODUCT_TYPE: "productType";
126
- readonly REGION: "region";
127
- readonly SERVICE_CODE: "serviceCode";
128
- readonly TENANCY: "tenancy";
129
- readonly USAGE_TYPE: "usageType";
130
- };
131
- /**
132
- * @public
133
- */
134
- export type SavingsPlanRateFilterName = (typeof SavingsPlanRateFilterName)[keyof typeof SavingsPlanRateFilterName];
135
68
  /**
136
69
  * <p>Information about a Savings Plan rate filter.</p>
137
70
  * @public
@@ -174,47 +107,6 @@ export interface DescribeSavingsPlanRatesRequest {
174
107
  */
175
108
  maxResults?: number | undefined;
176
109
  }
177
- /**
178
- * @public
179
- * @enum
180
- */
181
- export declare const CurrencyCode: {
182
- readonly CNY: "CNY";
183
- readonly USD: "USD";
184
- };
185
- /**
186
- * @public
187
- */
188
- export type CurrencyCode = (typeof CurrencyCode)[keyof typeof CurrencyCode];
189
- /**
190
- * @public
191
- * @enum
192
- */
193
- export declare const SavingsPlanProductType: {
194
- readonly EC2: "EC2";
195
- readonly FARGATE: "Fargate";
196
- readonly LAMBDA: "Lambda";
197
- readonly SAGEMAKER: "SageMaker";
198
- };
199
- /**
200
- * @public
201
- */
202
- export type SavingsPlanProductType = (typeof SavingsPlanProductType)[keyof typeof SavingsPlanProductType];
203
- /**
204
- * @public
205
- * @enum
206
- */
207
- export declare const SavingsPlanRatePropertyKey: {
208
- readonly INSTANCE_FAMILY: "instanceFamily";
209
- readonly INSTANCE_TYPE: "instanceType";
210
- readonly PRODUCT_DESCRIPTION: "productDescription";
211
- readonly REGION: "region";
212
- readonly TENANCY: "tenancy";
213
- };
214
- /**
215
- * @public
216
- */
217
- export type SavingsPlanRatePropertyKey = (typeof SavingsPlanRatePropertyKey)[keyof typeof SavingsPlanRatePropertyKey];
218
110
  /**
219
111
  * <p>Information about a Savings Plan rate property.</p>
220
112
  * @public
@@ -231,34 +123,6 @@ export interface SavingsPlanRateProperty {
231
123
  */
232
124
  value?: string | undefined;
233
125
  }
234
- /**
235
- * @public
236
- * @enum
237
- */
238
- export declare const SavingsPlanRateServiceCode: {
239
- readonly EC2: "AmazonEC2";
240
- readonly FARGATE: "AmazonECS";
241
- readonly FARGATE_EKS: "AmazonEKS";
242
- readonly LAMBDA: "AWSLambda";
243
- readonly SAGEMAKER: "AmazonSageMaker";
244
- };
245
- /**
246
- * @public
247
- */
248
- export type SavingsPlanRateServiceCode = (typeof SavingsPlanRateServiceCode)[keyof typeof SavingsPlanRateServiceCode];
249
- /**
250
- * @public
251
- * @enum
252
- */
253
- export declare const SavingsPlanRateUnit: {
254
- readonly HOURS: "Hrs";
255
- readonly LAMBDA_GB_SECOND: "Lambda-GB-Second";
256
- readonly REQUEST: "Request";
257
- };
258
- /**
259
- * @public
260
- */
261
- export type SavingsPlanRateUnit = (typeof SavingsPlanRateUnit)[keyof typeof SavingsPlanRateUnit];
262
126
  /**
263
127
  * <p>Information about a Savings Plan rate.</p>
264
128
  * @public
@@ -327,25 +191,6 @@ export interface DescribeSavingsPlanRatesResponse {
327
191
  */
328
192
  nextToken?: string | undefined;
329
193
  }
330
- /**
331
- * @public
332
- * @enum
333
- */
334
- export declare const SavingsPlansFilterName: {
335
- readonly COMMITMENT: "commitment";
336
- readonly EC2_INSTANCE_FAMILY: "ec2-instance-family";
337
- readonly END: "end";
338
- readonly PAYMENT_OPTION: "payment-option";
339
- readonly REGION: "region";
340
- readonly SAVINGS_PLAN_TYPE: "savings-plan-type";
341
- readonly START: "start";
342
- readonly TERM: "term";
343
- readonly UPFRONT: "upfront";
344
- };
345
- /**
346
- * @public
347
- */
348
- export type SavingsPlansFilterName = (typeof SavingsPlansFilterName)[keyof typeof SavingsPlansFilterName];
349
194
  /**
350
195
  * <p>Information about a Savings Plan filter.</p>
351
196
  * @public
@@ -362,24 +207,6 @@ export interface SavingsPlanFilter {
362
207
  */
363
208
  values?: string[] | undefined;
364
209
  }
365
- /**
366
- * @public
367
- * @enum
368
- */
369
- export declare const SavingsPlanState: {
370
- readonly ACTIVE: "active";
371
- readonly PAYMENT_FAILED: "payment-failed";
372
- readonly PAYMENT_PENDING: "payment-pending";
373
- readonly PENDING_RETURN: "pending-return";
374
- readonly QUEUED: "queued";
375
- readonly QUEUED_DELETED: "queued-deleted";
376
- readonly RETIRED: "retired";
377
- readonly RETURNED: "returned";
378
- };
379
- /**
380
- * @public
381
- */
382
- export type SavingsPlanState = (typeof SavingsPlanState)[keyof typeof SavingsPlanState];
383
210
  /**
384
211
  * @public
385
212
  */
@@ -416,32 +243,6 @@ export interface DescribeSavingsPlansRequest {
416
243
  */
417
244
  filters?: SavingsPlanFilter[] | undefined;
418
245
  }
419
- /**
420
- * @public
421
- * @enum
422
- */
423
- export declare const SavingsPlanPaymentOption: {
424
- readonly ALL_UPFRONT: "All Upfront";
425
- readonly NO_UPFRONT: "No Upfront";
426
- readonly PARTIAL_UPFRONT: "Partial Upfront";
427
- };
428
- /**
429
- * @public
430
- */
431
- export type SavingsPlanPaymentOption = (typeof SavingsPlanPaymentOption)[keyof typeof SavingsPlanPaymentOption];
432
- /**
433
- * @public
434
- * @enum
435
- */
436
- export declare const SavingsPlanType: {
437
- readonly COMPUTE: "Compute";
438
- readonly EC2_INSTANCE: "EC2Instance";
439
- readonly SAGEMAKER: "SageMaker";
440
- };
441
- /**
442
- * @public
443
- */
444
- export type SavingsPlanType = (typeof SavingsPlanType)[keyof typeof SavingsPlanType];
445
246
  /**
446
247
  * <p>Information about a Savings Plan.</p>
447
248
  * @public
@@ -560,22 +361,6 @@ export interface DescribeSavingsPlansResponse {
560
361
  */
561
362
  nextToken?: string | undefined;
562
363
  }
563
- /**
564
- * @public
565
- * @enum
566
- */
567
- export declare const SavingsPlanRateFilterAttribute: {
568
- readonly INSTANCE_FAMILY: "instanceFamily";
569
- readonly INSTANCE_TYPE: "instanceType";
570
- readonly PRODUCT_DESCRIPTION: "productDescription";
571
- readonly PRODUCT_ID: "productId";
572
- readonly REGION: "region";
573
- readonly TENANCY: "tenancy";
574
- };
575
- /**
576
- * @public
577
- */
578
- export type SavingsPlanRateFilterAttribute = (typeof SavingsPlanRateFilterAttribute)[keyof typeof SavingsPlanRateFilterAttribute];
579
364
  /**
580
365
  * <p>Information about a Savings Plan offering rate filter.</p>
581
366
  * @public
@@ -764,18 +549,6 @@ export interface DescribeSavingsPlansOfferingRatesResponse {
764
549
  */
765
550
  nextToken?: string | undefined;
766
551
  }
767
- /**
768
- * @public
769
- * @enum
770
- */
771
- export declare const SavingsPlanOfferingFilterAttribute: {
772
- readonly instanceFamily: "instanceFamily";
773
- readonly region: "region";
774
- };
775
- /**
776
- * @public
777
- */
778
- export type SavingsPlanOfferingFilterAttribute = (typeof SavingsPlanOfferingFilterAttribute)[keyof typeof SavingsPlanOfferingFilterAttribute];
779
552
  /**
780
553
  * <p>Information about a Savings Plan offering filter.</p>
781
554
  * @public
@@ -864,18 +637,6 @@ export interface DescribeSavingsPlansOfferingsRequest {
864
637
  */
865
638
  maxResults?: number | undefined;
866
639
  }
867
- /**
868
- * @public
869
- * @enum
870
- */
871
- export declare const SavingsPlanOfferingPropertyKey: {
872
- readonly INSTANCE_FAMILY: "instanceFamily";
873
- readonly REGION: "region";
874
- };
875
- /**
876
- * @public
877
- */
878
- export type SavingsPlanOfferingPropertyKey = (typeof SavingsPlanOfferingPropertyKey)[keyof typeof SavingsPlanOfferingPropertyKey];
879
640
  /**
880
641
  * <p>Information about a Savings Plan offering property.</p>
881
642
  * @public
@@ -4,5 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { SavingsplansExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
8
10
  export { SavingsplansServiceException } from "./models/SavingsplansServiceException";
@@ -0,0 +1,111 @@
1
+ export declare const SavingsPlanRateFilterName: {
2
+ readonly INSTANCE_TYPE: "instanceType";
3
+ readonly OPERATION: "operation";
4
+ readonly PRODUCT_DESCRIPTION: "productDescription";
5
+ readonly PRODUCT_TYPE: "productType";
6
+ readonly REGION: "region";
7
+ readonly SERVICE_CODE: "serviceCode";
8
+ readonly TENANCY: "tenancy";
9
+ readonly USAGE_TYPE: "usageType";
10
+ };
11
+ export type SavingsPlanRateFilterName =
12
+ (typeof SavingsPlanRateFilterName)[keyof typeof SavingsPlanRateFilterName];
13
+ export declare const CurrencyCode: {
14
+ readonly CNY: "CNY";
15
+ readonly USD: "USD";
16
+ };
17
+ export type CurrencyCode = (typeof CurrencyCode)[keyof typeof CurrencyCode];
18
+ export declare const SavingsPlanProductType: {
19
+ readonly EC2: "EC2";
20
+ readonly FARGATE: "Fargate";
21
+ readonly LAMBDA: "Lambda";
22
+ readonly SAGEMAKER: "SageMaker";
23
+ };
24
+ export type SavingsPlanProductType =
25
+ (typeof SavingsPlanProductType)[keyof typeof SavingsPlanProductType];
26
+ export declare const SavingsPlanRatePropertyKey: {
27
+ readonly INSTANCE_FAMILY: "instanceFamily";
28
+ readonly INSTANCE_TYPE: "instanceType";
29
+ readonly PRODUCT_DESCRIPTION: "productDescription";
30
+ readonly REGION: "region";
31
+ readonly TENANCY: "tenancy";
32
+ };
33
+ export type SavingsPlanRatePropertyKey =
34
+ (typeof SavingsPlanRatePropertyKey)[keyof typeof SavingsPlanRatePropertyKey];
35
+ export declare const SavingsPlanRateServiceCode: {
36
+ readonly EC2: "AmazonEC2";
37
+ readonly FARGATE: "AmazonECS";
38
+ readonly FARGATE_EKS: "AmazonEKS";
39
+ readonly LAMBDA: "AWSLambda";
40
+ readonly SAGEMAKER: "AmazonSageMaker";
41
+ };
42
+ export type SavingsPlanRateServiceCode =
43
+ (typeof SavingsPlanRateServiceCode)[keyof typeof SavingsPlanRateServiceCode];
44
+ export declare const SavingsPlanRateUnit: {
45
+ readonly HOURS: "Hrs";
46
+ readonly LAMBDA_GB_SECOND: "Lambda-GB-Second";
47
+ readonly REQUEST: "Request";
48
+ };
49
+ export type SavingsPlanRateUnit =
50
+ (typeof SavingsPlanRateUnit)[keyof typeof SavingsPlanRateUnit];
51
+ export declare const SavingsPlansFilterName: {
52
+ readonly COMMITMENT: "commitment";
53
+ readonly EC2_INSTANCE_FAMILY: "ec2-instance-family";
54
+ readonly END: "end";
55
+ readonly PAYMENT_OPTION: "payment-option";
56
+ readonly REGION: "region";
57
+ readonly SAVINGS_PLAN_TYPE: "savings-plan-type";
58
+ readonly START: "start";
59
+ readonly TERM: "term";
60
+ readonly UPFRONT: "upfront";
61
+ };
62
+ export type SavingsPlansFilterName =
63
+ (typeof SavingsPlansFilterName)[keyof typeof SavingsPlansFilterName];
64
+ export declare const SavingsPlanState: {
65
+ readonly ACTIVE: "active";
66
+ readonly PAYMENT_FAILED: "payment-failed";
67
+ readonly PAYMENT_PENDING: "payment-pending";
68
+ readonly PENDING_RETURN: "pending-return";
69
+ readonly QUEUED: "queued";
70
+ readonly QUEUED_DELETED: "queued-deleted";
71
+ readonly RETIRED: "retired";
72
+ readonly RETURNED: "returned";
73
+ };
74
+ export type SavingsPlanState =
75
+ (typeof SavingsPlanState)[keyof typeof SavingsPlanState];
76
+ export declare const SavingsPlanPaymentOption: {
77
+ readonly ALL_UPFRONT: "All Upfront";
78
+ readonly NO_UPFRONT: "No Upfront";
79
+ readonly PARTIAL_UPFRONT: "Partial Upfront";
80
+ };
81
+ export type SavingsPlanPaymentOption =
82
+ (typeof SavingsPlanPaymentOption)[keyof typeof SavingsPlanPaymentOption];
83
+ export declare const SavingsPlanType: {
84
+ readonly COMPUTE: "Compute";
85
+ readonly EC2_INSTANCE: "EC2Instance";
86
+ readonly SAGEMAKER: "SageMaker";
87
+ };
88
+ export type SavingsPlanType =
89
+ (typeof SavingsPlanType)[keyof typeof SavingsPlanType];
90
+ export declare const SavingsPlanRateFilterAttribute: {
91
+ readonly INSTANCE_FAMILY: "instanceFamily";
92
+ readonly INSTANCE_TYPE: "instanceType";
93
+ readonly PRODUCT_DESCRIPTION: "productDescription";
94
+ readonly PRODUCT_ID: "productId";
95
+ readonly REGION: "region";
96
+ readonly TENANCY: "tenancy";
97
+ };
98
+ export type SavingsPlanRateFilterAttribute =
99
+ (typeof SavingsPlanRateFilterAttribute)[keyof typeof SavingsPlanRateFilterAttribute];
100
+ export declare const SavingsPlanOfferingFilterAttribute: {
101
+ readonly instanceFamily: "instanceFamily";
102
+ readonly region: "region";
103
+ };
104
+ export type SavingsPlanOfferingFilterAttribute =
105
+ (typeof SavingsPlanOfferingFilterAttribute)[keyof typeof SavingsPlanOfferingFilterAttribute];
106
+ export declare const SavingsPlanOfferingPropertyKey: {
107
+ readonly INSTANCE_FAMILY: "instanceFamily";
108
+ readonly REGION: "region";
109
+ };
110
+ export type SavingsPlanOfferingPropertyKey =
111
+ (typeof SavingsPlanOfferingPropertyKey)[keyof typeof SavingsPlanOfferingPropertyKey];
@@ -0,0 +1,30 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { SavingsplansServiceException as __BaseException } from "./SavingsplansServiceException";
3
+ export declare class InternalServerException extends __BaseException {
4
+ readonly name: "InternalServerException";
5
+ readonly $fault: "server";
6
+ constructor(
7
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
8
+ );
9
+ }
10
+ export declare class ResourceNotFoundException extends __BaseException {
11
+ readonly name: "ResourceNotFoundException";
12
+ readonly $fault: "client";
13
+ constructor(
14
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
15
+ );
16
+ }
17
+ export declare class ServiceQuotaExceededException extends __BaseException {
18
+ readonly name: "ServiceQuotaExceededException";
19
+ readonly $fault: "client";
20
+ constructor(
21
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
22
+ );
23
+ }
24
+ export declare class ValidationException extends __BaseException {
25
+ readonly name: "ValidationException";
26
+ readonly $fault: "client";
27
+ constructor(
28
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
29
+ );
30
+ }