{-# 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.LakeFormation.AddLFTagsToResource
-- 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)
--
-- Attaches one or more tags to an existing resource.
module Amazonka.LakeFormation.AddLFTagsToResource
  ( -- * Creating a Request
    AddLFTagsToResource (..),
    newAddLFTagsToResource,

    -- * Request Lenses
    addLFTagsToResource_catalogId,
    addLFTagsToResource_resource,
    addLFTagsToResource_lFTags,

    -- * Destructuring the Response
    AddLFTagsToResourceResponse (..),
    newAddLFTagsToResourceResponse,

    -- * Response Lenses
    addLFTagsToResourceResponse_failures,
    addLFTagsToResourceResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.LakeFormation.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newAddLFTagsToResource' smart constructor.
data AddLFTagsToResource = AddLFTagsToResource'
  { -- | The identifier for the Data Catalog. By default, the account ID. The
    -- Data Catalog is the persistent metadata store. It contains database
    -- definitions, table definitions, and other control information to manage
    -- your AWS Lake Formation environment.
    AddLFTagsToResource -> Maybe Text
catalogId :: Prelude.Maybe Prelude.Text,
    -- | The resource to which to attach a tag.
    AddLFTagsToResource -> Resource
resource :: Resource,
    -- | The tags to attach to the resource.
    AddLFTagsToResource -> NonEmpty LFTagPair
lFTags :: Prelude.NonEmpty LFTagPair
  }
  deriving (AddLFTagsToResource -> AddLFTagsToResource -> Bool
(AddLFTagsToResource -> AddLFTagsToResource -> Bool)
-> (AddLFTagsToResource -> AddLFTagsToResource -> Bool)
-> Eq AddLFTagsToResource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AddLFTagsToResource -> AddLFTagsToResource -> Bool
$c/= :: AddLFTagsToResource -> AddLFTagsToResource -> Bool
== :: AddLFTagsToResource -> AddLFTagsToResource -> Bool
$c== :: AddLFTagsToResource -> AddLFTagsToResource -> Bool
Prelude.Eq, ReadPrec [AddLFTagsToResource]
ReadPrec AddLFTagsToResource
Int -> ReadS AddLFTagsToResource
ReadS [AddLFTagsToResource]
(Int -> ReadS AddLFTagsToResource)
-> ReadS [AddLFTagsToResource]
-> ReadPrec AddLFTagsToResource
-> ReadPrec [AddLFTagsToResource]
-> Read AddLFTagsToResource
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AddLFTagsToResource]
$creadListPrec :: ReadPrec [AddLFTagsToResource]
readPrec :: ReadPrec AddLFTagsToResource
$creadPrec :: ReadPrec AddLFTagsToResource
readList :: ReadS [AddLFTagsToResource]
$creadList :: ReadS [AddLFTagsToResource]
readsPrec :: Int -> ReadS AddLFTagsToResource
$creadsPrec :: Int -> ReadS AddLFTagsToResource
Prelude.Read, Int -> AddLFTagsToResource -> ShowS
[AddLFTagsToResource] -> ShowS
AddLFTagsToResource -> String
(Int -> AddLFTagsToResource -> ShowS)
-> (AddLFTagsToResource -> String)
-> ([AddLFTagsToResource] -> ShowS)
-> Show AddLFTagsToResource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AddLFTagsToResource] -> ShowS
$cshowList :: [AddLFTagsToResource] -> ShowS
show :: AddLFTagsToResource -> String
$cshow :: AddLFTagsToResource -> String
showsPrec :: Int -> AddLFTagsToResource -> ShowS
$cshowsPrec :: Int -> AddLFTagsToResource -> ShowS
Prelude.Show, (forall x. AddLFTagsToResource -> Rep AddLFTagsToResource x)
-> (forall x. Rep AddLFTagsToResource x -> AddLFTagsToResource)
-> Generic AddLFTagsToResource
forall x. Rep AddLFTagsToResource x -> AddLFTagsToResource
forall x. AddLFTagsToResource -> Rep AddLFTagsToResource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AddLFTagsToResource x -> AddLFTagsToResource
$cfrom :: forall x. AddLFTagsToResource -> Rep AddLFTagsToResource x
Prelude.Generic)

