StartSourceNetworkReplicationCommand

Starts replication for a Source Network. This action would make the Source Network protected.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { DrsClient, StartSourceNetworkReplicationCommand } from "@aws-sdk/client-drs"; // ES Modules import
// const { DrsClient, StartSourceNetworkReplicationCommand } = require("@aws-sdk/client-drs"); // CommonJS import
const client = new DrsClient(config);
const input = { // StartSourceNetworkReplicationRequest
  sourceNetworkID: "STRING_VALUE", // required
};
const command = new StartSourceNetworkReplicationCommand(input);
const response = await client.send(command);
// { // StartSourceNetworkReplicationResponse
//   sourceNetwork: { // SourceNetwork
//     sourceNetworkID: "STRING_VALUE",
//     sourceVpcID: "STRING_VALUE",
//     arn: "STRING_VALUE",
//     tags: { // TagsMap
//       "<keys>": "STRING_VALUE",
//     },
//     replicationStatus: "STRING_VALUE",
//     replicationStatusDetails: "STRING_VALUE",
//     cfnStackName: "STRING_VALUE",
//     sourceRegion: "STRING_VALUE",
//     sourceAccountID: "STRING_VALUE",
//     lastRecovery: { // RecoveryLifeCycle
//       apiCallDateTime: new Date("TIMESTAMP"),
//       jobID: "STRING_VALUE",
//       lastRecoveryResult: "STRING_VALUE",
//     },
//     launchedVpcID: "STRING_VALUE",
//   },
// };

StartSourceNetworkReplicationCommand Input

Parameter
Type
Description
sourceNetworkID
Required
string | undefined

ID of the Source Network to replicate.

StartSourceNetworkReplicationCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
sourceNetwork
SourceNetwork | undefined

Source Network which was requested for replication.

Throws

Name
Fault
Details
ConflictException
client

The request could not be completed due to a conflict with the current state of the target resource.

InternalServerException
server

The request processing has failed because of an unknown error, exception or failure.

ResourceNotFoundException
client

The resource for this operation was not found.

ThrottlingException
client

The request was denied due to request throttling.

UninitializedAccountException
client

The account performing the request has not been initialized.

DrsServiceException
Base exception class for all service exceptions from Drs service.