| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.Synthetics.GetCanary
Description
Retrieves complete information about one canary. You must specify the name of the canary that you want. To get a list of canaries and their names, use DescribeCanaries.
Synopsis
- data GetCanary = GetCanary' {}
- newGetCanary :: Text -> GetCanary
- getCanary_name :: Lens' GetCanary Text
- data GetCanaryResponse = GetCanaryResponse' {
- canary :: Maybe Canary
- httpStatus :: Int
- newGetCanaryResponse :: Int -> GetCanaryResponse
- getCanaryResponse_canary :: Lens' GetCanaryResponse (Maybe Canary)
- getCanaryResponse_httpStatus :: Lens' GetCanaryResponse Int
Creating a Request
See: newGetCanary smart constructor.
Constructors
| GetCanary' | |
Instances
| Eq GetCanary Source # | |
| Read GetCanary Source # | |
| Show GetCanary Source # | |
| Generic GetCanary Source # | |
| NFData GetCanary Source # | |
Defined in Amazonka.Synthetics.GetCanary | |
| Hashable GetCanary Source # | |
Defined in Amazonka.Synthetics.GetCanary | |
| AWSRequest GetCanary Source # | |
Defined in Amazonka.Synthetics.GetCanary Associated Types type AWSResponse GetCanary # Methods request :: GetCanary -> Request GetCanary # response :: MonadResource m => Logger -> Service -> Proxy GetCanary -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetCanary))) # | |
| ToHeaders GetCanary Source # | |
Defined in Amazonka.Synthetics.GetCanary | |
| ToPath GetCanary Source # | |
Defined in Amazonka.Synthetics.GetCanary Methods toPath :: GetCanary -> ByteString # | |
| ToQuery GetCanary Source # | |
Defined in Amazonka.Synthetics.GetCanary Methods toQuery :: GetCanary -> QueryString # | |
| type Rep GetCanary Source # | |
Defined in Amazonka.Synthetics.GetCanary | |
| type AWSResponse GetCanary Source # | |
Defined in Amazonka.Synthetics.GetCanary | |
Create a value of GetCanary 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:name:GetCanary', getCanary_name - The name of the canary that you want details for.
Request Lenses
Destructuring the Response
data GetCanaryResponse Source #
See: newGetCanaryResponse smart constructor.
Constructors
| GetCanaryResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetCanaryResponse |
Create a value of GetCanaryResponse 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:canary:GetCanaryResponse', getCanaryResponse_canary - A strucure that contains the full information about the canary.
$sel:httpStatus:GetCanaryResponse', getCanaryResponse_httpStatus - The response's http status code.
Response Lenses
getCanaryResponse_canary :: Lens' GetCanaryResponse (Maybe Canary) Source #
A strucure that contains the full information about the canary.
getCanaryResponse_httpStatus :: Lens' GetCanaryResponse Int Source #
The response's http status code.