Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some maintenance, code reorg, improve custom CF resources implementation
- Loading branch information
Showing
64 changed files
with
490 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{-# LANGUAGE DeriveAnyClass #-} | ||
{-# LANGUAGE DeriveGeneric #-} | ||
{-# LANGUAGE DerivingStrategies #-} | ||
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | ||
|
||
module Qi.AWS.Cognito where | ||
|
||
import Data.Aeson | ||
import Protolude | ||
|
||
|
||
newtype IdPoolId = IdPoolId Text | ||
deriving (Eq, Show, Generic) | ||
deriving newtype (ToJSON, FromJSON) | ||
|
||
newtype AuthRoleId = AuthRoleId Text | ||
deriving (Eq, Show, Generic) | ||
deriving newtype (ToJSON, FromJSON) | ||
|
||
newtype UserPoolId = UserPoolId Text | ||
deriving (Eq, Show, Generic) | ||
deriving newtype (ToJSON, FromJSON) | ||
|
||
newtype UserPoolClientId = UserPoolClientId Text | ||
deriving (Eq, Show, Generic) | ||
deriving newtype (ToJSON, FromJSON) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ import Protolude | |
|
||
newtype ReceiptHandle = ReceiptHandle Text | ||
deriving (Eq, Show) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{-# LANGUAGE DeriveAnyClass #-} | ||
{-# LANGUAGE DeriveGeneric #-} | ||
{-# LANGUAGE DerivingStrategies #-} | ||
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | ||
|
||
module Qi.AWS.Types where | ||
|
||
import Data.Aeson | ||
import qualified Data.Text as T | ||
import Protolude | ||
import Qi.AWS.Cognito | ||
|
||
|
||
newtype LogicalResourceId = LogicalResourceId Text | ||
deriving (Eq, Show, Generic) | ||
deriving newtype (ToJSON, FromJSON) | ||
|
||
|
||
newtype CompositeResourceId = CompositeResourceId (NonEmpty PhysicalResourceId) | ||
deriving (Eq, Show, Generic, Semigroup) | ||
deriving newtype (ToJSON, FromJSON) | ||
|
||
|
||
data PhysicalResourceId = | ||
ArnResourceId Arn | ||
| AuthRoleIdResourceId AuthRoleId | ||
| UserPoolIdResourceId UserPoolId | ||
| UserPoolClientIdResourceId UserPoolClientId | ||
| IdPoolIdResourceId IdPoolId | ||
| UnknownResourceIdType Text | ||
deriving (Eq, Show, Generic, ToJSON, FromJSON) | ||
|
||
|
||
newtype Arn = Arn Text | ||
deriving (Eq, Show, Generic) | ||
deriving newtype (ToJSON, FromJSON) | ||
|
||
|
||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.