@aws-sdk/client-compute-optimizer 3.33.0 → 3.34.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/CHANGELOG.md +11 -0
- package/dist/cjs/package.json +38 -38
- package/dist/es/ComputeOptimizer.js +1 -14
- package/dist/es/ComputeOptimizer.js.map +1 -1
- package/dist/es/ComputeOptimizerClient.js +1 -19
- package/dist/es/ComputeOptimizerClient.js.map +1 -1
- package/dist/es/commands/DescribeRecommendationExportJobsCommand.js +2 -31
- package/dist/es/commands/DescribeRecommendationExportJobsCommand.js.map +1 -1
- package/dist/es/commands/ExportAutoScalingGroupRecommendationsCommand.js +2 -34
- package/dist/es/commands/ExportAutoScalingGroupRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/ExportEBSVolumeRecommendationsCommand.js +2 -35
- package/dist/es/commands/ExportEBSVolumeRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/ExportEC2InstanceRecommendationsCommand.js +2 -35
- package/dist/es/commands/ExportEC2InstanceRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/ExportLambdaFunctionRecommendationsCommand.js +2 -35
- package/dist/es/commands/ExportLambdaFunctionRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetAutoScalingGroupRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetAutoScalingGroupRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetEBSVolumeRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetEBSVolumeRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetEC2InstanceRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetEC2InstanceRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetEC2RecommendationProjectedMetricsCommand.js +2 -35
- package/dist/es/commands/GetEC2RecommendationProjectedMetricsCommand.js.map +1 -1
- package/dist/es/commands/GetEnrollmentStatusCommand.js +2 -32
- package/dist/es/commands/GetEnrollmentStatusCommand.js.map +1 -1
- package/dist/es/commands/GetEnrollmentStatusesForOrganizationCommand.js +2 -30
- package/dist/es/commands/GetEnrollmentStatusesForOrganizationCommand.js.map +1 -1
- package/dist/es/commands/GetLambdaFunctionRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetLambdaFunctionRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetRecommendationSummariesCommand.js +2 -49
- package/dist/es/commands/GetRecommendationSummariesCommand.js.map +1 -1
- package/dist/es/commands/UpdateEnrollmentStatusCommand.js +2 -37
- package/dist/es/commands/UpdateEnrollmentStatusCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -207
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +38 -38
- package/dist/es/protocols/Aws_json1_0.js +529 -534
- package/dist/es/protocols/Aws_json1_0.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/package.json +38 -38
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +4 -5
- package/tsconfig.types.json +8 -0
|
@@ -3,43 +3,13 @@ import { GetEBSVolumeRecommendationsRequest, GetEBSVolumeRecommendationsResponse
|
|
|
3
3
|
import { deserializeAws_json1_0GetEBSVolumeRecommendationsCommand, serializeAws_json1_0GetEBSVolumeRecommendationsCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Returns Amazon Elastic Block Store (Amazon EBS) volume recommendations.</p>
|
|
8
|
-
*
|
|
9
|
-
* <p>Compute Optimizer generates recommendations for Amazon EBS volumes that
|
|
10
|
-
* 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
|
|
11
|
-
* resources and requirements</a> in the <i>Compute Optimizer User
|
|
12
|
-
* Guide</i>.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { ComputeOptimizerClient, GetEBSVolumeRecommendationsCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
17
|
-
* // const { ComputeOptimizerClient, GetEBSVolumeRecommendationsCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
18
|
-
* const client = new ComputeOptimizerClient(config);
|
|
19
|
-
* const command = new GetEBSVolumeRecommendationsCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link GetEBSVolumeRecommendationsCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link GetEBSVolumeRecommendationsCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link ComputeOptimizerClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
var GetEBSVolumeRecommendationsCommand = /** @class */ (function (_super) {
|
|
6
|
+
var GetEBSVolumeRecommendationsCommand = (function (_super) {
|
|
29
7
|
__extends(GetEBSVolumeRecommendationsCommand, _super);
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
8
|
function GetEBSVolumeRecommendationsCommand(input) {
|
|
33
|
-
var _this =
|
|
34
|
-
// Start section: command_constructor
|
|
35
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
36
10
|
_this.input = input;
|
|
37
11
|
return _this;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
GetEBSVolumeRecommendationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetEBSVolumeRecommendationsCommand.js","sourceRoot":"","sources":["../../../commands/GetEBSVolumeRecommendationsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kCAAkC,EAAE,mCAAmC,EAAE,MAAM,oBAAoB,CAAC;AAC7G,OAAO,EACL,wDAAwD,EACxD,sDAAsD,GACvD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetEBSVolumeRecommendationsCommand.js","sourceRoot":"","sources":["../../../commands/GetEBSVolumeRecommendationsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kCAAkC,EAAE,mCAAmC,EAAE,MAAM,oBAAoB,CAAC;AAC7G,OAAO,EACL,wDAAwD,EACxD,sDAAsD,GACvD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAsC7D;IAAwD,sDAIvD;IAIC,4CAAqB,KAA8C;QAAnE,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAyC;;IAInE,CAAC;IAKD,8DAAiB,GAAjB,UACE,WAAmE,EACnE,aAAmD,EACnD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,oCAAoC,CAAC;QACzD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,kCAAkC,CAAC,kBAAkB;YAC9E,wBAAwB,EAAE,mCAAmC,CAAC,kBAAkB;SACjF,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,sDAAS,GAAjB,UAAkB,KAA8C,EAAE,OAAuB;QACvF,OAAO,sDAAsD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAEO,wDAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,wDAAwD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAIH,yCAAC;AAAD,CAAC,AAzDD,CAAwD,QAAQ,GAyD/D"}
|
|
@@ -3,43 +3,13 @@ import { GetEC2InstanceRecommendationsRequest, GetEC2InstanceRecommendationsResp
|
|
|
3
3
|
import { deserializeAws_json1_0GetEC2InstanceRecommendationsCommand, serializeAws_json1_0GetEC2InstanceRecommendationsCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Returns Amazon EC2 instance recommendations.</p>
|
|
8
|
-
*
|
|
9
|
-
* <p>Compute Optimizer generates recommendations for Amazon Elastic Compute Cloud (Amazon EC2) instances that meet a specific set of requirements. For more
|
|
10
|
-
* information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported resources and
|
|
11
|
-
* requirements</a> in the <i>Compute Optimizer User
|
|
12
|
-
* Guide</i>.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { ComputeOptimizerClient, GetEC2InstanceRecommendationsCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
17
|
-
* // const { ComputeOptimizerClient, GetEC2InstanceRecommendationsCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
18
|
-
* const client = new ComputeOptimizerClient(config);
|
|
19
|
-
* const command = new GetEC2InstanceRecommendationsCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link GetEC2InstanceRecommendationsCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link GetEC2InstanceRecommendationsCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link ComputeOptimizerClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
var GetEC2InstanceRecommendationsCommand = /** @class */ (function (_super) {
|
|
6
|
+
var GetEC2InstanceRecommendationsCommand = (function (_super) {
|
|
29
7
|
__extends(GetEC2InstanceRecommendationsCommand, _super);
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
8
|
function GetEC2InstanceRecommendationsCommand(input) {
|
|
33
|
-
var _this =
|
|
34
|
-
// Start section: command_constructor
|
|
35
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
36
10
|
_this.input = input;
|
|
37
11
|
return _this;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
GetEC2InstanceRecommendationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetEC2InstanceRecommendationsCommand.js","sourceRoot":"","sources":["../../../commands/GetEC2InstanceRecommendationsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oCAAoC,EAAE,qCAAqC,EAAE,MAAM,oBAAoB,CAAC;AACjH,OAAO,EACL,0DAA0D,EAC1D,wDAAwD,GACzD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetEC2InstanceRecommendationsCommand.js","sourceRoot":"","sources":["../../../commands/GetEC2InstanceRecommendationsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oCAAoC,EAAE,qCAAqC,EAAE,MAAM,oBAAoB,CAAC;AACjH,OAAO,EACL,0DAA0D,EAC1D,wDAAwD,GACzD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAsC7D;IAA0D,wDAIzD;IAIC,8CAAqB,KAAgD;QAArE,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA2C;;IAIrE,CAAC;IAKD,gEAAiB,GAAjB,UACE,WAAmE,EACnE,aAAmD,EACnD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,sCAAsC,CAAC;QAC3D,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,oCAAoC,CAAC,kBAAkB;YAChF,wBAAwB,EAAE,qCAAqC,CAAC,kBAAkB;SACnF,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,wDAAS,GAAjB,UAAkB,KAAgD,EAAE,OAAuB;QACzF,OAAO,wDAAwD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAEO,0DAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,0DAA0D,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAIH,2CAAC;AAAD,CAAC,AAzDD,CAA0D,QAAQ,GAyDjE"}
|
|
@@ -3,46 +3,13 @@ import { GetEC2RecommendationProjectedMetricsRequest, GetEC2RecommendationProjec
|
|
|
3
3
|
import { deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand, serializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Returns the projected utilization metrics of Amazon EC2 instance
|
|
8
|
-
* recommendations.</p>
|
|
9
|
-
*
|
|
10
|
-
* <note>
|
|
11
|
-
* <p>The <code>Cpu</code> and <code>Memory</code> metrics are the only projected
|
|
12
|
-
* utilization metrics returned when you run this action. Additionally, the
|
|
13
|
-
* <code>Memory</code> metric is returned only for resources that have the unified
|
|
14
|
-
* CloudWatch agent installed on them. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html#cw-agent">Enabling Memory Utilization with the CloudWatch Agent</a>.</p>
|
|
15
|
-
* </note>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { ComputeOptimizerClient, GetEC2RecommendationProjectedMetricsCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
20
|
-
* // const { ComputeOptimizerClient, GetEC2RecommendationProjectedMetricsCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
21
|
-
* const client = new ComputeOptimizerClient(config);
|
|
22
|
-
* const command = new GetEC2RecommendationProjectedMetricsCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link GetEC2RecommendationProjectedMetricsCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link GetEC2RecommendationProjectedMetricsCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link ComputeOptimizerClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
var GetEC2RecommendationProjectedMetricsCommand = /** @class */ (function (_super) {
|
|
6
|
+
var GetEC2RecommendationProjectedMetricsCommand = (function (_super) {
|
|
32
7
|
__extends(GetEC2RecommendationProjectedMetricsCommand, _super);
|
|
33
|
-
// Start section: command_properties
|
|
34
|
-
// End section: command_properties
|
|
35
8
|
function GetEC2RecommendationProjectedMetricsCommand(input) {
|
|
36
|
-
var _this =
|
|
37
|
-
// Start section: command_constructor
|
|
38
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
39
10
|
_this.input = input;
|
|
40
11
|
return _this;
|
|
41
|
-
// End section: command_constructor
|
|
42
12
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
13
|
GetEC2RecommendationProjectedMetricsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
47
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
48
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetEC2RecommendationProjectedMetricsCommand.js","sourceRoot":"","sources":["../../../commands/GetEC2RecommendationProjectedMetricsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EACL,2CAA2C,EAC3C,4CAA4C,GAC7C,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iEAAiE,EACjE,+DAA+D,GAChE,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetEC2RecommendationProjectedMetricsCommand.js","sourceRoot":"","sources":["../../../commands/GetEC2RecommendationProjectedMetricsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EACL,2CAA2C,EAC3C,4CAA4C,GAC7C,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iEAAiE,EACjE,+DAA+D,GAChE,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAyC7D;IAAiE,+DAIhE;IAIC,qDAAqB,KAAuD;QAA5E,YAEE,iBAAO,SAER;Q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1_0GetEnrollmentStatusCommand, serializeAws_json1_0GetEnrollmentStatusCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Returns the enrollment (opt in) status of an account to the Compute Optimizer
|
|
8
|
-
* service.</p>
|
|
9
|
-
*
|
|
10
|
-
* <p>If the account is the management account of an organization, this action also confirms
|
|
11
|
-
* the enrollment status of member accounts of the organization. Use the <a>GetEnrollmentStatusesForOrganization</a> action to get detailed information
|
|
12
|
-
* about the enrollment status of member accounts of an organization.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { ComputeOptimizerClient, GetEnrollmentStatusCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
17
|
-
* // const { ComputeOptimizerClient, GetEnrollmentStatusCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
18
|
-
* const client = new ComputeOptimizerClient(config);
|
|
19
|
-
* const command = new GetEnrollmentStatusCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link GetEnrollmentStatusCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link GetEnrollmentStatusCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link ComputeOptimizerClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
var GetEnrollmentStatusCommand = /** @class */ (function (_super) {
|
|
6
|
+
var GetEnrollmentStatusCommand = (function (_super) {
|
|
29
7
|
__extends(GetEnrollmentStatusCommand, _super);
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
8
|
function GetEnrollmentStatusCommand(input) {
|
|
33
|
-
var _this =
|
|
34
|
-
// Start section: command_constructor
|
|
35
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
36
10
|
_this.input = input;
|
|
37
11
|
return _this;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
GetEnrollmentStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetEnrollmentStatusCommand.js","sourceRoot":"","sources":["../../../commands/GetEnrollmentStatusCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,gDAAgD,EAChD,8CAA8C,GAC/C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetEnrollmentStatusCommand.js","sourceRoot":"","sources":["../../../commands/GetEnrollmentStatusCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,gDAAgD,EAChD,8CAA8C,GAC/C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAoC7D;IAAgD,8CAI/C;IAIC,oCAAqB,KAAsC;QAA3D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAiC;;IAI3D,CAAC;IAKD,sDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAmD,EACnD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,4BAA4B,CAAC;QACjD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,0BAA0B,CAAC,kBAAkB;YACtE,wBAAwB,EAAE,2BAA2B,CAAC,kBAAkB;SACzE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,8CAAS,GAAjB,UAAkB,KAAsC,EAAE,OAAuB;QAC/E,OAAO,8CAA8C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAEO,gDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,gDAAgD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAIH,iCAAC;AAAD,CAAC,AAtDD,CAAgD,QAAQ,GAsDvD"}
|
|
@@ -3,41 +3,13 @@ import { GetEnrollmentStatusesForOrganizationRequest, GetEnrollmentStatusesForOr
|
|
|
3
3
|
import { deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand, serializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Returns the Compute Optimizer enrollment (opt-in) status of organization member
|
|
8
|
-
* accounts, if your account is an organization management account.</p>
|
|
9
|
-
*
|
|
10
|
-
* <p>To get the enrollment status of standalone accounts, use the <a>GetEnrollmentStatus</a> action.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { ComputeOptimizerClient, GetEnrollmentStatusesForOrganizationCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
15
|
-
* // const { ComputeOptimizerClient, GetEnrollmentStatusesForOrganizationCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
16
|
-
* const client = new ComputeOptimizerClient(config);
|
|
17
|
-
* const command = new GetEnrollmentStatusesForOrganizationCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link GetEnrollmentStatusesForOrganizationCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link GetEnrollmentStatusesForOrganizationCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link ComputeOptimizerClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
var GetEnrollmentStatusesForOrganizationCommand = /** @class */ (function (_super) {
|
|
6
|
+
var GetEnrollmentStatusesForOrganizationCommand = (function (_super) {
|
|
27
7
|
__extends(GetEnrollmentStatusesForOrganizationCommand, _super);
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
8
|
function GetEnrollmentStatusesForOrganizationCommand(input) {
|
|
31
|
-
var _this =
|
|
32
|
-
// Start section: command_constructor
|
|
33
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
34
10
|
_this.input = input;
|
|
35
11
|
return _this;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
GetEnrollmentStatusesForOrganizationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetEnrollmentStatusesForOrganizationCommand.js","sourceRoot":"","sources":["../../../commands/GetEnrollmentStatusesForOrganizationCommand.ts"],"names":[],"mappings":";AACA,OAAO,EACL,2CAA2C,EAC3C,4CAA4C,GAC7C,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iEAAiE,EACjE,+DAA+D,GAChE,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetEnrollmentStatusesForOrganizationCommand.js","sourceRoot":"","sources":["../../../commands/GetEnrollmentStatusesForOrganizationCommand.ts"],"names":[],"mappings":";AACA,OAAO,EACL,2CAA2C,EAC3C,4CAA4C,GAC7C,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iEAAiE,EACjE,+DAA+D,GAChE,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAoC7D;IAAiE,+DAIhE;IAIC,qDAAqB,KAAuD;QAA5E,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAkD;;IAI5E,CAAC;IAKD,uEAAiB,GAAjB,UACE,WAAmE,EACnE,aAAmD,EACnD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,6CAA6C,CAAC;QAClE,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,2CAA2C,CAAC,kBAAkB;YACvF,wBAAwB,EAAE,4CAA4C,CAAC,kBAAkB;SAC1F,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,+DAAS,GAAjB,UACE,KAAuD,EACvD,OAAuB;QAEvB,OAAO,+DAA+D,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAEO,iEAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,iEAAiE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;IAIH,kDAAC;AAAD,CAAC,AA5DD,CAAiE,QAAQ,GA4DxE"}
|
|
@@ -3,43 +3,13 @@ import { GetLambdaFunctionRecommendationsRequest, GetLambdaFunctionRecommendatio
|
|
|
3
3
|
import { deserializeAws_json1_0GetLambdaFunctionRecommendationsCommand, serializeAws_json1_0GetLambdaFunctionRecommendationsCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Returns Lambda function recommendations.</p>
|
|
8
|
-
*
|
|
9
|
-
* <p>Compute Optimizer generates recommendations for functions that meet a specific set
|
|
10
|
-
* of requirements. For more information, see the <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html">Supported resources and
|
|
11
|
-
* requirements</a> in the <i>Compute Optimizer User
|
|
12
|
-
* Guide</i>.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { ComputeOptimizerClient, GetLambdaFunctionRecommendationsCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
17
|
-
* // const { ComputeOptimizerClient, GetLambdaFunctionRecommendationsCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
18
|
-
* const client = new ComputeOptimizerClient(config);
|
|
19
|
-
* const command = new GetLambdaFunctionRecommendationsCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link GetLambdaFunctionRecommendationsCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link GetLambdaFunctionRecommendationsCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link ComputeOptimizerClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
var GetLambdaFunctionRecommendationsCommand = /** @class */ (function (_super) {
|
|
6
|
+
var GetLambdaFunctionRecommendationsCommand = (function (_super) {
|
|
29
7
|
__extends(GetLambdaFunctionRecommendationsCommand, _super);
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
8
|
function GetLambdaFunctionRecommendationsCommand(input) {
|
|
33
|
-
var _this =
|
|
34
|
-
// Start section: command_constructor
|
|
35
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
36
10
|
_this.input = input;
|
|
37
11
|
return _this;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
GetLambdaFunctionRecommendationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetLambdaFunctionRecommendationsCommand.js","sourceRoot":"","sources":["../../../commands/GetLambdaFunctionRecommendationsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,uCAAuC,EAAE,wCAAwC,EAAE,MAAM,oBAAoB,CAAC;AACvH,OAAO,EACL,6DAA6D,EAC7D,2DAA2D,GAC5D,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetLambdaFunctionRecommendationsCommand.js","sourceRoot":"","sources":["../../../commands/GetLambdaFunctionRecommendationsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,uCAAuC,EAAE,wCAAwC,EAAE,MAAM,oBAAoB,CAAC;AACvH,OAAO,EACL,6DAA6D,EAC7D,2DAA2D,GAC5D,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAsC7D;IAA6D,2DAI5D;IAIC,iDAAqB,KAAmD;QAAxE,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA8C;;IAIxE,CAAC;IAKD,mEAAiB,GAAjB,UACE,WAAmE,EACnE,aAAmD,EACnD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,yCAAyC,CAAC;QAC9D,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,uCAAuC,CAAC,kBAAkB;YACnF,wBAAwB,EAAE,wCAAwC,CAAC,kBAAkB;SACtF,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,2DAAS,GAAjB,UACE,KAAmD,EACnD,OAAuB;QAEvB,OAAO,2DAA2D,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAEO,6DAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,6DAA6D,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAIH,8CAAC;AAAD,CAAC,AA5DD,CAA6D,QAAQ,GA4DpE"}
|
|
@@ -3,60 +3,13 @@ import { GetRecommendationSummariesRequest, GetRecommendationSummariesResponse }
|
|
|
3
3
|
import { deserializeAws_json1_0GetRecommendationSummariesCommand, serializeAws_json1_0GetRecommendationSummariesCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Returns the optimization findings for an account.</p>
|
|
8
|
-
*
|
|
9
|
-
* <p>It returns the number of:</p>
|
|
10
|
-
*
|
|
11
|
-
* <ul>
|
|
12
|
-
* <li>
|
|
13
|
-
* <p>Amazon EC2 instances in an account that are
|
|
14
|
-
* <code>Underprovisioned</code>, <code>Overprovisioned</code>, or
|
|
15
|
-
* <code>Optimized</code>.</p>
|
|
16
|
-
* </li>
|
|
17
|
-
* <li>
|
|
18
|
-
* <p>Auto Scaling groups in an account that are <code>NotOptimized</code>, or
|
|
19
|
-
* <code>Optimized</code>.</p>
|
|
20
|
-
* </li>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>Amazon EBS volumes in an account that are <code>NotOptimized</code>,
|
|
23
|
-
* or <code>Optimized</code>.</p>
|
|
24
|
-
* </li>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>Lambda functions in an account that are <code>NotOptimized</code>,
|
|
27
|
-
* or <code>Optimized</code>.</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* </ul>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { ComputeOptimizerClient, GetRecommendationSummariesCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
34
|
-
* // const { ComputeOptimizerClient, GetRecommendationSummariesCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
35
|
-
* const client = new ComputeOptimizerClient(config);
|
|
36
|
-
* const command = new GetRecommendationSummariesCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link GetRecommendationSummariesCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link GetRecommendationSummariesCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link ComputeOptimizerClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
var GetRecommendationSummariesCommand = /** @class */ (function (_super) {
|
|
6
|
+
var GetRecommendationSummariesCommand = (function (_super) {
|
|
46
7
|
__extends(GetRecommendationSummariesCommand, _super);
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
8
|
function GetRecommendationSummariesCommand(input) {
|
|
50
|
-
var _this =
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
53
10
|
_this.input = input;
|
|
54
11
|
return _this;
|
|
55
|
-
// End section: command_constructor
|
|
56
12
|
}
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
13
|
GetRecommendationSummariesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
61
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
62
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetRecommendationSummariesCommand.js","sourceRoot":"","sources":["../../../commands/GetRecommendationSummariesCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iCAAiC,EAAE,kCAAkC,EAAE,MAAM,oBAAoB,CAAC;AAC3G,OAAO,EACL,uDAAuD,EACvD,qDAAqD,GACtD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetRecommendationSummariesCommand.js","sourceRoot":"","sources":["../../../commands/GetRecommendationSummariesCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iCAAiC,EAAE,kCAAkC,EAAE,MAAM,oBAAoB,CAAC;AAC3G,OAAO,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AsB,EACtB,OAAuB;QAEvB,OAAO,uDAAuD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAIH,wCAAC;AAAD,CAAC,AAzDD,CAAuD,QAAQ,GAyD9D"}
|
|
@@ -3,48 +3,13 @@ import { UpdateEnrollmentStatusRequest, UpdateEnrollmentStatusResponse } from ".
|
|
|
3
3
|
import { deserializeAws_json1_0UpdateEnrollmentStatusCommand, serializeAws_json1_0UpdateEnrollmentStatusCommand, } from "../protocols/Aws_json1_0";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Updates the enrollment (opt in and opt out) status of an account to the Compute Optimizer service.</p>
|
|
8
|
-
*
|
|
9
|
-
* <p>If the account is a management account of an organization, this action can also be
|
|
10
|
-
* used to enroll member accounts of the organization.</p>
|
|
11
|
-
*
|
|
12
|
-
* <p>You must have the appropriate permissions to opt in to Compute Optimizer, to view its
|
|
13
|
-
* recommendations, and to opt out. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html">Controlling access with Amazon Web Services Identity and Access Management</a> in the <i>Compute Optimizer User Guide</i>.</p>
|
|
14
|
-
*
|
|
15
|
-
* <p>When you opt in, Compute Optimizer automatically creates a service-linked role in your
|
|
16
|
-
* account to access its data. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/using-service-linked-roles.html">Using
|
|
17
|
-
* Service-Linked Roles for Compute Optimizer</a> in the <i>Compute Optimizer User Guide</i>.</p>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { ComputeOptimizerClient, UpdateEnrollmentStatusCommand } from "@aws-sdk/client-compute-optimizer"; // ES Modules import
|
|
22
|
-
* // const { ComputeOptimizerClient, UpdateEnrollmentStatusCommand } = require("@aws-sdk/client-compute-optimizer"); // CommonJS import
|
|
23
|
-
* const client = new ComputeOptimizerClient(config);
|
|
24
|
-
* const command = new UpdateEnrollmentStatusCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link UpdateEnrollmentStatusCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link UpdateEnrollmentStatusCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link ComputeOptimizerClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
var UpdateEnrollmentStatusCommand = /** @class */ (function (_super) {
|
|
6
|
+
var UpdateEnrollmentStatusCommand = (function (_super) {
|
|
34
7
|
__extends(UpdateEnrollmentStatusCommand, _super);
|
|
35
|
-
// Start section: command_properties
|
|
36
|
-
// End section: command_properties
|
|
37
8
|
function UpdateEnrollmentStatusCommand(input) {
|
|
38
|
-
var _this =
|
|
39
|
-
// Start section: command_constructor
|
|
40
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
41
10
|
_this.input = input;
|
|
42
11
|
return _this;
|
|
43
|
-
// End section: command_constructor
|
|
44
12
|
}
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
13
|
UpdateEnrollmentStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
49
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
50
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateEnrollmentStatusCommand.js","sourceRoot":"","sources":["../../../commands/UpdateEnrollmentStatusCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACnG,OAAO,EACL,mDAAmD,EACnD,iDAAiD,GAClD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EA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AAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,iDAAS,GAAjB,UAAkB,KAAyC,EAAE,OAAuB;QAClF,OAAO,iDAAiD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAEO,mDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,mDAAmD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAIH,oCAAC;AAAD,CAAC,AAtDD,CAAmD,QAAQ,GAsD1D"}
|
package/dist/es/endpoints.js
CHANGED
|
@@ -47,7 +47,7 @@ var partitionHash = {
|
|
|
47
47
|
};
|
|
48
48
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
|
-
return [2
|
|
50
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "compute-optimizer", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
51
51
|
});
|
|
52
52
|
}); };
|
|
53
53
|
//# sourceMappingURL=endpoints.js.map
|
package/dist/es/endpoints.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../endpoints.ts"],"names":[],"mappings":";AAAA,OAAO,EAA6B,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAGpF,IAAM,UAAU,GAAe,EAAE,CAAC;AAElC,IAAM,aAAa,GAAkB;IACnC,GAAG,EAAE;QACH,OAAO,EAAE;YACP,YAAY;YACZ,WAAW;YACX,gBAAgB;YAChB,gBAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,gBAAgB;YAChB,gBAAgB;YAChB,cAAc;YACd,cAAc;YACd,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,WAAW;YAC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