{-# 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.AggregationResourceType
-- 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.AggregationResourceType
  ( AggregationResourceType
      ( ..,
        AggregationResourceType_AWS_EC2_INSTANCE,
        AggregationResourceType_AWS_ECR_CONTAINER_IMAGE,
        AggregationResourceType_AWS_LAMBDA_FUNCTION
      ),
  )
where

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

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

pattern AggregationResourceType_AWS_EC2_INSTANCE :: AggregationResourceType
pattern $bAggregationResourceType_AWS_EC2_INSTANCE :: AggregationResourceType
$mAggregationResourceType_AWS_EC2_INSTANCE :: forall {r}.
AggregationResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationResourceType_AWS_EC2_INSTANCE = AggregationResourceType' "AWS_EC2_INSTANCE"

pattern AggregationResourceType_AWS_ECR_CONTAINER_IMAGE :: AggregationResourceType
pattern $bAggregationResourceType_AWS_ECR_CONTAINER_IMAGE :: AggregationResourceType
$mAggregationResourceType_AWS_ECR_CONTAINER_IMAGE :: forall {r}.
AggregationResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationResourceType_AWS_ECR_CONTAINER_IMAGE = AggregationResourceType' "AWS_ECR_CONTAINER_IMAGE"

pattern AggregationResourceType_AWS_LAMBDA_FUNCTION :: AggregationResourceType
pattern $bAggregationResourceType_AWS_LAMBDA_FUNCTION :: AggregationResourceType
$mAggregationResourceType_AWS_LAMBDA_FUNCTION :: forall {r}.
AggregationResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationResourceType_AWS_LAMBDA_FUNCTION = AggregationResourceType' "AWS_LAMBDA_FUNCTION"

{-# COMPLETE
  AggregationResourceType_AWS_EC2_INSTANCE,
  AggregationResourceType_AWS_ECR_CONTAINER_IMAGE,
  AggregationResourceType_AWS_LAMBDA_FUNCTION,
  AggregationResourceType'
  #-}