You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::OpsWorksCM::Types::RestoreServerRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing RestoreServerRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  backup_id: "BackupId", # required
  server_name: "ServerName", # required
  instance_type: "String",
  key_pair: "KeyPair",
}

Instance Attribute Summary collapse

Instance Attribute Details

#backup_idString

The ID of the backup that you want to use to restore a server.

Returns:

  • (String)

    The ID of the backup that you want to use to restore a server.

#instance_typeString

The type of instance to restore. Valid values must be specified in the following format: ^([cm][34]|t2).* For example, m5.large. Valid values are m5.large, r5.xlarge, and r5.2xlarge. If you do not specify this parameter, RestoreServer uses the instance type from the specified backup.

Returns:

  • (String)

    The type of instance to restore.

#key_pairString

The name of the key pair to set on the new EC2 instance. This can be helpful if the administrator no longer has the SSH key.

Returns:

  • (String)

    The name of the key pair to set on the new EC2 instance.

#server_nameString

The name of the server that you want to restore.

Returns:

  • (String)

    The name of the server that you want to restore.