module Stratosphere.Cloud9.EnvironmentEC2.RepositoryProperty (
        RepositoryProperty(..), mkRepositoryProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RepositoryProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html>
    RepositoryProperty {RepositoryProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html#cfn-cloud9-environmentec2-repository-pathcomponent>
                        RepositoryProperty -> Value Text
pathComponent :: (Value Prelude.Text),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html#cfn-cloud9-environmentec2-repository-repositoryurl>
                        RepositoryProperty -> Value Text
repositoryUrl :: (Value Prelude.Text)}
  deriving stock (RepositoryProperty -> RepositoryProperty -> Bool
(RepositoryProperty -> RepositoryProperty -> Bool)
-> (RepositoryProperty -> RepositoryProperty -> Bool)
-> Eq RepositoryProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RepositoryProperty -> RepositoryProperty -> Bool
== :: RepositoryProperty -> RepositoryProperty -> Bool
$c/= :: RepositoryProperty -> RepositoryProperty -> Bool
/= :: RepositoryProperty -> RepositoryProperty -> Bool
Prelude.Eq, Int -> RepositoryProperty -> ShowS
[RepositoryProperty] -> ShowS
RepositoryProperty -> String
(Int -> RepositoryProperty -> ShowS)
-> (RepositoryProperty -> String)
-> ([RepositoryProperty] -> ShowS)
-> Show RepositoryProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RepositoryProperty -> ShowS
showsPrec :: Int -> RepositoryProperty -> ShowS
$cshow :: RepositoryProperty -> String
show :: RepositoryProperty -> String
$cshowList :: [RepositoryProperty] -> ShowS
showList :: [RepositoryProperty] -> ShowS
Prelude.Show)
mkRepositoryProperty ::
  Value Prelude.Text -> Value Prelude.Text -> RepositoryProperty
mkRepositoryProperty :: Value Text -> Value Text -> RepositoryProperty
mkRepositoryProperty Value Text
pathComponent Value Text
repositoryUrl
  = RepositoryProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), pathComponent :: Value Text
pathComponent = Value Text
pathComponent,
       repositoryUrl :: Value Text
repositoryUrl = Value Text
repositoryUrl}
instance ToResourceProperties RepositoryProperty where
  toResourceProperties :: RepositoryProperty -> ResourceProperties
toResourceProperties RepositoryProperty {()
Value Text
haddock_workaround_ :: RepositoryProperty -> ()
pathComponent :: RepositoryProperty -> Value Text
repositoryUrl :: RepositoryProperty -> Value Text
haddock_workaround_ :: ()
pathComponent :: Value Text
repositoryUrl :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Cloud9::EnvironmentEC2.Repository",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"PathComponent" 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
pathComponent,
                       Key
"RepositoryUrl" 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
repositoryUrl]}
instance JSON.ToJSON RepositoryProperty where
  toJSON :: RepositoryProperty -> Value
toJSON RepositoryProperty {()
Value Text
haddock_workaround_ :: RepositoryProperty -> ()
pathComponent :: RepositoryProperty -> Value Text
repositoryUrl :: RepositoryProperty -> Value Text
haddock_workaround_ :: ()
pathComponent :: Value Text
repositoryUrl :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"PathComponent" 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
pathComponent,
         Key
"RepositoryUrl" 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
repositoryUrl]
instance Property "PathComponent" RepositoryProperty where
  type PropertyType "PathComponent" RepositoryProperty = Value Prelude.Text
  set :: PropertyType "PathComponent" RepositoryProperty
-> RepositoryProperty -> RepositoryProperty
set PropertyType "PathComponent" RepositoryProperty
newValue RepositoryProperty {()
Value Text
haddock_workaround_ :: RepositoryProperty -> ()
pathComponent :: RepositoryProperty -> Value Text
repositoryUrl :: RepositoryProperty -> Value Text
haddock_workaround_ :: ()
pathComponent :: Value Text
repositoryUrl :: Value Text
..}
    = RepositoryProperty {pathComponent :: Value Text
pathComponent = PropertyType "PathComponent" RepositoryProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
repositoryUrl :: Value Text
haddock_workaround_ :: ()
repositoryUrl :: Value Text
..}
instance Property "RepositoryUrl" RepositoryProperty where
  type PropertyType "RepositoryUrl" RepositoryProperty = Value Prelude.Text
  set :: PropertyType "RepositoryUrl" RepositoryProperty
-> RepositoryProperty -> RepositoryProperty
set PropertyType "RepositoryUrl" RepositoryProperty
newValue RepositoryProperty {()
Value Text
haddock_workaround_ :: RepositoryProperty -> ()
pathComponent :: RepositoryProperty -> Value Text
repositoryUrl :: RepositoryProperty -> Value Text
haddock_workaround_ :: ()
pathComponent :: Value Text
repositoryUrl :: Value Text
..}
    = RepositoryProperty {repositoryUrl :: Value Text
repositoryUrl = PropertyType "RepositoryUrl" RepositoryProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
pathComponent :: Value Text
haddock_workaround_ :: ()
pathComponent :: Value Text
..}