module Stratosphere.AppConfig.ConfigurationProfile.ValidatorsProperty (
        ValidatorsProperty(..), mkValidatorsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ValidatorsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-configurationprofile-validators.html>
    ValidatorsProperty {ValidatorsProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-configurationprofile-validators.html#cfn-appconfig-configurationprofile-validators-content>
                        ValidatorsProperty -> Maybe (Value Text)
content :: (Prelude.Maybe (Value Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-configurationprofile-validators.html#cfn-appconfig-configurationprofile-validators-type>
                        ValidatorsProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ValidatorsProperty -> ValidatorsProperty -> Bool
(ValidatorsProperty -> ValidatorsProperty -> Bool)
-> (ValidatorsProperty -> ValidatorsProperty -> Bool)
-> Eq ValidatorsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ValidatorsProperty -> ValidatorsProperty -> Bool
== :: ValidatorsProperty -> ValidatorsProperty -> Bool
$c/= :: ValidatorsProperty -> ValidatorsProperty -> Bool
/= :: ValidatorsProperty -> ValidatorsProperty -> Bool
Prelude.Eq, Int -> ValidatorsProperty -> ShowS
[ValidatorsProperty] -> ShowS
ValidatorsProperty -> String
(Int -> ValidatorsProperty -> ShowS)
-> (ValidatorsProperty -> String)
-> ([ValidatorsProperty] -> ShowS)
-> Show ValidatorsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ValidatorsProperty -> ShowS
showsPrec :: Int -> ValidatorsProperty -> ShowS
$cshow :: ValidatorsProperty -> String
show :: ValidatorsProperty -> String
$cshowList :: [ValidatorsProperty] -> ShowS
showList :: [ValidatorsProperty] -> ShowS
Prelude.Show)
mkValidatorsProperty :: ValidatorsProperty
mkValidatorsProperty :: ValidatorsProperty
mkValidatorsProperty
  = ValidatorsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), content :: Maybe (Value Text)
content = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ValidatorsProperty where
  toResourceProperties :: ValidatorsProperty -> ResourceProperties
toResourceProperties ValidatorsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ValidatorsProperty -> ()
content :: ValidatorsProperty -> Maybe (Value Text)
type' :: ValidatorsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppConfig::ConfigurationProfile.Validators",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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..=) Key
"Content" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
content,
                            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..=) Key
"Type" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
type'])}
instance JSON.ToJSON ValidatorsProperty where
  toJSON :: ValidatorsProperty -> Value
toJSON ValidatorsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ValidatorsProperty -> ()
content :: ValidatorsProperty -> Maybe (Value Text)
type' :: ValidatorsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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..=) Key
"Content" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
content,
               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..=) Key
"Type" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
type']))
instance Property "Content" ValidatorsProperty where
  type PropertyType "Content" ValidatorsProperty = Value Prelude.Text
  set :: PropertyType "Content" ValidatorsProperty
-> ValidatorsProperty -> ValidatorsProperty
set PropertyType "Content" ValidatorsProperty
newValue ValidatorsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ValidatorsProperty -> ()
content :: ValidatorsProperty -> Maybe (Value Text)
type' :: ValidatorsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = ValidatorsProperty {content :: Maybe (Value Text)
content = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Content" ValidatorsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
..}
instance Property "Type" ValidatorsProperty where
  type PropertyType "Type" ValidatorsProperty = Value Prelude.Text
  set :: PropertyType "Type" ValidatorsProperty
-> ValidatorsProperty -> ValidatorsProperty
set PropertyType "Type" ValidatorsProperty
newValue ValidatorsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ValidatorsProperty -> ()
content :: ValidatorsProperty -> Maybe (Value Text)
type' :: ValidatorsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = ValidatorsProperty {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" ValidatorsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
content :: Maybe (Value Text)
haddock_workaround_ :: ()
content :: Maybe (Value Text)
..}