@aws-sdk/client-savingsplans 3.933.0 → 3.935.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.
- package/dist-cjs/index.js +87 -86
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +86 -0
- package/dist-es/models/errors.js +49 -0
- package/dist-es/models/models_0.js +1 -135
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +190 -0
- package/dist-types/models/errors.d.ts +50 -0
- package/dist-types/models/models_0.d.ts +1 -240
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +111 -0
- package/dist-types/ts3.4/models/errors.d.ts +30 -0
- package/dist-types/ts3.4/models/models_0.d.ts +15 -141
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -165,92 +165,6 @@ let ValidationException$1 = class ValidationException extends SavingsplansServic
|
|
|
165
165
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
|
-
const SavingsPlanRateFilterName = {
|
|
169
|
-
INSTANCE_TYPE: "instanceType",
|
|
170
|
-
OPERATION: "operation",
|
|
171
|
-
PRODUCT_DESCRIPTION: "productDescription",
|
|
172
|
-
PRODUCT_TYPE: "productType",
|
|
173
|
-
REGION: "region",
|
|
174
|
-
SERVICE_CODE: "serviceCode",
|
|
175
|
-
TENANCY: "tenancy",
|
|
176
|
-
USAGE_TYPE: "usageType",
|
|
177
|
-
};
|
|
178
|
-
const CurrencyCode = {
|
|
179
|
-
CNY: "CNY",
|
|
180
|
-
USD: "USD",
|
|
181
|
-
};
|
|
182
|
-
const SavingsPlanProductType = {
|
|
183
|
-
EC2: "EC2",
|
|
184
|
-
FARGATE: "Fargate",
|
|
185
|
-
LAMBDA: "Lambda",
|
|
186
|
-
SAGEMAKER: "SageMaker",
|
|
187
|
-
};
|
|
188
|
-
const SavingsPlanRatePropertyKey = {
|
|
189
|
-
INSTANCE_FAMILY: "instanceFamily",
|
|
190
|
-
INSTANCE_TYPE: "instanceType",
|
|
191
|
-
PRODUCT_DESCRIPTION: "productDescription",
|
|
192
|
-
REGION: "region",
|
|
193
|
-
TENANCY: "tenancy",
|
|
194
|
-
};
|
|
195
|
-
const SavingsPlanRateServiceCode = {
|
|
196
|
-
EC2: "AmazonEC2",
|
|
197
|
-
FARGATE: "AmazonECS",
|
|
198
|
-
FARGATE_EKS: "AmazonEKS",
|
|
199
|
-
LAMBDA: "AWSLambda",
|
|
200
|
-
SAGEMAKER: "AmazonSageMaker",
|
|
201
|
-
};
|
|
202
|
-
const SavingsPlanRateUnit = {
|
|
203
|
-
HOURS: "Hrs",
|
|
204
|
-
LAMBDA_GB_SECOND: "Lambda-GB-Second",
|
|
205
|
-
REQUEST: "Request",
|
|
206
|
-
};
|
|
207
|
-
const SavingsPlansFilterName = {
|
|
208
|
-
COMMITMENT: "commitment",
|
|
209
|
-
EC2_INSTANCE_FAMILY: "ec2-instance-family",
|
|
210
|
-
END: "end",
|
|
211
|
-
PAYMENT_OPTION: "payment-option",
|
|
212
|
-
REGION: "region",
|
|
213
|
-
SAVINGS_PLAN_TYPE: "savings-plan-type",
|
|
214
|
-
START: "start",
|
|
215
|
-
TERM: "term",
|
|
216
|
-
UPFRONT: "upfront",
|
|
217
|
-
};
|
|
218
|
-
const SavingsPlanState = {
|
|
219
|
-
ACTIVE: "active",
|
|
220
|
-
PAYMENT_FAILED: "payment-failed",
|
|
221
|
-
PAYMENT_PENDING: "payment-pending",
|
|
222
|
-
PENDING_RETURN: "pending-return",
|
|
223
|
-
QUEUED: "queued",
|
|
224
|
-
QUEUED_DELETED: "queued-deleted",
|
|
225
|
-
RETIRED: "retired",
|
|
226
|
-
RETURNED: "returned",
|
|
227
|
-
};
|
|
228
|
-
const SavingsPlanPaymentOption = {
|
|
229
|
-
ALL_UPFRONT: "All Upfront",
|
|
230
|
-
NO_UPFRONT: "No Upfront",
|
|
231
|
-
PARTIAL_UPFRONT: "Partial Upfront",
|
|
232
|
-
};
|
|
233
|
-
const SavingsPlanType = {
|
|
234
|
-
COMPUTE: "Compute",
|
|
235
|
-
EC2_INSTANCE: "EC2Instance",
|
|
236
|
-
SAGEMAKER: "SageMaker",
|
|
237
|
-
};
|
|
238
|
-
const SavingsPlanRateFilterAttribute = {
|
|
239
|
-
INSTANCE_FAMILY: "instanceFamily",
|
|
240
|
-
INSTANCE_TYPE: "instanceType",
|
|
241
|
-
PRODUCT_DESCRIPTION: "productDescription",
|
|
242
|
-
PRODUCT_ID: "productId",
|
|
243
|
-
REGION: "region",
|
|
244
|
-
TENANCY: "tenancy",
|
|
245
|
-
};
|
|
246
|
-
const SavingsPlanOfferingFilterAttribute = {
|
|
247
|
-
instanceFamily: "instanceFamily",
|
|
248
|
-
region: "region",
|
|
249
|
-
};
|
|
250
|
-
const SavingsPlanOfferingPropertyKey = {
|
|
251
|
-
INSTANCE_FAMILY: "instanceFamily",
|
|
252
|
-
REGION: "region",
|
|
253
|
-
};
|
|
254
168
|
|
|
255
169
|
const _CSP = "CreateSavingsPlan";
|
|
256
170
|
const _CSPR = "CreateSavingsPlanRequest";
|
|
@@ -841,6 +755,93 @@ class Savingsplans extends SavingsplansClient {
|
|
|
841
755
|
}
|
|
842
756
|
smithyClient.createAggregatedClient(commands, Savingsplans);
|
|
843
757
|
|
|
758
|
+
const SavingsPlanRateFilterName = {
|
|
759
|
+
INSTANCE_TYPE: "instanceType",
|
|
760
|
+
OPERATION: "operation",
|
|
761
|
+
PRODUCT_DESCRIPTION: "productDescription",
|
|
762
|
+
PRODUCT_TYPE: "productType",
|
|
763
|
+
REGION: "region",
|
|
764
|
+
SERVICE_CODE: "serviceCode",
|
|
765
|
+
TENANCY: "tenancy",
|
|
766
|
+
USAGE_TYPE: "usageType",
|
|
767
|
+
};
|
|
768
|
+
const CurrencyCode = {
|
|
769
|
+
CNY: "CNY",
|
|
770
|
+
USD: "USD",
|
|
771
|
+
};
|
|
772
|
+
const SavingsPlanProductType = {
|
|
773
|
+
EC2: "EC2",
|
|
774
|
+
FARGATE: "Fargate",
|
|
775
|
+
LAMBDA: "Lambda",
|
|
776
|
+
SAGEMAKER: "SageMaker",
|
|
777
|
+
};
|
|
778
|
+
const SavingsPlanRatePropertyKey = {
|
|
779
|
+
INSTANCE_FAMILY: "instanceFamily",
|
|
780
|
+
INSTANCE_TYPE: "instanceType",
|
|
781
|
+
PRODUCT_DESCRIPTION: "productDescription",
|
|
782
|
+
REGION: "region",
|
|
783
|
+
TENANCY: "tenancy",
|
|
784
|
+
};
|
|
785
|
+
const SavingsPlanRateServiceCode = {
|
|
786
|
+
EC2: "AmazonEC2",
|
|
787
|
+
FARGATE: "AmazonECS",
|
|
788
|
+
FARGATE_EKS: "AmazonEKS",
|
|
789
|
+
LAMBDA: "AWSLambda",
|
|
790
|
+
SAGEMAKER: "AmazonSageMaker",
|
|
791
|
+
};
|
|
792
|
+
const SavingsPlanRateUnit = {
|
|
793
|
+
HOURS: "Hrs",
|
|
794
|
+
LAMBDA_GB_SECOND: "Lambda-GB-Second",
|
|
795
|
+
REQUEST: "Request",
|
|
796
|
+
};
|
|
797
|
+
const SavingsPlansFilterName = {
|
|
798
|
+
COMMITMENT: "commitment",
|
|
799
|
+
EC2_INSTANCE_FAMILY: "ec2-instance-family",
|
|
800
|
+
END: "end",
|
|
801
|
+
PAYMENT_OPTION: "payment-option",
|
|
802
|
+
REGION: "region",
|
|
803
|
+
SAVINGS_PLAN_TYPE: "savings-plan-type",
|
|
804
|
+
START: "start",
|
|
805
|
+
TERM: "term",
|
|
806
|
+
UPFRONT: "upfront",
|
|
807
|
+
};
|
|
808
|
+
const SavingsPlanState = {
|
|
809
|
+
ACTIVE: "active",
|
|
810
|
+
PAYMENT_FAILED: "payment-failed",
|
|
811
|
+
PAYMENT_PENDING: "payment-pending",
|
|
812
|
+
PENDING_RETURN: "pending-return",
|
|
813
|
+
QUEUED: "queued",
|
|
814
|
+
QUEUED_DELETED: "queued-deleted",
|
|
815
|
+
RETIRED: "retired",
|
|
816
|
+
RETURNED: "returned",
|
|
817
|
+
};
|
|
818
|
+
const SavingsPlanPaymentOption = {
|
|
819
|
+
ALL_UPFRONT: "All Upfront",
|
|
820
|
+
NO_UPFRONT: "No Upfront",
|
|
821
|
+
PARTIAL_UPFRONT: "Partial Upfront",
|
|
822
|
+
};
|
|
823
|
+
const SavingsPlanType = {
|
|
824
|
+
COMPUTE: "Compute",
|
|
825
|
+
EC2_INSTANCE: "EC2Instance",
|
|
826
|
+
SAGEMAKER: "SageMaker",
|
|
827
|
+
};
|
|
828
|
+
const SavingsPlanRateFilterAttribute = {
|
|
829
|
+
INSTANCE_FAMILY: "instanceFamily",
|
|
830
|
+
INSTANCE_TYPE: "instanceType",
|
|
831
|
+
PRODUCT_DESCRIPTION: "productDescription",
|
|
832
|
+
PRODUCT_ID: "productId",
|
|
833
|
+
REGION: "region",
|
|
834
|
+
TENANCY: "tenancy",
|
|
835
|
+
};
|
|
836
|
+
const SavingsPlanOfferingFilterAttribute = {
|
|
837
|
+
instanceFamily: "instanceFamily",
|
|
838
|
+
region: "region",
|
|
839
|
+
};
|
|
840
|
+
const SavingsPlanOfferingPropertyKey = {
|
|
841
|
+
INSTANCE_FAMILY: "instanceFamily",
|
|
842
|
+
REGION: "region",
|
|
843
|
+
};
|
|
844
|
+
|
|
844
845
|
Object.defineProperty(exports, "$Command", {
|
|
845
846
|
enumerable: true,
|
|
846
847
|
get: function () { return smithyClient.Command; }
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./SavingsplansClient";
|
|
2
2
|
export * from "./Savingsplans";
|
|
3
3
|
export * from "./commands";
|
|
4
|
-
export * from "./models";
|
|
4
|
+
export * from "./models/enums";
|
|
5
|
+
export * from "./models/errors";
|
|
5
6
|
export { SavingsplansServiceException } from "./models/SavingsplansServiceException";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export const SavingsPlanRateFilterName = {
|
|
2
|
+
INSTANCE_TYPE: "instanceType",
|
|
3
|
+
OPERATION: "operation",
|
|
4
|
+
PRODUCT_DESCRIPTION: "productDescription",
|
|
5
|
+
PRODUCT_TYPE: "productType",
|
|
6
|
+
REGION: "region",
|
|
7
|
+
SERVICE_CODE: "serviceCode",
|
|
8
|
+
TENANCY: "tenancy",
|
|
9
|
+
USAGE_TYPE: "usageType",
|
|
10
|
+
};
|
|
11
|
+
export const CurrencyCode = {
|
|
12
|
+
CNY: "CNY",
|
|
13
|
+
USD: "USD",
|
|
14
|
+
};
|
|
15
|
+
export const SavingsPlanProductType = {
|
|
16
|
+
EC2: "EC2",
|
|
17
|
+
FARGATE: "Fargate",
|
|
18
|
+
LAMBDA: "Lambda",
|
|
19
|
+
SAGEMAKER: "SageMaker",
|
|
20
|
+
};
|
|
21
|
+
export const SavingsPlanRatePropertyKey = {
|
|
22
|
+
INSTANCE_FAMILY: "instanceFamily",
|
|
23
|
+
INSTANCE_TYPE: "instanceType",
|
|
24
|
+
PRODUCT_DESCRIPTION: "productDescription",
|
|
25
|
+
REGION: "region",
|
|
26
|
+
TENANCY: "tenancy",
|
|
27
|
+
};
|
|
28
|
+
export const SavingsPlanRateServiceCode = {
|
|
29
|
+
EC2: "AmazonEC2",
|
|
30
|
+
FARGATE: "AmazonECS",
|
|
31
|
+
FARGATE_EKS: "AmazonEKS",
|
|
32
|
+
LAMBDA: "AWSLambda",
|
|
33
|
+
SAGEMAKER: "AmazonSageMaker",
|
|
34
|
+
};
|
|
35
|
+
export const SavingsPlanRateUnit = {
|
|
36
|
+
HOURS: "Hrs",
|
|
37
|
+
LAMBDA_GB_SECOND: "Lambda-GB-Second",
|
|
38
|
+
REQUEST: "Request",
|
|
39
|
+
};
|
|
40
|
+
export const SavingsPlansFilterName = {
|
|
41
|
+
COMMITMENT: "commitment",
|
|
42
|
+
EC2_INSTANCE_FAMILY: "ec2-instance-family",
|
|
43
|
+
END: "end",
|
|
44
|
+
PAYMENT_OPTION: "payment-option",
|
|
45
|
+
REGION: "region",
|
|
46
|
+
SAVINGS_PLAN_TYPE: "savings-plan-type",
|
|
47
|
+
START: "start",
|
|
48
|
+
TERM: "term",
|
|
49
|
+
UPFRONT: "upfront",
|
|
50
|
+
};
|
|
51
|
+
export const SavingsPlanState = {
|
|
52
|
+
ACTIVE: "active",
|
|
53
|
+
PAYMENT_FAILED: "payment-failed",
|
|
54
|
+
PAYMENT_PENDING: "payment-pending",
|
|
55
|
+
PENDING_RETURN: "pending-return",
|
|
56
|
+
QUEUED: "queued",
|
|
57
|
+
QUEUED_DELETED: "queued-deleted",
|
|
58
|
+
RETIRED: "retired",
|
|
59
|
+
RETURNED: "returned",
|
|
60
|
+
};
|
|
61
|
+
export const SavingsPlanPaymentOption = {
|
|
62
|
+
ALL_UPFRONT: "All Upfront",
|
|
63
|
+
NO_UPFRONT: "No Upfront",
|
|
64
|
+
PARTIAL_UPFRONT: "Partial Upfront",
|
|
65
|
+
};
|
|
66
|
+
export const SavingsPlanType = {
|
|
67
|
+
COMPUTE: "Compute",
|
|
68
|
+
EC2_INSTANCE: "EC2Instance",
|
|
69
|
+
SAGEMAKER: "SageMaker",
|
|
70
|
+
};
|
|
71
|
+
export const SavingsPlanRateFilterAttribute = {
|
|
72
|
+
INSTANCE_FAMILY: "instanceFamily",
|
|
73
|
+
INSTANCE_TYPE: "instanceType",
|
|
74
|
+
PRODUCT_DESCRIPTION: "productDescription",
|
|
75
|
+
PRODUCT_ID: "productId",
|
|
76
|
+
REGION: "region",
|
|
77
|
+
TENANCY: "tenancy",
|
|
78
|
+
};
|
|
79
|
+
export const SavingsPlanOfferingFilterAttribute = {
|
|
80
|
+
instanceFamily: "instanceFamily",
|
|
81
|
+
region: "region",
|
|
82
|
+
};
|
|
83
|
+
export const SavingsPlanOfferingPropertyKey = {
|
|
84
|
+
INSTANCE_FAMILY: "instanceFamily",
|
|
85
|
+
REGION: "region",
|
|
86
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { SavingsplansServiceException as __BaseException } from "./SavingsplansServiceException";
|
|
2
|
+
export class InternalServerException extends __BaseException {
|
|
3
|
+
name = "InternalServerException";
|
|
4
|
+
$fault = "server";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "InternalServerException",
|
|
8
|
+
$fault: "server",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
15
|
+
name = "ResourceNotFoundException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "ResourceNotFoundException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
27
|
+
name = "ServiceQuotaExceededException";
|
|
28
|
+
$fault = "client";
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "ServiceQuotaExceededException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export class ValidationException extends __BaseException {
|
|
39
|
+
name = "ValidationException";
|
|
40
|
+
$fault = "client";
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "ValidationException",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,135 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class InternalServerException extends __BaseException {
|
|
3
|
-
name = "InternalServerException";
|
|
4
|
-
$fault = "server";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "InternalServerException",
|
|
8
|
-
$fault: "server",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
15
|
-
name = "ResourceNotFoundException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "ResourceNotFoundException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export class ServiceQuotaExceededException extends __BaseException {
|
|
27
|
-
name = "ServiceQuotaExceededException";
|
|
28
|
-
$fault = "client";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "ServiceQuotaExceededException",
|
|
32
|
-
$fault: "client",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
export class ValidationException extends __BaseException {
|
|
39
|
-
name = "ValidationException";
|
|
40
|
-
$fault = "client";
|
|
41
|
-
constructor(opts) {
|
|
42
|
-
super({
|
|
43
|
-
name: "ValidationException",
|
|
44
|
-
$fault: "client",
|
|
45
|
-
...opts,
|
|
46
|
-
});
|
|
47
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export const SavingsPlanRateFilterName = {
|
|
51
|
-
INSTANCE_TYPE: "instanceType",
|
|
52
|
-
OPERATION: "operation",
|
|
53
|
-
PRODUCT_DESCRIPTION: "productDescription",
|
|
54
|
-
PRODUCT_TYPE: "productType",
|
|
55
|
-
REGION: "region",
|
|
56
|
-
SERVICE_CODE: "serviceCode",
|
|
57
|
-
TENANCY: "tenancy",
|
|
58
|
-
USAGE_TYPE: "usageType",
|
|
59
|
-
};
|
|
60
|
-
export const CurrencyCode = {
|
|
61
|
-
CNY: "CNY",
|
|
62
|
-
USD: "USD",
|
|
63
|
-
};
|
|
64
|
-
export const SavingsPlanProductType = {
|
|
65
|
-
EC2: "EC2",
|
|
66
|
-
FARGATE: "Fargate",
|
|
67
|
-
LAMBDA: "Lambda",
|
|
68
|
-
SAGEMAKER: "SageMaker",
|
|
69
|
-
};
|
|
70
|
-
export const SavingsPlanRatePropertyKey = {
|
|
71
|
-
INSTANCE_FAMILY: "instanceFamily",
|
|
72
|
-
INSTANCE_TYPE: "instanceType",
|
|
73
|
-
PRODUCT_DESCRIPTION: "productDescription",
|
|
74
|
-
REGION: "region",
|
|
75
|
-
TENANCY: "tenancy",
|
|
76
|
-
};
|
|
77
|
-
export const SavingsPlanRateServiceCode = {
|
|
78
|
-
EC2: "AmazonEC2",
|
|
79
|
-
FARGATE: "AmazonECS",
|
|
80
|
-
FARGATE_EKS: "AmazonEKS",
|
|
81
|
-
LAMBDA: "AWSLambda",
|
|
82
|
-
SAGEMAKER: "AmazonSageMaker",
|
|
83
|
-
};
|
|
84
|
-
export const SavingsPlanRateUnit = {
|
|
85
|
-
HOURS: "Hrs",
|
|
86
|
-
LAMBDA_GB_SECOND: "Lambda-GB-Second",
|
|
87
|
-
REQUEST: "Request",
|
|
88
|
-
};
|
|
89
|
-
export const SavingsPlansFilterName = {
|
|
90
|
-
COMMITMENT: "commitment",
|
|
91
|
-
EC2_INSTANCE_FAMILY: "ec2-instance-family",
|
|
92
|
-
END: "end",
|
|
93
|
-
PAYMENT_OPTION: "payment-option",
|
|
94
|
-
REGION: "region",
|
|
95
|
-
SAVINGS_PLAN_TYPE: "savings-plan-type",
|
|
96
|
-
START: "start",
|
|
97
|
-
TERM: "term",
|
|
98
|
-
UPFRONT: "upfront",
|
|
99
|
-
};
|
|
100
|
-
export const SavingsPlanState = {
|
|
101
|
-
ACTIVE: "active",
|
|
102
|
-
PAYMENT_FAILED: "payment-failed",
|
|
103
|
-
PAYMENT_PENDING: "payment-pending",
|
|
104
|
-
PENDING_RETURN: "pending-return",
|
|
105
|
-
QUEUED: "queued",
|
|
106
|
-
QUEUED_DELETED: "queued-deleted",
|
|
107
|
-
RETIRED: "retired",
|
|
108
|
-
RETURNED: "returned",
|
|
109
|
-
};
|
|
110
|
-
export const SavingsPlanPaymentOption = {
|
|
111
|
-
ALL_UPFRONT: "All Upfront",
|
|
112
|
-
NO_UPFRONT: "No Upfront",
|
|
113
|
-
PARTIAL_UPFRONT: "Partial Upfront",
|
|
114
|
-
};
|
|
115
|
-
export const SavingsPlanType = {
|
|
116
|
-
COMPUTE: "Compute",
|
|
117
|
-
EC2_INSTANCE: "EC2Instance",
|
|
118
|
-
SAGEMAKER: "SageMaker",
|
|
119
|
-
};
|
|
120
|
-
export const SavingsPlanRateFilterAttribute = {
|
|
121
|
-
INSTANCE_FAMILY: "instanceFamily",
|
|
122
|
-
INSTANCE_TYPE: "instanceType",
|
|
123
|
-
PRODUCT_DESCRIPTION: "productDescription",
|
|
124
|
-
PRODUCT_ID: "productId",
|
|
125
|
-
REGION: "region",
|
|
126
|
-
TENANCY: "tenancy",
|
|
127
|
-
};
|
|
128
|
-
export const SavingsPlanOfferingFilterAttribute = {
|
|
129
|
-
instanceFamily: "instanceFamily",
|
|
130
|
-
region: "region",
|
|
131
|
-
};
|
|
132
|
-
export const SavingsPlanOfferingPropertyKey = {
|
|
133
|
-
INSTANCE_FAMILY: "instanceFamily",
|
|
134
|
-
REGION: "region",
|
|
135
|
-
};
|
|
1
|
+
export {};
|
|
@@ -124,7 +124,7 @@ const _v = "values";
|
|
|
124
124
|
const _va = "value";
|
|
125
125
|
const n0 = "com.amazonaws.savingsplans";
|
|
126
126
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
127
|
-
import { InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ValidationException as __ValidationException, } from "../models/
|
|
127
|
+
import { InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ValidationException as __ValidationException, } from "../models/errors";
|
|
128
128
|
import { SavingsplansServiceException as __SavingsplansServiceException } from "../models/SavingsplansServiceException";
|
|
129
129
|
export var CreateSavingsPlanRequest = [
|
|
130
130
|
3,
|
package/dist-types/index.d.ts
CHANGED
|
@@ -12,5 +12,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
12
12
|
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
13
13
|
export type { SavingsplansExtensionConfiguration } from "./extensionConfiguration";
|
|
14
14
|
export * from "./commands";
|
|
15
|
-
export * from "./models";
|
|
15
|
+
export * from "./models/enums";
|
|
16
|
+
export * from "./models/errors";
|
|
17
|
+
export type * from "./models/models_0";
|
|
16
18
|
export { SavingsplansServiceException } from "./models/SavingsplansServiceException";
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const SavingsPlanRateFilterName: {
|
|
6
|
+
readonly INSTANCE_TYPE: "instanceType";
|
|
7
|
+
readonly OPERATION: "operation";
|
|
8
|
+
readonly PRODUCT_DESCRIPTION: "productDescription";
|
|
9
|
+
readonly PRODUCT_TYPE: "productType";
|
|
10
|
+
readonly REGION: "region";
|
|
11
|
+
readonly SERVICE_CODE: "serviceCode";
|
|
12
|
+
readonly TENANCY: "tenancy";
|
|
13
|
+
readonly USAGE_TYPE: "usageType";
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export type SavingsPlanRateFilterName = (typeof SavingsPlanRateFilterName)[keyof typeof SavingsPlanRateFilterName];
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
* @enum
|
|
22
|
+
*/
|
|
23
|
+
export declare const CurrencyCode: {
|
|
24
|
+
readonly CNY: "CNY";
|
|
25
|
+
readonly USD: "USD";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
export type CurrencyCode = (typeof CurrencyCode)[keyof typeof CurrencyCode];
|
|
31
|
+
/**
|
|
32
|
+
* @public
|
|
33
|
+
* @enum
|
|
34
|
+
*/
|
|
35
|
+
export declare const SavingsPlanProductType: {
|
|
36
|
+
readonly EC2: "EC2";
|
|
37
|
+
readonly FARGATE: "Fargate";
|
|
38
|
+
readonly LAMBDA: "Lambda";
|
|
39
|
+
readonly SAGEMAKER: "SageMaker";
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export type SavingsPlanProductType = (typeof SavingsPlanProductType)[keyof typeof SavingsPlanProductType];
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
* @enum
|
|
48
|
+
*/
|
|
49
|
+
export declare const SavingsPlanRatePropertyKey: {
|
|
50
|
+
readonly INSTANCE_FAMILY: "instanceFamily";
|
|
51
|
+
readonly INSTANCE_TYPE: "instanceType";
|
|
52
|
+
readonly PRODUCT_DESCRIPTION: "productDescription";
|
|
53
|
+
readonly REGION: "region";
|
|
54
|
+
readonly TENANCY: "tenancy";
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
export type SavingsPlanRatePropertyKey = (typeof SavingsPlanRatePropertyKey)[keyof typeof SavingsPlanRatePropertyKey];
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
* @enum
|
|
63
|
+
*/
|
|
64
|
+
export declare const SavingsPlanRateServiceCode: {
|
|
65
|
+
readonly EC2: "AmazonEC2";
|
|
66
|
+
readonly FARGATE: "AmazonECS";
|
|
67
|
+
readonly FARGATE_EKS: "AmazonEKS";
|
|
68
|
+
readonly LAMBDA: "AWSLambda";
|
|
69
|
+
readonly SAGEMAKER: "AmazonSageMaker";
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export type SavingsPlanRateServiceCode = (typeof SavingsPlanRateServiceCode)[keyof typeof SavingsPlanRateServiceCode];
|
|
75
|
+
/**
|
|
76
|
+
* @public
|
|
77
|
+
* @enum
|
|
78
|
+
*/
|
|
79
|
+
export declare const SavingsPlanRateUnit: {
|
|
80
|
+
readonly HOURS: "Hrs";
|
|
81
|
+
readonly LAMBDA_GB_SECOND: "Lambda-GB-Second";
|
|
82
|
+
readonly REQUEST: "Request";
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export type SavingsPlanRateUnit = (typeof SavingsPlanRateUnit)[keyof typeof SavingsPlanRateUnit];
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
* @enum
|
|
91
|
+
*/
|
|
92
|
+
export declare const SavingsPlansFilterName: {
|
|
93
|
+
readonly COMMITMENT: "commitment";
|
|
94
|
+
readonly EC2_INSTANCE_FAMILY: "ec2-instance-family";
|
|
95
|
+
readonly END: "end";
|
|
96
|
+
readonly PAYMENT_OPTION: "payment-option";
|
|
97
|
+
readonly REGION: "region";
|
|
98
|
+
readonly SAVINGS_PLAN_TYPE: "savings-plan-type";
|
|
99
|
+
readonly START: "start";
|
|
100
|
+
readonly TERM: "term";
|
|
101
|
+
readonly UPFRONT: "upfront";
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
export type SavingsPlansFilterName = (typeof SavingsPlansFilterName)[keyof typeof SavingsPlansFilterName];
|
|
107
|
+
/**
|
|
108
|
+
* @public
|
|
109
|
+
* @enum
|
|
110
|
+
*/
|
|
111
|
+
export declare const SavingsPlanState: {
|
|
112
|
+
readonly ACTIVE: "active";
|
|
113
|
+
readonly PAYMENT_FAILED: "payment-failed";
|
|
114
|
+
readonly PAYMENT_PENDING: "payment-pending";
|
|
115
|
+
readonly PENDING_RETURN: "pending-return";
|
|
116
|
+
readonly QUEUED: "queued";
|
|
117
|
+
readonly QUEUED_DELETED: "queued-deleted";
|
|
118
|
+
readonly RETIRED: "retired";
|
|
119
|
+
readonly RETURNED: "returned";
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
export type SavingsPlanState = (typeof SavingsPlanState)[keyof typeof SavingsPlanState];
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
* @enum
|
|
128
|
+
*/
|
|
129
|
+
export declare const SavingsPlanPaymentOption: {
|
|
130
|
+
readonly ALL_UPFRONT: "All Upfront";
|
|
131
|
+
readonly NO_UPFRONT: "No Upfront";
|
|
132
|
+
readonly PARTIAL_UPFRONT: "Partial Upfront";
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
export type SavingsPlanPaymentOption = (typeof SavingsPlanPaymentOption)[keyof typeof SavingsPlanPaymentOption];
|
|
138
|
+
/**
|
|
139
|
+
* @public
|
|
140
|
+
* @enum
|
|
141
|
+
*/
|
|
142
|
+
export declare const SavingsPlanType: {
|
|
143
|
+
readonly COMPUTE: "Compute";
|
|
144
|
+
readonly EC2_INSTANCE: "EC2Instance";
|
|
145
|
+
readonly SAGEMAKER: "SageMaker";
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
export type SavingsPlanType = (typeof SavingsPlanType)[keyof typeof SavingsPlanType];
|
|
151
|
+
/**
|
|
152
|
+
* @public
|
|
153
|
+
* @enum
|
|
154
|
+
*/
|
|
155
|
+
export declare const SavingsPlanRateFilterAttribute: {
|
|
156
|
+
readonly INSTANCE_FAMILY: "instanceFamily";
|
|
157
|
+
readonly INSTANCE_TYPE: "instanceType";
|
|
158
|
+
readonly PRODUCT_DESCRIPTION: "productDescription";
|
|
159
|
+
readonly PRODUCT_ID: "productId";
|
|
160
|
+
readonly REGION: "region";
|
|
161
|
+
readonly TENANCY: "tenancy";
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* @public
|
|
165
|
+
*/
|
|
166
|
+
export type SavingsPlanRateFilterAttribute = (typeof SavingsPlanRateFilterAttribute)[keyof typeof SavingsPlanRateFilterAttribute];
|
|
167
|
+
/**
|
|
168
|
+
* @public
|
|
169
|
+
* @enum
|
|
170
|
+
*/
|
|
171
|
+
export declare const SavingsPlanOfferingFilterAttribute: {
|
|
172
|
+
readonly instanceFamily: "instanceFamily";
|
|
173
|
+
readonly region: "region";
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
export type SavingsPlanOfferingFilterAttribute = (typeof SavingsPlanOfferingFilterAttribute)[keyof typeof SavingsPlanOfferingFilterAttribute];
|
|
179
|
+
/**
|
|
180
|
+
* @public
|
|
181
|
+
* @enum
|
|
182
|
+
*/
|
|
183
|
+
export declare const SavingsPlanOfferingPropertyKey: {
|
|
184
|
+
readonly INSTANCE_FAMILY: "instanceFamily";
|
|
185
|
+
readonly REGION: "region";
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* @public
|
|
189
|
+
*/
|
|
190
|
+
export type SavingsPlanOfferingPropertyKey = (typeof SavingsPlanOfferingPropertyKey)[keyof typeof SavingsPlanOfferingPropertyKey];
|