{-# 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.CodeGuruProfiler.Types.ActionGroup
-- 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.CodeGuruProfiler.Types.ActionGroup
  ( ActionGroup
      ( ..,
        ActionGroup_AgentPermissions
      ),
  )
where

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

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

pattern ActionGroup_AgentPermissions :: ActionGroup
pattern $bActionGroup_AgentPermissions :: ActionGroup
$mActionGroup_AgentPermissions :: forall {r}. ActionGroup -> ((# #) -> r) -> ((# #) -> r) -> r
ActionGroup_AgentPermissions = ActionGroup' "agentPermissions"

{-# COMPLETE
  ActionGroup_AgentPermissions,
  ActionGroup'
  #-}