{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MediaPackage.DescribeChannel
(
DescribeChannel (..),
newDescribeChannel,
describeChannel_id,
DescribeChannelResponse (..),
newDescribeChannelResponse,
describeChannelResponse_ingressAccessLogs,
describeChannelResponse_hlsIngest,
describeChannelResponse_arn,
describeChannelResponse_id,
describeChannelResponse_description,
describeChannelResponse_egressAccessLogs,
describeChannelResponse_tags,
describeChannelResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaPackage.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeChannel = DescribeChannel'
{
DescribeChannel -> Text
id :: Prelude.Text
}
deriving (DescribeChannel -> DescribeChannel -> Bool
(DescribeChannel -> DescribeChannel -> Bool)
-> (DescribeChannel -> DescribeChannel -> Bool)
-> Eq DescribeChannel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeChannel -> DescribeChannel -> Bool
$c/= :: DescribeChannel -> DescribeChannel -> Bool
== :: DescribeChannel -> DescribeChannel -> Bool
$c== :: DescribeChannel -> DescribeChannel -> Bool
Prelude.Eq, ReadPrec [DescribeChannel]
ReadPrec DescribeChannel
Int -> ReadS DescribeChannel
ReadS [DescribeChannel]
(Int -> ReadS DescribeChannel)
-> ReadS [DescribeChannel]
-> ReadPrec DescribeChannel
-> ReadPrec [DescribeChannel]
-> Read DescribeChannel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeChannel]
$creadListPrec :: ReadPrec [DescribeChannel]
readPrec :: ReadPrec DescribeChannel
$creadPrec :: ReadPrec DescribeChannel
readList :: ReadS [DescribeChannel]
$creadList :: ReadS [DescribeChannel]
readsPrec :: Int -> ReadS DescribeChannel
$creadsPrec :: Int -> ReadS DescribeChannel
Prelude.Read, Int -> DescribeChannel -> ShowS
[DescribeChannel] -> ShowS
DescribeChannel -> String
(Int -> DescribeChannel -> ShowS)
-> (DescribeChannel -> String)
-> ([DescribeChannel] -> ShowS)
-> Show DescribeChannel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeChannel] -> ShowS
$cshowList :: [DescribeChannel] -> ShowS
show :: DescribeChannel -> String
$cshow :: DescribeChannel -> String
showsPrec :: Int -> DescribeChannel -> ShowS
$cshowsPrec :: Int -> DescribeChannel -> ShowS
Prelude.Show, (forall x. DescribeChannel -> Rep DescribeChannel x)
-> (forall x. Rep DescribeChannel x -> DescribeChannel)
-> Generic DescribeChannel
forall x. Rep DescribeChannel x -> DescribeChannel
forall x. DescribeChannel -> Rep DescribeChannel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeChannel x -> DescribeChannel
$cfrom :: forall x. DescribeChannel -> Rep DescribeChannel x
Prelude.Generic)
newDescribeChannel ::
Prelude.Text ->
DescribeChannel
newDescribeChannel :: Text -> DescribeChannel
newDescribeChannel Text
pId_ = DescribeChannel' :: Text -> DescribeChannel
DescribeChannel' {$sel:id:DescribeChannel' :: Text
id = Text
pId_}
describeChannel_id :: Lens.Lens' DescribeChannel Prelude.Text
describeChannel_id :: (Text -> f Text) -> DescribeChannel -> f DescribeChannel
describeChannel_id = (DescribeChannel -> Text)
-> (DescribeChannel -> Text -> DescribeChannel)
-> Lens DescribeChannel DescribeChannel Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannel' {Text
id :: Text
$sel:id:DescribeChannel' :: DescribeChannel -> Text
id} -> Text
id) (\s :: DescribeChannel
s@DescribeChannel' {} Text
a -> DescribeChannel
s {$sel:id:DescribeChannel' :: Text
id = Text
a} :: DescribeChannel)
instance Core.AWSRequest DescribeChannel where
type
AWSResponse DescribeChannel =
DescribeChannelResponse
request :: DescribeChannel -> Request DescribeChannel
request = Service -> DescribeChannel -> Request DescribeChannel
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeChannel
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeChannel)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeChannel))
-> Logger
-> Service
-> Proxy DescribeChannel
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeChannel)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe IngressAccessLogs
-> Maybe HlsIngest
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse
DescribeChannelResponse'
(Maybe IngressAccessLogs
-> Maybe HlsIngest
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse)
-> Either String (Maybe IngressAccessLogs)
-> Either
String
(Maybe HlsIngest
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe IngressAccessLogs)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ingressAccessLogs")
Either
String
(Maybe HlsIngest
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse)
-> Either String (Maybe HlsIngest)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe HlsIngest)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"hlsIngest")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"arn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"id")
Either
String
(Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe EgressAccessLogs
-> Maybe (HashMap Text Text) -> Int -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"description")
Either
String
(Maybe EgressAccessLogs
-> Maybe (HashMap Text Text) -> Int -> DescribeChannelResponse)
-> Either String (Maybe EgressAccessLogs)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe EgressAccessLogs)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"egressAccessLogs")
Either
String
(Maybe (HashMap Text Text) -> Int -> DescribeChannelResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeChannelResponse)
-> Either String Int -> Either String DescribeChannelResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeChannel
instance Prelude.NFData DescribeChannel
instance Core.ToHeaders DescribeChannel where
toHeaders :: DescribeChannel -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeChannel -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath DescribeChannel where
toPath :: DescribeChannel -> ByteString
toPath DescribeChannel' {Text
id :: Text
$sel:id:DescribeChannel' :: DescribeChannel -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/channels/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id]
instance Core.ToQuery DescribeChannel where
toQuery :: DescribeChannel -> QueryString
toQuery = QueryString -> DescribeChannel -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeChannelResponse = DescribeChannelResponse'
{ DescribeChannelResponse -> Maybe IngressAccessLogs
ingressAccessLogs :: Prelude.Maybe IngressAccessLogs,
DescribeChannelResponse -> Maybe HlsIngest
hlsIngest :: Prelude.Maybe HlsIngest,
DescribeChannelResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeChannelResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
DescribeChannelResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeChannelResponse -> Maybe EgressAccessLogs
egressAccessLogs :: Prelude.Maybe EgressAccessLogs,
DescribeChannelResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeChannelResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeChannelResponse -> DescribeChannelResponse -> Bool
(DescribeChannelResponse -> DescribeChannelResponse -> Bool)
-> (DescribeChannelResponse -> DescribeChannelResponse -> Bool)
-> Eq DescribeChannelResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeChannelResponse -> DescribeChannelResponse -> Bool
$c/= :: DescribeChannelResponse -> DescribeChannelResponse -> Bool
== :: DescribeChannelResponse -> DescribeChannelResponse -> Bool
$c== :: DescribeChannelResponse -> DescribeChannelResponse -> Bool
Prelude.Eq, ReadPrec [DescribeChannelResponse]
ReadPrec DescribeChannelResponse
Int -> ReadS DescribeChannelResponse
ReadS [DescribeChannelResponse]
(Int -> ReadS DescribeChannelResponse)
-> ReadS [DescribeChannelResponse]
-> ReadPrec DescribeChannelResponse
-> ReadPrec [DescribeChannelResponse]
-> Read DescribeChannelResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeChannelResponse]
$creadListPrec :: ReadPrec [DescribeChannelResponse]
readPrec :: ReadPrec DescribeChannelResponse
$creadPrec :: ReadPrec DescribeChannelResponse
readList :: ReadS [DescribeChannelResponse]
$creadList :: ReadS [DescribeChannelResponse]
readsPrec :: Int -> ReadS DescribeChannelResponse
$creadsPrec :: Int -> ReadS DescribeChannelResponse
Prelude.Read, Int -> DescribeChannelResponse -> ShowS
[DescribeChannelResponse] -> ShowS
DescribeChannelResponse -> String
(Int -> DescribeChannelResponse -> ShowS)
-> (DescribeChannelResponse -> String)
-> ([DescribeChannelResponse] -> ShowS)
-> Show DescribeChannelResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeChannelResponse] -> ShowS
$cshowList :: [DescribeChannelResponse] -> ShowS
show :: DescribeChannelResponse -> String
$cshow :: DescribeChannelResponse -> String
showsPrec :: Int -> DescribeChannelResponse -> ShowS
$cshowsPrec :: Int -> DescribeChannelResponse -> ShowS
Prelude.Show, (forall x.
DescribeChannelResponse -> Rep DescribeChannelResponse x)
-> (forall x.
Rep DescribeChannelResponse x -> DescribeChannelResponse)
-> Generic DescribeChannelResponse
forall x. Rep DescribeChannelResponse x -> DescribeChannelResponse
forall x. DescribeChannelResponse -> Rep DescribeChannelResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeChannelResponse x -> DescribeChannelResponse
$cfrom :: forall x. DescribeChannelResponse -> Rep DescribeChannelResponse x
Prelude.Generic)
newDescribeChannelResponse ::
Prelude.Int ->
DescribeChannelResponse
newDescribeChannelResponse :: Int -> DescribeChannelResponse
newDescribeChannelResponse Int
pHttpStatus_ =
DescribeChannelResponse' :: Maybe IngressAccessLogs
-> Maybe HlsIngest
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse
DescribeChannelResponse'
{ $sel:ingressAccessLogs:DescribeChannelResponse' :: Maybe IngressAccessLogs
ingressAccessLogs =
Maybe IngressAccessLogs
forall a. Maybe a
Prelude.Nothing,
$sel:hlsIngest:DescribeChannelResponse' :: Maybe HlsIngest
hlsIngest = Maybe HlsIngest
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DescribeChannelResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:DescribeChannelResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeChannelResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:egressAccessLogs:DescribeChannelResponse' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
forall a. Maybe a
Prelude.Nothing,
$sel:tags:DescribeChannelResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeChannelResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeChannelResponse_ingressAccessLogs :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe IngressAccessLogs)
describeChannelResponse_ingressAccessLogs :: (Maybe IngressAccessLogs -> f (Maybe IngressAccessLogs))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_ingressAccessLogs = (DescribeChannelResponse -> Maybe IngressAccessLogs)
-> (DescribeChannelResponse
-> Maybe IngressAccessLogs -> DescribeChannelResponse)
-> Lens
DescribeChannelResponse
DescribeChannelResponse
(Maybe IngressAccessLogs)
(Maybe IngressAccessLogs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe IngressAccessLogs
ingressAccessLogs :: Maybe IngressAccessLogs
$sel:ingressAccessLogs:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe IngressAccessLogs
ingressAccessLogs} -> Maybe IngressAccessLogs
ingressAccessLogs) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe IngressAccessLogs
a -> DescribeChannelResponse
s {$sel:ingressAccessLogs:DescribeChannelResponse' :: Maybe IngressAccessLogs
ingressAccessLogs = Maybe IngressAccessLogs
a} :: DescribeChannelResponse)
describeChannelResponse_hlsIngest :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe HlsIngest)
describeChannelResponse_hlsIngest :: (Maybe HlsIngest -> f (Maybe HlsIngest))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_hlsIngest = (DescribeChannelResponse -> Maybe HlsIngest)
-> (DescribeChannelResponse
-> Maybe HlsIngest -> DescribeChannelResponse)
-> Lens
DescribeChannelResponse
DescribeChannelResponse
(Maybe HlsIngest)
(Maybe HlsIngest)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe HlsIngest
hlsIngest :: Maybe HlsIngest
$sel:hlsIngest:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe HlsIngest
hlsIngest} -> Maybe HlsIngest
hlsIngest) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe HlsIngest
a -> DescribeChannelResponse
s {$sel:hlsIngest:DescribeChannelResponse' :: Maybe HlsIngest
hlsIngest = Maybe HlsIngest
a} :: DescribeChannelResponse)
describeChannelResponse_arn :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.Text)
describeChannelResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_arn = (DescribeChannelResponse -> Maybe Text)
-> (DescribeChannelResponse
-> Maybe Text -> DescribeChannelResponse)
-> Lens
DescribeChannelResponse
DescribeChannelResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe Text
a -> DescribeChannelResponse
s {$sel:arn:DescribeChannelResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeChannelResponse)
describeChannelResponse_id :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.Text)
describeChannelResponse_id :: (Maybe Text -> f (Maybe Text))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_id = (DescribeChannelResponse -> Maybe Text)
-> (DescribeChannelResponse
-> Maybe Text -> DescribeChannelResponse)
-> Lens
DescribeChannelResponse
DescribeChannelResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe Text
id :: Maybe Text
$sel:id:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe Text
a -> DescribeChannelResponse
s {$sel:id:DescribeChannelResponse' :: Maybe Text
id = Maybe Text
a} :: DescribeChannelResponse)
describeChannelResponse_description :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.Text)
describeChannelResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_description = (DescribeChannelResponse -> Maybe Text)
-> (DescribeChannelResponse
-> Maybe Text -> DescribeChannelResponse)
-> Lens
DescribeChannelResponse
DescribeChannelResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe Text
a -> DescribeChannelResponse
s {$sel:description:DescribeChannelResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeChannelResponse)
describeChannelResponse_egressAccessLogs :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe EgressAccessLogs)
describeChannelResponse_egressAccessLogs :: (Maybe EgressAccessLogs -> f (Maybe EgressAccessLogs))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_egressAccessLogs = (DescribeChannelResponse -> Maybe EgressAccessLogs)
-> (DescribeChannelResponse
-> Maybe EgressAccessLogs -> DescribeChannelResponse)
-> Lens
DescribeChannelResponse
DescribeChannelResponse
(Maybe EgressAccessLogs)
(Maybe EgressAccessLogs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe EgressAccessLogs
egressAccessLogs :: Maybe EgressAccessLogs
$sel:egressAccessLogs:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe EgressAccessLogs
egressAccessLogs} -> Maybe EgressAccessLogs
egressAccessLogs) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe EgressAccessLogs
a -> DescribeChannelResponse
s {$sel:egressAccessLogs:DescribeChannelResponse' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
a} :: DescribeChannelResponse)
describeChannelResponse_tags :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeChannelResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_tags = (DescribeChannelResponse -> Maybe (HashMap Text Text))
-> (DescribeChannelResponse
-> Maybe (HashMap Text Text) -> DescribeChannelResponse)
-> Lens
DescribeChannelResponse
DescribeChannelResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe (HashMap Text Text)
a -> DescribeChannelResponse
s {$sel:tags:DescribeChannelResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeChannelResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeChannelResponse -> f DescribeChannelResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeChannelResponse
-> f DescribeChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeChannelResponse_httpStatus :: Lens.Lens' DescribeChannelResponse Prelude.Int
describeChannelResponse_httpStatus :: (Int -> f Int)
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_httpStatus = (DescribeChannelResponse -> Int)
-> (DescribeChannelResponse -> Int -> DescribeChannelResponse)
-> Lens DescribeChannelResponse DescribeChannelResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeChannelResponse' :: DescribeChannelResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Int
a -> DescribeChannelResponse
s {$sel:httpStatus:DescribeChannelResponse' :: Int
httpStatus = Int
a} :: DescribeChannelResponse)
instance Prelude.NFData DescribeChannelResponse