{-# 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.CloudFront.DeleteFieldLevelEncryptionConfig
(
DeleteFieldLevelEncryptionConfig (..),
newDeleteFieldLevelEncryptionConfig,
deleteFieldLevelEncryptionConfig_ifMatch,
deleteFieldLevelEncryptionConfig_id,
DeleteFieldLevelEncryptionConfigResponse (..),
newDeleteFieldLevelEncryptionConfigResponse,
)
where
import Amazonka.CloudFront.Types
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
data DeleteFieldLevelEncryptionConfig = DeleteFieldLevelEncryptionConfig'
{
DeleteFieldLevelEncryptionConfig -> Maybe Text
ifMatch :: Prelude.Maybe Prelude.Text,
DeleteFieldLevelEncryptionConfig -> Text
id :: Prelude.Text
}
deriving (DeleteFieldLevelEncryptionConfig
-> DeleteFieldLevelEncryptionConfig -> Bool
(DeleteFieldLevelEncryptionConfig
-> DeleteFieldLevelEncryptionConfig -> Bool)
-> (DeleteFieldLevelEncryptionConfig
-> DeleteFieldLevelEncryptionConfig -> Bool)
-> Eq DeleteFieldLevelEncryptionConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteFieldLevelEncryptionConfig
-> DeleteFieldLevelEncryptionConfig -> Bool
$c/= :: DeleteFieldLevelEncryptionConfig
-> DeleteFieldLevelEncryptionConfig -> Bool
== :: DeleteFieldLevelEncryptionConfig
-> DeleteFieldLevelEncryptionConfig -> Bool
$c== :: DeleteFieldLevelEncryptionConfig
-> DeleteFieldLevelEncryptionConfig -> Bool
Prelude.Eq, ReadPrec [DeleteFieldLevelEncryptionConfig]
ReadPrec DeleteFieldLevelEncryptionConfig
Int -> ReadS DeleteFieldLevelEncryptionConfig
ReadS [DeleteFieldLevelEncryptionConfig]
(Int -> ReadS DeleteFieldLevelEncryptionConfig)
-> ReadS [DeleteFieldLevelEncryptionConfig]
-> ReadPrec DeleteFieldLevelEncryptionConfig
-> ReadPrec [DeleteFieldLevelEncryptionConfig]
-> Read DeleteFieldLevelEncryptionConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteFieldLevelEncryptionConfig]
$creadListPrec :: ReadPrec [DeleteFieldLevelEncryptionConfig]
readPrec :: ReadPrec DeleteFieldLevelEncryptionConfig
$creadPrec :: ReadPrec DeleteFieldLevelEncryptionConfig
readList :: ReadS [DeleteFieldLevelEncryptionConfig]
$creadList :: ReadS [DeleteFieldLevelEncryptionConfig]
readsPrec :: Int -> ReadS DeleteFieldLevelEncryptionConfig
$creadsPrec :: Int -> ReadS DeleteFieldLevelEncryptionConfig
Prelude.Read, Int -> DeleteFieldLevelEncryptionConfig -> ShowS
[DeleteFieldLevelEncryptionConfig] -> ShowS
DeleteFieldLevelEncryptionConfig -> String
(Int -> DeleteFieldLevelEncryptionConfig -> ShowS)
-> (DeleteFieldLevelEncryptionConfig -> String)
-> ([DeleteFieldLevelEncryptionConfig] -> ShowS)
-> Show DeleteFieldLevelEncryptionConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteFieldLevelEncryptionConfig] -> ShowS
$cshowList :: [DeleteFieldLevelEncryptionConfig] -> ShowS
show :: DeleteFieldLevelEncryptionConfig -> String
$cshow :: DeleteFieldLevelEncryptionConfig -> String
showsPrec :: Int -> DeleteFieldLevelEncryptionConfig -> ShowS
$cshowsPrec :: Int -> DeleteFieldLevelEncryptionConfig -> ShowS
Prelude.Show, (forall x.
DeleteFieldLevelEncryptionConfig
-> Rep DeleteFieldLevelEncryptionConfig x)
-> (forall x.
Rep DeleteFieldLevelEncryptionConfig x
-> DeleteFieldLevelEncryptionConfig)
-> Generic DeleteFieldLevelEncryptionConfig
forall x.
Rep DeleteFieldLevelEncryptionConfig x
-> DeleteFieldLevelEncryptionConfig
forall x.
DeleteFieldLevelEncryptionConfig
-> Rep DeleteFieldLevelEncryptionConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteFieldLevelEncryptionConfig x
-> DeleteFieldLevelEncryptionConfig
$cfrom :: forall x.
DeleteFieldLevelEncryptionConfig
-> Rep DeleteFieldLevelEncryptionConfig x
Prelude.Generic)
newDeleteFieldLevelEncryptionConfig ::
Prelude.Text ->
DeleteFieldLevelEncryptionConfig
newDeleteFieldLevelEncryptionConfig :: Text -> DeleteFieldLevelEncryptionConfig
newDeleteFieldLevelEncryptionConfig Text
pId_ =
DeleteFieldLevelEncryptionConfig' :: Maybe Text -> Text -> DeleteFieldLevelEncryptionConfig
DeleteFieldLevelEncryptionConfig'
{ $sel:ifMatch:DeleteFieldLevelEncryptionConfig' :: Maybe Text
ifMatch =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:DeleteFieldLevelEncryptionConfig' :: Text
id = Text
pId_
}
deleteFieldLevelEncryptionConfig_ifMatch :: Lens.Lens' DeleteFieldLevelEncryptionConfig (Prelude.Maybe Prelude.Text)
deleteFieldLevelEncryptionConfig_ifMatch :: (Maybe Text -> f (Maybe Text))
-> DeleteFieldLevelEncryptionConfig
-> f DeleteFieldLevelEncryptionConfig
deleteFieldLevelEncryptionConfig_ifMatch = (DeleteFieldLevelEncryptionConfig -> Maybe Text)
-> (DeleteFieldLevelEncryptionConfig
-> Maybe Text -> DeleteFieldLevelEncryptionConfig)
-> Lens
DeleteFieldLevelEncryptionConfig
DeleteFieldLevelEncryptionConfig
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFieldLevelEncryptionConfig' {Maybe Text
ifMatch :: Maybe Text
$sel:ifMatch:DeleteFieldLevelEncryptionConfig' :: DeleteFieldLevelEncryptionConfig -> Maybe Text
ifMatch} -> Maybe Text
ifMatch) (\s :: DeleteFieldLevelEncryptionConfig
s@DeleteFieldLevelEncryptionConfig' {} Maybe Text
a -> DeleteFieldLevelEncryptionConfig
s {$sel:ifMatch:DeleteFieldLevelEncryptionConfig' :: Maybe Text
ifMatch = Maybe Text
a} :: DeleteFieldLevelEncryptionConfig)
deleteFieldLevelEncryptionConfig_id :: Lens.Lens' DeleteFieldLevelEncryptionConfig Prelude.Text
deleteFieldLevelEncryptionConfig_id :: (Text -> f Text)
-> DeleteFieldLevelEncryptionConfig
-> f DeleteFieldLevelEncryptionConfig
deleteFieldLevelEncryptionConfig_id = (DeleteFieldLevelEncryptionConfig -> Text)
-> (DeleteFieldLevelEncryptionConfig
-> Text -> DeleteFieldLevelEncryptionConfig)
-> Lens
DeleteFieldLevelEncryptionConfig
DeleteFieldLevelEncryptionConfig
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFieldLevelEncryptionConfig' {Text
id :: Text
$sel:id:DeleteFieldLevelEncryptionConfig' :: DeleteFieldLevelEncryptionConfig -> Text
id} -> Text
id) (\s :: DeleteFieldLevelEncryptionConfig
s@DeleteFieldLevelEncryptionConfig' {} Text
a -> DeleteFieldLevelEncryptionConfig
s {$sel:id:DeleteFieldLevelEncryptionConfig' :: Text
id = Text
a} :: DeleteFieldLevelEncryptionConfig)
instance
Core.AWSRequest
DeleteFieldLevelEncryptionConfig
where
type
AWSResponse DeleteFieldLevelEncryptionConfig =
DeleteFieldLevelEncryptionConfigResponse
request :: DeleteFieldLevelEncryptionConfig
-> Request DeleteFieldLevelEncryptionConfig
request = Service
-> DeleteFieldLevelEncryptionConfig
-> Request DeleteFieldLevelEncryptionConfig
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteFieldLevelEncryptionConfig
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeleteFieldLevelEncryptionConfig)))
response =
AWSResponse DeleteFieldLevelEncryptionConfig
-> Logger
-> Service
-> Proxy DeleteFieldLevelEncryptionConfig
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeleteFieldLevelEncryptionConfig)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeleteFieldLevelEncryptionConfig
DeleteFieldLevelEncryptionConfigResponse
DeleteFieldLevelEncryptionConfigResponse'
instance
Prelude.Hashable
DeleteFieldLevelEncryptionConfig
instance
Prelude.NFData
DeleteFieldLevelEncryptionConfig
instance
Core.ToHeaders
DeleteFieldLevelEncryptionConfig
where
toHeaders :: DeleteFieldLevelEncryptionConfig -> [Header]
toHeaders DeleteFieldLevelEncryptionConfig' {Maybe Text
Text
id :: Text
ifMatch :: Maybe Text
$sel:id:DeleteFieldLevelEncryptionConfig' :: DeleteFieldLevelEncryptionConfig -> Text
$sel:ifMatch:DeleteFieldLevelEncryptionConfig' :: DeleteFieldLevelEncryptionConfig -> Maybe Text
..} =
[[Header]] -> [Header]
forall a. Monoid a => [a] -> a
Prelude.mconcat [HeaderName
"If-Match" HeaderName -> Maybe Text -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# Maybe Text
ifMatch]
instance Core.ToPath DeleteFieldLevelEncryptionConfig where
toPath :: DeleteFieldLevelEncryptionConfig -> ByteString
toPath DeleteFieldLevelEncryptionConfig' {Maybe Text
Text
id :: Text
ifMatch :: Maybe Text
$sel:id:DeleteFieldLevelEncryptionConfig' :: DeleteFieldLevelEncryptionConfig -> Text
$sel:ifMatch:DeleteFieldLevelEncryptionConfig' :: DeleteFieldLevelEncryptionConfig -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/2020-05-31/field-level-encryption/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id]
instance
Core.ToQuery
DeleteFieldLevelEncryptionConfig
where
toQuery :: DeleteFieldLevelEncryptionConfig -> QueryString
toQuery = QueryString -> DeleteFieldLevelEncryptionConfig -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteFieldLevelEncryptionConfigResponse = DeleteFieldLevelEncryptionConfigResponse'
{
}
deriving (DeleteFieldLevelEncryptionConfigResponse
-> DeleteFieldLevelEncryptionConfigResponse -> Bool
(DeleteFieldLevelEncryptionConfigResponse
-> DeleteFieldLevelEncryptionConfigResponse -> Bool)
-> (DeleteFieldLevelEncryptionConfigResponse
-> DeleteFieldLevelEncryptionConfigResponse -> Bool)
-> Eq DeleteFieldLevelEncryptionConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteFieldLevelEncryptionConfigResponse
-> DeleteFieldLevelEncryptionConfigResponse -> Bool
$c/= :: DeleteFieldLevelEncryptionConfigResponse
-> DeleteFieldLevelEncryptionConfigResponse -> Bool
== :: DeleteFieldLevelEncryptionConfigResponse
-> DeleteFieldLevelEncryptionConfigResponse -> Bool
$c== :: DeleteFieldLevelEncryptionConfigResponse
-> DeleteFieldLevelEncryptionConfigResponse -> Bool
Prelude.Eq, ReadPrec [DeleteFieldLevelEncryptionConfigResponse]
ReadPrec DeleteFieldLevelEncryptionConfigResponse
Int -> ReadS DeleteFieldLevelEncryptionConfigResponse
ReadS [DeleteFieldLevelEncryptionConfigResponse]
(Int -> ReadS DeleteFieldLevelEncryptionConfigResponse)
-> ReadS [DeleteFieldLevelEncryptionConfigResponse]
-> ReadPrec DeleteFieldLevelEncryptionConfigResponse
-> ReadPrec [DeleteFieldLevelEncryptionConfigResponse]
-> Read DeleteFieldLevelEncryptionConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteFieldLevelEncryptionConfigResponse]
$creadListPrec :: ReadPrec [DeleteFieldLevelEncryptionConfigResponse]
readPrec :: ReadPrec DeleteFieldLevelEncryptionConfigResponse
$creadPrec :: ReadPrec DeleteFieldLevelEncryptionConfigResponse
readList :: ReadS [DeleteFieldLevelEncryptionConfigResponse]
$creadList :: ReadS [DeleteFieldLevelEncryptionConfigResponse]
readsPrec :: Int -> ReadS DeleteFieldLevelEncryptionConfigResponse
$creadsPrec :: Int -> ReadS DeleteFieldLevelEncryptionConfigResponse
Prelude.Read, Int -> DeleteFieldLevelEncryptionConfigResponse -> ShowS
[DeleteFieldLevelEncryptionConfigResponse] -> ShowS
DeleteFieldLevelEncryptionConfigResponse -> String
(Int -> DeleteFieldLevelEncryptionConfigResponse -> ShowS)
-> (DeleteFieldLevelEncryptionConfigResponse -> String)
-> ([DeleteFieldLevelEncryptionConfigResponse] -> ShowS)
-> Show DeleteFieldLevelEncryptionConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteFieldLevelEncryptionConfigResponse] -> ShowS
$cshowList :: [DeleteFieldLevelEncryptionConfigResponse] -> ShowS
show :: DeleteFieldLevelEncryptionConfigResponse -> String
$cshow :: DeleteFieldLevelEncryptionConfigResponse -> String
showsPrec :: Int -> DeleteFieldLevelEncryptionConfigResponse -> ShowS
$cshowsPrec :: Int -> DeleteFieldLevelEncryptionConfigResponse -> ShowS
Prelude.Show, (forall x.
DeleteFieldLevelEncryptionConfigResponse
-> Rep DeleteFieldLevelEncryptionConfigResponse x)
-> (forall x.
Rep DeleteFieldLevelEncryptionConfigResponse x
-> DeleteFieldLevelEncryptionConfigResponse)
-> Generic DeleteFieldLevelEncryptionConfigResponse
forall x.
Rep DeleteFieldLevelEncryptionConfigResponse x
-> DeleteFieldLevelEncryptionConfigResponse
forall x.
DeleteFieldLevelEncryptionConfigResponse
-> Rep DeleteFieldLevelEncryptionConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteFieldLevelEncryptionConfigResponse x
-> DeleteFieldLevelEncryptionConfigResponse
$cfrom :: forall x.
DeleteFieldLevelEncryptionConfigResponse
-> Rep DeleteFieldLevelEncryptionConfigResponse x
Prelude.Generic)
newDeleteFieldLevelEncryptionConfigResponse ::
DeleteFieldLevelEncryptionConfigResponse
newDeleteFieldLevelEncryptionConfigResponse :: DeleteFieldLevelEncryptionConfigResponse
newDeleteFieldLevelEncryptionConfigResponse =
DeleteFieldLevelEncryptionConfigResponse
DeleteFieldLevelEncryptionConfigResponse'
instance
Prelude.NFData
DeleteFieldLevelEncryptionConfigResponse