module Stratosphere.LakeFormation.TagAssociation.LFTagPairProperty (
        LFTagPairProperty(..), mkLFTagPairProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LFTagPairProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-tagassociation-lftagpair.html>
    LFTagPairProperty {LFTagPairProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-tagassociation-lftagpair.html#cfn-lakeformation-tagassociation-lftagpair-catalogid>
                       LFTagPairProperty -> Value Text
catalogId :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-tagassociation-lftagpair.html#cfn-lakeformation-tagassociation-lftagpair-tagkey>
                       LFTagPairProperty -> Value Text
tagKey :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-tagassociation-lftagpair.html#cfn-lakeformation-tagassociation-lftagpair-tagvalues>
                       LFTagPairProperty -> ValueList Text
tagValues :: (ValueList Prelude.Text)}
  deriving stock (LFTagPairProperty -> LFTagPairProperty -> Bool
(LFTagPairProperty -> LFTagPairProperty -> Bool)
-> (LFTagPairProperty -> LFTagPairProperty -> Bool)
-> Eq LFTagPairProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LFTagPairProperty -> LFTagPairProperty -> Bool
== :: LFTagPairProperty -> LFTagPairProperty -> Bool
$c/= :: LFTagPairProperty -> LFTagPairProperty -> Bool
/= :: LFTagPairProperty -> LFTagPairProperty -> Bool
Prelude.Eq, Int -> LFTagPairProperty -> ShowS
[LFTagPairProperty] -> ShowS
LFTagPairProperty -> String
(Int -> LFTagPairProperty -> ShowS)
-> (LFTagPairProperty -> String)
-> ([LFTagPairProperty] -> ShowS)
-> Show LFTagPairProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LFTagPairProperty -> ShowS
showsPrec :: Int -> LFTagPairProperty -> ShowS
$cshow :: LFTagPairProperty -> String
show :: LFTagPairProperty -> String
$cshowList :: [LFTagPairProperty] -> ShowS
showList :: [LFTagPairProperty] -> ShowS
Prelude.Show)
mkLFTagPairProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> ValueList Prelude.Text -> LFTagPairProperty
mkLFTagPairProperty :: Value Text -> Value Text -> ValueList Text -> LFTagPairProperty
mkLFTagPairProperty Value Text
catalogId Value Text
tagKey ValueList Text
tagValues
  = LFTagPairProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), catalogId :: Value Text
catalogId = Value Text
catalogId, tagKey :: Value Text
tagKey = Value Text
tagKey,
       tagValues :: ValueList Text
tagValues = ValueList Text
tagValues}
instance ToResourceProperties LFTagPairProperty where
  toResourceProperties :: LFTagPairProperty -> ResourceProperties
toResourceProperties LFTagPairProperty {()
ValueList Text
Value Text
haddock_workaround_ :: LFTagPairProperty -> ()
catalogId :: LFTagPairProperty -> Value Text
tagKey :: LFTagPairProperty -> Value Text
tagValues :: LFTagPairProperty -> ValueList Text
haddock_workaround_ :: ()
catalogId :: Value Text
tagKey :: Value Text
tagValues :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::LakeFormation::TagAssociation.LFTagPair",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"CatalogId" 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
catalogId,
                       Key
"TagKey" 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
tagKey, Key
"TagValues" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
tagValues]}
instance JSON.ToJSON LFTagPairProperty where
  toJSON :: LFTagPairProperty -> Value
toJSON LFTagPairProperty {()
ValueList Text
Value Text
haddock_workaround_ :: LFTagPairProperty -> ()
catalogId :: LFTagPairProperty -> Value Text
tagKey :: LFTagPairProperty -> Value Text
tagValues :: LFTagPairProperty -> ValueList Text
haddock_workaround_ :: ()
catalogId :: Value Text
tagKey :: Value Text
tagValues :: ValueList Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"CatalogId" 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
catalogId, Key
"TagKey" 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
tagKey,
         Key
"TagValues" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
tagValues]
instance Property "CatalogId" LFTagPairProperty where
  type PropertyType "CatalogId" LFTagPairProperty = Value Prelude.Text
  set :: PropertyType "CatalogId" LFTagPairProperty
-> LFTagPairProperty -> LFTagPairProperty
set PropertyType "CatalogId" LFTagPairProperty
newValue LFTagPairProperty {()
ValueList Text
Value Text
haddock_workaround_ :: LFTagPairProperty -> ()
catalogId :: LFTagPairProperty -> Value Text
tagKey :: LFTagPairProperty -> Value Text
tagValues :: LFTagPairProperty -> ValueList Text
haddock_workaround_ :: ()
catalogId :: Value Text
tagKey :: Value Text
tagValues :: ValueList Text
..}
    = LFTagPairProperty {catalogId :: Value Text
catalogId = PropertyType "CatalogId" LFTagPairProperty
Value Text
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
tagKey :: Value Text
tagValues :: ValueList Text
haddock_workaround_ :: ()
tagKey :: Value Text
tagValues :: ValueList Text
..}
instance Property "TagKey" LFTagPairProperty where
  type PropertyType "TagKey" LFTagPairProperty = Value Prelude.Text
  set :: PropertyType "TagKey" LFTagPairProperty
-> LFTagPairProperty -> LFTagPairProperty
set PropertyType "TagKey" LFTagPairProperty
newValue LFTagPairProperty {()
ValueList Text
Value Text
haddock_workaround_ :: LFTagPairProperty -> ()
catalogId :: LFTagPairProperty -> Value Text
tagKey :: LFTagPairProperty -> Value Text
tagValues :: LFTagPairProperty -> ValueList Text
haddock_workaround_ :: ()
catalogId :: Value Text
tagKey :: Value Text
tagValues :: ValueList Text
..}
    = LFTagPairProperty {tagKey :: Value Text
tagKey = PropertyType "TagKey" LFTagPairProperty
Value Text
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
catalogId :: Value Text
tagValues :: ValueList Text
haddock_workaround_ :: ()
catalogId :: Value Text
tagValues :: ValueList Text
..}
instance Property "TagValues" LFTagPairProperty where
  type PropertyType "TagValues" LFTagPairProperty = ValueList Prelude.Text
  set :: PropertyType "TagValues" LFTagPairProperty
-> LFTagPairProperty -> LFTagPairProperty
set PropertyType "TagValues" LFTagPairProperty
newValue LFTagPairProperty {()
ValueList Text
Value Text
haddock_workaround_ :: LFTagPairProperty -> ()
catalogId :: LFTagPairProperty -> Value Text
tagKey :: LFTagPairProperty -> Value Text
tagValues :: LFTagPairProperty -> ValueList Text
haddock_workaround_ :: ()
catalogId :: Value Text
tagKey :: Value Text
tagValues :: ValueList Text
..}
    = LFTagPairProperty {tagValues :: ValueList Text
tagValues = PropertyType "TagValues" LFTagPairProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
catalogId :: Value Text
tagKey :: Value Text
haddock_workaround_ :: ()
catalogId :: Value Text
tagKey :: Value Text
..}