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 |
Returns information about a specific channel. Amazon Web Services services create service-linked channels to get information about CloudTrail events on your behalf. For more information about service-linked channels, see Viewing service-linked channels for CloudTrail by using the CLI.
Synopsis
- data GetChannel = GetChannel' {}
- newGetChannel :: Text -> GetChannel
- getChannel_channel :: Lens' GetChannel Text
- data GetChannelResponse = GetChannelResponse' {
- channelArn :: Maybe Text
- destinations :: Maybe (NonEmpty Destination)
- name :: Maybe Text
- source :: Maybe Text
- sourceConfig :: Maybe SourceConfig
- httpStatus :: Int
- newGetChannelResponse :: Int -> GetChannelResponse
- getChannelResponse_channelArn :: Lens' GetChannelResponse (Maybe Text)
- getChannelResponse_destinations :: Lens' GetChannelResponse (Maybe (NonEmpty Destination))
- getChannelResponse_name :: Lens' GetChannelResponse (Maybe Text)
- getChannelResponse_source :: Lens' GetChannelResponse (Maybe Text)
- getChannelResponse_sourceConfig :: Lens' GetChannelResponse (Maybe SourceConfig)
- 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:channel:GetChannel'
, getChannel_channel
- The ARN or UUID
of a channel.
Request Lenses
getChannel_channel :: Lens' GetChannel Text Source #
The ARN or UUID
of a channel.
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:
GetChannelResponse
, getChannelResponse_channelArn
- The ARN of an channel returned by a GetChannel
request.
GetChannelResponse
, getChannelResponse_destinations
- The Amazon Web Services service that created the service-linked channel.
GetChannelResponse
, getChannelResponse_name
- The name of the CloudTrail channel. For service-linked channels, the
value is aws-service-channel/service-name/custom-suffix
where
service-name
represents the name of the Amazon Web Services service
that created the channel and custom-suffix
represents the suffix
generated by the Amazon Web Services service.
$sel:source:GetChannelResponse'
, getChannelResponse_source
- The event source for the CloudTrail channel.
$sel:sourceConfig:GetChannelResponse'
, getChannelResponse_sourceConfig
- Provides information about the advanced event selectors configured for
the channel, and whether the channel applies to all regions or a single
region.
$sel:httpStatus:GetChannelResponse'
, getChannelResponse_httpStatus
- The response's http status code.
Response Lenses
getChannelResponse_channelArn :: Lens' GetChannelResponse (Maybe Text) Source #
The ARN of an channel returned by a GetChannel
request.
getChannelResponse_destinations :: Lens' GetChannelResponse (Maybe (NonEmpty Destination)) Source #
The Amazon Web Services service that created the service-linked channel.
getChannelResponse_name :: Lens' GetChannelResponse (Maybe Text) Source #
The name of the CloudTrail channel. For service-linked channels, the
value is aws-service-channel/service-name/custom-suffix
where
service-name
represents the name of the Amazon Web Services service
that created the channel and custom-suffix
represents the suffix
generated by the Amazon Web Services service.
getChannelResponse_source :: Lens' GetChannelResponse (Maybe Text) Source #
The event source for the CloudTrail channel.
getChannelResponse_sourceConfig :: Lens' GetChannelResponse (Maybe SourceConfig) Source #
Provides information about the advanced event selectors configured for the channel, and whether the channel applies to all regions or a single region.
getChannelResponse_httpStatus :: Lens' GetChannelResponse Int Source #
The response's http status code.