-- |
-- Create a value of 'AddLFTagsToResource' 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:
--
-- 'catalogId', 'addLFTagsToResource_catalogId' - The identifier for the Data Catalog. By default, the account ID. The
-- Data Catalog is the persistent metadata store. It contains database
-- definitions, table definitions, and other control information to manage
-- your AWS Lake Formation environment.
--
-- 'resource', 'addLFTagsToResource_resource' - The resource to which to attach a tag.
--
-- 'lFTags', 'addLFTagsToResource_lFTags' - The tags to attach to the resource.
newAddLFTagsToResource ::
  -- | 'resource'
  Resource ->
  -- | 'lFTags'
  Prelude.NonEmpty LFTagPair ->
  AddLFTagsToResource
newAddLFTagsToResource :: Resource -> NonEmpty LFTagPair -> AddLFTagsToResource
newAddLFTagsToResource Resource
pResource_ NonEmpty LFTagPair
pLFTags_ =
  AddLFTagsToResource' :: Maybe Text -> Resource -> NonEmpty LFTagPair -> AddLFTagsToResource
AddLFTagsToResource'
    { $sel:catalogId:AddLFTagsToResource' :: Maybe Text
catalogId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:resource:AddLFTagsToResource' :: Resource
resource = Resource
pResource_,
      $sel:lFTags:AddLFTagsToResource' :: NonEmpty LFTagPair
lFTags = Tagged (NonEmpty LFTagPair) (Identity (NonEmpty LFTagPair))
-> Tagged (NonEmpty LFTagPair) (Identity (NonEmpty LFTagPair))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty LFTagPair) (Identity (NonEmpty LFTagPair))
 -> Tagged (NonEmpty LFTagPair) (Identity (NonEmpty LFTagPair)))
-> NonEmpty LFTagPair -> NonEmpty LFTagPair
forall t b. AReview t b -> b -> t
Lens.# NonEmpty LFTagPair
pLFTags_
    }

-- | The identifier for the Data Catalog. By default, the account ID. The
-- Data Catalog is the persistent metadata store. It contains database
-- definitions, table definitions, and other control information to manage
-- your AWS Lake Formation environment.
addLFTagsToResource_catalogId :: Lens.Lens' AddLFTagsToResource (Prelude.Maybe Prelude.Text)
addLFTagsToResource_catalogId :: (Maybe Text -> f (Maybe Text))
-> AddLFTagsToResource -> f AddLFTagsToResource
addLFTagsToResource_catalogId = (AddLFTagsToResource -> Maybe Text)
-> (AddLFTagsToResource -> Maybe Text -> AddLFTagsToResource)
-> Lens
     AddLFTagsToResource AddLFTagsToResource (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddLFTagsToResource' {Maybe Text
catalogId :: Maybe Text
$sel:catalogId:AddLFTagsToResource' :: AddLFTagsToResource -> Maybe Text
catalogId} -> Maybe Text
catalogId) (\s :: AddLFTagsToResource
s@AddLFTagsToResource' {} Maybe Text
a -> AddLFTagsToResource
s {$sel:catalogId:AddLFTagsToResource' :: Maybe Text
catalogId = Maybe Text
a} :: AddLFTagsToResource)

-- | The resource to which to attach a tag.
addLFTagsToResource_resource :: Lens.Lens' AddLFTagsToResource Resource
addLFTagsToResource_resource :: (Resource -> f Resource)
-> AddLFTagsToResource -> f AddLFTagsToResource
addLFTagsToResource_resource = (AddLFTagsToResource -> Resource)
-> (AddLFTagsToResource -> Resource -> AddLFTagsToResource)
-> Lens AddLFTagsToResource AddLFTagsToResource Resource Resource
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddLFTagsToResource' {Resource
resource :: Resource
$sel:resource:AddLFTagsToResource' :: AddLFTagsToResource -> Resource
resource} -> Resource
resource) (\s :: AddLFTagsToResource
s@AddLFTagsToResource' {} Resource
a -> AddLFTagsToResource
s {$sel:resource:AddLFTagsToResource' :: Resource
resource = Resource
a} :: AddLFTagsToResource)

