module Stratosphere.DataZone.GroupProfile (
        GroupProfile(..), mkGroupProfile
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GroupProfile
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html>
    GroupProfile {GroupProfile -> ()
haddock_workaround_ :: (),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-domainidentifier>
                  GroupProfile -> Value Text
domainIdentifier :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-groupidentifier>
                  GroupProfile -> Value Text
groupIdentifier :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-groupprofile.html#cfn-datazone-groupprofile-status>
                  GroupProfile -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (GroupProfile -> GroupProfile -> Bool
(GroupProfile -> GroupProfile -> Bool)
-> (GroupProfile -> GroupProfile -> Bool) -> Eq GroupProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GroupProfile -> GroupProfile -> Bool
== :: GroupProfile -> GroupProfile -> Bool
$c/= :: GroupProfile -> GroupProfile -> Bool
/= :: GroupProfile -> GroupProfile -> Bool
Prelude.Eq, Int -> GroupProfile -> ShowS
[GroupProfile] -> ShowS
GroupProfile -> String
(Int -> GroupProfile -> ShowS)
-> (GroupProfile -> String)
-> ([GroupProfile] -> ShowS)
-> Show GroupProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GroupProfile -> ShowS
showsPrec :: Int -> GroupProfile -> ShowS
$cshow :: GroupProfile -> String
show :: GroupProfile -> String
$cshowList :: [GroupProfile] -> ShowS
showList :: [GroupProfile] -> ShowS
Prelude.Show)
mkGroupProfile ::
  Value Prelude.Text -> Value Prelude.Text -> GroupProfile
mkGroupProfile :: Value Text -> Value Text -> GroupProfile
mkGroupProfile Value Text
domainIdentifier Value Text
groupIdentifier
  = GroupProfile
      {haddock_workaround_ :: ()
haddock_workaround_ = (), domainIdentifier :: Value Text
domainIdentifier = Value Text
domainIdentifier,
       groupIdentifier :: Value Text
groupIdentifier = Value Text
groupIdentifier, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GroupProfile where
  toResourceProperties :: GroupProfile -> ResourceProperties
toResourceProperties GroupProfile {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GroupProfile -> ()
domainIdentifier :: GroupProfile -> Value Text
groupIdentifier :: GroupProfile -> Value Text
status :: GroupProfile -> Maybe (Value Text)
haddock_workaround_ :: ()
domainIdentifier :: Value Text
groupIdentifier :: Value Text
status :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataZone::GroupProfile",
         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
"DomainIdentifier" 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
domainIdentifier,
                            Key
"GroupIdentifier" 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
groupIdentifier]
                           ([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
"Status" (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)
status]))}
instance JSON.ToJSON GroupProfile where
  toJSON :: GroupProfile -> Value
toJSON GroupProfile {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GroupProfile -> ()
domainIdentifier :: GroupProfile -> Value Text
groupIdentifier :: GroupProfile -> Value Text
status :: GroupProfile -> Maybe (Value Text)
haddock_workaround_ :: ()
domainIdentifier :: Value Text
groupIdentifier :: Value Text
status :: Maybe (Value 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
"DomainIdentifier" 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
domainIdentifier,
               Key
"GroupIdentifier" 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
groupIdentifier]
              ([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
"Status" (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)
status])))
instance Property "DomainIdentifier" GroupProfile where
  type PropertyType "DomainIdentifier" GroupProfile = Value Prelude.Text
  set :: PropertyType "DomainIdentifier" GroupProfile
-> GroupProfile -> GroupProfile
set PropertyType "DomainIdentifier" GroupProfile
newValue GroupProfile {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GroupProfile -> ()
domainIdentifier :: GroupProfile -> Value Text
groupIdentifier :: GroupProfile -> Value Text
status :: GroupProfile -> Maybe (Value Text)
haddock_workaround_ :: ()
domainIdentifier :: Value Text
groupIdentifier :: Value Text
status :: Maybe (Value Text)
..}
    = GroupProfile {domainIdentifier :: Value Text
domainIdentifier = PropertyType "DomainIdentifier" GroupProfile
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
groupIdentifier :: Value Text
status :: Maybe (Value Text)
haddock_workaround_ :: ()
groupIdentifier :: Value Text
status :: Maybe (Value Text)
..}
instance Property "GroupIdentifier" GroupProfile where
  type PropertyType "GroupIdentifier" GroupProfile = Value Prelude.Text
  set :: PropertyType "GroupIdentifier" GroupProfile
-> GroupProfile -> GroupProfile
set PropertyType "GroupIdentifier" GroupProfile
newValue GroupProfile {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GroupProfile -> ()
domainIdentifier :: GroupProfile -> Value Text
groupIdentifier :: GroupProfile -> Value Text
status :: GroupProfile -> Maybe (Value Text)
haddock_workaround_ :: ()
domainIdentifier :: Value Text
groupIdentifier :: Value Text
status :: Maybe (Value Text)
..}
    = GroupProfile {groupIdentifier :: Value Text
groupIdentifier = PropertyType "GroupIdentifier" GroupProfile
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
domainIdentifier :: Value Text
status :: Maybe (Value Text)
haddock_workaround_ :: ()
domainIdentifier :: Value Text
status :: Maybe (Value Text)
..}
instance Property "Status" GroupProfile where
  type PropertyType "Status" GroupProfile = Value Prelude.Text
  set :: PropertyType "Status" GroupProfile -> GroupProfile -> GroupProfile
set PropertyType "Status" GroupProfile
newValue GroupProfile {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GroupProfile -> ()
domainIdentifier :: GroupProfile -> Value Text
groupIdentifier :: GroupProfile -> Value Text
status :: GroupProfile -> Maybe (Value Text)
haddock_workaround_ :: ()
domainIdentifier :: Value Text
groupIdentifier :: Value Text
status :: Maybe (Value Text)
..}
    = GroupProfile {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" GroupProfile
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
domainIdentifier :: Value Text
groupIdentifier :: Value Text
haddock_workaround_ :: ()
domainIdentifier :: Value Text
groupIdentifier :: Value Text
..}