Skip to content

Terminate Recovery Instances

drs_terminate_recovery_instances R Documentation

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

Description

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.

Usage

drs_terminate_recovery_instances(recoveryInstanceIDs)

Arguments

recoveryInstanceIDs

[required] The IDs of the Recovery Instances that should be terminated.

Value

A list with the following syntax:

list(
  job = list(
    arn = "string",
    creationDateTime = "string",
    endDateTime = "string",
    initiatedBy = "START_RECOVERY"|"START_DRILL"|"FAILBACK"|"DIAGNOSTIC"|"TERMINATE_RECOVERY_INSTANCES"|"TARGET_ACCOUNT"|"CREATE_NETWORK_RECOVERY"|"UPDATE_NETWORK_RECOVERY"|"ASSOCIATE_NETWORK_RECOVERY",
    jobID = "string",
    participatingResources = list(
      list(
        launchStatus = "PENDING"|"IN_PROGRESS"|"LAUNCHED"|"FAILED"|"TERMINATED",
        participatingResourceID = list(
          sourceNetworkID = "string"
        )
      )
    ),
    participatingServers = list(
      list(
        launchActionsStatus = list(
          runs = list(
            list(
              action = list(
                actionCode = "string",
                actionId = "string",
                actionVersion = "string",
                active = TRUE|FALSE,
                category = "MONITORING"|"VALIDATION"|"CONFIGURATION"|"SECURITY"|"OTHER",
                description = "string",
                name = "string",
                optional = TRUE|FALSE,
                order = 123,
                parameters = list(
                  list(
                    type = "SSM_STORE"|"DYNAMIC",
                    value = "string"
                  )
                ),
                type = "SSM_AUTOMATION"|"SSM_COMMAND"
              ),
              failureReason = "string",
              runId = "string",
              status = "IN_PROGRESS"|"SUCCEEDED"|"FAILED"
            )
          ),
          ssmAgentDiscoveryDatetime = "string"
        ),
        launchStatus = "PENDING"|"IN_PROGRESS"|"LAUNCHED"|"FAILED"|"TERMINATED",
        recoveryInstanceID = "string",
        sourceServerID = "string"
      )
    ),
    status = "PENDING"|"STARTED"|"COMPLETED",
    tags = list(
      "string"
    ),
    type = "LAUNCH"|"TERMINATE"|"CREATE_CONVERTED_SNAPSHOT"
  )
)

Request syntax

svc$terminate_recovery_instances(
  recoveryInstanceIDs = list(
    "string"
  )
)