-- | The tags to attach to the resource.
addLFTagsToResource_lFTags :: Lens.Lens' AddLFTagsToResource (Prelude.NonEmpty LFTagPair)
addLFTagsToResource_lFTags :: (NonEmpty LFTagPair -> f (NonEmpty LFTagPair))
-> AddLFTagsToResource -> f AddLFTagsToResource
addLFTagsToResource_lFTags = (AddLFTagsToResource -> NonEmpty LFTagPair)
-> (AddLFTagsToResource
    -> NonEmpty LFTagPair -> AddLFTagsToResource)
-> Lens
     AddLFTagsToResource
     AddLFTagsToResource
     (NonEmpty LFTagPair)
     (NonEmpty LFTagPair)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddLFTagsToResource' {NonEmpty LFTagPair
lFTags :: NonEmpty LFTagPair
$sel:lFTags:AddLFTagsToResource' :: AddLFTagsToResource -> NonEmpty LFTagPair
lFTags} -> NonEmpty LFTagPair
lFTags) (\s :: AddLFTagsToResource
s@AddLFTagsToResource' {} NonEmpty LFTagPair
a -> AddLFTagsToResource
s {$sel:lFTags:AddLFTagsToResource' :: NonEmpty LFTagPair
lFTags = NonEmpty LFTagPair
a} :: AddLFTagsToResource) ((NonEmpty LFTagPair -> f (NonEmpty LFTagPair))
 -> AddLFTagsToResource -> f AddLFTagsToResource)
-> ((NonEmpty LFTagPair -> f (NonEmpty LFTagPair))
    -> NonEmpty LFTagPair -> f (NonEmpty LFTagPair))
-> (NonEmpty LFTagPair -> f (NonEmpty LFTagPair))
-> AddLFTagsToResource
-> f AddLFTagsToResource
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty LFTagPair -> f (NonEmpty LFTagPair))
-> NonEmpty LFTagPair -> f (NonEmpty LFTagPair)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest AddLFTagsToResource where
  type
    AWSResponse AddLFTagsToResource =
      AddLFTagsToResourceResponse
  request :: AddLFTagsToResource -> Request AddLFTagsToResource
request = Service -> AddLFTagsToResource -> Request AddLFTagsToResource
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy AddLFTagsToResource
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse AddLFTagsToResource)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse AddLFTagsToResource))
-> Logger
-> Service
-> Proxy AddLFTagsToResource
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse AddLFTagsToResource)))
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 [LFTagError] -> Int -> AddLFTagsToResourceResponse
AddLFTagsToResourceResponse'
            (Maybe [LFTagError] -> Int -> AddLFTagsToResourceResponse)
-> Either String (Maybe [LFTagError])
-> Either String (Int -> AddLFTagsToResourceResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [LFTagError]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Failures" Either String (Maybe (Maybe [LFTagError]))
-> Maybe [LFTagError] -> Either String (Maybe [LFTagError])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LFTagError]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> AddLFTagsToResourceResponse)
-> Either String Int -> Either String AddLFTagsToResourceResponse
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 AddLFTagsToResource

instance Prelude.NFData AddLFTagsToResource

instance Core.ToHeaders AddLFTagsToResource where
  toHeaders :: AddLFTagsToResource -> ResponseHeaders
toHeaders =
    ResponseHeaders -> AddLFTagsToResource -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSLakeFormation.AddLFTagsToResource" ::
                          Prelude.ByteString
                      ),
            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.ToJSON AddLFTagsToResource where
  toJSON :: AddLFTagsToResource -> Value
toJSON AddLFTagsToResource' {Maybe Text
NonEmpty LFTagPair
Resource
lFTags :: NonEmpty LFTagPair
resource :: Resource
catalogId :: Maybe Text
$sel:lFTags:AddLFTagsToResource' :: AddLFTagsToResource -> NonEmpty LFTagPair
$sel:resource:AddLFTagsToResource' :: AddLFTagsToResource -> Resource
$sel:catalogId:AddLFTagsToResource' :: AddLFTagsToResource -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"CatalogId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
catalogId,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Resource" Text -> Resource -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Resource
resource),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"LFTags" Text -> NonEmpty LFTagPair -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty LFTagPair
lFTags)
          ]
      )

