module Stratosphere.DataZone.Owner.OwnerGroupPropertiesProperty (
        OwnerGroupPropertiesProperty(..), mkOwnerGroupPropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OwnerGroupPropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-owner-ownergroupproperties.html>
    OwnerGroupPropertiesProperty {OwnerGroupPropertiesProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-owner-ownergroupproperties.html#cfn-datazone-owner-ownergroupproperties-groupidentifier>
                                  OwnerGroupPropertiesProperty -> Maybe (Value Text)
groupIdentifier :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (OwnerGroupPropertiesProperty
-> OwnerGroupPropertiesProperty -> Bool
(OwnerGroupPropertiesProperty
 -> OwnerGroupPropertiesProperty -> Bool)
-> (OwnerGroupPropertiesProperty
    -> OwnerGroupPropertiesProperty -> Bool)
-> Eq OwnerGroupPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OwnerGroupPropertiesProperty
-> OwnerGroupPropertiesProperty -> Bool
== :: OwnerGroupPropertiesProperty
-> OwnerGroupPropertiesProperty -> Bool
$c/= :: OwnerGroupPropertiesProperty
-> OwnerGroupPropertiesProperty -> Bool
/= :: OwnerGroupPropertiesProperty
-> OwnerGroupPropertiesProperty -> Bool
Prelude.Eq, Int -> OwnerGroupPropertiesProperty -> ShowS
[OwnerGroupPropertiesProperty] -> ShowS
OwnerGroupPropertiesProperty -> String
(Int -> OwnerGroupPropertiesProperty -> ShowS)
-> (OwnerGroupPropertiesProperty -> String)
-> ([OwnerGroupPropertiesProperty] -> ShowS)
-> Show OwnerGroupPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OwnerGroupPropertiesProperty -> ShowS
showsPrec :: Int -> OwnerGroupPropertiesProperty -> ShowS
$cshow :: OwnerGroupPropertiesProperty -> String
show :: OwnerGroupPropertiesProperty -> String
$cshowList :: [OwnerGroupPropertiesProperty] -> ShowS
showList :: [OwnerGroupPropertiesProperty] -> ShowS
Prelude.Show)
mkOwnerGroupPropertiesProperty :: OwnerGroupPropertiesProperty
mkOwnerGroupPropertiesProperty :: OwnerGroupPropertiesProperty
mkOwnerGroupPropertiesProperty
  = OwnerGroupPropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), groupIdentifier :: Maybe (Value Text)
groupIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OwnerGroupPropertiesProperty where
  toResourceProperties :: OwnerGroupPropertiesProperty -> ResourceProperties
toResourceProperties OwnerGroupPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: OwnerGroupPropertiesProperty -> ()
groupIdentifier :: OwnerGroupPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
groupIdentifier :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataZone::Owner.OwnerGroupProperties",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([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
"GroupIdentifier" (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)
groupIdentifier])}
instance JSON.ToJSON OwnerGroupPropertiesProperty where
  toJSON :: OwnerGroupPropertiesProperty -> Value
toJSON OwnerGroupPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: OwnerGroupPropertiesProperty -> ()
groupIdentifier :: OwnerGroupPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
groupIdentifier :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([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
"GroupIdentifier" (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)
groupIdentifier]))
instance Property "GroupIdentifier" OwnerGroupPropertiesProperty where
  type PropertyType "GroupIdentifier" OwnerGroupPropertiesProperty = Value Prelude.Text
  set :: PropertyType "GroupIdentifier" OwnerGroupPropertiesProperty
-> OwnerGroupPropertiesProperty -> OwnerGroupPropertiesProperty
set PropertyType "GroupIdentifier" OwnerGroupPropertiesProperty
newValue OwnerGroupPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: OwnerGroupPropertiesProperty -> ()
groupIdentifier :: OwnerGroupPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
groupIdentifier :: Maybe (Value Text)
..}
    = OwnerGroupPropertiesProperty
        {groupIdentifier :: Maybe (Value Text)
groupIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "GroupIdentifier" OwnerGroupPropertiesProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}