module Stratosphere.CodeDeploy.DeploymentGroup.GitHubLocationProperty ( GitHubLocationProperty(..), mkGitHubLocationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data GitHubLocationProperty = -- | See: GitHubLocationProperty {haddock_workaround_ :: (), -- | See: commitId :: (Value Prelude.Text), -- | See: repository :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkGitHubLocationProperty :: Value Prelude.Text -> Value Prelude.Text -> GitHubLocationProperty mkGitHubLocationProperty commitId repository = GitHubLocationProperty {haddock_workaround_ = (), commitId = commitId, repository = repository} instance ToResourceProperties GitHubLocationProperty where toResourceProperties GitHubLocationProperty {..} = ResourceProperties {awsType = "AWS::CodeDeploy::DeploymentGroup.GitHubLocation", supportsTags = Prelude.False, properties = ["CommitId" JSON..= commitId, "Repository" JSON..= repository]} instance JSON.ToJSON GitHubLocationProperty where toJSON GitHubLocationProperty {..} = JSON.object ["CommitId" JSON..= commitId, "Repository" JSON..= repository] instance Property "CommitId" GitHubLocationProperty where type PropertyType "CommitId" GitHubLocationProperty = Value Prelude.Text set newValue GitHubLocationProperty {..} = GitHubLocationProperty {commitId = newValue, ..} instance Property "Repository" GitHubLocationProperty where type PropertyType "Repository" GitHubLocationProperty = Value Prelude.Text set newValue GitHubLocationProperty {..} = GitHubLocationProperty {repository = newValue, ..}