{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CodePipeline.Types.ActionConfigurationPropertyType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CodePipeline.Types.ActionConfigurationPropertyType
  ( ActionConfigurationPropertyType
      ( ..,
        ActionConfigurationPropertyType_Boolean,
        ActionConfigurationPropertyType_Number,
        ActionConfigurationPropertyType_String
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype ActionConfigurationPropertyType = ActionConfigurationPropertyType'
  { ActionConfigurationPropertyType -> Text
fromActionConfigurationPropertyType ::
      Data.Text
  }
  deriving stock
    ( Int -> ActionConfigurationPropertyType -> ShowS
[ActionConfigurationPropertyType] -> ShowS
ActionConfigurationPropertyType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActionConfigurationPropertyType] -> ShowS
$cshowList :: [ActionConfigurationPropertyType] -> ShowS
show :: ActionConfigurationPropertyType -> String
$cshow :: ActionConfigurationPropertyType -> String
showsPrec :: Int -> ActionConfigurationPropertyType -> ShowS
$cshowsPrec :: Int -> ActionConfigurationPropertyType -> ShowS
Prelude.Show,
      ReadPrec [ActionConfigurationPropertyType]
ReadPrec ActionConfigurationPropertyType
Int -> ReadS ActionConfigurationPropertyType
ReadS [ActionConfigurationPropertyType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActionConfigurationPropertyType]
$creadListPrec :: ReadPrec [ActionConfigurationPropertyType]
readPrec :: ReadPrec ActionConfigurationPropertyType
$creadPrec :: ReadPrec ActionConfigurationPropertyType
readList :: ReadS [ActionConfigurationPropertyType]
$creadList :: ReadS [ActionConfigurationPropertyType]
readsPrec :: Int -> ReadS ActionConfigurationPropertyType
$creadsPrec :: Int -> ReadS ActionConfigurationPropertyType
Prelude.Read,
      ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
$c/= :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
== :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
$c== :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
Prelude.Eq,
      Eq ActionConfigurationPropertyType
ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Ordering
ActionConfigurationPropertyType
-> ActionConfigurationPropertyType
-> ActionConfigurationPropertyType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType
-> ActionConfigurationPropertyType
$cmin :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType
-> ActionConfigurationPropertyType
max :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType
-> ActionConfigurationPropertyType
$cmax :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType
-> ActionConfigurationPropertyType
>= :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
$c>= :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
> :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
$c> :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
<= :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
$c<= :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
< :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
$c< :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Bool
compare :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Ordering
$ccompare :: ActionConfigurationPropertyType
-> ActionConfigurationPropertyType -> Ordering
Prelude.Ord,
      forall x.
Rep ActionConfigurationPropertyType x
-> ActionConfigurationPropertyType
forall x.
ActionConfigurationPropertyType
-> Rep ActionConfigurationPropertyType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ActionConfigurationPropertyType x
-> ActionConfigurationPropertyType
$cfrom :: forall x.
ActionConfigurationPropertyType
-> Rep ActionConfigurationPropertyType x
Prelude.Generic
    )
  deriving newtype
    ( Eq ActionConfigurationPropertyType
Int -> ActionConfigurationPropertyType -> Int
ActionConfigurationPropertyType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ActionConfigurationPropertyType -> Int
$chash :: ActionConfigurationPropertyType -> Int
hashWithSalt :: Int -> ActionConfigurationPropertyType -> Int
$chashWithSalt :: Int -> ActionConfigurationPropertyType -> Int
Prelude.Hashable,
      ActionConfigurationPropertyType -> ()
forall a. (a -> ()) -> NFData a
rnf :: ActionConfigurationPropertyType -> ()
$crnf :: ActionConfigurationPropertyType -> ()
Prelude.NFData,
      Text -> Either String ActionConfigurationPropertyType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ActionConfigurationPropertyType
$cfromText :: Text -> Either String ActionConfigurationPropertyType
Data.FromText,
      ActionConfigurationPropertyType -> Text
forall a. (a -> Text) -> ToText a
toText :: ActionConfigurationPropertyType -> Text
$ctoText :: ActionConfigurationPropertyType -> Text
Data.ToText,
      ActionConfigurationPropertyType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ActionConfigurationPropertyType -> ByteString
$ctoBS :: ActionConfigurationPropertyType -> ByteString
Data.ToByteString,
      ActionConfigurationPropertyType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ActionConfigurationPropertyType -> ByteStringBuilder
$cbuild :: ActionConfigurationPropertyType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ActionConfigurationPropertyType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ActionConfigurationPropertyType -> [Header]
$ctoHeader :: HeaderName -> ActionConfigurationPropertyType -> [Header]
Data.ToHeader,
      ActionConfigurationPropertyType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ActionConfigurationPropertyType -> QueryString
$ctoQuery :: ActionConfigurationPropertyType -> QueryString
Data.ToQuery,
      Value -> Parser [ActionConfigurationPropertyType]
Value -> Parser ActionConfigurationPropertyType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ActionConfigurationPropertyType]
$cparseJSONList :: Value -> Parser [ActionConfigurationPropertyType]
parseJSON :: Value -> Parser ActionConfigurationPropertyType
$cparseJSON :: Value -> Parser ActionConfigurationPropertyType
Data.FromJSON,
      FromJSONKeyFunction [ActionConfigurationPropertyType]
FromJSONKeyFunction ActionConfigurationPropertyType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ActionConfigurationPropertyType]
$cfromJSONKeyList :: FromJSONKeyFunction [ActionConfigurationPropertyType]
fromJSONKey :: FromJSONKeyFunction ActionConfigurationPropertyType
$cfromJSONKey :: FromJSONKeyFunction ActionConfigurationPropertyType
Data.FromJSONKey,
      [ActionConfigurationPropertyType] -> Encoding
[ActionConfigurationPropertyType] -> Value
ActionConfigurationPropertyType -> Encoding
ActionConfigurationPropertyType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ActionConfigurationPropertyType] -> Encoding
$ctoEncodingList :: [ActionConfigurationPropertyType] -> Encoding
toJSONList :: [ActionConfigurationPropertyType] -> Value
$ctoJSONList :: [ActionConfigurationPropertyType] -> Value
toEncoding :: ActionConfigurationPropertyType -> Encoding
$ctoEncoding :: ActionConfigurationPropertyType -> Encoding
toJSON :: ActionConfigurationPropertyType -> Value
$ctoJSON :: ActionConfigurationPropertyType -> Value
Data.ToJSON,
      ToJSONKeyFunction [ActionConfigurationPropertyType]
