@aws-sdk/client-compute-optimizer 3.1033.0 → 3.1034.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/dist-types/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +2 -2
- package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +1 -1
- package/dist-types/commands/GetRecommendationSummariesCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +83 -83
- package/package.json +18 -18
package/README.md
CHANGED
|
@@ -62,6 +62,45 @@ const params = { /** input parameters */ };
|
|
|
62
62
|
const command = new GetEnrollmentStatusCommand(params);
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
+
#### Supported Message Protocols
|
|
66
|
+
|
|
67
|
+
This client supports multiple protocols.
|
|
68
|
+
|
|
69
|
+
The default for this client is **AWS JSON (RPC) 1.0**.
|
|
70
|
+
|
|
71
|
+
We have selected this default based on our evaluation of the
|
|
72
|
+
performance characteristics of this protocol format in JavaScript. You don't need to change it,
|
|
73
|
+
but you have the option to do so, for example to support existing integrations or tests.
|
|
74
|
+
Selecting a non-default protocol changes the format
|
|
75
|
+
of the data sent over the network, but does not affect how you interact with the
|
|
76
|
+
client using JavaScript objects.
|
|
77
|
+
|
|
78
|
+
Install the `@aws-sdk/config` package to access alternate protocols.
|
|
79
|
+
|
|
80
|
+
See [AWS Protocols](https://smithy.io/2.0/aws/protocols/index.html) for more information.
|
|
81
|
+
|
|
82
|
+
##### AWS JSON (RPC) 1.0
|
|
83
|
+
|
|
84
|
+
This protocol uses JSON payloads.
|
|
85
|
+
```js
|
|
86
|
+
import { AwsJson1_0Protocol } from "@aws-sdk/config/protocol";
|
|
87
|
+
|
|
88
|
+
const client = new ComputeOptimizerClient({
|
|
89
|
+
protocol: AwsJson1_0Protocol
|
|
90
|
+
});
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
##### Smithy RPC v2 CBOR
|
|
94
|
+
|
|
95
|
+
This protocol uses CBOR payloads.
|
|
96
|
+
```js
|
|
97
|
+
import { AwsSmithyRpcV2CborProtocol } from "@aws-sdk/config/protocol";
|
|
98
|
+
|
|
99
|
+
const client = new ComputeOptimizerClient({
|
|
100
|
+
protocol: AwsSmithyRpcV2CborProtocol
|
|
101
|
+
});
|
|
102
|
+
```
|
|
103
|
+
|
|
65
104
|
#### Async/await
|
|
66
105
|
|
|
67
106
|
We recommend using the [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
|
|
@@ -27,12 +27,12 @@ declare const ExportAutoScalingGroupRecommendationsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Exports optimization recommendations for
|
|
30
|
+
* <p>Exports optimization recommendations for Auto Scaling groups.</p>
|
|
31
31
|
* <p>Recommendations are exported in a comma-separated values (.csv) file, and its metadata
|
|
32
32
|
* in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html">Exporting
|
|
33
33
|
* Recommendations</a> in the <i>Compute Optimizer User
|
|
34
34
|
* Guide</i>.</p>
|
|
35
|
-
* <p>You can have only one
|
|
35
|
+
* <p>You can have only one Auto Scaling group export job in progress per Amazon Web Services Region.</p>
|
|
36
36
|
* @example
|
|
37
37
|
* Use a bare-bones client and the command you need to make an API call.
|
|
38
38
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const GetAutoScalingGroupRecommendationsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Returns
|
|
30
|
+
* <p>Returns Auto Scaling group recommendations.</p>
|
|
31
31
|
* <p>Compute Optimizer generates recommendations for Amazon EC2 Auto Scaling groups that
|
|
32
32
|
* meet a specific set of requirements. For more information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported
|
|
33
33
|
* resources and requirements</a> in the <i>Compute Optimizer User
|
|
@@ -31,7 +31,7 @@ declare const GetRecommendationPreferencesCommand_base: {
|
|
|
31
31
|
* metrics.</p>
|
|
32
32
|
* <p>Use the <code>scope</code> parameter to specify which preferences to return. You can
|
|
33
33
|
* specify to return preferences for an organization, a specific account ID, or a specific
|
|
34
|
-
* EC2 instance or
|
|
34
|
+
* EC2 instance or Auto Scaling group Amazon Resource Name (ARN).</p>
|
|
35
35
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating
|
|
36
36
|
* enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
|
|
37
37
|
* Guide</i>.</p>
|
|
@@ -36,7 +36,7 @@ declare const GetRecommendationSummariesCommand_base: {
|
|
|
36
36
|
* <code>Optimized</code>.</p>
|
|
37
37
|
* </li>
|
|
38
38
|
* <li>
|
|
39
|
-
* <p>
|
|
39
|
+
* <p>EC2Auto Scaling groups in an account that are <code>NotOptimized</code>, or
|
|
40
40
|
* <code>Optimized</code>.</p>
|
|
41
41
|
* </li>
|
|
42
42
|
* <li>
|
|
@@ -29,56 +29,56 @@ export interface AccountEnrollmentStatus {
|
|
|
29
29
|
lastUpdatedTimestamp?: Date | undefined;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* <p>Describes the configuration of an EC2
|
|
32
|
+
* <p>Describes the configuration of an EC2 Auto Scaling group.</p>
|
|
33
33
|
* @public
|
|
34
34
|
*/
|
|
35
35
|
export interface AutoScalingGroupConfiguration {
|
|
36
36
|
/**
|
|
37
|
-
* <p>The desired capacity, or number of instances, for the EC2
|
|
37
|
+
* <p>The desired capacity, or number of instances, for the EC2 Auto Scaling group.</p>
|
|
38
38
|
* @public
|
|
39
39
|
*/
|
|
40
40
|
desiredCapacity?: number | undefined;
|
|
41
41
|
/**
|
|
42
|
-
* <p>The minimum size, or minimum number of instances, for the EC2
|
|
42
|
+
* <p>The minimum size, or minimum number of instances, for the EC2 Auto Scaling
|
|
43
43
|
* group.</p>
|
|
44
44
|
* @public
|
|
45
45
|
*/
|
|
46
46
|
minSize?: number | undefined;
|
|
47
47
|
/**
|
|
48
|
-
* <p>The maximum size, or maximum number of instances, for the EC2
|
|
48
|
+
* <p>The maximum size, or maximum number of instances, for the EC2 Auto Scaling
|
|
49
49
|
* group.</p>
|
|
50
50
|
* @public
|
|
51
51
|
*/
|
|
52
52
|
maxSize?: number | undefined;
|
|
53
53
|
/**
|
|
54
|
-
* <p>The instance type for the EC2
|
|
54
|
+
* <p>The instance type for the EC2 Auto Scaling group.</p>
|
|
55
55
|
* @public
|
|
56
56
|
*/
|
|
57
57
|
instanceType?: string | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* <p>
|
|
60
|
-
* Describes the allocation strategy that the EC2
|
|
60
|
+
* Describes the allocation strategy that the EC2 Auto Scaling group uses. This field is only available for EC2 Auto Scaling groups with mixed instance types.
|
|
61
61
|
* </p>
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
allocationStrategy?: AllocationStrategy | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* <p>
|
|
67
|
-
* Describes the projected percentage reduction in instance hours after adopting the recommended configuration. This field is only available for EC2
|
|
67
|
+
* Describes the projected percentage reduction in instance hours after adopting the recommended configuration. This field is only available for EC2 Auto Scaling groups with scaling policies.
|
|
68
68
|
* </p>
|
|
69
69
|
* @public
|
|
70
70
|
*/
|
|
71
71
|
estimatedInstanceHourReductionPercentage?: number | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* <p>
|
|
74
|
-
* Describes whether the EC2
|
|
74
|
+
* Describes whether the EC2 Auto Scaling group has a single instance type or a mixed instance type configuration.
|
|
75
75
|
* </p>
|
|
76
76
|
* @public
|
|
77
77
|
*/
|
|
78
78
|
type?: AsgType | undefined;
|
|
79
79
|
/**
|
|
80
80
|
* <p>
|
|
81
|
-
* List the instance types within an EC2
|
|
81
|
+
* List the instance types within an EC2 Auto Scaling group that has mixed instance types.
|
|
82
82
|
* </p>
|
|
83
83
|
* @public
|
|
84
84
|
*/
|
|
@@ -86,7 +86,7 @@ export interface AutoScalingGroupConfiguration {
|
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
88
|
* <p>
|
|
89
|
-
* An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s
|
|
89
|
+
* An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Auto Scaling group recommendations. This is based on the
|
|
90
90
|
* Savings Plans and Reserved Instances discounts.
|
|
91
91
|
* </p>
|
|
92
92
|
* @public
|
|
@@ -277,7 +277,7 @@ export interface UtilizationPreference {
|
|
|
277
277
|
*/
|
|
278
278
|
export interface EffectiveRecommendationPreferences {
|
|
279
279
|
/**
|
|
280
|
-
* <p>Describes the CPU vendor and architecture for an instance or
|
|
280
|
+
* <p>Describes the CPU vendor and architecture for an instance or Auto Scaling group
|
|
281
281
|
* recommendations.</p>
|
|
282
282
|
* <p>For example, when you specify <code>AWS_ARM64</code> with:</p>
|
|
283
283
|
* <ul>
|
|
@@ -573,7 +573,7 @@ export interface SavingsOpportunity {
|
|
|
573
573
|
}
|
|
574
574
|
/**
|
|
575
575
|
* <p>
|
|
576
|
-
* Describes the savings opportunity for
|
|
576
|
+
* Describes the savings opportunity for Auto Scaling group recommendations after applying the Savings Plans and Reserved Instances discounts.
|
|
577
577
|
* </p>
|
|
578
578
|
* <p>Savings opportunity represents the estimated monthly savings you can achieve by implementing Compute Optimizer recommendations.</p>
|
|
579
579
|
* @public
|
|
@@ -582,14 +582,14 @@ export interface AutoScalingGroupSavingsOpportunityAfterDiscounts {
|
|
|
582
582
|
/**
|
|
583
583
|
* <p>
|
|
584
584
|
* The estimated monthly savings possible as a percentage of monthly cost after applying the Savings Plans and Reserved Instances discounts. This saving can be
|
|
585
|
-
* achieved by adopting Compute Optimizer’s
|
|
585
|
+
* achieved by adopting Compute Optimizer’s Auto Scaling group recommendations.
|
|
586
586
|
* </p>
|
|
587
587
|
* @public
|
|
588
588
|
*/
|
|
589
589
|
savingsOpportunityPercentage?: number | undefined;
|
|
590
590
|
/**
|
|
591
591
|
* <p>
|
|
592
|
-
* An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s
|
|
592
|
+
* An object that describes the estimated monthly savings possible by adopting Compute Optimizer’s Auto Scaling group recommendations. This is based on the
|
|
593
593
|
* Savings Plans and Reserved Instances pricing discounts.
|
|
594
594
|
* </p>
|
|
595
595
|
* @public
|
|
@@ -597,24 +597,24 @@ export interface AutoScalingGroupSavingsOpportunityAfterDiscounts {
|
|
|
597
597
|
estimatedMonthlySavings?: AutoScalingGroupEstimatedMonthlySavings | undefined;
|
|
598
598
|
}
|
|
599
599
|
/**
|
|
600
|
-
* <p>Describes a recommendation option for an
|
|
600
|
+
* <p>Describes a recommendation option for an Auto Scaling group.</p>
|
|
601
601
|
* @public
|
|
602
602
|
*/
|
|
603
603
|
export interface AutoScalingGroupRecommendationOption {
|
|
604
604
|
/**
|
|
605
|
-
* <p>An array of objects that describe an
|
|
605
|
+
* <p>An array of objects that describe an Auto Scaling group configuration.</p>
|
|
606
606
|
* @public
|
|
607
607
|
*/
|
|
608
608
|
configuration?: AutoScalingGroupConfiguration | undefined;
|
|
609
609
|
/**
|
|
610
610
|
* <p>
|
|
611
|
-
* Describes the GPU accelerator settings for the recommended instance type of the
|
|
611
|
+
* Describes the GPU accelerator settings for the recommended instance type of the Auto Scaling group.
|
|
612
612
|
* </p>
|
|
613
613
|
* @public
|
|
614
614
|
*/
|
|
615
615
|
instanceGpuInfo?: GpuInfo | undefined;
|
|
616
616
|
/**
|
|
617
|
-
* <p>An array of objects that describe the projected utilization metrics of the
|
|
617
|
+
* <p>An array of objects that describe the projected utilization metrics of the Auto Scaling group recommendation option.</p>
|
|
618
618
|
* <note>
|
|
619
619
|
* <p>The <code>Cpu</code> and <code>Memory</code> metrics are the only projected
|
|
620
620
|
* utilization metrics returned. Additionally, the <code>Memory</code> metric is
|
|
@@ -626,7 +626,7 @@ export interface AutoScalingGroupRecommendationOption {
|
|
|
626
626
|
*/
|
|
627
627
|
projectedUtilizationMetrics?: UtilizationMetric[] | undefined;
|
|
628
628
|
/**
|
|
629
|
-
* <p>The performance risk of the
|
|
629
|
+
* <p>The performance risk of the Auto Scaling group configuration
|
|
630
630
|
* recommendation.</p>
|
|
631
631
|
* <p>Performance risk indicates the likelihood of the recommended instance type not meeting
|
|
632
632
|
* the resource needs of your workload. Compute Optimizer calculates an individual
|
|
@@ -645,13 +645,13 @@ export interface AutoScalingGroupRecommendationOption {
|
|
|
645
645
|
*/
|
|
646
646
|
performanceRisk?: number | undefined;
|
|
647
647
|
/**
|
|
648
|
-
* <p>The rank of the
|
|
648
|
+
* <p>The rank of the Auto Scaling group recommendation option.</p>
|
|
649
649
|
* <p>The top recommendation option is ranked as <code>1</code>.</p>
|
|
650
650
|
* @public
|
|
651
651
|
*/
|
|
652
652
|
rank?: number | undefined;
|
|
653
653
|
/**
|
|
654
|
-
* <p>An object that describes the savings opportunity for the
|
|
654
|
+
* <p>An object that describes the savings opportunity for the Auto Scaling group
|
|
655
655
|
* recommendation option. Savings opportunity includes the estimated monthly savings amount
|
|
656
656
|
* and percentage.</p>
|
|
657
657
|
* @public
|
|
@@ -659,7 +659,7 @@ export interface AutoScalingGroupRecommendationOption {
|
|
|
659
659
|
savingsOpportunity?: SavingsOpportunity | undefined;
|
|
660
660
|
/**
|
|
661
661
|
* <p>
|
|
662
|
-
* An object that describes the savings opportunity for the
|
|
662
|
+
* An object that describes the savings opportunity for the Auto Scaling group recommendation option that includes Savings Plans and Reserved Instances discounts.
|
|
663
663
|
* Savings opportunity includes the estimated monthly savings and percentage.
|
|
664
664
|
* </p>
|
|
665
665
|
* @public
|
|
@@ -679,41 +679,41 @@ export interface AutoScalingGroupRecommendationOption {
|
|
|
679
679
|
migrationEffort?: MigrationEffort | undefined;
|
|
680
680
|
}
|
|
681
681
|
/**
|
|
682
|
-
* <p>Describes an
|
|
682
|
+
* <p>Describes an Auto Scaling group recommendation.</p>
|
|
683
683
|
* @public
|
|
684
684
|
*/
|
|
685
685
|
export interface AutoScalingGroupRecommendation {
|
|
686
686
|
/**
|
|
687
|
-
* <p>The Amazon Web Services account ID of the
|
|
687
|
+
* <p>The Amazon Web Services account ID of the Auto Scaling group.</p>
|
|
688
688
|
* @public
|
|
689
689
|
*/
|
|
690
690
|
accountId?: string | undefined;
|
|
691
691
|
/**
|
|
692
|
-
* <p>The Amazon Resource Name (ARN) of the
|
|
692
|
+
* <p>The Amazon Resource Name (ARN) of the Auto Scaling group.</p>
|
|
693
693
|
* @public
|
|
694
694
|
*/
|
|
695
695
|
autoScalingGroupArn?: string | undefined;
|
|
696
696
|
/**
|
|
697
|
-
* <p>The name of the
|
|
697
|
+
* <p>The name of the Auto Scaling group.</p>
|
|
698
698
|
* @public
|
|
699
699
|
*/
|
|
700
700
|
autoScalingGroupName?: string | undefined;
|
|
701
701
|
/**
|
|
702
|
-
* <p>The finding classification of the
|
|
703
|
-
* <p>Findings for
|
|
702
|
+
* <p>The finding classification of the Auto Scaling group.</p>
|
|
703
|
+
* <p>Findings for Auto Scaling groups include:</p>
|
|
704
704
|
* <ul>
|
|
705
705
|
* <li>
|
|
706
706
|
* <p>
|
|
707
707
|
* <b>
|
|
708
708
|
* <code>NotOptimized</code>
|
|
709
|
-
* </b>—An
|
|
709
|
+
* </b>—An Auto Scaling group is considered not optimized when Compute Optimizer identifies a
|
|
710
710
|
* recommendation that can provide better performance for your workload.</p>
|
|
711
711
|
* </li>
|
|
712
712
|
* <li>
|
|
713
713
|
* <p>
|
|
714
714
|
* <b>
|
|
715
715
|
* <code>Optimized</code>
|
|
716
|
-
* </b>—An
|
|
716
|
+
* </b>—An Auto Scaling
|
|
717
717
|
* group is considered optimized when Compute Optimizer determines that the group
|
|
718
718
|
* is correctly provisioned to run your workload based on the chosen instance type.
|
|
719
719
|
* For optimized resources, Compute Optimizer might recommend a new generation
|
|
@@ -724,55 +724,55 @@ export interface AutoScalingGroupRecommendation {
|
|
|
724
724
|
*/
|
|
725
725
|
finding?: Finding | undefined;
|
|
726
726
|
/**
|
|
727
|
-
* <p>An array of objects that describe the utilization metrics of the
|
|
727
|
+
* <p>An array of objects that describe the utilization metrics of the Auto Scaling
|
|
728
728
|
* group.</p>
|
|
729
729
|
* @public
|
|
730
730
|
*/
|
|
731
731
|
utilizationMetrics?: UtilizationMetric[] | undefined;
|
|
732
732
|
/**
|
|
733
|
-
* <p>The number of days for which utilization metrics were analyzed for the
|
|
733
|
+
* <p>The number of days for which utilization metrics were analyzed for the Auto Scaling group.</p>
|
|
734
734
|
* @public
|
|
735
735
|
*/
|
|
736
736
|
lookBackPeriodInDays?: number | undefined;
|
|
737
737
|
/**
|
|
738
|
-
* <p>An array of objects that describe the current configuration of the
|
|
738
|
+
* <p>An array of objects that describe the current configuration of the Auto Scaling
|
|
739
739
|
* group.</p>
|
|
740
740
|
* @public
|
|
741
741
|
*/
|
|
742
742
|
currentConfiguration?: AutoScalingGroupConfiguration | undefined;
|
|
743
743
|
/**
|
|
744
744
|
* <p>
|
|
745
|
-
* Describes the GPU accelerator settings for the current instance type of the
|
|
745
|
+
* Describes the GPU accelerator settings for the current instance type of the Auto Scaling group.
|
|
746
746
|
* </p>
|
|
747
747
|
* @public
|
|
748
748
|
*/
|
|
749
749
|
currentInstanceGpuInfo?: GpuInfo | undefined;
|
|
750
750
|
/**
|
|
751
|
-
* <p>An array of objects that describe the recommendation options for the
|
|
751
|
+
* <p>An array of objects that describe the recommendation options for the Auto Scaling
|
|
752
752
|
* group.</p>
|
|
753
753
|
* @public
|
|
754
754
|
*/
|
|
755
755
|
recommendationOptions?: AutoScalingGroupRecommendationOption[] | undefined;
|
|
756
756
|
/**
|
|
757
|
-
* <p>The timestamp of when the
|
|
757
|
+
* <p>The timestamp of when the Auto Scaling group recommendation was last
|
|
758
758
|
* generated.</p>
|
|
759
759
|
* @public
|
|
760
760
|
*/
|
|
761
761
|
lastRefreshTimestamp?: Date | undefined;
|
|
762
762
|
/**
|
|
763
|
-
* <p>The risk of the current
|
|
764
|
-
* its workloads. The higher the risk, the more likely the current
|
|
763
|
+
* <p>The risk of the current Auto Scaling group not meeting the performance needs of
|
|
764
|
+
* its workloads. The higher the risk, the more likely the current Auto Scaling group
|
|
765
765
|
* configuration has insufficient capacity and cannot meet workload requirements.</p>
|
|
766
766
|
* @public
|
|
767
767
|
*/
|
|
768
768
|
currentPerformanceRisk?: CurrentPerformanceRisk | undefined;
|
|
769
769
|
/**
|
|
770
|
-
* <p>An object that describes the effective recommendation preferences for the
|
|
770
|
+
* <p>An object that describes the effective recommendation preferences for the Auto Scaling group.</p>
|
|
771
771
|
* @public
|
|
772
772
|
*/
|
|
773
773
|
effectiveRecommendationPreferences?: EffectiveRecommendationPreferences | undefined;
|
|
774
774
|
/**
|
|
775
|
-
* <p>The applications that might be running on the instances in the
|
|
775
|
+
* <p>The applications that might be running on the instances in the Auto Scaling group
|
|
776
776
|
* as inferred by Compute Optimizer.</p>
|
|
777
777
|
* <p>Compute Optimizer can infer if one of the following applications might be running on
|
|
778
778
|
* the instances:</p>
|
|
@@ -835,13 +835,13 @@ export interface AutoScalingGroupRecommendation {
|
|
|
835
835
|
* enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
|
|
836
836
|
* Guide</i>.</p>
|
|
837
837
|
* <note>
|
|
838
|
-
* <p>You cannot create recommendation preferences for
|
|
838
|
+
* <p>You cannot create recommendation preferences for Auto Scaling groups at the
|
|
839
839
|
* organization and account levels. You can create recommendation preferences for
|
|
840
|
-
*
|
|
841
|
-
* of <code>ResourceArn</code> and a scope value of the
|
|
840
|
+
* Auto Scaling groups only at the resource level by specifying a scope name
|
|
841
|
+
* of <code>ResourceArn</code> and a scope value of the Auto Scaling group Amazon
|
|
842
842
|
* Resource Name (ARN). This will configure the preference for all instances that are
|
|
843
|
-
* part of the specified
|
|
844
|
-
* preferences at the resource level for instances that are part of an
|
|
843
|
+
* part of the specified Auto Scaling group. You also cannot create recommendation
|
|
844
|
+
* 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
|
|
845
845
|
* standalone instances.</p>
|
|
846
846
|
* </note>
|
|
847
847
|
* @public
|
|
@@ -888,10 +888,10 @@ export interface Scope {
|
|
|
888
888
|
* <li>
|
|
889
889
|
* <p>
|
|
890
890
|
* <code>ResourceArn</code> - The <code>value</code> must be the Amazon Resource
|
|
891
|
-
* Name (ARN) of an EC2 instance or an
|
|
891
|
+
* Name (ARN) of an EC2 instance or an Auto Scaling group.</p>
|
|
892
892
|
* </li>
|
|
893
893
|
* </ul>
|
|
894
|
-
* <p>Only EC2 instance and
|
|
894
|
+
* <p>Only EC2 instance and Auto Scaling group ARNs are currently supported.</p>
|
|
895
895
|
* @public
|
|
896
896
|
*/
|
|
897
897
|
value?: string | undefined;
|
|
@@ -903,8 +903,8 @@ export interface DeleteRecommendationPreferencesRequest {
|
|
|
903
903
|
/**
|
|
904
904
|
* <p>The target resource type of the recommendation preference to delete.</p>
|
|
905
905
|
* <p>The <code>Ec2Instance</code> option encompasses standalone instances and instances
|
|
906
|
-
* that are part of
|
|
907
|
-
* encompasses only instances that are part of an
|
|
906
|
+
* that are part of Auto Scaling groups. The <code>AutoScalingGroup</code> option
|
|
907
|
+
* encompasses only instances that are part of an Auto Scaling group.</p>
|
|
908
908
|
* @public
|
|
909
909
|
*/
|
|
910
910
|
resourceType: ResourceType | undefined;
|
|
@@ -1141,7 +1141,7 @@ export interface Filter {
|
|
|
1141
1141
|
* <li>
|
|
1142
1142
|
* <p>Specify <code>Optimized</code> or <code>NotOptimized</code> if you specify the
|
|
1143
1143
|
* <code>name</code> parameter as <code>Finding</code> and you want to filter
|
|
1144
|
-
* results for
|
|
1144
|
+
* results for Auto Scaling groups.</p>
|
|
1145
1145
|
* </li>
|
|
1146
1146
|
* <li>
|
|
1147
1147
|
* <p>Specify <code>Underprovisioned</code>, <code>Overprovisioned</code>, or
|
|
@@ -1309,7 +1309,7 @@ export interface Filter {
|
|
|
1309
1309
|
*/
|
|
1310
1310
|
export interface RecommendationPreferences {
|
|
1311
1311
|
/**
|
|
1312
|
-
* <p>Specifies the CPU vendor and architecture for Amazon EC2 instance and
|
|
1312
|
+
* <p>Specifies the CPU vendor and architecture for Amazon EC2 instance and Auto Scaling group recommendations.</p>
|
|
1313
1313
|
* <p>For example, when you specify <code>AWS_ARM64</code> with:</p>
|
|
1314
1314
|
* <ul>
|
|
1315
1315
|
* <li>
|
|
@@ -1359,7 +1359,7 @@ export interface S3DestinationConfig {
|
|
|
1359
1359
|
*/
|
|
1360
1360
|
export interface ExportAutoScalingGroupRecommendationsRequest {
|
|
1361
1361
|
/**
|
|
1362
|
-
* <p>The IDs of the Amazon Web Services accounts for which to export
|
|
1362
|
+
* <p>The IDs of the Amazon Web Services accounts for which to export Auto Scaling group
|
|
1363
1363
|
* recommendations.</p>
|
|
1364
1364
|
* <p>If your account is the management account of an organization, use this parameter to
|
|
1365
1365
|
* specify the member account for which you want to export recommendations.</p>
|
|
@@ -1372,7 +1372,7 @@ export interface ExportAutoScalingGroupRecommendationsRequest {
|
|
|
1372
1372
|
*/
|
|
1373
1373
|
accountIds?: string[] | undefined;
|
|
1374
1374
|
/**
|
|
1375
|
-
* <p>An array of objects to specify a filter that exports a more specific set of
|
|
1375
|
+
* <p>An array of objects to specify a filter that exports a more specific set of Auto Scaling group recommendations.</p>
|
|
1376
1376
|
* @public
|
|
1377
1377
|
*/
|
|
1378
1378
|
filters?: Filter[] | undefined;
|
|
@@ -1419,7 +1419,7 @@ export interface ExportAutoScalingGroupRecommendationsRequest {
|
|
|
1419
1419
|
*/
|
|
1420
1420
|
includeMemberAccounts?: boolean | undefined;
|
|
1421
1421
|
/**
|
|
1422
|
-
* <p>An object to specify the preferences for the
|
|
1422
|
+
* <p>An object to specify the preferences for the Auto Scaling group recommendations
|
|
1423
1423
|
* to export.</p>
|
|
1424
1424
|
* @public
|
|
1425
1425
|
*/
|
|
@@ -2323,29 +2323,29 @@ export interface ExportRDSDatabaseRecommendationsResponse {
|
|
|
2323
2323
|
*/
|
|
2324
2324
|
export interface GetAutoScalingGroupRecommendationsRequest {
|
|
2325
2325
|
/**
|
|
2326
|
-
* <p>The ID of the Amazon Web Services account for which to return
|
|
2326
|
+
* <p>The ID of the Amazon Web Services account for which to return Auto Scaling group
|
|
2327
2327
|
* recommendations.</p>
|
|
2328
2328
|
* <p>If your account is the management account of an organization, use this parameter to
|
|
2329
|
-
* specify the member account for which you want to return
|
|
2329
|
+
* specify the member account for which you want to return Auto Scaling group
|
|
2330
2330
|
* recommendations.</p>
|
|
2331
2331
|
* <p>Only one account ID can be specified per request.</p>
|
|
2332
2332
|
* @public
|
|
2333
2333
|
*/
|
|
2334
2334
|
accountIds?: string[] | undefined;
|
|
2335
2335
|
/**
|
|
2336
|
-
* <p>The Amazon Resource Name (ARN) of the
|
|
2336
|
+
* <p>The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return
|
|
2337
2337
|
* recommendations.</p>
|
|
2338
2338
|
* @public
|
|
2339
2339
|
*/
|
|
2340
2340
|
autoScalingGroupArns?: string[] | undefined;
|
|
2341
2341
|
/**
|
|
2342
|
-
* <p>The token to advance to the next page of
|
|
2342
|
+
* <p>The token to advance to the next page of Auto Scaling group
|
|
2343
2343
|
* recommendations.</p>
|
|
2344
2344
|
* @public
|
|
2345
2345
|
*/
|
|
2346
2346
|
nextToken?: string | undefined;
|
|
2347
2347
|
/**
|
|
2348
|
-
* <p>The maximum number of
|
|
2348
|
+
* <p>The maximum number of Auto Scaling group recommendations to return with a single
|
|
2349
2349
|
* request.</p>
|
|
2350
2350
|
* <p>To retrieve the remaining results, make another request with the returned
|
|
2351
2351
|
* <code>nextToken</code> value.</p>
|
|
@@ -2353,12 +2353,12 @@ export interface GetAutoScalingGroupRecommendationsRequest {
|
|
|
2353
2353
|
*/
|
|
2354
2354
|
maxResults?: number | undefined;
|
|
2355
2355
|
/**
|
|
2356
|
-
* <p>An array of objects to specify a filter that returns a more specific list of
|
|
2356
|
+
* <p>An array of objects to specify a filter that returns a more specific list of Auto Scaling group recommendations.</p>
|
|
2357
2357
|
* @public
|
|
2358
2358
|
*/
|
|
2359
2359
|
filters?: Filter[] | undefined;
|
|
2360
2360
|
/**
|
|
2361
|
-
* <p>An object to specify the preferences for the
|
|
2361
|
+
* <p>An object to specify the preferences for the Auto Scaling group recommendations
|
|
2362
2362
|
* to return in the response.</p>
|
|
2363
2363
|
* @public
|
|
2364
2364
|
*/
|
|
@@ -2367,7 +2367,7 @@ export interface GetAutoScalingGroupRecommendationsRequest {
|
|
|
2367
2367
|
/**
|
|
2368
2368
|
* <p>Describes an error experienced when getting recommendations.</p>
|
|
2369
2369
|
* <p>For example, an error is returned if you request recommendations for an unsupported
|
|
2370
|
-
*
|
|
2370
|
+
* Auto Scaling group, or if you request recommendations for an instance of an
|
|
2371
2371
|
* unsupported instance family.</p>
|
|
2372
2372
|
* @public
|
|
2373
2373
|
*/
|
|
@@ -2393,22 +2393,22 @@ export interface GetRecommendationError {
|
|
|
2393
2393
|
*/
|
|
2394
2394
|
export interface GetAutoScalingGroupRecommendationsResponse {
|
|
2395
2395
|
/**
|
|
2396
|
-
* <p>The token to use to advance to the next page of
|
|
2396
|
+
* <p>The token to use to advance to the next page of Auto Scaling group
|
|
2397
2397
|
* recommendations.</p>
|
|
2398
|
-
* <p>This value is null when there are no more pages of
|
|
2398
|
+
* <p>This value is null when there are no more pages of Auto Scaling group
|
|
2399
2399
|
* recommendations to return.</p>
|
|
2400
2400
|
* @public
|
|
2401
2401
|
*/
|
|
2402
2402
|
nextToken?: string | undefined;
|
|
2403
2403
|
/**
|
|
2404
|
-
* <p>An array of objects that describe
|
|
2404
|
+
* <p>An array of objects that describe Auto Scaling group recommendations.</p>
|
|
2405
2405
|
* @public
|
|
2406
2406
|
*/
|
|
2407
2407
|
autoScalingGroupRecommendations?: AutoScalingGroupRecommendation[] | undefined;
|
|
2408
2408
|
/**
|
|
2409
2409
|
* <p>An array of objects that describe errors of the request.</p>
|
|
2410
2410
|
* <p>For example, an error is returned if you request recommendations for an unsupported
|
|
2411
|
-
*
|
|
2411
|
+
* Auto Scaling group.</p>
|
|
2412
2412
|
* @public
|
|
2413
2413
|
*/
|
|
2414
2414
|
errors?: GetRecommendationError[] | undefined;
|
|
@@ -3138,7 +3138,7 @@ export interface InstanceRecommendationOption {
|
|
|
3138
3138
|
}
|
|
3139
3139
|
/**
|
|
3140
3140
|
* <p>Describes the source of a recommendation, such as an Amazon EC2 instance or
|
|
3141
|
-
*
|
|
3141
|
+
* Auto Scaling group.</p>
|
|
3142
3142
|
* @public
|
|
3143
3143
|
*/
|
|
3144
3144
|
export interface RecommendationSource {
|
|
@@ -4528,7 +4528,7 @@ export interface GetECSServiceRecommendationsResponse {
|
|
|
4528
4528
|
export interface GetEffectiveRecommendationPreferencesRequest {
|
|
4529
4529
|
/**
|
|
4530
4530
|
* <p>The Amazon Resource Name (ARN) of the resource for which to confirm effective
|
|
4531
|
-
* recommendation preferences. Only EC2 instance and
|
|
4531
|
+
* recommendation preferences. Only EC2 instance and Auto Scaling group ARNs are
|
|
4532
4532
|
* currently supported.</p>
|
|
4533
4533
|
* @public
|
|
4534
4534
|
*/
|
|
@@ -6481,8 +6481,8 @@ export interface GetRecommendationPreferencesRequest {
|
|
|
6481
6481
|
* <p>The target resource type of the recommendation preference for which to return
|
|
6482
6482
|
* preferences.</p>
|
|
6483
6483
|
* <p>The <code>Ec2Instance</code> option encompasses standalone instances and instances
|
|
6484
|
-
* that are part of
|
|
6485
|
-
* encompasses only instances that are part of an
|
|
6484
|
+
* that are part of Auto Scaling groups. The <code>AutoScalingGroup</code> option
|
|
6485
|
+
* encompasses only instances that are part of an Auto Scaling group.</p>
|
|
6486
6486
|
* @public
|
|
6487
6487
|
*/
|
|
6488
6488
|
resourceType: ResourceType | undefined;
|
|
@@ -6528,8 +6528,8 @@ export interface RecommendationPreferencesDetail {
|
|
|
6528
6528
|
/**
|
|
6529
6529
|
* <p>The target resource type of the recommendation preference to create.</p>
|
|
6530
6530
|
* <p>The <code>Ec2Instance</code> option encompasses standalone instances and instances
|
|
6531
|
-
* that are part of
|
|
6532
|
-
* encompasses only instances that are part of an
|
|
6531
|
+
* that are part of Auto Scaling groups. The <code>AutoScalingGroup</code> option
|
|
6532
|
+
* encompasses only instances that are part of an Auto Scaling group.</p>
|
|
6533
6533
|
* @public
|
|
6534
6534
|
*/
|
|
6535
6535
|
resourceType?: ResourceType | undefined;
|
|
@@ -6914,7 +6914,7 @@ export interface GetRecommendationSummariesResponse {
|
|
|
6914
6914
|
* <note>
|
|
6915
6915
|
* <ul>
|
|
6916
6916
|
* <li>
|
|
6917
|
-
* <p>This preference is only available for the Amazon EC2 instance and
|
|
6917
|
+
* <p>This preference is only available for the Amazon EC2 instance and Auto Scaling group resource types.</p>
|
|
6918
6918
|
* </li>
|
|
6919
6919
|
* <li>
|
|
6920
6920
|
* <p>Compute Optimizer only supports the customization of <code>Ec2InstanceTypes</code>.</p>
|
|
@@ -6959,8 +6959,8 @@ export interface PutRecommendationPreferencesRequest {
|
|
|
6959
6959
|
/**
|
|
6960
6960
|
* <p>The target resource type of the recommendation preference to create.</p>
|
|
6961
6961
|
* <p>The <code>Ec2Instance</code> option encompasses standalone instances and instances
|
|
6962
|
-
* that are part of
|
|
6963
|
-
* encompasses only instances that are part of an
|
|
6962
|
+
* that are part of Auto Scaling groups. The <code>AutoScalingGroup</code> option
|
|
6963
|
+
* encompasses only instances that are part of an Auto Scaling group.</p>
|
|
6964
6964
|
* @public
|
|
6965
6965
|
*/
|
|
6966
6966
|
resourceType: ResourceType | undefined;
|
|
@@ -6972,13 +6972,13 @@ export interface PutRecommendationPreferencesRequest {
|
|
|
6972
6972
|
* enhanced infrastructure metrics</a> in the <i>Compute Optimizer User
|
|
6973
6973
|
* Guide</i>.</p>
|
|
6974
6974
|
* <note>
|
|
6975
|
-
* <p>You cannot create recommendation preferences for
|
|
6975
|
+
* <p>You cannot create recommendation preferences for Auto Scaling groups at the
|
|
6976
6976
|
* organization and account levels. You can create recommendation preferences for
|
|
6977
|
-
*
|
|
6978
|
-
* of <code>ResourceArn</code> and a scope value of the
|
|
6977
|
+
* Auto Scaling groups only at the resource level by specifying a scope name
|
|
6978
|
+
* of <code>ResourceArn</code> and a scope value of the Auto Scaling group Amazon
|
|
6979
6979
|
* Resource Name (ARN). This will configure the preference for all instances that are
|
|
6980
|
-
* part of the specified
|
|
6981
|
-
* preferences at the resource level for instances that are part of an
|
|
6980
|
+
* part of the specified Auto Scaling group. You also cannot create recommendation
|
|
6981
|
+
* 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
|
|
6982
6982
|
* standalone instances.</p>
|
|
6983
6983
|
* </note>
|
|
6984
6984
|
* @public
|
|
@@ -7027,7 +7027,7 @@ export interface PutRecommendationPreferencesRequest {
|
|
|
7027
7027
|
* The preference to control the number of days the utilization metrics of the Amazon Web Services resource are analyzed.
|
|
7028
7028
|
* When this preference isn't specified, we use the default value <code>DAYS_14</code>.
|
|
7029
7029
|
* </p>
|
|
7030
|
-
* <p>You can only set this preference for the Amazon EC2 instance and
|
|
7030
|
+
* <p>You can only set this preference for the Amazon EC2 instance and Auto Scaling group resource types.
|
|
7031
7031
|
* </p>
|
|
7032
7032
|
* <note>
|
|
7033
7033
|
* <ul>
|
|
@@ -7035,7 +7035,7 @@ export interface PutRecommendationPreferencesRequest {
|
|
|
7035
7035
|
* <p>Amazon EC2 instance lookback preferences can be set at the organization, account, and resource levels.</p>
|
|
7036
7036
|
* </li>
|
|
7037
7037
|
* <li>
|
|
7038
|
-
* <p>
|
|
7038
|
+
* <p>Auto Scaling group lookback preferences can only be set at the resource level.</p>
|
|
7039
7039
|
* </li>
|
|
7040
7040
|
* </ul>
|
|
7041
7041
|
* </note>
|
|
@@ -7086,7 +7086,7 @@ export interface PutRecommendationPreferencesRequest {
|
|
|
7086
7086
|
* an error occurs.
|
|
7087
7087
|
* </p>
|
|
7088
7088
|
* <note>
|
|
7089
|
-
* <p>You can only set this preference for the Amazon EC2 instance and
|
|
7089
|
+
* <p>You can only set this preference for the Amazon EC2 instance and Auto Scaling group resource types.</p>
|
|
7090
7090
|
* </note>
|
|
7091
7091
|
* @public
|
|
7092
7092
|
*/
|
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.1034.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-compute-optimizer",
|
|
@@ -21,41 +21,41 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.974.3",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.34",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.10",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.10",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.11",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.33",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.13",
|
|
31
31
|
"@aws-sdk/types": "^3.973.8",
|
|
32
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
32
|
+
"@aws-sdk/util-endpoints": "^3.996.8",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.10",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
35
|
-
"@smithy/config-resolver": "^4.4.
|
|
36
|
-
"@smithy/core": "^3.23.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.973.19",
|
|
35
|
+
"@smithy/config-resolver": "^4.4.17",
|
|
36
|
+
"@smithy/core": "^3.23.16",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.17",
|
|
38
38
|
"@smithy/hash-node": "^4.2.14",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.14",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.14",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.5.
|
|
43
|
-
"@smithy/middleware-serde": "^4.2.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.31",
|
|
42
|
+
"@smithy/middleware-retry": "^4.5.4",
|
|
43
|
+
"@smithy/middleware-serde": "^4.2.19",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.14",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.14",
|
|
46
|
-
"@smithy/node-http-handler": "^4.
|
|
46
|
+
"@smithy/node-http-handler": "^4.6.0",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.14",
|
|
48
|
-
"@smithy/smithy-client": "^4.12.
|
|
48
|
+
"@smithy/smithy-client": "^4.12.12",
|
|
49
49
|
"@smithy/types": "^4.14.1",
|
|
50
50
|
"@smithy/url-parser": "^4.2.14",
|
|
51
51
|
"@smithy/util-base64": "^4.3.2",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
56
|
-
"@smithy/util-endpoints": "^3.4.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.48",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.53",
|
|
56
|
+
"@smithy/util-endpoints": "^3.4.2",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.14",
|
|
58
|
-
"@smithy/util-retry": "^4.3.
|
|
58
|
+
"@smithy/util-retry": "^4.3.3",
|
|
59
59
|
"@smithy/util-utf8": "^4.2.2",
|
|
60
60
|
"tslib": "^2.6.2"
|
|
61
61
|
},
|