Method: Aws::Drs::Client#stop_source_network_replication

Defined in:
lib/aws-sdk-drs/client.rb

#stop_source_network_replication(params = {}) ⇒ Types::StopSourceNetworkReplicationResponse

Stops replication for a Source Network. This action would make the Source Network unprotected.

Examples:

Request syntax with placeholder values


resp = client.stop_source_network_replication({
  source_network_id: "SourceNetworkID", # required
})

Response structure


resp.source_network.arn #=> String
resp.source_network.cfn_stack_name #=> String
resp.source_network.last_recovery.api_call_date_time #=> Time
resp.source_network.last_recovery.job_id #=> String
resp.source_network.last_recovery.last_recovery_result #=> String, one of "NOT_STARTED", "IN_PROGRESS", "SUCCESS", "FAIL", "PARTIAL_SUCCESS", "ASSOCIATE_SUCCESS", "ASSOCIATE_FAIL"
resp.source_network.launched_vpc_id #=> String
resp.source_network.replication_status #=> String, one of "STOPPED", "IN_PROGRESS", "PROTECTED", "ERROR"
resp.source_network.replication_status_details #=> String
resp.source_network. #=> String
resp.source_network.source_network_id #=> String
resp.source_network.source_region #=> String
resp.source_network.source_vpc_id #=> String
resp.source_network.tags #=> Hash
resp.source_network.tags["TagKey"] #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :source_network_id (required, String)

    ID of the Source Network to stop replication.

Returns:

See Also:



2919
2920
2921
2922
# File 'lib/aws-sdk-drs/client.rb', line 2919

def stop_source_network_replication(params = {}, options = {})
  req = build_request(:stop_source_network_replication, params)
  req.send_request(options)
end