aws-sdk-migrationhub 1.19.0 → 1.20.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
  SHA1:
3
- metadata.gz: 12b6b9366e413cf05fc3622085cf4aaea0c797a1
4
- data.tar.gz: b6e40cea86d7c58fdad016e7bb83e3993ec2c759
3
+ metadata.gz: acd7f206461adf6c6ea1b48939fc2ceb2e8bf933
4
+ data.tar.gz: 91dbd3d92a5b48052c1e3bd1baf7cbb9d43773f5
5
5
  SHA512:
6
- metadata.gz: cff9cce2dc24c82b609fcf49cd1e8047be2230e161779065eb62e69ef0742eb5ad969889601b376dafd69f70b91ec71b9ead8b941ec88278a5704f57e72c85dc
7
- data.tar.gz: b88883ca1114761f7d3e67b35fde68d1ac368b90bc937325ac670ea69f0f542712041b2c982133286df197e3f0caf190fd9919f858a56478b4928016b13e9ec6
6
+ metadata.gz: 00a8c17d00120098137ba79b72731acb4353cbc69e91dae7cef46dc9b8d1f6941b21d59d628e7bbfa678e7f246ce5a88c173d2483c57ee9bc09340ceafae44f7
7
+ data.tar.gz: e276a61f41367d801f174eff49c08b8a8d5ead9cbbad6a07d33924a850580cd5fc161427e38b536485247a616114e60e645f59507cdaeb52c4576e20036a5932
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-migrationhub/customizations'
42
42
  # @service
43
43
  module Aws::MigrationHub
44
44
 
45
- GEM_VERSION = '1.19.0'
45
+ GEM_VERSION = '1.20.0'
46
46
 
47
47
  end
@@ -641,6 +641,52 @@ module Aws::MigrationHub
641
641
  req.send_request(options)
642
642
  end
643
643
 
644
+ # Lists all the migration statuses for your applications. If you use the
645
+ # optional `ApplicationIds` parameter, only the migration statuses for
646
+ # those applications will be returned.
647
+ #
648
+ # @option params [Array<String>] :application_ids
649
+ # The configurationIds from the Application Discovery Service that
650
+ # uniquely identifies your applications.
651
+ #
652
+ # @option params [String] :next_token
653
+ # If a `NextToken` was returned by a previous call, there are more
654
+ # results available. To retrieve the next page of results, make the call
655
+ # again using the returned token in `NextToken`.
656
+ #
657
+ # @option params [Integer] :max_results
658
+ # Maximum number of results to be returned per page.
659
+ #
660
+ # @return [Types::ListApplicationStatesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
661
+ #
662
+ # * {Types::ListApplicationStatesResult#application_state_list #application_state_list} => Array&lt;Types::ApplicationState&gt;
663
+ # * {Types::ListApplicationStatesResult#next_token #next_token} => String
664
+ #
665
+ # @example Request syntax with placeholder values
666
+ #
667
+ # resp = client.list_application_states({
668
+ # application_ids: ["ApplicationId"],
669
+ # next_token: "Token",
670
+ # max_results: 1,
671
+ # })
672
+ #
673
+ # @example Response structure
674
+ #
675
+ # resp.application_state_list #=> Array
676
+ # resp.application_state_list[0].application_id #=> String
677
+ # resp.application_state_list[0].application_status #=> String, one of "NOT_STARTED", "IN_PROGRESS", "COMPLETED"
678
+ # resp.application_state_list[0].last_updated_time #=> Time
679
+ # resp.next_token #=> String
680
+ #
681
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListApplicationStates AWS API Documentation
682
+ #
683
+ # @overload list_application_states(params = {})
684
+ # @param [Hash] params ({})
685
+ def list_application_states(params = {}, options = {})
686
+ req = build_request(:list_application_states, params)
687
+ req.send_request(options)
688
+ end
689
+
644
690
  # Lists the created artifacts attached to a given migration task in an
645
691
  # update stream. This API has the following traits:
646
692
  #
@@ -1041,7 +1087,7 @@ module Aws::MigrationHub
1041
1087
  params: params,
1042
1088
  config: config)
1043
1089
  context[:gem_name] = 'aws-sdk-migrationhub'
1044
- context[:gem_version] = '1.19.0'
1090
+ context[:gem_version] = '1.20.0'
1045
1091
  Seahorse::Client::Request.new(handlers, context)
1046
1092
  end
1047
1093
 
@@ -13,6 +13,9 @@ module Aws::MigrationHub
13
13
 
