@aws-sdk/client-compute-optimizer 3.47.1 → 3.50.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist-cjs/models/models_0.js +33 -3
  3. package/dist-cjs/protocols/Aws_json1_0.js +22 -0
  4. package/dist-es/models/models_0.js +30 -0
  5. package/dist-es/protocols/Aws_json1_0.js +23 -2
  6. package/dist-types/models/models_0.d.ts +209 -18
  7. package/package.json +39 -33
  8. package/dist-types/ts3.4/ComputeOptimizer.d.ts +0 -95
  9. package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +0 -91
  10. package/dist-types/ts3.4/commands/DeleteRecommendationPreferencesCommand.d.ts +0 -17
  11. package/dist-types/ts3.4/commands/DescribeRecommendationExportJobsCommand.d.ts +0 -17
  12. package/dist-types/ts3.4/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +0 -17
  13. package/dist-types/ts3.4/commands/ExportEBSVolumeRecommendationsCommand.d.ts +0 -17
  14. package/dist-types/ts3.4/commands/ExportEC2InstanceRecommendationsCommand.d.ts +0 -17
  15. package/dist-types/ts3.4/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +0 -17
  16. package/dist-types/ts3.4/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +0 -17
  17. package/dist-types/ts3.4/commands/GetEBSVolumeRecommendationsCommand.d.ts +0 -17
  18. package/dist-types/ts3.4/commands/GetEC2InstanceRecommendationsCommand.d.ts +0 -17
  19. package/dist-types/ts3.4/commands/GetEC2RecommendationProjectedMetricsCommand.d.ts +0 -17
  20. package/dist-types/ts3.4/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +0 -17
  21. package/dist-types/ts3.4/commands/GetEnrollmentStatusCommand.d.ts +0 -17
  22. package/dist-types/ts3.4/commands/GetEnrollmentStatusesForOrganizationCommand.d.ts +0 -17
  23. package/dist-types/ts3.4/commands/GetLambdaFunctionRecommendationsCommand.d.ts +0 -17
  24. package/dist-types/ts3.4/commands/GetRecommendationPreferencesCommand.d.ts +0 -17
  25. package/dist-types/ts3.4/commands/GetRecommendationSummariesCommand.d.ts +0 -17
  26. package/dist-types/ts3.4/commands/PutRecommendationPreferencesCommand.d.ts +0 -17
  27. package/dist-types/ts3.4/commands/UpdateEnrollmentStatusCommand.d.ts +0 -17
  28. package/dist-types/ts3.4/commands/index.d.ts +0 -18
  29. package/dist-types/ts3.4/endpoints.d.ts +0 -2
  30. package/dist-types/ts3.4/index.d.ts +0 -4
  31. package/dist-types/ts3.4/models/index.d.ts +0 -1
  32. package/dist-types/ts3.4/models/models_0.d.ts +0 -1390
  33. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -56
  34. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -38
  35. package/dist-types/ts3.4/runtimeConfig.d.ts +0 -38
  36. package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -37
  37. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -11
@@ -86,6 +86,10 @@ export declare enum EnhancedInfrastructureMetrics {
86
86
  ACTIVE = "Active",
87
87
  INACTIVE = "Inactive"
88
88
  }
89
+ export declare enum InferredWorkloadTypesPreference {
90
+ ACTIVE = "Active",
91
+ INACTIVE = "Inactive"
92
+ }
89
93
  /**
90
94
  * <p>Describes the effective recommendation preferences for a resource.</p>
91
95
  */
@@ -115,9 +119,20 @@ export interface EffectiveRecommendationPreferences {
115
119
  * preference.</p>
116
120
  * <p>A status of <code>Active</code> confirms that the preference is applied in the latest
117
121
  * recommendation refresh, and a status of <code>Inactive</code> confirms that it's not yet
118
- * applied.</p>
122
+ * applied to recommendations.</p>
123
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Enhanced
124
+ * infrastructure metrics</a> in the <i>Compute Optimizer User
125
+ * Guide</i>.</p>
119
126
  */
120
127
  enhancedInfrastructureMetrics?: EnhancedInfrastructureMetrics | string;
128
+ /**
129
+ * <p>Describes the activation status of the inferred workload types preference.</p>
130
+ *
131
+ * <p>A status of <code>Active</code> confirms that the preference is applied in the latest
132
+ * recommendation refresh. A status of <code>Inactive</code> confirms that it's not yet
133
+ * applied to recommendations.</p>
134
+ */
135
+ inferredWorkloadTypes?: InferredWorkloadTypesPreference | string;
121
136
  }
