{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.DataExchange.Types.ImportAssetsFromLakeFormationTagPolicyRequestDetails
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DataExchange.Types.ImportAssetsFromLakeFormationTagPolicyRequestDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.DataExchange.Types.DatabaseLFTagPolicyAndPermissions
import Amazonka.DataExchange.Types.TableLFTagPolicyAndPermissions
import qualified Amazonka.Prelude as Prelude

-- | Details about the assets imported from an AWS Lake Formation tag policy
-- request.
--
-- /See:/ 'newImportAssetsFromLakeFormationTagPolicyRequestDetails' smart constructor.
data ImportAssetsFromLakeFormationTagPolicyRequestDetails = ImportAssetsFromLakeFormationTagPolicyRequestDetails'
  { -- | A structure for the database object.
    ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe DatabaseLFTagPolicyAndPermissions
database :: Prelude.Maybe DatabaseLFTagPolicyAndPermissions,
    -- | A structure for the table object.
    ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe TableLFTagPolicyAndPermissions
table :: Prelude.Maybe TableLFTagPolicyAndPermissions,
    -- | The identifier for the AWS Glue Data Catalog.
    ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
catalogId :: Prelude.Text,
    -- | The IAM role\'s ARN that allows AWS Data Exchange to assume the role and
    -- grant and revoke permissions of subscribers to AWS Lake Formation data
    -- permissions.
    ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
roleArn :: Prelude.Text,
    -- | The unique identifier for the data set associated with this import job.
    ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
dataSetId :: Prelude.Text,
    -- | The unique identifier for the revision associated with this import job.
    ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
revisionId :: Prelude.Text
  }
  deriving (ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Bool
$c/= :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Bool
== :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Bool
$c== :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Bool
Prelude.Eq, ReadPrec [ImportAssetsFromLakeFormationTagPolicyRequestDetails]
ReadPrec ImportAssetsFromLakeFormationTagPolicyRequestDetails
Int -> ReadS ImportAssetsFromLakeFormationTagPolicyRequestDetails
ReadS [ImportAssetsFromLakeFormationTagPolicyRequestDetails]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportAssetsFromLakeFormationTagPolicyRequestDetails]
$creadListPrec :: ReadPrec [ImportAssetsFromLakeFormationTagPolicyRequestDetails]
readPrec :: ReadPrec ImportAssetsFromLakeFormationTagPolicyRequestDetails
$creadPrec :: ReadPrec ImportAssetsFromLakeFormationTagPolicyRequestDetails
readList :: ReadS [ImportAssetsFromLakeFormationTagPolicyRequestDetails]
$creadList :: ReadS [ImportAssetsFromLakeFormationTagPolicyRequestDetails]
readsPrec :: Int -> ReadS ImportAssetsFromLakeFormationTagPolicyRequestDetails
$creadsPrec :: Int -> ReadS ImportAssetsFromLakeFormationTagPolicyRequestDetails
Prelude.Read, Int
-> ImportAssetsFromLakeFormationTagPolicyRequestDetails -> ShowS
[ImportAssetsFromLakeFormationTagPolicyRequestDetails] -> ShowS
ImportAssetsFromLakeFormationTagPolicyRequestDetails -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportAssetsFromLakeFormationTagPolicyRequestDetails] -> ShowS
$cshowList :: [ImportAssetsFromLakeFormationTagPolicyRequestDetails] -> ShowS
show :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> String
$cshow :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> String
showsPrec :: Int
-> ImportAssetsFromLakeFormationTagPolicyRequestDetails -> ShowS
$cshowsPrec :: Int
-> ImportAssetsFromLakeFormationTagPolicyRequestDetails -> ShowS
Prelude.Show, forall x.
Rep ImportAssetsFromLakeFormationTagPolicyRequestDetails x
-> ImportAssetsFromLakeFormationTagPolicyRequestDetails
forall x.
ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Rep ImportAssetsFromLakeFormationTagPolicyRequestDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ImportAssetsFromLakeFormationTagPolicyRequestDetails x
-> ImportAssetsFromLakeFormationTagPolicyRequestDetails
$cfrom :: forall x.
ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Rep ImportAssetsFromLakeFormationTagPolicyRequestDetails x
Prelude.Generic)