ToJSONKeyFunction ActionConfigurationPropertyType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ActionConfigurationPropertyType]
$ctoJSONKeyList :: ToJSONKeyFunction [ActionConfigurationPropertyType]
toJSONKey :: ToJSONKeyFunction ActionConfigurationPropertyType
$ctoJSONKey :: ToJSONKeyFunction ActionConfigurationPropertyType
Data.ToJSONKey,
      [Node] -> Either String ActionConfigurationPropertyType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ActionConfigurationPropertyType
$cparseXML :: [Node] -> Either String ActionConfigurationPropertyType
Data.FromXML,
      ActionConfigurationPropertyType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ActionConfigurationPropertyType -> XML
$ctoXML :: ActionConfigurationPropertyType -> XML
Data.ToXML
    )

pattern ActionConfigurationPropertyType_Boolean :: ActionConfigurationPropertyType
pattern $bActionConfigurationPropertyType_Boolean :: ActionConfigurationPropertyType
$mActionConfigurationPropertyType_Boolean :: forall {r}.
ActionConfigurationPropertyType
-> ((# #) -> r) -> ((# #) -> r) -> r
ActionConfigurationPropertyType_Boolean = ActionConfigurationPropertyType' "Boolean"

pattern ActionConfigurationPropertyType_Number :: ActionConfigurationPropertyType
pattern $bActionConfigurationPropertyType_Number :: ActionConfigurationPropertyType
$mActionConfigurationPropertyType_Number :: forall {r}.
ActionConfigurationPropertyType
-> ((# #) -> r) -> ((# #) -> r) -> r
ActionConfigurationPropertyType_Number = ActionConfigurationPropertyType' "Number"

pattern ActionConfigurationPropertyType_String :: ActionConfigurationPropertyType
pattern $bActionConfigurationPropertyType_String :: ActionConfigurationPropertyType
$mActionConfigurationPropertyType_String :: forall {r}.
ActionConfigurationPropertyType
-> ((# #) -> r) -> ((# #) -> r) -> r
ActionConfigurationPropertyType_String = ActionConfigurationPropertyType' "String"

{-# COMPLETE
  ActionConfigurationPropertyType_Boolean,
  ActionConfigurationPropertyType_Number,
  ActionConfigurationPropertyType_String,
  ActionConfigurationPropertyType'
  #-}