{-# 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.DevOpsGuru.Types.OrganizationResourceCollectionType
-- 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.DevOpsGuru.Types.OrganizationResourceCollectionType
  ( OrganizationResourceCollectionType
      ( ..,
        OrganizationResourceCollectionType_AWS_ACCOUNT,
        OrganizationResourceCollectionType_AWS_CLOUD_FORMATION,
        OrganizationResourceCollectionType_AWS_SERVICE,
        OrganizationResourceCollectionType_AWS_TAGS
      ),
  )
where

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

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

pattern OrganizationResourceCollectionType_AWS_ACCOUNT :: OrganizationResourceCollectionType
pattern $bOrganizationResourceCollectionType_AWS_ACCOUNT :: OrganizationResourceCollectionType
$mOrganizationResourceCollectionType_AWS_ACCOUNT :: forall {r}.
OrganizationResourceCollectionType
-> ((# #) -> r) -> ((# #) -> r) -> r
OrganizationResourceCollectionType_AWS_ACCOUNT = OrganizationResourceCollectionType' "AWS_ACCOUNT"

pattern OrganizationResourceCollectionType_AWS_CLOUD_FORMATION :: OrganizationResourceCollectionType
pattern $bOrganizationResourceCollectionType_AWS_CLOUD_FORMATION :: OrganizationResourceCollectionType
$mOrganizationResourceCollectionType_AWS_CLOUD_FORMATION :: forall {r}.
OrganizationResourceCollectionType
-> ((# #) -> r) -> ((# #) -> r) -> r
OrganizationResourceCollectionType_AWS_CLOUD_FORMATION = OrganizationResourceCollectionType' "AWS_CLOUD_FORMATION"

pattern OrganizationResourceCollectionType_AWS_SERVICE :: OrganizationResourceCollectionType
pattern $bOrganizationResourceCollectionType_AWS_SERVICE :: OrganizationResourceCollectionType
$mOrganizationResourceCollectionType_AWS_SERVICE :: forall {r}.
OrganizationResourceCollectionType
-> ((# #) -> r) -> ((# #) -> r) -> r
OrganizationResourceCollectionType_AWS_SERVICE = OrganizationResourceCollectionType' "AWS_SERVICE"

pattern OrganizationResourceCollectionType_AWS_TAGS :: OrganizationResourceCollectionType
pattern $bOrganizationResourceCollectionType_AWS_TAGS :: OrganizationResourceCollectionType
$mOrganizationResourceCollectionType_AWS_TAGS :: forall {r}.
OrganizationResourceCollectionType
-> ((# #) -> r) -> ((# #) -> r) -> r
OrganizationResourceCollectionType_AWS_TAGS = OrganizationResourceCollectionType' "AWS_TAGS"

{-# COMPLETE
  OrganizationResourceCollectionType_AWS_ACCOUNT,
  OrganizationResourceCollectionType_AWS_CLOUD_FORMATION,
  OrganizationResourceCollectionType_AWS_SERVICE,
  OrganizationResourceCollectionType_AWS_TAGS,
  OrganizationResourceCollectionType'
  #-}