aws-sdk-drs 1.7.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,138 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::Drs
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Drs::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::Drs::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Drs::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :create_extended_source_server
60
+ Aws::Drs::Endpoints::CreateExtendedSourceServer.build(context)
61
+ when :create_replication_configuration_template
62
+ Aws::Drs::Endpoints::CreateReplicationConfigurationTemplate.build(context)
63
+ when :delete_job
64
+ Aws::Drs::Endpoints::DeleteJob.build(context)
65
+ when :delete_recovery_instance
66
+ Aws::Drs::Endpoints::DeleteRecoveryInstance.build(context)
67
+ when :delete_replication_configuration_template
68
+ Aws::Drs::Endpoints::DeleteReplicationConfigurationTemplate.build(context)
69
+ when :delete_source_server
70
+ Aws::Drs::Endpoints::DeleteSourceServer.build(context)
71
+ when :describe_job_log_items
72
+ Aws::Drs::Endpoints::DescribeJobLogItems.build(context)
73
+ when :describe_jobs
74
+ Aws::Drs::Endpoints::DescribeJobs.build(context)
75
+ when :describe_recovery_instances
76
+ Aws::Drs::Endpoints::DescribeRecoveryInstances.build(context)
77
+ when :describe_recovery_snapshots
78
+ Aws::Drs::Endpoints::DescribeRecoverySnapshots.build(context)
79
+ when :describe_replication_configuration_templates
80
+ Aws::Drs::Endpoints::DescribeReplicationConfigurationTemplates.build(context)
81
+ when :describe_source_servers
82
+ Aws::Drs::Endpoints::DescribeSourceServers.build(context)
83
+ when :disconnect_recovery_instance
84
+ Aws::Drs::Endpoints::DisconnectRecoveryInstance.build(context)
85
+ when :disconnect_source_server
86
+ Aws::Drs::Endpoints::DisconnectSourceServer.build(context)
87
+ when :get_failback_replication_configuration
88
+ Aws::Drs::Endpoints::GetFailbackReplicationConfiguration.build(context)
89
+ when :get_launch_configuration
90
+ Aws::Drs::Endpoints::GetLaunchConfiguration.build(context)
91
+ when :get_replication_configuration
92
+ Aws::Drs::Endpoints::GetReplicationConfiguration.build(context)
93
+ when :initialize_service
94
+ Aws::Drs::Endpoints::InitializeService.build(context)
95
+ when :list_extensible_source_servers
96
+ Aws::Drs::Endpoints::ListExtensibleSourceServers.build(context)
97
+ when :list_staging_accounts
98
+ Aws::Drs::Endpoints::ListStagingAccounts.build(context)
99
+ when :list_tags_for_resource
100
+ Aws::Drs::Endpoints::ListTagsForResource.build(context)
101
+ when :retry_data_replication
102
+ Aws::Drs::Endpoints::RetryDataReplication.build(context)
103
+ when :reverse_replication
104
+ Aws::Drs::Endpoints::ReverseReplication.build(context)
105
+ when :start_failback_launch
106
+ Aws::Drs::Endpoints::StartFailbackLaunch.build(context)
107
+ when :start_recovery
108
+ Aws::Drs::Endpoints::StartRecovery.build(context)
109
+ when :start_replication
110
+ Aws::Drs::Endpoints::StartReplication.build(context)
111
+ when :stop_failback
112
+ Aws::Drs::Endpoints::StopFailback.build(context)
113
+ when :stop_replication
114
+ Aws::Drs::Endpoints::StopReplication.build(context)
115
+ when :tag_resource
116
+ Aws::Drs::Endpoints::TagResource.build(context)
117
+ when :terminate_recovery_instances
118
+ Aws::Drs::Endpoints::TerminateRecoveryInstances.build(context)
119
+ when :untag_resource
120
+ Aws::Drs::Endpoints::UntagResource.build(context)
121
+ when :update_failback_replication_configuration
122
+ Aws::Drs::Endpoints::UpdateFailbackReplicationConfiguration.build(context)
123
+ when :update_launch_configuration
124
+ Aws::Drs::Endpoints::UpdateLaunchConfiguration.build(context)
125
+ when :update_replication_configuration
126
+ Aws::Drs::Endpoints::UpdateReplicationConfiguration.build(context)
127
+ when :update_replication_configuration_template
128
+ Aws::Drs::Endpoints::UpdateReplicationConfigurationTemplate.build(context)
129
+ end
130
+ end
131
+ end
132
+
133
+ def add_handlers(handlers, _config)
134
+ handlers.add(Handler, step: :build, priority: 75)
135
+ end
136
+ end
137
+ end
138
+ end
@@ -1676,6 +1676,11 @@ module Aws::Drs
1676
1676
  # The ID of the Job that created the Recovery Instance.
