@aws-sdk/client-cost-optimization-hub 3.934.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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./GetPreferencesCommand";
|
|
2
2
|
export * from "./GetRecommendationCommand";
|
|
3
|
+
export * from "./ListEfficiencyMetricsCommand";
|
|
3
4
|
export * from "./ListEnrollmentStatusesCommand";
|
|
4
5
|
export * from "./ListRecommendationSummariesCommand";
|
|
5
6
|
export * from "./ListRecommendationsCommand";
|
|
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { CostOptimizationHubExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
|
-
export * from "./models";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
9
11
|
export { CostOptimizationHubServiceException } from "./models/CostOptimizationHubServiceException";
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export declare const EnrollmentStatus: {
|
|
2
|
+
readonly ACTIVE: "Active";
|
|
3
|
+
readonly INACTIVE: "Inactive";
|
|
4
|
+
};
|
|
5
|
+
export type EnrollmentStatus =
|
|
6
|
+
(typeof EnrollmentStatus)[keyof typeof EnrollmentStatus];
|
|
7
|
+
export declare const ActionType: {
|
|
8
|
+
readonly DELETE: "Delete";
|
|
9
|
+
readonly MIGRATE_TO_GRAVITON: "MigrateToGraviton";
|
|
10
|
+
readonly PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances";
|
|
11
|
+
readonly PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans";
|
|
12
|
+
readonly RIGHTSIZE: "Rightsize";
|
|
13
|
+
readonly SCALE_IN: "ScaleIn";
|
|
14
|
+
readonly STOP: "Stop";
|
|
15
|
+
readonly UPGRADE: "Upgrade";
|
|
16
|
+
};
|
|
17
|
+
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
18
|
+
export declare const AllocationStrategy: {
|
|
19
|
+
readonly LOWEST_PRICE: "LowestPrice";
|
|
20
|
+
readonly PRIORITIZED: "Prioritized";
|
|
21
|
+
};
|
|
22
|
+
export type AllocationStrategy =
|
|
23
|
+
(typeof AllocationStrategy)[keyof typeof AllocationStrategy];
|
|
24
|
+
export declare const MemberAccountDiscountVisibility: {
|
|
25
|
+
readonly ALL: "All";
|
|
26
|
+
readonly NONE: "None";
|
|
27
|
+
};
|
|
28
|
+
export type MemberAccountDiscountVisibility =
|
|
29
|
+
(typeof MemberAccountDiscountVisibility)[keyof typeof MemberAccountDiscountVisibility];
|
|
30
|
+
export declare const PaymentOption: {
|
|
31
|
+
readonly ALL_UPFRONT: "AllUpfront";
|
|
32
|
+
readonly NO_UPFRONT: "NoUpfront";
|
|
33
|
+
readonly PARTIAL_UPFRONT: "PartialUpfront";
|
|
34
|
+
};
|
|
35
|
+
export type PaymentOption = (typeof PaymentOption)[keyof typeof PaymentOption];
|
|
36
|
+
export declare const Term: {
|
|
37
|
+
readonly ONE_YEAR: "OneYear";
|
|
38
|
+
readonly THREE_YEARS: "ThreeYears";
|
|
39
|
+
};
|
|
40
|
+
export type Term = (typeof Term)[keyof typeof Term];
|
|
41
|
+
export declare const SavingsEstimationMode: {
|
|
42
|
+
readonly AFTER_DISCOUNTS: "AfterDiscounts";
|
|
43
|
+
readonly BEFORE_DISCOUNTS: "BeforeDiscounts";
|
|
44
|
+
};
|
|
45
|
+
export type SavingsEstimationMode =
|
|
46
|
+
(typeof SavingsEstimationMode)[keyof typeof SavingsEstimationMode];
|
|
47
|
+
export declare const ValidationExceptionReason: {
|
|
48
|
+
readonly FIELD_VALIDATION_FAILED: "FieldValidationFailed";
|
|
49
|
+
readonly OTHER: "Other";
|
|
50
|
+
};
|
|
51
|
+
export type ValidationExceptionReason =
|
|
52
|
+
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
53
|
+
export declare const Ec2AutoScalingGroupType: {
|
|
54
|
+
readonly MIXED_INSTANCE_TYPES: "MixedInstanceTypes";
|
|
55
|
+
readonly SINGLE_INSTANCE_TYPE: "SingleInstanceType";
|
|
56
|
+
};
|
|
57
|
+
export type Ec2AutoScalingGroupType =
|
|
58
|
+
(typeof Ec2AutoScalingGroupType)[keyof typeof Ec2AutoScalingGroupType];
|
|
59
|
+
export declare const ResourceType: {
|
|
60
|
+
readonly AURORA_DB_CLUSTER_STORAGE: "AuroraDbClusterStorage";
|
|
61
|
+
readonly COMPUTE_SAVINGS_PLANS: "ComputeSavingsPlans";
|
|
62
|
+
readonly DYNAMO_DB_RESERVED_CAPACITY: "DynamoDbReservedCapacity";
|
|
63
|
+
readonly EBS_VOLUME: "EbsVolume";
|
|
64
|
+
readonly EC2_AUTO_SCALING_GROUP: "Ec2AutoScalingGroup";
|
|
65
|
+
readonly EC2_INSTANCE: "Ec2Instance";
|
|
66
|
+
readonly EC2_INSTANCE_SAVINGS_PLANS: "Ec2InstanceSavingsPlans";
|
|
67
|
+
readonly EC2_RESERVED_INSTANCES: "Ec2ReservedInstances";
|
|
68
|
+
readonly ECS_SERVICE: "EcsService";
|
|
69
|
+
readonly ELASTI_CACHE_RESERVED_INSTANCES: "ElastiCacheReservedInstances";
|
|
70
|
+
readonly LAMBDA_FUNCTION: "LambdaFunction";
|
|
71
|
+
readonly MEMORY_DB_RESERVED_INSTANCES: "MemoryDbReservedInstances";
|
|
72
|
+
readonly OPEN_SEARCH_RESERVED_INSTANCES: "OpenSearchReservedInstances";
|
|
73
|
+
readonly RDS_DB_INSTANCE: "RdsDbInstance";
|
|
74
|
+
readonly RDS_DB_INSTANCE_STORAGE: "RdsDbInstanceStorage";
|
|
75
|
+
readonly RDS_RESERVED_INSTANCES: "RdsReservedInstances";
|
|
76
|
+
readonly REDSHIFT_RESERVED_INSTANCES: "RedshiftReservedInstances";
|
|
77
|
+
readonly SAGE_MAKER_SAVINGS_PLANS: "SageMakerSavingsPlans";
|
|
78
|
+
};
|
|
79
|
+
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
80
|
+
export declare const ImplementationEffort: {
|
|
81
|
+
readonly HIGH: "High";
|
|
82
|
+
readonly LOW: "Low";
|
|
83
|
+
readonly MEDIUM: "Medium";
|
|
84
|
+
readonly VERY_HIGH: "VeryHigh";
|
|
85
|
+
readonly VERY_LOW: "VeryLow";
|
|
86
|
+
};
|
|
87
|
+
export type ImplementationEffort =
|
|
88
|
+
(typeof ImplementationEffort)[keyof typeof ImplementationEffort];
|
|
89
|
+
export declare const Source: {
|
|
90
|
+
readonly COMPUTE_OPTIMIZER: "ComputeOptimizer";
|
|
91
|
+
readonly COST_EXPLORER: "CostExplorer";
|
|
92
|
+
};
|
|
93
|
+
export type Source = (typeof Source)[keyof typeof Source];
|
|
94
|
+
export declare const GranularityType: {
|
|
95
|
+
readonly DAILY: "Daily";
|
|
96
|
+
readonly MONTHLY: "Monthly";
|
|
97
|
+
};
|
|
98
|
+
export type GranularityType =
|
|
99
|
+
(typeof GranularityType)[keyof typeof GranularityType];
|
|
100
|
+
export declare const Order: {
|
|
101
|
+
readonly ASC: "Asc";
|
|
102
|
+
readonly DESC: "Desc";
|
|
103
|
+
};
|
|
104
|
+
export type Order = (typeof Order)[keyof typeof Order];
|
|
105
|
+
export declare const SummaryMetrics: {
|
|
106
|
+
readonly SAVINGS_PERCENTAGE: "SavingsPercentage";
|
|
107
|
+
};
|
|
108
|
+
export type SummaryMetrics =
|
|
109
|
+
(typeof SummaryMetrics)[keyof typeof SummaryMetrics];
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
6
|
+
readonly name: "AccessDeniedException";
|
|
7
|
+
readonly $fault: "client";
|
|
8
|
+
constructor(
|
|
9
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
export declare class InternalServerException extends __BaseException {
|
|
13
|
+
readonly name: "InternalServerException";
|
|
14
|
+
readonly $fault: "server";
|
|
15
|
+
constructor(
|
|
16
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export declare class ThrottlingException extends __BaseException {
|
|
20
|
+
readonly name: "ThrottlingException";
|
|
21
|
+
readonly $fault: "client";
|
|
22
|
+
constructor(
|
|
23
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
export declare class ValidationException extends __BaseException {
|
|
27
|
+
readonly name: "ValidationException";
|
|
28
|
+
readonly $fault: "client";
|
|
29
|
+
reason?: ValidationExceptionReason | undefined;
|
|
30
|
+
fields?: ValidationExceptionDetail[] | undefined;
|
|
31
|
+
constructor(
|
|
32
|
+
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
36
|
+
readonly name: "ResourceNotFoundException";
|
|
37
|
+
readonly $fault: "client";
|
|
38
|
+
resourceId: string | undefined;
|
|
39
|
+
constructor(
|
|
40
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -1,41 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import {
|
|
2
|
+
ActionType,
|
|
3
|
+
AllocationStrategy,
|
|
4
|
+
Ec2AutoScalingGroupType,
|
|
5
|
+
EnrollmentStatus,
|
|
6
|
+
GranularityType,
|
|
7
|
+
ImplementationEffort,
|
|
8
|
+
MemberAccountDiscountVisibility,
|
|
9
|
+
Order,
|
|
10
|
+
PaymentOption,
|
|
11
|
+
ResourceType,
|
|
12
|
+
SavingsEstimationMode,
|
|
13
|
+
Source,
|
|
14
|
+
SummaryMetrics,
|
|
15
|
+
Term,
|
|
16
|
+
} from "./enums";
|
|
16
17
|
export interface AccountEnrollmentStatus {
|
|
17
18
|
accountId?: string | undefined;
|
|
18
19
|
status?: EnrollmentStatus | undefined;
|
|
19
20
|
lastUpdatedTimestamp?: Date | undefined;
|
|
20
21
|
createdTimestamp?: Date | undefined;
|
|
21
22
|
}
|
|
22
|
-
export declare const ActionType: {
|
|
23
|
-
readonly DELETE: "Delete";
|
|
24
|
-
readonly MIGRATE_TO_GRAVITON: "MigrateToGraviton";
|
|
25
|
-
readonly PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances";
|
|
26
|
-
readonly PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans";
|
|
27
|
-
readonly RIGHTSIZE: "Rightsize";
|
|
28
|
-
readonly SCALE_IN: "ScaleIn";
|
|
29
|
-
readonly STOP: "Stop";
|
|
30
|
-
readonly UPGRADE: "Upgrade";
|
|
31
|
-
};
|
|
32
|
-
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
33
|
-
export declare const AllocationStrategy: {
|
|
34
|
-
readonly LOWEST_PRICE: "LowestPrice";
|
|
35
|
-
readonly PRIORITIZED: "Prioritized";
|
|
36
|
-
};
|
|
37
|
-
export type AllocationStrategy =
|
|
38
|
-
(typeof AllocationStrategy)[keyof typeof AllocationStrategy];
|
|
39
23
|
export interface AuroraDbClusterStorageConfiguration {
|
|
40
24
|
storageType?: string | undefined;
|
|
41
25
|
}
|
|
@@ -95,71 +79,19 @@ export interface ComputeSavingsPlans {
|
|
|
95
79
|
costCalculation?: SavingsPlansCostCalculation | undefined;
|
|
96
80
|
}
|
|
97
81
|
export interface GetPreferencesRequest {}
|
|
98
|
-
export declare const MemberAccountDiscountVisibility: {
|
|
99
|
-
readonly ALL: "All";
|
|
100
|
-
readonly NONE: "None";
|
|
101
|
-
};
|
|
102
|
-
export type MemberAccountDiscountVisibility =
|
|
103
|
-
(typeof MemberAccountDiscountVisibility)[keyof typeof MemberAccountDiscountVisibility];
|
|
104
|
-
export declare const PaymentOption: {
|
|
105
|
-
readonly ALL_UPFRONT: "AllUpfront";
|
|
106
|
-
readonly NO_UPFRONT: "NoUpfront";
|
|
107
|
-
readonly PARTIAL_UPFRONT: "PartialUpfront";
|
|
108
|
-
};
|
|
109
|
-
export type PaymentOption = (typeof PaymentOption)[keyof typeof PaymentOption];
|
|
110
|
-
export declare const Term: {
|
|
111
|
-
readonly ONE_YEAR: "OneYear";
|
|
112
|
-
readonly THREE_YEARS: "ThreeYears";
|
|
113
|
-
};
|
|
114
|
-
export type Term = (typeof Term)[keyof typeof Term];
|
|
115
82
|
export interface PreferredCommitment {
|
|
116
83
|
term?: Term | undefined;
|
|
117
84
|
paymentOption?: PaymentOption | undefined;
|
|
118
85
|
}
|
|
119
|
-
export declare const SavingsEstimationMode: {
|
|
120
|
-
readonly AFTER_DISCOUNTS: "AfterDiscounts";
|
|
121
|
-
readonly BEFORE_DISCOUNTS: "BeforeDiscounts";
|
|
122
|
-
};
|
|
123
|
-
export type SavingsEstimationMode =
|
|
124
|
-
(typeof SavingsEstimationMode)[keyof typeof SavingsEstimationMode];
|
|
125
86
|
export interface GetPreferencesResponse {
|
|
126
87
|
savingsEstimationMode?: SavingsEstimationMode | undefined;
|
|
127
88
|
memberAccountDiscountVisibility?: MemberAccountDiscountVisibility | undefined;
|
|
128
89
|
preferredCommitment?: PreferredCommitment | undefined;
|
|
129
90
|
}
|
|
130
|
-
export declare class InternalServerException extends __BaseException {
|
|
131
|
-
readonly name: "InternalServerException";
|
|
132
|
-
readonly $fault: "server";
|
|
133
|
-
constructor(
|
|
134
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
export declare class ThrottlingException extends __BaseException {
|
|
138
|
-
readonly name: "ThrottlingException";
|
|
139
|
-
readonly $fault: "client";
|
|
140
|
-
constructor(
|
|
141
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
91
|
export interface ValidationExceptionDetail {
|
|
145
92
|
fieldName: string | undefined;
|
|
146
93
|
message: string | undefined;
|
|
147
94
|
}
|
|
148
|
-
export declare const ValidationExceptionReason: {
|
|
149
|
-
readonly FIELD_VALIDATION_FAILED: "FieldValidationFailed";
|
|
150
|
-
readonly OTHER: "Other";
|
|
151
|
-
};
|
|
152
|
-
export type ValidationExceptionReason =
|
|
153
|
-
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
154
|
-
export declare class ValidationException extends __BaseException {
|
|
155
|
-
readonly name: "ValidationException";
|
|
156
|
-
readonly $fault: "client";
|
|
157
|
-
reason?: ValidationExceptionReason | undefined;
|
|
158
|
-
fields?: ValidationExceptionDetail[] | undefined;
|
|
159
|
-
constructor(
|
|
160
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
95
|
export interface GetRecommendationRequest {
|
|
164
96
|
recommendationId: string | undefined;
|
|
165
97
|
}
|
|
@@ -206,12 +138,6 @@ export interface InstanceConfiguration {
|
|
|
206
138
|
export interface MixedInstanceConfiguration {
|
|
207
139
|
type?: string | undefined;
|
|
208
140
|
}
|
|
209
|
-
export declare const Ec2AutoScalingGroupType: {
|
|
210
|
-
readonly MIXED_INSTANCE_TYPES: "MixedInstanceTypes";
|
|
211
|
-
readonly SINGLE_INSTANCE_TYPE: "SingleInstanceType";
|
|
212
|
-
};
|
|
213
|
-
export type Ec2AutoScalingGroupType =
|
|
214
|
-
(typeof Ec2AutoScalingGroupType)[keyof typeof Ec2AutoScalingGroupType];
|
|
215
141
|
export interface Ec2AutoScalingGroupConfiguration {
|
|
216
142
|
instance?: InstanceConfiguration | undefined;
|
|
217
143
|
mixedInstances?: MixedInstanceConfiguration[] | undefined;
|
|
@@ -847,41 +773,6 @@ export declare namespace ResourceDetails {
|
|
|
847
773
|
_: (name: string, value: any) => T;
|
|
848
774
|
}
|
|
849
775
|
}
|
|
850
|
-
export declare const ResourceType: {
|
|
851
|
-
readonly AURORA_DB_CLUSTER_STORAGE: "AuroraDbClusterStorage";
|
|
852
|
-
readonly COMPUTE_SAVINGS_PLANS: "ComputeSavingsPlans";
|
|
853
|
-
readonly DYNAMO_DB_RESERVED_CAPACITY: "DynamoDbReservedCapacity";
|
|
854
|
-
readonly EBS_VOLUME: "EbsVolume";
|
|
855
|
-
readonly EC2_AUTO_SCALING_GROUP: "Ec2AutoScalingGroup";
|
|
856
|
-
readonly EC2_INSTANCE: "Ec2Instance";
|
|
857
|
-
readonly EC2_INSTANCE_SAVINGS_PLANS: "Ec2InstanceSavingsPlans";
|
|
858
|
-
readonly EC2_RESERVED_INSTANCES: "Ec2ReservedInstances";
|
|
859
|
-
readonly ECS_SERVICE: "EcsService";
|
|
860
|
-
readonly ELASTI_CACHE_RESERVED_INSTANCES: "ElastiCacheReservedInstances";
|
|
861
|
-
readonly LAMBDA_FUNCTION: "LambdaFunction";
|
|
862
|
-
readonly MEMORY_DB_RESERVED_INSTANCES: "MemoryDbReservedInstances";
|
|
863
|
-
readonly OPEN_SEARCH_RESERVED_INSTANCES: "OpenSearchReservedInstances";
|
|
864
|
-
readonly RDS_DB_INSTANCE: "RdsDbInstance";
|
|
865
|
-
readonly RDS_DB_INSTANCE_STORAGE: "RdsDbInstanceStorage";
|
|
866
|
-
readonly RDS_RESERVED_INSTANCES: "RdsReservedInstances";
|
|
867
|
-
readonly REDSHIFT_RESERVED_INSTANCES: "RedshiftReservedInstances";
|
|
868
|
-
readonly SAGE_MAKER_SAVINGS_PLANS: "SageMakerSavingsPlans";
|
|
869
|
-
};
|
|
870
|
-
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
871
|
-
export declare const ImplementationEffort: {
|
|
872
|
-
readonly HIGH: "High";
|
|
873
|
-
readonly LOW: "Low";
|
|
874
|
-
readonly MEDIUM: "Medium";
|
|
875
|
-
readonly VERY_HIGH: "VeryHigh";
|
|
876
|
-
readonly VERY_LOW: "VeryLow";
|
|
877
|
-
};
|
|
878
|
-
export type ImplementationEffort =
|
|
879
|
-
(typeof ImplementationEffort)[keyof typeof ImplementationEffort];
|
|
880
|
-
export declare const Source: {
|
|
881
|
-
readonly COMPUTE_OPTIMIZER: "ComputeOptimizer";
|
|
882
|
-
readonly COST_EXPLORER: "CostExplorer";
|
|
883
|
-
};
|
|
884
|
-
export type Source = (typeof Source)[keyof typeof Source];
|
|
885
776
|
export interface Tag {
|
|
886
777
|
key?: string | undefined;
|
|
887
778
|
value?: string | undefined;
|
|
@@ -911,13 +802,36 @@ export interface GetRecommendationResponse {
|
|
|
911
802
|
recommendedResourceDetails?: ResourceDetails | undefined;
|
|
912
803
|
tags?: Tag[] | undefined;
|
|
913
804
|
}
|
|
914
|
-
export
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
805
|
+
export interface OrderBy {
|
|
806
|
+
dimension?: string | undefined;
|
|
807
|
+
order?: Order | undefined;
|
|
808
|
+
}
|
|
809
|
+
export interface TimePeriod {
|
|
810
|
+
start: string | undefined;
|
|
811
|
+
end: string | undefined;
|
|
812
|
+
}
|
|
813
|
+
export interface ListEfficiencyMetricsRequest {
|
|
814
|
+
groupBy?: string | undefined;
|
|
815
|
+
granularity: GranularityType | undefined;
|
|
816
|
+
timePeriod: TimePeriod | undefined;
|
|
817
|
+
maxResults?: number | undefined;
|
|
818
|
+
orderBy?: OrderBy | undefined;
|
|
819
|
+
nextToken?: string | undefined;
|
|
820
|
+
}
|
|
821
|
+
export interface MetricsByTime {
|
|
822
|
+
score?: number | undefined;
|
|
823
|
+
savings?: number | undefined;
|
|
824
|
+
spend?: number | undefined;
|
|
825
|
+
timestamp?: string | undefined;
|
|
826
|
+
}
|
|
827
|
+
export interface EfficiencyMetricsByGroup {
|
|
828
|
+
metricsByTime?: MetricsByTime[] | undefined;
|
|
829
|
+
group?: string | undefined;
|
|
830
|
+
message?: string | undefined;
|
|
831
|
+
}
|
|
832
|
+
export interface ListEfficiencyMetricsResponse {
|
|
833
|
+
efficiencyMetricsByGroup?: EfficiencyMetricsByGroup[] | undefined;
|
|
834
|
+
nextToken?: string | undefined;
|
|
921
835
|
}
|
|
922
836
|
export interface ListEnrollmentStatusesRequest {
|
|
923
837
|
includeOrganizationInfo?: boolean | undefined;
|
|
@@ -943,15 +857,6 @@ export interface Filter {
|
|
|
943
857
|
resourceArns?: string[] | undefined;
|
|
944
858
|
recommendationIds?: string[] | undefined;
|
|
945
859
|
}
|
|
946
|
-
export declare const Order: {
|
|
947
|
-
readonly ASC: "Asc";
|
|
948
|
-
readonly DESC: "Desc";
|
|
949
|
-
};
|
|
950
|
-
export type Order = (typeof Order)[keyof typeof Order];
|
|
951
|
-
export interface OrderBy {
|
|
952
|
-
dimension?: string | undefined;
|
|
953
|
-
order?: Order | undefined;
|
|
954
|
-
}
|
|
955
860
|
export interface ListRecommendationsRequest {
|
|
956
861
|
filter?: Filter | undefined;
|
|
957
862
|
orderBy?: OrderBy | undefined;
|
|
@@ -986,11 +891,6 @@ export interface ListRecommendationsResponse {
|
|
|
986
891
|
items?: Recommendation[] | undefined;
|
|
987
892
|
nextToken?: string | undefined;
|
|
988
893
|
}
|
|
989
|
-
export declare const SummaryMetrics: {
|
|
990
|
-
readonly SAVINGS_PERCENTAGE: "SavingsPercentage";
|
|
991
|
-
};
|
|
992
|
-
export type SummaryMetrics =
|
|
993
|
-
(typeof SummaryMetrics)[keyof typeof SummaryMetrics];
|
|
994
894
|
export interface ListRecommendationSummariesRequest {
|
|
995
895
|
filter?: Filter | undefined;
|
|
996
896
|
groupBy: string | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListEfficiencyMetricsCommandInput,
|
|
4
|
+
ListEfficiencyMetricsCommandOutput,
|
|
5
|
+
} from "../commands/ListEfficiencyMetricsCommand";
|
|
6
|
+
import { CostOptimizationHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListEfficiencyMetrics: (
|
|
8
|
+
config: CostOptimizationHubPaginationConfiguration,
|
|
9
|
+
input: ListEfficiencyMetricsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListEfficiencyMetricsCommandOutput>;
|
|
@@ -27,6 +27,7 @@ export declare var Ec2ReservedInstances: StaticStructureSchema;
|
|
|
27
27
|
export declare var Ec2ReservedInstancesConfiguration: StaticStructureSchema;
|
|
28
28
|
export declare var EcsService: StaticStructureSchema;
|
|
29
29
|
export declare var EcsServiceConfiguration: StaticStructureSchema;
|
|
30
|
+
export declare var EfficiencyMetricsByGroup: StaticStructureSchema;
|
|
30
31
|
export declare var ElastiCacheReservedInstances: StaticStructureSchema;
|
|
31
32
|
export declare var ElastiCacheReservedInstancesConfiguration: StaticStructureSchema;
|
|
32
33
|
export declare var EstimatedDiscounts: StaticStructureSchema;
|
|
@@ -39,6 +40,8 @@ export declare var InstanceConfiguration: StaticStructureSchema;
|
|
|
39
40
|
export declare var InternalServerException: StaticErrorSchema;
|
|
40
41
|
export declare var LambdaFunction: StaticStructureSchema;
|
|
41
42
|
export declare var LambdaFunctionConfiguration: StaticStructureSchema;
|
|
43
|
+
export declare var ListEfficiencyMetricsRequest: StaticStructureSchema;
|
|
44
|
+
export declare var ListEfficiencyMetricsResponse: StaticStructureSchema;
|
|
42
45
|
export declare var ListEnrollmentStatusesRequest: StaticStructureSchema;
|
|
43
46
|
export declare var ListEnrollmentStatusesResponse: StaticStructureSchema;
|
|
44
47
|
export declare var ListRecommendationsRequest: StaticStructureSchema;
|
|
@@ -47,6 +50,7 @@ export declare var ListRecommendationSummariesRequest: StaticStructureSchema;
|
|
|
47
50
|
export declare var ListRecommendationSummariesResponse: StaticStructureSchema;
|
|
48
51
|
export declare var MemoryDbReservedInstances: StaticStructureSchema;
|
|
49
52
|
export declare var MemoryDbReservedInstancesConfiguration: StaticStructureSchema;
|
|
53
|
+
export declare var MetricsByTime: StaticStructureSchema;
|
|
50
54
|
export declare var MixedInstanceConfiguration: StaticStructureSchema;
|
|
51
55
|
export declare var OpenSearchReservedInstances: StaticStructureSchema;
|
|
52
56
|
export declare var OpenSearchReservedInstancesConfiguration: StaticStructureSchema;
|
|
@@ -75,6 +79,7 @@ export declare var StorageConfiguration: StaticStructureSchema;
|
|
|
75
79
|
export declare var SummaryMetricsResult: StaticStructureSchema;
|
|
76
80
|
export declare var Tag: StaticStructureSchema;
|
|
77
81
|
export declare var ThrottlingException: StaticErrorSchema;
|
|
82
|
+
export declare var TimePeriod: StaticStructureSchema;
|
|
78
83
|
export declare var UpdateEnrollmentStatusRequest: StaticStructureSchema;
|
|
79
84
|
export declare var UpdateEnrollmentStatusResponse: StaticStructureSchema;
|
|
80
85
|
export declare var UpdatePreferencesRequest: StaticStructureSchema;
|
|
@@ -87,7 +92,9 @@ export declare var CostOptimizationHubServiceException: StaticErrorSchema;
|
|
|
87
92
|
export declare var AccountEnrollmentStatuses: StaticListSchema;
|
|
88
93
|
export declare var AccountIdList: number;
|
|
89
94
|
export declare var ActionTypeList: number;
|
|
95
|
+
export declare var EfficiencyMetricsByGroupList: StaticListSchema;
|
|
90
96
|
export declare var ImplementationEffortList: number;
|
|
97
|
+
export declare var MetricsByTimeList: StaticListSchema;
|
|
91
98
|
export declare var MixedInstanceConfigurationList: StaticListSchema;
|
|
92
99
|
export declare var RecommendationIdList: number;
|
|
93
100
|
export declare var RecommendationList: StaticListSchema;
|
|
@@ -103,6 +110,7 @@ export declare var ValidationExceptionDetails: StaticListSchema;
|
|
|
103
110
|
export declare var ResourceDetails: StaticStructureSchema;
|
|
104
111
|
export declare var GetPreferences: StaticOperationSchema;
|
|
105
112
|
export declare var GetRecommendation: StaticOperationSchema;
|
|
113
|
+
export declare var ListEfficiencyMetrics: StaticOperationSchema;
|
|
106
114
|
export declare var ListEnrollmentStatuses: StaticOperationSchema;
|
|
107
115
|
export declare var ListRecommendations: StaticOperationSchema;
|
|
108
116
|
export declare var ListRecommendationSummaries: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cost-optimization-hub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cost Optimization Hub Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.935.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-cost-optimization-hub",
|
|
@@ -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.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.935.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.935.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.930.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.933.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.935.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
30
30
|
"@aws-sdk/types": "3.930.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.930.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.930.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.935.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
-
"@smithy/core": "^3.18.
|
|
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.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
-
"@smithy/middleware-serde": "^4.2.
|
|
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.
|
|
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.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
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",
|
package/dist-es/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|