-- |
-- Create a value of 'ImportAssetsFromLakeFormationTagPolicyRequestDetails' 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:
--
-- 'database', 'importAssetsFromLakeFormationTagPolicyRequestDetails_database' - A structure for the database object.
--
-- 'table', 'importAssetsFromLakeFormationTagPolicyRequestDetails_table' - A structure for the table object.
--
-- 'catalogId', 'importAssetsFromLakeFormationTagPolicyRequestDetails_catalogId' - The identifier for the AWS Glue Data Catalog.
--
-- 'roleArn', 'importAssetsFromLakeFormationTagPolicyRequestDetails_roleArn' - The IAM role\'s ARN that allows AWS Data Exchange to assume the role and
-- grant and revoke permissions of subscribers to AWS Lake Formation data
-- permissions.
--
-- 'dataSetId', 'importAssetsFromLakeFormationTagPolicyRequestDetails_dataSetId' - The unique identifier for the data set associated with this import job.
--
-- 'revisionId', 'importAssetsFromLakeFormationTagPolicyRequestDetails_revisionId' - The unique identifier for the revision associated with this import job.
newImportAssetsFromLakeFormationTagPolicyRequestDetails ::
  -- | 'catalogId'
  Prelude.Text ->
  -- | 'roleArn'
  Prelude.Text ->
  -- | 'dataSetId'
  Prelude.Text ->
  -- | 'revisionId'
  Prelude.Text ->
  ImportAssetsFromLakeFormationTagPolicyRequestDetails
newImportAssetsFromLakeFormationTagPolicyRequestDetails :: Text
-> Text
-> Text
-> Text
-> ImportAssetsFromLakeFormationTagPolicyRequestDetails
newImportAssetsFromLakeFormationTagPolicyRequestDetails
  Text
pCatalogId_
  Text
pRoleArn_
  Text
pDataSetId_
  Text
pRevisionId_ =
    ImportAssetsFromLakeFormationTagPolicyRequestDetails'
      { $sel:database:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Maybe DatabaseLFTagPolicyAndPermissions
database =
          forall a. Maybe a
Prelude.Nothing,
        $sel:table:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Maybe TableLFTagPolicyAndPermissions
table =
          forall a. Maybe a
Prelude.Nothing,
        $sel:catalogId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Text
catalogId =
          Text
pCatalogId_,
        $sel:roleArn:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Text
roleArn = Text
pRoleArn_,
        $sel:dataSetId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Text
dataSetId =
          Text
pDataSetId_,
        $sel:revisionId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Text
revisionId =
          Text
pRevisionId_
      }

-- | A structure for the database object.
importAssetsFromLakeFormationTagPolicyRequestDetails_database :: Lens.Lens' ImportAssetsFromLakeFormationTagPolicyRequestDetails (Prelude.Maybe DatabaseLFTagPolicyAndPermissions)
importAssetsFromLakeFormationTagPolicyRequestDetails_database :: Lens'
  ImportAssetsFromLakeFormationTagPolicyRequestDetails
  (Maybe DatabaseLFTagPolicyAndPermissions)
importAssetsFromLakeFormationTagPolicyRequestDetails_database = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetsFromLakeFormationTagPolicyRequestDetails' {Maybe DatabaseLFTagPolicyAndPermissions
database :: Maybe DatabaseLFTagPolicyAndPermissions
$sel:database:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe DatabaseLFTagPolicyAndPermissions
database} -> Maybe DatabaseLFTagPolicyAndPermissions
database) (\s :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
s@ImportAssetsFromLakeFormationTagPolicyRequestDetails' {} Maybe DatabaseLFTagPolicyAndPermissions
a -> ImportAssetsFromLakeFormationTagPolicyRequestDetails
s {$sel:database:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Maybe DatabaseLFTagPolicyAndPermissions
database = Maybe DatabaseLFTagPolicyAndPermissions
a} :: ImportAssetsFromLakeFormationTagPolicyRequestDetails)

-- | A structure for the table object.
importAssetsFromLakeFormationTagPolicyRequestDetails_table :: Lens.Lens' ImportAssetsFromLakeFormationTagPolicyRequestDetails (Prelude.Maybe TableLFTagPolicyAndPermissions)
importAssetsFromLakeFormationTagPolicyRequestDetails_table :: Lens'
  ImportAssetsFromLakeFormationTagPolicyRequestDetails
  (Maybe TableLFTagPolicyAndPermissions)
