{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SageMaker.DisableSagemakerServicecatalogPortfolio
(
DisableSagemakerServicecatalogPortfolio (..),
newDisableSagemakerServicecatalogPortfolio,
DisableSagemakerServicecatalogPortfolioResponse (..),
newDisableSagemakerServicecatalogPortfolioResponse,
disableSagemakerServicecatalogPortfolioResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types
data DisableSagemakerServicecatalogPortfolio = DisableSagemakerServicecatalogPortfolio'
{
}
deriving (DisableSagemakerServicecatalogPortfolio
-> DisableSagemakerServicecatalogPortfolio -> Bool
(DisableSagemakerServicecatalogPortfolio
-> DisableSagemakerServicecatalogPortfolio -> Bool)
-> (DisableSagemakerServicecatalogPortfolio
-> DisableSagemakerServicecatalogPortfolio -> Bool)
-> Eq DisableSagemakerServicecatalogPortfolio
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisableSagemakerServicecatalogPortfolio
-> DisableSagemakerServicecatalogPortfolio -> Bool
$c/= :: DisableSagemakerServicecatalogPortfolio
-> DisableSagemakerServicecatalogPortfolio -> Bool
== :: DisableSagemakerServicecatalogPortfolio
-> DisableSagemakerServicecatalogPortfolio -> Bool
$c== :: DisableSagemakerServicecatalogPortfolio
-> DisableSagemakerServicecatalogPortfolio -> Bool
Prelude.Eq, ReadPrec [DisableSagemakerServicecatalogPortfolio]
ReadPrec DisableSagemakerServicecatalogPortfolio
Int -> ReadS DisableSagemakerServicecatalogPortfolio
ReadS [DisableSagemakerServicecatalogPortfolio]
(Int -> ReadS DisableSagemakerServicecatalogPortfolio)
-> ReadS [DisableSagemakerServicecatalogPortfolio]
-> ReadPrec DisableSagemakerServicecatalogPortfolio
-> ReadPrec [DisableSagemakerServicecatalogPortfolio]
-> Read DisableSagemakerServicecatalogPortfolio
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisableSagemakerServicecatalogPortfolio]
$creadListPrec :: ReadPrec [DisableSagemakerServicecatalogPortfolio]
readPrec :: ReadPrec DisableSagemakerServicecatalogPortfolio
$creadPrec :: ReadPrec DisableSagemakerServicecatalogPortfolio
readList :: ReadS [DisableSagemakerServicecatalogPortfolio]
$creadList :: ReadS [DisableSagemakerServicecatalogPortfolio]
readsPrec :: Int -> ReadS DisableSagemakerServicecatalogPortfolio
$creadsPrec :: Int -> ReadS DisableSagemakerServicecatalogPortfolio
Prelude.Read, Int -> DisableSagemakerServicecatalogPortfolio -> ShowS
[DisableSagemakerServicecatalogPortfolio] -> ShowS
DisableSagemakerServicecatalogPortfolio -> String
(Int -> DisableSagemakerServicecatalogPortfolio -> ShowS)
-> (DisableSagemakerServicecatalogPortfolio -> String)
-> ([DisableSagemakerServicecatalogPortfolio] -> ShowS)
-> Show DisableSagemakerServicecatalogPortfolio
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisableSagemakerServicecatalogPortfolio] -> ShowS
$cshowList :: [DisableSagemakerServicecatalogPortfolio] -> ShowS
show :: DisableSagemakerServicecatalogPortfolio -> String
$cshow :: DisableSagemakerServicecatalogPortfolio -> String
showsPrec :: Int -> DisableSagemakerServicecatalogPortfolio -> ShowS
$cshowsPrec :: Int -> DisableSagemakerServicecatalogPortfolio -> ShowS
Prelude.Show, (forall x.
DisableSagemakerServicecatalogPortfolio
-> Rep DisableSagemakerServicecatalogPortfolio x)
-> (forall x.
Rep DisableSagemakerServicecatalogPortfolio x
-> DisableSagemakerServicecatalogPortfolio)
-> Generic DisableSagemakerServicecatalogPortfolio
forall x.
Rep DisableSagemakerServicecatalogPortfolio x
-> DisableSagemakerServicecatalogPortfolio
forall x.
DisableSagemakerServicecatalogPortfolio
-> Rep DisableSagemakerServicecatalogPortfolio x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisableSagemakerServicecatalogPortfolio x
-> DisableSagemakerServicecatalogPortfolio
$cfrom :: forall x.
DisableSagemakerServicecatalogPortfolio
-> Rep DisableSagemakerServicecatalogPortfolio x
Prelude.Generic)
newDisableSagemakerServicecatalogPortfolio ::
DisableSagemakerServicecatalogPortfolio
newDisableSagemakerServicecatalogPortfolio :: DisableSagemakerServicecatalogPortfolio
newDisableSagemakerServicecatalogPortfolio =
DisableSagemakerServicecatalogPortfolio
DisableSagemakerServicecatalogPortfolio'
instance
Core.AWSRequest
DisableSagemakerServicecatalogPortfolio
where
type
AWSResponse
DisableSagemakerServicecatalogPortfolio =
DisableSagemakerServicecatalogPortfolioResponse
request :: DisableSagemakerServicecatalogPortfolio
-> Request DisableSagemakerServicecatalogPortfolio
request = Service
-> DisableSagemakerServicecatalogPortfolio
-> Request DisableSagemakerServicecatalogPortfolio
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DisableSagemakerServicecatalogPortfolio
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DisableSagemakerServicecatalogPortfolio)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either
String (AWSResponse DisableSagemakerServicecatalogPortfolio))
-> Logger
-> Service
-> Proxy DisableSagemakerServicecatalogPortfolio
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DisableSagemakerServicecatalogPortfolio)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> DisableSagemakerServicecatalogPortfolioResponse
DisableSagemakerServicecatalogPortfolioResponse'
(Int -> DisableSagemakerServicecatalogPortfolioResponse)
-> Either String Int
-> Either String DisableSagemakerServicecatalogPortfolioResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
DisableSagemakerServicecatalogPortfolio
instance
Prelude.NFData
DisableSagemakerServicecatalogPortfolio
instance
Core.ToHeaders
DisableSagemakerServicecatalogPortfolio
where
toHeaders :: DisableSagemakerServicecatalogPortfolio -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DisableSagemakerServicecatalogPortfolio -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"SageMaker.DisableSagemakerServicecatalogPortfolio" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Core.ToJSON
DisableSagemakerServicecatalogPortfolio
where
toJSON :: DisableSagemakerServicecatalogPortfolio -> Value
toJSON = Value -> DisableSagemakerServicecatalogPortfolio -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)
instance
Core.ToPath
DisableSagemakerServicecatalogPortfolio
where
toPath :: DisableSagemakerServicecatalogPortfolio -> ByteString
toPath = ByteString -> DisableSagemakerServicecatalogPortfolio -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DisableSagemakerServicecatalogPortfolio
where
toQuery :: DisableSagemakerServicecatalogPortfolio -> QueryString
toQuery = QueryString
-> DisableSagemakerServicecatalogPortfolio -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DisableSagemakerServicecatalogPortfolioResponse = DisableSagemakerServicecatalogPortfolioResponse'
{
DisableSagemakerServicecatalogPortfolioResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DisableSagemakerServicecatalogPortfolioResponse
-> DisableSagemakerServicecatalogPortfolioResponse -> Bool
(DisableSagemakerServicecatalogPortfolioResponse
-> DisableSagemakerServicecatalogPortfolioResponse -> Bool)
-> (DisableSagemakerServicecatalogPortfolioResponse
-> DisableSagemakerServicecatalogPortfolioResponse -> Bool)
-> Eq DisableSagemakerServicecatalogPortfolioResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisableSagemakerServicecatalogPortfolioResponse
-> DisableSagemakerServicecatalogPortfolioResponse -> Bool
$c/= :: DisableSagemakerServicecatalogPortfolioResponse
-> DisableSagemakerServicecatalogPortfolioResponse -> Bool
== :: DisableSagemakerServicecatalogPortfolioResponse
-> DisableSagemakerServicecatalogPortfolioResponse -> Bool
$c== :: DisableSagemakerServicecatalogPortfolioResponse
-> DisableSagemakerServicecatalogPortfolioResponse -> Bool
Prelude.Eq, ReadPrec [DisableSagemakerServicecatalogPortfolioResponse]
ReadPrec DisableSagemakerServicecatalogPortfolioResponse
Int -> ReadS DisableSagemakerServicecatalogPortfolioResponse
ReadS [DisableSagemakerServicecatalogPortfolioResponse]
(Int -> ReadS DisableSagemakerServicecatalogPortfolioResponse)
-> ReadS [DisableSagemakerServicecatalogPortfolioResponse]
-> ReadPrec DisableSagemakerServicecatalogPortfolioResponse
-> ReadPrec [DisableSagemakerServicecatalogPortfolioResponse]
-> Read DisableSagemakerServicecatalogPortfolioResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisableSagemakerServicecatalogPortfolioResponse]
$creadListPrec :: ReadPrec [DisableSagemakerServicecatalogPortfolioResponse]
readPrec :: ReadPrec DisableSagemakerServicecatalogPortfolioResponse
$creadPrec :: ReadPrec DisableSagemakerServicecatalogPortfolioResponse
readList :: ReadS [DisableSagemakerServicecatalogPortfolioResponse]
$creadList :: ReadS [DisableSagemakerServicecatalogPortfolioResponse]
readsPrec :: Int -> ReadS DisableSagemakerServicecatalogPortfolioResponse
$creadsPrec :: Int -> ReadS DisableSagemakerServicecatalogPortfolioResponse
Prelude.Read, Int -> DisableSagemakerServicecatalogPortfolioResponse -> ShowS
[DisableSagemakerServicecatalogPortfolioResponse] -> ShowS
DisableSagemakerServicecatalogPortfolioResponse -> String
(Int -> DisableSagemakerServicecatalogPortfolioResponse -> ShowS)
-> (DisableSagemakerServicecatalogPortfolioResponse -> String)
-> ([DisableSagemakerServicecatalogPortfolioResponse] -> ShowS)
-> Show DisableSagemakerServicecatalogPortfolioResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisableSagemakerServicecatalogPortfolioResponse] -> ShowS
$cshowList :: [DisableSagemakerServicecatalogPortfolioResponse] -> ShowS
show :: DisableSagemakerServicecatalogPortfolioResponse -> String
$cshow :: DisableSagemakerServicecatalogPortfolioResponse -> String
showsPrec :: Int -> DisableSagemakerServicecatalogPortfolioResponse -> ShowS
$cshowsPrec :: Int -> DisableSagemakerServicecatalogPortfolioResponse -> ShowS
Prelude.Show, (forall x.
DisableSagemakerServicecatalogPortfolioResponse
-> Rep DisableSagemakerServicecatalogPortfolioResponse x)
-> (forall x.
Rep DisableSagemakerServicecatalogPortfolioResponse x
-> DisableSagemakerServicecatalogPortfolioResponse)
-> Generic DisableSagemakerServicecatalogPortfolioResponse
forall x.
Rep DisableSagemakerServicecatalogPortfolioResponse x
-> DisableSagemakerServicecatalogPortfolioResponse
forall x.
DisableSagemakerServicecatalogPortfolioResponse
-> Rep DisableSagemakerServicecatalogPortfolioResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisableSagemakerServicecatalogPortfolioResponse x
-> DisableSagemakerServicecatalogPortfolioResponse
$cfrom :: forall x.
DisableSagemakerServicecatalogPortfolioResponse
-> Rep DisableSagemakerServicecatalogPortfolioResponse x
Prelude.Generic)
newDisableSagemakerServicecatalogPortfolioResponse ::
Prelude.Int ->
DisableSagemakerServicecatalogPortfolioResponse
newDisableSagemakerServicecatalogPortfolioResponse :: Int -> DisableSagemakerServicecatalogPortfolioResponse
newDisableSagemakerServicecatalogPortfolioResponse
Int
pHttpStatus_ =
DisableSagemakerServicecatalogPortfolioResponse' :: Int -> DisableSagemakerServicecatalogPortfolioResponse
DisableSagemakerServicecatalogPortfolioResponse'
{ $sel:httpStatus:DisableSagemakerServicecatalogPortfolioResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
disableSagemakerServicecatalogPortfolioResponse_httpStatus :: Lens.Lens' DisableSagemakerServicecatalogPortfolioResponse Prelude.Int
disableSagemakerServicecatalogPortfolioResponse_httpStatus :: (Int -> f Int)
-> DisableSagemakerServicecatalogPortfolioResponse
-> f DisableSagemakerServicecatalogPortfolioResponse
disableSagemakerServicecatalogPortfolioResponse_httpStatus = (DisableSagemakerServicecatalogPortfolioResponse -> Int)
-> (DisableSagemakerServicecatalogPortfolioResponse
-> Int -> DisableSagemakerServicecatalogPortfolioResponse)
-> Lens
DisableSagemakerServicecatalogPortfolioResponse
DisableSagemakerServicecatalogPortfolioResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisableSagemakerServicecatalogPortfolioResponse' {Int
httpStatus :: Int
$sel:httpStatus:DisableSagemakerServicecatalogPortfolioResponse' :: DisableSagemakerServicecatalogPortfolioResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DisableSagemakerServicecatalogPortfolioResponse
s@DisableSagemakerServicecatalogPortfolioResponse' {} Int
a -> DisableSagemakerServicecatalogPortfolioResponse
s {$sel:httpStatus:DisableSagemakerServicecatalogPortfolioResponse' :: Int
httpStatus = Int
a} :: DisableSagemakerServicecatalogPortfolioResponse)
instance
Prelude.NFData
DisableSagemakerServicecatalogPortfolioResponse