content: module Stratosphere.AppSync.GraphQLApi.CognitoUserPoolConfigProperty (
          CognitoUserPoolConfigProperty(..), mkCognitoUserPoolConfigProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data CognitoUserPoolConfigProperty
    = CognitoUserPoolConfigProperty {appIdClientRegex :: (Prelude.Maybe (Value Prelude.Text)),
                                     awsRegion :: (Prelude.Maybe (Value Prelude.Text)),
                                     userPoolId :: (Prelude.Maybe (Value Prelude.Text))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkCognitoUserPoolConfigProperty :: CognitoUserPoolConfigProperty
  mkCognitoUserPoolConfigProperty
    = CognitoUserPoolConfigProperty
        {appIdClientRegex = Prelude.Nothing, awsRegion = Prelude.Nothing,
         userPoolId = Prelude.Nothing}
  instance ToResourceProperties CognitoUserPoolConfigProperty where
    toResourceProperties CognitoUserPoolConfigProperty {..}
      = ResourceProperties
          {awsType = "AWS::AppSync::GraphQLApi.CognitoUserPoolConfig",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "AppIdClientRegex" Prelude.<$> appIdClientRegex,
                              (JSON..=) "AwsRegion" Prelude.<$> awsRegion,
                              (JSON..=) "UserPoolId" Prelude.<$> userPoolId])}
  instance JSON.ToJSON CognitoUserPoolConfigProperty where
    toJSON CognitoUserPoolConfigProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "AppIdClientRegex" Prelude.<$> appIdClientRegex,
                 (JSON..=) "AwsRegion" Prelude.<$> awsRegion,
                 (JSON..=) "UserPoolId" Prelude.<$> userPoolId]))
  instance Property "AppIdClientRegex" CognitoUserPoolConfigProperty where
    type PropertyType "AppIdClientRegex" CognitoUserPoolConfigProperty = Value Prelude.Text
    set newValue CognitoUserPoolConfigProperty {..}
      = CognitoUserPoolConfigProperty
          {appIdClientRegex = Prelude.pure newValue, ..}
  instance Property "AwsRegion" CognitoUserPoolConfigProperty where
    type PropertyType "AwsRegion" CognitoUserPoolConfigProperty = Value Prelude.Text
    set newValue CognitoUserPoolConfigProperty {..}
      = CognitoUserPoolConfigProperty
          {awsRegion = Prelude.pure newValue, ..}
  instance Property "UserPoolId" CognitoUserPoolConfigProperty where
    type PropertyType "UserPoolId" CognitoUserPoolConfigProperty = Value Prelude.Text
    set newValue CognitoUserPoolConfigProperty {..}
      = CognitoUserPoolConfigProperty
          {userPoolId = Prelude.pure newValue, ..}