aws-sdk-migrationhubstrategyrecommendations 1.16.0 → 1.17.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8ebf57f135366ff85b9bc9b978e94e69288e3766753bc0ba799035af5a08c9b
4
- data.tar.gz: 8af0e46c6ca9f656f50e4db215bab0cb80b4252ddd2f5afc72ebed39a1225545
3
+ metadata.gz: 0ea465e55dfc171c12f0364ae1b5c92af8be4ab291e0bb9a59941bd65f4f6ff0
4
+ data.tar.gz: 95a18755d89341d83dcc796966b47ac371a824a498f2566c318c5493142902ef
5
5
  SHA512:
6
- metadata.gz: 4fbd71f0548fb45b82ff27b2b1a3b1ae70b3c2a3ed74ea445990651e19a62aa9e723069e0651ef6042f7d926276642c8c92688b60bf32a514fd1aab1fff870f2
7
- data.tar.gz: 7d365c3425784545c1d7b39abb751ed2e1a20f203988c4330490e1bec1970becba2bfaa30b1f042f2307f9af7e48f7afacf4407c21481c906ec034bb5ab408b4
6
+ metadata.gz: 7b3f6b25fbb43777c0764bd75de5d05de100ae423d651e82b15945b8b9acb7262fe5ebd7337d34608e4aedb173964f5113519ce356c704232df50ff5826cbc3f
7
+ data.tar.gz: c49a1d09e8813b7e611097e917506c1f2842721d3cb9377f78a92d8c3a525d3f25e45ece835aef203ee3b53b2670d571916733c77010913678f0e718091e44ad
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.17.0 (2023-10-24)
5
+ ------------------
6
+
7
+ * Feature - This release introduces multi-data-source feature in Migration Hub Strategy Recommendations. This feature now supports vCenter as a data source to fetch inventory in addition to ADS and Import from file workflow that is currently supported with MHSR collector.
8
+
4
9
  1.16.0 (2023-09-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.16.0
1
+ 1.17.0
@@ -856,6 +856,57 @@ module Aws::MigrationHubStrategyRecommendations
856
856
  req.send_request(options)
857
857
  end
858
858
 
859
+ # Retrieves a list of all the servers fetched from customer vCenter
860
+ # using Strategy Recommendation Collector.
861
+ #
862
+ # @option params [Integer] :max_results
863
+ # The maximum number of items to include in the response. The maximum
864
+ # value is 100.
865
+ #
866
+ # @option params [String] :next_token
867
+ # The token from a previous call that you use to retrieve the next set
868
+ # of results. For example, if a previous call to this action returned
869
+ # 100 items, but you set maxResults to 10. You'll receive a set of 10
870
+ # results along with a token. You then use the returned token to
871
+ # retrieve the next set of 10.
872
+ #
873
+ # @option params [String] :sort
874
+ # Specifies whether to sort by ascending (ASC) or descending (DESC)
875
+ # order.
876
+ #
877
+ # @return [Types::ListAnalyzableServersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
878
+ #
879
+ # * {Types::ListAnalyzableServersResponse#analyzable_servers #analyzable_servers} => Array<Types::AnalyzableServerSummary>
880
+ # * {Types::ListAnalyzableServersResponse#next_token #next_token} => String
881
+ #
882
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
883
+ #
884
+ # @example Request syntax with placeholder values
885
+ #
886
+ # resp = client.list_analyzable_servers({
887
+ # max_results: 1,
888
+ # next_token: "NextToken",
889
+ # sort: "ASC", # accepts ASC, DESC
890
+ # })
891
+ #
892
+ # @example Response structure
893
+ #
894
+ # resp.analyzable_servers #=> Array
895
+ # resp.analyzable_servers[0].hostname #=> String
896
+ # resp.analyzable_servers[0].ip_address #=> String
897
+ # resp.analyzable_servers[0].source #=> String
898
+ # resp.analyzable_servers[0].vm_id #=> String
899
+ # resp.next_token #=> String
900
+ #
901
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/ListAnalyzableServers AWS API Documentation
902
+ #
903
+ # @overload list_analyzable_servers(params = {})
904
+ # @param [Hash] params ({})
905
+ def list_analyzable_servers(params = {}, options = {})
906
+ req = build_request(:list_analyzable_servers, params)
907
+ req.send_request(options)
908
+ end
909
+
859
910
  # Retrieves a list of all the application components (processes).
860
911
  #
861
912
  # @option params [String] :application_component_criteria
@@ -1246,6 +1297,9 @@ module Aws::MigrationHubStrategyRecommendations
1246
1297
 
1247
1298
  # Starts the assessment of an on-premises environment.
1248
1299
  #
1300
+ # @option params [String] :assessment_data_source_type
1301
+ # The data source type of an assessment to be started.
1302
+ #
1249
1303
  # @option params [Array<Types::AssessmentTarget>] :assessment_targets
1250
1304
  # List of criteria for assessment.
1251
1305
  #
@@ -1264,6 +1318,7 @@ module Aws::MigrationHubStrategyRecommendations
1264
1318
  # @example Request syntax with placeholder values
1265
1319
  #
1266
1320
  # resp = client.start_assessment({
1321
+ # assessment_data_source_type: "StrategyRecommendationsApplicationDataCollector", # accepts StrategyRecommendationsApplicationDataCollector, ManualImport, ApplicationDiscoveryService
1267
1322
  # assessment_targets: [
1268
1323
  # {
1269
1324
  # condition: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS
@@ -1322,7 +1377,7 @@ module Aws::MigrationHubStrategyRecommendations
1322
1377
  #
1323
1378
  # resp = client.start_import_file_task({
1324
1379
  # s3_bucket: "importS3Bucket", # required
1325
- # data_source_type: "ApplicationDiscoveryService", # accepts ApplicationDiscoveryService, MPA, Import
1380
+ # data_source_type: "ApplicationDiscoveryService", # accepts ApplicationDiscoveryService, MPA, Import, StrategyRecommendationsApplicationDataCollector
1326
1381
  # group_id: [
1327
1382
  # {
1328
1383
  # name: "ExternalId", # accepts ExternalId, ExternalSourceType
@@ -1517,7 +1572,7 @@ module Aws::MigrationHubStrategyRecommendations
1517
1572
  params: params,
1518
1573
  config: config)