14
14
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
15
15
  ApplicationId = Shapes::StringShape.new(name: 'ApplicationId')
16
+ ApplicationIds = Shapes::ListShape.new(name: 'ApplicationIds')
17
+ ApplicationState = Shapes::StructureShape.new(name: 'ApplicationState')
18
+ ApplicationStateList = Shapes::ListShape.new(name: 'ApplicationStateList')
16
19
  ApplicationStatus = Shapes::StringShape.new(name: 'ApplicationStatus')
17
20
  AssociateCreatedArtifactRequest = Shapes::StructureShape.new(name: 'AssociateCreatedArtifactRequest')
18
21
  AssociateCreatedArtifactResult = Shapes::StructureShape.new(name: 'AssociateCreatedArtifactResult')
@@ -47,6 +50,8 @@ module Aws::MigrationHub
47
50
  InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
48
51
  InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
49
52
  LatestResourceAttributeList = Shapes::ListShape.new(name: 'LatestResourceAttributeList')
53
+ ListApplicationStatesRequest = Shapes::StructureShape.new(name: 'ListApplicationStatesRequest')
54
+ ListApplicationStatesResult = Shapes::StructureShape.new(name: 'ListApplicationStatesResult')
50
55
  ListCreatedArtifactsRequest = Shapes::StructureShape.new(name: 'ListCreatedArtifactsRequest')
51
56
  ListCreatedArtifactsResult = Shapes::StructureShape.new(name: 'ListCreatedArtifactsResult')
52
57
  ListDiscoveredResourcesRequest = Shapes::StructureShape.new(name: 'ListDiscoveredResourcesRequest')
@@ -91,6 +96,15 @@ module Aws::MigrationHub
91
96
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
92
97
  AccessDeniedException.struct_class = Types::AccessDeniedException
93
98
 
99
+ ApplicationIds.member = Shapes::ShapeRef.new(shape: ApplicationId)
100
+
101
+ ApplicationState.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "ApplicationId"))
102
+ ApplicationState.add_member(:application_status, Shapes::ShapeRef.new(shape: ApplicationStatus, location_name: "ApplicationStatus"))
103
+ ApplicationState.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: UpdateDateTime, location_name: "LastUpdatedTime"))
104
+ ApplicationState.struct_class = Types::ApplicationState
105
+
106
+ ApplicationStateList.member = Shapes::ShapeRef.new(shape: ApplicationState)
107
+
94
108
  AssociateCreatedArtifactRequest.add_member(:progress_update_stream, Shapes::ShapeRef.new(shape: ProgressUpdateStream, required: true, location_name: "ProgressUpdateStream"))
95
109
  AssociateCreatedArtifactRequest.add_member(:migration_task_name, Shapes::ShapeRef.new(shape: MigrationTaskName, required: true, location_name: "MigrationTaskName"))
96
110
  AssociateCreatedArtifactRequest.add_member(:created_artifact, Shapes::ShapeRef.new(shape: CreatedArtifact, required: true, location_name: "CreatedArtifact"))
@@ -182,6 +196,15 @@ module Aws::MigrationHub
182
196
 
183
197
  LatestResourceAttributeList.member = Shapes::ShapeRef.new(shape: ResourceAttribute)
184
198
 
199
+ ListApplicationStatesRequest.add_member(:application_ids, Shapes::ShapeRef.new(shape: ApplicationIds, location_name: "ApplicationIds"))
200
+ ListApplicationStatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
201
+ ListApplicationStatesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
202
+ ListApplicationStatesRequest.struct_class = Types::ListApplicationStatesRequest
203
+
204
+ ListApplicationStatesResult.add_member(:application_state_list, Shapes::ShapeRef.new(shape: ApplicationStateList, location_name: "ApplicationStateList"))
205
+ ListApplicationStatesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
206
+ ListApplicationStatesResult.struct_class = Types::ListApplicationStatesResult
207
+
185
208
  ListCreatedArtifactsRequest.add_member(:progress_update_stream, Shapes::ShapeRef.new(shape: ProgressUpdateStream, required: true, location_name: "ProgressUpdateStream"))
186
209
  ListCreatedArtifactsRequest.add_member(:migration_task_name, Shapes::ShapeRef.new(shape: MigrationTaskName, required: true, location_name: "MigrationTaskName"))
187
210
  ListCreatedArtifactsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
@@ -449,6 +472,25 @@ module Aws::MigrationHub
449
472
  o.errors << Shapes::ShapeRef.new(shape: HomeRegionNotSetException)
