@aws-sdk/client-cost-optimization-hub 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/README.md +8 -0
- package/dist-cjs/index.js +158 -81
- package/dist-es/CostOptimizationHub.js +2 -0
- package/dist-es/commands/ListEfficiencyMetricsCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +85 -0
- package/dist-es/models/errors.js +67 -0
- package/dist-es/models/models_0.js +1 -148
- package/dist-es/pagination/ListEfficiencyMetricsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +55 -1
- package/dist-types/CostOptimizationHub.d.ts +7 -0
- package/dist-types/CostOptimizationHubClient.d.ts +3 -2
- package/dist-types/commands/ListEfficiencyMetricsCommand.d.ts +111 -0
- package/dist-types/commands/UpdateEnrollmentStatusCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +211 -0
- package/dist-types/models/errors.d.ts +79 -0
- package/dist-types/models/models_0.d.ts +127 -283
- package/dist-types/pagination/ListEfficiencyMetricsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +8 -0
- package/dist-types/ts3.4/CostOptimizationHub.d.ts +17 -0
- package/dist-types/ts3.4/CostOptimizationHubClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListEfficiencyMetricsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +109 -0
- package/dist-types/ts3.4/models/errors.d.ts +42 -0
- package/dist-types/ts3.4/models/models_0.d.ts +46 -146
- package/dist-types/ts3.4/pagination/ListEfficiencyMetricsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
- 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
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const EnrollmentStatus: {
|
|
6
|
+
readonly ACTIVE: "Active";
|
|
7
|
+
readonly INACTIVE: "Inactive";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type EnrollmentStatus = (typeof EnrollmentStatus)[keyof typeof EnrollmentStatus];
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
* @enum
|
|
16
|
+
*/
|
|
17
|
+
export declare const ActionType: {
|
|
18
|
+
readonly DELETE: "Delete";
|
|
19
|
+
readonly MIGRATE_TO_GRAVITON: "MigrateToGraviton";
|
|
20
|
+
readonly PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances";
|
|
21
|
+
readonly PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans";
|
|
22
|
+
readonly RIGHTSIZE: "Rightsize";
|
|
23
|
+
readonly SCALE_IN: "ScaleIn";
|
|
24
|
+
readonly STOP: "Stop";
|
|
25
|
+
readonly UPGRADE: "Upgrade";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
31
|
+
/**
|
|
32
|
+
* @public
|
|
33
|
+
* @enum
|
|
34
|
+
*/
|
|
35
|
+
export declare const AllocationStrategy: {
|
|
36
|
+
readonly LOWEST_PRICE: "LowestPrice";
|
|
37
|
+
readonly PRIORITIZED: "Prioritized";
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export type AllocationStrategy = (typeof AllocationStrategy)[keyof typeof AllocationStrategy];
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
* @enum
|
|
46
|
+
*/
|
|
47
|
+
export declare const MemberAccountDiscountVisibility: {
|
|
48
|
+
readonly ALL: "All";
|
|
49
|
+
readonly NONE: "None";
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export type MemberAccountDiscountVisibility = (typeof MemberAccountDiscountVisibility)[keyof typeof MemberAccountDiscountVisibility];
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
* @enum
|
|
58
|
+
*/
|
|
59
|
+
export declare const PaymentOption: {
|
|
60
|
+
readonly ALL_UPFRONT: "AllUpfront";
|
|
61
|
+
readonly NO_UPFRONT: "NoUpfront";
|
|
62
|
+
readonly PARTIAL_UPFRONT: "PartialUpfront";
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export type PaymentOption = (typeof PaymentOption)[keyof typeof PaymentOption];
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
* @enum
|
|
71
|
+
*/
|
|
72
|
+
export declare const Term: {
|
|
73
|
+
readonly ONE_YEAR: "OneYear";
|
|
74
|
+
readonly THREE_YEARS: "ThreeYears";
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export type Term = (typeof Term)[keyof typeof Term];
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
* @enum
|
|
83
|
+
*/
|
|
84
|
+
export declare const SavingsEstimationMode: {
|
|
85
|
+
readonly AFTER_DISCOUNTS: "AfterDiscounts";
|
|
86
|
+
readonly BEFORE_DISCOUNTS: "BeforeDiscounts";
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export type SavingsEstimationMode = (typeof SavingsEstimationMode)[keyof typeof SavingsEstimationMode];
|
|
92
|
+
/**
|
|
93
|
+
* @public
|
|
94
|
+
* @enum
|
|
95
|
+
*/
|
|
96
|
+
export declare const ValidationExceptionReason: {
|
|
97
|
+
readonly FIELD_VALIDATION_FAILED: "FieldValidationFailed";
|
|
98
|
+
readonly OTHER: "Other";
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
104
|
+
/**
|
|
105
|
+
* @public
|
|
106
|
+
* @enum
|
|
107
|
+
*/
|
|
108
|
+
export declare const Ec2AutoScalingGroupType: {
|
|
109
|
+
readonly MIXED_INSTANCE_TYPES: "MixedInstanceTypes";
|
|
110
|
+
readonly SINGLE_INSTANCE_TYPE: "SingleInstanceType";
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
export type Ec2AutoScalingGroupType = (typeof Ec2AutoScalingGroupType)[keyof typeof Ec2AutoScalingGroupType];
|
|
116
|
+
/**
|
|
117
|
+
* @public
|
|
118
|
+
* @enum
|
|
119
|
+
*/
|
|
120
|
+
export declare const ResourceType: {
|
|
121
|
+
readonly AURORA_DB_CLUSTER_STORAGE: "AuroraDbClusterStorage";
|
|
122
|
+
readonly COMPUTE_SAVINGS_PLANS: "ComputeSavingsPlans";
|
|
123
|
+
readonly DYNAMO_DB_RESERVED_CAPACITY: "DynamoDbReservedCapacity";
|
|
124
|
+
readonly EBS_VOLUME: "EbsVolume";
|
|
125
|
+
readonly EC2_AUTO_SCALING_GROUP: "Ec2AutoScalingGroup";
|
|
126
|
+
readonly EC2_INSTANCE: "Ec2Instance";
|
|
127
|
+
readonly EC2_INSTANCE_SAVINGS_PLANS: "Ec2InstanceSavingsPlans";
|
|
128
|
+
readonly EC2_RESERVED_INSTANCES: "Ec2ReservedInstances";
|
|
129
|
+
readonly ECS_SERVICE: "EcsService";
|
|
130
|
+
readonly ELASTI_CACHE_RESERVED_INSTANCES: "ElastiCacheReservedInstances";
|
|
131
|
+
readonly LAMBDA_FUNCTION: "LambdaFunction";
|
|
132
|
+
readonly MEMORY_DB_RESERVED_INSTANCES: "MemoryDbReservedInstances";
|
|
133
|
+
readonly OPEN_SEARCH_RESERVED_INSTANCES: "OpenSearchReservedInstances";
|
|
134
|
+
readonly RDS_DB_INSTANCE: "RdsDbInstance";
|
|
135
|
+
readonly RDS_DB_INSTANCE_STORAGE: "RdsDbInstanceStorage";
|
|
136
|
+
readonly RDS_RESERVED_INSTANCES: "RdsReservedInstances";
|
|
137
|
+
readonly REDSHIFT_RESERVED_INSTANCES: "RedshiftReservedInstances";
|
|
138
|
+
readonly SAGE_MAKER_SAVINGS_PLANS: "SageMakerSavingsPlans";
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
*/
|
|
143
|
+
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
144
|
+
/**
|
|
145
|
+
* @public
|
|
146
|
+
* @enum
|
|
147
|
+
*/
|
|
148
|
+
export declare const ImplementationEffort: {
|
|
149
|
+
readonly HIGH: "High";
|
|
150
|
+
readonly LOW: "Low";
|
|
151
|
+
readonly MEDIUM: "Medium";
|
|
152
|
+
readonly VERY_HIGH: "VeryHigh";
|
|
153
|
+
readonly VERY_LOW: "VeryLow";
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
export type ImplementationEffort = (typeof ImplementationEffort)[keyof typeof ImplementationEffort];
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
* @enum
|
|
162
|
+
*/
|
|
163
|
+
export declare const Source: {
|
|
164
|
+
readonly COMPUTE_OPTIMIZER: "ComputeOptimizer";
|
|
165
|
+
readonly COST_EXPLORER: "CostExplorer";
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
export type Source = (typeof Source)[keyof typeof Source];
|
|
171
|
+
/**
|
|
172
|
+
* @public
|
|
173
|
+
* @enum
|
|
174
|
+
*/
|
|
175
|
+
export declare const GranularityType: {
|
|
176
|
+
/**
|
|
177
|
+
* <p>Metrics are aggregated daily, with each data point representing a single day's worth of efficiency data. Timestamps are formatted as YYYY-MM-DD.</p>
|
|
178
|
+
*/
|
|
179
|
+
readonly DAILY: "Daily";
|
|
180
|
+
/**
|
|
181
|
+
* <p>Metrics are aggregated monthly, with each data point representing a full month's worth of efficiency data. Timestamps are formatted as YYYY-MM.</p>
|
|
182
|
+
*/
|
|
183
|
+
readonly MONTHLY: "Monthly";
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export type GranularityType = (typeof GranularityType)[keyof typeof GranularityType];
|
|
189
|
+
/**
|
|
190
|
+
* @public
|
|
191
|
+
* @enum
|
|
192
|
+
*/
|
|
193
|
+
export declare const Order: {
|
|
194
|
+
readonly ASC: "Asc";
|
|
195
|
+
readonly DESC: "Desc";
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
export type Order = (typeof Order)[keyof typeof Order];
|
|
201
|
+
/**
|
|
202
|
+
* @public
|
|
203
|
+
* @enum
|
|
204
|
+
*/
|
|
205
|
+
export declare const SummaryMetrics: {
|
|
206
|
+
readonly SAVINGS_PERCENTAGE: "SavingsPercentage";
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
211
|
+
export type SummaryMetrics = (typeof SummaryMetrics)[keyof typeof SummaryMetrics];
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { CostOptimizationHubServiceException as __BaseException } from "./CostOptimizationHubServiceException";
|
|
3
|
+
import { ValidationExceptionReason } from "./enums";
|
|
4
|
+
import { ValidationExceptionDetail } from "./models_0";
|
|
5
|
+
/**
|
|
6
|
+
* <p>You are not authorized to use this operation with the given parameters.</p>
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
10
|
+
readonly name: "AccessDeniedException";
|
|
11
|
+
readonly $fault: "client";
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* <p>An error on the server occurred during the processing of your request. Try again later.</p>
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export declare class InternalServerException extends __BaseException {
|
|
22
|
+
readonly name: "InternalServerException";
|
|
23
|
+
readonly $fault: "server";
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* <p>The request was denied due to request throttling.</p>
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export declare class ThrottlingException extends __BaseException {
|
|
34
|
+
readonly name: "ThrottlingException";
|
|
35
|
+
readonly $fault: "client";
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
export declare class ValidationException extends __BaseException {
|
|
46
|
+
readonly name: "ValidationException";
|
|
47
|
+
readonly $fault: "client";
|
|
48
|
+
/**
|
|
49
|
+
* <p>The reason for the validation exception.</p>
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
reason?: ValidationExceptionReason | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* <p>The list of fields that are invalid.</p>
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
fields?: ValidationExceptionDetail[] | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* <p>The specified Amazon Resource Name (ARN) in the request doesn't exist.</p>
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
68
|
+
readonly name: "ResourceNotFoundException";
|
|
69
|
+
readonly $fault: "client";
|
|
70
|
+
/**
|
|
71
|
+
* <p>The identifier of the resource that was not found.</p>
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
resourceId: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
79
|
+
}
|