| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.BackupGateway.AssociateGatewayToServer
Description
Associates a backup gateway with your server. After you complete the association process, you can back up and restore your VMs through the gateway.
Synopsis
- data AssociateGatewayToServer = AssociateGatewayToServer' {
- gatewayArn :: Text
- serverArn :: Text
- newAssociateGatewayToServer :: Text -> Text -> AssociateGatewayToServer
- associateGatewayToServer_gatewayArn :: Lens' AssociateGatewayToServer Text
- associateGatewayToServer_serverArn :: Lens' AssociateGatewayToServer Text
- data AssociateGatewayToServerResponse = AssociateGatewayToServerResponse' {
- gatewayArn :: Maybe Text
- httpStatus :: Int
- newAssociateGatewayToServerResponse :: Int -> AssociateGatewayToServerResponse
- associateGatewayToServerResponse_gatewayArn :: Lens' AssociateGatewayToServerResponse (Maybe Text)
- associateGatewayToServerResponse_httpStatus :: Lens' AssociateGatewayToServerResponse Int
Creating a Request
data AssociateGatewayToServer Source #
See: newAssociateGatewayToServer smart constructor.
Constructors
| AssociateGatewayToServer' | |
Fields
| |
Instances
newAssociateGatewayToServer Source #
Arguments
| :: Text | |
| -> Text | |
| -> AssociateGatewayToServer |
Create a value of AssociateGatewayToServer with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
AssociateGatewayToServer, associateGatewayToServer_gatewayArn - The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
operation to return a list of gateways for your account and Amazon Web
Services Region.
$sel:serverArn:AssociateGatewayToServer', associateGatewayToServer_serverArn - The Amazon Resource Name (ARN) of the server that hosts your virtual
machines.
Request Lenses
associateGatewayToServer_gatewayArn :: Lens' AssociateGatewayToServer Text Source #
The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
operation to return a list of gateways for your account and Amazon Web
Services Region.
associateGatewayToServer_serverArn :: Lens' AssociateGatewayToServer Text Source #
The Amazon Resource Name (ARN) of the server that hosts your virtual machines.
Destructuring the Response
data AssociateGatewayToServerResponse Source #
See: newAssociateGatewayToServerResponse smart constructor.
Constructors
| AssociateGatewayToServerResponse' | |
Fields
| |
Instances
newAssociateGatewayToServerResponse Source #
Create a value of AssociateGatewayToServerResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
AssociateGatewayToServer, associateGatewayToServerResponse_gatewayArn - The Amazon Resource Name (ARN) of a gateway.
$sel:httpStatus:AssociateGatewayToServerResponse', associateGatewayToServerResponse_httpStatus - The response's http status code.
Response Lenses
associateGatewayToServerResponse_gatewayArn :: Lens' AssociateGatewayToServerResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of a gateway.
associateGatewayToServerResponse_httpStatus :: Lens' AssociateGatewayToServerResponse Int Source #
The response's http status code.