{-# 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.ActionOwner
-- 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.ActionOwner
  ( ActionOwner
      ( ..,
        ActionOwner_AWS,
        ActionOwner_Custom,
        ActionOwner_ThirdParty
      ),
  )
where

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

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

pattern ActionOwner_AWS :: ActionOwner
pattern $bActionOwner_AWS :: ActionOwner
$mActionOwner_AWS :: forall r. ActionOwner -> (Void# -> r) -> (Void# -> r) -> r
ActionOwner_AWS = ActionOwner' "AWS"

pattern ActionOwner_Custom :: ActionOwner
pattern $bActionOwner_Custom :: ActionOwner
$mActionOwner_Custom :: forall r. ActionOwner -> (Void# -> r) -> (Void# -> r) -> r
ActionOwner_Custom = ActionOwner' "Custom"

pattern ActionOwner_ThirdParty :: ActionOwner
pattern $bActionOwner_ThirdParty :: ActionOwner
$mActionOwner_ThirdParty :: forall r. ActionOwner -> (Void# -> r) -> (Void# -> r) -> r
ActionOwner_ThirdParty = ActionOwner' "ThirdParty"

{-# COMPLETE
  ActionOwner_AWS,
  ActionOwner_Custom,
  ActionOwner_ThirdParty,
  ActionOwner'
  #-}