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 |
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.
AssociateGatewayToServer' | |
|
Instances
newAssociateGatewayToServer Source #
:: 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.
AssociateGatewayToServerResponse' | |
|
Instances
Generic AssociateGatewayToServerResponse Source # | |
Read AssociateGatewayToServerResponse Source # | |
Show AssociateGatewayToServerResponse Source # | |
NFData AssociateGatewayToServerResponse Source # | |
Defined in Amazonka.BackupGateway.AssociateGatewayToServer rnf :: AssociateGatewayToServerResponse -> () # | |
Eq AssociateGatewayToServerResponse Source # | |
type Rep AssociateGatewayToServerResponse Source # | |
Defined in Amazonka.BackupGateway.AssociateGatewayToServer type Rep AssociateGatewayToServerResponse = D1 ('MetaData "AssociateGatewayToServerResponse" "Amazonka.BackupGateway.AssociateGatewayToServer" "amazonka-backup-gateway-2.0-Ee3gVOmXMeV2r3uv4sRO9" 'False) (C1 ('MetaCons "AssociateGatewayToServerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.