aws-sdk-migrationhubstrategyrecommendations 1.7.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 976eff4426b49fba7290c8bd1effa54493d3eeb9f3f51fb4bdbed4455888cc2d
4
- data.tar.gz: 8b7c9f04b458c2cc4b5328318f15af2e458bb954cf3989f8ea79d666a054dd7d
3
+ metadata.gz: e2cf42a356ca8ea01254bbc39ceccff0580badfc97a16ae2a079a91aa633fbac
4
+ data.tar.gz: dd71194df8b9a8e49bfa3074c631d7035a51d6d5ad677b9e75974f2f90b7c7f2
5
5
  SHA512:
6
- metadata.gz: 3b2fce165e822aa0019a665107277a79920ef85b2fe662bfe95eaac119f888e70f27e0fc9b889e5e29d4ac4baf4a570f5ae7ae4aebfd30fbf1e938c5c3460c11
7
- data.tar.gz: e9642189dad50c70690b5a53723f7e57b1e664e85304ecff2f0b2548d853974d6cb8ebd846abe41a9f8547356f9bfc3a05bf9b5dfde09843703321f414ab8cad
6
+ metadata.gz: d6e5ed6f230c04f41314a820690326da98b741cf489f8f1c08fc9b9a96ee2449c3ee0304aac0a4b8b6cbe70d042a79269fd9b01281f4ecfbe57b8890cf6236c7
7
+ data.tar.gz: c5ecbb3ea85416f432ae1b6480b04fe6602cf8709f08345334dab8075b83eda021999726d4d1492fe863acb0c30ee99fb4839e4a0860aad841237927629f7e15
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.9.0 (2023-03-15)
5
+ ------------------
6
+
7
+ * Feature - This release adds the binary analysis that analyzes IIS application DLLs on Windows and Java applications on Linux to provide anti-pattern report without configuring access to the source code.
8
+
9
+ 1.8.0 (2023-03-02)
10
+ ------------------
11
+
12
+ * Feature - This release updates the File Import API to allow importing servers already discovered by customers with reduced pre-requisites.
13
+
4
14
  1.7.0 (2023-01-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 1.9.0
@@ -414,6 +414,19 @@ module Aws::MigrationHubStrategyRecommendations
414
414
  # resp.application_component_detail.recommendation_set.transformation_tool.name #=> String, one of "App2Container", "Porting Assistant For .NET", "End of Support Migration", "Windows Web Application Migration Assistant", "Application Migration Service", "Strategy Recommendation Support", "In Place Operating System Upgrade", "Schema Conversion Tool", "Database Migration Service", "Native SQL Server Backup/Restore"
415
415
  # resp.application_component_detail.recommendation_set.transformation_tool.tranformation_tool_installation_link #=> String
416
416
  # resp.application_component_detail.resource_sub_type #=> String, one of "Database", "Process", "DatabaseProcess"
417
+ # resp.application_component_detail.result_list #=> Array
418
+ # resp.application_component_detail.result_list[0].analysis_status.runtime_analysis_status #=> String, one of "ANALYSIS_TO_BE_SCHEDULED", "ANALYSIS_STARTED", "ANALYSIS_SUCCESS", "ANALYSIS_FAILED"
419
+ # resp.application_component_detail.result_list[0].analysis_status.src_code_or_db_analysis_status #=> String, one of "ANALYSIS_TO_BE_SCHEDULED", "ANALYSIS_STARTED", "ANALYSIS_SUCCESS", "ANALYSIS_FAILED", "ANALYSIS_PARTIAL_SUCCESS", "UNCONFIGURED", "CONFIGURED"
420
+ # resp.application_component_detail.result_list[0].analysis_type #=> String, one of "SOURCE_CODE_ANALYSIS", "DATABASE_ANALYSIS", "RUNTIME_ANALYSIS", "BINARY_ANALYSIS"
421
+ # resp.application_component_detail.result_list[0].antipattern_report_result_list #=> Array
422
+ # resp.application_component_detail.result_list[0].antipattern_report_result_list[0].analyzer_name.binary_analyzer_name #=> String, one of "DLL_ANALYZER", "BYTECODE_ANALYZER"
423
+ # resp.application_component_detail.result_list[0].antipattern_report_result_list[0].analyzer_name.run_time_analyzer_name #=> String, one of "A2C_ANALYZER", "REHOST_ANALYZER", "EMP_PA_ANALYZER", "DATABASE_ANALYZER", "SCT_ANALYZER"
424
+ # resp.application_component_detail.result_list[0].antipattern_report_result_list[0].analyzer_name.source_code_analyzer_name #=> String, one of "CSHARP_ANALYZER", "JAVA_ANALYZER", "BYTECODE_ANALYZER", "PORTING_ASSISTANT"
425
+ # resp.application_component_detail.result_list[0].antipattern_report_result_list[0].anti_pattern_report_s3_object.s3_bucket #=> String
426
+ # resp.application_component_detail.result_list[0].antipattern_report_result_list[0].anti_pattern_report_s3_object.s3key #=> String
427
+ # resp.application_component_detail.result_list[0].antipattern_report_result_list[0].antipattern_report_status #=> String, one of "FAILED", "IN_PROGRESS", "SUCCESS"
428
+ # resp.application_component_detail.result_list[0].antipattern_report_result_list[0].antipattern_report_status_message #=> String
429
+ # resp.application_component_detail.result_list[0].status_message #=> String
417
430
  # resp.application_component_detail.runtime_status #=> String, one of "ANALYSIS_TO_BE_SCHEDULED", "ANALYSIS_STARTED", "ANALYSIS_SUCCESS", "ANALYSIS_FAILED"
418
431
  # resp.application_component_detail.runtime_status_message #=> String
419
432
  # resp.application_component_detail.source_code_repositories #=> Array
@@ -866,7 +879,7 @@ module Aws::MigrationHubStrategyRecommendations
866
879
  # filter_value: "ListApplicationComponentsRequestFilterValueString",
867
880
  # group_id_filter: [
868
881
  # {
869
- # name: "ExternalId", # accepts ExternalId
882
+ # name: "ExternalId", # accepts ExternalId, ExternalSourceType
870
883
  # value: "String",
871
884
  # },
872
885
  # ],
@@ -903,6 +916,19 @@ module Aws::MigrationHubStrategyRecommendations
903
916
  # resp.application_component_infos[0].recommendation_set.transformation_tool.name #=> String, one of "App2Container", "Porting Assistant For .NET", "End of Support Migration", "Windows Web Application Migration Assistant", "Application Migration Service", "Strategy Recommendation Support", "In Place Operating System Upgrade", "Schema Conversion Tool", "Database Migration Service", "Native SQL Server Backup/Restore"
904
917
  # resp.application_component_infos[0].recommendation_set.transformation_tool.tranformation_tool_installation_link #=> String
905
918
  # resp.application_component_infos[0].resource_sub_type #=> String, one of "Database", "Process", "DatabaseProcess"
919
+ # resp.application_component_infos[0].result_list #=> Array
920
+ # resp.application_component_infos[0].result_list[0].analysis_status.runtime_analysis_status #=> String, one of "ANALYSIS_TO_BE_SCHEDULED", "ANALYSIS_STARTED", "ANALYSIS_SUCCESS", "ANALYSIS_FAILED"
921
+ # resp.application_component_infos[0].result_list[0].analysis_status.src_code_or_db_analysis_status #=> String, one of "ANALYSIS_TO_BE_SCHEDULED", "ANALYSIS_STARTED", "ANALYSIS_SUCCESS", "ANALYSIS_FAILED", "ANALYSIS_PARTIAL_SUCCESS", "UNCONFIGURED", "CONFIGURED"
922
+ # resp.application_component_infos[0].result_list[0].analysis_type #=> String, one of "SOURCE_CODE_ANALYSIS", "DATABASE_ANALYSIS", "RUNTIME_ANALYSIS", "BINARY_ANALYSIS"
923
+ # resp.application_component_infos[0].result_list[0].antipattern_report_result_list #=> Array
924
+ # resp.application_component_infos[0].result_list[0].antipattern_report_result_list[0].analyzer_name.binary_analyzer_name #=> String, one of "DLL_ANALYZER", "BYTECODE_ANALYZER"
925
+ # resp.application_component_infos[0].result_list[0].antipattern_report_result_list[0].analyzer_name.run_time_analyzer_name #=> String, one of "A2C_ANALYZER", "REHOST_ANALYZER", "EMP_PA_ANALYZER", "DATABASE_ANALYZER", "SCT_ANALYZER"
926
+ # resp.application_component_infos[0].result_list[0].antipattern_report_result_list[0].analyzer_name.source_code_analyzer_name #=> String, one of "CSHARP_ANALYZER", "JAVA_ANALYZER", "BYTECODE_ANALYZER", "PORTING_ASSISTANT"
927
+ # resp.application_component_infos[0].result_list[0].antipattern_report_result_list[0].anti_pattern_report_s3_object.s3_bucket #=> String
928
+ # resp.application_component_infos[0].result_list[0].antipattern_report_result_list[0].anti_pattern_report_s3_object.s3key #=> String
929
+ # resp.application_component_infos[0].result_list[0].antipattern_report_result_list[0].antipattern_report_status #=> String, one of "FAILED", "IN_PROGRESS", "SUCCESS"
930
+ # resp.application_component_infos[0].result_list[0].antipattern_report_result_list[0].antipattern_report_status_message #=> String
931
+ # resp.application_component_infos[0].result_list[0].status_message #=> String
906
932
  # resp.application_component_infos[0].runtime_status #=> String, one of "ANALYSIS_TO_BE_SCHEDULED", "ANALYSIS_STARTED", "ANALYSIS_SUCCESS", "ANALYSIS_FAILED"
907
933
  # resp.application_component_infos[0].runtime_status_message #=> String
908
934
  # resp.application_component_infos[0].source_code_repositories #=> Array
@@ -1077,7 +1103,7 @@ module Aws::MigrationHubStrategyRecommendations
1077
1103
  # filter_value: "String",
1078
1104
  # group_id_filter: [
1079
1105
  # {
1080
- # name: "ExternalId", # accepts ExternalId
1106
+ # name: "ExternalId", # accepts ExternalId, ExternalSourceType
1081
1107
  # value: "String",
1082
1108
  # },
1083
1109
  # ],
@@ -1276,10 +1302,10 @@ module Aws::MigrationHubStrategyRecommendations
1276
1302
  #
1277
1303
  # resp = client.start_import_file_task({
1278
1304
  # s3_bucket: "importS3Bucket", # required
1279
- # data_source_type: "ApplicationDiscoveryService", # accepts ApplicationDiscoveryService, MPA
1305
+ # data_source_type: "ApplicationDiscoveryService", # accepts ApplicationDiscoveryService, MPA, Import
1280
1306
  # group_id: [
1281
1307
  # {
1282
- # name: "ExternalId", # accepts ExternalId
1308
+ # name: "ExternalId", # accepts ExternalId, ExternalSourceType
1283
1309
  # value: "String",
1284
1310
  # },
1285
1311
  # ],
@@ -1319,7 +1345,7 @@ module Aws::MigrationHubStrategyRecommendations
1319
1345
  # resp = client.start_recommendation_report_generation({
1320
1346
  # group_id_filter: [
1321
1347
  # {
1322
- # name: "ExternalId", # accepts ExternalId
1348
+ # name: "ExternalId", # accepts ExternalId, ExternalSourceType
1323
1349
  # value: "String",
1324
1350
  # },
1325
1351
  # ],
@@ -1471,7 +1497,7 @@ module Aws::MigrationHubStrategyRecommendations
1471
1497
  params: params,
1472
1498
  config: config)
