Class: Aws::Mgn::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Mgn::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb
Overview
An API client for Mgn. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::Mgn::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#change_server_life_cycle_state(params = {}) ⇒ Types::SourceServer
Allows the user to set the SourceServer.LifeCycle.state property for specific Source Server IDs to one of the following: READY_FOR_TEST or READY_FOR_CUTOVER.
-
#create_replication_configuration_template(params = {}) ⇒ Types::ReplicationConfigurationTemplate
Creates a new ReplicationConfigurationTemplate.
-
#delete_job(params = {}) ⇒ Struct
Deletes a single Job by ID.
-
#delete_replication_configuration_template(params = {}) ⇒ Struct
Deletes a single Replication Configuration Template by ID.
-
#delete_source_server(params = {}) ⇒ Struct
Deletes a single source server by ID.
-
#delete_vcenter_client(params = {}) ⇒ Struct
Deletes a given vCenter client by ID.
-
#describe_job_log_items(params = {}) ⇒ Types::DescribeJobLogItemsResponse
Retrieves detailed job log items with paging.
-
#describe_jobs(params = {}) ⇒ Types::DescribeJobsResponse
Returns a list of Jobs.
-
#describe_replication_configuration_templates(params = {}) ⇒ Types::DescribeReplicationConfigurationTemplatesResponse
Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.
-
#describe_source_servers(params = {}) ⇒ Types::DescribeSourceServersResponse
Retrieves all SourceServers or multiple SourceServers by ID.
-
#describe_vcenter_clients(params = {}) ⇒ Types::DescribeVcenterClientsResponse
Returns a list of the installed vCenter clients.
-
#disconnect_from_service(params = {}) ⇒ Types::SourceServer
Disconnects specific Source Servers from Application Migration Service.
-
#finalize_cutover(params = {}) ⇒ Types::SourceServer
Finalizes the cutover immediately for specific Source Servers.
-
#get_launch_configuration(params = {}) ⇒ Types::LaunchConfiguration
Lists all LaunchConfigurations available, filtered by Source Server IDs.
-
#get_replication_configuration(params = {}) ⇒ Types::ReplicationConfiguration
Lists all ReplicationConfigurations, filtered by Source Server ID.
-
#initialize_service(params = {}) ⇒ Struct
Initialize Application Migration Service.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List all tags for your Application Migration Service resources.
-
#mark_as_archived(params = {}) ⇒ Types::SourceServer
Archives specific Source Servers by setting the SourceServer.isArchived property to true for specified SourceServers by ID.
-
#retry_data_replication(params = {}) ⇒ Types::SourceServer
Causes the data replication initiation sequence to begin immediately upon next Handshake for specified SourceServer IDs, regardless of when the previous initiation started.
-
#start_cutover(params = {}) ⇒ Types::StartCutoverResponse
Launches a Cutover Instance for specific Source Servers.
-
#start_replication(params = {}) ⇒ Types::SourceServer
Starts replication for SNAPSHOT_SHIPPING agents.
-
#start_test(params = {}) ⇒ Types::StartTestResponse
Launches a Test Instance for specific Source Servers.
-
#tag_resource(params = {}) ⇒ Struct
Adds or overwrites only the specified tags for the specified Application Migration Service resource or resources.
-
#terminate_target_instances(params = {}) ⇒ Types::TerminateTargetInstancesResponse
Starts a job that terminates specific launched EC2 Test and Cutover instances.
-
#untag_resource(params = {}) ⇒ Struct
Deletes the specified set of tags from the specified set of Application Migration Service resources.
-
#update_launch_configuration(params = {}) ⇒ Types::LaunchConfiguration
Updates multiple LaunchConfigurations by Source Server ID.
-
#update_replication_configuration(params = {}) ⇒ Types::ReplicationConfiguration
Allows you to update multiple ReplicationConfigurations by Source Server ID.
-
#update_replication_configuration_template(params = {}) ⇒ Types::ReplicationConfigurationTemplate
Updates multiple ReplicationConfigurationTemplates by ID.
-
#update_source_server_replication_type(params = {}) ⇒ Types::SourceServer
Allows you to change between the AGENT_BASED replication type and the SNAPSHOT_SHIPPING replication type.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
348 349 350 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 348 def initialize(*args) super end |
Instance Method Details
#change_server_life_cycle_state(params = {}) ⇒ Types::SourceServer
Allows the user to set the SourceServer.LifeCycle.state property for specific Source Server IDs to one of the following: READY_FOR_TEST or READY_FOR_CUTOVER. This command only works if the Source Server is already launchable (dataReplicationInfo.lagDuration is not null.)
455 456 457 458 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 455 def change_server_life_cycle_state(params = {}, = {}) req = build_request(:change_server_life_cycle_state, params) req.send_request() end |
#create_replication_configuration_template(params = {}) ⇒ Types::ReplicationConfigurationTemplate
Creates a new ReplicationConfigurationTemplate.
579 580 581 582 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 579 def create_replication_configuration_template(params = {}, = {}) req = build_request(:create_replication_configuration_template, params) req.send_request() end |
#delete_job(params = {}) ⇒ Struct
Deletes a single Job by ID.
601 602 603 604 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 601 def delete_job(params = {}, = {}) req = build_request(:delete_job, params) req.send_request() end |
#delete_replication_configuration_template(params = {}) ⇒ Struct
Deletes a single Replication Configuration Template by ID
624 625 626 627 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 624 def delete_replication_configuration_template(params = {}, = {}) req = build_request(:delete_replication_configuration_template, params) req.send_request() end |
#delete_source_server(params = {}) ⇒ Struct
Deletes a single source server by ID.
646 647 648 649 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 646 def delete_source_server(params = {}, = {}) req = build_request(:delete_source_server, params) req.send_request() end |
#delete_vcenter_client(params = {}) ⇒ Struct
Deletes a given vCenter client by ID.
668 669 670 671 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 668 def delete_vcenter_client(params = {}, = {}) req = build_request(:delete_vcenter_client, params) req.send_request() end |
#describe_job_log_items(params = {}) ⇒ Types::DescribeJobLogItemsResponse
Retrieves detailed job log items with paging.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
714 715 716 717 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 714 def describe_job_log_items(params = {}, = {}) req = build_request(:describe_job_log_items, params) req.send_request() end |
#describe_jobs(params = {}) ⇒ Types::DescribeJobsResponse
Returns a list of Jobs. Use the JobsID and fromDate and toData filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are normally created by the StartTest, StartCutover, and TerminateTargetInstances APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to Support and only used in response to relevant support tickets.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
776 777 778 779 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 776 def describe_jobs(params = {}, = {}) req = build_request(:describe_jobs, params) req.send_request() end |
#describe_replication_configuration_templates(params = {}) ⇒ Types::DescribeReplicationConfigurationTemplatesResponse
Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
836 837 838 839 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 836 def describe_replication_configuration_templates(params = {}, = {}) req = build_request(:describe_replication_configuration_templates, params) req.send_request() end |
#describe_source_servers(params = {}) ⇒ Types::DescribeSourceServersResponse
Retrieves all SourceServers or multiple SourceServers by ID.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
941 942 943 944 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 941 def describe_source_servers(params = {}, = {}) req = build_request(:describe_source_servers, params) req.send_request() end |
#describe_vcenter_clients(params = {}) ⇒ Types::DescribeVcenterClientsResponse
Returns a list of the installed vCenter clients.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
987 988 989 990 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 987 def describe_vcenter_clients(params = {}, = {}) req = build_request(:describe_vcenter_clients, params) req.send_request() end |
#disconnect_from_service(params = {}) ⇒ Types::SourceServer
Disconnects specific Source Servers from Application Migration Service. Data replication is stopped immediately. All AWS resources created by Application Migration Service for enabling the replication of these source servers will be terminated / deleted within 90 minutes. Launched Test or Cutover instances will NOT be terminated. If the agent on the source server has not been prevented from communicating with the Application Migration Service service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.
1096 1097 1098 1099 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1096 def disconnect_from_service(params = {}, = {}) req = build_request(:disconnect_from_service, params) req.send_request() end |
#finalize_cutover(params = {}) ⇒ Types::SourceServer
Finalizes the cutover immediately for specific Source Servers. All AWS resources created by Application Migration Service for enabling the replication of these source servers will be terminated / deleted within 90 minutes. Launched Test or Cutover instances will NOT be terminated. The AWS Replication Agent will receive a command to uninstall itself (within 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be changed to DISCONNECTED; The SourceServer.lifeCycle.state will be changed to CUTOVER; The totalStorageBytes property fo each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.
1204 1205 1206 1207 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1204 def finalize_cutover(params = {}, = {}) req = build_request(:finalize_cutover, params) req.send_request() end |
#get_launch_configuration(params = {}) ⇒ Types::LaunchConfiguration
Lists all LaunchConfigurations available, filtered by Source Server IDs.
1249 1250 1251 1252 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1249 def get_launch_configuration(params = {}, = {}) req = build_request(:get_launch_configuration, params) req.send_request() end |
#get_replication_configuration(params = {}) ⇒ Types::ReplicationConfiguration
Lists all ReplicationConfigurations, filtered by Source Server ID.
1312 1313 1314 1315 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1312 def get_replication_configuration(params = {}, = {}) req = build_request(:get_replication_configuration, params) req.send_request() end |
#initialize_service(params = {}) ⇒ Struct
Initialize Application Migration Service.
1325 1326 1327 1328 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1325 def initialize_service(params = {}, = {}) req = build_request(:initialize_service, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List all tags for your Application Migration Service resources.
1354 1355 1356 1357 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1354 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#mark_as_archived(params = {}) ⇒ Types::SourceServer
Archives specific Source Servers by setting the SourceServer.isArchived property to true for specified SourceServers by ID. This command only works for SourceServers with a lifecycle. state which equals DISCONNECTED or CUTOVER.
1453 1454 1455 1456 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1453 def mark_as_archived(params = {}, = {}) req = build_request(:mark_as_archived, params) req.send_request() end |
#retry_data_replication(params = {}) ⇒ Types::SourceServer
Causes the data replication initiation sequence to begin immediately upon next Handshake for specified SourceServer IDs, regardless of when the previous initiation started. This command will not work if the SourceServer is not stalled or is in a DISCONNECTED or STOPPED state.
1552 1553 1554 1555 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1552 def retry_data_replication(params = {}, = {}) req = build_request(:retry_data_replication, params) req.send_request() end |
#start_cutover(params = {}) ⇒ Types::StartCutoverResponse
Launches a Cutover Instance for specific Source Servers. This command starts a LAUNCH job whose initiatedBy property is StartCutover and changes the SourceServer.lifeCycle.state property to CUTTING_OVER.
1599 1600 1601 1602 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1599 def start_cutover(params = {}, = {}) req = build_request(:start_cutover, params) req.send_request() end |
#start_replication(params = {}) ⇒ Types::SourceServer
Starts replication for SNAPSHOT_SHIPPING agents.
1695 1696 1697 1698 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1695 def start_replication(params = {}, = {}) req = build_request(:start_replication, params) req.send_request() end |
#start_test(params = {}) ⇒ Types::StartTestResponse
Launches a Test Instance for specific Source Servers. This command starts a LAUNCH job whose initiatedBy property is StartTest and changes the SourceServer.lifeCycle.state property to TESTING.
1742 1743 1744 1745 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1742 def start_test(params = {}, = {}) req = build_request(:start_test, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds or overwrites only the specified tags for the specified Application Migration Service resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value.
1774 1775 1776 1777 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1774 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#terminate_target_instances(params = {}) ⇒ Types::TerminateTargetInstancesResponse
Starts a job that terminates specific launched EC2 Test and Cutover instances. This command will not work for any Source Server with a lifecycle.state of TESTING, CUTTING_OVER, or CUTOVER.
1821 1822 1823 1824 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1821 def terminate_target_instances(params = {}, = {}) req = build_request(:terminate_target_instances, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Deletes the specified set of tags from the specified set of Application Migration Service resources.
1848 1849 1850 1851 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1848 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_launch_configuration(params = {}) ⇒ Types::LaunchConfiguration
Updates multiple LaunchConfigurations by Source Server ID.
1922 1923 1924 1925 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 1922 def update_launch_configuration(params = {}, = {}) req = build_request(:update_launch_configuration, params) req.send_request() end |
#update_replication_configuration(params = {}) ⇒ Types::ReplicationConfiguration
Allows you to update multiple ReplicationConfigurations by Source Server ID.
2057 2058 2059 2060 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 2057 def update_replication_configuration(params = {}, = {}) req = build_request(:update_replication_configuration, params) req.send_request() end |
#update_replication_configuration_template(params = {}) ⇒ Types::ReplicationConfigurationTemplate
Updates multiple ReplicationConfigurationTemplates by ID.
2178 2179 2180 2181 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 2178 def update_replication_configuration_template(params = {}, = {}) req = build_request(:update_replication_configuration_template, params) req.send_request() end |
#update_source_server_replication_type(params = {}) ⇒ Types::SourceServer
Allows you to change between the AGENT_BASED replication type and the SNAPSHOT_SHIPPING replication type.
2279 2280 2281 2282 |
# File 'gems/aws-sdk-mgn/lib/aws-sdk-mgn/client.rb', line 2279 def update_source_server_replication_type(params = {}, = {}) req = build_request(:update_source_server_replication_type, params) req.send_request() end |