@aws-sdk/client-application-discovery-service 3.353.0 → 3.357.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 (40) hide show
  1. package/README.md +33 -40
  2. package/dist-cjs/endpoint/ruleset.js +3 -3
  3. package/dist-cjs/models/models_0.js +26 -2
  4. package/dist-cjs/protocols/Aws_json1_1.js +27 -7
  5. package/dist-es/endpoint/ruleset.js +3 -3
  6. package/dist-es/models/models_0.js +25 -1
  7. package/dist-es/protocols/Aws_json1_1.js +28 -8
  8. package/dist-types/ApplicationDiscoveryService.d.ts +33 -40
  9. package/dist-types/ApplicationDiscoveryServiceClient.d.ts +34 -41
  10. package/dist-types/commands/AssociateConfigurationItemsToApplicationCommand.d.ts +3 -3
  11. package/dist-types/commands/BatchDeleteImportDataCommand.d.ts +3 -3
  12. package/dist-types/commands/CreateApplicationCommand.d.ts +3 -3
  13. package/dist-types/commands/CreateTagsCommand.d.ts +3 -3
  14. package/dist-types/commands/DeleteApplicationsCommand.d.ts +3 -3
  15. package/dist-types/commands/DeleteTagsCommand.d.ts +3 -3
  16. package/dist-types/commands/DescribeAgentsCommand.d.ts +5 -5
  17. package/dist-types/commands/DescribeConfigurationsCommand.d.ts +3 -3
  18. package/dist-types/commands/DescribeContinuousExportsCommand.d.ts +4 -4
  19. package/dist-types/commands/DescribeExportConfigurationsCommand.d.ts +3 -3
  20. package/dist-types/commands/DescribeExportTasksCommand.d.ts +3 -3
  21. package/dist-types/commands/DescribeImportTasksCommand.d.ts +3 -3
  22. package/dist-types/commands/DescribeTagsCommand.d.ts +4 -4
  23. package/dist-types/commands/DisassociateConfigurationItemsFromApplicationCommand.d.ts +3 -3
  24. package/dist-types/commands/ExportConfigurationsCommand.d.ts +3 -3
  25. package/dist-types/commands/GetDiscoverySummaryCommand.d.ts +3 -3
  26. package/dist-types/commands/ListConfigurationsCommand.d.ts +3 -3
  27. package/dist-types/commands/ListServerNeighborsCommand.d.ts +3 -3
  28. package/dist-types/commands/StartContinuousExportCommand.d.ts +3 -3
  29. package/dist-types/commands/StartDataCollectionByAgentIdsCommand.d.ts +4 -4
  30. package/dist-types/commands/StartExportTaskCommand.d.ts +46 -10
  31. package/dist-types/commands/StartImportTaskCommand.d.ts +10 -9
  32. package/dist-types/commands/StopContinuousExportCommand.d.ts +3 -3
  33. package/dist-types/commands/StopDataCollectionByAgentIdsCommand.d.ts +4 -4
  34. package/dist-types/commands/UpdateApplicationCommand.d.ts +3 -3
  35. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  36. package/dist-types/index.d.ts +33 -40
  37. package/dist-types/models/models_0.d.ts +283 -88
  38. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  39. package/dist-types/ts3.4/models/models_0.d.ts +61 -1
  40. package/package.json +28 -28
package/README.md CHANGED
@@ -8,26 +8,27 @@ AWS SDK for JavaScript ApplicationDiscoveryService Client for Node.js, Browser a
8
8
 
9
9
  <fullname>Amazon Web Services Application Discovery Service</fullname>
10
10
 
11
- <p>Amazon Web Services Application Discovery Service helps you plan application migration projects. It
12
- automatically identifies servers, virtual machines (VMs), and network dependencies in your
13
- on-premises data centers. For more information, see the <a href="http://aws.amazon.com/application-discovery/faqs/">Amazon Web Services Application Discovery Service FAQ</a>.
14
- Application Discovery Service offers three ways of performing discovery and
15
- collecting data about your on-premises servers:</p>
11
+ <p>Amazon Web Services Application Discovery Service (Application Discovery Service) helps you plan application migration projects. It automatically
12
+ identifies servers, virtual machines (VMs), and network dependencies in your on-premises data
13
+ centers. For more information, see the <a href="http://aws.amazon.com/application-discovery/faqs/">Amazon Web Services Application Discovery Service FAQ</a>. </p>
14
+ <p>Application Discovery Service offers three ways of performing discovery and collecting
15
+ data about your on-premises servers:</p>
16
16
  <ul>
