stratosphere-codegurureviewer (empty) → 1.0.0
raw patch · 3 files changed
+173/−0 lines, 3 filesdep +aesondep +basedep +stratosphere
Dependencies added: aeson, base, stratosphere
Files
- LICENSE.md +20/−0
- gen/Stratosphere/CodeGuruReviewer/RepositoryAssociation.hs +80/−0
- stratosphere-codegurureviewer.cabal +73/−0
+ LICENSE.md view
@@ -0,0 +1,20 @@+Copyright (c) 2016 David Reaver+Copyright (c) 2022 Markus Schirp++Permission is hereby granted, free of charge, to any person obtaining a copy of+this software and associated documentation files (the "Software"), to deal in+the Software without restriction, including without limitation the rights to+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies+of the Software, and to permit persons to whom the Software is furnished to do+so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.
+ gen/Stratosphere/CodeGuruReviewer/RepositoryAssociation.hs view
@@ -0,0 +1,80 @@+module Stratosphere.CodeGuruReviewer.RepositoryAssociation (+ RepositoryAssociation(..), mkRepositoryAssociation+ ) where+import qualified Data.Aeson as JSON+import qualified Stratosphere.Prelude as Prelude+import Stratosphere.Property+import Stratosphere.ResourceProperties+import Stratosphere.Tag+import Stratosphere.Value+data RepositoryAssociation+ = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html>+ RepositoryAssociation {haddock_workaround_ :: (),+ -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-bucketname>+ bucketName :: (Prelude.Maybe (Value Prelude.Text)),+ -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-connectionarn>+ connectionArn :: (Prelude.Maybe (Value Prelude.Text)),+ -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-name>+ name :: (Value Prelude.Text),+ -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-owner>+ owner :: (Prelude.Maybe (Value Prelude.Text)),+ -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-tags>+ tags :: (Prelude.Maybe [Tag]),+ -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-type>+ type' :: (Value Prelude.Text)}+ deriving stock (Prelude.Eq, Prelude.Show)+mkRepositoryAssociation ::+ Value Prelude.Text -> Value Prelude.Text -> RepositoryAssociation+mkRepositoryAssociation name type'+ = RepositoryAssociation+ {haddock_workaround_ = (), name = name, type' = type',+ bucketName = Prelude.Nothing, connectionArn = Prelude.Nothing,+ owner = Prelude.Nothing, tags = Prelude.Nothing}+instance ToResourceProperties RepositoryAssociation where+ toResourceProperties RepositoryAssociation {..}+ = ResourceProperties+ {awsType = "AWS::CodeGuruReviewer::RepositoryAssociation",+ supportsTags = Prelude.True,+ properties = Prelude.fromList+ ((Prelude.<>)+ ["Name" JSON..= name, "Type" JSON..= type']+ (Prelude.catMaybes+ [(JSON..=) "BucketName" Prelude.<$> bucketName,+ (JSON..=) "ConnectionArn" Prelude.<$> connectionArn,+ (JSON..=) "Owner" Prelude.<$> owner,+ (JSON..=) "Tags" Prelude.<$> tags]))}+instance JSON.ToJSON RepositoryAssociation where+ toJSON RepositoryAssociation {..}+ = JSON.object+ (Prelude.fromList+ ((Prelude.<>)+ ["Name" JSON..= name, "Type" JSON..= type']+ (Prelude.catMaybes+ [(JSON..=) "BucketName" Prelude.<$> bucketName,+ (JSON..=) "ConnectionArn" Prelude.<$> connectionArn,+ (JSON..=) "Owner" Prelude.<$> owner,+ (JSON..=) "Tags" Prelude.<$> tags])))+instance Property "BucketName" RepositoryAssociation where+ type PropertyType "BucketName" RepositoryAssociation = Value Prelude.Text+ set newValue RepositoryAssociation {..}+ = RepositoryAssociation {bucketName = Prelude.pure newValue, ..}+instance Property "ConnectionArn" RepositoryAssociation where+ type PropertyType "ConnectionArn" RepositoryAssociation = Value Prelude.Text+ set newValue RepositoryAssociation {..}+ = RepositoryAssociation {connectionArn = Prelude.pure newValue, ..}+instance Property "Name" RepositoryAssociation where+ type PropertyType "Name" RepositoryAssociation = Value Prelude.Text+ set newValue RepositoryAssociation {..}+ = RepositoryAssociation {name = newValue, ..}+instance Property "Owner" RepositoryAssociation where+ type PropertyType "Owner" RepositoryAssociation = Value Prelude.Text+ set newValue RepositoryAssociation {..}+ = RepositoryAssociation {owner = Prelude.pure newValue, ..}+instance Property "Tags" RepositoryAssociation where+ type PropertyType "Tags" RepositoryAssociation = [Tag]+ set newValue RepositoryAssociation {..}+ = RepositoryAssociation {tags = Prelude.pure newValue, ..}+instance Property "Type" RepositoryAssociation where+ type PropertyType "Type" RepositoryAssociation = Value Prelude.Text+ set newValue RepositoryAssociation {..}+ = RepositoryAssociation {type' = newValue, ..}
+ stratosphere-codegurureviewer.cabal view
@@ -0,0 +1,73 @@+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.38.2.+--+-- see: https://github.com/sol/hpack++name: stratosphere-codegurureviewer+version: 1.0.0+synopsis: Stratosphere integration for AWS CodeGuruReviewer.+description: Integration into stratosphere to generate resources and properties for AWS CodeGuruReviewer+category: AWS, Cloud, CodeGuruReviewer+stability: experimental+homepage: https://github.com/mbj/stratosphere#readme+bug-reports: https://github.com/mbj/stratosphere/issues+maintainer: Markus Schirp+license: MIT+license-file: LICENSE.md+build-type: Simple++source-repository head+ type: git+ location: https://github.com/mbj/stratosphere++flag development+ description: Run GHC with development flags+ manual: True+ default: False++library+ exposed-modules:+ Stratosphere.CodeGuruReviewer.RepositoryAssociation+ other-modules:+ Paths_stratosphere_codegurureviewer+ hs-source-dirs:+ gen+ default-extensions:+ DataKinds+ DeriveGeneric+ DerivingStrategies+ DerivingVia+ DuplicateRecordFields+ FlexibleContexts+ FlexibleInstances+ GADTs+ GeneralizedNewtypeDeriving+ InstanceSigs+ LambdaCase+ MultiParamTypeClasses+ NoFieldSelectors+ NoImplicitPrelude+ NumericUnderscores+ OverloadedLists+ OverloadedRecordDot+ OverloadedStrings+ PolyKinds+ RecordWildCards+ ScopedTypeVariables+ StandaloneDeriving+ Strict+ TemplateHaskell+ TupleSections+ TypeApplications+ TypeFamilies+ ghc-options: -Wall -Wcompat -Widentities -Wimplicit-prelude -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-local-signatures -Wmissing-signatures -Wmonomorphism-restriction -Wredundant-constraints -fhide-source-paths -funbox-strict-fields -optP-Wno-nonportable-include-path -Wno-unused-imports+ build-depends:+ aeson ==2.*+ , base >=4.8 && <4.22+ , stratosphere ==1.0.0+ default-language: Haskell2010+ if flag(development)+ ghc-options: -Werror+ else+ ghc-options: -Wwarn