{-# 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.AppConfig.DeleteExtensionAssociation
(
DeleteExtensionAssociation (..),
newDeleteExtensionAssociation,
deleteExtensionAssociation_extensionAssociationId,
DeleteExtensionAssociationResponse (..),
newDeleteExtensionAssociationResponse,
)
where
import Amazonka.AppConfig.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DeleteExtensionAssociation = DeleteExtensionAssociation'
{
DeleteExtensionAssociation -> Text
extensionAssociationId :: Prelude.Text
}
deriving (DeleteExtensionAssociation -> DeleteExtensionAssociation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteExtensionAssociation -> DeleteExtensionAssociation -> Bool
$c/= :: DeleteExtensionAssociation -> DeleteExtensionAssociation -> Bool
== :: DeleteExtensionAssociation -> DeleteExtensionAssociation -> Bool
$c== :: DeleteExtensionAssociation -> DeleteExtensionAssociation -> Bool
Prelude.Eq, ReadPrec [DeleteExtensionAssociation]
ReadPrec DeleteExtensionAssociation
Int -> ReadS DeleteExtensionAssociation
ReadS [DeleteExtensionAssociation]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteExtensionAssociation]
$creadListPrec :: ReadPrec [DeleteExtensionAssociation]
readPrec :: ReadPrec DeleteExtensionAssociation
$creadPrec :: ReadPrec DeleteExtensionAssociation
readList :: ReadS [DeleteExtensionAssociation]
$creadList :: ReadS [DeleteExtensionAssociation]
readsPrec :: Int -> ReadS DeleteExtensionAssociation
$creadsPrec :: Int -> ReadS DeleteExtensionAssociation
Prelude.Read, Int -> DeleteExtensionAssociation -> ShowS
[DeleteExtensionAssociation] -> ShowS
DeleteExtensionAssociation -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteExtensionAssociation] -> ShowS
$cshowList :: [DeleteExtensionAssociation] -> ShowS
show :: DeleteExtensionAssociation -> String
$cshow :: DeleteExtensionAssociation -> String
showsPrec :: Int -> DeleteExtensionAssociation -> ShowS
$cshowsPrec :: Int -> DeleteExtensionAssociation -> ShowS
Prelude.Show, forall x.
Rep DeleteExtensionAssociation x -> DeleteExtensionAssociation
forall x.
DeleteExtensionAssociation -> Rep DeleteExtensionAssociation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteExtensionAssociation x -> DeleteExtensionAssociation
$cfrom :: forall x.
DeleteExtensionAssociation -> Rep DeleteExtensionAssociation x
Prelude.Generic)
newDeleteExtensionAssociation ::
Prelude.Text ->
DeleteExtensionAssociation
newDeleteExtensionAssociation :: Text -> DeleteExtensionAssociation
newDeleteExtensionAssociation
Text
pExtensionAssociationId_ =
DeleteExtensionAssociation'
{ $sel:extensionAssociationId:DeleteExtensionAssociation' :: Text
extensionAssociationId =
Text
pExtensionAssociationId_
}
deleteExtensionAssociation_extensionAssociationId :: Lens.Lens' DeleteExtensionAssociation Prelude.Text
deleteExtensionAssociation_extensionAssociationId :: Lens' DeleteExtensionAssociation Text
deleteExtensionAssociation_extensionAssociationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteExtensionAssociation' {Text
extensionAssociationId :: Text
$sel:extensionAssociationId:DeleteExtensionAssociation' :: DeleteExtensionAssociation -> Text
extensionAssociationId} -> Text
extensionAssociationId) (\s :: DeleteExtensionAssociation
s@DeleteExtensionAssociation' {} Text
a -> DeleteExtensionAssociation
s {$sel:extensionAssociationId:DeleteExtensionAssociation' :: Text
extensionAssociationId = Text
a} :: DeleteExtensionAssociation)
instance Core.AWSRequest DeleteExtensionAssociation where
type
AWSResponse DeleteExtensionAssociation =
DeleteExtensionAssociationResponse
request :: (Service -> Service)
-> DeleteExtensionAssociation -> Request DeleteExtensionAssociation
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.delete (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DeleteExtensionAssociation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteExtensionAssociation)))
response =
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
DeleteExtensionAssociationResponse
DeleteExtensionAssociationResponse'
instance Prelude.Hashable DeleteExtensionAssociation where
hashWithSalt :: Int -> DeleteExtensionAssociation -> Int
hashWithSalt Int
_salt DeleteExtensionAssociation' {Text
extensionAssociationId :: Text
$sel:extensionAssociationId:DeleteExtensionAssociation' :: DeleteExtensionAssociation -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
extensionAssociationId
instance Prelude.NFData DeleteExtensionAssociation where
rnf :: DeleteExtensionAssociation -> ()
rnf DeleteExtensionAssociation' {Text
extensionAssociationId :: Text
$sel:extensionAssociationId:DeleteExtensionAssociation' :: DeleteExtensionAssociation -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
extensionAssociationId
instance Data.ToHeaders DeleteExtensionAssociation where
toHeaders :: DeleteExtensionAssociation -> [Header]
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> [Header]
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath DeleteExtensionAssociation where
toPath :: DeleteExtensionAssociation -> ByteString
toPath DeleteExtensionAssociation' {Text
extensionAssociationId :: Text
$sel:extensionAssociationId:DeleteExtensionAssociation' :: DeleteExtensionAssociation -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/extensionassociations/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
extensionAssociationId
]
instance Data.ToQuery DeleteExtensionAssociation where
toQuery :: DeleteExtensionAssociation -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DeleteExtensionAssociationResponse = DeleteExtensionAssociationResponse'
{
}
deriving (DeleteExtensionAssociationResponse
-> DeleteExtensionAssociationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteExtensionAssociationResponse
-> DeleteExtensionAssociationResponse -> Bool
$c/= :: DeleteExtensionAssociationResponse
-> DeleteExtensionAssociationResponse -> Bool
== :: DeleteExtensionAssociationResponse
-> DeleteExtensionAssociationResponse -> Bool
$c== :: DeleteExtensionAssociationResponse
-> DeleteExtensionAssociationResponse -> Bool
Prelude.Eq, ReadPrec [DeleteExtensionAssociationResponse]
ReadPrec DeleteExtensionAssociationResponse
Int -> ReadS DeleteExtensionAssociationResponse
ReadS [DeleteExtensionAssociationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteExtensionAssociationResponse]
$creadListPrec :: ReadPrec [DeleteExtensionAssociationResponse]
readPrec :: ReadPrec DeleteExtensionAssociationResponse
$creadPrec :: ReadPrec DeleteExtensionAssociationResponse
readList :: ReadS [DeleteExtensionAssociationResponse]
$creadList :: ReadS [DeleteExtensionAssociationResponse]
readsPrec :: Int -> ReadS DeleteExtensionAssociationResponse
$creadsPrec :: Int -> ReadS DeleteExtensionAssociationResponse
Prelude.Read, Int -> DeleteExtensionAssociationResponse -> ShowS
[DeleteExtensionAssociationResponse] -> ShowS
DeleteExtensionAssociationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteExtensionAssociationResponse] -> ShowS
$cshowList :: [DeleteExtensionAssociationResponse] -> ShowS
show :: DeleteExtensionAssociationResponse -> String
$cshow :: DeleteExtensionAssociationResponse -> String
showsPrec :: Int -> DeleteExtensionAssociationResponse -> ShowS
$cshowsPrec :: Int -> DeleteExtensionAssociationResponse -> ShowS
Prelude.Show, forall x.
Rep DeleteExtensionAssociationResponse x
-> DeleteExtensionAssociationResponse
forall x.
DeleteExtensionAssociationResponse
-> Rep DeleteExtensionAssociationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteExtensionAssociationResponse x
-> DeleteExtensionAssociationResponse
$cfrom :: forall x.
DeleteExtensionAssociationResponse
-> Rep DeleteExtensionAssociationResponse x
Prelude.Generic)
newDeleteExtensionAssociationResponse ::
DeleteExtensionAssociationResponse
newDeleteExtensionAssociationResponse :: DeleteExtensionAssociationResponse
newDeleteExtensionAssociationResponse =
DeleteExtensionAssociationResponse
DeleteExtensionAssociationResponse'
instance
Prelude.NFData
DeleteExtensionAssociationResponse
where
rnf :: DeleteExtensionAssociationResponse -> ()
rnf DeleteExtensionAssociationResponse
_ = ()