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