1519
1574
  context[:gem_name] = 'aws-sdk-migrationhubstrategyrecommendations'
1520
- context[:gem_version] = '1.16.0'
1575
+ context[:gem_version] = '1.17.0'
1521
1576
  Seahorse::Client::Request.new(handlers, context)
1522
1577
  end
1523
1578
 
@@ -16,6 +16,8 @@ module Aws::MigrationHubStrategyRecommendations
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
17
  AnalysisStatusUnion = Shapes::UnionShape.new(name: 'AnalysisStatusUnion')
18
18
  AnalysisType = Shapes::StringShape.new(name: 'AnalysisType')
19
+ AnalyzableServerSummary = Shapes::StructureShape.new(name: 'AnalyzableServerSummary')
20
+ AnalyzableServerSummaryList = Shapes::ListShape.new(name: 'AnalyzableServerSummaryList')
19
21
  AnalyzerNameUnion = Shapes::UnionShape.new(name: 'AnalyzerNameUnion')
20
22
  AntipatternReportResult = Shapes::StructureShape.new(name: 'AntipatternReportResult')
21
23
  AntipatternReportResultList = Shapes::ListShape.new(name: 'AntipatternReportResultList')
@@ -34,6 +36,7 @@ module Aws::MigrationHubStrategyRecommendations
34
36
  ApplicationComponentSummary = Shapes::StructureShape.new(name: 'ApplicationComponentSummary')
35
37
  ApplicationMode = Shapes::StringShape.new(name: 'ApplicationMode')
36
38
  ApplicationPreferences = Shapes::StructureShape.new(name: 'ApplicationPreferences')
39
+ AssessmentDataSourceType = Shapes::StringShape.new(name: 'AssessmentDataSourceType')
37
40
  AssessmentStatus = Shapes::StringShape.new(name: 'AssessmentStatus')
38
41
  AssessmentStatusMessage = Shapes::StringShape.new(name: 'AssessmentStatusMessage')
39
42
  AssessmentSummary = Shapes::StructureShape.new(name: 'AssessmentSummary')