1473
1499
  context[:gem_name] = 'aws-sdk-migrationhubstrategyrecommendations'
1474
- context[:gem_version] = '1.7.0'
1500
+ context[:gem_version] = '1.9.0'
1475
1501
  Seahorse::Client::Request.new(handlers, context)
1476
1502
  end
1477
1503
 
@@ -14,6 +14,11 @@ module Aws::MigrationHubStrategyRecommendations
14
14
  include Seahorse::Model
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AnalysisStatusUnion = Shapes::UnionShape.new(name: 'AnalysisStatusUnion')
18
+ AnalysisType = Shapes::StringShape.new(name: 'AnalysisType')
19
+ AnalyzerNameUnion = Shapes::UnionShape.new(name: 'AnalyzerNameUnion')
20
+ AntipatternReportResult = Shapes::StructureShape.new(name: 'AntipatternReportResult')
21
+ AntipatternReportResultList = Shapes::ListShape.new(name: 'AntipatternReportResultList')
17
22
  AntipatternReportStatus = Shapes::StringShape.new(name: 'AntipatternReportStatus')
18
23
  AntipatternSeveritySummary = Shapes::StructureShape.new(name: 'AntipatternSeveritySummary')
19
24
  AppType = Shapes::StringShape.new(name: 'AppType')
