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 |
Checks the health of the service.
Synopsis
- data Ping = Ping' {
- newPing :: Ping
- data PingResponse = PingResponse' {
- status :: Maybe Text
- httpStatus :: Int
- newPingResponse :: Int -> PingResponse
- pingResponse_status :: Lens' PingResponse (Maybe Text)
- pingResponse_httpStatus :: Lens' PingResponse Int
Creating a Request
See: newPing
smart constructor.
Instances
ToHeaders Ping Source # | |
Defined in Amazonka.PrivateNetworks.Ping | |
ToPath Ping Source # | |
Defined in Amazonka.PrivateNetworks.Ping toPath :: Ping -> ByteString # | |
ToQuery Ping Source # | |
Defined in Amazonka.PrivateNetworks.Ping toQuery :: Ping -> QueryString # | |
AWSRequest Ping Source # | |
Defined in Amazonka.PrivateNetworks.Ping type AWSResponse Ping # request :: (Service -> Service) -> Ping -> Request Ping # response :: MonadResource m => (ByteStringLazy -> IO ByteStringLazy) -> Service -> Proxy Ping -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse Ping))) # | |
Generic Ping Source # | |
Read Ping Source # | |
Show Ping Source # | |
NFData Ping Source # | |
Defined in Amazonka.PrivateNetworks.Ping | |
Eq Ping Source # | |
Hashable Ping Source # | |
Defined in Amazonka.PrivateNetworks.Ping | |
type AWSResponse Ping Source # | |
Defined in Amazonka.PrivateNetworks.Ping | |
type Rep Ping Source # | |
Create a value of Ping
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data PingResponse Source #
See: newPingResponse
smart constructor.
PingResponse' | |
|
Instances
Create a value of PingResponse
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:
PingResponse
, pingResponse_status
- Information about the health of the service.
$sel:httpStatus:PingResponse'
, pingResponse_httpStatus
- The response's http status code.
Response Lenses
pingResponse_status :: Lens' PingResponse (Maybe Text) Source #
Information about the health of the service.
pingResponse_httpStatus :: Lens' PingResponse Int Source #
The response's http status code.