module Stratosphere.CodeStar.GitHubRepository.CodeProperty (
module Exports, CodeProperty(..), mkCodeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CodeStar.GitHubRepository.S3Property as Exports
import Stratosphere.ResourceProperties
data CodeProperty
=
CodeProperty {CodeProperty -> ()
haddock_workaround_ :: (),
CodeProperty -> S3Property
s3 :: S3Property}
deriving stock (CodeProperty -> CodeProperty -> Bool
(CodeProperty -> CodeProperty -> Bool)
-> (CodeProperty -> CodeProperty -> Bool) -> Eq CodeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CodeProperty -> CodeProperty -> Bool
== :: CodeProperty -> CodeProperty -> Bool
$c/= :: CodeProperty -> CodeProperty -> Bool
/= :: CodeProperty -> CodeProperty -> Bool
Prelude.Eq, Int -> CodeProperty -> ShowS
[CodeProperty] -> ShowS
CodeProperty -> String
(Int -> CodeProperty -> ShowS)
-> (CodeProperty -> String)
-> ([CodeProperty] -> ShowS)
-> Show CodeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CodeProperty -> ShowS
showsPrec :: Int -> CodeProperty -> ShowS
$cshow :: CodeProperty -> String
show :: CodeProperty -> String
$cshowList :: [CodeProperty] -> ShowS
showList :: [CodeProperty] -> ShowS
Prelude.Show)
mkCodeProperty :: S3Property -> CodeProperty
mkCodeProperty :: S3Property -> CodeProperty
mkCodeProperty S3Property
s3
= CodeProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), s3 :: S3Property
s3 = S3Property
s3}
instance ToResourceProperties CodeProperty where
toResourceProperties :: CodeProperty -> ResourceProperties
toResourceProperties CodeProperty {()
S3Property
haddock_workaround_ :: CodeProperty -> ()
s3 :: CodeProperty -> S3Property
haddock_workaround_ :: ()
s3 :: S3Property
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodeStar::GitHubRepository.Code",
supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"S3" Key -> S3Property -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3Property
s3]}
instance JSON.ToJSON CodeProperty where
toJSON :: CodeProperty -> Value
toJSON CodeProperty {()
S3Property
haddock_workaround_ :: CodeProperty -> ()
s3 :: CodeProperty -> S3Property
haddock_workaround_ :: ()
s3 :: S3Property
..} = [(Key, Value)] -> Value
JSON.object [Key
"S3" Key -> S3Property -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3Property
s3]
instance Property "S3" CodeProperty where
type PropertyType "S3" CodeProperty = S3Property
set :: PropertyType "S3" CodeProperty -> CodeProperty -> CodeProperty
set PropertyType "S3" CodeProperty
newValue CodeProperty {()
S3Property
haddock_workaround_ :: CodeProperty -> ()
s3 :: CodeProperty -> S3Property
haddock_workaround_ :: ()
s3 :: S3Property
..} = CodeProperty {s3 :: S3Property
s3 = PropertyType "S3" CodeProperty
S3Property
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}