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 |
Gets the channel configuration for the specified channel ARN. See also BatchGetChannel.
Synopsis
- data GetChannel = GetChannel' {}
- newGetChannel :: Text -> GetChannel
- getChannel_arn :: Lens' GetChannel Text
- data GetChannelResponse = GetChannelResponse' {
- channel :: Maybe Channel
- httpStatus :: Int
- newGetChannelResponse :: Int -> GetChannelResponse
- getChannelResponse_channel :: Lens' GetChannelResponse (Maybe Channel)
- getChannelResponse_httpStatus :: Lens' GetChannelResponse Int
Creating a Request
data GetChannel Source #
See: newGetChannel
smart constructor.
Instances
Create a value of GetChannel
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:arn:GetChannel'
, getChannel_arn
- ARN of the channel for which the configuration is to be retrieved.
Request Lenses
getChannel_arn :: Lens' GetChannel Text Source #
ARN of the channel for which the configuration is to be retrieved.
Destructuring the Response
data GetChannelResponse Source #
See: newGetChannelResponse
smart constructor.
GetChannelResponse' | |
|
Instances
newGetChannelResponse Source #
Create a value of GetChannelResponse
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:channel:GetChannelResponse'
, getChannelResponse_channel
-
$sel:httpStatus:GetChannelResponse'
, getChannelResponse_httpStatus
- The response's http status code.
Response Lenses
getChannelResponse_httpStatus :: Lens' GetChannelResponse Int Source #
The response's http status code.