{-# 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.Inspector2.Types.ResourceScanType
-- 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.Inspector2.Types.ResourceScanType
  ( ResourceScanType
      ( ..,
        ResourceScanType_EC2,
        ResourceScanType_ECR,
        ResourceScanType_LAMBDA
      ),
  )
where

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

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

pattern ResourceScanType_EC2 :: ResourceScanType
pattern $bResourceScanType_EC2 :: ResourceScanType
$mResourceScanType_EC2 :: forall {r}. ResourceScanType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceScanType_EC2 = ResourceScanType' "EC2"

pattern ResourceScanType_ECR :: ResourceScanType
pattern $bResourceScanType_ECR :: ResourceScanType
$mResourceScanType_ECR :: forall {r}. ResourceScanType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceScanType_ECR = ResourceScanType' "ECR"

pattern ResourceScanType_LAMBDA :: ResourceScanType
pattern $bResourceScanType_LAMBDA :: ResourceScanType
$mResourceScanType_LAMBDA :: forall {r}. ResourceScanType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceScanType_LAMBDA = ResourceScanType' "LAMBDA"

{-# COMPLETE
  ResourceScanType_EC2,
  ResourceScanType_ECR,
  ResourceScanType_LAMBDA,
  ResourceScanType'
  #-}