@@ -43,6 +48,7 @@ module Aws::MigrationHubStrategyRecommendations
43
48
  AwsManagedResources = Shapes::StructureShape.new(name: 'AwsManagedResources')
44
49
  AwsManagedTargetDestination = Shapes::StringShape.new(name: 'AwsManagedTargetDestination')
45
50
  AwsManagedTargetDestinations = Shapes::ListShape.new(name: 'AwsManagedTargetDestinations')
51
+ BinaryAnalyzerName = Shapes::StringShape.new(name: 'BinaryAnalyzerName')
46
52
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
47
53
  BusinessGoals = Shapes::StructureShape.new(name: 'BusinessGoals')
48
54
  BusinessGoalsInteger = Shapes::IntegerShape.new(name: 'BusinessGoalsInteger')
@@ -147,6 +153,9 @@ module Aws::MigrationHubStrategyRecommendations
147
153
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
148
154
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
149
155
  ResourceSubType = Shapes::StringShape.new(name: 'ResourceSubType')
156
+ Result = Shapes::StructureShape.new(name: 'Result')
157
+ ResultList = Shapes::ListShape.new(name: 'ResultList')
158
+ RunTimeAnalyzerName = Shapes::StringShape.new(name: 'RunTimeAnalyzerName')
150
159
  RunTimeAssessmentStatus = Shapes::StringShape.new(name: 'RunTimeAssessmentStatus')
