{-# 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.MigrationHubStrategy.Types.SelfManageTargetDestination
-- 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.MigrationHubStrategy.Types.SelfManageTargetDestination
  ( SelfManageTargetDestination
      ( ..,
        SelfManageTargetDestination_Amazon_Elastic_Cloud_Compute__EC2_,
        SelfManageTargetDestination_Amazon_Elastic_Container_Service__ECS_,
        SelfManageTargetDestination_Amazon_Elastic_Kubernetes_Service__EKS_,
        SelfManageTargetDestination_None_specified
      ),
  )
where

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

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

pattern SelfManageTargetDestination_Amazon_Elastic_Cloud_Compute__EC2_ :: SelfManageTargetDestination
pattern $bSelfManageTargetDestination_Amazon_Elastic_Cloud_Compute__EC2_ :: SelfManageTargetDestination
$mSelfManageTargetDestination_Amazon_Elastic_Cloud_Compute__EC2_ :: forall {r}.
SelfManageTargetDestination -> ((# #) -> r) -> ((# #) -> r) -> r
SelfManageTargetDestination_Amazon_Elastic_Cloud_Compute__EC2_ = SelfManageTargetDestination' "Amazon Elastic Cloud Compute (EC2)"

pattern SelfManageTargetDestination_Amazon_Elastic_Container_Service__ECS_ :: SelfManageTargetDestination
pattern $bSelfManageTargetDestination_Amazon_Elastic_Container_Service__ECS_ :: SelfManageTargetDestination
$mSelfManageTargetDestination_Amazon_Elastic_Container_Service__ECS_ :: forall {r}.
SelfManageTargetDestination -> ((# #) -> r) -> ((# #) -> r) -> r
SelfManageTargetDestination_Amazon_Elastic_Container_Service__ECS_ = SelfManageTargetDestination' "Amazon Elastic Container Service (ECS)"

pattern SelfManageTargetDestination_Amazon_Elastic_Kubernetes_Service__EKS_ :: SelfManageTargetDestination
pattern $bSelfManageTargetDestination_Amazon_Elastic_Kubernetes_Service__EKS_ :: SelfManageTargetDestination
$mSelfManageTargetDestination_Amazon_Elastic_Kubernetes_Service__EKS_ :: forall {r}.
SelfManageTargetDestination -> ((# #) -> r) -> ((# #) -> r) -> r
SelfManageTargetDestination_Amazon_Elastic_Kubernetes_Service__EKS_ = SelfManageTargetDestination' "Amazon Elastic Kubernetes Service (EKS)"

pattern SelfManageTargetDestination_None_specified :: SelfManageTargetDestination
pattern $bSelfManageTargetDestination_None_specified :: SelfManageTargetDestination
$mSelfManageTargetDestination_None_specified :: forall {r}.
SelfManageTargetDestination -> ((# #) -> r) -> ((# #) -> r) -> r
SelfManageTargetDestination_None_specified = SelfManageTargetDestination' "None specified"

{-# COMPLETE
  SelfManageTargetDestination_Amazon_Elastic_Cloud_Compute__EC2_,
  SelfManageTargetDestination_Amazon_Elastic_Container_Service__ECS_,
  SelfManageTargetDestination_Amazon_Elastic_Kubernetes_Service__EKS_,
  SelfManageTargetDestination_None_specified,
  SelfManageTargetDestination'
  #-}