{-# 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.Nimble.Types.StreamingImageEncryptionConfigurationKeyType
-- 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.Nimble.Types.StreamingImageEncryptionConfigurationKeyType
  ( StreamingImageEncryptionConfigurationKeyType
      ( ..,
        StreamingImageEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY
      ),
  )
where

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

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

pattern StreamingImageEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY :: StreamingImageEncryptionConfigurationKeyType
pattern $bStreamingImageEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY :: StreamingImageEncryptionConfigurationKeyType
$mStreamingImageEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY :: forall r.
StreamingImageEncryptionConfigurationKeyType
-> (Void# -> r) -> (Void# -> r) -> r
StreamingImageEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY = StreamingImageEncryptionConfigurationKeyType' "CUSTOMER_MANAGED_KEY"

{-# COMPLETE
  StreamingImageEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY,
  StreamingImageEncryptionConfigurationKeyType'
  #-}