151
160
  RuntimeAnalysisStatus = Shapes::StringShape.new(name: 'RuntimeAnalysisStatus')
152
161
  S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
@@ -173,6 +182,7 @@ module Aws::MigrationHubStrategyRecommendations
173
182
  Severity = Shapes::StringShape.new(name: 'Severity')
174
183
  SortOrder = Shapes::StringShape.new(name: 'SortOrder')
175
184
  SourceCode = Shapes::StructureShape.new(name: 'SourceCode')
185
+ SourceCodeAnalyzerName = Shapes::StringShape.new(name: 'SourceCodeAnalyzerName')
176
186
  SourceCodeList = Shapes::ListShape.new(name: 'SourceCodeList')
177
187
  SourceCodeRepositories = Shapes::ListShape.new(name: 'SourceCodeRepositories')
178
188
  SourceCodeRepository = Shapes::StructureShape.new(name: 'SourceCodeRepository')
@@ -224,6 +234,32 @@ module Aws::MigrationHubStrategyRecommendations
224
234
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
225
235
  AccessDeniedException.struct_class = Types::AccessDeniedException
226
236
 
237
+ AnalysisStatusUnion.add_member(:runtime_analysis_status, Shapes::ShapeRef.new(shape: RuntimeAnalysisStatus, location_name: "runtimeAnalysisStatus"))
238
+ AnalysisStatusUnion.add_member(:src_code_or_db_analysis_status, Shapes::ShapeRef.new(shape: SrcCodeOrDbAnalysisStatus, location_name: "srcCodeOrDbAnalysisStatus"))
239
+ AnalysisStatusUnion.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
240
+ AnalysisStatusUnion.add_member_subclass(:runtime_analysis_status, Types::AnalysisStatusUnion::RuntimeAnalysisStatus)
241
+ AnalysisStatusUnion.add_member_subclass(:src_code_or_db_analysis_status, Types::AnalysisStatusUnion::SrcCodeOrDbAnalysisStatus)
242
+ AnalysisStatusUnion.add_member_subclass(:unknown, Types::AnalysisStatusUnion::Unknown)
243
+ AnalysisStatusUnion.struct_class = Types::AnalysisStatusUnion
244
+
245
+ AnalyzerNameUnion.add_member(:binary_analyzer_name, Shapes::ShapeRef.new(shape: BinaryAnalyzerName, location_name: "binaryAnalyzerName"))
246
+ AnalyzerNameUnion.add_member(:run_time_analyzer_name, Shapes::ShapeRef.new(shape: RunTimeAnalyzerName, location_name: "runTimeAnalyzerName"))
247
+ AnalyzerNameUnion.add_member(:source_code_analyzer_name, Shapes::ShapeRef.new(shape: SourceCodeAnalyzerName, location_name: "sourceCodeAnalyzerName"))
248
+ AnalyzerNameUnion.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
249
+ AnalyzerNameUnion.add_member_subclass(:binary_analyzer_name, Types::AnalyzerNameUnion::BinaryAnalyzerName)
250
+ AnalyzerNameUnion.add_member_subclass(:run_time_analyzer_name, Types::AnalyzerNameUnion::RunTimeAnalyzerName)
251
+ AnalyzerNameUnion.add_member_subclass(:source_code_analyzer_name, Types::AnalyzerNameUnion::SourceCodeAnalyzerName)
252
+ AnalyzerNameUnion.add_member_subclass(:unknown, Types::AnalyzerNameUnion::Unknown)
253
+ AnalyzerNameUnion.struct_class = Types::AnalyzerNameUnion
254
+
255
+ AntipatternReportResult.add_member(:analyzer_name, Shapes::ShapeRef.new(shape: AnalyzerNameUnion, location_name: "analyzerName"))
256
+ AntipatternReportResult.add_member(:anti_pattern_report_s3_object, Shapes::ShapeRef.new(shape: S3Object, location_name: "antiPatternReportS3Object"))
257
+ AntipatternReportResult.add_member(:antipattern_report_status, Shapes::ShapeRef.new(shape: AntipatternReportStatus, location_name: "antipatternReportStatus"))
258
+ AntipatternReportResult.add_member(:antipattern_report_status_message, Shapes::ShapeRef.new(shape: StatusMessage, location_name: "antipatternReportStatusMessage"))
259
+ AntipatternReportResult.struct_class = Types::AntipatternReportResult
260
+
261
+ AntipatternReportResultList.member = Shapes::ShapeRef.new(shape: AntipatternReportResult)
262
+
227
263
  AntipatternSeveritySummary.add_member(:count, Shapes::ShapeRef.new(shape: Integer, location_name: "count"))