@@ -103,6 +106,8 @@ module Aws::MigrationHubStrategyRecommendations
103
106
  Integer = Shapes::IntegerShape.new(name: 'Integer')
104
107
  InterfaceName = Shapes::StringShape.new(name: 'InterfaceName')
105
108
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
109
+ ListAnalyzableServersRequest = Shapes::StructureShape.new(name: 'ListAnalyzableServersRequest')
110
+ ListAnalyzableServersResponse = Shapes::StructureShape.new(name: 'ListAnalyzableServersResponse')
106
111
  ListAntipatternSeveritySummary = Shapes::ListShape.new(name: 'ListAntipatternSeveritySummary')
107
112
  ListApplicationComponentStatusSummary = Shapes::ListShape.new(name: 'ListApplicationComponentStatusSummary')
108
113
  ListApplicationComponentSummary = Shapes::ListShape.new(name: 'ListApplicationComponentSummary')
@@ -242,6 +247,14 @@ module Aws::MigrationHubStrategyRecommendations
242
247
  AnalysisStatusUnion.add_member_subclass(:unknown, Types::AnalysisStatusUnion::Unknown)
243
248
  AnalysisStatusUnion.struct_class = Types::AnalysisStatusUnion
244
249
 
250
+ AnalyzableServerSummary.add_member(:hostname, Shapes::ShapeRef.new(shape: String, location_name: "hostname"))
251
+ AnalyzableServerSummary.add_member(:ip_address, Shapes::ShapeRef.new(shape: String, location_name: "ipAddress"))
252
+ AnalyzableServerSummary.add_member(:source, Shapes::ShapeRef.new(shape: String, location_name: "source"))
253
+ AnalyzableServerSummary.add_member(:vm_id, Shapes::ShapeRef.new(shape: String, location_name: "vmId"))
254
+ AnalyzableServerSummary.struct_class = Types::AnalyzableServerSummary
255
+
256
+ AnalyzableServerSummaryList.member = Shapes::ShapeRef.new(shape: AnalyzableServerSummary)
257
+
245
258
  AnalyzerNameUnion.add_member(:binary_analyzer_name, Shapes::ShapeRef.new(shape: BinaryAnalyzerName, location_name: "binaryAnalyzerName"))
246
259
  AnalyzerNameUnion.add_member(:run_time_analyzer_name, Shapes::ShapeRef.new(shape: RunTimeAnalyzerName, location_name: "runTimeAnalyzerName"))
247
260
  AnalyzerNameUnion.add_member(:source_code_analyzer_name, Shapes::ShapeRef.new(shape: SourceCodeAnalyzerName, location_name: "sourceCodeAnalyzerName"))
@@ -524,6 +537,15 @@ module Aws::MigrationHubStrategyRecommendations
524
537
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
525
538
  InternalServerException.struct_class = Types::InternalServerException
526
539
 
540
+ ListAnalyzableServersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResult, location_name: "maxResults"))
541
+ ListAnalyzableServersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
542
+ ListAnalyzableServersRequest.add_member(:sort, Shapes::ShapeRef.new(shape: SortOrder, location_name: "sort"))
543
+ ListAnalyzableServersRequest.struct_class = Types::ListAnalyzableServersRequest
544
+
545
+ ListAnalyzableServersResponse.add_member(:analyzable_servers, Shapes::ShapeRef.new(shape: AnalyzableServerSummaryList, location_name: "analyzableServers"))
546
+ ListAnalyzableServersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
547
+ ListAnalyzableServersResponse.struct_class = Types::ListAnalyzableServersResponse
548
+
527
549
  ListAntipatternSeveritySummary.member = Shapes::ShapeRef.new(shape: AntipatternSeveritySummary)
528
550
 
529
551
  ListApplicationComponentStatusSummary.member = Shapes::ShapeRef.new(shape: ApplicationComponentStatusSummary)
@@ -722,6 +744,7 @@ module Aws::MigrationHubStrategyRecommendations
722
744
  SourceCodeRepository.add_member(:version_control_type, Shapes::ShapeRef.new(shape: String, location_name: "versionControlType"))
723
745
  SourceCodeRepository.struct_class = Types::SourceCodeRepository
724
746
 
