module Stratosphere.CodePipeline.Pipeline.BlockerDeclarationProperty (
BlockerDeclarationProperty(..), mkBlockerDeclarationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BlockerDeclarationProperty
=
BlockerDeclarationProperty {BlockerDeclarationProperty -> ()
haddock_workaround_ :: (),
BlockerDeclarationProperty -> Value Text
name :: (Value Prelude.Text),
BlockerDeclarationProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (BlockerDeclarationProperty -> BlockerDeclarationProperty -> Bool
(BlockerDeclarationProperty -> BlockerDeclarationProperty -> Bool)
-> (BlockerDeclarationProperty
-> BlockerDeclarationProperty -> Bool)
-> Eq BlockerDeclarationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BlockerDeclarationProperty -> BlockerDeclarationProperty -> Bool
== :: BlockerDeclarationProperty -> BlockerDeclarationProperty -> Bool
$c/= :: BlockerDeclarationProperty -> BlockerDeclarationProperty -> Bool
/= :: BlockerDeclarationProperty -> BlockerDeclarationProperty -> Bool
Prelude.Eq, Int -> BlockerDeclarationProperty -> ShowS
[BlockerDeclarationProperty] -> ShowS
BlockerDeclarationProperty -> String
(Int -> BlockerDeclarationProperty -> ShowS)
-> (BlockerDeclarationProperty -> String)
-> ([BlockerDeclarationProperty] -> ShowS)
-> Show BlockerDeclarationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BlockerDeclarationProperty -> ShowS
showsPrec :: Int -> BlockerDeclarationProperty -> ShowS
$cshow :: BlockerDeclarationProperty -> String
show :: BlockerDeclarationProperty -> String
$cshowList :: [BlockerDeclarationProperty] -> ShowS
showList :: [BlockerDeclarationProperty] -> ShowS
Prelude.Show)
mkBlockerDeclarationProperty ::
Value Prelude.Text
-> Value Prelude.Text -> BlockerDeclarationProperty
mkBlockerDeclarationProperty :: Value Text -> Value Text -> BlockerDeclarationProperty
mkBlockerDeclarationProperty Value Text
name Value Text
type'
= BlockerDeclarationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties BlockerDeclarationProperty where
toResourceProperties :: BlockerDeclarationProperty -> ResourceProperties
toResourceProperties BlockerDeclarationProperty {()
Value Text
haddock_workaround_ :: BlockerDeclarationProperty -> ()
name :: BlockerDeclarationProperty -> Value Text
type' :: BlockerDeclarationProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodePipeline::Pipeline.BlockerDeclaration",
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
"Type" 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
type']}
instance JSON.ToJSON BlockerDeclarationProperty where
toJSON :: BlockerDeclarationProperty -> Value
toJSON BlockerDeclarationProperty {()
Value Text
haddock_workaround_ :: BlockerDeclarationProperty -> ()
name :: BlockerDeclarationProperty -> Value Text
type' :: BlockerDeclarationProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: 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
"Type" 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
type']
instance Property "Name" BlockerDeclarationProperty where
type PropertyType "Name" BlockerDeclarationProperty = Value Prelude.Text
set :: PropertyType "Name" BlockerDeclarationProperty
-> BlockerDeclarationProperty -> BlockerDeclarationProperty
set PropertyType "Name" BlockerDeclarationProperty
newValue BlockerDeclarationProperty {()
Value Text
haddock_workaround_ :: BlockerDeclarationProperty -> ()
name :: BlockerDeclarationProperty -> Value Text
type' :: BlockerDeclarationProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Value Text
..}
= BlockerDeclarationProperty {name :: Value Text
name = PropertyType "Name" BlockerDeclarationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" BlockerDeclarationProperty where
type PropertyType "Type" BlockerDeclarationProperty = Value Prelude.Text
set :: PropertyType "Type" BlockerDeclarationProperty
-> BlockerDeclarationProperty -> BlockerDeclarationProperty
set PropertyType "Type" BlockerDeclarationProperty
newValue BlockerDeclarationProperty {()
Value Text
haddock_workaround_ :: BlockerDeclarationProperty -> ()
name :: BlockerDeclarationProperty -> Value Text
type' :: BlockerDeclarationProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
type' :: Value Text
..}
= BlockerDeclarationProperty {type' :: Value Text
type' = PropertyType "Type" BlockerDeclarationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}