{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaPackageVOD.ConfigureLogs
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Changes the packaging group\'s properities to configure log subscription
module Amazonka.MediaPackageVOD.ConfigureLogs
  ( -- * Creating a Request
    ConfigureLogs (..),
    newConfigureLogs,

    -- * Request Lenses
    configureLogs_egressAccessLogs,
    configureLogs_id,

    -- * Destructuring the Response
    ConfigureLogsResponse (..),
    newConfigureLogsResponse,

    -- * Response Lenses
    configureLogsResponse_arn,
    configureLogsResponse_authorization,
    configureLogsResponse_domainName,
    configureLogsResponse_egressAccessLogs,
    configureLogsResponse_id,
    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.MediaPackageVOD.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | The option to configure log subscription.
--
-- /See:/ 'newConfigureLogs' smart constructor.
data ConfigureLogs = ConfigureLogs'
  { ConfigureLogs -> Maybe EgressAccessLogs
egressAccessLogs :: Prelude.Maybe EgressAccessLogs,
    -- | The ID of a MediaPackage VOD PackagingGroup resource.
    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)

-- |
-- Create a value of 'ConfigureLogs' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'egressAccessLogs', 'configureLogs_egressAccessLogs' - Undocumented member.
--
-- 'id', 'configureLogs_id' - The ID of a MediaPackage VOD PackagingGroup resource.
newConfigureLogs ::
  -- | 'id'
  Prelude.Text ->
  ConfigureLogs
newConfigureLogs :: Text -> ConfigureLogs
newConfigureLogs Text
pId_ =
  ConfigureLogs'
    { $sel:egressAccessLogs:ConfigureLogs' :: Maybe EgressAccessLogs
egressAccessLogs = forall a. Maybe a
Prelude.Nothing,
      $sel:id:ConfigureLogs' :: Text
id = Text
pId_
    }

-- | Undocumented member.
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)

-- | The ID of a MediaPackage VOD PackagingGroup resource.
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 Authorization
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe Text
-> 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
"authorization")
            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
"domainName")
            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