1677
1677
  # @return [String]
1678
1678
  #
1679
+ # @!attribute [rw] origin_environment
1680
+ # Environment (On Premises / AWS) of the instance that the recovery
1681
+ # instance originated from.
1682
+ # @return [String]
1683
+ #
1679
1684
  # @!attribute [rw] point_in_time_snapshot_date_time
1680
1685
  # The date and time of the Point in Time (PIT) snapshot that this
1681
1686
  # Recovery Instance was launched from.
@@ -1707,6 +1712,7 @@ module Aws::Drs
1707
1712
  :failback,
1708
1713
  :is_drill,
1709
1714
  :job_id,
1715
+ :origin_environment,
1710
1716
  :point_in_time_snapshot_date_time,
1711
1717
  :recovery_instance_id,
1712
1718
  :recovery_instance_properties,
@@ -1904,6 +1910,11 @@ module Aws::Drs
1904
1910
  # The Job ID of the last failback log for this Recovery Instance.
1905
1911
  # @return [String]
1906
1912
  #
1913
+ # @!attribute [rw] failback_launch_type
1914
+ # The launch type (Recovery / Drill) of the last launch for the
1915
+ # failback replication of this recovery instance.
1916
+ # @return [String]
1917
+ #
1907
1918
  # @!attribute [rw] failback_to_original_server
1908
1919
  # Whether we are failing back to the original Source Server for this
1909
1920
  # Recovery Instance.
@@ -1927,6 +1938,7 @@ module Aws::Drs
1927
1938
  :failback_client_last_seen_by_service_date_time,
1928
1939
  :failback_initiation_time,
1929
1940
  :failback_job_id,
1941
+ :failback_launch_type,
1930
1942
  :failback_to_original_server,
1931
1943
  :first_byte_date_time,
1932
1944
  :state)
@@ -2134,8 +2146,9 @@ module Aws::Drs
2134
2146
  # @return [Boolean]
2135
2147
  #
2136
2148
  # @!attribute [rw] optimized_staging_disk_type
2137
- # The Staging Disk EBS volume type to be used during replication when
2138
- # `stagingDiskType` is set to Auto. This is a read-only field.
2149
+ # When `stagingDiskType` is set to Auto, this field shows the current
2150
+ # staging disk EBS volume type as it is constantly updated by the
2151
+ # service. This is a read-only field.
2139
2152
  # @return [String]
2140
2153
  #
2141
2154
  # @!attribute [rw] staging_disk_type
@@ -2301,6 +2314,38 @@ module Aws::Drs
2301
2314
  include Aws::Structure
2302
2315
  end
2303
2316
 
