packages feed

stratosphere-codeconnections (empty) → 1.0.0

raw patch · 3 files changed

+158/−0 lines, 3 filesdep +aesondep +basedep +stratosphere

Dependencies added: aeson, base, stratosphere

Files

+ 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/CodeConnections/Connection.hs view
@@ -0,0 +1,65 @@+module Stratosphere.CodeConnections.Connection (+        Connection(..), mkConnection+    ) 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 Connection+  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html>+    Connection {haddock_workaround_ :: (),+                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-connectionname>+                connectionName :: (Value Prelude.Text),+                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-hostarn>+                hostArn :: (Prelude.Maybe (Value Prelude.Text)),+                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-providertype>+                providerType :: (Prelude.Maybe (Value Prelude.Text)),+                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-tags>+                tags :: (Prelude.Maybe [Tag])}+  deriving stock (Prelude.Eq, Prelude.Show)+mkConnection :: Value Prelude.Text -> Connection+mkConnection connectionName+  = Connection+      {haddock_workaround_ = (), connectionName = connectionName,+       hostArn = Prelude.Nothing, providerType = Prelude.Nothing,+       tags = Prelude.Nothing}+instance ToResourceProperties Connection where+  toResourceProperties Connection {..}+    = ResourceProperties+        {awsType = "AWS::CodeConnections::Connection",+         supportsTags = Prelude.True,+         properties = Prelude.fromList+                        ((Prelude.<>)+                           ["ConnectionName" JSON..= connectionName]+                           (Prelude.catMaybes+                              [(JSON..=) "HostArn" Prelude.<$> hostArn,+                               (JSON..=) "ProviderType" Prelude.<$> providerType,+                               (JSON..=) "Tags" Prelude.<$> tags]))}+instance JSON.ToJSON Connection where+  toJSON Connection {..}+    = JSON.object+        (Prelude.fromList+           ((Prelude.<>)+              ["ConnectionName" JSON..= connectionName]+              (Prelude.catMaybes+                 [(JSON..=) "HostArn" Prelude.<$> hostArn,+                  (JSON..=) "ProviderType" Prelude.<$> providerType,+                  (JSON..=) "Tags" Prelude.<$> tags])))+instance Property "ConnectionName" Connection where+  type PropertyType "ConnectionName" Connection = Value Prelude.Text+  set newValue Connection {..}+    = Connection {connectionName = newValue, ..}+instance Property "HostArn" Connection where+  type PropertyType "HostArn" Connection = Value Prelude.Text+  set newValue Connection {..}+    = Connection {hostArn = Prelude.pure newValue, ..}+instance Property "ProviderType" Connection where+  type PropertyType "ProviderType" Connection = Value Prelude.Text+  set newValue Connection {..}+    = Connection {providerType = Prelude.pure newValue, ..}+instance Property "Tags" Connection where+  type PropertyType "Tags" Connection = [Tag]+  set newValue Connection {..}+    = Connection {tags = Prelude.pure newValue, ..}
+ stratosphere-codeconnections.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-codeconnections+version:        1.0.0+synopsis:       Stratosphere integration for AWS CodeConnections.+description:    Integration into stratosphere to generate resources and properties for AWS CodeConnections+category:       AWS, Cloud, CodeConnections+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.CodeConnections.Connection+  other-modules:+      Paths_stratosphere_codeconnections+  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