@aws-sdk/client-compute-optimizer 3.334.0 → 3.335.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/models/models_0.js +16 -2
- package/dist-cjs/protocols/Aws_json1_0.js +2 -1
- package/dist-es/models/models_0.js +14 -0
- package/dist-es/protocols/Aws_json1_0.js +2 -1
- package/dist-types/ComputeOptimizerClient.d.ts +3 -2
- package/dist-types/commands/ExportEC2InstanceRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +4 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +48 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +12 -12
- package/dist-types/runtimeConfig.d.ts +9 -9
- package/dist-types/runtimeConfig.native.d.ts +13 -13
- package/dist-types/runtimeConfig.shared.d.ts +4 -4
- package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +7 -5
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +21 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +18 -15
- package/dist-types/ts3.4/runtimeConfig.d.ts +12 -12
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -15
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -4
- package/package.json +5 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.FindingReasonCode = exports.LambdaFunctionMetricStatistic = exports.LambdaFunctionMetricName = exports.LambdaFunctionMemoryMetricStatistic = exports.LambdaFunctionMemoryMetricName = exports.LambdaFunctionRecommendationFindingReasonCode = void 0;
|
|
3
|
+
exports.EnrollmentFilterName = exports.ECSServiceMetricStatistic = exports.ECSServiceLaunchType = exports.ECSServiceRecommendationFindingReasonCode = exports.ECSServiceRecommendationFinding = exports.ECSServiceMetricName = exports.RecommendationSourceType = exports.PlatformDifference = exports.InstanceState = exports.InstanceRecommendationFindingReasonCode = exports.ExternalMetricStatusCode = exports.EBSMetricName = exports.EBSFinding = exports.LambdaFunctionRecommendationFilterName = exports.ExportableLambdaFunctionField = exports.ECSServiceRecommendationFilterName = exports.ExportableECSServiceField = exports.ExportableInstanceField = exports.EBSFilterName = exports.ExportableVolumeField = exports.LimitExceededException = exports.FilterName = exports.FileFormat = exports.ExportableAutoScalingGroupField = exports.JobStatus = exports.JobFilterName = exports.ThrottlingException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OptInRequiredException = exports.MissingAuthenticationToken = exports.InvalidParameterValueException = exports.InternalServerException = exports.ScopeName = exports.ResourceType = exports.RecommendationPreferenceName = exports.Currency = exports.MetricStatistic = exports.MetricName = exports.MigrationEffort = exports.InferredWorkloadType = exports.Finding = exports.InferredWorkloadTypesPreference = exports.ExternalMetricsSource = exports.EnhancedInfrastructureMetrics = exports.CpuVendorArchitecture = exports.CurrentPerformanceRisk = exports.AutoScalingConfiguration = exports.Status = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.FindingReasonCode = exports.LambdaFunctionMetricStatistic = exports.LambdaFunctionMetricName = exports.LambdaFunctionMemoryMetricStatistic = exports.LambdaFunctionMemoryMetricName = exports.LambdaFunctionRecommendationFindingReasonCode = exports.LambdaFunctionRecommendationFinding = void 0;
|
|
5
5
|
const ComputeOptimizerServiceException_1 = require("./ComputeOptimizerServiceException");
|
|
6
6
|
class AccessDeniedException extends ComputeOptimizerServiceException_1.ComputeOptimizerServiceException {
|
|
7
7
|
constructor(opts) {
|
|
@@ -344,6 +344,8 @@ exports.ExportableInstanceField = {
|
|
|
344
344
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS: "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics",
|
|
345
345
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_EXTERNAL_METRICS_SOURCE: "EffectiveRecommendationPreferencesExternalMetricsSource",
|
|
346
346
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES: "EffectiveRecommendationPreferencesInferredWorkloadTypes",
|
|
347
|
+
EXTERNAL_METRIC_STATUS_CODE: "ExternalMetricStatusCode",
|
|
348
|
+
EXTERNAL_METRIC_STATUS_REASON: "ExternalMetricStatusReason",
|
|
347
349
|
FINDING: "Finding",
|
|
348
350
|
Finding_Reason_Codes: "FindingReasonCodes",
|
|
349
351
|
INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes",
|
|
@@ -459,6 +461,18 @@ exports.EBSMetricName = {
|
|
|
459
461
|
VOLUME_WRITE_BYTES_PER_SECOND: "VolumeWriteBytesPerSecond",
|
|
460
462
|
VOLUME_WRITE_OPS_PER_SECOND: "VolumeWriteOpsPerSecond",
|
|
461
463
|
};
|
|
464
|
+
exports.ExternalMetricStatusCode = {
|
|
465
|
+
DATADOG_INTEGRATION_ERROR: "DATADOG_INTEGRATION_ERROR",
|
|
466
|
+
DYNATRACE_INTEGRATION_ERROR: "DYNATRACE_INTEGRATION_ERROR",
|
|
467
|
+
INSTANA_INTEGRATION_ERROR: "INSTANA_INTEGRATION_ERROR",
|
|
468
|
+
INSUFFICIENT_DATADOG_METRICS: "INSUFFICIENT_DATADOG_METRICS",
|
|
469
|
+
INSUFFICIENT_DYNATRACE_METRICS: "INSUFFICIENT_DYNATRACE_METRICS",
|
|
470
|
+
INSUFFICIENT_INSTANA_METRICS: "INSUFFICIENT_INSTANA_METRICS",
|
|
471
|
+
INSUFFICIENT_NEWRELIC_METRICS: "INSUFFICIENT_NEWRELIC_METRICS",
|
|
472
|
+
INTEGRATION_SUCCESS: "INTEGRATION_SUCCESS",
|
|
473
|
+
NEWRELIC_INTEGRATION_ERROR: "NEWRELIC_INTEGRATION_ERROR",
|
|
474
|
+
NO_EXTERNAL_METRIC_SET: "NO_EXTERNAL_METRIC_SET",
|
|
475
|
+
};
|
|
462
476
|
exports.InstanceRecommendationFindingReasonCode = {
|
|
463
477
|
CPU_OVER_PROVISIONED: "CPUOverprovisioned",
|
|
464
478
|
CPU_UNDER_PROVISIONED: "CPUUnderprovisioned",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateEnrollmentStatusCommand = exports.de_PutRecommendationPreferencesCommand = exports.de_GetRecommendationSummariesCommand = exports.de_GetRecommendationPreferencesCommand = exports.de_GetLambdaFunctionRecommendationsCommand = exports.de_GetEnrollmentStatusesForOrganizationCommand = exports.de_GetEnrollmentStatusCommand = exports.de_GetEffectiveRecommendationPreferencesCommand = exports.de_GetECSServiceRecommendationsCommand = exports.de_GetECSServiceRecommendationProjectedMetricsCommand = exports.de_GetEC2RecommendationProjectedMetricsCommand = exports.de_GetEC2InstanceRecommendationsCommand = exports.de_GetEBSVolumeRecommendationsCommand = exports.de_GetAutoScalingGroupRecommendationsCommand = exports.de_ExportLambdaFunctionRecommendationsCommand = exports.de_ExportECSServiceRecommendationsCommand = exports.de_ExportEC2InstanceRecommendationsCommand = exports.de_ExportEBSVolumeRecommendationsCommand = exports.de_ExportAutoScalingGroupRecommendationsCommand = exports.de_DescribeRecommendationExportJobsCommand = exports.de_DeleteRecommendationPreferencesCommand = exports.se_UpdateEnrollmentStatusCommand = exports.se_PutRecommendationPreferencesCommand = exports.se_GetRecommendationSummariesCommand = exports.se_GetRecommendationPreferencesCommand = exports.se_GetLambdaFunctionRecommendationsCommand = exports.se_GetEnrollmentStatusesForOrganizationCommand = exports.se_GetEnrollmentStatusCommand = exports.se_GetEffectiveRecommendationPreferencesCommand = exports.se_GetECSServiceRecommendationsCommand = exports.se_GetECSServiceRecommendationProjectedMetricsCommand = exports.se_GetEC2RecommendationProjectedMetricsCommand = exports.se_GetEC2InstanceRecommendationsCommand = exports.se_GetEBSVolumeRecommendationsCommand = exports.se_GetAutoScalingGroupRecommendationsCommand = exports.se_ExportLambdaFunctionRecommendationsCommand = exports.se_ExportECSServiceRecommendationsCommand = exports.se_ExportEC2InstanceRecommendationsCommand = exports.se_ExportEBSVolumeRecommendationsCommand = exports.se_ExportAutoScalingGroupRecommendationsCommand = exports.se_DescribeRecommendationExportJobsCommand = exports.se_DeleteRecommendationPreferencesCommand = void 0;
|
|
4
|
-
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const ComputeOptimizerServiceException_1 = require("../models/ComputeOptimizerServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_DeleteRecommendationPreferencesCommand = async (input, context) => {
|
|
@@ -1638,6 +1638,7 @@ const de_InstanceRecommendation = (output, context) => {
|
|
|
1638
1638
|
currentInstanceType: smithy_client_1.expectString,
|
|
1639
1639
|
currentPerformanceRisk: smithy_client_1.expectString,
|
|
1640
1640
|
effectiveRecommendationPreferences: smithy_client_1._json,
|
|
1641
|
+
externalMetricStatus: smithy_client_1._json,
|
|
1641
1642
|
finding: smithy_client_1.expectString,
|
|
1642
1643
|
findingReasonCodes: smithy_client_1._json,
|
|
1643
1644
|
inferredWorkloadTypes: smithy_client_1._json,
|
|
@@ -331,6 +331,8 @@ export const ExportableInstanceField = {
|
|
|
331
331
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS: "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics",
|
|
332
332
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_EXTERNAL_METRICS_SOURCE: "EffectiveRecommendationPreferencesExternalMetricsSource",
|
|
333
333
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES: "EffectiveRecommendationPreferencesInferredWorkloadTypes",
|
|
334
|
+
EXTERNAL_METRIC_STATUS_CODE: "ExternalMetricStatusCode",
|
|
335
|
+
EXTERNAL_METRIC_STATUS_REASON: "ExternalMetricStatusReason",
|
|
334
336
|
FINDING: "Finding",
|
|
335
337
|
Finding_Reason_Codes: "FindingReasonCodes",
|
|
336
338
|
INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes",
|
|
@@ -446,6 +448,18 @@ export const EBSMetricName = {
|
|
|
446
448
|
VOLUME_WRITE_BYTES_PER_SECOND: "VolumeWriteBytesPerSecond",
|
|
447
449
|
VOLUME_WRITE_OPS_PER_SECOND: "VolumeWriteOpsPerSecond",
|
|
448
450
|
};
|
|
451
|
+
export const ExternalMetricStatusCode = {
|
|
452
|
+
DATADOG_INTEGRATION_ERROR: "DATADOG_INTEGRATION_ERROR",
|
|
453
|
+
DYNATRACE_INTEGRATION_ERROR: "DYNATRACE_INTEGRATION_ERROR",
|
|
454
|
+
INSTANA_INTEGRATION_ERROR: "INSTANA_INTEGRATION_ERROR",
|
|
455
|
+
INSUFFICIENT_DATADOG_METRICS: "INSUFFICIENT_DATADOG_METRICS",
|
|
456
|
+
INSUFFICIENT_DYNATRACE_METRICS: "INSUFFICIENT_DYNATRACE_METRICS",
|
|
457
|
+
INSUFFICIENT_INSTANA_METRICS: "INSUFFICIENT_INSTANA_METRICS",
|
|
458
|
+
INSUFFICIENT_NEWRELIC_METRICS: "INSUFFICIENT_NEWRELIC_METRICS",
|
|
459
|
+
INTEGRATION_SUCCESS: "INTEGRATION_SUCCESS",
|
|
460
|
+
NEWRELIC_INTEGRATION_ERROR: "NEWRELIC_INTEGRATION_ERROR",
|
|
461
|
+
NO_EXTERNAL_METRIC_SET: "NO_EXTERNAL_METRIC_SET",
|
|
462
|
+
};
|
|
449
463
|
export const InstanceRecommendationFindingReasonCode = {
|
|
450
464
|
CPU_OVER_PROVISIONED: "CPUOverprovisioned",
|
|
451
465
|
CPU_UNDER_PROVISIONED: "CPUUnderprovisioned",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
1
|
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { ComputeOptimizerServiceException as __BaseException } from "../models/ComputeOptimizerServiceException";
|
|
4
4
|
import { AccessDeniedException, InternalServerException, InvalidParameterValueException, LimitExceededException, MissingAuthenticationToken, OptInRequiredException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
|
|
5
5
|
export const se_DeleteRecommendationPreferencesCommand = async (input, context) => {
|
|
@@ -1593,6 +1593,7 @@ const de_InstanceRecommendation = (output, context) => {
|
|
|
1593
1593
|
currentInstanceType: __expectString,
|
|
1594
1594
|
currentPerformanceRisk: __expectString,
|
|
1595
1595
|
effectiveRecommendationPreferences: _json,
|
|
1596
|
+
externalMetricStatus: _json,
|
|
1596
1597
|
finding: __expectString,
|
|
1597
1598
|
findingReasonCodes: _json,
|
|
1598
1599
|
inferredWorkloadTypes: _json,
|
|
@@ -4,9 +4,10 @@ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middle
|
|
|
4
4
|
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
5
5
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
6
6
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
7
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
8
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials,
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
10
|
+
import { Decoder as __Decoder, Encoder as __Encoder, Provider as __Provider, StreamCollector as __StreamCollector } from "@smithy/types";
|
|
10
11
|
import { DeleteRecommendationPreferencesCommandInput, DeleteRecommendationPreferencesCommandOutput } from "./commands/DeleteRecommendationPreferencesCommand";
|
|
11
12
|
import { DescribeRecommendationExportJobsCommandInput, DescribeRecommendationExportJobsCommandOutput } from "./commands/DescribeRecommendationExportJobsCommand";
|
|
12
13
|
import { ExportAutoScalingGroupRecommendationsCommandInput, ExportAutoScalingGroupRecommendationsCommandOutput } from "./commands/ExportAutoScalingGroupRecommendationsCommand";
|
|
@@ -44,7 +44,7 @@ export interface ExportEC2InstanceRecommendationsCommandOutput extends ExportEC2
|
|
|
44
44
|
* },
|
|
45
45
|
* ],
|
|
46
46
|
* fieldsToExport: [ // ExportableInstanceFields
|
|
47
|
-
* "AccountId" || "InstanceArn" || "InstanceName" || "Finding" || "FindingReasonCodes" || "LookbackPeriodInDays" || "CurrentInstanceType" || "UtilizationMetricsCpuMaximum" || "UtilizationMetricsMemoryMaximum" || "UtilizationMetricsEbsReadOpsPerSecondMaximum" || "UtilizationMetricsEbsWriteOpsPerSecondMaximum" || "UtilizationMetricsEbsReadBytesPerSecondMaximum" || "UtilizationMetricsEbsWriteBytesPerSecondMaximum" || "UtilizationMetricsDiskReadOpsPerSecondMaximum" || "UtilizationMetricsDiskWriteOpsPerSecondMaximum" || "UtilizationMetricsDiskReadBytesPerSecondMaximum" || "UtilizationMetricsDiskWriteBytesPerSecondMaximum" || "UtilizationMetricsNetworkInBytesPerSecondMaximum" || "UtilizationMetricsNetworkOutBytesPerSecondMaximum" || "UtilizationMetricsNetworkPacketsInPerSecondMaximum" || "UtilizationMetricsNetworkPacketsOutPerSecondMaximum" || "CurrentOnDemandPrice" || "CurrentStandardOneYearNoUpfrontReservedPrice" || "CurrentStandardThreeYearNoUpfrontReservedPrice" || "CurrentVCpus" || "CurrentMemory" || "CurrentStorage" || "CurrentNetwork" || "RecommendationOptionsInstanceType" || "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum" || "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum" || "RecommendationOptionsPlatformDifferences" || "RecommendationOptionsPerformanceRisk" || "RecommendationOptionsVcpus" || "RecommendationOptionsMemory" || "RecommendationOptionsStorage" || "RecommendationOptionsNetwork" || "RecommendationOptionsOnDemandPrice" || "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice" || "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice" || "RecommendationsSourcesRecommendationSourceArn" || "RecommendationsSourcesRecommendationSourceType" || "LastRefreshTimestamp" || "CurrentPerformanceRisk" || "RecommendationOptionsSavingsOpportunityPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrency" || "RecommendationOptionsEstimatedMonthlySavingsValue" || "EffectiveRecommendationPreferencesCpuVendorArchitectures" || "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" || "EffectiveRecommendationPreferencesInferredWorkloadTypes" || "InferredWorkloadTypes" || "RecommendationOptionsMigrationEffort" || "EffectiveRecommendationPreferencesExternalMetricsSource" || "InstanceState" || "Tags",
|
|
47
|
+
* "AccountId" || "InstanceArn" || "InstanceName" || "Finding" || "FindingReasonCodes" || "LookbackPeriodInDays" || "CurrentInstanceType" || "UtilizationMetricsCpuMaximum" || "UtilizationMetricsMemoryMaximum" || "UtilizationMetricsEbsReadOpsPerSecondMaximum" || "UtilizationMetricsEbsWriteOpsPerSecondMaximum" || "UtilizationMetricsEbsReadBytesPerSecondMaximum" || "UtilizationMetricsEbsWriteBytesPerSecondMaximum" || "UtilizationMetricsDiskReadOpsPerSecondMaximum" || "UtilizationMetricsDiskWriteOpsPerSecondMaximum" || "UtilizationMetricsDiskReadBytesPerSecondMaximum" || "UtilizationMetricsDiskWriteBytesPerSecondMaximum" || "UtilizationMetricsNetworkInBytesPerSecondMaximum" || "UtilizationMetricsNetworkOutBytesPerSecondMaximum" || "UtilizationMetricsNetworkPacketsInPerSecondMaximum" || "UtilizationMetricsNetworkPacketsOutPerSecondMaximum" || "CurrentOnDemandPrice" || "CurrentStandardOneYearNoUpfrontReservedPrice" || "CurrentStandardThreeYearNoUpfrontReservedPrice" || "CurrentVCpus" || "CurrentMemory" || "CurrentStorage" || "CurrentNetwork" || "RecommendationOptionsInstanceType" || "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum" || "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum" || "RecommendationOptionsPlatformDifferences" || "RecommendationOptionsPerformanceRisk" || "RecommendationOptionsVcpus" || "RecommendationOptionsMemory" || "RecommendationOptionsStorage" || "RecommendationOptionsNetwork" || "RecommendationOptionsOnDemandPrice" || "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice" || "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice" || "RecommendationsSourcesRecommendationSourceArn" || "RecommendationsSourcesRecommendationSourceType" || "LastRefreshTimestamp" || "CurrentPerformanceRisk" || "RecommendationOptionsSavingsOpportunityPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrency" || "RecommendationOptionsEstimatedMonthlySavingsValue" || "EffectiveRecommendationPreferencesCpuVendorArchitectures" || "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" || "EffectiveRecommendationPreferencesInferredWorkloadTypes" || "InferredWorkloadTypes" || "RecommendationOptionsMigrationEffort" || "EffectiveRecommendationPreferencesExternalMetricsSource" || "InstanceState" || "Tags" || "ExternalMetricStatusCode" || "ExternalMetricStatusReason",
|
|
48
48
|
* ],
|
|
49
49
|
* s3DestinationConfig: { // S3DestinationConfig
|
|
50
50
|
* bucket: "STRING_VALUE",
|
|
@@ -128,6 +128,10 @@ export interface GetEC2InstanceRecommendationsCommandOutput extends GetEC2Instan
|
|
|
128
128
|
* // value: "STRING_VALUE",
|
|
129
129
|
* // },
|
|
130
130
|
* // ],
|
|
131
|
+
* // externalMetricStatus: { // ExternalMetricStatus
|
|
132
|
+
* // statusCode: "NO_EXTERNAL_METRIC_SET" || "INTEGRATION_SUCCESS" || "DATADOG_INTEGRATION_ERROR" || "DYNATRACE_INTEGRATION_ERROR" || "NEWRELIC_INTEGRATION_ERROR" || "INSTANA_INTEGRATION_ERROR" || "INSUFFICIENT_DATADOG_METRICS" || "INSUFFICIENT_DYNATRACE_METRICS" || "INSUFFICIENT_NEWRELIC_METRICS" || "INSUFFICIENT_INSTANA_METRICS",
|
|
133
|
+
* // statusReason: "STRING_VALUE",
|
|
134
|
+
* // },
|
|
131
135
|
* // },
|
|
132
136
|
* // ],
|
|
133
137
|
* // errors: [ // GetRecommendationErrors
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EndpointParameters as __EndpointParameters, EndpointV2 } from "@aws-sdk/types";
|
|
2
|
+
import { Endpoint, Provider } from "@smithy/types";
|
|
2
3
|
export interface ClientInputEndpointParameters {
|
|
3
4
|
region?: string | Provider<string>;
|
|
4
5
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
@@ -1703,6 +1703,8 @@ export declare const ExportableInstanceField: {
|
|
|
1703
1703
|
readonly EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS: "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics";
|
|
1704
1704
|
readonly EFFECTIVE_RECOMMENDATION_PREFERENCES_EXTERNAL_METRICS_SOURCE: "EffectiveRecommendationPreferencesExternalMetricsSource";
|
|
1705
1705
|
readonly EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES: "EffectiveRecommendationPreferencesInferredWorkloadTypes";
|
|
1706
|
+
readonly EXTERNAL_METRIC_STATUS_CODE: "ExternalMetricStatusCode";
|
|
1707
|
+
readonly EXTERNAL_METRIC_STATUS_REASON: "ExternalMetricStatusReason";
|
|
1706
1708
|
readonly FINDING: "Finding";
|
|
1707
1709
|
readonly Finding_Reason_Codes: "FindingReasonCodes";
|
|
1708
1710
|
readonly INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes";
|
|
@@ -2611,6 +2613,46 @@ export interface GetEC2InstanceRecommendationsRequest {
|
|
|
2611
2613
|
*/
|
|
2612
2614
|
recommendationPreferences?: RecommendationPreferences;
|
|
2613
2615
|
}
|
|
2616
|
+
/**
|
|
2617
|
+
* @public
|
|
2618
|
+
* @enum
|
|
2619
|
+
*/
|
|
2620
|
+
export declare const ExternalMetricStatusCode: {
|
|
2621
|
+
readonly DATADOG_INTEGRATION_ERROR: "DATADOG_INTEGRATION_ERROR";
|
|
2622
|
+
readonly DYNATRACE_INTEGRATION_ERROR: "DYNATRACE_INTEGRATION_ERROR";
|
|
2623
|
+
readonly INSTANA_INTEGRATION_ERROR: "INSTANA_INTEGRATION_ERROR";
|
|
2624
|
+
readonly INSUFFICIENT_DATADOG_METRICS: "INSUFFICIENT_DATADOG_METRICS";
|
|
2625
|
+
readonly INSUFFICIENT_DYNATRACE_METRICS: "INSUFFICIENT_DYNATRACE_METRICS";
|
|
2626
|
+
readonly INSUFFICIENT_INSTANA_METRICS: "INSUFFICIENT_INSTANA_METRICS";
|
|
2627
|
+
readonly INSUFFICIENT_NEWRELIC_METRICS: "INSUFFICIENT_NEWRELIC_METRICS";
|
|
2628
|
+
readonly INTEGRATION_SUCCESS: "INTEGRATION_SUCCESS";
|
|
2629
|
+
readonly NEWRELIC_INTEGRATION_ERROR: "NEWRELIC_INTEGRATION_ERROR";
|
|
2630
|
+
readonly NO_EXTERNAL_METRIC_SET: "NO_EXTERNAL_METRIC_SET";
|
|
2631
|
+
};
|
|
2632
|
+
/**
|
|
2633
|
+
* @public
|
|
2634
|
+
*/
|
|
2635
|
+
export type ExternalMetricStatusCode = (typeof ExternalMetricStatusCode)[keyof typeof ExternalMetricStatusCode];
|
|
2636
|
+
/**
|
|
2637
|
+
* @public
|
|
2638
|
+
* <p>
|
|
2639
|
+
* Describes Compute Optimizer's integration status with your chosen external metric provider. For example, Datadog.
|
|
2640
|
+
* </p>
|
|
2641
|
+
*/
|
|
2642
|
+
export interface ExternalMetricStatus {
|
|
2643
|
+
/**
|
|
2644
|
+
* <p>
|
|
2645
|
+
* The status code for Compute Optimizer's integration with an external metrics provider.
|
|
2646
|
+
* </p>
|
|
2647
|
+
*/
|
|
2648
|
+
statusCode?: ExternalMetricStatusCode | string;
|
|
2649
|
+
/**
|
|
2650
|
+
* <p>
|
|
2651
|
+
* The reason for Compute Optimizer's integration status with your external metric provider.
|
|
2652
|
+
* </p>
|
|
2653
|
+
*/
|
|
2654
|
+
statusReason?: string;
|
|
2655
|
+
}
|
|
2614
2656
|
/**
|
|
2615
2657
|
* @public
|
|
2616
2658
|
* @enum
|
|
@@ -3213,6 +3255,12 @@ export interface InstanceRecommendation {
|
|
|
3213
3255
|
* </p>
|
|
3214
3256
|
*/
|
|
3215
3257
|
tags?: Tag[];
|
|
3258
|
+
/**
|
|
3259
|
+
* <p>
|
|
3260
|
+
* An object that describes Compute Optimizer's integration status with your external metrics provider.
|
|
3261
|
+
* </p>
|
|
3262
|
+
*/
|
|
3263
|
+
externalMetricStatus?: ExternalMetricStatus;
|
|
3216
3264
|
}
|
|
3217
3265
|
/**
|
|
3218
3266
|
* @public
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
+
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
3
|
import { DeleteRecommendationPreferencesCommandInput, DeleteRecommendationPreferencesCommandOutput } from "../commands/DeleteRecommendationPreferencesCommand";
|
|
4
4
|
import { DescribeRecommendationExportJobsCommandInput, DescribeRecommendationExportJobsCommandOutput } from "../commands/DescribeRecommendationExportJobsCommand";
|
|
5
5
|
import { ExportAutoScalingGroupRecommendationsCommandInput, ExportAutoScalingGroupRecommendationsCommandOutput } from "../commands/ExportAutoScalingGroupRecommendationsCommand";
|
|
@@ -7,26 +7,26 @@ export declare const getRuntimeConfig: (config: ComputeOptimizerClientConfig) =>
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (input: any) => import("@
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
|
-
maxAttempts: number | import("@aws-sdk/types").Provider<number
|
|
12
|
+
maxAttempts: (number | import("@smithy/types").Provider<number>) & (number | import("@aws-sdk/types").Provider<number>);
|
|
13
13
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
14
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@
|
|
15
|
-
retryMode: string | import("@
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
17
|
-
streamCollector: import("@
|
|
18
|
-
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean
|
|
19
|
-
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
19
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
22
|
-
base64Decoder: import("@
|
|
23
|
-
base64Encoder: import("@
|
|
24
|
-
utf8Decoder: import("@
|
|
25
|
-
utf8Encoder: import("@
|
|
22
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
24
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
25
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
serviceId: string;
|
|
28
28
|
logger: import("@aws-sdk/types").Logger;
|
|
29
|
-
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@
|
|
29
|
+
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
30
30
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
31
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
32
32
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
@@ -7,26 +7,26 @@ export declare const getRuntimeConfig: (config: ComputeOptimizerClientConfig) =>
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (input: any) => import("@
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
13
13
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
14
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@
|
|
15
|
-
retryMode: string | import("@
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
|
|
15
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
17
|
-
streamCollector: import("@
|
|
17
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
18
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
19
19
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
22
|
-
base64Decoder: import("@
|
|
23
|
-
base64Encoder: import("@
|
|
24
|
-
utf8Decoder: import("@
|
|
25
|
-
utf8Encoder: import("@
|
|
22
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
24
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
25
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
serviceId: string;
|
|
28
28
|
logger: import("@aws-sdk/types").Logger;
|
|
29
|
-
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@
|
|
29
|
+
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
30
30
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
31
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
32
32
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
@@ -5,27 +5,27 @@ import { ComputeOptimizerClientConfig } from "./ComputeOptimizerClient";
|
|
|
5
5
|
export declare const getRuntimeConfig: (config: ComputeOptimizerClientConfig) => {
|
|
6
6
|
runtime: string;
|
|
7
7
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
8
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@
|
|
8
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
11
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
|
-
streamCollector: import("@
|
|
13
|
-
base64Decoder: import("@
|
|
14
|
-
base64Encoder: import("@
|
|
15
|
-
utf8Decoder: import("@
|
|
16
|
-
utf8Encoder: import("@
|
|
12
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
13
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
14
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
15
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
16
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
17
17
|
disableHostPrefix: boolean;
|
|
18
18
|
serviceId: string;
|
|
19
|
-
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean
|
|
20
|
-
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean
|
|
19
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
20
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
21
21
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
22
|
-
credentialDefaultProvider: (input: any) => import("@
|
|
22
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
23
23
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
24
|
-
maxAttempts: number | import("@aws-sdk/types").Provider<number
|
|
25
|
-
retryMode: string | import("@
|
|
24
|
+
maxAttempts: (number | import("@smithy/types").Provider<number>) & (number | import("@aws-sdk/types").Provider<number>);
|
|
25
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
26
26
|
logger: import("@aws-sdk/types").Logger;
|
|
27
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@
|
|
28
|
-
endpoint?: string | import("@aws-sdk/types").
|
|
27
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
28
|
+
endpoint?: string | import("@aws-sdk/types").EndpointV2 | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> & import("@smithy/types").Provider<import("@smithy/types").Endpoint>) | (import("@aws-sdk/types").Endpoint & import("@smithy/types").Endpoint) | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> & import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>) | undefined;
|
|
29
29
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
30
30
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
31
31
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
@@ -4,8 +4,8 @@ import { ComputeOptimizerClientConfig } from "./ComputeOptimizerClient";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const getRuntimeConfig: (config: ComputeOptimizerClientConfig) => {
|
|
6
6
|
apiVersion: string;
|
|
7
|
-
base64Decoder: import("@
|
|
8
|
-
base64Encoder: import("@
|
|
7
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
8
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
9
9
|
disableHostPrefix: boolean;
|
|
10
10
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
11
11
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
@@ -13,6 +13,6 @@ export declare const getRuntimeConfig: (config: ComputeOptimizerClientConfig) =>
|
|
|
13
13
|
logger: import("@aws-sdk/types").Logger;
|
|
14
14
|
serviceId: string;
|
|
15
15
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
16
|
-
utf8Decoder: import("@
|
|
17
|
-
utf8Encoder: import("@
|
|
16
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
17
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
18
18
|
};
|
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
UserAgentInputConfig,
|
|
23
23
|
UserAgentResolvedConfig,
|
|
24
24
|
} from "@aws-sdk/middleware-user-agent";
|
|
25
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
26
25
|
import {
|
|
27
26
|
Client as __Client,
|
|
28
27
|
DefaultsMode as __DefaultsMode,
|
|
@@ -33,17 +32,20 @@ import {
|
|
|
33
32
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
34
33
|
ChecksumConstructor as __ChecksumConstructor,
|
|
35
34
|
Credentials as __Credentials,
|
|
36
|
-
Decoder as __Decoder,
|
|
37
|
-
Encoder as __Encoder,
|
|
38
35
|
HashConstructor as __HashConstructor,
|
|
39
36
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
40
37
|
Logger as __Logger,
|
|
41
|
-
Provider as __Provider,
|
|
42
38
|
Provider,
|
|
43
|
-
StreamCollector as __StreamCollector,
|
|
44
39
|
UrlParser as __UrlParser,
|
|
45
40
|
UserAgent as __UserAgent,
|
|
46
41
|
} from "@aws-sdk/types";
|
|
42
|
+
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
43
|
+
import {
|
|
44
|
+
Decoder as __Decoder,
|
|
45
|
+
Encoder as __Encoder,
|
|
46
|
+
Provider as __Provider,
|
|
47
|
+
StreamCollector as __StreamCollector,
|
|
48
|
+
} from "@smithy/types";
|
|
47
49
|
import {
|
|
48
50
|
DeleteRecommendationPreferencesCommandInput,
|
|
49
51
|
DeleteRecommendationPreferencesCommandOutput,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Endpoint,
|
|
3
2
|
EndpointParameters as __EndpointParameters,
|
|
4
3
|
EndpointV2,
|
|
5
|
-
Provider,
|
|
6
4
|
} from "@aws-sdk/types";
|
|
5
|
+
import { Endpoint, Provider } from "@smithy/types";
|
|
7
6
|
export interface ClientInputEndpointParameters {
|
|
8
7
|
region?: string | Provider<string>;
|
|
9
8
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
@@ -461,6 +461,8 @@ export declare const ExportableInstanceField: {
|
|
|
461
461
|
readonly EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS: "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics";
|
|
462
462
|
readonly EFFECTIVE_RECOMMENDATION_PREFERENCES_EXTERNAL_METRICS_SOURCE: "EffectiveRecommendationPreferencesExternalMetricsSource";
|
|
463
463
|
readonly EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES: "EffectiveRecommendationPreferencesInferredWorkloadTypes";
|
|
464
|
+
readonly EXTERNAL_METRIC_STATUS_CODE: "ExternalMetricStatusCode";
|
|
465
|
+
readonly EXTERNAL_METRIC_STATUS_REASON: "ExternalMetricStatusReason";
|
|
464
466
|
readonly FINDING: "Finding";
|
|
465
467
|
readonly Finding_Reason_Codes: "FindingReasonCodes";
|
|
466
468
|
readonly INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes";
|
|
@@ -707,6 +709,24 @@ export interface GetEC2InstanceRecommendationsRequest {
|
|
|
707
709
|
accountIds?: string[];
|
|
708
710
|
recommendationPreferences?: RecommendationPreferences;
|
|
709
711
|
}
|
|
712
|
+
export declare const ExternalMetricStatusCode: {
|
|
713
|
+
readonly DATADOG_INTEGRATION_ERROR: "DATADOG_INTEGRATION_ERROR";
|
|
714
|
+
readonly DYNATRACE_INTEGRATION_ERROR: "DYNATRACE_INTEGRATION_ERROR";
|
|
715
|
+
readonly INSTANA_INTEGRATION_ERROR: "INSTANA_INTEGRATION_ERROR";
|
|
716
|
+
readonly INSUFFICIENT_DATADOG_METRICS: "INSUFFICIENT_DATADOG_METRICS";
|
|
717
|
+
readonly INSUFFICIENT_DYNATRACE_METRICS: "INSUFFICIENT_DYNATRACE_METRICS";
|
|
718
|
+
readonly INSUFFICIENT_INSTANA_METRICS: "INSUFFICIENT_INSTANA_METRICS";
|
|
719
|
+
readonly INSUFFICIENT_NEWRELIC_METRICS: "INSUFFICIENT_NEWRELIC_METRICS";
|
|
720
|
+
readonly INTEGRATION_SUCCESS: "INTEGRATION_SUCCESS";
|
|
721
|
+
readonly NEWRELIC_INTEGRATION_ERROR: "NEWRELIC_INTEGRATION_ERROR";
|
|
722
|
+
readonly NO_EXTERNAL_METRIC_SET: "NO_EXTERNAL_METRIC_SET";
|
|
723
|
+
};
|
|
724
|
+
export type ExternalMetricStatusCode =
|
|
725
|
+
(typeof ExternalMetricStatusCode)[keyof typeof ExternalMetricStatusCode];
|
|
726
|
+
export interface ExternalMetricStatus {
|
|
727
|
+
statusCode?: ExternalMetricStatusCode | string;
|
|
728
|
+
statusReason?: string;
|
|
729
|
+
}
|
|
710
730
|
export declare const InstanceRecommendationFindingReasonCode: {
|
|
711
731
|
readonly CPU_OVER_PROVISIONED: "CPUOverprovisioned";
|
|
712
732
|
readonly CPU_UNDER_PROVISIONED: "CPUUnderprovisioned";
|
|
@@ -785,6 +805,7 @@ export interface InstanceRecommendation {
|
|
|
785
805
|
inferredWorkloadTypes?: (InferredWorkloadType | string)[];
|
|
786
806
|
instanceState?: InstanceState | string;
|
|
787
807
|
tags?: Tag[];
|
|
808
|
+
externalMetricStatus?: ExternalMetricStatus;
|
|
788
809
|
}
|
|
789
810
|
export interface GetEC2InstanceRecommendationsResponse {
|
|
790
811
|
nextToken?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HttpRequest as __HttpRequest,
|
|
3
3
|
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@
|
|
4
|
+
} from "@smithy/protocol-http";
|
|
5
|
+
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
6
|
import {
|
|
7
7
|
DeleteRecommendationPreferencesCommandInput,
|
|
8
8
|
DeleteRecommendationPreferencesCommandOutput,
|
|
@@ -10,11 +10,12 @@ export declare const getRuntimeConfig: (
|
|
|
10
10
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
11
11
|
credentialDefaultProvider: (
|
|
12
12
|
input: any
|
|
13
|
-
) => import("@
|
|
13
|
+
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
14
14
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<
|
|
15
15
|
import("@aws-sdk/types").UserAgent
|
|
16
16
|
>;
|
|
17
|
-
maxAttempts: number | import("@
|
|
17
|
+
maxAttempts: (number | import("@smithy/types").Provider<number>) &
|
|
18
|
+
(number | import("@aws-sdk/types").Provider<number>);
|
|
18
19
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
19
20
|
requestHandler:
|
|
20
21
|
| (import("@aws-sdk/types").RequestHandler<
|
|
@@ -22,19 +23,21 @@ export declare const getRuntimeConfig: (
|
|
|
22
23
|
any,
|
|
23
24
|
import("@aws-sdk/types").HttpHandlerOptions
|
|
24
25
|
> &
|
|
25
|
-
import("@
|
|
26
|
+
import("@smithy/protocol-http").HttpHandler)
|
|
26
27
|
| RequestHandler;
|
|
27
|
-
retryMode: string | import("@
|
|
28
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
29
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
29
|
-
streamCollector: import("@
|
|
30
|
-
useDualstackEndpoint: boolean | import("@
|
|
31
|
-
|
|
30
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
31
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
32
|
+
(boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
33
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
34
|
+
(boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
32
35
|
apiVersion: string;
|
|
33
36
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
34
|
-
base64Decoder: import("@
|
|
35
|
-
base64Encoder: import("@
|
|
36
|
-
utf8Decoder: import("@
|
|
37
|
-
utf8Encoder: import("@
|
|
37
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
38
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
39
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
40
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
38
41
|
disableHostPrefix: boolean;
|
|
39
42
|
serviceId: string;
|
|
40
43
|
logger: import("@aws-sdk/types").Logger;
|
|
@@ -48,11 +51,11 @@ export declare const getRuntimeConfig: (
|
|
|
48
51
|
) &
|
|
49
52
|
(
|
|
50
53
|
| string
|
|
51
|
-
| import("@
|
|
52
|
-
| import("@
|
|
53
|
-
| import("@
|
|
54
|
+
| import("@smithy/types").Provider<string>
|
|
55
|
+
| import("@smithy/types").Endpoint
|
|
56
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
54
57
|
| import("@aws-sdk/types").EndpointV2
|
|
55
|
-
| import("@
|
|
58
|
+
| import("@smithy/types").Provider<
|
|
56
59
|
import("@aws-sdk/types").EndpointV2
|
|
57
60
|
>
|
|
58
61
|
))
|
|
@@ -10,7 +10,7 @@ export declare const getRuntimeConfig: (
|
|
|
10
10
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
11
11
|
credentialDefaultProvider: (
|
|
12
12
|
input: any
|
|
13
|
-
) => import("@
|
|
13
|
+
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
14
14
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<
|
|
15
15
|
import("@aws-sdk/types").UserAgent
|
|
16
16
|
>;
|
|
@@ -22,19 +22,19 @@ export declare const getRuntimeConfig: (
|
|
|
22
22
|
any,
|
|
23
23
|
import("@aws-sdk/types").HttpHandlerOptions
|
|
24
24
|
> &
|
|
25
|
-
import("@
|
|
25
|
+
import("@smithy/protocol-http").HttpHandler)
|
|
26
26
|
| RequestHandler;
|
|
27
|
-
retryMode: string | import("@
|
|
27
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
29
|
-
streamCollector: import("@
|
|
29
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
30
30
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
31
31
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
32
32
|
apiVersion: string;
|
|
33
33
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
34
|
-
base64Decoder: import("@
|
|
35
|
-
base64Encoder: import("@
|
|
36
|
-
utf8Decoder: import("@
|
|
37
|
-
utf8Encoder: import("@
|
|
34
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
35
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
36
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
37
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
38
38
|
disableHostPrefix: boolean;
|
|
39
39
|
serviceId: string;
|
|
40
40
|
logger: import("@aws-sdk/types").Logger;
|
|
@@ -48,11 +48,11 @@ export declare const getRuntimeConfig: (
|
|
|
48
48
|
) &
|
|
49
49
|
(
|
|
50
50
|
| string
|
|
51
|
-
| import("@
|
|
52
|
-
| import("@
|
|
53
|
-
| import("@
|
|
51
|
+
| import("@smithy/types").Provider<string>
|
|
52
|
+
| import("@smithy/types").Endpoint
|
|
53
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
54
54
|
| import("@aws-sdk/types").EndpointV2
|
|
55
|
-
| import("@
|
|
55
|
+
| import("@smithy/types").Provider<
|
|
56
56
|
import("@aws-sdk/types").EndpointV2
|
|
57
57
|
>
|
|
58
58
|
))
|
|
@@ -10,41 +10,46 @@ export declare const getRuntimeConfig: (
|
|
|
10
10
|
any,
|
|
11
11
|
import("@aws-sdk/types").HttpHandlerOptions
|
|
12
12
|
> &
|
|
13
|
-
import("@
|
|
13
|
+
import("@smithy/protocol-http").HttpHandler)
|
|
14
14
|
| import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("@
|
|
19
|
-
base64Decoder: import("@
|
|
20
|
-
base64Encoder: import("@
|
|
21
|
-
utf8Decoder: import("@
|
|
22
|
-
utf8Encoder: import("@
|
|
18
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
19
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
20
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
21
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
22
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
23
23
|
disableHostPrefix: boolean;
|
|
24
24
|
serviceId: string;
|
|
25
|
-
useDualstackEndpoint: boolean | import("@
|
|
26
|
-
|
|
25
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
26
|
+
(boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
27
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
28
|
+
(boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
27
29
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
28
30
|
credentialDefaultProvider: (
|
|
29
31
|
input: any
|
|
30
|
-
) => import("@
|
|
32
|
+
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
31
33
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<
|
|
32
34
|
import("@aws-sdk/types").UserAgent
|
|
33
35
|
>;
|
|
34
|
-
maxAttempts: number | import("@
|
|
35
|
-
|
|
36
|
+
maxAttempts: (number | import("@smithy/types").Provider<number>) &
|
|
37
|
+
(number | import("@aws-sdk/types").Provider<number>);
|
|
38
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
36
39
|
logger: import("@aws-sdk/types").Logger;
|
|
37
40
|
defaultsMode:
|
|
38
41
|
| import("@aws-sdk/smithy-client").DefaultsMode
|
|
39
|
-
| import("@
|
|
42
|
+
| import("@smithy/types").Provider<
|
|
40
43
|
import("@aws-sdk/smithy-client").DefaultsMode
|
|
41
44
|
>;
|
|
42
45
|
endpoint?:
|
|
43
46
|
| string
|
|
44
|
-
| import("@aws-sdk/types").Endpoint
|
|
45
|
-
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
|
|
46
47
|
| import("@aws-sdk/types").EndpointV2
|
|
47
|
-
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").
|
|
48
|
+
| (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
|
|
49
|
+
import("@smithy/types").Provider<import("@smithy/types").Endpoint>)
|
|
50
|
+
| (import("@aws-sdk/types").Endpoint & import("@smithy/types").Endpoint)
|
|
51
|
+
| (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
|
|
52
|
+
import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>)
|
|
48
53
|
| undefined;
|
|
49
54
|
endpointProvider: (
|
|
50
55
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
@@ -3,8 +3,8 @@ export declare const getRuntimeConfig: (
|
|
|
3
3
|
config: ComputeOptimizerClientConfig
|
|
4
4
|
) => {
|
|
5
5
|
apiVersion: string;
|
|
6
|
-
base64Decoder: import("@
|
|
7
|
-
base64Encoder: import("@
|
|
6
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
7
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
8
8
|
disableHostPrefix: boolean;
|
|
9
9
|
endpointProvider: (
|
|
10
10
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
@@ -15,6 +15,6 @@ export declare const getRuntimeConfig: (
|
|
|
15
15
|
logger: import("@aws-sdk/types").Logger;
|
|
16
16
|
serviceId: string;
|
|
17
17
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
18
|
-
utf8Decoder: import("@
|
|
19
|
-
utf8Encoder: import("@
|
|
18
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
19
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
20
20
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-compute-optimizer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Compute Optimizer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.335.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.335.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.329.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.335.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.329.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.329.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.329.0",
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"@aws-sdk/middleware-user-agent": "3.332.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.329.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.329.0",
|
|
42
|
-
"@aws-sdk/protocol-http": "3.329.0",
|
|
43
42
|
"@aws-sdk/smithy-client": "3.329.0",
|
|
44
43
|
"@aws-sdk/types": "3.329.0",
|
|
45
44
|
"@aws-sdk/url-parser": "3.329.0",
|
|
@@ -53,6 +52,8 @@
|
|
|
53
52
|
"@aws-sdk/util-user-agent-browser": "3.329.0",
|
|
54
53
|
"@aws-sdk/util-user-agent-node": "3.329.0",
|
|
55
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
|
+
"@smithy/protocol-http": "^1.0.1",
|
|
56
|
+
"@smithy/types": "^1.0.0",
|
|
56
57
|
"tslib": "^2.5.0"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|