instance Core.ToPath AddLFTagsToResource where
  toPath :: AddLFTagsToResource -> ByteString
toPath = ByteString -> AddLFTagsToResource -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery AddLFTagsToResource where
  toQuery :: AddLFTagsToResource -> QueryString
toQuery = QueryString -> AddLFTagsToResource -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newAddLFTagsToResourceResponse' smart constructor.
data AddLFTagsToResourceResponse = AddLFTagsToResourceResponse'
  { -- | A list of failures to tag the resource.
    AddLFTagsToResourceResponse -> Maybe [LFTagError]
failures :: Prelude.Maybe [LFTagError],
    -- | The response's http status code.
    AddLFTagsToResourceResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (AddLFTagsToResourceResponse -> AddLFTagsToResourceResponse -> Bool
(AddLFTagsToResourceResponse
 -> AddLFTagsToResourceResponse -> Bool)
-> (AddLFTagsToResourceResponse
    -> AddLFTagsToResourceResponse -> Bool)
-> Eq AddLFTagsToResourceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AddLFTagsToResourceResponse -> AddLFTagsToResourceResponse -> Bool
$c/= :: AddLFTagsToResourceResponse -> AddLFTagsToResourceResponse -> Bool
== :: AddLFTagsToResourceResponse -> AddLFTagsToResourceResponse -> Bool
$c== :: AddLFTagsToResourceResponse -> AddLFTagsToResourceResponse -> Bool
Prelude.Eq, ReadPrec [AddLFTagsToResourceResponse]
ReadPrec AddLFTagsToResourceResponse
Int -> ReadS AddLFTagsToResourceResponse
ReadS [AddLFTagsToResourceResponse]
(Int -> ReadS AddLFTagsToResourceResponse)
-> ReadS [AddLFTagsToResourceResponse]
-> ReadPrec AddLFTagsToResourceResponse
-> ReadPrec [AddLFTagsToResourceResponse]
-> Read AddLFTagsToResourceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AddLFTagsToResourceResponse]
$creadListPrec :: ReadPrec [AddLFTagsToResourceResponse]
readPrec :: ReadPrec AddLFTagsToResourceResponse
$creadPrec :: ReadPrec AddLFTagsToResourceResponse
readList :: ReadS [AddLFTagsToResourceResponse]
$creadList :: ReadS [AddLFTagsToResourceResponse]
readsPrec :: Int -> ReadS AddLFTagsToResourceResponse
$creadsPrec :: Int -> ReadS AddLFTagsToResourceResponse
Prelude.Read, Int -> AddLFTagsToResourceResponse -> ShowS
[AddLFTagsToResourceResponse] -> ShowS
AddLFTagsToResourceResponse -> String
(Int -> AddLFTagsToResourceResponse -> ShowS)
-> (AddLFTagsToResourceResponse -> String)
-> ([AddLFTagsToResourceResponse] -> ShowS)
-> Show AddLFTagsToResourceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AddLFTagsToResourceResponse] -> ShowS
$cshowList :: [AddLFTagsToResourceResponse] -> ShowS
show :: AddLFTagsToResourceResponse -> String
$cshow :: AddLFTagsToResourceResponse -> String
showsPrec :: Int -> AddLFTagsToResourceResponse -> ShowS
$cshowsPrec :: Int -> AddLFTagsToResourceResponse -> ShowS
Prelude.Show, (forall x.
 AddLFTagsToResourceResponse -> Rep AddLFTagsToResourceResponse x)
-> (forall x.
    Rep AddLFTagsToResourceResponse x -> AddLFTagsToResourceResponse)
-> Generic AddLFTagsToResourceResponse
forall x.
Rep AddLFTagsToResourceResponse x -> AddLFTagsToResourceResponse
forall x.
AddLFTagsToResourceResponse -> Rep AddLFTagsToResourceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AddLFTagsToResourceResponse x -> AddLFTagsToResourceResponse
$cfrom :: forall x.
AddLFTagsToResourceResponse -> Rep AddLFTagsToResourceResponse x
Prelude.Generic)