2317
+ # @note When making an API call, you may pass ReverseReplicationRequest
2318
+ # data as a hash:
2319
+ #
2320
+ # {
2321
+ # recovery_instance_id: "RecoveryInstanceID", # required
2322
+ # }
2323
+ #
2324
+ # @!attribute [rw] recovery_instance_id
2325
+ # The ID of the Recovery Instance that we want to reverse the
2326
+ # replication for.
2327
+ # @return [String]
2328
+ #
2329
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/ReverseReplicationRequest AWS API Documentation
2330
+ #
2331
+ class ReverseReplicationRequest < Struct.new(
2332
+ :recovery_instance_id)
2333
+ SENSITIVE = []
2334
+ include Aws::Structure
2335
+ end
2336
+
2337
+ # @!attribute [rw] reversed_direction_source_server_arn
2338
+ # ARN of created SourceServer.
2339
+ # @return [String]
2340
+ #
2341
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/ReverseReplicationResponse AWS API Documentation
2342
+ #
2343
+ class ReverseReplicationResponse < Struct.new(
2344
+ :reversed_direction_source_server_arn)
2345
+ SENSITIVE = []
2346
+ include Aws::Structure
2347
+ end
2348
+
2304
2349
  # The request could not be completed because its exceeded the service
2305
2350
  # quota.
2306
2351
  #
@@ -2339,6 +2384,31 @@ module Aws::Drs
2339
2384
  include Aws::Structure
2340
2385
  end
2341
2386
 
2387
+ # Properties of the cloud environment where this Source Server
2388
+ # originated from.
2389
+ #
2390
+ # @!attribute [rw] origin_account_id
2391
+ # AWS Account ID for an EC2-originated Source Server.
2392
+ # @return [String]
2393
+ #
2394
+ # @!attribute [rw] origin_availability_zone
2395
+ # AWS Availability Zone for an EC2-originated Source Server.
2396
+ # @return [String]
2397
+ #
2398
+ # @!attribute [rw] origin_region
2399
+ # AWS Region for an EC2-originated Source Server.
2400
+ # @return [String]
2401
+ #
2402
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/SourceCloudProperties AWS API Documentation
2403
+ #
2404
+ class SourceCloudProperties < Struct.new(
2405
+ :origin_account_id,
2406
+ :origin_availability_zone,
2407
+ :origin_region)
2408
+ SENSITIVE = []
2409
+ include Aws::Structure
2410
+ end
2411
+
2342
2412
  # Properties of the Source Server machine.
2343
2413
  #
2344
2414
  # @!attribute [rw] cpus
@@ -2409,6 +2479,20 @@ module Aws::Drs
2409
2479
  # The ID of the Recovery Instance associated with this Source Server.
2410
2480
  # @return [String]
2411
2481
  #
2482
+ # @!attribute [rw] replication_direction
2483
+ # Replication direction of the Source Server.
2484
+ # @return [String]
2485
+ #
2486
+ # @!attribute [rw] reversed_direction_source_server_arn
2487
+ # For EC2-originated Source Servers which have been failed over and
2488
+ # then failed back, this value will mean the ARN of the Source Server
2489
+ # on the opposite replication direction.
2490
+ # @return [String]
2491
+ #
2492
+ # @!attribute [rw] source_cloud_properties
2493
+ # Source cloud properties of the Source Server.
2494
+ # @return [Types::SourceCloudProperties]
2495
+ #
2412
2496
  # @!attribute [rw] source_properties
2413
2497
  # The source properties of the Source Server.
2414
2498
  # @return [Types::SourceProperties]
@@ -2433,6 +2517,9 @@ module Aws::Drs
2433
2517
  :last_launch_result,
2434
2518
  :life_cycle,
2435
2519
  :recovery_instance_id,
2520
+ :replication_direction,
2521
+ :reversed_direction_source_server_arn,
2522
+ :source_cloud_properties,
2436
2523
  :source_properties,
2437
2524
  :source_server_id,
2438
2525
  :staging_area,
@@ -2625,6 +2712,37 @@ module Aws::Drs
2625
2712
  include Aws::Structure
2626
2713
  end
2627
2714
 
