{-# 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.StudioEncryptionConfigurationKeyType
-- 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.StudioEncryptionConfigurationKeyType
  ( StudioEncryptionConfigurationKeyType
      ( ..,
        StudioEncryptionConfigurationKeyType_AWS_OWNED_KEY,
        StudioEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY
      ),
  )
where

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

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

pattern StudioEncryptionConfigurationKeyType_AWS_OWNED_KEY :: StudioEncryptionConfigurationKeyType
pattern $bStudioEncryptionConfigurationKeyType_AWS_OWNED_KEY :: StudioEncryptionConfigurationKeyType
$mStudioEncryptionConfigurationKeyType_AWS_OWNED_KEY :: forall r.
StudioEncryptionConfigurationKeyType
-> (Void# -> r) -> (Void# -> r) -> r
StudioEncryptionConfigurationKeyType_AWS_OWNED_KEY = StudioEncryptionConfigurationKeyType' "AWS_OWNED_KEY"

pattern StudioEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY :: StudioEncryptionConfigurationKeyType
pattern $bStudioEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY :: StudioEncryptionConfigurationKeyType
$mStudioEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY :: forall r.
StudioEncryptionConfigurationKeyType
-> (Void# -> r) -> (Void# -> r) -> r
StudioEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY = StudioEncryptionConfigurationKeyType' "CUSTOMER_MANAGED_KEY"

{-# COMPLETE
  StudioEncryptionConfigurationKeyType_AWS_OWNED_KEY,
  StudioEncryptionConfigurationKeyType_CUSTOMER_MANAGED_KEY,
  StudioEncryptionConfigurationKeyType'
  #-}