{-# 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.Nimble.DeleteLaunchProfileMember
(
DeleteLaunchProfileMember (..),
newDeleteLaunchProfileMember,
deleteLaunchProfileMember_clientToken,
deleteLaunchProfileMember_studioId,
deleteLaunchProfileMember_principalId,
deleteLaunchProfileMember_launchProfileId,
DeleteLaunchProfileMemberResponse (..),
newDeleteLaunchProfileMemberResponse,
deleteLaunchProfileMemberResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Nimble.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DeleteLaunchProfileMember = DeleteLaunchProfileMember'
{
DeleteLaunchProfileMember -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
DeleteLaunchProfileMember -> Text
studioId :: Prelude.Text,
DeleteLaunchProfileMember -> Text
principalId :: Prelude.Text,
DeleteLaunchProfileMember -> Text
launchProfileId :: Prelude.Text
}
deriving (DeleteLaunchProfileMember -> DeleteLaunchProfileMember -> Bool
(DeleteLaunchProfileMember -> DeleteLaunchProfileMember -> Bool)
-> (DeleteLaunchProfileMember -> DeleteLaunchProfileMember -> Bool)
-> Eq DeleteLaunchProfileMember
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteLaunchProfileMember -> DeleteLaunchProfileMember -> Bool
$c/= :: DeleteLaunchProfileMember -> DeleteLaunchProfileMember -> Bool
== :: DeleteLaunchProfileMember -> DeleteLaunchProfileMember -> Bool
$c== :: DeleteLaunchProfileMember -> DeleteLaunchProfileMember -> Bool
Prelude.Eq, ReadPrec [DeleteLaunchProfileMember]
ReadPrec DeleteLaunchProfileMember
Int -> ReadS DeleteLaunchProfileMember
ReadS [DeleteLaunchProfileMember]
(Int -> ReadS DeleteLaunchProfileMember)
-> ReadS [DeleteLaunchProfileMember]
-> ReadPrec DeleteLaunchProfileMember
-> ReadPrec [DeleteLaunchProfileMember]
-> Read DeleteLaunchProfileMember
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteLaunchProfileMember]
$creadListPrec :: ReadPrec [DeleteLaunchProfileMember]
readPrec :: ReadPrec DeleteLaunchProfileMember
$creadPrec :: ReadPrec DeleteLaunchProfileMember
readList :: ReadS [DeleteLaunchProfileMember]
$creadList :: ReadS [DeleteLaunchProfileMember]
readsPrec :: Int -> ReadS DeleteLaunchProfileMember
$creadsPrec :: Int -> ReadS DeleteLaunchProfileMember
Prelude.Read, Int -> DeleteLaunchProfileMember -> ShowS
[DeleteLaunchProfileMember] -> ShowS
DeleteLaunchProfileMember -> String
(Int -> DeleteLaunchProfileMember -> ShowS)
-> (DeleteLaunchProfileMember -> String)
-> ([DeleteLaunchProfileMember] -> ShowS)
-> Show DeleteLaunchProfileMember
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteLaunchProfileMember] -> ShowS
$cshowList :: [DeleteLaunchProfileMember] -> ShowS
show :: DeleteLaunchProfileMember -> String
$cshow :: DeleteLaunchProfileMember -> String
showsPrec :: Int -> DeleteLaunchProfileMember -> ShowS
$cshowsPrec :: Int -> DeleteLaunchProfileMember -> ShowS
Prelude.Show, (forall x.
DeleteLaunchProfileMember -> Rep DeleteLaunchProfileMember x)
-> (forall x.
Rep DeleteLaunchProfileMember x -> DeleteLaunchProfileMember)
-> Generic DeleteLaunchProfileMember
forall x.
Rep DeleteLaunchProfileMember x -> DeleteLaunchProfileMember
forall x.
DeleteLaunchProfileMember -> Rep DeleteLaunchProfileMember x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteLaunchProfileMember x -> DeleteLaunchProfileMember
$cfrom :: forall x.
DeleteLaunchProfileMember -> Rep DeleteLaunchProfileMember x
Prelude.Generic)
newDeleteLaunchProfileMember ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
DeleteLaunchProfileMember
newDeleteLaunchProfileMember :: Text -> Text -> Text -> DeleteLaunchProfileMember
newDeleteLaunchProfileMember
Text
pStudioId_
Text
pPrincipalId_
Text
pLaunchProfileId_ =
DeleteLaunchProfileMember' :: Maybe Text -> Text -> Text -> Text -> DeleteLaunchProfileMember
DeleteLaunchProfileMember'
{ $sel:clientToken:DeleteLaunchProfileMember' :: Maybe Text
clientToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:studioId:DeleteLaunchProfileMember' :: Text
studioId = Text
pStudioId_,
$sel:principalId:DeleteLaunchProfileMember' :: Text
principalId = Text
pPrincipalId_,
$sel:launchProfileId:DeleteLaunchProfileMember' :: Text
launchProfileId = Text
pLaunchProfileId_
}
deleteLaunchProfileMember_clientToken :: Lens.Lens' DeleteLaunchProfileMember (Prelude.Maybe Prelude.Text)
deleteLaunchProfileMember_clientToken :: (Maybe Text -> f (Maybe Text))
-> DeleteLaunchProfileMember -> f DeleteLaunchProfileMember
deleteLaunchProfileMember_clientToken = (DeleteLaunchProfileMember -> Maybe Text)
-> (DeleteLaunchProfileMember
-> Maybe Text -> DeleteLaunchProfileMember)
-> Lens
DeleteLaunchProfileMember
DeleteLaunchProfileMember
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteLaunchProfileMember' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: DeleteLaunchProfileMember
s@DeleteLaunchProfileMember' {} Maybe Text
a -> DeleteLaunchProfileMember
s {$sel:clientToken:DeleteLaunchProfileMember' :: Maybe Text
clientToken = Maybe Text
a} :: DeleteLaunchProfileMember)
deleteLaunchProfileMember_studioId :: Lens.Lens' DeleteLaunchProfileMember Prelude.Text
deleteLaunchProfileMember_studioId :: (Text -> f Text)
-> DeleteLaunchProfileMember -> f DeleteLaunchProfileMember
deleteLaunchProfileMember_studioId = (DeleteLaunchProfileMember -> Text)
-> (DeleteLaunchProfileMember -> Text -> DeleteLaunchProfileMember)
-> Lens
DeleteLaunchProfileMember DeleteLaunchProfileMember Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteLaunchProfileMember' {Text
studioId :: Text
$sel:studioId:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Text
studioId} -> Text
studioId) (\s :: DeleteLaunchProfileMember
s@DeleteLaunchProfileMember' {} Text
a -> DeleteLaunchProfileMember
s {$sel:studioId:DeleteLaunchProfileMember' :: Text
studioId = Text
a} :: DeleteLaunchProfileMember)
deleteLaunchProfileMember_principalId :: Lens.Lens' DeleteLaunchProfileMember Prelude.Text
deleteLaunchProfileMember_principalId :: (Text -> f Text)
-> DeleteLaunchProfileMember -> f DeleteLaunchProfileMember
deleteLaunchProfileMember_principalId = (DeleteLaunchProfileMember -> Text)
-> (DeleteLaunchProfileMember -> Text -> DeleteLaunchProfileMember)
-> Lens
DeleteLaunchProfileMember DeleteLaunchProfileMember Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteLaunchProfileMember' {Text
principalId :: Text
$sel:principalId:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Text
principalId} -> Text
principalId) (\s :: DeleteLaunchProfileMember
s@DeleteLaunchProfileMember' {} Text
a -> DeleteLaunchProfileMember
s {$sel:principalId:DeleteLaunchProfileMember' :: Text
principalId = Text
a} :: DeleteLaunchProfileMember)
deleteLaunchProfileMember_launchProfileId :: Lens.Lens' DeleteLaunchProfileMember Prelude.Text
deleteLaunchProfileMember_launchProfileId :: (Text -> f Text)
-> DeleteLaunchProfileMember -> f DeleteLaunchProfileMember
deleteLaunchProfileMember_launchProfileId = (DeleteLaunchProfileMember -> Text)
-> (DeleteLaunchProfileMember -> Text -> DeleteLaunchProfileMember)
-> Lens
DeleteLaunchProfileMember DeleteLaunchProfileMember Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteLaunchProfileMember' {Text
launchProfileId :: Text
$sel:launchProfileId:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Text
launchProfileId} -> Text
launchProfileId) (\s :: DeleteLaunchProfileMember
s@DeleteLaunchProfileMember' {} Text
a -> DeleteLaunchProfileMember
s {$sel:launchProfileId:DeleteLaunchProfileMember' :: Text
launchProfileId = Text
a} :: DeleteLaunchProfileMember)
instance Core.AWSRequest DeleteLaunchProfileMember where
type
AWSResponse DeleteLaunchProfileMember =
DeleteLaunchProfileMemberResponse
request :: DeleteLaunchProfileMember -> Request DeleteLaunchProfileMember
request = Service
-> DeleteLaunchProfileMember -> Request DeleteLaunchProfileMember
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteLaunchProfileMember
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteLaunchProfileMember)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse DeleteLaunchProfileMember))
-> Logger
-> Service
-> Proxy DeleteLaunchProfileMember
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteLaunchProfileMember)))
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 -> DeleteLaunchProfileMemberResponse
DeleteLaunchProfileMemberResponse'
(Int -> DeleteLaunchProfileMemberResponse)
-> Either String Int
-> Either String DeleteLaunchProfileMemberResponse
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 DeleteLaunchProfileMember
instance Prelude.NFData DeleteLaunchProfileMember
instance Core.ToHeaders DeleteLaunchProfileMember where
toHeaders :: DeleteLaunchProfileMember -> ResponseHeaders
toHeaders DeleteLaunchProfileMember' {Maybe Text
Text
launchProfileId :: Text
principalId :: Text
studioId :: Text
clientToken :: Maybe Text
$sel:launchProfileId:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Text
$sel:principalId:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Text
$sel:studioId:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Text
$sel:clientToken:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Maybe Text
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Client-Token" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
clientToken,
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.ToPath DeleteLaunchProfileMember where
toPath :: DeleteLaunchProfileMember -> ByteString
toPath DeleteLaunchProfileMember' {Maybe Text
Text
launchProfileId :: Text
principalId :: Text
studioId :: Text
clientToken :: Maybe Text
$sel:launchProfileId:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Text
$sel:principalId:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Text
$sel:studioId:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Text
$sel:clientToken:DeleteLaunchProfileMember' :: DeleteLaunchProfileMember -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/2020-08-01/studios/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
studioId,
ByteString
"/launch-profiles/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
launchProfileId,
ByteString
"/membership/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
principalId
]
instance Core.ToQuery DeleteLaunchProfileMember where
toQuery :: DeleteLaunchProfileMember -> QueryString
toQuery = QueryString -> DeleteLaunchProfileMember -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteLaunchProfileMemberResponse = DeleteLaunchProfileMemberResponse'
{
DeleteLaunchProfileMemberResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteLaunchProfileMemberResponse
-> DeleteLaunchProfileMemberResponse -> Bool
(DeleteLaunchProfileMemberResponse
-> DeleteLaunchProfileMemberResponse -> Bool)
-> (DeleteLaunchProfileMemberResponse
-> DeleteLaunchProfileMemberResponse -> Bool)
-> Eq DeleteLaunchProfileMemberResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteLaunchProfileMemberResponse
-> DeleteLaunchProfileMemberResponse -> Bool
$c/= :: DeleteLaunchProfileMemberResponse
-> DeleteLaunchProfileMemberResponse -> Bool
== :: DeleteLaunchProfileMemberResponse
-> DeleteLaunchProfileMemberResponse -> Bool
$c== :: DeleteLaunchProfileMemberResponse
-> DeleteLaunchProfileMemberResponse -> Bool
Prelude.Eq, ReadPrec [DeleteLaunchProfileMemberResponse]
ReadPrec DeleteLaunchProfileMemberResponse
Int -> ReadS DeleteLaunchProfileMemberResponse
ReadS [DeleteLaunchProfileMemberResponse]
(Int -> ReadS DeleteLaunchProfileMemberResponse)
-> ReadS [DeleteLaunchProfileMemberResponse]
-> ReadPrec DeleteLaunchProfileMemberResponse
-> ReadPrec [DeleteLaunchProfileMemberResponse]
-> Read DeleteLaunchProfileMemberResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteLaunchProfileMemberResponse]
$creadListPrec :: ReadPrec [DeleteLaunchProfileMemberResponse]
readPrec :: ReadPrec DeleteLaunchProfileMemberResponse
$creadPrec :: ReadPrec DeleteLaunchProfileMemberResponse
readList :: ReadS [DeleteLaunchProfileMemberResponse]
$creadList :: ReadS [DeleteLaunchProfileMemberResponse]
readsPrec :: Int -> ReadS DeleteLaunchProfileMemberResponse
$creadsPrec :: Int -> ReadS DeleteLaunchProfileMemberResponse
Prelude.Read, Int -> DeleteLaunchProfileMemberResponse -> ShowS
[DeleteLaunchProfileMemberResponse] -> ShowS
DeleteLaunchProfileMemberResponse -> String
(Int -> DeleteLaunchProfileMemberResponse -> ShowS)
-> (DeleteLaunchProfileMemberResponse -> String)
-> ([DeleteLaunchProfileMemberResponse] -> ShowS)
-> Show DeleteLaunchProfileMemberResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteLaunchProfileMemberResponse] -> ShowS
$cshowList :: [DeleteLaunchProfileMemberResponse] -> ShowS
show :: DeleteLaunchProfileMemberResponse -> String
$cshow :: DeleteLaunchProfileMemberResponse -> String
showsPrec :: Int -> DeleteLaunchProfileMemberResponse -> ShowS
$cshowsPrec :: Int -> DeleteLaunchProfileMemberResponse -> ShowS
Prelude.Show, (forall x.
DeleteLaunchProfileMemberResponse
-> Rep DeleteLaunchProfileMemberResponse x)
-> (forall x.
Rep DeleteLaunchProfileMemberResponse x
-> DeleteLaunchProfileMemberResponse)
-> Generic DeleteLaunchProfileMemberResponse
forall x.
Rep DeleteLaunchProfileMemberResponse x
-> DeleteLaunchProfileMemberResponse
forall x.
DeleteLaunchProfileMemberResponse
-> Rep DeleteLaunchProfileMemberResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteLaunchProfileMemberResponse x
-> DeleteLaunchProfileMemberResponse
$cfrom :: forall x.
DeleteLaunchProfileMemberResponse
-> Rep DeleteLaunchProfileMemberResponse x
Prelude.Generic)
newDeleteLaunchProfileMemberResponse ::
Prelude.Int ->
DeleteLaunchProfileMemberResponse
newDeleteLaunchProfileMemberResponse :: Int -> DeleteLaunchProfileMemberResponse
newDeleteLaunchProfileMemberResponse Int
pHttpStatus_ =
DeleteLaunchProfileMemberResponse' :: Int -> DeleteLaunchProfileMemberResponse
DeleteLaunchProfileMemberResponse'
{ $sel:httpStatus:DeleteLaunchProfileMemberResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
deleteLaunchProfileMemberResponse_httpStatus :: Lens.Lens' DeleteLaunchProfileMemberResponse Prelude.Int
deleteLaunchProfileMemberResponse_httpStatus :: (Int -> f Int)
-> DeleteLaunchProfileMemberResponse
-> f DeleteLaunchProfileMemberResponse
deleteLaunchProfileMemberResponse_httpStatus = (DeleteLaunchProfileMemberResponse -> Int)
-> (DeleteLaunchProfileMemberResponse
-> Int -> DeleteLaunchProfileMemberResponse)
-> Lens
DeleteLaunchProfileMemberResponse
DeleteLaunchProfileMemberResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteLaunchProfileMemberResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteLaunchProfileMemberResponse' :: DeleteLaunchProfileMemberResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteLaunchProfileMemberResponse
s@DeleteLaunchProfileMemberResponse' {} Int
a -> DeleteLaunchProfileMemberResponse
s {$sel:httpStatus:DeleteLaunchProfileMemberResponse' :: Int
httpStatus = Int
a} :: DeleteLaunchProfileMemberResponse)
instance
Prelude.NFData
DeleteLaunchProfileMemberResponse