2715
+ # @note When making an API call, you may pass StartReplicationRequest
2716
+ # data as a hash:
2717
+ #
2718
+ # {
2719
+ # source_server_id: "SourceServerID", # required
2720
+ # }
2721
+ #
2722
+ # @!attribute [rw] source_server_id
2723
+ # The ID of the Source Server to start replication for.
2724
+ # @return [String]
2725
+ #
2726
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/StartReplicationRequest AWS API Documentation
2727
+ #
2728
+ class StartReplicationRequest < Struct.new(
2729
+ :source_server_id)
2730
+ SENSITIVE = []
2731
+ include Aws::Structure
2732
+ end
2733
+
2734
+ # @!attribute [rw] source_server
2735
+ # The Source Server that this action was targeted on.
2736
+ # @return [Types::SourceServer]
2737
+ #
2738
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/StartReplicationResponse AWS API Documentation
2739
+ #
2740
+ class StartReplicationResponse < Struct.new(
2741
+ :source_server)
2742
+ SENSITIVE = []
2743
+ include Aws::Structure
2744
+ end
2745
+
2628
2746
  # @note When making an API call, you may pass StopFailbackRequest
2629
2747
  # data as a hash:
2630
2748
  #
@@ -2644,6 +2762,37 @@ module Aws::Drs
2644
2762
  include Aws::Structure
2645
2763
  end
2646
2764
 
2765
+ # @note When making an API call, you may pass StopReplicationRequest
2766
+ # data as a hash:
2767
+ #
2768
+ # {
2769
+ # source_server_id: "SourceServerID", # required
2770
+ # }
2771
+ #
2772
+ # @!attribute [rw] source_server_id
2773
+ # The ID of the Source Server to stop replication for.
2774
+ # @return [String]
2775
+ #
2776
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/StopReplicationRequest AWS API Documentation
2777
+ #
2778
+ class StopReplicationRequest < Struct.new(
2779
+ :source_server_id)
2780
+ SENSITIVE = []
2781
+ include Aws::Structure
2782
+ end
2783
+
2784
+ # @!attribute [rw] source_server
2785
+ # The Source Server that this action was targeted on.
2786
+ # @return [Types::SourceServer]
2787
+ #
2788
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/StopReplicationResponse AWS API Documentation
2789
+ #
2790
+ class StopReplicationResponse < Struct.new(
2791
+ :source_server)
2792
+ SENSITIVE = []
2793
+ include Aws::Structure
2794
+ end
2795
+
2647
2796
  # @note When making an API call, you may pass TagResourceRequest
2648
2797
  # data as a hash:
2649
2798
  #
data/lib/aws-sdk-drs.rb CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-drs/types'
15
15
  require_relative 'aws-sdk-drs/client_api'
16
+ require_relative 'aws-sdk-drs/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-drs/client'
17
18
  require_relative 'aws-sdk-drs/errors'
18
19
  require_relative 'aws-sdk-drs/resource'
20
+ require_relative 'aws-sdk-drs/endpoint_parameters'
21
+ require_relative 'aws-sdk-drs/endpoint_provider'
22
+ require_relative 'aws-sdk-drs/endpoints'
19
23
  require_relative 'aws-sdk-drs/customizations'
20
24
 
21
25
  # This module provides support for Elastic Disaster Recovery Service. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-drs/customizations'
48
52
  # @!group service
49
53
  module Aws::Drs
50
54
 
51
- GEM_VERSION = '1.7.0'
55
+ GEM_VERSION = '1.9.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-drs
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: 2022-09-13 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-drs/client.rb
60
60
  - lib/aws-sdk-drs/client_api.rb
61
61
  - lib/aws-sdk-drs/customizations.rb
62
+ - lib/aws-sdk-drs/endpoint_parameters.rb
63
+ - lib/aws-sdk-drs/endpoint_provider.rb
64
+ - lib/aws-sdk-drs/endpoints.rb
62
65
  - lib/aws-sdk-drs/errors.rb
66
+ - lib/aws-sdk-drs/plugins/endpoints.rb
63
67
  - lib/aws-sdk-drs/resource.rb
64
68
  - lib/aws-sdk-drs/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby