module Stratosphere.PCAConnectorAD.Template.ValidityPeriodProperty (
        ValidityPeriodProperty(..), mkValidityPeriodProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ValidityPeriodProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-validityperiod.html>
    ValidityPeriodProperty {ValidityPeriodProperty -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-validityperiod.html#cfn-pcaconnectorad-template-validityperiod-period>
                            ValidityPeriodProperty -> Value Double
period :: (Value Prelude.Double),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pcaconnectorad-template-validityperiod.html#cfn-pcaconnectorad-template-validityperiod-periodtype>
                            ValidityPeriodProperty -> Value Text
periodType :: (Value Prelude.Text)}
  deriving stock (ValidityPeriodProperty -> ValidityPeriodProperty -> Bool
(ValidityPeriodProperty -> ValidityPeriodProperty -> Bool)
-> (ValidityPeriodProperty -> ValidityPeriodProperty -> Bool)
-> Eq ValidityPeriodProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ValidityPeriodProperty -> ValidityPeriodProperty -> Bool
== :: ValidityPeriodProperty -> ValidityPeriodProperty -> Bool
$c/= :: ValidityPeriodProperty -> ValidityPeriodProperty -> Bool
/= :: ValidityPeriodProperty -> ValidityPeriodProperty -> Bool
Prelude.Eq, Int -> ValidityPeriodProperty -> ShowS
[ValidityPeriodProperty] -> ShowS
ValidityPeriodProperty -> String
(Int -> ValidityPeriodProperty -> ShowS)
-> (ValidityPeriodProperty -> String)
-> ([ValidityPeriodProperty] -> ShowS)
-> Show ValidityPeriodProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ValidityPeriodProperty -> ShowS
showsPrec :: Int -> ValidityPeriodProperty -> ShowS
$cshow :: ValidityPeriodProperty -> String
show :: ValidityPeriodProperty -> String
$cshowList :: [ValidityPeriodProperty] -> ShowS
showList :: [ValidityPeriodProperty] -> ShowS
Prelude.Show)
mkValidityPeriodProperty ::
  Value Prelude.Double
  -> Value Prelude.Text -> ValidityPeriodProperty
mkValidityPeriodProperty :: Value Double -> Value Text -> ValidityPeriodProperty
mkValidityPeriodProperty Value Double
period Value Text
periodType
  = ValidityPeriodProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), period :: Value Double
period = Value Double
period,
       periodType :: Value Text
periodType = Value Text
periodType}
instance ToResourceProperties ValidityPeriodProperty where
  toResourceProperties :: ValidityPeriodProperty -> ResourceProperties
toResourceProperties ValidityPeriodProperty {()
Value Double
Value Text
haddock_workaround_ :: ValidityPeriodProperty -> ()
period :: ValidityPeriodProperty -> Value Double
periodType :: ValidityPeriodProperty -> Value Text
haddock_workaround_ :: ()
period :: Value Double
periodType :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::PCAConnectorAD::Template.ValidityPeriod",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Period" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
period,
                       Key
"PeriodType" 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
periodType]}
instance JSON.ToJSON ValidityPeriodProperty where
  toJSON :: ValidityPeriodProperty -> Value
toJSON ValidityPeriodProperty {()
Value Double
Value Text
haddock_workaround_ :: ValidityPeriodProperty -> ()
period :: ValidityPeriodProperty -> Value Double
periodType :: ValidityPeriodProperty -> Value Text
haddock_workaround_ :: ()
period :: Value Double
periodType :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Period" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
period, Key
"PeriodType" 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
periodType]
instance Property "Period" ValidityPeriodProperty where
  type PropertyType "Period" ValidityPeriodProperty = Value Prelude.Double
  set :: PropertyType "Period" ValidityPeriodProperty
-> ValidityPeriodProperty -> ValidityPeriodProperty
set PropertyType "Period" ValidityPeriodProperty
newValue ValidityPeriodProperty {()
Value Double
Value Text
haddock_workaround_ :: ValidityPeriodProperty -> ()
period :: ValidityPeriodProperty -> Value Double
periodType :: ValidityPeriodProperty -> Value Text
haddock_workaround_ :: ()
period :: Value Double
periodType :: Value Text
..}
    = ValidityPeriodProperty {period :: Value Double
period = PropertyType "Period" ValidityPeriodProperty
Value Double
newValue, ()
Value Text
haddock_workaround_ :: ()
periodType :: Value Text
haddock_workaround_ :: ()
periodType :: Value Text
..}
instance Property "PeriodType" ValidityPeriodProperty where
  type PropertyType "PeriodType" ValidityPeriodProperty = Value Prelude.Text
  set :: PropertyType "PeriodType" ValidityPeriodProperty
-> ValidityPeriodProperty -> ValidityPeriodProperty
set PropertyType "PeriodType" ValidityPeriodProperty
newValue ValidityPeriodProperty {()
Value Double
Value Text
haddock_workaround_ :: ValidityPeriodProperty -> ()
period :: ValidityPeriodProperty -> Value Double
periodType :: ValidityPeriodProperty -> Value Text
haddock_workaround_ :: ()
period :: Value Double
periodType :: Value Text
..}
    = ValidityPeriodProperty {periodType :: Value Text
periodType = PropertyType "PeriodType" ValidityPeriodProperty
Value Text
newValue, ()
Value Double
haddock_workaround_ :: ()
period :: Value Double
haddock_workaround_ :: ()
period :: Value Double
..}