terminate_recovery_instances(**kwargs)¶Initiates a Job for terminating the EC2 resources associated with the specified Recovery Instances, and then will delete the Recovery Instances from the Elastic Disaster Recovery service.
See also: AWS API Documentation
Request Syntax
response = client.terminate_recovery_instances(
    recoveryInstanceIDs=[
        'string',
    ]
)
[REQUIRED]
The IDs of the Recovery Instances that should be terminated.
{
    'job': {
        'arn': 'string',
        'creationDateTime': 'string',
        'endDateTime': 'string',
        'initiatedBy': 'START_RECOVERY'|'START_DRILL'|'FAILBACK'|'DIAGNOSTIC'|'TERMINATE_RECOVERY_INSTANCES'|'TARGET_ACCOUNT',
        'jobID': 'string',
        'participatingServers': [
            {
                'launchStatus': 'PENDING'|'IN_PROGRESS'|'LAUNCHED'|'FAILED'|'TERMINATED',
                'recoveryInstanceID': 'string',
                'sourceServerID': 'string'
            },
        ],
        'status': 'PENDING'|'STARTED'|'COMPLETED',
        'tags': {
            'string': 'string'
        },
        'type': 'LAUNCH'|'TERMINATE'|'CREATE_CONVERTED_SNAPSHOT'
    }
}
Response Structure
The Job for terminating the Recovery Instances.
The ARN of a Job.
The date and time of when the Job was created.
The date and time of when the Job ended.
A string representing who initiated the Job.
The ID of the Job.
A list of servers that the Job is acting upon.
Represents a server participating in an asynchronous Job.
The launch status of a participating server.
The Recovery Instance ID of a participating server.
The Source Server ID of a participating server.
The status of the Job.
A list of tags associated with the Job.
The type of the Job.
Exceptions
drs.Client.exceptions.InternalServerExceptiondrs.Client.exceptions.ConflictExceptiondrs.Client.exceptions.ServiceQuotaExceededExceptiondrs.Client.exceptions.ThrottlingExceptiondrs.Client.exceptions.UninitializedAccountException