module Stratosphere.ApplicationSignals.GroupingConfiguration.GroupingAttributeDefinitionProperty (
        GroupingAttributeDefinitionProperty(..),
        mkGroupingAttributeDefinitionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GroupingAttributeDefinitionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-groupingconfiguration-groupingattributedefinition.html>
    GroupingAttributeDefinitionProperty {GroupingAttributeDefinitionProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-groupingconfiguration-groupingattributedefinition.html#cfn-applicationsignals-groupingconfiguration-groupingattributedefinition-defaultgroupingvalue>
                                         GroupingAttributeDefinitionProperty -> Maybe (Value Text)
defaultGroupingValue :: (Prelude.Maybe (Value Prelude.Text)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-groupingconfiguration-groupingattributedefinition.html#cfn-applicationsignals-groupingconfiguration-groupingattributedefinition-groupingname>
                                         GroupingAttributeDefinitionProperty -> Value Text
groupingName :: (Value Prelude.Text),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-groupingconfiguration-groupingattributedefinition.html#cfn-applicationsignals-groupingconfiguration-groupingattributedefinition-groupingsourcekeys>
                                         GroupingAttributeDefinitionProperty -> ValueList Text
groupingSourceKeys :: (ValueList Prelude.Text)}
  deriving stock (GroupingAttributeDefinitionProperty
-> GroupingAttributeDefinitionProperty -> Bool
(GroupingAttributeDefinitionProperty
 -> GroupingAttributeDefinitionProperty -> Bool)
-> (GroupingAttributeDefinitionProperty
    -> GroupingAttributeDefinitionProperty -> Bool)
-> Eq GroupingAttributeDefinitionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GroupingAttributeDefinitionProperty
-> GroupingAttributeDefinitionProperty -> Bool
== :: GroupingAttributeDefinitionProperty
-> GroupingAttributeDefinitionProperty -> Bool
$c/= :: GroupingAttributeDefinitionProperty
-> GroupingAttributeDefinitionProperty -> Bool
/= :: GroupingAttributeDefinitionProperty
-> GroupingAttributeDefinitionProperty -> Bool
Prelude.Eq, Int -> GroupingAttributeDefinitionProperty -> ShowS
[GroupingAttributeDefinitionProperty] -> ShowS
GroupingAttributeDefinitionProperty -> String
(Int -> GroupingAttributeDefinitionProperty -> ShowS)
-> (GroupingAttributeDefinitionProperty -> String)
-> ([GroupingAttributeDefinitionProperty] -> ShowS)
-> Show GroupingAttributeDefinitionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GroupingAttributeDefinitionProperty -> ShowS
showsPrec :: Int -> GroupingAttributeDefinitionProperty -> ShowS
$cshow :: GroupingAttributeDefinitionProperty -> String
show :: GroupingAttributeDefinitionProperty -> String
$cshowList :: [GroupingAttributeDefinitionProperty] -> ShowS
showList :: [GroupingAttributeDefinitionProperty] -> ShowS
Prelude.Show)
mkGroupingAttributeDefinitionProperty ::
  Value Prelude.Text
  -> ValueList Prelude.Text -> GroupingAttributeDefinitionProperty
mkGroupingAttributeDefinitionProperty :: Value Text -> ValueList Text -> GroupingAttributeDefinitionProperty
mkGroupingAttributeDefinitionProperty
  Value Text
groupingName
  ValueList Text
groupingSourceKeys
  = GroupingAttributeDefinitionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), groupingName :: Value Text
groupingName = Value Text
groupingName,
       groupingSourceKeys :: ValueList Text
groupingSourceKeys = ValueList Text
groupingSourceKeys,
       defaultGroupingValue :: Maybe (Value Text)
defaultGroupingValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GroupingAttributeDefinitionProperty where
  toResourceProperties :: GroupingAttributeDefinitionProperty -> ResourceProperties
toResourceProperties GroupingAttributeDefinitionProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: GroupingAttributeDefinitionProperty -> ()
defaultGroupingValue :: GroupingAttributeDefinitionProperty -> Maybe (Value Text)
groupingName :: GroupingAttributeDefinitionProperty -> Value Text
groupingSourceKeys :: GroupingAttributeDefinitionProperty -> ValueList Text
haddock_workaround_ :: ()
defaultGroupingValue :: Maybe (Value Text)
groupingName :: Value Text
groupingSourceKeys :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ApplicationSignals::GroupingConfiguration.GroupingAttributeDefinition",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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
"GroupingName" 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
groupingName,
                            Key
"GroupingSourceKeys" 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
groupingSourceKeys]
                           ([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
"DefaultGroupingValue"
                                 (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)
defaultGroupingValue]))}
instance JSON.ToJSON GroupingAttributeDefinitionProperty where
  toJSON :: GroupingAttributeDefinitionProperty -> Value
toJSON GroupingAttributeDefinitionProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: GroupingAttributeDefinitionProperty -> ()
defaultGroupingValue :: GroupingAttributeDefinitionProperty -> Maybe (Value Text)
groupingName :: GroupingAttributeDefinitionProperty -> Value Text
groupingSourceKeys :: GroupingAttributeDefinitionProperty -> ValueList Text
haddock_workaround_ :: ()
defaultGroupingValue :: Maybe (Value Text)
groupingName :: Value Text
groupingSourceKeys :: ValueList Text
..}
    = [(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
"GroupingName" 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
groupingName,
               Key
"GroupingSourceKeys" 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
groupingSourceKeys]
              ([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
"DefaultGroupingValue"
                    (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)
defaultGroupingValue])))
instance Property "DefaultGroupingValue" GroupingAttributeDefinitionProperty where
  type PropertyType "DefaultGroupingValue" GroupingAttributeDefinitionProperty = Value Prelude.Text
  set :: PropertyType
  "DefaultGroupingValue" GroupingAttributeDefinitionProperty
-> GroupingAttributeDefinitionProperty
-> GroupingAttributeDefinitionProperty
set PropertyType
  "DefaultGroupingValue" GroupingAttributeDefinitionProperty
newValue GroupingAttributeDefinitionProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: GroupingAttributeDefinitionProperty -> ()
defaultGroupingValue :: GroupingAttributeDefinitionProperty -> Maybe (Value Text)
groupingName :: GroupingAttributeDefinitionProperty -> Value Text
groupingSourceKeys :: GroupingAttributeDefinitionProperty -> ValueList Text
haddock_workaround_ :: ()
defaultGroupingValue :: Maybe (Value Text)
groupingName :: Value Text
groupingSourceKeys :: ValueList Text
..}
    = GroupingAttributeDefinitionProperty
        {defaultGroupingValue :: Maybe (Value Text)
defaultGroupingValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "DefaultGroupingValue" GroupingAttributeDefinitionProperty
Value Text
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
groupingName :: Value Text
groupingSourceKeys :: ValueList Text
haddock_workaround_ :: ()
groupingName :: Value Text
groupingSourceKeys :: ValueList Text
..}
instance Property "GroupingName" GroupingAttributeDefinitionProperty where
  type PropertyType "GroupingName" GroupingAttributeDefinitionProperty = Value Prelude.Text
  set :: PropertyType "GroupingName" GroupingAttributeDefinitionProperty
-> GroupingAttributeDefinitionProperty
-> GroupingAttributeDefinitionProperty
set PropertyType "GroupingName" GroupingAttributeDefinitionProperty
newValue GroupingAttributeDefinitionProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: GroupingAttributeDefinitionProperty -> ()
defaultGroupingValue :: GroupingAttributeDefinitionProperty -> Maybe (Value Text)
groupingName :: GroupingAttributeDefinitionProperty -> Value Text
groupingSourceKeys :: GroupingAttributeDefinitionProperty -> ValueList Text
haddock_workaround_ :: ()
defaultGroupingValue :: Maybe (Value Text)
groupingName :: Value Text
groupingSourceKeys :: ValueList Text
..}
    = GroupingAttributeDefinitionProperty {groupingName :: Value Text
groupingName = PropertyType "GroupingName" GroupingAttributeDefinitionProperty
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
defaultGroupingValue :: Maybe (Value Text)
groupingSourceKeys :: ValueList Text
haddock_workaround_ :: ()
defaultGroupingValue :: Maybe (Value Text)
groupingSourceKeys :: ValueList Text
..}
instance Property "GroupingSourceKeys" GroupingAttributeDefinitionProperty where
  type PropertyType "GroupingSourceKeys" GroupingAttributeDefinitionProperty = ValueList Prelude.Text
  set :: PropertyType
  "GroupingSourceKeys" GroupingAttributeDefinitionProperty
-> GroupingAttributeDefinitionProperty
-> GroupingAttributeDefinitionProperty
set PropertyType
  "GroupingSourceKeys" GroupingAttributeDefinitionProperty
newValue GroupingAttributeDefinitionProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: GroupingAttributeDefinitionProperty -> ()
defaultGroupingValue :: GroupingAttributeDefinitionProperty -> Maybe (Value Text)
groupingName :: GroupingAttributeDefinitionProperty -> Value Text
groupingSourceKeys :: GroupingAttributeDefinitionProperty -> ValueList Text
haddock_workaround_ :: ()
defaultGroupingValue :: Maybe (Value Text)
groupingName :: Value Text
groupingSourceKeys :: ValueList Text
..}
    = GroupingAttributeDefinitionProperty
        {groupingSourceKeys :: ValueList Text
groupingSourceKeys = PropertyType
  "GroupingSourceKeys" GroupingAttributeDefinitionProperty
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
defaultGroupingValue :: Maybe (Value Text)
groupingName :: Value Text
haddock_workaround_ :: ()
defaultGroupingValue :: Maybe (Value Text)
groupingName :: Value Text
..}