747
+ StartAssessmentRequest.add_member(:assessment_data_source_type, Shapes::ShapeRef.new(shape: AssessmentDataSourceType, location_name: "assessmentDataSourceType"))
725
748
  StartAssessmentRequest.add_member(:assessment_targets, Shapes::ShapeRef.new(shape: AssessmentTargets, location_name: "assessmentTargets"))
726
749
  StartAssessmentRequest.add_member(:s3bucket_for_analysis_data, Shapes::ShapeRef.new(shape: StartAssessmentRequestS3bucketForAnalysisDataString, location_name: "s3bucketForAnalysisData"))
727
750
  StartAssessmentRequest.add_member(:s3bucket_for_report_data, Shapes::ShapeRef.new(shape: StartAssessmentRequestS3bucketForReportDataString, location_name: "s3bucketForReportData"))
@@ -956,6 +979,24 @@ module Aws::MigrationHubStrategyRecommendations
956
979
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
957
980
  end)
958
981
 
982
+ api.add_operation(:list_analyzable_servers, Seahorse::Model::Operation.new.tap do |o|
983
+ o.name = "ListAnalyzableServers"
984
+ o.http_method = "POST"
985
+ o.http_request_uri = "/list-analyzable-servers"
986
+ o.input = Shapes::ShapeRef.new(shape: ListAnalyzableServersRequest)
987
+ o.output = Shapes::ShapeRef.new(shape: ListAnalyzableServersResponse)
988
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
989
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
990
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
991
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
992
+ o[:pager] = Aws::Pager.new(
993
+ limit_key: "max_results",
994
+ tokens: {
995
+ "next_token" => "next_token"
996
+ }
997
+ )
998
+ end)
999
+
959
1000
  api.add_operation(:list_application_components, Seahorse::Model::Operation.new.tap do |o|
960
1001
  o.name = "ListApplicationComponents"
961
1002
  o.http_method = "POST"
@@ -32,7 +32,7 @@ module Aws::MigrationHubStrategyRecommendations
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://migrationhub-strategy-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -152,6 +152,20 @@ module Aws::MigrationHubStrategyRecommendations
152
152
  end
153
153
  end
154
154
 
155
+ class ListAnalyzableServers
156
+ def self.build(context)
157
+ unless context.config.regional_endpoint
158
+ endpoint = context.config.endpoint.to_s
159
+ end
160
+ Aws::MigrationHubStrategyRecommendations::EndpointParameters.new(
161
+ region: context.config.region,
162
+ use_dual_stack: context.config.use_dualstack_endpoint,
163
+ use_fips: context.config.use_fips_endpoint,
164
+ endpoint: endpoint,
165
+ )
166
+ end
167
+ end
168
+
155
169
  class ListApplicationComponents
156
170
  def self.build(context)
157
171
  unless context.config.regional_endpoint
@@ -76,6 +76,8 @@ module Aws::MigrationHubStrategyRecommendations
76
76
  Aws::MigrationHubStrategyRecommendations::Endpoints::GetServerDetails.build(context)
77
77
  when :get_server_strategies
78
78
  Aws::MigrationHubStrategyRecommendations::Endpoints::GetServerStrategies.build(context)
79
+ when :list_analyzable_servers
80
+ Aws::MigrationHubStrategyRecommendations::Endpoints::ListAnalyzableServers.build(context)
79
81
  when :list_application_components
80
82
  Aws::MigrationHubStrategyRecommendations::Endpoints::ListApplicationComponents.build(context)
81
83
  when :list_collectors
@@ -51,6 +51,35 @@ module Aws::MigrationHubStrategyRecommendations
51
51
  class Unknown < AnalysisStatusUnion; end
52
52
  end
53
53
 
54
+ # Summary information about an analyzable server.
55
+ #
56
+ # @!attribute [rw] hostname
57
+ # The host name of the analyzable server.
58
+ # @return [String]
59
+ #
60
+ # @!attribute [rw] ip_address
61
+ # The ip address of the analyzable server.
62
+ # @return [String]
63
+ #
64
+ # @!attribute [rw] source
65
+ # The data source of the analyzable server.
66
+ # @return [String]
67
+ #
68
+ # @!attribute [rw] vm_id
69
+ # The virtual machine id of the analyzable server.
70
+ # @return [String]
71
+ #
72
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/AnalyzableServerSummary AWS API Documentation
73
+ #
74
+ class AnalyzableServerSummary < Struct.new(
75
+ :hostname,
76
+ :ip_address,
77
+ :source,
78
+ :vm_id)
79
+ SENSITIVE = []
80
+ include Aws::Structure
81
+ end
82
+
54
83
  # The combination of the existing analyzers.
55
84
  #
56
85
  # @note AnalyzerNameUnion is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AnalyzerNameUnion corresponding to the set member.
@@ -1255,6 +1284,57 @@ module Aws::MigrationHubStrategyRecommendations
1255
1284
  include Aws::Structure
1256
1285
  end
1257
1286
 
1287
+ # Represents input for ListAnalyzableServers operation.
1288
+ #
1289
+ # @!attribute [rw] max_results
1290
+ # The maximum number of items to include in the response. The maximum
1291
+ # value is 100.
1292
+ # @return [Integer]
1293
+ #
1294
+ # @!attribute [rw] next_token
1295
+ # The token from a previous call that you use to retrieve the next set
1296
+ # of results. For example, if a previous call to this action returned
1297
+ # 100 items, but you set maxResults to 10. You'll receive a set of 10
1298
+ # results along with a token. You then use the returned token to
1299
+ # retrieve the next set of 10.
1300
+ # @return [String]
1301
+ #
1302
+ # @!attribute [rw] sort
1303
+ # Specifies whether to sort by ascending (ASC) or descending (DESC)
1304
+ # order.
1305
+ # @return [String]
1306
+ #
1307
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/ListAnalyzableServersRequest AWS API Documentation
1308
+ #
1309
+ class ListAnalyzableServersRequest < Struct.new(
1310
+ :max_results,
1311
+ :next_token,
1312
+ :sort)
1313
+ SENSITIVE = []
1314
+ include Aws::Structure
1315
+ end
1316
+
1317
+ # Represents output for ListAnalyzableServers operation.
1318
+ #
1319
+ # @!attribute [rw] analyzable_servers
1320
+ # The list of analyzable servers with summary information about each
1321
+ # server.
1322
+ # @return [Array<Types::AnalyzableServerSummary>]
1323
+ #
1324
+ # @!attribute [rw] next_token
1325
+ # The token you use to retrieve the next set of results, or null if
1326
+ # there are no more results.
1327
+ # @return [String]
1328
+ #
1329
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/ListAnalyzableServersResponse AWS API Documentation
1330
+ #
1331
+ class ListAnalyzableServersResponse < Struct.new(
1332
+ :analyzable_servers,
1333
+ :next_token)
1334
+ SENSITIVE = []
1335
+ include Aws::Structure
1336
+ end
1337
+
1258
1338
  # @!attribute [rw] application_component_criteria
1259
1339
  # Criteria for filtering the list of application components.
1260
1340
  # @return [String]
@@ -2050,6 +2130,10 @@ module Aws::MigrationHubStrategyRecommendations
2050
2130
  include Aws::Structure
2051
2131
  end
2052
2132
 
2133
+ # @!attribute [rw] assessment_data_source_type
2134
+ # The data source type of an assessment to be started.
2135
+ # @return [String]
2136
+ #
2053
2137
  # @!attribute [rw] assessment_targets
2054
2138
  # List of criteria for assessment.
2055
2139
  # @return [Array<Types::AssessmentTarget>]
@@ -2067,6 +2151,7 @@ module Aws::MigrationHubStrategyRecommendations
2067
2151
  # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/StartAssessmentRequest AWS API Documentation
2068
2152
  #
2069
2153
  class StartAssessmentRequest < Struct.new(
2154
+ :assessment_data_source_type,
2070
2155
  :assessment_targets,
2071
2156
  :s3bucket_for_analysis_data,
2072
2157
  :s3bucket_for_report_data)
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-migrationhubstrategyrecommendations/customizations'
52
52
  # @!group service
53
53
  module Aws::MigrationHubStrategyRecommendations
54
54
 
55
- GEM_VERSION = '1.16.0'
55
+ GEM_VERSION = '1.17.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-migrationhubstrategyrecommendations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-27 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core