module Stratosphere.CodePipeline.Pipeline.OutputArtifactProperty (
OutputArtifactProperty(..), mkOutputArtifactProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutputArtifactProperty
=
OutputArtifactProperty {OutputArtifactProperty -> ()
haddock_workaround_ :: (),
OutputArtifactProperty -> Maybe (ValueList Text)
files :: (Prelude.Maybe (ValueList Prelude.Text)),
OutputArtifactProperty -> Value Text
name :: (Value Prelude.Text)}
deriving stock (OutputArtifactProperty -> OutputArtifactProperty -> Bool
(OutputArtifactProperty -> OutputArtifactProperty -> Bool)
-> (OutputArtifactProperty -> OutputArtifactProperty -> Bool)
-> Eq OutputArtifactProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutputArtifactProperty -> OutputArtifactProperty -> Bool
== :: OutputArtifactProperty -> OutputArtifactProperty -> Bool
$c/= :: OutputArtifactProperty -> OutputArtifactProperty -> Bool
/= :: OutputArtifactProperty -> OutputArtifactProperty -> Bool
Prelude.Eq, Int -> OutputArtifactProperty -> ShowS
[OutputArtifactProperty] -> ShowS
OutputArtifactProperty -> String
(Int -> OutputArtifactProperty -> ShowS)
-> (OutputArtifactProperty -> String)
-> ([OutputArtifactProperty] -> ShowS)
-> Show OutputArtifactProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutputArtifactProperty -> ShowS
showsPrec :: Int -> OutputArtifactProperty -> ShowS
$cshow :: OutputArtifactProperty -> String
show :: OutputArtifactProperty -> String
$cshowList :: [OutputArtifactProperty] -> ShowS
showList :: [OutputArtifactProperty] -> ShowS
Prelude.Show)
mkOutputArtifactProperty ::
Value Prelude.Text -> OutputArtifactProperty
mkOutputArtifactProperty :: Value Text -> OutputArtifactProperty
mkOutputArtifactProperty Value Text
name
= OutputArtifactProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, files :: Maybe (ValueList Text)
files = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OutputArtifactProperty where
toResourceProperties :: OutputArtifactProperty -> ResourceProperties
toResourceProperties OutputArtifactProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: OutputArtifactProperty -> ()
files :: OutputArtifactProperty -> Maybe (ValueList Text)
name :: OutputArtifactProperty -> Value Text
haddock_workaround_ :: ()
files :: Maybe (ValueList Text)
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodePipeline::Pipeline.OutputArtifact",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> ValueList 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
"Files" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
files]))}
instance JSON.ToJSON OutputArtifactProperty where
toJSON :: OutputArtifactProperty -> Value
toJSON OutputArtifactProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: OutputArtifactProperty -> ()
files :: OutputArtifactProperty -> Maybe (ValueList Text)
name :: OutputArtifactProperty -> Value Text
haddock_workaround_ :: ()
files :: Maybe (ValueList Text)
name :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> ValueList 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
"Files" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
files])))
instance Property "Files" OutputArtifactProperty where
type PropertyType "Files" OutputArtifactProperty = ValueList Prelude.Text
set :: PropertyType "Files" OutputArtifactProperty
-> OutputArtifactProperty -> OutputArtifactProperty
set PropertyType "Files" OutputArtifactProperty
newValue OutputArtifactProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: OutputArtifactProperty -> ()
files :: OutputArtifactProperty -> Maybe (ValueList Text)
name :: OutputArtifactProperty -> Value Text
haddock_workaround_ :: ()
files :: Maybe (ValueList Text)
name :: Value Text
..}
= OutputArtifactProperty {files :: Maybe (ValueList Text)
files = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Files" OutputArtifactProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
instance Property "Name" OutputArtifactProperty where
type PropertyType "Name" OutputArtifactProperty = Value Prelude.Text
set :: PropertyType "Name" OutputArtifactProperty
-> OutputArtifactProperty -> OutputArtifactProperty
set PropertyType "Name" OutputArtifactProperty
newValue OutputArtifactProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: OutputArtifactProperty -> ()
files :: OutputArtifactProperty -> Maybe (ValueList Text)
name :: OutputArtifactProperty -> Value Text
haddock_workaround_ :: ()
files :: Maybe (ValueList Text)
name :: Value Text
..}
= OutputArtifactProperty {name :: Value Text
name = PropertyType "Name" OutputArtifactProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
files :: Maybe (ValueList Text)
haddock_workaround_ :: ()
files :: Maybe (ValueList Text)
..}