importAssetsFromLakeFormationTagPolicyRequestDetails_table = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetsFromLakeFormationTagPolicyRequestDetails' {Maybe TableLFTagPolicyAndPermissions
table :: Maybe TableLFTagPolicyAndPermissions
$sel:table:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe TableLFTagPolicyAndPermissions
table} -> Maybe TableLFTagPolicyAndPermissions
table) (\s :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
s@ImportAssetsFromLakeFormationTagPolicyRequestDetails' {} Maybe TableLFTagPolicyAndPermissions
a -> ImportAssetsFromLakeFormationTagPolicyRequestDetails
s {$sel:table:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Maybe TableLFTagPolicyAndPermissions
table = Maybe TableLFTagPolicyAndPermissions
a} :: ImportAssetsFromLakeFormationTagPolicyRequestDetails)

-- | The identifier for the AWS Glue Data Catalog.
importAssetsFromLakeFormationTagPolicyRequestDetails_catalogId :: Lens.Lens' ImportAssetsFromLakeFormationTagPolicyRequestDetails Prelude.Text
importAssetsFromLakeFormationTagPolicyRequestDetails_catalogId :: Lens' ImportAssetsFromLakeFormationTagPolicyRequestDetails Text
importAssetsFromLakeFormationTagPolicyRequestDetails_catalogId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetsFromLakeFormationTagPolicyRequestDetails' {Text
catalogId :: Text
$sel:catalogId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
catalogId} -> Text
catalogId) (\s :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
s@ImportAssetsFromLakeFormationTagPolicyRequestDetails' {} Text
a -> ImportAssetsFromLakeFormationTagPolicyRequestDetails
s {$sel:catalogId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Text
catalogId = Text
a} :: ImportAssetsFromLakeFormationTagPolicyRequestDetails)

-- | The IAM role\'s ARN that allows AWS Data Exchange to assume the role and
-- grant and revoke permissions of subscribers to AWS Lake Formation data
-- permissions.
importAssetsFromLakeFormationTagPolicyRequestDetails_roleArn :: Lens.Lens' ImportAssetsFromLakeFormationTagPolicyRequestDetails Prelude.Text
importAssetsFromLakeFormationTagPolicyRequestDetails_roleArn :: Lens' ImportAssetsFromLakeFormationTagPolicyRequestDetails Text
importAssetsFromLakeFormationTagPolicyRequestDetails_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetsFromLakeFormationTagPolicyRequestDetails' {Text
roleArn :: Text
$sel:roleArn:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
roleArn} -> Text
roleArn) (\s :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
s@ImportAssetsFromLakeFormationTagPolicyRequestDetails' {} Text
a -> ImportAssetsFromLakeFormationTagPolicyRequestDetails
s {$sel:roleArn:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Text
roleArn = Text
a} :: ImportAssetsFromLakeFormationTagPolicyRequestDetails)

-- | The unique identifier for the data set associated with this import job.
importAssetsFromLakeFormationTagPolicyRequestDetails_dataSetId :: Lens.Lens' ImportAssetsFromLakeFormationTagPolicyRequestDetails Prelude.Text
importAssetsFromLakeFormationTagPolicyRequestDetails_dataSetId :: Lens' ImportAssetsFromLakeFormationTagPolicyRequestDetails Text
importAssetsFromLakeFormationTagPolicyRequestDetails_dataSetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetsFromLakeFormationTagPolicyRequestDetails' {Text
dataSetId :: Text
$sel:dataSetId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
dataSetId} -> Text
dataSetId) (\s :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
s@ImportAssetsFromLakeFormationTagPolicyRequestDetails' {} Text
a -> ImportAssetsFromLakeFormationTagPolicyRequestDetails
s {$sel:dataSetId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Text
dataSetId = Text
a} :: ImportAssetsFromLakeFormationTagPolicyRequestDetails)

