{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype ScopeType = ScopeType'
  { ScopeType -> Text
fromScopeType ::
      Data.Text
  }
  deriving stock
    ( Int -> ScopeType -> ShowS
[ScopeType] -> ShowS
ScopeType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ScopeType
Int -> ScopeType -> Int
ScopeType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ScopeType -> ()
$crnf :: ScopeType -> ()
Prelude.NFData,
      Text -> Either String ScopeType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ScopeType
$cfromText :: Text -> Either String ScopeType
Data.FromText,
      ScopeType -> Text
forall a. (a -> Text) -> ToText a
toText :: ScopeType -> Text
$ctoText :: ScopeType -> Text
Data.ToText,
      ScopeType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ScopeType -> ByteString
$ctoBS :: ScopeType -> ByteString
Data.ToByteString,
      ScopeType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ScopeType -> ByteStringBuilder
$cbuild :: ScopeType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ScopeType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ScopeType -> [Header]
$ctoHeader :: HeaderName -> ScopeType -> [Header]
Data.ToHeader,
      ScopeType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ScopeType -> QueryString
$ctoQuery :: ScopeType -> QueryString
Data.ToQuery,
      Value -> Parser [ScopeType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ScopeType]
FromJSONKeyFunction ScopeType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ScopeType]
$cfromJSONKeyList :: FromJSONKeyFunction [ScopeType]
fromJSONKey :: FromJSONKeyFunction ScopeType
$cfromJSONKey :: FromJSONKeyFunction ScopeType
Data.FromJSONKey,
      [ScopeType] -> Encoding
[ScopeType] -> Value
ScopeType -> Encoding
ScopeType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ScopeType]
ToJSONKeyFunction ScopeType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ScopeType]
$ctoJSONKeyList :: ToJSONKeyFunction [ScopeType]
toJSONKey :: ToJSONKeyFunction ScopeType
$ctoJSONKey :: ToJSONKeyFunction ScopeType
Data.ToJSONKey,
      [Node] -> Either String ScopeType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ScopeType
$cparseXML :: [Node] -> Either String ScopeType
Data.FromXML,
      ScopeType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ScopeType -> XML
$ctoXML :: ScopeType -> XML
Data.ToXML
    )

pattern ScopeType_INSTANCE_ID :: ScopeType
pattern $bScopeType_INSTANCE_ID :: ScopeType
$mScopeType_INSTANCE_ID :: forall {r}. ScopeType -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
ScopeType_RULES_PACKAGE_ARN = ScopeType' "RULES_PACKAGE_ARN"

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