122
137
  export declare namespace EffectiveRecommendationPreferences {
123
138
  /**
@@ -131,6 +146,21 @@ export declare enum Finding {
131
146
  OVER_PROVISIONED = "Overprovisioned",
132
147
  UNDER_PROVISIONED = "Underprovisioned"
133
148
  }
149
+ export declare enum InferredWorkloadType {
150
+ AMAZON_EMR = "AmazonEmr",
151
+ APACHE_CASSANDRA = "ApacheCassandra",
152
+ APACHE_HADOOP = "ApacheHadoop",
153
+ MEMCACHED = "Memcached",
154
+ NGINX = "Nginx",
155
+ POSTGRE_SQL = "PostgreSql",
156
+ REDIS = "Redis"
157
+ }
158
+ export declare enum MigrationEffort {
159
+ HIGH = "High",
160
+ LOW = "Low",
161
+ MEDIUM = "Medium",
162
+ VERY_LOW = "VeryLow"
163
+ }
134
164
  export declare enum MetricName {
135
165
  CPU = "Cpu",
136
166
  DISK_READ_BYTES_PER_SECOND = "DISK_READ_BYTES_PER_SECOND",
@@ -302,8 +332,8 @@ export declare enum Currency {
302
332
  USD = "USD"
303
333
  }
304
334
  /**
305
- * <p>Describes the estimated monthly savings amount possible for a given resource based on
306
- * On-Demand instance pricing</p>
335
+ * <p>Describes the estimated monthly savings amount possible, based on On-Demand instance
336
+ * pricing, by adopting Compute Optimizer recommendations for a given resource.</p>
307
337
  * <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/view-ec2-recommendations.html#ec2-savings-calculation">Estimated monthly savings and savings opportunities</a> in the
308
338
  * <i>Compute Optimizer User Guide</i>.</p>
309
339
  */
@@ -344,12 +374,14 @@ export declare namespace EstimatedMonthlySavings {
344
374
  */
345
375
  export interface SavingsOpportunity {
346
376
  /**
347
- * <p>The estimated monthly savings possible as a percentage of monthly cost.</p>
377
+ * <p>The estimated monthly savings possible as a percentage of monthly cost by adopting
378
+ * Compute Optimizer recommendations for a given resource.</p>
348
379
  */
349
380
  savingsOpportunityPercentage?: number;
350
381
  /**
351
- * <p>An object that describes the estimated monthly savings amount possible based on
352
- * On-Demand instance pricing.</p>
382
+ * <p>An object that describes the estimated monthly savings amount possible, based on
383
+ * On-Demand instance pricing, by adopting Compute Optimizer recommendations for a given
384
+ * resource.</p>
353
385
  */
354
386
  estimatedMonthlySavings?: EstimatedMonthlySavings;
355
387
  }
@@ -407,6 +439,18 @@ export interface AutoScalingGroupRecommendationOption {
407
439
  * and percentage.</p>
408
440
  */
409
441
  savingsOpportunity?: SavingsOpportunity;
442
+ /**
443
+ * <p>The level of effort required to migrate from the current instance type to the
444
+ * recommended instance type.</p>
445
+ *
446
+ * <p>For example, the migration effort is <code>Low</code> if Amazon EMR is the
447
+ * inferred workload type and an Amazon Web Services Graviton instance type is recommended.
448
+ * The migration effort is <code>Medium</code> if a workload type couldn't be inferred but
449
+ * an Amazon Web Services Graviton instance type is recommended. The migration effort is
450
+ * <code>VeryLow</code> if both the current and recommended instance types are of the
451
+ * same CPU architecture.</p>
452
+ */
453
+ migrationEffort?: MigrationEffort | string;
410
454
  }
411
455
  export declare namespace AutoScalingGroupRecommendationOption {
412
456
  /**
@@ -488,6 +532,52 @@ export interface AutoScalingGroupRecommendation {
488
532
  * <p>An object that describes the effective recommendation preferences for the Auto Scaling group.</p>
489
533
  */
490
534
  effectiveRecommendationPreferences?: EffectiveRecommendationPreferences;
535
+ /**
536
+ * <p>The applications that might be running on the instances in the Auto Scaling group
537
+ * as inferred by Compute Optimizer.</p>
538
+ *
539
+ * <p>Compute Optimizer can infer if one of the following applications might be running on
540
+ * the instances:</p>
541
+ *
542
+ * <ul>
543
+ * <li>
544
+ * <p>
545
+ * <code>AmazonEmr</code> - Infers that Amazon EMR might be running on
546
+ * the instances.</p>
547
+ * </li>
548
+ * <li>
549
+ * <p>
550
+ * <code>ApacheCassandra</code> - Infers that Apache Cassandra might be running
551
+ * on the instances.</p>
552
+ * </li>
553
+ * <li>
554
+ * <p>
555
+ * <code>ApacheHadoop</code> - Infers that Apache Hadoop might be running on the
556
+ * instances.</p>
557
+ * </li>
558
+ * <li>
559
+ * <p>
560
+ * <code>Memcached</code> - Infers that Memcached might be running on the
561
+ * instances.</p>
562
+ * </li>
563
+ * <li>
564
+ * <p>
565
+ * <code>NGINX</code> - Infers that NGINX might be running on the
566
+ * instances.</p>
567
+ * </li>
568
+ * <li>
569
+ * <p>
570
+ * <code>PostgreSql</code> - Infers that PostgreSQL might be running on the
571
+ * instances.</p>
572
+ * </li>
573
+ * <li>
574
+ * <p>
575
+ * <code>Redis</code> - Infers that Redis might be running on the
576
+ * instances.</p>
577
+ * </li>
578
+ * </ul>
579
+ */
580
+ inferredWorkloadTypes?: (InferredWorkloadType | string)[];
491
581
  }
492
582
  export declare namespace AutoScalingGroupRecommendation {
493
583
  /**
@@ -496,13 +586,15 @@ export declare namespace AutoScalingGroupRecommendation {
496
586
  const filterSensitiveLog: (obj: AutoScalingGroupRecommendation) => any;
497
587
  }
498
588
  export declare enum RecommendationPreferenceName {
499
- ENHANCED_INFRASTRUCTURE_METRICS = "EnhancedInfrastructureMetrics"
589
+ ENHANCED_INFRASTRUCTURE_METRICS = "EnhancedInfrastructureMetrics",
590
+ INFERRED_WORKLOAD_TYPES = "InferredWorkloadTypes"
500
591
  }
501
592
  export declare enum ResourceType {
502
593
  AUTO_SCALING_GROUP = "AutoScalingGroup",
503
594
  EBS_VOLUME = "EbsVolume",
504
595
  EC2_INSTANCE = "Ec2Instance",
505
- LAMBDA_FUNCTION = "LambdaFunction"
596
+ LAMBDA_FUNCTION = "LambdaFunction",
597
+ NOT_APPLICABLE = "NotApplicable"
506
598
  }
507
599
  export declare enum ScopeName {
508
600
  ACCOUNT_ID = "AccountId",
@@ -522,7 +614,9 @@ export declare enum ScopeName {
522
614
  * Auto Scaling groups only at the resource level by specifying a scope name
523
615
  * of <code>ResourceArn</code> and a scope value of the Auto Scaling group Amazon
524
616
  * Resource Name (ARN). This will configure the preference for all instances that are
525
- * part of the specified the Auto Scaling group.</p>
617
+ * part of the specified Auto Scaling group. You also cannot create recommendation
618
+ * preferences at the resource level for instances that are part of an Auto Scaling group. You can create recommendation preferences at the resource level only for
619
+ * standalone instances.</p>
526
620
  * </note>
527
621
  */
528
622
  export interface Scope {
@@ -880,7 +974,9 @@ export declare enum ExportableAutoScalingGroupField {
880
974
  CURRENT_VCPUS = "CurrentVCpus",
881
975
  EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES = "EffectiveRecommendationPreferencesCpuVendorArchitectures",
882
976
  EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS = "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics",
977
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES = "EffectiveRecommendationPreferencesInferredWorkloadTypes",
883
978
  FINDING = "Finding",
979
+ INFERRED_WORKLOAD_TYPES = "InferredWorkloadTypes",
884
980
  LAST_REFRESH_TIMESTAMP = "LastRefreshTimestamp",
885
981
  LOOKBACK_PERIOD_IN_DAYS = "LookbackPeriodInDays",
886
982
  RECOMMENDATION_OPTIONS_CONFIGURATION_DESIRED_CAPACITY = "RecommendationOptionsConfigurationDesiredCapacity",
@@ -890,6 +986,7 @@ export declare enum ExportableAutoScalingGroupField {
890
986
  RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY = "RecommendationOptionsEstimatedMonthlySavingsCurrency",
891
987
  RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE = "RecommendationOptionsEstimatedMonthlySavingsValue",
892
988
  RECOMMENDATION_OPTIONS_MEMORY = "RecommendationOptionsMemory",
989
+ RECOMMENDATION_OPTIONS_MIGRATION_EFFORT = "RecommendationOptionsMigrationEffort",
893
990
  RECOMMENDATION_OPTIONS_NETWORK = "RecommendationOptionsNetwork",
894
991
  RECOMMENDATION_OPTIONS_ON_DEMAND_PRICE = "RecommendationOptionsOnDemandPrice",
895
992
  RECOMMENDATION_OPTIONS_PERFORMANCE_RISK = "RecommendationOptionsPerformanceRisk",
@@ -1422,8 +1519,10 @@ export declare enum ExportableInstanceField {
1422
1519
  CURRENT_VCPUS = "CurrentVCpus",
1423
1520
  EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES = "EffectiveRecommendationPreferencesCpuVendorArchitectures",
1424
1521
  EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS = "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics",
1522
+ EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES = "EffectiveRecommendationPreferencesInferredWorkloadTypes",
1425
1523
  FINDING = "Finding",
1426
1524
  Finding_Reason_Codes = "FindingReasonCodes",
1525
+ INFERRED_WORKLOAD_TYPES = "InferredWorkloadTypes",
1427
1526
  INSTANCE_ARN = "InstanceArn",
1428
1527
  INSTANCE_NAME = "InstanceName",
1429
1528
  LAST_REFRESH_TIMESTAMP = "LastRefreshTimestamp",
@@ -1434,6 +1533,7 @@ export declare enum ExportableInstanceField {
1434
1533
  RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE = "RecommendationOptionsEstimatedMonthlySavingsValue",
1435
1534
  RECOMMENDATION_OPTIONS_INSTANCE_TYPE = "RecommendationOptionsInstanceType",
1436
1535
  RECOMMENDATION_OPTIONS_MEMORY = "RecommendationOptionsMemory",
1536
+ RECOMMENDATION_OPTIONS_MIGRATION_EFFORT = "RecommendationOptionsMigrationEffort",
1437
1537
  RECOMMENDATION_OPTIONS_NETWORK = "RecommendationOptionsNetwork",
1438
1538
  RECOMMENDATION_OPTIONS_ON_DEMAND_PRICE = "RecommendationOptionsOnDemandPrice",
1439
1539
  RECOMMENDATION_OPTIONS_PERFORMANCE_RISK = "RecommendationOptionsPerformanceRisk",
@@ -2294,6 +2394,18 @@ export interface InstanceRecommendationOption {
2294
2394
  * percentage.</p>
2295
2395
  */
2296
2396
  savingsOpportunity?: SavingsOpportunity;
2397
+ /**
2398
+ * <p>The level of effort required to migrate from the current instance type to the
2399
+ * recommended instance type.</p>
2400
+ *
2401
+ * <p>For example, the migration effort is <code>Low</code> if Amazon EMR is the
2402
+ * inferred workload type and an Amazon Web Services Graviton instance type is recommended.
2403
+ * The migration effort is <code>Medium</code> if a workload type couldn't be inferred but
2404
+ * an Amazon Web Services Graviton instance type is recommended. The migration effort is
2405
+ * <code>VeryLow</code> if both the current and recommended instance types are of the
2406
+ * same CPU architecture.</p>
2407
+ */
2408
+ migrationEffort?: MigrationEffort | string;
2297
2409
  }
2298
2410
  export declare namespace InstanceRecommendationOption {
2299
2411
  /**
@@ -2606,8 +2718,8 @@ export interface InstanceRecommendation {
2606
2718
  lastRefreshTimestamp?: Date;
2607
2719
  /**
2608
2720
  * <p>The risk of the current instance not meeting the performance needs of its workloads.
2609
- * The higher the risk, the more likely the current Lambda function requires
2610
- * more memory.</p>
2721
+ * The higher the risk, the more likely the current instance cannot meet the performance
2722
+ * requirements of its workload.</p>
2611
2723
  */
2612
2724
  currentPerformanceRisk?: CurrentPerformanceRisk | string;
2613
2725
  /**
@@ -2615,6 +2727,51 @@ export interface InstanceRecommendation {
2615
2727
  * instance.</p>
2616
2728
  */
2617
2729
  effectiveRecommendationPreferences?: EffectiveRecommendationPreferences;
2730
+ /**
2731
+ * <p>The applications that might be running on the instance as inferred by Compute Optimizer.</p>
2732
+ *
2733
+ * <p>Compute Optimizer can infer if one of the following applications might be running on
2734
+ * the instance:</p>
2735
+ *
2736
+ * <ul>
2737
+ * <li>
2738
+ * <p>
2739
+ * <code>AmazonEmr</code> - Infers that Amazon EMR might be running on
2740
+ * the instance.</p>
2741
+ * </li>
2742
+ * <li>
2743
+ * <p>
2744
+ * <code>ApacheCassandra</code> - Infers that Apache Cassandra might be running
2745
+ * on the instance.</p>
2746
+ * </li>
2747
+ * <li>
2748
+ * <p>
2749
+ * <code>ApacheHadoop</code> - Infers that Apache Hadoop might be running on the
2750
+ * instance.</p>
2751
+ * </li>
2752
+ * <li>
2753
+ * <p>
2754
+ * <code>Memcached</code> - Infers that Memcached might be running on the
2755
+ * instance.</p>
2756
+ * </li>
2757
+ * <li>
2758
+ * <p>
2759
+ * <code>NGINX</code> - Infers that NGINX might be running on the
2760
+ * instance.</p>
2761
+ * </li>
2762
+ * <li>
2763
+ * <p>
2764
+ * <code>PostgreSql</code> - Infers that PostgreSQL might be running on the
2765
+ * instance.</p>
2766
+ * </li>
2767
+ * <li>
2768
+ * <p>
2769
+ * <code>Redis</code> - Infers that Redis might be running on the
2770
+ * instance.</p>
2771
+ * </li>
2772
+ * </ul>
2773
+ */
2774
+ inferredWorkloadTypes?: (InferredWorkloadType | string)[];
2618
2775
  }
2619
2776
  export declare namespace InstanceRecommendation {
2620
2777
  /**
@@ -2808,10 +2965,13 @@ export interface GetEffectiveRecommendationPreferencesResponse {
2808
2965
  * organization level.</p>
2809
2966
  * <p>A status of <code>Active</code> confirms that the preference is applied in the latest
2810
2967
  * recommendation refresh, and a status of <code>Inactive</code> confirms that it's not yet
2811
- * applied.</p>
2968
+ * applied to recommendations.</p>
2812
2969
  * <p>To validate whether the preference is applied to your last generated set of
2813
2970
  * recommendations, review the <code>effectiveRecommendationPreferences</code> value in the
2814
2971
  * response of the <a>GetAutoScalingGroupRecommendations</a> and <a>GetEC2InstanceRecommendations</a> actions.</p>
2972
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Enhanced
2973
+ * infrastructure metrics</a> in the <i>Compute Optimizer User
2974
+ * Guide</i>.</p>
2815
2975
  */
2816
2976
  enhancedInfrastructureMetrics?: EnhancedInfrastructureMetrics | string;
2817
2977
  }
@@ -3247,7 +3407,7 @@ export interface LambdaFunctionRecommendation {
3247
3407
  /**
3248
3408
  * <p>The risk of the current Lambda function not meeting the performance needs
3249
3409
  * of its workloads. The higher the risk, the more likely the current Lambda
3250
- * function configuration is underperforming in its workload.</p>
3410
+ * function requires more memory.</p>
3251
3411
  */
3252
3412
  currentPerformanceRisk?: CurrentPerformanceRisk | string;
3253
3413
  }
@@ -3335,9 +3495,20 @@ export interface RecommendationPreferencesDetail {
3335
3495
  * <p>The status of the enhanced infrastructure metrics recommendation preference.</p>
3336
3496
  * <p>A status of <code>Active</code> confirms that the preference is applied in the latest
3337
3497
  * recommendation refresh, and a status of <code>Inactive</code> confirms that it's not yet
3338
- * applied.</p>
3498
+ * applied to recommendations.</p>
3499
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Enhanced
3500
+ * infrastructure metrics</a> in the <i>Compute Optimizer User
3501
+ * Guide</i>.</p>
3339
3502
  */
3340
3503
  enhancedInfrastructureMetrics?: EnhancedInfrastructureMetrics | string;
3504
+ /**
3505
+ * <p>The status of the inferred workload types recommendation preference.</p>
3506
+ *
3507
+ * <p>A status of <code>Active</code> confirms that the preference is applied in the latest
3508
+ * recommendation refresh. A status of <code>Inactive</code> confirms that it's not yet
3509
+ * applied to recommendations.</p>
3510
+ */
3511
+ inferredWorkloadTypes?: InferredWorkloadTypesPreference | string;
3341
3512
  }
3342
3513
  export declare namespace RecommendationPreferencesDetail {
3343
3514
  /**
@@ -3538,18 +3709,38 @@ export interface PutRecommendationPreferencesRequest {
3538
3709
  * Auto Scaling groups only at the resource level by specifying a scope name
3539
3710
  * of <code>ResourceArn</code> and a scope value of the Auto Scaling group Amazon
3540
3711
  * Resource Name (ARN). This will configure the preference for all instances that are
3541
- * part of the specified the Auto Scaling group.</p>
3712
+ * part of the specified Auto Scaling group. You also cannot create recommendation
3713
+ * preferences at the resource level for instances that are part of an Auto Scaling group. You can create recommendation preferences at the resource level only for
3714
+ * standalone instances.</p>
3542
3715
  * </note>
3543
3716
  */
3544
3717
  scope?: Scope;
3545
3718
  /**
3546
3719
  * <p>The status of the enhanced infrastructure metrics recommendation preference to create
3547
3720
  * or update.</p>
3548
- * <p>A status of <code>Active</code> confirms that the preference is applied in the latest
3549
- * recommendation refresh, and a status of <code>Inactive</code> confirms that it's not yet
3550
- * applied.</p>
3721
+ * <p>Specify the <code>Active</code> status to activate the preference, or specify
3722
+ * <code>Inactive</code> to deactivate the preference.</p>
3723
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Enhanced
3724
+ * infrastructure metrics</a> in the <i>Compute Optimizer User
3725
+ * Guide</i>.</p>
3551
3726
  */
3552
3727
  enhancedInfrastructureMetrics?: EnhancedInfrastructureMetrics | string;
3728
+ /**
3729
+ * <p>The status of the inferred workload types recommendation preference to create or
3730
+ * update.</p>
3731
+ *
3732
+ * <note>
3733
+ * <p>The inferred workload type feature is active by default. To deactivate it, create
3734
+ * a recommendation preference.</p>
3735
+ * </note>
3736
+ *
3737
+ * <p>Specify the <code>Inactive</code> status to deactivate the feature, or specify
3738
+ * <code>Active</code> to activate it.</p>
3739
+ *
3740
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/inferred-workload-types.html">Inferred workload
3741
+ * types</a> in the <i>Compute Optimizer User Guide</i>.</p>
3742
+ */
3743
+ inferredWorkloadTypes?: InferredWorkloadTypesPreference | string;
3553
3744
  }
3554
3745
  export declare namespace PutRecommendationPreferencesRequest {
3555
3746
  /**
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.47.1",
4
+ "version": "3.50.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",
@@ -18,41 +18,47 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.47.1",
22
- "@aws-sdk/config-resolver": "3.47.1",
23
- "@aws-sdk/credential-provider-node": "3.47.1",
24
- "@aws-sdk/fetch-http-handler": "3.47.1",
25
- "@aws-sdk/hash-node": "3.47.1",
26
- "@aws-sdk/invalid-dependency": "3.47.1",
27
- "@aws-sdk/middleware-content-length": "3.47.1",
28
- "@aws-sdk/middleware-host-header": "3.47.1",
29
- "@aws-sdk/middleware-logger": "3.47.1",
30
- "@aws-sdk/middleware-retry": "3.47.1",
31
- "@aws-sdk/middleware-serde": "3.47.1",
32
- "@aws-sdk/middleware-signing": "3.47.1",
33
- "@aws-sdk/middleware-stack": "3.47.1",
34
- "@aws-sdk/middleware-user-agent": "3.47.1",
35
- "@aws-sdk/node-config-provider": "3.47.1",
36
- "@aws-sdk/node-http-handler": "3.47.1",
37
- "@aws-sdk/protocol-http": "3.47.1",
38
- "@aws-sdk/smithy-client": "3.47.1",
39
- "@aws-sdk/types": "3.47.1",
40
- "@aws-sdk/url-parser": "3.47.1",
41
- "@aws-sdk/util-base64-browser": "3.47.1",
42
- "@aws-sdk/util-base64-node": "3.47.1",
43
- "@aws-sdk/util-body-length-browser": "3.47.1",
44
- "@aws-sdk/util-body-length-node": "3.47.1",
45
- "@aws-sdk/util-defaults-mode-browser": "3.47.1",
46
- "@aws-sdk/util-defaults-mode-node": "3.47.1",
47
- "@aws-sdk/util-user-agent-browser": "3.47.1",
48
- "@aws-sdk/util-user-agent-node": "3.47.1",
49
- "@aws-sdk/util-utf8-browser": "3.47.1",
50
- "@aws-sdk/util-utf8-node": "3.47.1",
21
+ "@aws-sdk/client-sts": "3.50.0",
22
+ "@aws-sdk/config-resolver": "3.50.0",
23
+ "@aws-sdk/credential-provider-node": "3.50.0",
24
+ "@aws-sdk/fetch-http-handler": "3.50.0",
25
+ "@aws-sdk/hash-node": "3.50.0",
26
+ "@aws-sdk/invalid-dependency": "3.50.0",
27
+ "@aws-sdk/middleware-content-length": "3.50.0",
28
+ "@aws-sdk/middleware-host-header": "3.50.0",
29
+ "@aws-sdk/middleware-logger": "3.50.0",
30
+ "@aws-sdk/middleware-retry": "3.50.0",
31
+ "@aws-sdk/middleware-serde": "3.50.0",
32
+ "@aws-sdk/middleware-signing": "3.50.0",
33
+ "@aws-sdk/middleware-stack": "3.50.0",
34
+ "@aws-sdk/middleware-user-agent": "3.50.0",
35
+ "@aws-sdk/node-config-provider": "3.50.0",
36
+ "@aws-sdk/node-http-handler": "3.50.0",
37
+ "@aws-sdk/protocol-http": "3.50.0",
38
+ "@aws-sdk/smithy-client": "3.50.0",
39
+ "@aws-sdk/types": "3.50.0",
40
+ "@aws-sdk/url-parser": "3.50.0",
41
+ "@aws-sdk/util-base64-browser": "3.49.0",
42
+ "@aws-sdk/util-base64-node": "3.49.0",
43
+ "@aws-sdk/util-body-length-browser": "3.49.0",
44
+ "@aws-sdk/util-body-length-node": "3.49.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.50.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.50.0",
48
+ "@aws-sdk/util-user-agent-node": "3.50.0",
49
+ "@aws-sdk/util-utf8-browser": "3.49.0",
50
+ "@aws-sdk/util-utf8-node": "3.49.0",
51
51
  "tslib": "^2.3.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.47.1",
55
- "@types/node": "^12.7.5"
54
+ "@aws-sdk/service-client-documentation-generator": "3.49.0",
55
+ "@tsconfig/recommended": "1.0.1",
56
+ "@types/node": "^12.7.5",
57
+ "concurrently": "7.0.0",
58
+ "downlevel-dts": "0.7.0",
59
+ "rimraf": "3.0.2",
60
+ "typedoc": "0.19.2",
61
+ "typescript": "~4.3.5"
56
62
  },
57
63
  "engines": {
58
64
  "node": ">=12.0.0"
@@ -1,95 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
- import { DeleteRecommendationPreferencesCommandInput, DeleteRecommendationPreferencesCommandOutput } from "./commands/DeleteRecommendationPreferencesCommand";
3
- import { DescribeRecommendationExportJobsCommandInput, DescribeRecommendationExportJobsCommandOutput } from "./commands/DescribeRecommendationExportJobsCommand";
4
- import { ExportAutoScalingGroupRecommendationsCommandInput, ExportAutoScalingGroupRecommendationsCommandOutput } from "./commands/ExportAutoScalingGroupRecommendationsCommand";
5
- import { ExportEBSVolumeRecommendationsCommandInput, ExportEBSVolumeRecommendationsCommandOutput } from "./commands/ExportEBSVolumeRecommendationsCommand";
6
- import { ExportEC2InstanceRecommendationsCommandInput, ExportEC2InstanceRecommendationsCommandOutput } from "./commands/ExportEC2InstanceRecommendationsCommand";
7
- import { ExportLambdaFunctionRecommendationsCommandInput, ExportLambdaFunctionRecommendationsCommandOutput } from "./commands/ExportLambdaFunctionRecommendationsCommand";
8
- import { GetAutoScalingGroupRecommendationsCommandInput, GetAutoScalingGroupRecommendationsCommandOutput } from "./commands/GetAutoScalingGroupRecommendationsCommand";
9
- import { GetEBSVolumeRecommendationsCommandInput, GetEBSVolumeRecommendationsCommandOutput } from "./commands/GetEBSVolumeRecommendationsCommand";
10
- import { GetEC2InstanceRecommendationsCommandInput, GetEC2InstanceRecommendationsCommandOutput } from "./commands/GetEC2InstanceRecommendationsCommand";
11
- import { GetEC2RecommendationProjectedMetricsCommandInput, GetEC2RecommendationProjectedMetricsCommandOutput } from "./commands/GetEC2RecommendationProjectedMetricsCommand";
12
- import { GetEffectiveRecommendationPreferencesCommandInput, GetEffectiveRecommendationPreferencesCommandOutput } from "./commands/GetEffectiveRecommendationPreferencesCommand";
13
- import { GetEnrollmentStatusCommandInput, GetEnrollmentStatusCommandOutput } from "./commands/GetEnrollmentStatusCommand";
14
- import { GetEnrollmentStatusesForOrganizationCommandInput, GetEnrollmentStatusesForOrganizationCommandOutput } from "./commands/GetEnrollmentStatusesForOrganizationCommand";
15
- import { GetLambdaFunctionRecommendationsCommandInput, GetLambdaFunctionRecommendationsCommandOutput } from "./commands/GetLambdaFunctionRecommendationsCommand";
16
- import { GetRecommendationPreferencesCommandInput, GetRecommendationPreferencesCommandOutput } from "./commands/GetRecommendationPreferencesCommand";
17
- import { GetRecommendationSummariesCommandInput, GetRecommendationSummariesCommandOutput } from "./commands/GetRecommendationSummariesCommand";
18
- import { PutRecommendationPreferencesCommandInput, PutRecommendationPreferencesCommandOutput } from "./commands/PutRecommendationPreferencesCommand";
19
- import { UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput } from "./commands/UpdateEnrollmentStatusCommand";
20
- import { ComputeOptimizerClient } from "./ComputeOptimizerClient";
21
-
22
- export declare class ComputeOptimizer extends ComputeOptimizerClient {
23
-
24
- deleteRecommendationPreferences(args: DeleteRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRecommendationPreferencesCommandOutput>;
25
- deleteRecommendationPreferences(args: DeleteRecommendationPreferencesCommandInput, cb: (err: any, data?: DeleteRecommendationPreferencesCommandOutput) => void): void;
26
- deleteRecommendationPreferences(args: DeleteRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRecommendationPreferencesCommandOutput) => void): void;
27
-
28
- describeRecommendationExportJobs(args: DescribeRecommendationExportJobsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRecommendationExportJobsCommandOutput>;
29
- describeRecommendationExportJobs(args: DescribeRecommendationExportJobsCommandInput, cb: (err: any, data?: DescribeRecommendationExportJobsCommandOutput) => void): void;
30
- describeRecommendationExportJobs(args: DescribeRecommendationExportJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRecommendationExportJobsCommandOutput) => void): void;
31
-
32
- exportAutoScalingGroupRecommendations(args: ExportAutoScalingGroupRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportAutoScalingGroupRecommendationsCommandOutput>;
33
- exportAutoScalingGroupRecommendations(args: ExportAutoScalingGroupRecommendationsCommandInput, cb: (err: any, data?: ExportAutoScalingGroupRecommendationsCommandOutput) => void): void;
34
- exportAutoScalingGroupRecommendations(args: ExportAutoScalingGroupRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportAutoScalingGroupRecommendationsCommandOutput) => void): void;
35
-
36
- exportEBSVolumeRecommendations(args: ExportEBSVolumeRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportEBSVolumeRecommendationsCommandOutput>;
37
- exportEBSVolumeRecommendations(args: ExportEBSVolumeRecommendationsCommandInput, cb: (err: any, data?: ExportEBSVolumeRecommendationsCommandOutput) => void): void;
38
- exportEBSVolumeRecommendations(args: ExportEBSVolumeRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportEBSVolumeRecommendationsCommandOutput) => void): void;
39
-
40
- exportEC2InstanceRecommendations(args: ExportEC2InstanceRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportEC2InstanceRecommendationsCommandOutput>;
41
- exportEC2InstanceRecommendations(args: ExportEC2InstanceRecommendationsCommandInput, cb: (err: any, data?: ExportEC2InstanceRecommendationsCommandOutput) => void): void;
42
- exportEC2InstanceRecommendations(args: ExportEC2InstanceRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportEC2InstanceRecommendationsCommandOutput) => void): void;
43
-
44
- exportLambdaFunctionRecommendations(args: ExportLambdaFunctionRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ExportLambdaFunctionRecommendationsCommandOutput>;
45
- exportLambdaFunctionRecommendations(args: ExportLambdaFunctionRecommendationsCommandInput, cb: (err: any, data?: ExportLambdaFunctionRecommendationsCommandOutput) => void): void;
46
- exportLambdaFunctionRecommendations(args: ExportLambdaFunctionRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportLambdaFunctionRecommendationsCommandOutput) => void): void;
47
-
48
- getAutoScalingGroupRecommendations(args: GetAutoScalingGroupRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<GetAutoScalingGroupRecommendationsCommandOutput>;
49
- getAutoScalingGroupRecommendations(args: GetAutoScalingGroupRecommendationsCommandInput, cb: (err: any, data?: GetAutoScalingGroupRecommendationsCommandOutput) => void): void;
50
- getAutoScalingGroupRecommendations(args: GetAutoScalingGroupRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAutoScalingGroupRecommendationsCommandOutput) => void): void;
51
-
52
- getEBSVolumeRecommendations(args: GetEBSVolumeRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<GetEBSVolumeRecommendationsCommandOutput>;
53
- getEBSVolumeRecommendations(args: GetEBSVolumeRecommendationsCommandInput, cb: (err: any, data?: GetEBSVolumeRecommendationsCommandOutput) => void): void;
54
- getEBSVolumeRecommendations(args: GetEBSVolumeRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEBSVolumeRecommendationsCommandOutput) => void): void;
55
-
56
- getEC2InstanceRecommendations(args: GetEC2InstanceRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<GetEC2InstanceRecommendationsCommandOutput>;
57
- getEC2InstanceRecommendations(args: GetEC2InstanceRecommendationsCommandInput, cb: (err: any, data?: GetEC2InstanceRecommendationsCommandOutput) => void): void;
58
- getEC2InstanceRecommendations(args: GetEC2InstanceRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEC2InstanceRecommendationsCommandOutput) => void): void;
59
-
60
- getEC2RecommendationProjectedMetrics(args: GetEC2RecommendationProjectedMetricsCommandInput, options?: __HttpHandlerOptions): Promise<GetEC2RecommendationProjectedMetricsCommandOutput>;
61
- getEC2RecommendationProjectedMetrics(args: GetEC2RecommendationProjectedMetricsCommandInput, cb: (err: any, data?: GetEC2RecommendationProjectedMetricsCommandOutput) => void): void;
62
- getEC2RecommendationProjectedMetrics(args: GetEC2RecommendationProjectedMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEC2RecommendationProjectedMetricsCommandOutput) => void): void;
63
-
64
- getEffectiveRecommendationPreferences(args: GetEffectiveRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetEffectiveRecommendationPreferencesCommandOutput>;
65
- getEffectiveRecommendationPreferences(args: GetEffectiveRecommendationPreferencesCommandInput, cb: (err: any, data?: GetEffectiveRecommendationPreferencesCommandOutput) => void): void;
66
- getEffectiveRecommendationPreferences(args: GetEffectiveRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEffectiveRecommendationPreferencesCommandOutput) => void): void;
67
-
68
- getEnrollmentStatus(args: GetEnrollmentStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetEnrollmentStatusCommandOutput>;
69
- getEnrollmentStatus(args: GetEnrollmentStatusCommandInput, cb: (err: any, data?: GetEnrollmentStatusCommandOutput) => void): void;
70
- getEnrollmentStatus(args: GetEnrollmentStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnrollmentStatusCommandOutput) => void): void;
71
-
72
- getEnrollmentStatusesForOrganization(args: GetEnrollmentStatusesForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<GetEnrollmentStatusesForOrganizationCommandOutput>;
73
- getEnrollmentStatusesForOrganization(args: GetEnrollmentStatusesForOrganizationCommandInput, cb: (err: any, data?: GetEnrollmentStatusesForOrganizationCommandOutput) => void): void;
74
- getEnrollmentStatusesForOrganization(args: GetEnrollmentStatusesForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnrollmentStatusesForOrganizationCommandOutput) => void): void;
75
-
76
- getLambdaFunctionRecommendations(args: GetLambdaFunctionRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<GetLambdaFunctionRecommendationsCommandOutput>;
77
- getLambdaFunctionRecommendations(args: GetLambdaFunctionRecommendationsCommandInput, cb: (err: any, data?: GetLambdaFunctionRecommendationsCommandOutput) => void): void;
78
- getLambdaFunctionRecommendations(args: GetLambdaFunctionRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLambdaFunctionRecommendationsCommandOutput) => void): void;
79
-
80
- getRecommendationPreferences(args: GetRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetRecommendationPreferencesCommandOutput>;
81
- getRecommendationPreferences(args: GetRecommendationPreferencesCommandInput, cb: (err: any, data?: GetRecommendationPreferencesCommandOutput) => void): void;
82
- getRecommendationPreferences(args: GetRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecommendationPreferencesCommandOutput) => void): void;
83
-
84
- getRecommendationSummaries(args: GetRecommendationSummariesCommandInput, options?: __HttpHandlerOptions): Promise<GetRecommendationSummariesCommandOutput>;
85
- getRecommendationSummaries(args: GetRecommendationSummariesCommandInput, cb: (err: any, data?: GetRecommendationSummariesCommandOutput) => void): void;
86
- getRecommendationSummaries(args: GetRecommendationSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecommendationSummariesCommandOutput) => void): void;
87
-
88
- putRecommendationPreferences(args: PutRecommendationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<PutRecommendationPreferencesCommandOutput>;
89
- putRecommendationPreferences(args: PutRecommendationPreferencesCommandInput, cb: (err: any, data?: PutRecommendationPreferencesCommandOutput) => void): void;
90
- putRecommendationPreferences(args: PutRecommendationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRecommendationPreferencesCommandOutput) => void): void;
91
-
92
- updateEnrollmentStatus(args: UpdateEnrollmentStatusCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEnrollmentStatusCommandOutput>;
93
- updateEnrollmentStatus(args: UpdateEnrollmentStatusCommandInput, cb: (err: any, data?: UpdateEnrollmentStatusCommandOutput) => void): void;
94
- updateEnrollmentStatus(args: UpdateEnrollmentStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEnrollmentStatusCommandOutput) => void): void;
95
- }