{-# 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.SageMaker.Types.DataDistributionType
-- 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.SageMaker.Types.DataDistributionType
  ( DataDistributionType
      ( ..,
        DataDistributionType_FullyReplicated,
        DataDistributionType_ShardedByS3Key
      ),
  )
where

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

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

pattern DataDistributionType_FullyReplicated :: DataDistributionType
pattern $bDataDistributionType_FullyReplicated :: DataDistributionType
$mDataDistributionType_FullyReplicated :: forall {r}.
DataDistributionType -> ((# #) -> r) -> ((# #) -> r) -> r
DataDistributionType_FullyReplicated = DataDistributionType' "FullyReplicated"

pattern DataDistributionType_ShardedByS3Key :: DataDistributionType
pattern $bDataDistributionType_ShardedByS3Key :: DataDistributionType
$mDataDistributionType_ShardedByS3Key :: forall {r}.
DataDistributionType -> ((# #) -> r) -> ((# #) -> r) -> r
DataDistributionType_ShardedByS3Key = DataDistributionType' "ShardedByS3Key"

{-# COMPLETE
  DataDistributionType_FullyReplicated,
  DataDistributionType_ShardedByS3Key,
  DataDistributionType'
  #-}