{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype ActionConfigurationPropertyType = ActionConfigurationPropertyType'
  { ActionConfigurationPropertyType -> Text
fromActionConfigurationPropertyType ::
      Core.Text
  }
  deriving stock
    ( Int -> ActionConfigurationPropertyType -> ShowS
[ActionConfigurationPropertyType] -> ShowS
ActionConfigurationPropertyType -> String
(Int -> ActionConfigurationPropertyType -> ShowS)
-> (ActionConfigurationPropertyType -> String)
-> ([ActionConfigurationPropertyType] -> ShowS)
-> Show ActionConfigurationPropertyType
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]
(Int -> ReadS ActionConfigurationPropertyType)
-> ReadS [ActionConfigurationPropertyType]
-> ReadPrec ActionConfigurationPropertyType
-> ReadPrec [ActionConfigurationPropertyType]
-> Read 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
(ActionConfigurationPropertyType
 -> ActionConfigurationPropertyType -> Bool)
-> (ActionConfigurationPropertyType
    -> ActionConfigurationPropertyType -> Bool)
-> Eq ActionConfigurationPropertyType
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
Eq ActionConfigurationPropertyType
-> (ActionConfigurationPropertyType
    -> ActionConfigurationPropertyType -> Ordering)
-> (ActionConfigurationPropertyType
    -> ActionConfigurationPropertyType -> Bool)
-> (ActionConfigurationPropertyType
    -> ActionConfigurationPropertyType -> Bool)
-> (ActionConfigurationPropertyType
    -> ActionConfigurationPropertyType -> Bool)
-> (ActionConfigurationPropertyType
    -> ActionConfigurationPropertyType -> Bool)
-> (ActionConfigurationPropertyType
    -> ActionConfigurationPropertyType
    -> ActionConfigurationPropertyType)
-> (ActionConfigurationPropertyType
    -> ActionConfigurationPropertyType
    -> ActionConfigurationPropertyType)
-> Ord 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
$cp1Ord :: Eq ActionConfigurationPropertyType
Prelude.Ord,
      (forall x.
 ActionConfigurationPropertyType
 -> Rep ActionConfigurationPropertyType x)
-> (forall x.
    Rep ActionConfigurationPropertyType x
    -> ActionConfigurationPropertyType)
-> Generic ActionConfigurationPropertyType
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
    ( Int -> ActionConfigurationPropertyType -> Int
ActionConfigurationPropertyType -> Int
(Int -> ActionConfigurationPropertyType -> Int)
-> (ActionConfigurationPropertyType -> Int)
-> Hashable ActionConfigurationPropertyType
forall 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 -> ()
(ActionConfigurationPropertyType -> ())
-> NFData ActionConfigurationPropertyType
forall a. (a -> ()) -> NFData a
rnf :: ActionConfigurationPropertyType -> ()
$crnf :: ActionConfigurationPropertyType -> ()
Prelude.NFData,
      Text -> Either String ActionConfigurationPropertyType
(Text -> Either String ActionConfigurationPropertyType)
-> FromText ActionConfigurationPropertyType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ActionConfigurationPropertyType
$cfromText :: Text -> Either String ActionConfigurationPropertyType
Core.FromText,
      ActionConfigurationPropertyType -> Text
(ActionConfigurationPropertyType -> Text)
-> ToText ActionConfigurationPropertyType
forall a. (a -> Text) -> ToText a
toText :: ActionConfigurationPropertyType -> Text
$ctoText :: ActionConfigurationPropertyType -> Text
Core.ToText,
      ActionConfigurationPropertyType -> ByteString
(ActionConfigurationPropertyType -> ByteString)
-> ToByteString ActionConfigurationPropertyType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ActionConfigurationPropertyType -> ByteString
$ctoBS :: ActionConfigurationPropertyType -> ByteString
Core.ToByteString,
      ActionConfigurationPropertyType -> ByteStringBuilder
(ActionConfigurationPropertyType -> ByteStringBuilder)
-> ToLog ActionConfigurationPropertyType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ActionConfigurationPropertyType -> ByteStringBuilder
$cbuild :: ActionConfigurationPropertyType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ActionConfigurationPropertyType -> [Header]
(HeaderName -> ActionConfigurationPropertyType -> [Header])
-> ToHeader ActionConfigurationPropertyType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ActionConfigurationPropertyType -> [Header]
$ctoHeader :: HeaderName -> ActionConfigurationPropertyType -> [Header]
Core.ToHeader,
      ActionConfigurationPropertyType -> QueryString
(ActionConfigurationPropertyType -> QueryString)
-> ToQuery ActionConfigurationPropertyType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ActionConfigurationPropertyType -> QueryString
$ctoQuery :: ActionConfigurationPropertyType -> QueryString
Core.ToQuery,
      Value -> Parser [ActionConfigurationPropertyType]
Value -> Parser ActionConfigurationPropertyType
(Value -> Parser ActionConfigurationPropertyType)
-> (Value -> Parser [ActionConfigurationPropertyType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ActionConfigurationPropertyType]
FromJSONKeyFunction ActionConfigurationPropertyType
FromJSONKeyFunction ActionConfigurationPropertyType
-> FromJSONKeyFunction [ActionConfigurationPropertyType]
-> FromJSONKey ActionConfigurationPropertyType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ActionConfigurationPropertyType]
$cfromJSONKeyList :: FromJSONKeyFunction [ActionConfigurationPropertyType]
fromJSONKey :: FromJSONKeyFunction ActionConfigurationPropertyType
$cfromJSONKey :: FromJSONKeyFunction ActionConfigurationPropertyType
Core.FromJSONKey,
      [ActionConfigurationPropertyType] -> Encoding
[ActionConfigurationPropertyType] -> Value
ActionConfigurationPropertyType -> Encoding
ActionConfigurationPropertyType -> Value
(ActionConfigurationPropertyType -> Value)
-> (ActionConfigurationPropertyType -> Encoding)
-> ([ActionConfigurationPropertyType] -> Value)
-> ([ActionConfigurationPropertyType] -> Encoding)
-> ToJSON ActionConfigurationPropertyType
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
Core.ToJSON,
      ToJSONKeyFunction [ActionConfigurationPropertyType]
ToJSONKeyFunction ActionConfigurationPropertyType
ToJSONKeyFunction ActionConfigurationPropertyType
-> ToJSONKeyFunction [ActionConfigurationPropertyType]
-> ToJSONKey ActionConfigurationPropertyType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ActionConfigurationPropertyType]
$ctoJSONKeyList :: ToJSONKeyFunction [ActionConfigurationPropertyType]
toJSONKey :: ToJSONKeyFunction ActionConfigurationPropertyType
$ctoJSONKey :: ToJSONKeyFunction ActionConfigurationPropertyType
Core.ToJSONKey,
      [Node] -> Either String ActionConfigurationPropertyType
([Node] -> Either String ActionConfigurationPropertyType)
-> FromXML ActionConfigurationPropertyType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ActionConfigurationPropertyType
$cparseXML :: [Node] -> Either String ActionConfigurationPropertyType
Core.FromXML,
      ActionConfigurationPropertyType -> XML
(ActionConfigurationPropertyType -> XML)
-> ToXML ActionConfigurationPropertyType
forall a. (a -> XML) -> ToXML a
toXML :: ActionConfigurationPropertyType -> XML
$ctoXML :: ActionConfigurationPropertyType -> XML
Core.ToXML
    )

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

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

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

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