module Stratosphere.CodeBuild.Project.ScopeConfigurationProperty (
        ScopeConfigurationProperty(..), mkScopeConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScopeConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-scopeconfiguration.html>
    ScopeConfigurationProperty {ScopeConfigurationProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-scopeconfiguration.html#cfn-codebuild-project-scopeconfiguration-domain>
                                ScopeConfigurationProperty -> Maybe (Value Text)
domain :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-scopeconfiguration.html#cfn-codebuild-project-scopeconfiguration-name>
                                ScopeConfigurationProperty -> Value Text
name :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-scopeconfiguration.html#cfn-codebuild-project-scopeconfiguration-scope>
                                ScopeConfigurationProperty -> Maybe (Value Text)
scope :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ScopeConfigurationProperty -> ScopeConfigurationProperty -> Bool
(ScopeConfigurationProperty -> ScopeConfigurationProperty -> Bool)
-> (ScopeConfigurationProperty
    -> ScopeConfigurationProperty -> Bool)
-> Eq ScopeConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScopeConfigurationProperty -> ScopeConfigurationProperty -> Bool
== :: ScopeConfigurationProperty -> ScopeConfigurationProperty -> Bool
$c/= :: ScopeConfigurationProperty -> ScopeConfigurationProperty -> Bool
/= :: ScopeConfigurationProperty -> ScopeConfigurationProperty -> Bool
Prelude.Eq, Int -> ScopeConfigurationProperty -> ShowS
[ScopeConfigurationProperty] -> ShowS
ScopeConfigurationProperty -> String
(Int -> ScopeConfigurationProperty -> ShowS)
-> (ScopeConfigurationProperty -> String)
-> ([ScopeConfigurationProperty] -> ShowS)
-> Show ScopeConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScopeConfigurationProperty -> ShowS
showsPrec :: Int -> ScopeConfigurationProperty -> ShowS
$cshow :: ScopeConfigurationProperty -> String
show :: ScopeConfigurationProperty -> String
$cshowList :: [ScopeConfigurationProperty] -> ShowS
showList :: [ScopeConfigurationProperty] -> ShowS
Prelude.Show)
mkScopeConfigurationProperty ::
  Value Prelude.Text -> ScopeConfigurationProperty
mkScopeConfigurationProperty :: Value Text -> ScopeConfigurationProperty
mkScopeConfigurationProperty Value Text
name
  = ScopeConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, domain :: Maybe (Value Text)
domain = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       scope :: Maybe (Value Text)
scope = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ScopeConfigurationProperty where
  toResourceProperties :: ScopeConfigurationProperty -> ResourceProperties
toResourceProperties ScopeConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ScopeConfigurationProperty -> ()
domain :: ScopeConfigurationProperty -> Maybe (Value Text)
name :: ScopeConfigurationProperty -> Value Text
scope :: ScopeConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domain :: Maybe (Value Text)
name :: Value Text
scope :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CodeBuild::Project.ScopeConfiguration",
         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 -> 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
"Domain" (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)
domain,
                               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
"Scope" (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)
scope]))}
instance JSON.ToJSON ScopeConfigurationProperty where
  toJSON :: ScopeConfigurationProperty -> Value
toJSON ScopeConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ScopeConfigurationProperty -> ()
domain :: ScopeConfigurationProperty -> Maybe (Value Text)
name :: ScopeConfigurationProperty -> Value Text
scope :: ScopeConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domain :: Maybe (Value Text)
name :: Value Text
scope :: Maybe (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 -> 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
"Domain" (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)
domain,
                  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
"Scope" (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)
scope])))
instance Property "Domain" ScopeConfigurationProperty where
  type PropertyType "Domain" ScopeConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Domain" ScopeConfigurationProperty
-> ScopeConfigurationProperty -> ScopeConfigurationProperty
set PropertyType "Domain" ScopeConfigurationProperty
newValue ScopeConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ScopeConfigurationProperty -> ()
domain :: ScopeConfigurationProperty -> Maybe (Value Text)
name :: ScopeConfigurationProperty -> Value Text
scope :: ScopeConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domain :: Maybe (Value Text)
name :: Value Text
scope :: Maybe (Value Text)
..}
    = ScopeConfigurationProperty {domain :: Maybe (Value Text)
domain = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Domain" ScopeConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
scope :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
scope :: Maybe (Value Text)
..}
instance Property "Name" ScopeConfigurationProperty where
  type PropertyType "Name" ScopeConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Name" ScopeConfigurationProperty
-> ScopeConfigurationProperty -> ScopeConfigurationProperty
set PropertyType "Name" ScopeConfigurationProperty
newValue ScopeConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ScopeConfigurationProperty -> ()
domain :: ScopeConfigurationProperty -> Maybe (Value Text)
name :: ScopeConfigurationProperty -> Value Text
scope :: ScopeConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domain :: Maybe (Value Text)
name :: Value Text
scope :: Maybe (Value Text)
..}
    = ScopeConfigurationProperty {name :: Value Text
name = PropertyType "Name" ScopeConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
domain :: Maybe (Value Text)
scope :: Maybe (Value Text)
haddock_workaround_ :: ()
domain :: Maybe (Value Text)
scope :: Maybe (Value Text)
..}
instance Property "Scope" ScopeConfigurationProperty where
  type PropertyType "Scope" ScopeConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Scope" ScopeConfigurationProperty
-> ScopeConfigurationProperty -> ScopeConfigurationProperty
set PropertyType "Scope" ScopeConfigurationProperty
newValue ScopeConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ScopeConfigurationProperty -> ()
domain :: ScopeConfigurationProperty -> Maybe (Value Text)
name :: ScopeConfigurationProperty -> Value Text
scope :: ScopeConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domain :: Maybe (Value Text)
name :: Value Text
scope :: Maybe (Value Text)
..}
    = ScopeConfigurationProperty {scope :: Maybe (Value Text)
scope = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Scope" ScopeConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
domain :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
domain :: Maybe (Value Text)
name :: Value Text
..}