450
473
  end)
451
474
 
475
+ api.add_operation(:list_application_states, Seahorse::Model::Operation.new.tap do |o|
476
+ o.name = "ListApplicationStates"
477
+ o.http_method = "POST"
478
+ o.http_request_uri = "/"
479
+ o.input = Shapes::ShapeRef.new(shape: ListApplicationStatesRequest)
480
+ o.output = Shapes::ShapeRef.new(shape: ListApplicationStatesResult)
481
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
482
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
483
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
484
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
485
+ o.errors << Shapes::ShapeRef.new(shape: HomeRegionNotSetException)
486
+ o[:pager] = Aws::Pager.new(
487
+ limit_key: "max_results",
488
+ tokens: {
489
+ "next_token" => "next_token"
490
+ }
491
+ )
492
+ end)
493
+
452
494
  api.add_operation(:list_created_artifacts, Seahorse::Model::Operation.new.tap do |o|
453
495
  o.name = "ListCreatedArtifacts"
454
496
  o.http_method = "POST"
@@ -20,6 +20,32 @@ module Aws::MigrationHub
20
20
  include Aws::Structure
21
21
  end
22
22
 
23
+ # The state of an application discovered through Migration Hub import,
24
+ # the AWS Agentless Discovery Connector, or the AWS Application
25
+ # Discovery Agent.
26
+ #
27
+ # @!attribute [rw] application_id
28
+ # The configurationId from the Application Discovery Service that
29
+ # uniquely identifies an application.
30
+ # @return [String]
31
+ #
32
+ # @!attribute [rw] application_status
33
+ # The current status of an application.
34
+ # @return [String]
35
+ #
36
+ # @!attribute [rw] last_updated_time
37
+ # The timestamp when the application status was last updated.
38
+ # @return [Time]
39
+ #
40
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ApplicationState AWS API Documentation
41
+ #
42
+ class ApplicationState < Struct.new(
43
+ :application_id,
44
+ :application_status,
45
+ :last_updated_time)
46
+ include Aws::Structure
47
+ end
48
+
23
49
  # @note When making an API call, you may pass AssociateCreatedArtifactRequest
24
50
  # data as a hash:
25
51
  #
@@ -472,6 +498,57 @@ module Aws::MigrationHub
472
498
  include Aws::Structure
473
499
  end
474
500
 
501
+ # @note When making an API call, you may pass ListApplicationStatesRequest
502
+ # data as a hash:
503
+ #
504
+ # {
505
+ # application_ids: ["ApplicationId"],
506
+ # next_token: "Token",
507
+ # max_results: 1,
508
+ # }
509
+ #
510
+ # @!attribute [rw] application_ids
511
+ # The configurationIds from the Application Discovery Service that
512
+ # uniquely identifies your applications.
513
+ # @return [Array<String>]
514
+ #
515
+ # @!attribute [rw] next_token
516
+ # If a `NextToken` was returned by a previous call, there are more
517
+ # results available. To retrieve the next page of results, make the
518
+ # call again using the returned token in `NextToken`.
519
+ # @return [String]
520
+ #
521
+ # @!attribute [rw] max_results
522
+ # Maximum number of results to be returned per page.
523
+ # @return [Integer]
524
+ #
525
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListApplicationStatesRequest AWS API Documentation
526
+ #
527
+ class ListApplicationStatesRequest < Struct.new(
528
+ :application_ids,
529
+ :next_token,
530
+ :max_results)
531
+ include Aws::Structure
532
+ end
533
+
534
+ # @!attribute [rw] application_state_list
535
+ # A list of Applications that exist in Application Discovery Service.
536
+ # @return [Array<Types::ApplicationState>]
537
+ #
538
+ # @!attribute [rw] next_token
539
+ # If a `NextToken` was returned by a previous call, there are more
540
+ # results available. To retrieve the next page of results, make the
541
+ # call again using the returned token in `NextToken`.
542
+ # @return [String]
543
+ #
544
+ # @see http://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListApplicationStatesResult AWS API Documentation
545
+ #
546
+ class ListApplicationStatesResult < Struct.new(
547
+ :application_state_list,
548
+ :next_token)
549
+ include Aws::Structure
550
+ end
551
+
475
552
  # @note When making an API call, you may pass ListCreatedArtifactsRequest
476
553
  # data as a hash:
477
554
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-migrationhub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.20.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: 2019-11-20 00:00:00.000000000 Z
11
+ date: 2020-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core