17
17
  <li>
18
18
  <p>
19
- <b>Agentless discovery</b> is recommended for environments
20
- that use VMware vCenter Server. This mode doesn't require you to install an agent on each
21
- host. It does not work in non-VMware environments.</p>
19
+ <b>Agentless discovery</b> using
20
+ Amazon Web Services Application Discovery Service Agentless Collector (Agentless Collector), which doesn't require you
21
+ to install an agent on each host.</p>
22
22
  <ul>
23
23
  <li>
24
- <p>Agentless discovery gathers server information regardless of the operating
25
- systems, which minimizes the time required for initial on-premises infrastructure
26
- assessment.</p>
24
+ <p>Agentless Collector gathers server information regardless of the
25
+ operating systems, which minimizes the time required for initial on-premises
26
+ infrastructure assessment.</p>
27
27
  </li>
28
28
  <li>
29
- <p>Agentless discovery doesn't collect information about network dependencies, only
30
- agent-based discovery collects that information.</p>
29
+ <p>Agentless Collector doesn't collect information about network
30
+ dependencies, only agent-based discovery collects that information.
31
+ </p>
31
32
  </li>
32
33
  </ul>
33
34
  </li>
@@ -35,9 +36,9 @@ agent-based discovery collects that information.</p>
35
36
  <ul>
36
37
  <li>
37
38
  <p>
38
- <b>Agent-based discovery</b> collects a richer set of data
39
- than agentless discovery by using the Amazon Web Services Application Discovery Agent, which you install
40
- on one or more hosts in your data center.</p>
39
+ <b>Agent-based discovery</b> using the Amazon Web Services Application
40
+ Discovery Agent (Application Discovery Agent) collects a richer set of data than agentless
41
+ discovery, which you install on one or more hosts in your data center.</p>
41
42
  <ul>
42
43
  <li>
43
44
  <p> The agent captures infrastructure and application information, including an
@@ -46,7 +47,9 @@ and network dependencies.</p>
46
47
  </li>
47
48
  <li>
48
49
  <p>The information collected by agents is secured at rest and in transit to the
49
- Application Discovery Service database in the cloud. </p>
50
+ Application Discovery Service database in the Amazon Web Services cloud. For more information, see
51
+ <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-agent.html">Amazon Web Services Application
52
+ Discovery Agent</a>.</p>
50
53
  </li>
51
54
  </ul>
52
55
  </li>
@@ -56,8 +59,8 @@ Application Discovery Service database in the cloud. </p>
56
59
  <p>
57
60
  <b>Amazon Web Services Partner Network (APN) solutions</b> integrate with
58
61
  Application Discovery Service, enabling you to import details of your on-premises
59
- environment directly into Migration Hub without using the discovery connector or discovery
60
- agent.</p>
62
+ environment directly into Amazon Web Services Migration Hub (Migration Hub) without using
63
+ Agentless Collector or Application Discovery Agent.</p>
61
64
  <ul>
62
65
  <li>
63
66
  <p>Third-party application discovery tools can query Amazon Web Services Application Discovery
@@ -72,53 +75,43 @@ associate applications with servers and track migrations.</p>
72
75
  </li>
73
76
  </ul>
74
77
  <p>
75
- <b>Recommendations</b>
76
- </p>
77
- <p>We recommend that you use agent-based discovery for non-VMware environments, and
78
- whenever you want to collect information about network dependencies. You can run agent-based
79
- and agentless discovery simultaneously. Use agentless discovery to complete the initial
80
- infrastructure assessment quickly, and then install agents on select hosts to collect
81
- additional information.</p>
82
- <p>
83
78
  <b>Working With This Guide</b>
84
79
  </p>
85
80
  <p>This API reference provides descriptions, syntax, and usage examples for each of the
86
81
  actions and data types for Application Discovery Service. The topic for each action shows the
87
82
  API request parameters and the response. Alternatively, you can use one of the Amazon Web Services SDKs to
88
83
  access an API that is tailored to the programming language or platform that you're using. For
89
- more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon Web Services
90
- SDKs</a>.</p>
84
+ more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon Web Services SDKs</a>.</p>
91
85
  <note>
92
86
  <ul>
93
87
  <li>
