module Stratosphere.CleanRooms.IdMappingTable (
module Exports, IdMappingTable(..), mkIdMappingTable
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CleanRooms.IdMappingTable.IdMappingTableInputReferenceConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data IdMappingTable
=
IdMappingTable {IdMappingTable -> ()
haddock_workaround_ :: (),
IdMappingTable -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
IdMappingTable -> IdMappingTableInputReferenceConfigProperty
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty,
IdMappingTable -> Maybe (Value Text)
kmsKeyArn :: (Prelude.Maybe (Value Prelude.Text)),
IdMappingTable -> Value Text
membershipIdentifier :: (Value Prelude.Text),
IdMappingTable -> Value Text
name :: (Value Prelude.Text),
IdMappingTable -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (IdMappingTable -> IdMappingTable -> Bool
(IdMappingTable -> IdMappingTable -> Bool)
-> (IdMappingTable -> IdMappingTable -> Bool) -> Eq IdMappingTable
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IdMappingTable -> IdMappingTable -> Bool
== :: IdMappingTable -> IdMappingTable -> Bool
$c/= :: IdMappingTable -> IdMappingTable -> Bool
/= :: IdMappingTable -> IdMappingTable -> Bool
Prelude.Eq, Int -> IdMappingTable -> ShowS
[IdMappingTable] -> ShowS
IdMappingTable -> String
(Int -> IdMappingTable -> ShowS)
-> (IdMappingTable -> String)
-> ([IdMappingTable] -> ShowS)
-> Show IdMappingTable
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IdMappingTable -> ShowS
showsPrec :: Int -> IdMappingTable -> ShowS
$cshow :: IdMappingTable -> String
show :: IdMappingTable -> String
$cshowList :: [IdMappingTable] -> ShowS
showList :: [IdMappingTable] -> ShowS
Prelude.Show)
mkIdMappingTable ::
IdMappingTableInputReferenceConfigProperty
-> Value Prelude.Text -> Value Prelude.Text -> IdMappingTable
mkIdMappingTable :: IdMappingTableInputReferenceConfigProperty
-> Value Text -> Value Text -> IdMappingTable
mkIdMappingTable IdMappingTableInputReferenceConfigProperty
inputReferenceConfig Value Text
membershipIdentifier Value Text
name
= IdMappingTable
{haddock_workaround_ :: ()
haddock_workaround_ = (),
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
inputReferenceConfig = IdMappingTableInputReferenceConfigProperty
inputReferenceConfig,
membershipIdentifier :: Value Text
membershipIdentifier = Value Text
membershipIdentifier, name :: Value Text
name = Value Text
name,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, kmsKeyArn :: Maybe (Value Text)
kmsKeyArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IdMappingTable where
toResourceProperties :: IdMappingTable -> ResourceProperties
toResourceProperties IdMappingTable {Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: IdMappingTable -> ()
description :: IdMappingTable -> Maybe (Value Text)
inputReferenceConfig :: IdMappingTable -> IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: IdMappingTable -> Maybe (Value Text)
membershipIdentifier :: IdMappingTable -> Value Text
name :: IdMappingTable -> Value Text
tags :: IdMappingTable -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CleanRooms::IdMappingTable",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"InputReferenceConfig" Key -> IdMappingTableInputReferenceConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= IdMappingTableInputReferenceConfigProperty
inputReferenceConfig,
Key
"MembershipIdentifier" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
membershipIdentifier,
Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KmsKeyArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
kmsKeyArn,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON IdMappingTable where
toJSON :: IdMappingTable -> Value
toJSON IdMappingTable {Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: IdMappingTable -> ()
description :: IdMappingTable -> Maybe (Value Text)
inputReferenceConfig :: IdMappingTable -> IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: IdMappingTable -> Maybe (Value Text)
membershipIdentifier :: IdMappingTable -> Value Text
name :: IdMappingTable -> Value Text
tags :: IdMappingTable -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"InputReferenceConfig" Key -> IdMappingTableInputReferenceConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= IdMappingTableInputReferenceConfigProperty
inputReferenceConfig,
Key
"MembershipIdentifier" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
membershipIdentifier,
Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KmsKeyArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
kmsKeyArn,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "Description" IdMappingTable where
type PropertyType "Description" IdMappingTable = Value Prelude.Text
set :: PropertyType "Description" IdMappingTable
-> IdMappingTable -> IdMappingTable
set PropertyType "Description" IdMappingTable
newValue IdMappingTable {Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: IdMappingTable -> ()
description :: IdMappingTable -> Maybe (Value Text)
inputReferenceConfig :: IdMappingTable -> IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: IdMappingTable -> Maybe (Value Text)
membershipIdentifier :: IdMappingTable -> Value Text
name :: IdMappingTable -> Value Text
tags :: IdMappingTable -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
= IdMappingTable {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" IdMappingTable
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: ()
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "InputReferenceConfig" IdMappingTable where
type PropertyType "InputReferenceConfig" IdMappingTable = IdMappingTableInputReferenceConfigProperty
set :: PropertyType "InputReferenceConfig" IdMappingTable
-> IdMappingTable -> IdMappingTable
set PropertyType "InputReferenceConfig" IdMappingTable
newValue IdMappingTable {Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: IdMappingTable -> ()
description :: IdMappingTable -> Maybe (Value Text)
inputReferenceConfig :: IdMappingTable -> IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: IdMappingTable -> Maybe (Value Text)
membershipIdentifier :: IdMappingTable -> Value Text
name :: IdMappingTable -> Value Text
tags :: IdMappingTable -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
= IdMappingTable {inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
inputReferenceConfig = PropertyType "InputReferenceConfig" IdMappingTable
IdMappingTableInputReferenceConfigProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "KmsKeyArn" IdMappingTable where
type PropertyType "KmsKeyArn" IdMappingTable = Value Prelude.Text
set :: PropertyType "KmsKeyArn" IdMappingTable
-> IdMappingTable -> IdMappingTable
set PropertyType "KmsKeyArn" IdMappingTable
newValue IdMappingTable {Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: IdMappingTable -> ()
description :: IdMappingTable -> Maybe (Value Text)
inputReferenceConfig :: IdMappingTable -> IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: IdMappingTable -> Maybe (Value Text)
membershipIdentifier :: IdMappingTable -> Value Text
name :: IdMappingTable -> Value Text
tags :: IdMappingTable -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
= IdMappingTable {kmsKeyArn :: Maybe (Value Text)
kmsKeyArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyArn" IdMappingTable
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "MembershipIdentifier" IdMappingTable where
type PropertyType "MembershipIdentifier" IdMappingTable = Value Prelude.Text
set :: PropertyType "MembershipIdentifier" IdMappingTable
-> IdMappingTable -> IdMappingTable
set PropertyType "MembershipIdentifier" IdMappingTable
newValue IdMappingTable {Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: IdMappingTable -> ()
description :: IdMappingTable -> Maybe (Value Text)
inputReferenceConfig :: IdMappingTable -> IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: IdMappingTable -> Maybe (Value Text)
membershipIdentifier :: IdMappingTable -> Value Text
name :: IdMappingTable -> Value Text
tags :: IdMappingTable -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
= IdMappingTable {membershipIdentifier :: Value Text
membershipIdentifier = PropertyType "MembershipIdentifier" IdMappingTable
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Name" IdMappingTable where
type PropertyType "Name" IdMappingTable = Value Prelude.Text
set :: PropertyType "Name" IdMappingTable
-> IdMappingTable -> IdMappingTable
set PropertyType "Name" IdMappingTable
newValue IdMappingTable {Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: IdMappingTable -> ()
description :: IdMappingTable -> Maybe (Value Text)
inputReferenceConfig :: IdMappingTable -> IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: IdMappingTable -> Maybe (Value Text)
membershipIdentifier :: IdMappingTable -> Value Text
name :: IdMappingTable -> Value Text
tags :: IdMappingTable -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
= IdMappingTable {name :: Value Text
name = PropertyType "Name" IdMappingTable
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" IdMappingTable where
type PropertyType "Tags" IdMappingTable = [Tag]
set :: PropertyType "Tags" IdMappingTable
-> IdMappingTable -> IdMappingTable
set PropertyType "Tags" IdMappingTable
newValue IdMappingTable {Maybe [Tag]
Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: IdMappingTable -> ()
description :: IdMappingTable -> Maybe (Value Text)
inputReferenceConfig :: IdMappingTable -> IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: IdMappingTable -> Maybe (Value Text)
membershipIdentifier :: IdMappingTable -> Value Text
name :: IdMappingTable -> Value Text
tags :: IdMappingTable -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
= IdMappingTable {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" IdMappingTable
newValue, Maybe (Value Text)
()
Value Text
IdMappingTableInputReferenceConfigProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
inputReferenceConfig :: IdMappingTableInputReferenceConfigProperty
kmsKeyArn :: Maybe (Value Text)
membershipIdentifier :: Value Text
name :: Value Text
..}