module Stratosphere.ImageBuilder.LifecyclePolicy.RecipeSelectionProperty (
RecipeSelectionProperty(..), mkRecipeSelectionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RecipeSelectionProperty
=
RecipeSelectionProperty {RecipeSelectionProperty -> ()
haddock_workaround_ :: (),
RecipeSelectionProperty -> Value Text
name :: (Value Prelude.Text),
RecipeSelectionProperty -> Value Text
semanticVersion :: (Value Prelude.Text)}
deriving stock (RecipeSelectionProperty -> RecipeSelectionProperty -> Bool
(RecipeSelectionProperty -> RecipeSelectionProperty -> Bool)
-> (RecipeSelectionProperty -> RecipeSelectionProperty -> Bool)
-> Eq RecipeSelectionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RecipeSelectionProperty -> RecipeSelectionProperty -> Bool
== :: RecipeSelectionProperty -> RecipeSelectionProperty -> Bool
$c/= :: RecipeSelectionProperty -> RecipeSelectionProperty -> Bool
/= :: RecipeSelectionProperty -> RecipeSelectionProperty -> Bool
Prelude.Eq, Int -> RecipeSelectionProperty -> ShowS
[RecipeSelectionProperty] -> ShowS
RecipeSelectionProperty -> String
(Int -> RecipeSelectionProperty -> ShowS)
-> (RecipeSelectionProperty -> String)
-> ([RecipeSelectionProperty] -> ShowS)
-> Show RecipeSelectionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RecipeSelectionProperty -> ShowS
showsPrec :: Int -> RecipeSelectionProperty -> ShowS
$cshow :: RecipeSelectionProperty -> String
show :: RecipeSelectionProperty -> String
$cshowList :: [RecipeSelectionProperty] -> ShowS
showList :: [RecipeSelectionProperty] -> ShowS
Prelude.Show)
mkRecipeSelectionProperty ::
Value Prelude.Text -> Value Prelude.Text -> RecipeSelectionProperty
mkRecipeSelectionProperty :: Value Text -> Value Text -> RecipeSelectionProperty
mkRecipeSelectionProperty Value Text
name Value Text
semanticVersion
= RecipeSelectionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
semanticVersion :: Value Text
semanticVersion = Value Text
semanticVersion}
instance ToResourceProperties RecipeSelectionProperty where
toResourceProperties :: RecipeSelectionProperty -> ResourceProperties
toResourceProperties RecipeSelectionProperty {()
Value Text
haddock_workaround_ :: RecipeSelectionProperty -> ()
name :: RecipeSelectionProperty -> Value Text
semanticVersion :: RecipeSelectionProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
semanticVersion :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ImageBuilder::LifecyclePolicy.RecipeSelection",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Name" 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
name,
Key
"SemanticVersion" 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
semanticVersion]}
instance JSON.ToJSON RecipeSelectionProperty where
toJSON :: RecipeSelectionProperty -> Value
toJSON RecipeSelectionProperty {()
Value Text
haddock_workaround_ :: RecipeSelectionProperty -> ()
name :: RecipeSelectionProperty -> Value Text
semanticVersion :: RecipeSelectionProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
semanticVersion :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Name" 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
name, Key
"SemanticVersion" 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
semanticVersion]
instance Property "Name" RecipeSelectionProperty where
type PropertyType "Name" RecipeSelectionProperty = Value Prelude.Text
set :: PropertyType "Name" RecipeSelectionProperty
-> RecipeSelectionProperty -> RecipeSelectionProperty
set PropertyType "Name" RecipeSelectionProperty
newValue RecipeSelectionProperty {()
Value Text
haddock_workaround_ :: RecipeSelectionProperty -> ()
name :: RecipeSelectionProperty -> Value Text
semanticVersion :: RecipeSelectionProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
semanticVersion :: Value Text
..}
= RecipeSelectionProperty {name :: Value Text
name = PropertyType "Name" RecipeSelectionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
semanticVersion :: Value Text
haddock_workaround_ :: ()
semanticVersion :: Value Text
..}
instance Property "SemanticVersion" RecipeSelectionProperty where
type PropertyType "SemanticVersion" RecipeSelectionProperty = Value Prelude.Text
set :: PropertyType "SemanticVersion" RecipeSelectionProperty
-> RecipeSelectionProperty -> RecipeSelectionProperty
set PropertyType "SemanticVersion" RecipeSelectionProperty
newValue RecipeSelectionProperty {()
Value Text
haddock_workaround_ :: RecipeSelectionProperty -> ()
name :: RecipeSelectionProperty -> Value Text
semanticVersion :: RecipeSelectionProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
semanticVersion :: Value Text
..}
= RecipeSelectionProperty {semanticVersion :: Value Text
semanticVersion = PropertyType "SemanticVersion" RecipeSelectionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}