module Stratosphere.ACMPCA.Certificate.ValidityProperty (
        ValidityProperty(..), mkValidityProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ValidityProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificate-validity.html>
    ValidityProperty {ValidityProperty -> ()
haddock_workaround_ :: (),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificate-validity.html#cfn-acmpca-certificate-validity-type>
                      ValidityProperty -> Value Text
type' :: (Value Prelude.Text),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificate-validity.html#cfn-acmpca-certificate-validity-value>
                      ValidityProperty -> Value Double
value :: (Value Prelude.Double)}
  deriving stock (ValidityProperty -> ValidityProperty -> Bool
(ValidityProperty -> ValidityProperty -> Bool)
-> (ValidityProperty -> ValidityProperty -> Bool)
-> Eq ValidityProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ValidityProperty -> ValidityProperty -> Bool
== :: ValidityProperty -> ValidityProperty -> Bool
$c/= :: ValidityProperty -> ValidityProperty -> Bool
/= :: ValidityProperty -> ValidityProperty -> Bool
Prelude.Eq, Int -> ValidityProperty -> ShowS
[ValidityProperty] -> ShowS
ValidityProperty -> String
(Int -> ValidityProperty -> ShowS)
-> (ValidityProperty -> String)
-> ([ValidityProperty] -> ShowS)
-> Show ValidityProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ValidityProperty -> ShowS
showsPrec :: Int -> ValidityProperty -> ShowS
$cshow :: ValidityProperty -> String
show :: ValidityProperty -> String
$cshowList :: [ValidityProperty] -> ShowS
showList :: [ValidityProperty] -> ShowS
Prelude.Show)
mkValidityProperty ::
  Value Prelude.Text -> Value Prelude.Double -> ValidityProperty
mkValidityProperty :: Value Text -> Value Double -> ValidityProperty
mkValidityProperty Value Text
type' Value Double
value
  = ValidityProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', value :: Value Double
value = Value Double
value}
instance ToResourceProperties ValidityProperty where
  toResourceProperties :: ValidityProperty -> ResourceProperties
toResourceProperties ValidityProperty {()
Value Double
Value Text
haddock_workaround_ :: ValidityProperty -> ()
type' :: ValidityProperty -> Value Text
value :: ValidityProperty -> Value Double
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Double
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ACMPCA::Certificate.Validity",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Type" 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
type', Key
"Value" 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
value]}
instance JSON.ToJSON ValidityProperty where
  toJSON :: ValidityProperty -> Value
toJSON ValidityProperty {()
Value Double
Value Text
haddock_workaround_ :: ValidityProperty -> ()
type' :: ValidityProperty -> Value Text
value :: ValidityProperty -> Value Double
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Double
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Type" 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
type', Key
"Value" 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
value]
instance Property "Type" ValidityProperty where
  type PropertyType "Type" ValidityProperty = Value Prelude.Text
  set :: PropertyType "Type" ValidityProperty
-> ValidityProperty -> ValidityProperty
set PropertyType "Type" ValidityProperty
newValue ValidityProperty {()
Value Double
Value Text
haddock_workaround_ :: ValidityProperty -> ()
type' :: ValidityProperty -> Value Text
value :: ValidityProperty -> Value Double
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Double
..}
    = ValidityProperty {type' :: Value Text
type' = PropertyType "Type" ValidityProperty
Value Text
newValue, ()
Value Double
haddock_workaround_ :: ()
value :: Value Double
haddock_workaround_ :: ()
value :: Value Double
..}
instance Property "Value" ValidityProperty where
  type PropertyType "Value" ValidityProperty = Value Prelude.Double
  set :: PropertyType "Value" ValidityProperty
-> ValidityProperty -> ValidityProperty
set PropertyType "Value" ValidityProperty
newValue ValidityProperty {()
Value Double
Value Text
haddock_workaround_ :: ValidityProperty -> ()
type' :: ValidityProperty -> Value Text
value :: ValidityProperty -> Value Double
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Double
..}
    = ValidityProperty {value :: Value Double
value = PropertyType "Value" ValidityProperty
Value Double
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}