-- | The unique identifier for the revision associated with this import job.
importAssetsFromLakeFormationTagPolicyRequestDetails_revisionId :: Lens.Lens' ImportAssetsFromLakeFormationTagPolicyRequestDetails Prelude.Text
importAssetsFromLakeFormationTagPolicyRequestDetails_revisionId :: Lens' ImportAssetsFromLakeFormationTagPolicyRequestDetails Text
importAssetsFromLakeFormationTagPolicyRequestDetails_revisionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetsFromLakeFormationTagPolicyRequestDetails' {Text
revisionId :: Text
$sel:revisionId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
revisionId} -> Text
revisionId) (\s :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
s@ImportAssetsFromLakeFormationTagPolicyRequestDetails' {} Text
a -> ImportAssetsFromLakeFormationTagPolicyRequestDetails
s {$sel:revisionId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: Text
revisionId = Text
a} :: ImportAssetsFromLakeFormationTagPolicyRequestDetails)

instance
  Prelude.Hashable
    ImportAssetsFromLakeFormationTagPolicyRequestDetails
  where
  hashWithSalt :: Int -> ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Int
hashWithSalt
    Int
_salt
    ImportAssetsFromLakeFormationTagPolicyRequestDetails' {Maybe DatabaseLFTagPolicyAndPermissions
Maybe TableLFTagPolicyAndPermissions
Text
revisionId :: Text
dataSetId :: Text
roleArn :: Text
catalogId :: Text
table :: Maybe TableLFTagPolicyAndPermissions
database :: Maybe DatabaseLFTagPolicyAndPermissions
$sel:revisionId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:dataSetId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:roleArn:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:catalogId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:table:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe TableLFTagPolicyAndPermissions
$sel:database:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe DatabaseLFTagPolicyAndPermissions
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DatabaseLFTagPolicyAndPermissions
database
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TableLFTagPolicyAndPermissions
table
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
catalogId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
roleArn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
dataSetId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
revisionId

instance
  Prelude.NFData
    ImportAssetsFromLakeFormationTagPolicyRequestDetails
  where
  rnf :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> ()
rnf
    ImportAssetsFromLakeFormationTagPolicyRequestDetails' {Maybe DatabaseLFTagPolicyAndPermissions
Maybe TableLFTagPolicyAndPermissions
Text
revisionId :: Text
dataSetId :: Text
roleArn :: Text
catalogId :: Text
table :: Maybe TableLFTagPolicyAndPermissions
database :: Maybe DatabaseLFTagPolicyAndPermissions
$sel:revisionId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:dataSetId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:roleArn:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:catalogId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:table:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe TableLFTagPolicyAndPermissions
$sel:database:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe DatabaseLFTagPolicyAndPermissions
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Maybe DatabaseLFTagPolicyAndPermissions
database
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TableLFTagPolicyAndPermissions
table
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
catalogId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
roleArn
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
dataSetId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
revisionId

instance
  Data.ToJSON
    ImportAssetsFromLakeFormationTagPolicyRequestDetails
  where
  toJSON :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Value
toJSON
    ImportAssetsFromLakeFormationTagPolicyRequestDetails' {Maybe DatabaseLFTagPolicyAndPermissions
Maybe TableLFTagPolicyAndPermissions
Text
revisionId :: Text
dataSetId :: Text
roleArn :: Text
catalogId :: Text
table :: Maybe TableLFTagPolicyAndPermissions
database :: Maybe DatabaseLFTagPolicyAndPermissions
$sel:revisionId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:dataSetId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:roleArn:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:catalogId:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
$sel:table:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe TableLFTagPolicyAndPermissions
$sel:database:ImportAssetsFromLakeFormationTagPolicyRequestDetails' :: ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe DatabaseLFTagPolicyAndPermissions
..} =
      [Pair] -> Value
Data.object
        ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
            [ (Key
"Database" 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 DatabaseLFTagPolicyAndPermissions
database,
              (Key
"Table" 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 TableLFTagPolicyAndPermissions
table,
              forall a. a -> Maybe a
Prelude.Just (Key
"CatalogId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
catalogId),
              forall a. a -> Maybe a
Prelude.Just (Key
"RoleArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
roleArn),
              forall a. a -> Maybe a
Prelude.Just (Key
"DataSetId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
dataSetId),
              forall a. a -> Maybe a
Prelude.Just (Key
"RevisionId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
revisionId)
            ]
        )