-- |
-- Create a value of 'AddLFTagsToResourceResponse' 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:
--
-- 'failures', 'addLFTagsToResourceResponse_failures' - A list of failures to tag the resource.
--
-- 'httpStatus', 'addLFTagsToResourceResponse_httpStatus' - The response's http status code.
newAddLFTagsToResourceResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  AddLFTagsToResourceResponse
newAddLFTagsToResourceResponse :: Int -> AddLFTagsToResourceResponse
newAddLFTagsToResourceResponse Int
pHttpStatus_ =
  AddLFTagsToResourceResponse' :: Maybe [LFTagError] -> Int -> AddLFTagsToResourceResponse
AddLFTagsToResourceResponse'
    { $sel:failures:AddLFTagsToResourceResponse' :: Maybe [LFTagError]
failures =
        Maybe [LFTagError]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:AddLFTagsToResourceResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of failures to tag the resource.
addLFTagsToResourceResponse_failures :: Lens.Lens' AddLFTagsToResourceResponse (Prelude.Maybe [LFTagError])
addLFTagsToResourceResponse_failures :: (Maybe [LFTagError] -> f (Maybe [LFTagError]))
-> AddLFTagsToResourceResponse -> f AddLFTagsToResourceResponse
addLFTagsToResourceResponse_failures = (AddLFTagsToResourceResponse -> Maybe [LFTagError])
-> (AddLFTagsToResourceResponse
    -> Maybe [LFTagError] -> AddLFTagsToResourceResponse)
-> Lens
     AddLFTagsToResourceResponse
     AddLFTagsToResourceResponse
     (Maybe [LFTagError])
     (Maybe [LFTagError])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddLFTagsToResourceResponse' {Maybe [LFTagError]
failures :: Maybe [LFTagError]
$sel:failures:AddLFTagsToResourceResponse' :: AddLFTagsToResourceResponse -> Maybe [LFTagError]
failures} -> Maybe [LFTagError]
failures) (\s :: AddLFTagsToResourceResponse
s@AddLFTagsToResourceResponse' {} Maybe [LFTagError]
a -> AddLFTagsToResourceResponse
s {$sel:failures:AddLFTagsToResourceResponse' :: Maybe [LFTagError]
failures = Maybe [LFTagError]
a} :: AddLFTagsToResourceResponse) ((Maybe [LFTagError] -> f (Maybe [LFTagError]))
 -> AddLFTagsToResourceResponse -> f AddLFTagsToResourceResponse)
-> ((Maybe [LFTagError] -> f (Maybe [LFTagError]))
    -> Maybe [LFTagError] -> f (Maybe [LFTagError]))
-> (Maybe [LFTagError] -> f (Maybe [LFTagError]))
-> AddLFTagsToResourceResponse
-> f AddLFTagsToResourceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [LFTagError] [LFTagError] [LFTagError] [LFTagError]
-> Iso
     (Maybe [LFTagError])
     (Maybe [LFTagError])
     (Maybe [LFTagError])
     (Maybe [LFTagError])
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 [LFTagError] [LFTagError] [LFTagError] [LFTagError]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
addLFTagsToResourceResponse_httpStatus :: Lens.Lens' AddLFTagsToResourceResponse Prelude.Int
addLFTagsToResourceResponse_httpStatus :: (Int -> f Int)
-> AddLFTagsToResourceResponse -> f AddLFTagsToResourceResponse
addLFTagsToResourceResponse_httpStatus = (AddLFTagsToResourceResponse -> Int)
-> (AddLFTagsToResourceResponse
    -> Int -> AddLFTagsToResourceResponse)
-> Lens
     AddLFTagsToResourceResponse AddLFTagsToResourceResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AddLFTagsToResourceResponse' {Int
httpStatus :: Int
$sel:httpStatus:AddLFTagsToResourceResponse' :: AddLFTagsToResourceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: AddLFTagsToResourceResponse
s@AddLFTagsToResourceResponse' {} Int
a -> AddLFTagsToResourceResponse
s {$sel:httpStatus:AddLFTagsToResourceResponse' :: Int
httpStatus = Int
a} :: AddLFTagsToResourceResponse)

instance Prelude.NFData AddLFTagsToResourceResponse