{-# 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.ConfigureLogs
(
ConfigureLogs (..),
newConfigureLogs,
configureLogs_egressAccessLogs,
configureLogs_ingressAccessLogs,
configureLogs_id,
ConfigureLogsResponse (..),
newConfigureLogsResponse,
configureLogsResponse_arn,
configureLogsResponse_description,
configureLogsResponse_egressAccessLogs,
configureLogsResponse_hlsIngest,
configureLogsResponse_id,
configureLogsResponse_ingressAccessLogs,
configureLogsResponse_tags,
configureLogsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaPackage.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ConfigureLogs = ConfigureLogs'
{ ConfigureLogs -> Maybe EgressAccessLogs
egressAccessLogs :: Prelude.Maybe EgressAccessLogs,
ConfigureLogs -> Maybe IngressAccessLogs
ingressAccessLogs :: Prelude.Maybe IngressAccessLogs,
ConfigureLogs -> Text
id :: Prelude.Text
}
deriving (ConfigureLogs -> ConfigureLogs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConfigureLogs -> ConfigureLogs -> Bool
$c/= :: ConfigureLogs -> ConfigureLogs -> Bool
== :: ConfigureLogs -> ConfigureLogs -> Bool
$c== :: ConfigureLogs -> ConfigureLogs -> Bool
Prelude.Eq, ReadPrec [ConfigureLogs]
ReadPrec ConfigureLogs
Int -> ReadS ConfigureLogs
ReadS [ConfigureLogs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ConfigureLogs]
$creadListPrec :: ReadPrec [ConfigureLogs]
readPrec :: ReadPrec ConfigureLogs
$creadPrec :: ReadPrec ConfigureLogs
readList :: ReadS [ConfigureLogs]
$creadList :: ReadS [ConfigureLogs]
readsPrec :: Int -> ReadS ConfigureLogs
$creadsPrec :: Int -> ReadS ConfigureLogs
Prelude.Read, Int -> ConfigureLogs -> ShowS
[ConfigureLogs] -> ShowS
ConfigureLogs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ConfigureLogs] -> ShowS
$cshowList :: [ConfigureLogs] -> ShowS
show :: ConfigureLogs -> String
$cshow :: ConfigureLogs -> String
showsPrec :: Int -> ConfigureLogs -> ShowS
$cshowsPrec :: Int -> ConfigureLogs -> ShowS
Prelude.Show, forall x. Rep ConfigureLogs x -> ConfigureLogs
forall x. ConfigureLogs -> Rep ConfigureLogs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ConfigureLogs x -> ConfigureLogs
$cfrom :: forall x. ConfigureLogs -> Rep ConfigureLogs x
Prelude.Generic)
newConfigureLogs ::
Prelude.Text ->
ConfigureLogs
newConfigureLogs :: Text -> ConfigureLogs
newConfigureLogs Text
pId_ =
ConfigureLogs'
{ $sel:egressAccessLogs:ConfigureLogs' :: Maybe EgressAccessLogs
egressAccessLogs = forall a. Maybe a
Prelude.Nothing,
$sel:ingressAccessLogs:ConfigureLogs' :: Maybe IngressAccessLogs
ingressAccessLogs = forall a. Maybe a
Prelude.Nothing,
$sel:id:ConfigureLogs' :: Text
id = Text
pId_
}
configureLogs_egressAccessLogs :: Lens.Lens' ConfigureLogs (Prelude.Maybe EgressAccessLogs)
configureLogs_egressAccessLogs :: Lens' ConfigureLogs (Maybe EgressAccessLogs)
configureLogs_egressAccessLogs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogs' {Maybe EgressAccessLogs
egressAccessLogs :: Maybe EgressAccessLogs
$sel:egressAccessLogs:ConfigureLogs' :: ConfigureLogs -> Maybe EgressAccessLogs
egressAccessLogs} -> Maybe EgressAccessLogs
egressAccessLogs) (\s :: ConfigureLogs
s@ConfigureLogs' {} Maybe EgressAccessLogs
a -> ConfigureLogs
s {$sel:egressAccessLogs:ConfigureLogs' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
a} :: ConfigureLogs)
configureLogs_ingressAccessLogs :: Lens.Lens' ConfigureLogs (Prelude.Maybe IngressAccessLogs)
configureLogs_ingressAccessLogs :: Lens' ConfigureLogs (Maybe IngressAccessLogs)
configureLogs_ingressAccessLogs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogs' {Maybe IngressAccessLogs
ingressAccessLogs :: Maybe IngressAccessLogs
$sel:ingressAccessLogs:ConfigureLogs' :: ConfigureLogs -> Maybe IngressAccessLogs
ingressAccessLogs} -> Maybe IngressAccessLogs
ingressAccessLogs) (\s :: ConfigureLogs
s@ConfigureLogs' {} Maybe IngressAccessLogs
a -> ConfigureLogs
s {$sel:ingressAccessLogs:ConfigureLogs' :: Maybe IngressAccessLogs
ingressAccessLogs = Maybe IngressAccessLogs
a} :: ConfigureLogs)
configureLogs_id :: Lens.Lens' ConfigureLogs Prelude.Text
configureLogs_id :: Lens' ConfigureLogs Text
configureLogs_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogs' {Text
id :: Text
$sel:id:ConfigureLogs' :: ConfigureLogs -> Text
id} -> Text
id) (\s :: ConfigureLogs
s@ConfigureLogs' {} Text
a -> ConfigureLogs
s {$sel:id:ConfigureLogs' :: Text
id = Text
a} :: ConfigureLogs)
instance Core.AWSRequest ConfigureLogs where
type
AWSResponse ConfigureLogs =
ConfigureLogsResponse
request :: (Service -> Service) -> ConfigureLogs -> Request ConfigureLogs
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ConfigureLogs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ConfigureLogs)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe HlsIngest
-> Maybe Text
-> Maybe IngressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> ConfigureLogsResponse
ConfigureLogsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"egressAccessLogs")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"hlsIngest")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ingressAccessLogs")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"tags" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ConfigureLogs where
hashWithSalt :: Int -> ConfigureLogs -> Int
hashWithSalt Int
_salt ConfigureLogs' {Maybe EgressAccessLogs
Maybe IngressAccessLogs
Text
id :: Text
ingressAccessLogs :: Maybe IngressAccessLogs
egressAccessLogs :: Maybe EgressAccessLogs
$sel:id:ConfigureLogs' :: ConfigureLogs -> Text
$sel:ingressAccessLogs:ConfigureLogs' :: ConfigureLogs -> Maybe IngressAccessLogs
$sel:egressAccessLogs:ConfigureLogs' :: ConfigureLogs -> Maybe EgressAccessLogs
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EgressAccessLogs
egressAccessLogs
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe IngressAccessLogs
ingressAccessLogs
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id
instance Prelude.NFData ConfigureLogs where
rnf :: ConfigureLogs -> ()
rnf ConfigureLogs' {Maybe EgressAccessLogs
Maybe IngressAccessLogs
Text
id :: Text
ingressAccessLogs :: Maybe IngressAccessLogs
egressAccessLogs :: Maybe EgressAccessLogs
$sel:id:ConfigureLogs' :: ConfigureLogs -> Text
$sel:ingressAccessLogs:ConfigureLogs' :: ConfigureLogs -> Maybe IngressAccessLogs
$sel:egressAccessLogs:ConfigureLogs' :: ConfigureLogs -> Maybe EgressAccessLogs
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe EgressAccessLogs
egressAccessLogs
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe IngressAccessLogs
ingressAccessLogs
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
id
instance Data.ToHeaders ConfigureLogs where
toHeaders :: ConfigureLogs -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON ConfigureLogs where
toJSON :: ConfigureLogs -> Value
toJSON ConfigureLogs' {Maybe EgressAccessLogs
Maybe IngressAccessLogs
Text
id :: Text
ingressAccessLogs :: Maybe IngressAccessLogs
egressAccessLogs :: Maybe EgressAccessLogs
$sel:id:ConfigureLogs' :: ConfigureLogs -> Text
$sel:ingressAccessLogs:ConfigureLogs' :: ConfigureLogs -> Maybe IngressAccessLogs
$sel:egressAccessLogs:ConfigureLogs' :: ConfigureLogs -> Maybe EgressAccessLogs
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"egressAccessLogs" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EgressAccessLogs
egressAccessLogs,
(Key
"ingressAccessLogs" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IngressAccessLogs
ingressAccessLogs
]
)
instance Data.ToPath ConfigureLogs where
toPath :: ConfigureLogs -> ByteString
toPath ConfigureLogs' {Maybe EgressAccessLogs
Maybe IngressAccessLogs
Text
id :: Text
ingressAccessLogs :: Maybe IngressAccessLogs
egressAccessLogs :: Maybe EgressAccessLogs
$sel:id:ConfigureLogs' :: ConfigureLogs -> Text
$sel:ingressAccessLogs:ConfigureLogs' :: ConfigureLogs -> Maybe IngressAccessLogs
$sel:egressAccessLogs:ConfigureLogs' :: ConfigureLogs -> Maybe EgressAccessLogs
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/channels/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
id, ByteString
"/configure_logs"]
instance Data.ToQuery ConfigureLogs where
toQuery :: ConfigureLogs -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ConfigureLogsResponse = ConfigureLogsResponse'
{
ConfigureLogsResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
ConfigureLogsResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
ConfigureLogsResponse -> Maybe EgressAccessLogs
egressAccessLogs :: Prelude.Maybe EgressAccessLogs,
ConfigureLogsResponse -> Maybe HlsIngest
hlsIngest :: Prelude.Maybe HlsIngest,
ConfigureLogsResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
ConfigureLogsResponse -> Maybe IngressAccessLogs
ingressAccessLogs :: Prelude.Maybe IngressAccessLogs,
ConfigureLogsResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
ConfigureLogsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ConfigureLogsResponse -> ConfigureLogsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConfigureLogsResponse -> ConfigureLogsResponse -> Bool
$c/= :: ConfigureLogsResponse -> ConfigureLogsResponse -> Bool
== :: ConfigureLogsResponse -> ConfigureLogsResponse -> Bool
$c== :: ConfigureLogsResponse -> ConfigureLogsResponse -> Bool
Prelude.Eq, ReadPrec [ConfigureLogsResponse]
ReadPrec ConfigureLogsResponse
Int -> ReadS ConfigureLogsResponse
ReadS [ConfigureLogsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ConfigureLogsResponse]
$creadListPrec :: ReadPrec [ConfigureLogsResponse]
readPrec :: ReadPrec ConfigureLogsResponse
$creadPrec :: ReadPrec ConfigureLogsResponse
readList :: ReadS [ConfigureLogsResponse]
$creadList :: ReadS [ConfigureLogsResponse]
readsPrec :: Int -> ReadS ConfigureLogsResponse
$creadsPrec :: Int -> ReadS ConfigureLogsResponse
Prelude.Read, Int -> ConfigureLogsResponse -> ShowS
[ConfigureLogsResponse] -> ShowS
ConfigureLogsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ConfigureLogsResponse] -> ShowS
$cshowList :: [ConfigureLogsResponse] -> ShowS
show :: ConfigureLogsResponse -> String
$cshow :: ConfigureLogsResponse -> String
showsPrec :: Int -> ConfigureLogsResponse -> ShowS
$cshowsPrec :: Int -> ConfigureLogsResponse -> ShowS
Prelude.Show, forall x. Rep ConfigureLogsResponse x -> ConfigureLogsResponse
forall x. ConfigureLogsResponse -> Rep ConfigureLogsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ConfigureLogsResponse x -> ConfigureLogsResponse
$cfrom :: forall x. ConfigureLogsResponse -> Rep ConfigureLogsResponse x
Prelude.Generic)
newConfigureLogsResponse ::
Prelude.Int ->
ConfigureLogsResponse
newConfigureLogsResponse :: Int -> ConfigureLogsResponse
newConfigureLogsResponse Int
pHttpStatus_ =
ConfigureLogsResponse'
{ $sel:arn:ConfigureLogsResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:description:ConfigureLogsResponse' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:egressAccessLogs:ConfigureLogsResponse' :: Maybe EgressAccessLogs
egressAccessLogs = forall a. Maybe a
Prelude.Nothing,
$sel:hlsIngest:ConfigureLogsResponse' :: Maybe HlsIngest
hlsIngest = forall a. Maybe a
Prelude.Nothing,
$sel:id:ConfigureLogsResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:ingressAccessLogs:ConfigureLogsResponse' :: Maybe IngressAccessLogs
ingressAccessLogs = forall a. Maybe a
Prelude.Nothing,
$sel:tags:ConfigureLogsResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ConfigureLogsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
configureLogsResponse_arn :: Lens.Lens' ConfigureLogsResponse (Prelude.Maybe Prelude.Text)
configureLogsResponse_arn :: Lens' ConfigureLogsResponse (Maybe Text)
configureLogsResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogsResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ConfigureLogsResponse
s@ConfigureLogsResponse' {} Maybe Text
a -> ConfigureLogsResponse
s {$sel:arn:ConfigureLogsResponse' :: Maybe Text
arn = Maybe Text
a} :: ConfigureLogsResponse)
configureLogsResponse_description :: Lens.Lens' ConfigureLogsResponse (Prelude.Maybe Prelude.Text)
configureLogsResponse_description :: Lens' ConfigureLogsResponse (Maybe Text)
configureLogsResponse_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogsResponse' {Maybe Text
description :: Maybe Text
$sel:description:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: ConfigureLogsResponse
s@ConfigureLogsResponse' {} Maybe Text
a -> ConfigureLogsResponse
s {$sel:description:ConfigureLogsResponse' :: Maybe Text
description = Maybe Text
a} :: ConfigureLogsResponse)
configureLogsResponse_egressAccessLogs :: Lens.Lens' ConfigureLogsResponse (Prelude.Maybe EgressAccessLogs)
configureLogsResponse_egressAccessLogs :: Lens' ConfigureLogsResponse (Maybe EgressAccessLogs)
configureLogsResponse_egressAccessLogs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogsResponse' {Maybe EgressAccessLogs
egressAccessLogs :: Maybe EgressAccessLogs
$sel:egressAccessLogs:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe EgressAccessLogs
egressAccessLogs} -> Maybe EgressAccessLogs
egressAccessLogs) (\s :: ConfigureLogsResponse
s@ConfigureLogsResponse' {} Maybe EgressAccessLogs
a -> ConfigureLogsResponse
s {$sel:egressAccessLogs:ConfigureLogsResponse' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
a} :: ConfigureLogsResponse)
configureLogsResponse_hlsIngest :: Lens.Lens' ConfigureLogsResponse (Prelude.Maybe HlsIngest)
configureLogsResponse_hlsIngest :: Lens' ConfigureLogsResponse (Maybe HlsIngest)
configureLogsResponse_hlsIngest = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogsResponse' {Maybe HlsIngest
hlsIngest :: Maybe HlsIngest
$sel:hlsIngest:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe HlsIngest
hlsIngest} -> Maybe HlsIngest
hlsIngest) (\s :: ConfigureLogsResponse
s@ConfigureLogsResponse' {} Maybe HlsIngest
a -> ConfigureLogsResponse
s {$sel:hlsIngest:ConfigureLogsResponse' :: Maybe HlsIngest
hlsIngest = Maybe HlsIngest
a} :: ConfigureLogsResponse)
configureLogsResponse_id :: Lens.Lens' ConfigureLogsResponse (Prelude.Maybe Prelude.Text)
configureLogsResponse_id :: Lens' ConfigureLogsResponse (Maybe Text)
configureLogsResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogsResponse' {Maybe Text
id :: Maybe Text
$sel:id:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: ConfigureLogsResponse
s@ConfigureLogsResponse' {} Maybe Text
a -> ConfigureLogsResponse
s {$sel:id:ConfigureLogsResponse' :: Maybe Text
id = Maybe Text
a} :: ConfigureLogsResponse)
configureLogsResponse_ingressAccessLogs :: Lens.Lens' ConfigureLogsResponse (Prelude.Maybe IngressAccessLogs)
configureLogsResponse_ingressAccessLogs :: Lens' ConfigureLogsResponse (Maybe IngressAccessLogs)
configureLogsResponse_ingressAccessLogs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogsResponse' {Maybe IngressAccessLogs
ingressAccessLogs :: Maybe IngressAccessLogs
$sel:ingressAccessLogs:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe IngressAccessLogs
ingressAccessLogs} -> Maybe IngressAccessLogs
ingressAccessLogs) (\s :: ConfigureLogsResponse
s@ConfigureLogsResponse' {} Maybe IngressAccessLogs
a -> ConfigureLogsResponse
s {$sel:ingressAccessLogs:ConfigureLogsResponse' :: Maybe IngressAccessLogs
ingressAccessLogs = Maybe IngressAccessLogs
a} :: ConfigureLogsResponse)
configureLogsResponse_tags :: Lens.Lens' ConfigureLogsResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
configureLogsResponse_tags :: Lens' ConfigureLogsResponse (Maybe (HashMap Text Text))
configureLogsResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogsResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ConfigureLogsResponse
s@ConfigureLogsResponse' {} Maybe (HashMap Text Text)
a -> ConfigureLogsResponse
s {$sel:tags:ConfigureLogsResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ConfigureLogsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
configureLogsResponse_httpStatus :: Lens.Lens' ConfigureLogsResponse Prelude.Int
configureLogsResponse_httpStatus :: Lens' ConfigureLogsResponse Int
configureLogsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ConfigureLogsResponse' :: ConfigureLogsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ConfigureLogsResponse
s@ConfigureLogsResponse' {} Int
a -> ConfigureLogsResponse
s {$sel:httpStatus:ConfigureLogsResponse' :: Int
httpStatus = Int
a} :: ConfigureLogsResponse)
instance Prelude.NFData ConfigureLogsResponse where
rnf :: ConfigureLogsResponse -> ()
rnf ConfigureLogsResponse' {Int
Maybe Text
Maybe (HashMap Text Text)
Maybe EgressAccessLogs
Maybe HlsIngest
Maybe IngressAccessLogs
httpStatus :: Int
tags :: Maybe (HashMap Text Text)
ingressAccessLogs :: Maybe IngressAccessLogs
id :: Maybe Text
hlsIngest :: Maybe HlsIngest
egressAccessLogs :: Maybe EgressAccessLogs
description :: Maybe Text
arn :: Maybe Text
$sel:httpStatus:ConfigureLogsResponse' :: ConfigureLogsResponse -> Int
$sel:tags:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe (HashMap Text Text)
$sel:ingressAccessLogs:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe IngressAccessLogs
$sel:id:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe Text
$sel:hlsIngest:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe HlsIngest
$sel:egressAccessLogs:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe EgressAccessLogs
$sel:description:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe Text
$sel:arn:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EgressAccessLogs
egressAccessLogs
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe HlsIngest
hlsIngest
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe IngressAccessLogs
ingressAccessLogs
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus