module Stratosphere.ResourceGroups.TagSyncTask (
        TagSyncTask(..), mkTagSyncTask
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TagSyncTask
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resourcegroups-tagsynctask.html>
    TagSyncTask {TagSyncTask -> ()
haddock_workaround_ :: (),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resourcegroups-tagsynctask.html#cfn-resourcegroups-tagsynctask-group>
                 TagSyncTask -> Value Text
group :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resourcegroups-tagsynctask.html#cfn-resourcegroups-tagsynctask-rolearn>
                 TagSyncTask -> Value Text
roleArn :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resourcegroups-tagsynctask.html#cfn-resourcegroups-tagsynctask-tagkey>
                 TagSyncTask -> Value Text
tagKey :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resourcegroups-tagsynctask.html#cfn-resourcegroups-tagsynctask-tagvalue>
                 TagSyncTask -> Value Text
tagValue :: (Value Prelude.Text)}
  deriving stock (TagSyncTask -> TagSyncTask -> Bool
(TagSyncTask -> TagSyncTask -> Bool)
-> (TagSyncTask -> TagSyncTask -> Bool) -> Eq TagSyncTask
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TagSyncTask -> TagSyncTask -> Bool
== :: TagSyncTask -> TagSyncTask -> Bool
$c/= :: TagSyncTask -> TagSyncTask -> Bool
/= :: TagSyncTask -> TagSyncTask -> Bool
Prelude.Eq, Int -> TagSyncTask -> ShowS
[TagSyncTask] -> ShowS
TagSyncTask -> String
(Int -> TagSyncTask -> ShowS)
-> (TagSyncTask -> String)
-> ([TagSyncTask] -> ShowS)
-> Show TagSyncTask
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TagSyncTask -> ShowS
showsPrec :: Int -> TagSyncTask -> ShowS
$cshow :: TagSyncTask -> String
show :: TagSyncTask -> String
$cshowList :: [TagSyncTask] -> ShowS
showList :: [TagSyncTask] -> ShowS
Prelude.Show)
mkTagSyncTask ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> Value Prelude.Text -> TagSyncTask
mkTagSyncTask :: Value Text -> Value Text -> Value Text -> Value Text -> TagSyncTask
mkTagSyncTask Value Text
group Value Text
roleArn Value Text
tagKey Value Text
tagValue
  = TagSyncTask
      {haddock_workaround_ :: ()
haddock_workaround_ = (), group :: Value Text
group = Value Text
group, roleArn :: Value Text
roleArn = Value Text
roleArn,
       tagKey :: Value Text
tagKey = Value Text
tagKey, tagValue :: Value Text
tagValue = Value Text
tagValue}
instance ToResourceProperties TagSyncTask where
  toResourceProperties :: TagSyncTask -> ResourceProperties
toResourceProperties TagSyncTask {()
Value Text
haddock_workaround_ :: TagSyncTask -> ()
group :: TagSyncTask -> Value Text
roleArn :: TagSyncTask -> Value Text
tagKey :: TagSyncTask -> Value Text
tagValue :: TagSyncTask -> Value Text
haddock_workaround_ :: ()
group :: Value Text
roleArn :: Value Text
tagKey :: Value Text
tagValue :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ResourceGroups::TagSyncTask",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Group" 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
group, Key
"RoleArn" 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
roleArn,
                       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
"TagValue" 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
tagValue]}
instance JSON.ToJSON TagSyncTask where
  toJSON :: TagSyncTask -> Value
toJSON TagSyncTask {()
Value Text
haddock_workaround_ :: TagSyncTask -> ()
group :: TagSyncTask -> Value Text
roleArn :: TagSyncTask -> Value Text
tagKey :: TagSyncTask -> Value Text
tagValue :: TagSyncTask -> Value Text
haddock_workaround_ :: ()
group :: Value Text
roleArn :: Value Text
tagKey :: Value Text
tagValue :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Group" 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
group, Key
"RoleArn" 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
roleArn,
         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
"TagValue" 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
tagValue]
instance Property "Group" TagSyncTask where
  type PropertyType "Group" TagSyncTask = Value Prelude.Text
  set :: PropertyType "Group" TagSyncTask -> TagSyncTask -> TagSyncTask
set PropertyType "Group" TagSyncTask
newValue TagSyncTask {()
Value Text
haddock_workaround_ :: TagSyncTask -> ()
group :: TagSyncTask -> Value Text
roleArn :: TagSyncTask -> Value Text
tagKey :: TagSyncTask -> Value Text
tagValue :: TagSyncTask -> Value Text
haddock_workaround_ :: ()
group :: Value Text
roleArn :: Value Text
tagKey :: Value Text
tagValue :: Value Text
..} = TagSyncTask {group :: Value Text
group = PropertyType "Group" TagSyncTask
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
tagKey :: Value Text
tagValue :: Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
tagKey :: Value Text
tagValue :: Value Text
..}
instance Property "RoleArn" TagSyncTask where
  type PropertyType "RoleArn" TagSyncTask = Value Prelude.Text
  set :: PropertyType "RoleArn" TagSyncTask -> TagSyncTask -> TagSyncTask
set PropertyType "RoleArn" TagSyncTask
newValue TagSyncTask {()
Value Text
haddock_workaround_ :: TagSyncTask -> ()
group :: TagSyncTask -> Value Text
roleArn :: TagSyncTask -> Value Text
tagKey :: TagSyncTask -> Value Text
tagValue :: TagSyncTask -> Value Text
haddock_workaround_ :: ()
group :: Value Text
roleArn :: Value Text
tagKey :: Value Text
tagValue :: Value Text
..}
    = TagSyncTask {roleArn :: Value Text
roleArn = PropertyType "RoleArn" TagSyncTask
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
group :: Value Text
tagKey :: Value Text
tagValue :: Value Text
haddock_workaround_ :: ()
group :: Value Text
tagKey :: Value Text
tagValue :: Value Text
..}
instance Property "TagKey" TagSyncTask where
  type PropertyType "TagKey" TagSyncTask = Value Prelude.Text
  set :: PropertyType "TagKey" TagSyncTask -> TagSyncTask -> TagSyncTask
set PropertyType "TagKey" TagSyncTask
newValue TagSyncTask {()
Value Text
haddock_workaround_ :: TagSyncTask -> ()
group :: TagSyncTask -> Value Text
roleArn :: TagSyncTask -> Value Text
tagKey :: TagSyncTask -> Value Text
tagValue :: TagSyncTask -> Value Text
haddock_workaround_ :: ()
group :: Value Text
roleArn :: Value Text
tagKey :: Value Text
tagValue :: Value Text
..} = TagSyncTask {tagKey :: Value Text
tagKey = PropertyType "TagKey" TagSyncTask
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
group :: Value Text
roleArn :: Value Text
tagValue :: Value Text
haddock_workaround_ :: ()
group :: Value Text
roleArn :: Value Text
tagValue :: Value Text
..}
instance Property "TagValue" TagSyncTask where
  type PropertyType "TagValue" TagSyncTask = Value Prelude.Text
  set :: PropertyType "TagValue" TagSyncTask -> TagSyncTask -> TagSyncTask
set PropertyType "TagValue" TagSyncTask
newValue TagSyncTask {()
Value Text
haddock_workaround_ :: TagSyncTask -> ()
group :: TagSyncTask -> Value Text
roleArn :: TagSyncTask -> Value Text
tagKey :: TagSyncTask -> Value Text
tagValue :: TagSyncTask -> Value Text
haddock_workaround_ :: ()
group :: Value Text
roleArn :: Value Text
tagKey :: Value Text
tagValue :: Value Text
..}
    = TagSyncTask {tagValue :: Value Text
tagValue = PropertyType "TagValue" TagSyncTask
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
group :: Value Text
roleArn :: Value Text
tagKey :: Value Text
haddock_workaround_ :: ()
group :: Value Text
roleArn :: Value Text
tagKey :: Value Text
..}