{-# 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.LicenseManager.DeleteLicenseManagerReportGenerator
(
DeleteLicenseManagerReportGenerator (..),
newDeleteLicenseManagerReportGenerator,
deleteLicenseManagerReportGenerator_licenseManagerReportGeneratorArn,
DeleteLicenseManagerReportGeneratorResponse (..),
newDeleteLicenseManagerReportGeneratorResponse,
deleteLicenseManagerReportGeneratorResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LicenseManager.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DeleteLicenseManagerReportGenerator = DeleteLicenseManagerReportGenerator'
{
DeleteLicenseManagerReportGenerator -> Text
licenseManagerReportGeneratorArn :: Prelude.Text
}
deriving (DeleteLicenseManagerReportGenerator
-> DeleteLicenseManagerReportGenerator -> Bool
(DeleteLicenseManagerReportGenerator
-> DeleteLicenseManagerReportGenerator -> Bool)
-> (DeleteLicenseManagerReportGenerator
-> DeleteLicenseManagerReportGenerator -> Bool)
-> Eq DeleteLicenseManagerReportGenerator
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteLicenseManagerReportGenerator
-> DeleteLicenseManagerReportGenerator -> Bool
$c/= :: DeleteLicenseManagerReportGenerator
-> DeleteLicenseManagerReportGenerator -> Bool
== :: DeleteLicenseManagerReportGenerator
-> DeleteLicenseManagerReportGenerator -> Bool
$c== :: DeleteLicenseManagerReportGenerator
-> DeleteLicenseManagerReportGenerator -> Bool
Prelude.Eq, ReadPrec [DeleteLicenseManagerReportGenerator]
ReadPrec DeleteLicenseManagerReportGenerator
Int -> ReadS DeleteLicenseManagerReportGenerator
ReadS [DeleteLicenseManagerReportGenerator]
(Int -> ReadS DeleteLicenseManagerReportGenerator)
-> ReadS [DeleteLicenseManagerReportGenerator]
-> ReadPrec DeleteLicenseManagerReportGenerator
-> ReadPrec [DeleteLicenseManagerReportGenerator]
-> Read DeleteLicenseManagerReportGenerator
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteLicenseManagerReportGenerator]
$creadListPrec :: ReadPrec [DeleteLicenseManagerReportGenerator]
readPrec :: ReadPrec DeleteLicenseManagerReportGenerator
$creadPrec :: ReadPrec DeleteLicenseManagerReportGenerator
readList :: ReadS [DeleteLicenseManagerReportGenerator]
$creadList :: ReadS [DeleteLicenseManagerReportGenerator]
readsPrec :: Int -> ReadS DeleteLicenseManagerReportGenerator
$creadsPrec :: Int -> ReadS DeleteLicenseManagerReportGenerator
Prelude.Read, Int -> DeleteLicenseManagerReportGenerator -> ShowS
[DeleteLicenseManagerReportGenerator] -> ShowS
DeleteLicenseManagerReportGenerator -> String
(Int -> DeleteLicenseManagerReportGenerator -> ShowS)
-> (DeleteLicenseManagerReportGenerator -> String)
-> ([DeleteLicenseManagerReportGenerator] -> ShowS)
-> Show DeleteLicenseManagerReportGenerator
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteLicenseManagerReportGenerator] -> ShowS
$cshowList :: [DeleteLicenseManagerReportGenerator] -> ShowS
show :: DeleteLicenseManagerReportGenerator -> String
$cshow :: DeleteLicenseManagerReportGenerator -> String
showsPrec :: Int -> DeleteLicenseManagerReportGenerator -> ShowS
$cshowsPrec :: Int -> DeleteLicenseManagerReportGenerator -> ShowS
Prelude.Show, (forall x.
DeleteLicenseManagerReportGenerator
-> Rep DeleteLicenseManagerReportGenerator x)
-> (forall x.
Rep DeleteLicenseManagerReportGenerator x
-> DeleteLicenseManagerReportGenerator)
-> Generic DeleteLicenseManagerReportGenerator
forall x.
Rep DeleteLicenseManagerReportGenerator x
-> DeleteLicenseManagerReportGenerator
forall x.
DeleteLicenseManagerReportGenerator
-> Rep DeleteLicenseManagerReportGenerator x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteLicenseManagerReportGenerator x
-> DeleteLicenseManagerReportGenerator
$cfrom :: forall x.
DeleteLicenseManagerReportGenerator
-> Rep DeleteLicenseManagerReportGenerator x
Prelude.Generic)
newDeleteLicenseManagerReportGenerator ::
Prelude.Text ->
DeleteLicenseManagerReportGenerator
newDeleteLicenseManagerReportGenerator :: Text -> DeleteLicenseManagerReportGenerator
newDeleteLicenseManagerReportGenerator
Text
pLicenseManagerReportGeneratorArn_ =
DeleteLicenseManagerReportGenerator' :: Text -> DeleteLicenseManagerReportGenerator
DeleteLicenseManagerReportGenerator'
{ $sel:licenseManagerReportGeneratorArn:DeleteLicenseManagerReportGenerator' :: Text
licenseManagerReportGeneratorArn =
Text
pLicenseManagerReportGeneratorArn_
}
deleteLicenseManagerReportGenerator_licenseManagerReportGeneratorArn :: Lens.Lens' DeleteLicenseManagerReportGenerator Prelude.Text
deleteLicenseManagerReportGenerator_licenseManagerReportGeneratorArn :: (Text -> f Text)
-> DeleteLicenseManagerReportGenerator
-> f DeleteLicenseManagerReportGenerator
deleteLicenseManagerReportGenerator_licenseManagerReportGeneratorArn = (DeleteLicenseManagerReportGenerator -> Text)
-> (DeleteLicenseManagerReportGenerator
-> Text -> DeleteLicenseManagerReportGenerator)
-> Lens
DeleteLicenseManagerReportGenerator
DeleteLicenseManagerReportGenerator
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteLicenseManagerReportGenerator' {Text
licenseManagerReportGeneratorArn :: Text
$sel:licenseManagerReportGeneratorArn:DeleteLicenseManagerReportGenerator' :: DeleteLicenseManagerReportGenerator -> Text
licenseManagerReportGeneratorArn} -> Text
licenseManagerReportGeneratorArn) (\s :: DeleteLicenseManagerReportGenerator
s@DeleteLicenseManagerReportGenerator' {} Text
a -> DeleteLicenseManagerReportGenerator
s {$sel:licenseManagerReportGeneratorArn:DeleteLicenseManagerReportGenerator' :: Text
licenseManagerReportGeneratorArn = Text
a} :: DeleteLicenseManagerReportGenerator)
instance
Core.AWSRequest
DeleteLicenseManagerReportGenerator
where
type
AWSResponse DeleteLicenseManagerReportGenerator =
DeleteLicenseManagerReportGeneratorResponse
request :: DeleteLicenseManagerReportGenerator
-> Request DeleteLicenseManagerReportGenerator
request = Service
-> DeleteLicenseManagerReportGenerator
-> Request DeleteLicenseManagerReportGenerator
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteLicenseManagerReportGenerator
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeleteLicenseManagerReportGenerator)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse DeleteLicenseManagerReportGenerator))
-> Logger
-> Service
-> Proxy DeleteLicenseManagerReportGenerator
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeleteLicenseManagerReportGenerator)))
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 -> DeleteLicenseManagerReportGeneratorResponse
DeleteLicenseManagerReportGeneratorResponse'
(Int -> DeleteLicenseManagerReportGeneratorResponse)
-> Either String Int
-> Either String DeleteLicenseManagerReportGeneratorResponse
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
DeleteLicenseManagerReportGenerator
instance
Prelude.NFData
DeleteLicenseManagerReportGenerator
instance
Core.ToHeaders
DeleteLicenseManagerReportGenerator
where
toHeaders :: DeleteLicenseManagerReportGenerator -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DeleteLicenseManagerReportGenerator -> 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
"AWSLicenseManager.DeleteLicenseManagerReportGenerator" ::
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
DeleteLicenseManagerReportGenerator
where
toJSON :: DeleteLicenseManagerReportGenerator -> Value
toJSON DeleteLicenseManagerReportGenerator' {Text
licenseManagerReportGeneratorArn :: Text
$sel:licenseManagerReportGeneratorArn:DeleteLicenseManagerReportGenerator' :: DeleteLicenseManagerReportGenerator -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"LicenseManagerReportGeneratorArn"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
licenseManagerReportGeneratorArn
)
]
)
instance
Core.ToPath
DeleteLicenseManagerReportGenerator
where
toPath :: DeleteLicenseManagerReportGenerator -> ByteString
toPath = ByteString -> DeleteLicenseManagerReportGenerator -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DeleteLicenseManagerReportGenerator
where
toQuery :: DeleteLicenseManagerReportGenerator -> QueryString
toQuery = QueryString -> DeleteLicenseManagerReportGenerator -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteLicenseManagerReportGeneratorResponse = DeleteLicenseManagerReportGeneratorResponse'
{
DeleteLicenseManagerReportGeneratorResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteLicenseManagerReportGeneratorResponse
-> DeleteLicenseManagerReportGeneratorResponse -> Bool
(DeleteLicenseManagerReportGeneratorResponse
-> DeleteLicenseManagerReportGeneratorResponse -> Bool)
-> (DeleteLicenseManagerReportGeneratorResponse
-> DeleteLicenseManagerReportGeneratorResponse -> Bool)
-> Eq DeleteLicenseManagerReportGeneratorResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteLicenseManagerReportGeneratorResponse
-> DeleteLicenseManagerReportGeneratorResponse -> Bool
$c/= :: DeleteLicenseManagerReportGeneratorResponse
-> DeleteLicenseManagerReportGeneratorResponse -> Bool
== :: DeleteLicenseManagerReportGeneratorResponse
-> DeleteLicenseManagerReportGeneratorResponse -> Bool
$c== :: DeleteLicenseManagerReportGeneratorResponse
-> DeleteLicenseManagerReportGeneratorResponse -> Bool
Prelude.Eq, ReadPrec [DeleteLicenseManagerReportGeneratorResponse]
ReadPrec DeleteLicenseManagerReportGeneratorResponse
Int -> ReadS DeleteLicenseManagerReportGeneratorResponse
ReadS [DeleteLicenseManagerReportGeneratorResponse]
(Int -> ReadS DeleteLicenseManagerReportGeneratorResponse)
-> ReadS [DeleteLicenseManagerReportGeneratorResponse]
-> ReadPrec DeleteLicenseManagerReportGeneratorResponse
-> ReadPrec [DeleteLicenseManagerReportGeneratorResponse]
-> Read DeleteLicenseManagerReportGeneratorResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteLicenseManagerReportGeneratorResponse]
$creadListPrec :: ReadPrec [DeleteLicenseManagerReportGeneratorResponse]
readPrec :: ReadPrec DeleteLicenseManagerReportGeneratorResponse
$creadPrec :: ReadPrec DeleteLicenseManagerReportGeneratorResponse
readList :: ReadS [DeleteLicenseManagerReportGeneratorResponse]
$creadList :: ReadS [DeleteLicenseManagerReportGeneratorResponse]
readsPrec :: Int -> ReadS DeleteLicenseManagerReportGeneratorResponse
$creadsPrec :: Int -> ReadS DeleteLicenseManagerReportGeneratorResponse
Prelude.Read, Int -> DeleteLicenseManagerReportGeneratorResponse -> ShowS
[DeleteLicenseManagerReportGeneratorResponse] -> ShowS
DeleteLicenseManagerReportGeneratorResponse -> String
(Int -> DeleteLicenseManagerReportGeneratorResponse -> ShowS)
-> (DeleteLicenseManagerReportGeneratorResponse -> String)
-> ([DeleteLicenseManagerReportGeneratorResponse] -> ShowS)
-> Show DeleteLicenseManagerReportGeneratorResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteLicenseManagerReportGeneratorResponse] -> ShowS
$cshowList :: [DeleteLicenseManagerReportGeneratorResponse] -> ShowS
show :: DeleteLicenseManagerReportGeneratorResponse -> String
$cshow :: DeleteLicenseManagerReportGeneratorResponse -> String
showsPrec :: Int -> DeleteLicenseManagerReportGeneratorResponse -> ShowS
$cshowsPrec :: Int -> DeleteLicenseManagerReportGeneratorResponse -> ShowS
Prelude.Show, (forall x.
DeleteLicenseManagerReportGeneratorResponse
-> Rep DeleteLicenseManagerReportGeneratorResponse x)
-> (forall x.
Rep DeleteLicenseManagerReportGeneratorResponse x
-> DeleteLicenseManagerReportGeneratorResponse)
-> Generic DeleteLicenseManagerReportGeneratorResponse
forall x.
Rep DeleteLicenseManagerReportGeneratorResponse x
-> DeleteLicenseManagerReportGeneratorResponse
forall x.
DeleteLicenseManagerReportGeneratorResponse
-> Rep DeleteLicenseManagerReportGeneratorResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteLicenseManagerReportGeneratorResponse x
-> DeleteLicenseManagerReportGeneratorResponse
$cfrom :: forall x.
DeleteLicenseManagerReportGeneratorResponse
-> Rep DeleteLicenseManagerReportGeneratorResponse x
Prelude.Generic)
newDeleteLicenseManagerReportGeneratorResponse ::
Prelude.Int ->
DeleteLicenseManagerReportGeneratorResponse
newDeleteLicenseManagerReportGeneratorResponse :: Int -> DeleteLicenseManagerReportGeneratorResponse
newDeleteLicenseManagerReportGeneratorResponse
Int
pHttpStatus_ =
DeleteLicenseManagerReportGeneratorResponse' :: Int -> DeleteLicenseManagerReportGeneratorResponse
DeleteLicenseManagerReportGeneratorResponse'
{ $sel:httpStatus:DeleteLicenseManagerReportGeneratorResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
deleteLicenseManagerReportGeneratorResponse_httpStatus :: Lens.Lens' DeleteLicenseManagerReportGeneratorResponse Prelude.Int
deleteLicenseManagerReportGeneratorResponse_httpStatus :: (Int -> f Int)
-> DeleteLicenseManagerReportGeneratorResponse
-> f DeleteLicenseManagerReportGeneratorResponse
deleteLicenseManagerReportGeneratorResponse_httpStatus = (DeleteLicenseManagerReportGeneratorResponse -> Int)
-> (DeleteLicenseManagerReportGeneratorResponse
-> Int -> DeleteLicenseManagerReportGeneratorResponse)
-> Lens
DeleteLicenseManagerReportGeneratorResponse
DeleteLicenseManagerReportGeneratorResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteLicenseManagerReportGeneratorResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteLicenseManagerReportGeneratorResponse' :: DeleteLicenseManagerReportGeneratorResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteLicenseManagerReportGeneratorResponse
s@DeleteLicenseManagerReportGeneratorResponse' {} Int
a -> DeleteLicenseManagerReportGeneratorResponse
s {$sel:httpStatus:DeleteLicenseManagerReportGeneratorResponse' :: Int
httpStatus = Int
a} :: DeleteLicenseManagerReportGeneratorResponse)
instance
Prelude.NFData
DeleteLicenseManagerReportGeneratorResponse