module Stratosphere.DataZone.ProjectProfile.EnvironmentConfigurationParametersDetailsProperty (
        module Exports,
        EnvironmentConfigurationParametersDetailsProperty(..),
        mkEnvironmentConfigurationParametersDetailsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataZone.ProjectProfile.EnvironmentConfigurationParameterProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EnvironmentConfigurationParametersDetailsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectprofile-environmentconfigurationparametersdetails.html>
    EnvironmentConfigurationParametersDetailsProperty {EnvironmentConfigurationParametersDetailsProperty -> ()
haddock_workaround_ :: (),
                                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectprofile-environmentconfigurationparametersdetails.html#cfn-datazone-projectprofile-environmentconfigurationparametersdetails-parameteroverrides>
                                                       EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
parameterOverrides :: (Prelude.Maybe [EnvironmentConfigurationParameterProperty]),
                                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectprofile-environmentconfigurationparametersdetails.html#cfn-datazone-projectprofile-environmentconfigurationparametersdetails-resolvedparameters>
                                                       EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: (Prelude.Maybe [EnvironmentConfigurationParameterProperty]),
                                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-projectprofile-environmentconfigurationparametersdetails.html#cfn-datazone-projectprofile-environmentconfigurationparametersdetails-ssmpath>
                                                       EnvironmentConfigurationParametersDetailsProperty
-> Maybe (Value Text)
ssmPath :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (EnvironmentConfigurationParametersDetailsProperty
-> EnvironmentConfigurationParametersDetailsProperty -> Bool
(EnvironmentConfigurationParametersDetailsProperty
 -> EnvironmentConfigurationParametersDetailsProperty -> Bool)
-> (EnvironmentConfigurationParametersDetailsProperty
    -> EnvironmentConfigurationParametersDetailsProperty -> Bool)
-> Eq EnvironmentConfigurationParametersDetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EnvironmentConfigurationParametersDetailsProperty
-> EnvironmentConfigurationParametersDetailsProperty -> Bool
== :: EnvironmentConfigurationParametersDetailsProperty
-> EnvironmentConfigurationParametersDetailsProperty -> Bool
$c/= :: EnvironmentConfigurationParametersDetailsProperty
-> EnvironmentConfigurationParametersDetailsProperty -> Bool
/= :: EnvironmentConfigurationParametersDetailsProperty
-> EnvironmentConfigurationParametersDetailsProperty -> Bool
Prelude.Eq, Int -> EnvironmentConfigurationParametersDetailsProperty -> ShowS
[EnvironmentConfigurationParametersDetailsProperty] -> ShowS
EnvironmentConfigurationParametersDetailsProperty -> String
(Int -> EnvironmentConfigurationParametersDetailsProperty -> ShowS)
-> (EnvironmentConfigurationParametersDetailsProperty -> String)
-> ([EnvironmentConfigurationParametersDetailsProperty] -> ShowS)
-> Show EnvironmentConfigurationParametersDetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EnvironmentConfigurationParametersDetailsProperty -> ShowS
showsPrec :: Int -> EnvironmentConfigurationParametersDetailsProperty -> ShowS
$cshow :: EnvironmentConfigurationParametersDetailsProperty -> String
show :: EnvironmentConfigurationParametersDetailsProperty -> String
$cshowList :: [EnvironmentConfigurationParametersDetailsProperty] -> ShowS
showList :: [EnvironmentConfigurationParametersDetailsProperty] -> ShowS
Prelude.Show)
mkEnvironmentConfigurationParametersDetailsProperty ::
  EnvironmentConfigurationParametersDetailsProperty
mkEnvironmentConfigurationParametersDetailsProperty :: EnvironmentConfigurationParametersDetailsProperty
mkEnvironmentConfigurationParametersDetailsProperty
  = EnvironmentConfigurationParametersDetailsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), parameterOverrides :: Maybe [EnvironmentConfigurationParameterProperty]
parameterOverrides = Maybe [EnvironmentConfigurationParameterProperty]
forall a. Maybe a
Prelude.Nothing,
       resolvedParameters :: Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters = Maybe [EnvironmentConfigurationParameterProperty]
forall a. Maybe a
Prelude.Nothing, ssmPath :: Maybe (Value Text)
ssmPath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EnvironmentConfigurationParametersDetailsProperty where
  toResourceProperties :: EnvironmentConfigurationParametersDetailsProperty
-> ResourceProperties
toResourceProperties
    EnvironmentConfigurationParametersDetailsProperty {Maybe [EnvironmentConfigurationParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: EnvironmentConfigurationParametersDetailsProperty -> ()
parameterOverrides :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
parameterOverrides :: Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataZone::ProjectProfile.EnvironmentConfigurationParametersDetails",
         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 -> [EnvironmentConfigurationParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ParameterOverrides" ([EnvironmentConfigurationParameterProperty] -> (Key, Value))
-> Maybe [EnvironmentConfigurationParameterProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [EnvironmentConfigurationParameterProperty]
parameterOverrides,
                            Key -> [EnvironmentConfigurationParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResolvedParameters" ([EnvironmentConfigurationParameterProperty] -> (Key, Value))
-> Maybe [EnvironmentConfigurationParameterProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters,
                            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
"SsmPath" (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)
ssmPath])}
instance JSON.ToJSON EnvironmentConfigurationParametersDetailsProperty where
  toJSON :: EnvironmentConfigurationParametersDetailsProperty -> Value
toJSON EnvironmentConfigurationParametersDetailsProperty {Maybe [EnvironmentConfigurationParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: EnvironmentConfigurationParametersDetailsProperty -> ()
parameterOverrides :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
parameterOverrides :: Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: 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 -> [EnvironmentConfigurationParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ParameterOverrides" ([EnvironmentConfigurationParameterProperty] -> (Key, Value))
-> Maybe [EnvironmentConfigurationParameterProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [EnvironmentConfigurationParameterProperty]
parameterOverrides,
               Key -> [EnvironmentConfigurationParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResolvedParameters" ([EnvironmentConfigurationParameterProperty] -> (Key, Value))
-> Maybe [EnvironmentConfigurationParameterProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters,
               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
"SsmPath" (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)
ssmPath]))
instance Property "ParameterOverrides" EnvironmentConfigurationParametersDetailsProperty where
  type PropertyType "ParameterOverrides" EnvironmentConfigurationParametersDetailsProperty = [EnvironmentConfigurationParameterProperty]
  set :: PropertyType
  "ParameterOverrides"
  EnvironmentConfigurationParametersDetailsProperty
-> EnvironmentConfigurationParametersDetailsProperty
-> EnvironmentConfigurationParametersDetailsProperty
set PropertyType
  "ParameterOverrides"
  EnvironmentConfigurationParametersDetailsProperty
newValue EnvironmentConfigurationParametersDetailsProperty {Maybe [EnvironmentConfigurationParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: EnvironmentConfigurationParametersDetailsProperty -> ()
parameterOverrides :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
parameterOverrides :: Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: Maybe (Value Text)
..}
    = EnvironmentConfigurationParametersDetailsProperty
        {parameterOverrides :: Maybe [EnvironmentConfigurationParameterProperty]
parameterOverrides = [EnvironmentConfigurationParameterProperty]
-> Maybe [EnvironmentConfigurationParameterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [EnvironmentConfigurationParameterProperty]
PropertyType
  "ParameterOverrides"
  EnvironmentConfigurationParametersDetailsProperty
newValue, Maybe [EnvironmentConfigurationParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
resolvedParameters :: Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: Maybe (Value Text)
haddock_workaround_ :: ()
resolvedParameters :: Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: Maybe (Value Text)
..}
instance Property "ResolvedParameters" EnvironmentConfigurationParametersDetailsProperty where
  type PropertyType "ResolvedParameters" EnvironmentConfigurationParametersDetailsProperty = [EnvironmentConfigurationParameterProperty]
  set :: PropertyType
  "ResolvedParameters"
  EnvironmentConfigurationParametersDetailsProperty
-> EnvironmentConfigurationParametersDetailsProperty
-> EnvironmentConfigurationParametersDetailsProperty
set PropertyType
  "ResolvedParameters"
  EnvironmentConfigurationParametersDetailsProperty
newValue EnvironmentConfigurationParametersDetailsProperty {Maybe [EnvironmentConfigurationParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: EnvironmentConfigurationParametersDetailsProperty -> ()
parameterOverrides :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
parameterOverrides :: Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: Maybe (Value Text)
..}
    = EnvironmentConfigurationParametersDetailsProperty
        {resolvedParameters :: Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters = [EnvironmentConfigurationParameterProperty]
-> Maybe [EnvironmentConfigurationParameterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [EnvironmentConfigurationParameterProperty]
PropertyType
  "ResolvedParameters"
  EnvironmentConfigurationParametersDetailsProperty
newValue, Maybe [EnvironmentConfigurationParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
parameterOverrides :: Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: Maybe (Value Text)
haddock_workaround_ :: ()
parameterOverrides :: Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: Maybe (Value Text)
..}
instance Property "SsmPath" EnvironmentConfigurationParametersDetailsProperty where
  type PropertyType "SsmPath" EnvironmentConfigurationParametersDetailsProperty = Value Prelude.Text
  set :: PropertyType
  "SsmPath" EnvironmentConfigurationParametersDetailsProperty
-> EnvironmentConfigurationParametersDetailsProperty
-> EnvironmentConfigurationParametersDetailsProperty
set PropertyType
  "SsmPath" EnvironmentConfigurationParametersDetailsProperty
newValue EnvironmentConfigurationParametersDetailsProperty {Maybe [EnvironmentConfigurationParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: EnvironmentConfigurationParametersDetailsProperty -> ()
parameterOverrides :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: EnvironmentConfigurationParametersDetailsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
parameterOverrides :: Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: Maybe [EnvironmentConfigurationParameterProperty]
ssmPath :: Maybe (Value Text)
..}
    = EnvironmentConfigurationParametersDetailsProperty
        {ssmPath :: Maybe (Value Text)
ssmPath = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SsmPath" EnvironmentConfigurationParametersDetailsProperty
Value Text
newValue, Maybe [EnvironmentConfigurationParameterProperty]
()
haddock_workaround_ :: ()
parameterOverrides :: Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: Maybe [EnvironmentConfigurationParameterProperty]
haddock_workaround_ :: ()
parameterOverrides :: Maybe [EnvironmentConfigurationParameterProperty]
resolvedParameters :: Maybe [EnvironmentConfigurationParameterProperty]
..}