module Stratosphere.CodeDeploy.DeploymentGroup.RevisionLocationProperty (
module Exports, RevisionLocationProperty(..),
mkRevisionLocationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CodeDeploy.DeploymentGroup.GitHubLocationProperty as Exports
import {-# SOURCE #-} Stratosphere.CodeDeploy.DeploymentGroup.S3LocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RevisionLocationProperty
=
RevisionLocationProperty {RevisionLocationProperty -> ()
haddock_workaround_ :: (),
RevisionLocationProperty -> Maybe GitHubLocationProperty
gitHubLocation :: (Prelude.Maybe GitHubLocationProperty),
RevisionLocationProperty -> Maybe (Value Text)
revisionType :: (Prelude.Maybe (Value Prelude.Text)),
RevisionLocationProperty -> Maybe S3LocationProperty
s3Location :: (Prelude.Maybe S3LocationProperty)}
deriving stock (RevisionLocationProperty -> RevisionLocationProperty -> Bool
(RevisionLocationProperty -> RevisionLocationProperty -> Bool)
-> (RevisionLocationProperty -> RevisionLocationProperty -> Bool)
-> Eq RevisionLocationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RevisionLocationProperty -> RevisionLocationProperty -> Bool
== :: RevisionLocationProperty -> RevisionLocationProperty -> Bool
$c/= :: RevisionLocationProperty -> RevisionLocationProperty -> Bool
/= :: RevisionLocationProperty -> RevisionLocationProperty -> Bool
Prelude.Eq, Int -> RevisionLocationProperty -> ShowS
[RevisionLocationProperty] -> ShowS
RevisionLocationProperty -> String
(Int -> RevisionLocationProperty -> ShowS)
-> (RevisionLocationProperty -> String)
-> ([RevisionLocationProperty] -> ShowS)
-> Show RevisionLocationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RevisionLocationProperty -> ShowS
showsPrec :: Int -> RevisionLocationProperty -> ShowS
$cshow :: RevisionLocationProperty -> String
show :: RevisionLocationProperty -> String
$cshowList :: [RevisionLocationProperty] -> ShowS
showList :: [RevisionLocationProperty] -> ShowS
Prelude.Show)
mkRevisionLocationProperty :: RevisionLocationProperty
mkRevisionLocationProperty :: RevisionLocationProperty
mkRevisionLocationProperty
= RevisionLocationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), gitHubLocation :: Maybe GitHubLocationProperty
gitHubLocation = Maybe GitHubLocationProperty
forall a. Maybe a
Prelude.Nothing,
revisionType :: Maybe (Value Text)
revisionType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, s3Location :: Maybe S3LocationProperty
s3Location = Maybe S3LocationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RevisionLocationProperty where
toResourceProperties :: RevisionLocationProperty -> ResourceProperties
toResourceProperties RevisionLocationProperty {Maybe (Value Text)
Maybe GitHubLocationProperty
Maybe S3LocationProperty
()
haddock_workaround_ :: RevisionLocationProperty -> ()
gitHubLocation :: RevisionLocationProperty -> Maybe GitHubLocationProperty
revisionType :: RevisionLocationProperty -> Maybe (Value Text)
s3Location :: RevisionLocationProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
gitHubLocation :: Maybe GitHubLocationProperty
revisionType :: Maybe (Value Text)
s3Location :: Maybe S3LocationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodeDeploy::DeploymentGroup.RevisionLocation",
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 -> GitHubLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GitHubLocation" (GitHubLocationProperty -> (Key, Value))
-> Maybe GitHubLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GitHubLocationProperty
gitHubLocation,
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
"RevisionType" (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)
revisionType,
Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Location" (S3LocationProperty -> (Key, Value))
-> Maybe S3LocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3LocationProperty
s3Location])}
instance JSON.ToJSON RevisionLocationProperty where
toJSON :: RevisionLocationProperty -> Value
toJSON RevisionLocationProperty {Maybe (Value Text)
Maybe GitHubLocationProperty
Maybe S3LocationProperty
()
haddock_workaround_ :: RevisionLocationProperty -> ()
gitHubLocation :: RevisionLocationProperty -> Maybe GitHubLocationProperty
revisionType :: RevisionLocationProperty -> Maybe (Value Text)
s3Location :: RevisionLocationProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
gitHubLocation :: Maybe GitHubLocationProperty
revisionType :: Maybe (Value Text)
s3Location :: Maybe S3LocationProperty
..}
= [(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 -> GitHubLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GitHubLocation" (GitHubLocationProperty -> (Key, Value))
-> Maybe GitHubLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GitHubLocationProperty
gitHubLocation,
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
"RevisionType" (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)
revisionType,
Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Location" (S3LocationProperty -> (Key, Value))
-> Maybe S3LocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3LocationProperty
s3Location]))
instance Property "GitHubLocation" RevisionLocationProperty where
type PropertyType "GitHubLocation" RevisionLocationProperty = GitHubLocationProperty
set :: PropertyType "GitHubLocation" RevisionLocationProperty
-> RevisionLocationProperty -> RevisionLocationProperty
set PropertyType "GitHubLocation" RevisionLocationProperty
newValue RevisionLocationProperty {Maybe (Value Text)
Maybe GitHubLocationProperty
Maybe S3LocationProperty
()
haddock_workaround_ :: RevisionLocationProperty -> ()
gitHubLocation :: RevisionLocationProperty -> Maybe GitHubLocationProperty
revisionType :: RevisionLocationProperty -> Maybe (Value Text)
s3Location :: RevisionLocationProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
gitHubLocation :: Maybe GitHubLocationProperty
revisionType :: Maybe (Value Text)
s3Location :: Maybe S3LocationProperty
..}
= RevisionLocationProperty
{gitHubLocation :: Maybe GitHubLocationProperty
gitHubLocation = GitHubLocationProperty -> Maybe GitHubLocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "GitHubLocation" RevisionLocationProperty
GitHubLocationProperty
newValue, Maybe (Value Text)
Maybe S3LocationProperty
()
haddock_workaround_ :: ()
revisionType :: Maybe (Value Text)
s3Location :: Maybe S3LocationProperty
haddock_workaround_ :: ()
revisionType :: Maybe (Value Text)
s3Location :: Maybe S3LocationProperty
..}
instance Property "RevisionType" RevisionLocationProperty where
type PropertyType "RevisionType" RevisionLocationProperty = Value Prelude.Text
set :: PropertyType "RevisionType" RevisionLocationProperty
-> RevisionLocationProperty -> RevisionLocationProperty
set PropertyType "RevisionType" RevisionLocationProperty
newValue RevisionLocationProperty {Maybe (Value Text)
Maybe GitHubLocationProperty
Maybe S3LocationProperty
()
haddock_workaround_ :: RevisionLocationProperty -> ()
gitHubLocation :: RevisionLocationProperty -> Maybe GitHubLocationProperty
revisionType :: RevisionLocationProperty -> Maybe (Value Text)
s3Location :: RevisionLocationProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
gitHubLocation :: Maybe GitHubLocationProperty
revisionType :: Maybe (Value Text)
s3Location :: Maybe S3LocationProperty
..}
= RevisionLocationProperty
{revisionType :: Maybe (Value Text)
revisionType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RevisionType" RevisionLocationProperty
Value Text
newValue, Maybe GitHubLocationProperty
Maybe S3LocationProperty
()
haddock_workaround_ :: ()
gitHubLocation :: Maybe GitHubLocationProperty
s3Location :: Maybe S3LocationProperty
haddock_workaround_ :: ()
gitHubLocation :: Maybe GitHubLocationProperty
s3Location :: Maybe S3LocationProperty
..}
instance Property "S3Location" RevisionLocationProperty where
type PropertyType "S3Location" RevisionLocationProperty = S3LocationProperty
set :: PropertyType "S3Location" RevisionLocationProperty
-> RevisionLocationProperty -> RevisionLocationProperty
set PropertyType "S3Location" RevisionLocationProperty
newValue RevisionLocationProperty {Maybe (Value Text)
Maybe GitHubLocationProperty
Maybe S3LocationProperty
()
haddock_workaround_ :: RevisionLocationProperty -> ()
gitHubLocation :: RevisionLocationProperty -> Maybe GitHubLocationProperty
revisionType :: RevisionLocationProperty -> Maybe (Value Text)
s3Location :: RevisionLocationProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
gitHubLocation :: Maybe GitHubLocationProperty
revisionType :: Maybe (Value Text)
s3Location :: Maybe S3LocationProperty
..}
= RevisionLocationProperty {s3Location :: Maybe S3LocationProperty
s3Location = S3LocationProperty -> Maybe S3LocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3Location" RevisionLocationProperty
S3LocationProperty
newValue, Maybe (Value Text)
Maybe GitHubLocationProperty
()
haddock_workaround_ :: ()
gitHubLocation :: Maybe GitHubLocationProperty
revisionType :: Maybe (Value Text)
haddock_workaround_ :: ()
gitHubLocation :: Maybe GitHubLocationProperty
revisionType :: Maybe (Value Text)
..}