drs / Client / start_source_network_replication

start_source_network_replication#

drs.Client.start_source_network_replication(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.start_source_network_replication(
    sourceNetworkID='string'
)
Parameters:

sourceNetworkID (string) –

[REQUIRED]

ID of the Source Network to replicate.

Return type:

dict

Returns:

Response Syntax

{
    'sourceNetwork': {
        'arn': 'string',
        'cfnStackName': 'string',
        'lastRecovery': {
            'apiCallDateTime': datetime(2015, 1, 1),
            'jobID': 'string',
            'lastRecoveryResult': 'NOT_STARTED'|'IN_PROGRESS'|'SUCCESS'|'FAIL'|'PARTIAL_SUCCESS'|'ASSOCIATE_SUCCESS'|'ASSOCIATE_FAIL'
        },
        'launchedVpcID': 'string',
        'replicationStatus': 'STOPPED'|'IN_PROGRESS'|'PROTECTED'|'ERROR',
        'replicationStatusDetails': 'string',
        'sourceAccountID': 'string',
        'sourceNetworkID': 'string',
        'sourceRegion': 'string',
        'sourceVpcID': 'string',
        'tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • sourceNetwork (dict) –

      Source Network which was requested for replication.

      • arn (string) –

        The ARN of the Source Network.

      • cfnStackName (string) –

        CloudFormation stack name that was deployed for recovering the Source Network.

      • lastRecovery (dict) –

        An object containing information regarding the last recovery of the Source Network.

        • apiCallDateTime (datetime) –

          The date and time the last Source Network recovery was initiated.

        • jobID (string) –

          The ID of the Job that was used to last recover the Source Network.

        • lastRecoveryResult (string) –

          The status of the last recovery status of this Source Network.

      • launchedVpcID (string) –

        ID of the recovered VPC following Source Network recovery.

      • replicationStatus (string) –

        Status of Source Network Replication. Possible values: (a) STOPPED - Source Network is not replicating. (b) IN_PROGRESS - Source Network is being replicated. (c) PROTECTED - Source Network was replicated successfully and is being synchronized for changes. (d) ERROR - Source Network replication has failed

      • replicationStatusDetails (string) –

        Error details in case Source Network replication status is ERROR.

      • sourceAccountID (string) –

        Account ID containing the VPC protected by the Source Network.

      • sourceNetworkID (string) –

        Source Network ID.

      • sourceRegion (string) –

        Region containing the VPC protected by the Source Network.

      • sourceVpcID (string) –

        VPC ID protected by the Source Network.

      • tags (dict) –

        A list of tags associated with the Source Network.

        • (string) –

          • (string) –

Exceptions

  • drs.Client.exceptions.ResourceNotFoundException

  • drs.Client.exceptions.InternalServerException

  • drs.Client.exceptions.ConflictException

  • drs.Client.exceptions.ThrottlingException

  • drs.Client.exceptions.UninitializedAccountException