| 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.OAM.GetSink
Description
Returns complete information about one monitoring account sink.
To use this operation, provide the sink ARN. To retrieve a list of sink ARNs, use ListSinks.
Synopsis
- data GetSink = GetSink' {
- identifier :: Text
- newGetSink :: Text -> GetSink
- getSink_identifier :: Lens' GetSink Text
- data GetSinkResponse = GetSinkResponse' {}
- newGetSinkResponse :: Int -> GetSinkResponse
- getSinkResponse_arn :: Lens' GetSinkResponse (Maybe Text)
- getSinkResponse_id :: Lens' GetSinkResponse (Maybe Text)
- getSinkResponse_name :: Lens' GetSinkResponse (Maybe Text)
- getSinkResponse_tags :: Lens' GetSinkResponse (Maybe (HashMap Text Text))
- getSinkResponse_httpStatus :: Lens' GetSinkResponse Int
Creating a Request
See: newGetSink smart constructor.
Constructors
| GetSink' | |
Fields
| |
Instances
| ToJSON GetSink Source # | |
Defined in Amazonka.OAM.GetSink | |
| ToHeaders GetSink Source # | |
Defined in Amazonka.OAM.GetSink | |
| ToPath GetSink Source # | |
Defined in Amazonka.OAM.GetSink Methods toPath :: GetSink -> ByteString # | |
| ToQuery GetSink Source # | |
Defined in Amazonka.OAM.GetSink Methods toQuery :: GetSink -> QueryString # | |
| AWSRequest GetSink Source # | |
Defined in Amazonka.OAM.GetSink Associated Types type AWSResponse GetSink # Methods request :: (Service -> Service) -> GetSink -> Request GetSink # response :: MonadResource m => (ByteStringLazy -> IO ByteStringLazy) -> Service -> Proxy GetSink -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetSink))) # | |
| Generic GetSink Source # | |
| Read GetSink Source # | |
| Show GetSink Source # | |
| NFData GetSink Source # | |
Defined in Amazonka.OAM.GetSink | |
| Eq GetSink Source # | |
| Hashable GetSink Source # | |
Defined in Amazonka.OAM.GetSink | |
| type AWSResponse GetSink Source # | |
Defined in Amazonka.OAM.GetSink | |
| type Rep GetSink Source # | |
Defined in Amazonka.OAM.GetSink | |
Create a value of GetSink 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:identifier:GetSink', getSink_identifier - The ARN of the sink to retrieve information for.
Request Lenses
Destructuring the Response
data GetSinkResponse Source #
See: newGetSinkResponse smart constructor.
Constructors
| GetSinkResponse' | |
Instances
Arguments
| :: Int | |
| -> GetSinkResponse |
Create a value of GetSinkResponse 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:
GetSinkResponse, getSinkResponse_arn - The ARN of the sink.
GetSinkResponse, getSinkResponse_id - The random ID string that Amazon Web Services generated as part of the
sink ARN.
GetSinkResponse, getSinkResponse_name - The name of the sink.
$sel:tags:GetSinkResponse', getSinkResponse_tags - The tags assigned to the sink.
$sel:httpStatus:GetSinkResponse', getSinkResponse_httpStatus - The response's http status code.
Response Lenses
getSinkResponse_arn :: Lens' GetSinkResponse (Maybe Text) Source #
The ARN of the sink.
getSinkResponse_id :: Lens' GetSinkResponse (Maybe Text) Source #
The random ID string that Amazon Web Services generated as part of the sink ARN.
getSinkResponse_name :: Lens' GetSinkResponse (Maybe Text) Source #
The name of the sink.
getSinkResponse_tags :: Lens' GetSinkResponse (Maybe (HashMap Text Text)) Source #
The tags assigned to the sink.
getSinkResponse_httpStatus :: Lens' GetSinkResponse Int Source #
The response's http status code.