module Stratosphere.GameLift.Fleet.CertificateConfigurationProperty (
        CertificateConfigurationProperty(..),
        mkCertificateConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CertificateConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-certificateconfiguration.html>
    CertificateConfigurationProperty {CertificateConfigurationProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-certificateconfiguration.html#cfn-gamelift-fleet-certificateconfiguration-certificatetype>
                                      CertificateConfigurationProperty -> Value Text
certificateType :: (Value Prelude.Text)}
  deriving stock (CertificateConfigurationProperty
-> CertificateConfigurationProperty -> Bool
(CertificateConfigurationProperty
 -> CertificateConfigurationProperty -> Bool)
-> (CertificateConfigurationProperty
    -> CertificateConfigurationProperty -> Bool)
-> Eq CertificateConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CertificateConfigurationProperty
-> CertificateConfigurationProperty -> Bool
== :: CertificateConfigurationProperty
-> CertificateConfigurationProperty -> Bool
$c/= :: CertificateConfigurationProperty
-> CertificateConfigurationProperty -> Bool
/= :: CertificateConfigurationProperty
-> CertificateConfigurationProperty -> Bool
Prelude.Eq, Int -> CertificateConfigurationProperty -> ShowS
[CertificateConfigurationProperty] -> ShowS
CertificateConfigurationProperty -> String
(Int -> CertificateConfigurationProperty -> ShowS)
-> (CertificateConfigurationProperty -> String)
-> ([CertificateConfigurationProperty] -> ShowS)
-> Show CertificateConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CertificateConfigurationProperty -> ShowS
showsPrec :: Int -> CertificateConfigurationProperty -> ShowS
$cshow :: CertificateConfigurationProperty -> String
show :: CertificateConfigurationProperty -> String
$cshowList :: [CertificateConfigurationProperty] -> ShowS
showList :: [CertificateConfigurationProperty] -> ShowS
Prelude.Show)
mkCertificateConfigurationProperty ::
  Value Prelude.Text -> CertificateConfigurationProperty
mkCertificateConfigurationProperty :: Value Text -> CertificateConfigurationProperty
mkCertificateConfigurationProperty Value Text
certificateType
  = CertificateConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), certificateType :: Value Text
certificateType = Value Text
certificateType}
instance ToResourceProperties CertificateConfigurationProperty where
  toResourceProperties :: CertificateConfigurationProperty -> ResourceProperties
toResourceProperties CertificateConfigurationProperty {()
Value Text
haddock_workaround_ :: CertificateConfigurationProperty -> ()
certificateType :: CertificateConfigurationProperty -> Value Text
haddock_workaround_ :: ()
certificateType :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GameLift::Fleet.CertificateConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"CertificateType" 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
certificateType]}
instance JSON.ToJSON CertificateConfigurationProperty where
  toJSON :: CertificateConfigurationProperty -> Value
toJSON CertificateConfigurationProperty {()
Value Text
haddock_workaround_ :: CertificateConfigurationProperty -> ()
certificateType :: CertificateConfigurationProperty -> Value Text
haddock_workaround_ :: ()
certificateType :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"CertificateType" 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
certificateType]
instance Property "CertificateType" CertificateConfigurationProperty where
  type PropertyType "CertificateType" CertificateConfigurationProperty = Value Prelude.Text
  set :: PropertyType "CertificateType" CertificateConfigurationProperty
-> CertificateConfigurationProperty
-> CertificateConfigurationProperty
set PropertyType "CertificateType" CertificateConfigurationProperty
newValue CertificateConfigurationProperty {()
Value Text
haddock_workaround_ :: CertificateConfigurationProperty -> ()
certificateType :: CertificateConfigurationProperty -> Value Text
haddock_workaround_ :: ()
certificateType :: Value Text
..}
    = CertificateConfigurationProperty {certificateType :: Value Text
certificateType = PropertyType "CertificateType" CertificateConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}