94
- <p>Remember that you must set your Migration Hub home region before you call any of
88
+ <p>Remember that you must set your Migration Hub home Region before you call any of
95
89
  these APIs.</p>
96
90
  </li>
97
91
  <li>
98
92
  <p>You must make API calls for write actions (create, notify, associate, disassociate,
99
- import, or put) while in your home region, or a <code>HomeRegionNotSetException</code>
93
+ import, or put) while in your home Region, or a <code>HomeRegionNotSetException</code>
100
94
  error is returned.</p>
101
95
  </li>
102
96
  <li>
103
97
  <p>API calls for read actions (list, describe, stop, and delete) are permitted outside
104
- of your home region.</p>
98
+ of your home Region.</p>
105
99
  </li>
106
100
  <li>
107
- <p>Although it is unlikely, the Migration Hub home region could change. If you call
108
- APIs outside the home region, an <code>InvalidInputException</code> is returned.</p>
101
+ <p>Although it is unlikely, the Migration Hub home Region could change. If you call
102
+ APIs outside the home Region, an <code>InvalidInputException</code> is returned.</p>
109
103
  </li>
110
104
  <li>
111
105
  <p>You must call <code>GetHomeRegion</code> to obtain the latest Migration Hub home
112
- region.</p>
106
+ Region.</p>
113
107
  </li>
114
108
  </ul>
115
109
  </note>
116
- <p>This guide is intended for use with the <a href="http://docs.aws.amazon.com/application-discovery/latest/userguide/">Amazon Web Services Application
117
- Discovery Service User Guide</a>.</p>
110
+ <p>This guide is intended for use with the <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/">Amazon Web Services Application Discovery Service User
111
+ Guide</a>.</p>
118
112
  <important>
119
- <p>All data is handled according to the <a href="http://aws.amazon.com/privacy/">Amazon Web Services
120
- Privacy Policy</a>. You can operate Application Discovery Service offline to inspect
121
- collected data before it is shared with the service.</p>
113
+ <p>All data is handled according to the <a href="https://aws.amazon.com/privacy/">Amazon Web Services Privacy Policy</a>. You can operate Application Discovery Service offline to
114
+ inspect collected data before it is shared with the service.</p>
122
115
  </important>
123
116
 
124
117
  ## Installing
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "fn", r = "argv", s = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://discovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://discovery-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://discovery.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://discovery.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://discovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://discovery-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://discovery.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://discovery.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExportDataFormat = exports.ResourceInUseException = exports.ConflictErrorException = exports.OrderString = exports.ConfigurationItemType = exports.ImportStatus = exports.ImportTaskFilterName = exports.ExportStatus = exports.OperationNotPermittedException = exports.ContinuousExportStatus = exports.DataSource = exports.ResourceNotFoundException = exports.BatchDeleteImportDataErrorCode = exports.ServerInternalErrorException = exports.InvalidParameterValueException = exports.InvalidParameterException = exports.HomeRegionNotSetException = exports.AuthorizationErrorException = exports.AgentStatus = void 0;
3
+ exports.ExportPreferences = exports.Tenancy = exports.TermLength = exports.PurchasingOption = exports.OfferingClass = exports.ExportDataFormat = exports.ResourceInUseException = exports.ConflictErrorException = exports.OrderString = exports.ConfigurationItemType = exports.ImportStatus = exports.ImportTaskFilterName = exports.ExportStatus = exports.OperationNotPermittedException = exports.ContinuousExportStatus = exports.DataSource = exports.ResourceNotFoundException = exports.BatchDeleteImportDataErrorCode = exports.ServerInternalErrorException = exports.InvalidParameterValueException = exports.InvalidParameterException = exports.HomeRegionNotSetException = exports.AuthorizationErrorException = exports.AgentStatus = void 0;
4
4
  const ApplicationDiscoveryServiceServiceException_1 = require("./ApplicationDiscoveryServiceServiceException");
