{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CodeBuild.Types.ImagePullCredentialsType
( ImagePullCredentialsType
( ..,
ImagePullCredentialsType_CODEBUILD,
ImagePullCredentialsType_SERVICE_ROLE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ImagePullCredentialsType = ImagePullCredentialsType'
{ ImagePullCredentialsType -> Text
fromImagePullCredentialsType ::
Core.Text
}
deriving stock
( Int -> ImagePullCredentialsType -> ShowS
[ImagePullCredentialsType] -> ShowS
ImagePullCredentialsType -> String
(Int -> ImagePullCredentialsType -> ShowS)
-> (ImagePullCredentialsType -> String)
-> ([ImagePullCredentialsType] -> ShowS)
-> Show ImagePullCredentialsType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImagePullCredentialsType] -> ShowS
$cshowList :: [ImagePullCredentialsType] -> ShowS
show :: ImagePullCredentialsType -> String
$cshow :: ImagePullCredentialsType -> String
showsPrec :: Int -> ImagePullCredentialsType -> ShowS
$cshowsPrec :: Int -> ImagePullCredentialsType -> ShowS
Prelude.Show,
ReadPrec [ImagePullCredentialsType]
ReadPrec ImagePullCredentialsType
Int -> ReadS ImagePullCredentialsType
ReadS [ImagePullCredentialsType]
(Int -> ReadS ImagePullCredentialsType)
-> ReadS [ImagePullCredentialsType]
-> ReadPrec ImagePullCredentialsType
-> ReadPrec [ImagePullCredentialsType]
-> Read ImagePullCredentialsType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImagePullCredentialsType]
$creadListPrec :: ReadPrec [ImagePullCredentialsType]
readPrec :: ReadPrec ImagePullCredentialsType
$creadPrec :: ReadPrec ImagePullCredentialsType
readList :: ReadS [ImagePullCredentialsType]
$creadList :: ReadS [ImagePullCredentialsType]
readsPrec :: Int -> ReadS ImagePullCredentialsType
$creadsPrec :: Int -> ReadS ImagePullCredentialsType
Prelude.Read,
ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
(ImagePullCredentialsType -> ImagePullCredentialsType -> Bool)
-> (ImagePullCredentialsType -> ImagePullCredentialsType -> Bool)
-> Eq ImagePullCredentialsType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
$c/= :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
== :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
$c== :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
Prelude.Eq,
Eq ImagePullCredentialsType
Eq ImagePullCredentialsType
-> (ImagePullCredentialsType
-> ImagePullCredentialsType -> Ordering)
-> (ImagePullCredentialsType -> ImagePullCredentialsType -> Bool)
-> (ImagePullCredentialsType -> ImagePullCredentialsType -> Bool)
-> (ImagePullCredentialsType -> ImagePullCredentialsType -> Bool)
-> (ImagePullCredentialsType -> ImagePullCredentialsType -> Bool)
-> (ImagePullCredentialsType
-> ImagePullCredentialsType -> ImagePullCredentialsType)
-> (ImagePullCredentialsType
-> ImagePullCredentialsType -> ImagePullCredentialsType)
-> Ord ImagePullCredentialsType
ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
ImagePullCredentialsType -> ImagePullCredentialsType -> Ordering
ImagePullCredentialsType
-> ImagePullCredentialsType -> ImagePullCredentialsType
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 :: ImagePullCredentialsType
-> ImagePullCredentialsType -> ImagePullCredentialsType
$cmin :: ImagePullCredentialsType
-> ImagePullCredentialsType -> ImagePullCredentialsType
max :: ImagePullCredentialsType
-> ImagePullCredentialsType -> ImagePullCredentialsType
$cmax :: ImagePullCredentialsType
-> ImagePullCredentialsType -> ImagePullCredentialsType
>= :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
$c>= :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
> :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
$c> :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
<= :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
$c<= :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
< :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
$c< :: ImagePullCredentialsType -> ImagePullCredentialsType -> Bool
compare :: ImagePullCredentialsType -> ImagePullCredentialsType -> Ordering
$ccompare :: ImagePullCredentialsType -> ImagePullCredentialsType -> Ordering
$cp1Ord :: Eq ImagePullCredentialsType
Prelude.Ord,
(forall x.
ImagePullCredentialsType -> Rep ImagePullCredentialsType x)
-> (forall x.
Rep ImagePullCredentialsType x -> ImagePullCredentialsType)
-> Generic ImagePullCredentialsType
forall x.
Rep ImagePullCredentialsType x -> ImagePullCredentialsType
forall x.
ImagePullCredentialsType -> Rep ImagePullCredentialsType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ImagePullCredentialsType x -> ImagePullCredentialsType
$cfrom :: forall x.
ImagePullCredentialsType -> Rep ImagePullCredentialsType x
Prelude.Generic
)
deriving newtype
( Int -> ImagePullCredentialsType -> Int
ImagePullCredentialsType -> Int
(Int -> ImagePullCredentialsType -> Int)
-> (ImagePullCredentialsType -> Int)
-> Hashable ImagePullCredentialsType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ImagePullCredentialsType -> Int
$chash :: ImagePullCredentialsType -> Int
hashWithSalt :: Int -> ImagePullCredentialsType -> Int
$chashWithSalt :: Int -> ImagePullCredentialsType -> Int
Prelude.Hashable,
ImagePullCredentialsType -> ()
(ImagePullCredentialsType -> ()) -> NFData ImagePullCredentialsType
forall a. (a -> ()) -> NFData a
rnf :: ImagePullCredentialsType -> ()
$crnf :: ImagePullCredentialsType -> ()
Prelude.NFData,
Text -> Either String ImagePullCredentialsType
(Text -> Either String ImagePullCredentialsType)
-> FromText ImagePullCredentialsType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ImagePullCredentialsType
$cfromText :: Text -> Either String ImagePullCredentialsType
Core.FromText,
ImagePullCredentialsType -> Text
(ImagePullCredentialsType -> Text)
-> ToText ImagePullCredentialsType
forall a. (a -> Text) -> ToText a
toText :: ImagePullCredentialsType -> Text
$ctoText :: ImagePullCredentialsType -> Text
Core.ToText,
ImagePullCredentialsType -> ByteString
(ImagePullCredentialsType -> ByteString)
-> ToByteString ImagePullCredentialsType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ImagePullCredentialsType -> ByteString
$ctoBS :: ImagePullCredentialsType -> ByteString
Core.ToByteString,
ImagePullCredentialsType -> ByteStringBuilder
(ImagePullCredentialsType -> ByteStringBuilder)
-> ToLog ImagePullCredentialsType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ImagePullCredentialsType -> ByteStringBuilder
$cbuild :: ImagePullCredentialsType -> ByteStringBuilder
Core.ToLog,
HeaderName -> ImagePullCredentialsType -> [Header]
(HeaderName -> ImagePullCredentialsType -> [Header])
-> ToHeader ImagePullCredentialsType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ImagePullCredentialsType -> [Header]
$ctoHeader :: HeaderName -> ImagePullCredentialsType -> [Header]
Core.ToHeader,
ImagePullCredentialsType -> QueryString
(ImagePullCredentialsType -> QueryString)
-> ToQuery ImagePullCredentialsType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ImagePullCredentialsType -> QueryString
$ctoQuery :: ImagePullCredentialsType -> QueryString
Core.ToQuery,
Value -> Parser [ImagePullCredentialsType]
Value -> Parser ImagePullCredentialsType
(Value -> Parser ImagePullCredentialsType)
-> (Value -> Parser [ImagePullCredentialsType])
-> FromJSON ImagePullCredentialsType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ImagePullCredentialsType]
$cparseJSONList :: Value -> Parser [ImagePullCredentialsType]
parseJSON :: Value -> Parser ImagePullCredentialsType
$cparseJSON :: Value -> Parser ImagePullCredentialsType
Core.FromJSON,
FromJSONKeyFunction [ImagePullCredentialsType]
FromJSONKeyFunction ImagePullCredentialsType
FromJSONKeyFunction ImagePullCredentialsType
-> FromJSONKeyFunction [ImagePullCredentialsType]
-> FromJSONKey ImagePullCredentialsType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ImagePullCredentialsType]
$cfromJSONKeyList :: FromJSONKeyFunction [ImagePullCredentialsType]
fromJSONKey :: FromJSONKeyFunction ImagePullCredentialsType
$cfromJSONKey :: FromJSONKeyFunction ImagePullCredentialsType
Core.FromJSONKey,
[ImagePullCredentialsType] -> Encoding
[ImagePullCredentialsType] -> Value
ImagePullCredentialsType -> Encoding
ImagePullCredentialsType -> Value
(ImagePullCredentialsType -> Value)
-> (ImagePullCredentialsType -> Encoding)
-> ([ImagePullCredentialsType] -> Value)
-> ([ImagePullCredentialsType] -> Encoding)
-> ToJSON ImagePullCredentialsType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ImagePullCredentialsType] -> Encoding
$ctoEncodingList :: [ImagePullCredentialsType] -> Encoding
toJSONList :: [ImagePullCredentialsType] -> Value
$ctoJSONList :: [ImagePullCredentialsType] -> Value
toEncoding :: ImagePullCredentialsType -> Encoding
$ctoEncoding :: ImagePullCredentialsType -> Encoding
toJSON :: ImagePullCredentialsType -> Value
$ctoJSON :: ImagePullCredentialsType -> Value
Core.ToJSON,
ToJSONKeyFunction [ImagePullCredentialsType]
ToJSONKeyFunction ImagePullCredentialsType
ToJSONKeyFunction ImagePullCredentialsType
-> ToJSONKeyFunction [ImagePullCredentialsType]
-> ToJSONKey ImagePullCredentialsType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ImagePullCredentialsType]
$ctoJSONKeyList :: ToJSONKeyFunction [ImagePullCredentialsType]
toJSONKey :: ToJSONKeyFunction ImagePullCredentialsType
$ctoJSONKey :: ToJSONKeyFunction ImagePullCredentialsType
Core.ToJSONKey,
[Node] -> Either String ImagePullCredentialsType
([Node] -> Either String ImagePullCredentialsType)
-> FromXML ImagePullCredentialsType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ImagePullCredentialsType
$cparseXML :: [Node] -> Either String ImagePullCredentialsType
Core.FromXML,
ImagePullCredentialsType -> XML
(ImagePullCredentialsType -> XML) -> ToXML ImagePullCredentialsType
forall a. (a -> XML) -> ToXML a
toXML :: ImagePullCredentialsType -> XML
$ctoXML :: ImagePullCredentialsType -> XML
Core.ToXML
)
pattern ImagePullCredentialsType_CODEBUILD :: ImagePullCredentialsType
pattern $bImagePullCredentialsType_CODEBUILD :: ImagePullCredentialsType
$mImagePullCredentialsType_CODEBUILD :: forall r.
ImagePullCredentialsType -> (Void# -> r) -> (Void# -> r) -> r
ImagePullCredentialsType_CODEBUILD = ImagePullCredentialsType' "CODEBUILD"
pattern ImagePullCredentialsType_SERVICE_ROLE :: ImagePullCredentialsType
pattern $bImagePullCredentialsType_SERVICE_ROLE :: ImagePullCredentialsType
$mImagePullCredentialsType_SERVICE_ROLE :: forall r.
ImagePullCredentialsType -> (Void# -> r) -> (Void# -> r) -> r
ImagePullCredentialsType_SERVICE_ROLE = ImagePullCredentialsType' "SERVICE_ROLE"
{-# COMPLETE
ImagePullCredentialsType_CODEBUILD,
ImagePullCredentialsType_SERVICE_ROLE,
ImagePullCredentialsType'
#-}