228
264
  AntipatternSeveritySummary.add_member(:severity, Shapes::ShapeRef.new(shape: Severity, location_name: "severity"))
229
265
  AntipatternSeveritySummary.struct_class = Types::AntipatternSeveritySummary
@@ -249,6 +285,7 @@ module Aws::MigrationHubStrategyRecommendations
249
285
  ApplicationComponentDetail.add_member(:os_version, Shapes::ShapeRef.new(shape: String, location_name: "osVersion"))
250
286
  ApplicationComponentDetail.add_member(:recommendation_set, Shapes::ShapeRef.new(shape: RecommendationSet, location_name: "recommendationSet"))
251
287
  ApplicationComponentDetail.add_member(:resource_sub_type, Shapes::ShapeRef.new(shape: ResourceSubType, location_name: "resourceSubType"))
288
+ ApplicationComponentDetail.add_member(:result_list, Shapes::ShapeRef.new(shape: ResultList, location_name: "resultList"))
252
289
  ApplicationComponentDetail.add_member(:runtime_status, Shapes::ShapeRef.new(shape: RuntimeAnalysisStatus, location_name: "runtimeStatus"))
253
290
  ApplicationComponentDetail.add_member(:runtime_status_message, Shapes::ShapeRef.new(shape: StatusMessage, location_name: "runtimeStatusMessage"))