5
5
  exports.AgentStatus = {
6
6
  BLACKLISTED: "BLACKLISTED",
@@ -179,5 +179,29 @@ class ResourceInUseException extends ApplicationDiscoveryServiceServiceException
179
179
  exports.ResourceInUseException = ResourceInUseException;
180
180
  exports.ExportDataFormat = {
181
181
  CSV: "CSV",
182
- GRAPHML: "GRAPHML",
183
182
  };
183
+ exports.OfferingClass = {
184
+ CONVERTIBLE: "CONVERTIBLE",
185
+ STANDARD: "STANDARD",
186
+ };
187
+ exports.PurchasingOption = {
188
+ ALL_UPFRONT: "ALL_UPFRONT",
189
+ NO_UPFRONT: "NO_UPFRONT",
190
+ PARTIAL_UPFRONT: "PARTIAL_UPFRONT",
191
+ };
192
+ exports.TermLength = {
193
+ ONE_YEAR: "ONE_YEAR",
194
+ THREE_YEAR: "THREE_YEAR",
195
+ };
196
+ exports.Tenancy = {
197
+ DEDICATED: "DEDICATED",
198
+ SHARED: "SHARED",
199
+ };
200
+ var ExportPreferences;
201
+ (function (ExportPreferences) {
202
+ ExportPreferences.visit = (value, visitor) => {
203
+ if (value.ec2RecommendationsPreferences !== undefined)
204
+ return visitor.ec2RecommendationsPreferences(value.ec2RecommendationsPreferences);
205
+ return visitor._(value.$unknown[0], value.$unknown[1]);
206
+ };
207
+ })(ExportPreferences = exports.ExportPreferences || (exports.ExportPreferences = {}));
@@ -1434,11 +1434,31 @@ const de_ServerInternalErrorExceptionRes = async (parsedOutput, context) => {
1434
1434
  });
1435
1435
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1436
1436
  };
1437
+ const se_Ec2RecommendationsExportPreferences = (input, context) => {
1438
+ return (0, smithy_client_1.take)(input, {
1439
+ cpuPerformanceMetricBasis: (_) => se_UsageMetricBasis(_, context),
1440
+ enabled: [],
1441
+ excludedInstanceTypes: smithy_client_1._json,
1442
+ preferredRegion: [],
1443
+ ramPerformanceMetricBasis: (_) => se_UsageMetricBasis(_, context),
1444
+ reservedInstanceOptions: smithy_client_1._json,
1445
+ tenancy: [],
1446
+ });
1447
+ };
1448
+ const se_ExportPreferences = (input, context) => {
1449
+ return models_0_1.ExportPreferences.visit(input, {
1450
+ ec2RecommendationsPreferences: (value) => ({
1451
+ ec2RecommendationsPreferences: se_Ec2RecommendationsExportPreferences(value, context),
1452
+ }),
1453
+ _: (name, value) => ({ name: value }),
1454
+ });
1455
+ };
1437
1456
  const se_StartExportTaskRequest = (input, context) => {
1438
1457
  return (0, smithy_client_1.take)(input, {
1439
1458
  endTime: (_) => Math.round(_.getTime() / 1000),
1440
1459
  exportDataFormat: smithy_client_1._json,
1441
1460
  filters: smithy_client_1._json,
1461
+ preferences: (_) => se_ExportPreferences(_, context),
1442
1462
  startTime: (_) => Math.round(_.getTime() / 1000),
1443
1463
  });
1444
1464
  };
@@ -1449,6 +1469,12 @@ const se_StartImportTaskRequest = (input, context) => {
1449
1469
  name: [],
1450
1470
  });
1451
1471
  };
