{-# 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.MacieV2.Types.BucketMetadataErrorCode
-- 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.MacieV2.Types.BucketMetadataErrorCode
  ( BucketMetadataErrorCode
      ( ..,
        BucketMetadataErrorCode_ACCESS_DENIED
      ),
  )
where

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

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

pattern BucketMetadataErrorCode_ACCESS_DENIED :: BucketMetadataErrorCode
pattern $bBucketMetadataErrorCode_ACCESS_DENIED :: BucketMetadataErrorCode
$mBucketMetadataErrorCode_ACCESS_DENIED :: forall r.
BucketMetadataErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BucketMetadataErrorCode_ACCESS_DENIED = BucketMetadataErrorCode' "ACCESS_DENIED"

{-# COMPLETE
  BucketMetadataErrorCode_ACCESS_DENIED,
  BucketMetadataErrorCode'
  #-}