254
291
  ApplicationComponentDetail.add_member(:source_code_repositories, Shapes::ShapeRef.new(shape: SourceCodeRepositories, location_name: "sourceCodeRepositories"))
@@ -607,6 +644,14 @@ module Aws::MigrationHubStrategyRecommendations
607
644
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
608
645
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
609
646
 
647
+ Result.add_member(:analysis_status, Shapes::ShapeRef.new(shape: AnalysisStatusUnion, location_name: "analysisStatus"))
648
+ Result.add_member(:analysis_type, Shapes::ShapeRef.new(shape: AnalysisType, location_name: "analysisType"))
649
+ Result.add_member(:antipattern_report_result_list, Shapes::ShapeRef.new(shape: AntipatternReportResultList, location_name: "antipatternReportResultList"))
650
+ Result.add_member(:status_message, Shapes::ShapeRef.new(shape: StatusMessage, location_name: "statusMessage"))
651
+ Result.struct_class = Types::Result
652
+
653
+ ResultList.member = Shapes::ShapeRef.new(shape: Result)
654
+
610
655
  S3Keys.member = Shapes::ShapeRef.new(shape: String)
611
656
 
612
657
  S3Object.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "s3Bucket"))
@@ -50,9 +50,6 @@ module Aws::MigrationHubStrategyRecommendations
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,39 @@ module Aws::MigrationHubStrategyRecommendations
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://migrationhub-strategy-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://migrationhub-strategy-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://migrationhub-strategy.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://migrationhub-strategy-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
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"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://migrationhub-strategy-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://migrationhub-strategy.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://migrationhub-strategy.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://migrationhub-strategy.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -10,9 +10,8 @@
10
10
  module Aws::MigrationHubStrategyRecommendations
11
11
  module Types
12
12
 
13
- # The AWS user account does not have permission to perform the action.
14
- # Check the AWS Identity and Access Management (IAM) policy associated
15
- # with this account.
13
+ # The user does not have permission to perform the action. Check the AWS
14
+ # Identity and Access Management (IAM) policy associated with this user.
16
15
  #
17
16
  # @!attribute [rw] message
18
17
  # @return [String]
@@ -25,6 +24,95 @@ module Aws::MigrationHubStrategyRecommendations
25
24
  include Aws::Structure
26
25
  end
27
26
 
27
+ # A combination of existing analysis statuses.
28
+ #
29
+ # @note AnalysisStatusUnion is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AnalysisStatusUnion corresponding to the set member.
30
+ #
31
+ # @!attribute [rw] runtime_analysis_status
32
+ # The status of the analysis.
33
+ # @return [String]
34
+ #
35
+ # @!attribute [rw] src_code_or_db_analysis_status
36
+ # The status of the source code or database analysis.
37
+ # @return [String]
38
+ #
39
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/AnalysisStatusUnion AWS API Documentation
40
+ #
41
+ class AnalysisStatusUnion < Struct.new(
42
+ :runtime_analysis_status,
43
+ :src_code_or_db_analysis_status,
44
+ :unknown)
45
+ SENSITIVE = []
46
+ include Aws::Structure
47
+ include Aws::Structure::Union
48
+
49
+ class RuntimeAnalysisStatus < AnalysisStatusUnion; end
50
+ class SrcCodeOrDbAnalysisStatus < AnalysisStatusUnion; end
51
+ class Unknown < AnalysisStatusUnion; end
52
+ end
53
+
54
+ # The combination of the existing analyzers.
55
+ #
56
+ # @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.
57
+ #
58
+ # @!attribute [rw] binary_analyzer_name
59
+ # The binary analyzer names.
60
+ # @return [String]
61
+ #
62
+ # @!attribute [rw] run_time_analyzer_name
63
+ # The assessment analyzer names.
64
+ # @return [String]
65
+ #
66
+ # @!attribute [rw] source_code_analyzer_name
67
+ # The source code analyzer names.
68
+ # @return [String]
69
+ #
70
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/AnalyzerNameUnion AWS API Documentation
71
+ #
72
+ class AnalyzerNameUnion < Struct.new(
73
+ :binary_analyzer_name,
74
+ :run_time_analyzer_name,
75
+ :source_code_analyzer_name,
76
+ :unknown)
77
+ SENSITIVE = []
78
+ include Aws::Structure
79
+ include Aws::Structure::Union
80
+
81
+ class BinaryAnalyzerName < AnalyzerNameUnion; end
82
+ class RunTimeAnalyzerName < AnalyzerNameUnion; end
83
+ class SourceCodeAnalyzerName < AnalyzerNameUnion; end
84
+ class Unknown < AnalyzerNameUnion; end
85
+ end
86
+
87
+ # The anti-pattern report result.
88
+ #
89
+ # @!attribute [rw] analyzer_name
90
+ # The analyzer name.
91
+ # @return [Types::AnalyzerNameUnion]
92
+ #
93
+ # @!attribute [rw] anti_pattern_report_s3_object
94
+ # Contains the S3 bucket name and the Amazon S3 key name.
95
+ # @return [Types::S3Object]
96
+ #
97
+ # @!attribute [rw] antipattern_report_status
98
+ # The status of the anti-pattern report generation.
99
+ # @return [String]
100
+ #
101
+ # @!attribute [rw] antipattern_report_status_message
102
+ # The status message for the anti-pattern.
103
+ # @return [String]
104
+ #
105
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/AntipatternReportResult AWS API Documentation
106
+ #
107
+ class AntipatternReportResult < Struct.new(
108
+ :analyzer_name,
109
+ :anti_pattern_report_s3_object,
110
+ :antipattern_report_status,
111
+ :antipattern_report_status_message)
112
+ SENSITIVE = []
113
+ include Aws::Structure
114
+ end
115
+
28
116
  # Contains the summary of anti-patterns and their severity.