1472
+ const se_UsageMetricBasis = (input, context) => {
1473
+ return (0, smithy_client_1.take)(input, {
1474
+ name: [],
1475
+ percentageAdjust: smithy_client_1.serializeFloat,
1476
+ });
1477
+ };
1452
1478
  const de_ConfigurationTag = (output, context) => {
1453
1479
  return (0, smithy_client_1.take)(output, {
1454
1480
  configurationId: smithy_client_1.expectString,
@@ -1587,13 +1613,7 @@ const deserializeMetadata = (output) => ({
1587
1613
  extendedRequestId: output.headers["x-amz-id-2"],
1588
1614
  cfId: output.headers["x-amz-cf-id"],
1589
1615
  });
1590
- const collectBody = (streamBody = new Uint8Array(), context) => {
1591
- if (streamBody instanceof Uint8Array) {
1592
- return Promise.resolve(streamBody);
1593
- }
1594
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1595
- };
1596
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1616
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
1597
1617
  const throwDefaultError = (0, smithy_client_1.withBaseException)(ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException);
1598
1618
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1599
1619
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1,4 +1,4 @@
1
- const q = "fn", r = "argv", s = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://discovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://discovery-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://discovery.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://discovery.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://discovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://discovery-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://discovery.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://discovery.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -167,5 +167,29 @@ export class ResourceInUseException extends __BaseException {
167
167
  }
168
168
  export const ExportDataFormat = {
169
169
  CSV: "CSV",
170
- GRAPHML: "GRAPHML",
171
170
  };
171
+ export const OfferingClass = {
172
+ CONVERTIBLE: "CONVERTIBLE",
173
+ STANDARD: "STANDARD",
174
+ };
175
+ export const PurchasingOption = {
176
+ ALL_UPFRONT: "ALL_UPFRONT",
177
+ NO_UPFRONT: "NO_UPFRONT",
178
+ PARTIAL_UPFRONT: "PARTIAL_UPFRONT",
179
+ };
180
+ export const TermLength = {
181
+ ONE_YEAR: "ONE_YEAR",
182
+ THREE_YEAR: "THREE_YEAR",
183
+ };
184
+ export const Tenancy = {
185
+ DEDICATED: "DEDICATED",
186
+ SHARED: "SHARED",
187
+ };
188
+ export var ExportPreferences;
189
+ (function (ExportPreferences) {
190
+ ExportPreferences.visit = (value, visitor) => {
191
+ if (value.ec2RecommendationsPreferences !== undefined)
192
+ return visitor.ec2RecommendationsPreferences(value.ec2RecommendationsPreferences);
193
+ return visitor._(value.$unknown[0], value.$unknown[1]);
194
+ };
195
+ })(ExportPreferences || (ExportPreferences = {}));
@@ -1,8 +1,8 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { ApplicationDiscoveryServiceServiceException as __BaseException } from "../models/ApplicationDiscoveryServiceServiceException";
5
- import { AuthorizationErrorException, ConflictErrorException, HomeRegionNotSetException, InvalidParameterException, InvalidParameterValueException, OperationNotPermittedException, ResourceInUseException, ResourceNotFoundException, ServerInternalErrorException, } from "../models/models_0";
5
+ import { AuthorizationErrorException, ConflictErrorException, ExportPreferences, HomeRegionNotSetException, InvalidParameterException, InvalidParameterValueException, OperationNotPermittedException, ResourceInUseException, ResourceNotFoundException, ServerInternalErrorException, } from "../models/models_0";
6
6
  export const se_AssociateConfigurationItemsToApplicationCommand = async (input, context) => {
7
7
  const headers = sharedHeaders("AssociateConfigurationItemsToApplication");
8
8
  let body;
@@ -1381,11 +1381,31 @@ const de_ServerInternalErrorExceptionRes = async (parsedOutput, context) => {
1381
1381
  });
1382
1382
  return __decorateServiceException(exception, body);
1383
1383
  };
1384
+ const se_Ec2RecommendationsExportPreferences = (input, context) => {
1385
+ return take(input, {
1386
+ cpuPerformanceMetricBasis: (_) => se_UsageMetricBasis(_, context),
1387
+ enabled: [],
1388
+ excludedInstanceTypes: _json,
1389
+ preferredRegion: [],
1390
+ ramPerformanceMetricBasis: (_) => se_UsageMetricBasis(_, context),
1391
+ reservedInstanceOptions: _json,
1392
+ tenancy: [],
1393
+ });
1394
+ };
1395
+ const se_ExportPreferences = (input, context) => {
1396
+ return ExportPreferences.visit(input, {
1397
+ ec2RecommendationsPreferences: (value) => ({
1398
+ ec2RecommendationsPreferences: se_Ec2RecommendationsExportPreferences(value, context),
1399
+ }),
1400
+ _: (name, value) => ({ name: value }),
1401
+ });
1402
+ };
1384
1403
  const se_StartExportTaskRequest = (input, context) => {
1385
1404
  return take(input, {
1386
1405
  endTime: (_) => Math.round(_.getTime() / 1000),
1387
1406
  exportDataFormat: _json,
1388
1407
  filters: _json,
1408
+ preferences: (_) => se_ExportPreferences(_, context),
1389
1409
  startTime: (_) => Math.round(_.getTime() / 1000),
1390
1410
  });
1391
1411
  };
@@ -1396,6 +1416,12 @@ const se_StartImportTaskRequest = (input, context) => {
1396
1416
  name: [],
1397
1417
  });
1398
1418
  };
