module Stratosphere.ImageBuilder.ContainerRecipe.ComponentConfigurationProperty (
        module Exports, ComponentConfigurationProperty(..),
        mkComponentConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ImageBuilder.ContainerRecipe.ComponentParameterProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ComponentConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-componentconfiguration.html>
    ComponentConfigurationProperty {ComponentConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-componentconfiguration.html#cfn-imagebuilder-containerrecipe-componentconfiguration-componentarn>
                                    ComponentConfigurationProperty -> Maybe (Value Text)
componentArn :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-componentconfiguration.html#cfn-imagebuilder-containerrecipe-componentconfiguration-parameters>
                                    ComponentConfigurationProperty
-> Maybe [ComponentParameterProperty]
parameters :: (Prelude.Maybe [ComponentParameterProperty])}
  deriving stock (ComponentConfigurationProperty
-> ComponentConfigurationProperty -> Bool
(ComponentConfigurationProperty
 -> ComponentConfigurationProperty -> Bool)
-> (ComponentConfigurationProperty
    -> ComponentConfigurationProperty -> Bool)
-> Eq ComponentConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ComponentConfigurationProperty
-> ComponentConfigurationProperty -> Bool
== :: ComponentConfigurationProperty
-> ComponentConfigurationProperty -> Bool
$c/= :: ComponentConfigurationProperty
-> ComponentConfigurationProperty -> Bool
/= :: ComponentConfigurationProperty
-> ComponentConfigurationProperty -> Bool
Prelude.Eq, Int -> ComponentConfigurationProperty -> ShowS
[ComponentConfigurationProperty] -> ShowS
ComponentConfigurationProperty -> String
(Int -> ComponentConfigurationProperty -> ShowS)
-> (ComponentConfigurationProperty -> String)
-> ([ComponentConfigurationProperty] -> ShowS)
-> Show ComponentConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ComponentConfigurationProperty -> ShowS
showsPrec :: Int -> ComponentConfigurationProperty -> ShowS
$cshow :: ComponentConfigurationProperty -> String
show :: ComponentConfigurationProperty -> String
$cshowList :: [ComponentConfigurationProperty] -> ShowS
showList :: [ComponentConfigurationProperty] -> ShowS
Prelude.Show)
mkComponentConfigurationProperty :: ComponentConfigurationProperty
mkComponentConfigurationProperty :: ComponentConfigurationProperty
mkComponentConfigurationProperty
  = ComponentConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), componentArn :: Maybe (Value Text)
componentArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       parameters :: Maybe [ComponentParameterProperty]
parameters = Maybe [ComponentParameterProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ComponentConfigurationProperty where
  toResourceProperties :: ComponentConfigurationProperty -> ResourceProperties
toResourceProperties ComponentConfigurationProperty {Maybe [ComponentParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ComponentConfigurationProperty -> ()
componentArn :: ComponentConfigurationProperty -> Maybe (Value Text)
parameters :: ComponentConfigurationProperty
-> Maybe [ComponentParameterProperty]
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
parameters :: Maybe [ComponentParameterProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ImageBuilder::ContainerRecipe.ComponentConfiguration",
         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
"ComponentArn" (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)
componentArn,
                            Key -> [ComponentParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Parameters" ([ComponentParameterProperty] -> (Key, Value))
-> Maybe [ComponentParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ComponentParameterProperty]
parameters])}
instance JSON.ToJSON ComponentConfigurationProperty where
  toJSON :: ComponentConfigurationProperty -> Value
toJSON ComponentConfigurationProperty {Maybe [ComponentParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ComponentConfigurationProperty -> ()
componentArn :: ComponentConfigurationProperty -> Maybe (Value Text)
parameters :: ComponentConfigurationProperty
-> Maybe [ComponentParameterProperty]
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
parameters :: Maybe [ComponentParameterProperty]
..}
    = [(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
"ComponentArn" (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)
componentArn,
               Key -> [ComponentParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Parameters" ([ComponentParameterProperty] -> (Key, Value))
-> Maybe [ComponentParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ComponentParameterProperty]
parameters]))
instance Property "ComponentArn" ComponentConfigurationProperty where
  type PropertyType "ComponentArn" ComponentConfigurationProperty = Value Prelude.Text
  set :: PropertyType "ComponentArn" ComponentConfigurationProperty
-> ComponentConfigurationProperty -> ComponentConfigurationProperty
set PropertyType "ComponentArn" ComponentConfigurationProperty
newValue ComponentConfigurationProperty {Maybe [ComponentParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ComponentConfigurationProperty -> ()
componentArn :: ComponentConfigurationProperty -> Maybe (Value Text)
parameters :: ComponentConfigurationProperty
-> Maybe [ComponentParameterProperty]
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
parameters :: Maybe [ComponentParameterProperty]
..}
    = ComponentConfigurationProperty
        {componentArn :: Maybe (Value Text)
componentArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ComponentArn" ComponentConfigurationProperty
Value Text
newValue, Maybe [ComponentParameterProperty]
()
haddock_workaround_ :: ()
parameters :: Maybe [ComponentParameterProperty]
haddock_workaround_ :: ()
parameters :: Maybe [ComponentParameterProperty]
..}
instance Property "Parameters" ComponentConfigurationProperty where
  type PropertyType "Parameters" ComponentConfigurationProperty = [ComponentParameterProperty]
  set :: PropertyType "Parameters" ComponentConfigurationProperty
-> ComponentConfigurationProperty -> ComponentConfigurationProperty
set PropertyType "Parameters" ComponentConfigurationProperty
newValue ComponentConfigurationProperty {Maybe [ComponentParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ComponentConfigurationProperty -> ()
componentArn :: ComponentConfigurationProperty -> Maybe (Value Text)
parameters :: ComponentConfigurationProperty
-> Maybe [ComponentParameterProperty]
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
parameters :: Maybe [ComponentParameterProperty]
..}
    = ComponentConfigurationProperty
        {parameters :: Maybe [ComponentParameterProperty]
parameters = [ComponentParameterProperty] -> Maybe [ComponentParameterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ComponentParameterProperty]
PropertyType "Parameters" ComponentConfigurationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
..}