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 |
Creates a backup gateway. After you create a gateway, you can associate
it with a server using the AssociateGatewayToServer
operation.
Synopsis
- data CreateGateway = CreateGateway' {
- tags :: Maybe [Tag]
- activationKey :: Text
- gatewayDisplayName :: Text
- gatewayType :: GatewayType
- newCreateGateway :: Text -> Text -> GatewayType -> CreateGateway
- createGateway_tags :: Lens' CreateGateway (Maybe [Tag])
- createGateway_activationKey :: Lens' CreateGateway Text
- createGateway_gatewayDisplayName :: Lens' CreateGateway Text
- createGateway_gatewayType :: Lens' CreateGateway GatewayType
- data CreateGatewayResponse = CreateGatewayResponse' {
- gatewayArn :: Maybe Text
- httpStatus :: Int
- newCreateGatewayResponse :: Int -> CreateGatewayResponse
- createGatewayResponse_gatewayArn :: Lens' CreateGatewayResponse (Maybe Text)
- createGatewayResponse_httpStatus :: Lens' CreateGatewayResponse Int
Creating a Request
data CreateGateway Source #
See: newCreateGateway
smart constructor.
CreateGateway' | |
|
Instances
:: Text | |
-> Text | |
-> GatewayType | |
-> CreateGateway |
Create a value of CreateGateway
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:
$sel:tags:CreateGateway'
, createGateway_tags
- A list of up to 50 tags to assign to the gateway. Each tag is a
key-value pair.
$sel:activationKey:CreateGateway'
, createGateway_activationKey
- The activation key of the created gateway.
CreateGateway
, createGateway_gatewayDisplayName
- The display name of the created gateway.
CreateGateway
, createGateway_gatewayType
- The type of created gateway.
Request Lenses
createGateway_tags :: Lens' CreateGateway (Maybe [Tag]) Source #
A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair.
createGateway_activationKey :: Lens' CreateGateway Text Source #
The activation key of the created gateway.
createGateway_gatewayDisplayName :: Lens' CreateGateway Text Source #
The display name of the created gateway.
createGateway_gatewayType :: Lens' CreateGateway GatewayType Source #
The type of created gateway.
Destructuring the Response
data CreateGatewayResponse Source #
See: newCreateGatewayResponse
smart constructor.
CreateGatewayResponse' | |
|
Instances
newCreateGatewayResponse Source #
Create a value of CreateGatewayResponse
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:
CreateGatewayResponse
, createGatewayResponse_gatewayArn
- The Amazon Resource Name (ARN) of the gateway you create.
$sel:httpStatus:CreateGatewayResponse'
, createGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
createGatewayResponse_gatewayArn :: Lens' CreateGatewayResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the gateway you create.
createGatewayResponse_httpStatus :: Lens' CreateGatewayResponse Int Source #
The response's http status code.