29
117
  #
30
118
  # @!attribute [rw] count
@@ -137,6 +225,10 @@ module Aws::MigrationHubStrategyRecommendations
137
225
  # The application component subtype.
138
226
  # @return [String]
139
227
  #
228
+ # @!attribute [rw] result_list
229
+ # A list of the analysis results.
230
+ # @return [Array<Types::Result>]
231
+ #
140
232
  # @!attribute [rw] runtime_status
141
233
  # The status of the application unit.
142
234
  # @return [String]
@@ -176,6 +268,7 @@ module Aws::MigrationHubStrategyRecommendations
176
268
  :os_version,
177
269
  :recommendation_set,
178
270
  :resource_sub_type,
271
+ :result_list,
179
272
  :runtime_status,
180
273
  :runtime_status_message,
181
274
  :source_code_repositories,
@@ -1644,6 +1737,35 @@ module Aws::MigrationHubStrategyRecommendations
1644
1737
  include Aws::Structure
1645
1738
  end
1646
1739
 
1740
+ # The error in server analysis.
1741
+ #
1742
+ # @!attribute [rw] analysis_status
1743
+ # The error in server analysis.
1744
+ # @return [Types::AnalysisStatusUnion]
1745
+ #
1746
+ # @!attribute [rw] analysis_type
1747
+ # The error in server analysis.
1748
+ # @return [String]
1749
+ #
1750
+ # @!attribute [rw] antipattern_report_result_list
1751
+ # The error in server analysis.
1752
+ # @return [Array<Types::AntipatternReportResult>]
1753
+ #
1754
+ # @!attribute [rw] status_message
1755
+ # The error in server analysis.
1756
+ # @return [String]
1757
+ #
1758
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/Result AWS API Documentation
1759
+ #
1760
+ class Result < Struct.new(
1761
+ :analysis_status,
1762
+ :analysis_type,
1763
+ :antipattern_report_result_list,
1764
+ :status_message)
1765
+ SENSITIVE = []
1766
+ include Aws::Structure
1767
+ end
1768
+
1647
1769
  # Contains the S3 bucket name and the Amazon S3 key name.
1648
1770
  #
1649
1771
  # @!attribute [rw] s3_bucket
@@ -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.7.0'
55
+ GEM_VERSION = '1.9.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.7.0
4
+ version: 1.9.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-01-18 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core