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