{-# 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.Inspector.Types.ScopeType
-- 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.Inspector.Types.ScopeType
  ( ScopeType
      ( ..,
        ScopeType_INSTANCE_ID,
        ScopeType_RULES_PACKAGE_ARN
      ),
  )
where

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

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

pattern ScopeType_INSTANCE_ID :: ScopeType
pattern $bScopeType_INSTANCE_ID :: ScopeType
$mScopeType_INSTANCE_ID :: forall r. ScopeType -> (Void# -> r) -> (Void# -> r) -> r
ScopeType_INSTANCE_ID = ScopeType' "INSTANCE_ID"

pattern ScopeType_RULES_PACKAGE_ARN :: ScopeType
pattern $bScopeType_RULES_PACKAGE_ARN :: ScopeType
$mScopeType_RULES_PACKAGE_ARN :: forall r. ScopeType -> (Void# -> r) -> (Void# -> r) -> r
ScopeType_RULES_PACKAGE_ARN = ScopeType' "RULES_PACKAGE_ARN"

{-# COMPLETE
  ScopeType_INSTANCE_ID,
  ScopeType_RULES_PACKAGE_ARN,
  ScopeType'
  #-}