1419
+ const se_UsageMetricBasis = (input, context) => {
1420
+ return take(input, {
1421
+ name: [],
1422
+ percentageAdjust: __serializeFloat,
1423
+ });
1424
+ };
1399
1425
  const de_ConfigurationTag = (output, context) => {
1400
1426
  return take(output, {
1401
1427
  configurationId: __expectString,
@@ -1534,12 +1560,6 @@ const deserializeMetadata = (output) => ({
1534
1560
  extendedRequestId: output.headers["x-amz-id-2"],
1535
1561
  cfId: output.headers["x-amz-cf-id"],
1536
1562
  });
1537
- const collectBody = (streamBody = new Uint8Array(), context) => {
1538
- if (streamBody instanceof Uint8Array) {
1539
- return Promise.resolve(streamBody);
1540
- }
1541
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1542
- };
1543
1563
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1544
1564
  const throwDefaultError = withBaseException(__BaseException);
1545
1565
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
@@ -180,26 +180,27 @@ export interface ApplicationDiscoveryService {
180
180
  /**
181
181
  * @public
182
182
  * <fullname>Amazon Web Services Application Discovery Service</fullname>
183
- * <p>Amazon Web Services Application Discovery Service helps you plan application migration projects. It
184
- * automatically identifies servers, virtual machines (VMs), and network dependencies in your
185
- * on-premises data centers. For more information, see the <a href="http://aws.amazon.com/application-discovery/faqs/">Amazon Web Services Application Discovery Service FAQ</a>.
186
- * Application Discovery Service offers three ways of performing discovery and
187
- * collecting data about your on-premises servers:</p>
183
+ * <p>Amazon Web Services Application Discovery Service (Application Discovery Service) helps you plan application migration projects. It automatically
184
+ * identifies servers, virtual machines (VMs), and network dependencies in your on-premises data
185
+ * centers. For more information, see the <a href="http://aws.amazon.com/application-discovery/faqs/">Amazon Web Services Application Discovery Service FAQ</a>. </p>
186
+ * <p>Application Discovery Service offers three ways of performing discovery and collecting
187
+ * data about your on-premises servers:</p>
188
188
  * <ul>
189
189
  * <li>
190
190
  * <p>
191
- * <b>Agentless discovery</b> is recommended for environments
192
- * that use VMware vCenter Server. This mode doesn't require you to install an agent on each
193
- * host. It does not work in non-VMware environments.</p>
191
+ * <b>Agentless discovery</b> using
192
+ * Amazon Web Services Application Discovery Service Agentless Collector (Agentless Collector), which doesn't require you
193
+ * to install an agent on each host.</p>
194
194
  * <ul>
195
195
  * <li>
196
- * <p>Agentless discovery gathers server information regardless of the operating
197
- * systems, which minimizes the time required for initial on-premises infrastructure
198
- * assessment.</p>
196
+ * <p>Agentless Collector gathers server information regardless of the
197
+ * operating systems, which minimizes the time required for initial on-premises
198
+ * infrastructure assessment.</p>
199
199
  * </li>
200
200
  * <li>
201
- * <p>Agentless discovery doesn't collect information about network dependencies, only
202
- * agent-based discovery collects that information.</p>
201
+ * <p>Agentless Collector doesn't collect information about network
202
+ * dependencies, only agent-based discovery collects that information.
203
+ * </p>
203
204
  * </li>
204
205
  * </ul>
205
206
  * </li>
@@ -207,9 +208,9 @@ export interface ApplicationDiscoveryService {
207
208
  * <ul>
208
209
  * <li>
209
210
  * <p>
210
- * <b>Agent-based discovery</b> collects a richer set of data
211
- * than agentless discovery by using the Amazon Web Services Application Discovery Agent, which you install
212
- * on one or more hosts in your data center.</p>
211
+ * <b>Agent-based discovery</b> using the Amazon Web Services Application
212
+ * Discovery Agent (Application Discovery Agent) collects a richer set of data than agentless
213
+ * discovery, which you install on one or more hosts in your data center.</p>
213
214
  * <ul>
214
215
  * <li>
215
216
  * <p> The agent captures infrastructure and application information, including an
@@ -218,7 +219,9 @@ export interface ApplicationDiscoveryService {
218
219
  * </li>
219
220
  * <li>
220
221
  * <p>The information collected by agents is secured at rest and in transit to the
221
- * Application Discovery Service database in the cloud. </p>
222
+ * Application Discovery Service database in the Amazon Web Services cloud. For more information, see
223
+ * <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-agent.html">Amazon Web Services Application
224
+ * Discovery Agent</a>.</p>
222
225
  * </li>
223
226
  * </ul>
224
227
  * </li>
@@ -228,8 +231,8 @@ export interface ApplicationDiscoveryService {
228
231
  * <p>
229
232
  * <b>Amazon Web Services Partner Network (APN) solutions</b> integrate with
230
233
  * Application Discovery Service, enabling you to import details of your on-premises
231
- * environment directly into Migration Hub without using the discovery connector or discovery
232
- * agent.</p>
234
+ * environment directly into Amazon Web Services Migration Hub (Migration Hub) without using
235
+ * Agentless Collector or Application Discovery Agent.</p>
233
236
  * <ul>
234
237
  * <li>
235
238
  * <p>Third-party application discovery tools can query Amazon Web Services Application Discovery
@@ -244,53 +247,43 @@ export interface ApplicationDiscoveryService {
244
247
  * </li>
245
248
  * </ul>
246
249
  * <p>
247
- * <b>Recommendations</b>
248
- * </p>
249
- * <p>We recommend that you use agent-based discovery for non-VMware environments, and
250
- * whenever you want to collect information about network dependencies. You can run agent-based
251
- * and agentless discovery simultaneously. Use agentless discovery to complete the initial
252
- * infrastructure assessment quickly, and then install agents on select hosts to collect
253
- * additional information.</p>
254
- * <p>
255
250
  * <b>Working With This Guide</b>
256
251
  * </p>
257
252
  * <p>This API reference provides descriptions, syntax, and usage examples for each of the
258
253
  * actions and data types for Application Discovery Service. The topic for each action shows the
259
254
  * API request parameters and the response. Alternatively, you can use one of the Amazon Web Services SDKs to
260
255
  * access an API that is tailored to the programming language or platform that you're using. For
261
- * more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon Web Services
262
- * SDKs</a>.</p>
256
+ * more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon Web Services SDKs</a>.</p>
263
257
  * <note>
264
258
  * <ul>
265
259
  * <li>
266
- * <p>Remember that you must set your Migration Hub home region before you call any of
260
+ * <p>Remember that you must set your Migration Hub home Region before you call any of
267
261
  * these APIs.</p>
268
262
  * </li>
269
263
  * <li>
270
264
  * <p>You must make API calls for write actions (create, notify, associate, disassociate,
271
- * import, or put) while in your home region, or a <code>HomeRegionNotSetException</code>
265
+ * import, or put) while in your home Region, or a <code>HomeRegionNotSetException</code>
272
266
  * error is returned.</p>
273
267
  * </li>
274
268
  * <li>
275
269
  * <p>API calls for read actions (list, describe, stop, and delete) are permitted outside
276
- * of your home region.</p>
270
+ * of your home Region.</p>
277
271
  * </li>
278
272
  * <li>
279
- * <p>Although it is unlikely, the Migration Hub home region could change. If you call
280
- * APIs outside the home region, an <code>InvalidInputException</code> is returned.</p>
273
+ * <p>Although it is unlikely, the Migration Hub home Region could change. If you call
274
+ * APIs outside the home Region, an <code>InvalidInputException</code> is returned.</p>
281
275
  * </li>
282
276
  * <li>
283
277
  * <p>You must call <code>GetHomeRegion</code> to obtain the latest Migration Hub home
284
- * region.</p>
278
+ * Region.</p>
285
279
  * </li>
286
280
  * </ul>
287
281
  * </note>
288
- * <p>This guide is intended for use with the <a href="http://docs.aws.amazon.com/application-discovery/latest/userguide/">Amazon Web Services Application
289
- * Discovery Service User Guide</a>.</p>
282
+ * <p>This guide is intended for use with the <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/">Amazon Web Services Application Discovery Service User
283
+ * Guide</a>.</p>
290
284
  * <important>
291
- * <p>All data is handled according to the <a href="http://aws.amazon.com/privacy/">Amazon Web Services
292
- * Privacy Policy</a>. You can operate Application Discovery Service offline to inspect
293
- * collected data before it is shared with the service.</p>
285
+ * <p>All data is handled according to the <a href="https://aws.amazon.com/privacy/">Amazon Web Services Privacy Policy</a>. You can operate Application Discovery Service offline to
286
+ * inspect collected data before it is shared with the service.</p>
294
287
  * </important>
295
288
  */
296
289
  export declare class ApplicationDiscoveryService extends ApplicationDiscoveryServiceClient implements ApplicationDiscoveryService {