{-# 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.AggregationType
-- 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.AggregationType
  ( AggregationType
      ( ..,
        AggregationType_ACCOUNT,
        AggregationType_AMI,
        AggregationType_AWS_EC2_INSTANCE,
        AggregationType_AWS_ECR_CONTAINER,
        AggregationType_AWS_LAMBDA_FUNCTION,
        AggregationType_FINDING_TYPE,
        AggregationType_IMAGE_LAYER,
        AggregationType_LAMBDA_LAYER,
        AggregationType_PACKAGE,
        AggregationType_REPOSITORY,
        AggregationType_TITLE
      ),
  )
where

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

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

pattern AggregationType_ACCOUNT :: AggregationType
pattern $bAggregationType_ACCOUNT :: AggregationType
$mAggregationType_ACCOUNT :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_ACCOUNT = AggregationType' "ACCOUNT"

pattern AggregationType_AMI :: AggregationType
pattern $bAggregationType_AMI :: AggregationType
$mAggregationType_AMI :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_AMI = AggregationType' "AMI"

pattern AggregationType_AWS_EC2_INSTANCE :: AggregationType
pattern $bAggregationType_AWS_EC2_INSTANCE :: AggregationType
$mAggregationType_AWS_EC2_INSTANCE :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_AWS_EC2_INSTANCE = AggregationType' "AWS_EC2_INSTANCE"

pattern AggregationType_AWS_ECR_CONTAINER :: AggregationType
pattern $bAggregationType_AWS_ECR_CONTAINER :: AggregationType
$mAggregationType_AWS_ECR_CONTAINER :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_AWS_ECR_CONTAINER = AggregationType' "AWS_ECR_CONTAINER"

pattern AggregationType_AWS_LAMBDA_FUNCTION :: AggregationType
pattern $bAggregationType_AWS_LAMBDA_FUNCTION :: AggregationType
$mAggregationType_AWS_LAMBDA_FUNCTION :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_AWS_LAMBDA_FUNCTION = AggregationType' "AWS_LAMBDA_FUNCTION"

pattern AggregationType_FINDING_TYPE :: AggregationType
pattern $bAggregationType_FINDING_TYPE :: AggregationType
$mAggregationType_FINDING_TYPE :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_FINDING_TYPE = AggregationType' "FINDING_TYPE"

pattern AggregationType_IMAGE_LAYER :: AggregationType
pattern $bAggregationType_IMAGE_LAYER :: AggregationType
$mAggregationType_IMAGE_LAYER :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_IMAGE_LAYER = AggregationType' "IMAGE_LAYER"

pattern AggregationType_LAMBDA_LAYER :: AggregationType
pattern $bAggregationType_LAMBDA_LAYER :: AggregationType
$mAggregationType_LAMBDA_LAYER :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_LAMBDA_LAYER = AggregationType' "LAMBDA_LAYER"

pattern AggregationType_PACKAGE :: AggregationType
pattern $bAggregationType_PACKAGE :: AggregationType
$mAggregationType_PACKAGE :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_PACKAGE = AggregationType' "PACKAGE"

pattern AggregationType_REPOSITORY :: AggregationType
pattern $bAggregationType_REPOSITORY :: AggregationType
$mAggregationType_REPOSITORY :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_REPOSITORY = AggregationType' "REPOSITORY"

pattern AggregationType_TITLE :: AggregationType
pattern $bAggregationType_TITLE :: AggregationType
$mAggregationType_TITLE :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_TITLE = AggregationType' "TITLE"

{-# COMPLETE
  AggregationType_ACCOUNT,
  AggregationType_AMI,
  AggregationType_AWS_EC2_INSTANCE,
  AggregationType_AWS_ECR_CONTAINER,
  AggregationType_AWS_LAMBDA_FUNCTION,
  AggregationType_FINDING_TYPE,
  AggregationType_IMAGE_LAYER,
  AggregationType_LAMBDA_LAYER,
  AggregationType_PACKAGE,
  AggregationType_REPOSITORY,
  AggregationType_TITLE,
  AggregationType'
  #-}