"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
"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
Text
id :: Text
egressAccessLogs :: Maybe EgressAccessLogs
$sel:id:ConfigureLogs' :: ConfigureLogs -> Text
$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` Text
id

instance Prelude.NFData ConfigureLogs where
  rnf :: ConfigureLogs -> ()
rnf ConfigureLogs' {Maybe EgressAccessLogs
Text
id :: Text
egressAccessLogs :: Maybe EgressAccessLogs
$sel:id:ConfigureLogs' :: ConfigureLogs -> Text
$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 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
Text
id :: Text
egressAccessLogs :: Maybe EgressAccessLogs
$sel:id:ConfigureLogs' :: ConfigureLogs -> Text
$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
          ]
      )

instance Data.ToPath ConfigureLogs where
  toPath :: ConfigureLogs -> ByteString
toPath ConfigureLogs' {Maybe EgressAccessLogs
Text
id :: Text
egressAccessLogs :: Maybe EgressAccessLogs
$sel:id:ConfigureLogs' :: ConfigureLogs -> Text
$sel:egressAccessLogs:ConfigureLogs' :: ConfigureLogs -> Maybe EgressAccessLogs
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/packaging_groups/",
        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

-- | /See:/ 'newConfigureLogsResponse' smart constructor.
data ConfigureLogsResponse = ConfigureLogsResponse'
  { -- | The ARN of the PackagingGroup.
    ConfigureLogsResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    ConfigureLogsResponse -> Maybe Authorization
authorization :: Prelude.Maybe Authorization,
    -- | The fully qualified domain name for Assets in the PackagingGroup.
    ConfigureLogsResponse -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
    ConfigureLogsResponse -> Maybe EgressAccessLogs
egressAccessLogs :: Prelude.Maybe EgressAccessLogs,
    -- | The ID of the PackagingGroup.
    ConfigureLogsResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    ConfigureLogsResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'ConfigureLogsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'arn', 'configureLogsResponse_arn' - The ARN of the PackagingGroup.
--
-- 'authorization', 'configureLogsResponse_authorization' - Undocumented member.
--
-- 'domainName', 'configureLogsResponse_domainName' - The fully qualified domain name for Assets in the PackagingGroup.
--
-- 'egressAccessLogs', 'configureLogsResponse_egressAccessLogs' - Undocumented member.
--
-- 'id', 'configureLogsResponse_id' - The ID of the PackagingGroup.
--
-- 'tags', 'configureLogsResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'configureLogsResponse_httpStatus' - The response's http status code.
newConfigureLogsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ConfigureLogsResponse
newConfigureLogsResponse :: Int -> ConfigureLogsResponse
newConfigureLogsResponse Int
pHttpStatus_ =
  ConfigureLogsResponse'
    { $sel:arn:ConfigureLogsResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:authorization:ConfigureLogsResponse' :: Maybe Authorization
authorization = forall a. Maybe a
Prelude.Nothing,
      $sel:domainName:ConfigureLogsResponse' :: Maybe Text
domainName = forall a. Maybe a
Prelude.Nothing,
      $sel:egressAccessLogs:ConfigureLogsResponse' :: Maybe EgressAccessLogs
egressAccessLogs = forall a. Maybe a
Prelude.Nothing,
      $sel:id:ConfigureLogsResponse' :: Maybe Text
id = 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_
    }

-- | The ARN of the PackagingGroup.
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)

-- | Undocumented member.
configureLogsResponse_authorization :: Lens.Lens' ConfigureLogsResponse (Prelude.Maybe Authorization)
configureLogsResponse_authorization :: Lens' ConfigureLogsResponse (Maybe Authorization)
configureLogsResponse_authorization = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogsResponse' {Maybe Authorization
authorization :: Maybe Authorization
$sel:authorization:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe Authorization
authorization} -> Maybe Authorization
authorization) (\s :: ConfigureLogsResponse
s@ConfigureLogsResponse' {} Maybe Authorization
a -> ConfigureLogsResponse
s {$sel:authorization:ConfigureLogsResponse' :: Maybe Authorization
authorization = Maybe Authorization
a} :: ConfigureLogsResponse)

-- | The fully qualified domain name for Assets in the PackagingGroup.
configureLogsResponse_domainName :: Lens.Lens' ConfigureLogsResponse (Prelude.Maybe Prelude.Text)
configureLogsResponse_domainName :: Lens' ConfigureLogsResponse (Maybe Text)
configureLogsResponse_domainName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigureLogsResponse' {Maybe Text
domainName :: Maybe Text
$sel:domainName:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe Text
domainName} -> Maybe Text
domainName) (\s :: ConfigureLogsResponse
s@ConfigureLogsResponse' {} Maybe Text
a -> ConfigureLogsResponse
s {$sel:domainName:ConfigureLogsResponse' :: Maybe Text
domainName = Maybe Text
a} :: ConfigureLogsResponse)

-- | Undocumented member.
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)

-- | The ID of the PackagingGroup.
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)

-- | Undocumented member.
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

-- | The response's http status code.
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 Authorization
Maybe EgressAccessLogs
httpStatus :: Int
tags :: Maybe (HashMap Text Text)
id :: Maybe Text
egressAccessLogs :: Maybe EgressAccessLogs
domainName :: Maybe Text
authorization :: Maybe Authorization
arn :: Maybe Text
$sel:httpStatus:ConfigureLogsResponse' :: ConfigureLogsResponse -> Int
$sel:tags:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe (HashMap Text Text)
$sel:id:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe Text
$sel:egressAccessLogs:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe EgressAccessLogs
$sel:domainName:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe Text
$sel:authorization:ConfigureLogsResponse' :: ConfigureLogsResponse -> Maybe Authorization
$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 Authorization
authorization
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
domainName
      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 Text
id
      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