{-# 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 #-}
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
data ImportAssetsFromLakeFormationTagPolicyRequestDetails = ImportAssetsFromLakeFormationTagPolicyRequestDetails'
{
ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe DatabaseLFTagPolicyAndPermissions
database :: Prelude.Maybe DatabaseLFTagPolicyAndPermissions,
ImportAssetsFromLakeFormationTagPolicyRequestDetails
-> Maybe TableLFTagPolicyAndPermissions
table :: Prelude.Maybe TableLFTagPolicyAndPermissions,
ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
catalogId :: Prelude.Text,
ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
roleArn :: Prelude.Text,
ImportAssetsFromLakeFormationTagPolicyRequestDetails -> Text
dataSetId :: Prelude.Text,
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)
newImportAssetsFromLakeFormationTagPolicyRequestDetails ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
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_
}
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)
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)
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)
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)
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)
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)
]
)