module Stratosphere.AppStream.DirectoryConfig.CertificateBasedAuthPropertiesProperty (
        CertificateBasedAuthPropertiesProperty(..),
        mkCertificateBasedAuthPropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CertificateBasedAuthPropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-directoryconfig-certificatebasedauthproperties.html>
    CertificateBasedAuthPropertiesProperty {CertificateBasedAuthPropertiesProperty -> ()
haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-directoryconfig-certificatebasedauthproperties.html#cfn-appstream-directoryconfig-certificatebasedauthproperties-certificateauthorityarn>
                                            CertificateBasedAuthPropertiesProperty -> Maybe (Value Text)
certificateAuthorityArn :: (Prelude.Maybe (Value Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-directoryconfig-certificatebasedauthproperties.html#cfn-appstream-directoryconfig-certificatebasedauthproperties-status>
                                            CertificateBasedAuthPropertiesProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (CertificateBasedAuthPropertiesProperty
-> CertificateBasedAuthPropertiesProperty -> Bool
(CertificateBasedAuthPropertiesProperty
 -> CertificateBasedAuthPropertiesProperty -> Bool)
-> (CertificateBasedAuthPropertiesProperty
    -> CertificateBasedAuthPropertiesProperty -> Bool)
-> Eq CertificateBasedAuthPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CertificateBasedAuthPropertiesProperty
-> CertificateBasedAuthPropertiesProperty -> Bool
== :: CertificateBasedAuthPropertiesProperty
-> CertificateBasedAuthPropertiesProperty -> Bool
$c/= :: CertificateBasedAuthPropertiesProperty
-> CertificateBasedAuthPropertiesProperty -> Bool
/= :: CertificateBasedAuthPropertiesProperty
-> CertificateBasedAuthPropertiesProperty -> Bool
Prelude.Eq, Int -> CertificateBasedAuthPropertiesProperty -> ShowS
[CertificateBasedAuthPropertiesProperty] -> ShowS
CertificateBasedAuthPropertiesProperty -> String
(Int -> CertificateBasedAuthPropertiesProperty -> ShowS)
-> (CertificateBasedAuthPropertiesProperty -> String)
-> ([CertificateBasedAuthPropertiesProperty] -> ShowS)
-> Show CertificateBasedAuthPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CertificateBasedAuthPropertiesProperty -> ShowS
showsPrec :: Int -> CertificateBasedAuthPropertiesProperty -> ShowS
$cshow :: CertificateBasedAuthPropertiesProperty -> String
show :: CertificateBasedAuthPropertiesProperty -> String
$cshowList :: [CertificateBasedAuthPropertiesProperty] -> ShowS
showList :: [CertificateBasedAuthPropertiesProperty] -> ShowS
Prelude.Show)
mkCertificateBasedAuthPropertiesProperty ::
  CertificateBasedAuthPropertiesProperty
mkCertificateBasedAuthPropertiesProperty :: CertificateBasedAuthPropertiesProperty
mkCertificateBasedAuthPropertiesProperty
  = CertificateBasedAuthPropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       certificateAuthorityArn :: Maybe (Value Text)
certificateAuthorityArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CertificateBasedAuthPropertiesProperty where
  toResourceProperties :: CertificateBasedAuthPropertiesProperty -> ResourceProperties
toResourceProperties CertificateBasedAuthPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: CertificateBasedAuthPropertiesProperty -> ()
certificateAuthorityArn :: CertificateBasedAuthPropertiesProperty -> Maybe (Value Text)
status :: CertificateBasedAuthPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
certificateAuthorityArn :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppStream::DirectoryConfig.CertificateBasedAuthProperties",
         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
"CertificateAuthorityArn"
                              (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)
certificateAuthorityArn,
                            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 CertificateBasedAuthPropertiesProperty where
  toJSON :: CertificateBasedAuthPropertiesProperty -> Value
toJSON CertificateBasedAuthPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: CertificateBasedAuthPropertiesProperty -> ()
certificateAuthorityArn :: CertificateBasedAuthPropertiesProperty -> Maybe (Value Text)
status :: CertificateBasedAuthPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
certificateAuthorityArn :: Maybe (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
           ([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
"CertificateAuthorityArn"
                 (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)
certificateAuthorityArn,
               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 "CertificateAuthorityArn" CertificateBasedAuthPropertiesProperty where
  type PropertyType "CertificateAuthorityArn" CertificateBasedAuthPropertiesProperty = Value Prelude.Text
  set :: PropertyType
  "CertificateAuthorityArn" CertificateBasedAuthPropertiesProperty
-> CertificateBasedAuthPropertiesProperty
-> CertificateBasedAuthPropertiesProperty
set PropertyType
  "CertificateAuthorityArn" CertificateBasedAuthPropertiesProperty
newValue CertificateBasedAuthPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: CertificateBasedAuthPropertiesProperty -> ()
certificateAuthorityArn :: CertificateBasedAuthPropertiesProperty -> Maybe (Value Text)
status :: CertificateBasedAuthPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
certificateAuthorityArn :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = CertificateBasedAuthPropertiesProperty
        {certificateAuthorityArn :: Maybe (Value Text)
certificateAuthorityArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "CertificateAuthorityArn" CertificateBasedAuthPropertiesProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
status :: Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
..}
instance Property "Status" CertificateBasedAuthPropertiesProperty where
  type PropertyType "Status" CertificateBasedAuthPropertiesProperty = Value Prelude.Text
  set :: PropertyType "Status" CertificateBasedAuthPropertiesProperty
-> CertificateBasedAuthPropertiesProperty
-> CertificateBasedAuthPropertiesProperty
set PropertyType "Status" CertificateBasedAuthPropertiesProperty
newValue CertificateBasedAuthPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: CertificateBasedAuthPropertiesProperty -> ()
certificateAuthorityArn :: CertificateBasedAuthPropertiesProperty -> Maybe (Value Text)
status :: CertificateBasedAuthPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
certificateAuthorityArn :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = CertificateBasedAuthPropertiesProperty
        {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" CertificateBasedAuthPropertiesProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
certificateAuthorityArn :: Maybe (Value Text)
haddock_workaround_ :: ()
certificateAuthorityArn :: Maybe (Value Text)
..}