{-# 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.S3DataDistribution
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.S3DataDistribution
  ( S3DataDistribution
      ( ..,
        S3DataDistribution_FullyReplicated,
        S3DataDistribution_ShardedByS3Key
      ),
  )
where

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

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

pattern S3DataDistribution_FullyReplicated :: S3DataDistribution
pattern $bS3DataDistribution_FullyReplicated :: S3DataDistribution
$mS3DataDistribution_FullyReplicated :: forall r. S3DataDistribution -> (Void# -> r) -> (Void# -> r) -> r
S3DataDistribution_FullyReplicated = S3DataDistribution' "FullyReplicated"

pattern S3DataDistribution_ShardedByS3Key :: S3DataDistribution
pattern $bS3DataDistribution_ShardedByS3Key :: S3DataDistribution
$mS3DataDistribution_ShardedByS3Key :: forall r. S3DataDistribution -> (Void# -> r) -> (Void# -> r) -> r
S3DataDistribution_ShardedByS3Key = S3DataDistribution' "ShardedByS3Key"

{-# COMPLETE
  S3DataDistribution_FullyReplicated,
  S3DataDistribution_ShardedByS3Key,
  S3DataDistribution'
  #-}