module Stratosphere.GuardDuty.TrustedEntitySet.TagItemProperty (
        TagItemProperty(..), mkTagItemProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TagItemProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-trustedentityset-tagitem.html>
    TagItemProperty {TagItemProperty -> ()
haddock_workaround_ :: (),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-trustedentityset-tagitem.html#cfn-guardduty-trustedentityset-tagitem-key>
                     TagItemProperty -> Value Text
key :: (Value Prelude.Text),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-trustedentityset-tagitem.html#cfn-guardduty-trustedentityset-tagitem-value>
                     TagItemProperty -> Value Text
value :: (Value Prelude.Text)}
  deriving stock (TagItemProperty -> TagItemProperty -> Bool
(TagItemProperty -> TagItemProperty -> Bool)
-> (TagItemProperty -> TagItemProperty -> Bool)
-> Eq TagItemProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TagItemProperty -> TagItemProperty -> Bool
== :: TagItemProperty -> TagItemProperty -> Bool
$c/= :: TagItemProperty -> TagItemProperty -> Bool
/= :: TagItemProperty -> TagItemProperty -> Bool
Prelude.Eq, Int -> TagItemProperty -> ShowS
[TagItemProperty] -> ShowS
TagItemProperty -> String
(Int -> TagItemProperty -> ShowS)
-> (TagItemProperty -> String)
-> ([TagItemProperty] -> ShowS)
-> Show TagItemProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TagItemProperty -> ShowS
showsPrec :: Int -> TagItemProperty -> ShowS
$cshow :: TagItemProperty -> String
show :: TagItemProperty -> String
$cshowList :: [TagItemProperty] -> ShowS
showList :: [TagItemProperty] -> ShowS
Prelude.Show)
mkTagItemProperty ::
  Value Prelude.Text -> Value Prelude.Text -> TagItemProperty
mkTagItemProperty :: Value Text -> Value Text -> TagItemProperty
mkTagItemProperty Value Text
key Value Text
value
  = TagItemProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key, value :: Value Text
value = Value Text
value}
instance ToResourceProperties TagItemProperty where
  toResourceProperties :: TagItemProperty -> ResourceProperties
toResourceProperties TagItemProperty {()
Value Text
haddock_workaround_ :: TagItemProperty -> ()
key :: TagItemProperty -> Value Text
value :: TagItemProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GuardDuty::TrustedEntitySet.TagItem",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Key" 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
key, Key
"Value" 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
value]}
instance JSON.ToJSON TagItemProperty where
  toJSON :: TagItemProperty -> Value
toJSON TagItemProperty {()
Value Text
haddock_workaround_ :: TagItemProperty -> ()
key :: TagItemProperty -> Value Text
value :: TagItemProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Key" 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
key, Key
"Value" 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
value]
instance Property "Key" TagItemProperty where
  type PropertyType "Key" TagItemProperty = Value Prelude.Text
  set :: PropertyType "Key" TagItemProperty
-> TagItemProperty -> TagItemProperty
set PropertyType "Key" TagItemProperty
newValue TagItemProperty {()
Value Text
haddock_workaround_ :: TagItemProperty -> ()
key :: TagItemProperty -> Value Text
value :: TagItemProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = TagItemProperty {key :: Value Text
key = PropertyType "Key" TagItemProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" TagItemProperty where
  type PropertyType "Value" TagItemProperty = Value Prelude.Text
  set :: PropertyType "Value" TagItemProperty
-> TagItemProperty -> TagItemProperty
set PropertyType "Value" TagItemProperty
newValue TagItemProperty {()
Value Text
haddock_workaround_ :: TagItemProperty -> ()
key :: TagItemProperty -> Value Text
value :: TagItemProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = TagItemProperty {value :: Value Text
value = PropertyType "Value" TagItemProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}