{-# 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.UpdateCloudFrontOriginAccessIdentity
(
UpdateCloudFrontOriginAccessIdentity (..),
newUpdateCloudFrontOriginAccessIdentity,
updateCloudFrontOriginAccessIdentity_ifMatch,
updateCloudFrontOriginAccessIdentity_cloudFrontOriginAccessIdentityConfig,
updateCloudFrontOriginAccessIdentity_id,
UpdateCloudFrontOriginAccessIdentityResponse (..),
newUpdateCloudFrontOriginAccessIdentityResponse,
updateCloudFrontOriginAccessIdentityResponse_eTag,
updateCloudFrontOriginAccessIdentityResponse_cloudFrontOriginAccessIdentity,
updateCloudFrontOriginAccessIdentityResponse_httpStatus,
)
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 UpdateCloudFrontOriginAccessIdentity = UpdateCloudFrontOriginAccessIdentity'
{
UpdateCloudFrontOriginAccessIdentity -> Maybe Text
ifMatch :: Prelude.Maybe Prelude.Text,
UpdateCloudFrontOriginAccessIdentity
-> CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig :: CloudFrontOriginAccessIdentityConfig,
UpdateCloudFrontOriginAccessIdentity -> Text
id :: Prelude.Text
}
deriving (UpdateCloudFrontOriginAccessIdentity
-> UpdateCloudFrontOriginAccessIdentity -> Bool
(UpdateCloudFrontOriginAccessIdentity
-> UpdateCloudFrontOriginAccessIdentity -> Bool)
-> (UpdateCloudFrontOriginAccessIdentity
-> UpdateCloudFrontOriginAccessIdentity -> Bool)
-> Eq UpdateCloudFrontOriginAccessIdentity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCloudFrontOriginAccessIdentity
-> UpdateCloudFrontOriginAccessIdentity -> Bool
$c/= :: UpdateCloudFrontOriginAccessIdentity
-> UpdateCloudFrontOriginAccessIdentity -> Bool
== :: UpdateCloudFrontOriginAccessIdentity
-> UpdateCloudFrontOriginAccessIdentity -> Bool
$c== :: UpdateCloudFrontOriginAccessIdentity
-> UpdateCloudFrontOriginAccessIdentity -> Bool
Prelude.Eq, ReadPrec [UpdateCloudFrontOriginAccessIdentity]
ReadPrec UpdateCloudFrontOriginAccessIdentity
Int -> ReadS UpdateCloudFrontOriginAccessIdentity
ReadS [UpdateCloudFrontOriginAccessIdentity]
(Int -> ReadS UpdateCloudFrontOriginAccessIdentity)
-> ReadS [UpdateCloudFrontOriginAccessIdentity]
-> ReadPrec UpdateCloudFrontOriginAccessIdentity
-> ReadPrec [UpdateCloudFrontOriginAccessIdentity]
-> Read UpdateCloudFrontOriginAccessIdentity
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCloudFrontOriginAccessIdentity]
$creadListPrec :: ReadPrec [UpdateCloudFrontOriginAccessIdentity]
readPrec :: ReadPrec UpdateCloudFrontOriginAccessIdentity
$creadPrec :: ReadPrec UpdateCloudFrontOriginAccessIdentity
readList :: ReadS [UpdateCloudFrontOriginAccessIdentity]
$creadList :: ReadS [UpdateCloudFrontOriginAccessIdentity]
readsPrec :: Int -> ReadS UpdateCloudFrontOriginAccessIdentity
$creadsPrec :: Int -> ReadS UpdateCloudFrontOriginAccessIdentity
Prelude.Read, Int -> UpdateCloudFrontOriginAccessIdentity -> ShowS
[UpdateCloudFrontOriginAccessIdentity] -> ShowS
UpdateCloudFrontOriginAccessIdentity -> String
(Int -> UpdateCloudFrontOriginAccessIdentity -> ShowS)
-> (UpdateCloudFrontOriginAccessIdentity -> String)
-> ([UpdateCloudFrontOriginAccessIdentity] -> ShowS)
-> Show UpdateCloudFrontOriginAccessIdentity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCloudFrontOriginAccessIdentity] -> ShowS
$cshowList :: [UpdateCloudFrontOriginAccessIdentity] -> ShowS
show :: UpdateCloudFrontOriginAccessIdentity -> String
$cshow :: UpdateCloudFrontOriginAccessIdentity -> String
showsPrec :: Int -> UpdateCloudFrontOriginAccessIdentity -> ShowS
$cshowsPrec :: Int -> UpdateCloudFrontOriginAccessIdentity -> ShowS
Prelude.Show, (forall x.
UpdateCloudFrontOriginAccessIdentity
-> Rep UpdateCloudFrontOriginAccessIdentity x)
-> (forall x.
Rep UpdateCloudFrontOriginAccessIdentity x
-> UpdateCloudFrontOriginAccessIdentity)
-> Generic UpdateCloudFrontOriginAccessIdentity
forall x.
Rep UpdateCloudFrontOriginAccessIdentity x
-> UpdateCloudFrontOriginAccessIdentity
forall x.
UpdateCloudFrontOriginAccessIdentity
-> Rep UpdateCloudFrontOriginAccessIdentity x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCloudFrontOriginAccessIdentity x
-> UpdateCloudFrontOriginAccessIdentity
$cfrom :: forall x.
UpdateCloudFrontOriginAccessIdentity
-> Rep UpdateCloudFrontOriginAccessIdentity x
Prelude.Generic)
newUpdateCloudFrontOriginAccessIdentity ::
CloudFrontOriginAccessIdentityConfig ->
Prelude.Text ->
UpdateCloudFrontOriginAccessIdentity
newUpdateCloudFrontOriginAccessIdentity :: CloudFrontOriginAccessIdentityConfig
-> Text -> UpdateCloudFrontOriginAccessIdentity
newUpdateCloudFrontOriginAccessIdentity
CloudFrontOriginAccessIdentityConfig
pCloudFrontOriginAccessIdentityConfig_
Text
pId_ =
UpdateCloudFrontOriginAccessIdentity' :: Maybe Text
-> CloudFrontOriginAccessIdentityConfig
-> Text
-> UpdateCloudFrontOriginAccessIdentity
UpdateCloudFrontOriginAccessIdentity'
{ $sel:ifMatch:UpdateCloudFrontOriginAccessIdentity' :: Maybe Text
ifMatch =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cloudFrontOriginAccessIdentityConfig:UpdateCloudFrontOriginAccessIdentity' :: CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig =
CloudFrontOriginAccessIdentityConfig
pCloudFrontOriginAccessIdentityConfig_,
$sel:id:UpdateCloudFrontOriginAccessIdentity' :: Text
id = Text
pId_
}
updateCloudFrontOriginAccessIdentity_ifMatch :: Lens.Lens' UpdateCloudFrontOriginAccessIdentity (Prelude.Maybe Prelude.Text)
updateCloudFrontOriginAccessIdentity_ifMatch :: (Maybe Text -> f (Maybe Text))
-> UpdateCloudFrontOriginAccessIdentity
-> f UpdateCloudFrontOriginAccessIdentity
updateCloudFrontOriginAccessIdentity_ifMatch = (UpdateCloudFrontOriginAccessIdentity -> Maybe Text)
-> (UpdateCloudFrontOriginAccessIdentity
-> Maybe Text -> UpdateCloudFrontOriginAccessIdentity)
-> Lens
UpdateCloudFrontOriginAccessIdentity
UpdateCloudFrontOriginAccessIdentity
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCloudFrontOriginAccessIdentity' {Maybe Text
ifMatch :: Maybe Text
$sel:ifMatch:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity -> Maybe Text
ifMatch} -> Maybe Text
ifMatch) (\s :: UpdateCloudFrontOriginAccessIdentity
s@UpdateCloudFrontOriginAccessIdentity' {} Maybe Text
a -> UpdateCloudFrontOriginAccessIdentity
s {$sel:ifMatch:UpdateCloudFrontOriginAccessIdentity' :: Maybe Text
ifMatch = Maybe Text
a} :: UpdateCloudFrontOriginAccessIdentity)
updateCloudFrontOriginAccessIdentity_cloudFrontOriginAccessIdentityConfig :: Lens.Lens' UpdateCloudFrontOriginAccessIdentity CloudFrontOriginAccessIdentityConfig
updateCloudFrontOriginAccessIdentity_cloudFrontOriginAccessIdentityConfig :: (CloudFrontOriginAccessIdentityConfig
-> f CloudFrontOriginAccessIdentityConfig)
-> UpdateCloudFrontOriginAccessIdentity
-> f UpdateCloudFrontOriginAccessIdentity
updateCloudFrontOriginAccessIdentity_cloudFrontOriginAccessIdentityConfig = (UpdateCloudFrontOriginAccessIdentity
-> CloudFrontOriginAccessIdentityConfig)
-> (UpdateCloudFrontOriginAccessIdentity
-> CloudFrontOriginAccessIdentityConfig
-> UpdateCloudFrontOriginAccessIdentity)
-> Lens
UpdateCloudFrontOriginAccessIdentity
UpdateCloudFrontOriginAccessIdentity
CloudFrontOriginAccessIdentityConfig
CloudFrontOriginAccessIdentityConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCloudFrontOriginAccessIdentity' {CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig :: CloudFrontOriginAccessIdentityConfig
$sel:cloudFrontOriginAccessIdentityConfig:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity
-> CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig} -> CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig) (\s :: UpdateCloudFrontOriginAccessIdentity
s@UpdateCloudFrontOriginAccessIdentity' {} CloudFrontOriginAccessIdentityConfig
a -> UpdateCloudFrontOriginAccessIdentity
s {$sel:cloudFrontOriginAccessIdentityConfig:UpdateCloudFrontOriginAccessIdentity' :: CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig = CloudFrontOriginAccessIdentityConfig
a} :: UpdateCloudFrontOriginAccessIdentity)
updateCloudFrontOriginAccessIdentity_id :: Lens.Lens' UpdateCloudFrontOriginAccessIdentity Prelude.Text
updateCloudFrontOriginAccessIdentity_id :: (Text -> f Text)
-> UpdateCloudFrontOriginAccessIdentity
-> f UpdateCloudFrontOriginAccessIdentity
updateCloudFrontOriginAccessIdentity_id = (UpdateCloudFrontOriginAccessIdentity -> Text)
-> (UpdateCloudFrontOriginAccessIdentity
-> Text -> UpdateCloudFrontOriginAccessIdentity)
-> Lens
UpdateCloudFrontOriginAccessIdentity
UpdateCloudFrontOriginAccessIdentity
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCloudFrontOriginAccessIdentity' {Text
id :: Text
$sel:id:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity -> Text
id} -> Text
id) (\s :: UpdateCloudFrontOriginAccessIdentity
s@UpdateCloudFrontOriginAccessIdentity' {} Text
a -> UpdateCloudFrontOriginAccessIdentity
s {$sel:id:UpdateCloudFrontOriginAccessIdentity' :: Text
id = Text
a} :: UpdateCloudFrontOriginAccessIdentity)
instance
Core.AWSRequest
UpdateCloudFrontOriginAccessIdentity
where
type
AWSResponse UpdateCloudFrontOriginAccessIdentity =
UpdateCloudFrontOriginAccessIdentityResponse
request :: UpdateCloudFrontOriginAccessIdentity
-> Request UpdateCloudFrontOriginAccessIdentity
request = Service
-> UpdateCloudFrontOriginAccessIdentity
-> Request UpdateCloudFrontOriginAccessIdentity
forall a. (ToRequest a, ToElement a) => Service -> a -> Request a
Request.putXML Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateCloudFrontOriginAccessIdentity
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateCloudFrontOriginAccessIdentity)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either
String (AWSResponse UpdateCloudFrontOriginAccessIdentity))
-> Logger
-> Service
-> Proxy UpdateCloudFrontOriginAccessIdentity
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateCloudFrontOriginAccessIdentity)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe CloudFrontOriginAccessIdentity
-> Int
-> UpdateCloudFrontOriginAccessIdentityResponse
UpdateCloudFrontOriginAccessIdentityResponse'
(Maybe Text
-> Maybe CloudFrontOriginAccessIdentity
-> Int
-> UpdateCloudFrontOriginAccessIdentityResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe CloudFrontOriginAccessIdentity
-> Int -> UpdateCloudFrontOriginAccessIdentityResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe Text)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"ETag") Either
String
(Maybe CloudFrontOriginAccessIdentity
-> Int -> UpdateCloudFrontOriginAccessIdentityResponse)
-> Either String (Maybe CloudFrontOriginAccessIdentity)
-> Either
String (Int -> UpdateCloudFrontOriginAccessIdentityResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node] -> Either String (Maybe CloudFrontOriginAccessIdentity)
forall a. FromXML a => [Node] -> Either String a
Core.parseXML [Node]
x)
Either String (Int -> UpdateCloudFrontOriginAccessIdentityResponse)
-> Either String Int
-> Either String UpdateCloudFrontOriginAccessIdentityResponse
forall (f :: * -> *) a b. Applicative f => 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
UpdateCloudFrontOriginAccessIdentity
instance
Prelude.NFData
UpdateCloudFrontOriginAccessIdentity
instance
Core.ToElement
UpdateCloudFrontOriginAccessIdentity
where
toElement :: UpdateCloudFrontOriginAccessIdentity -> Element
toElement UpdateCloudFrontOriginAccessIdentity' {Maybe Text
Text
CloudFrontOriginAccessIdentityConfig
id :: Text
cloudFrontOriginAccessIdentityConfig :: CloudFrontOriginAccessIdentityConfig
ifMatch :: Maybe Text
$sel:id:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity -> Text
$sel:cloudFrontOriginAccessIdentityConfig:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity
-> CloudFrontOriginAccessIdentityConfig
$sel:ifMatch:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity -> Maybe Text
..} =
Name -> CloudFrontOriginAccessIdentityConfig -> Element
forall a. ToXML a => Name -> a -> Element
Core.mkElement
Name
"{http://cloudfront.amazonaws.com/doc/2020-05-31/}CloudFrontOriginAccessIdentityConfig"
CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig
instance
Core.ToHeaders
UpdateCloudFrontOriginAccessIdentity
where
toHeaders :: UpdateCloudFrontOriginAccessIdentity -> ResponseHeaders
toHeaders UpdateCloudFrontOriginAccessIdentity' {Maybe Text
Text
CloudFrontOriginAccessIdentityConfig
id :: Text
cloudFrontOriginAccessIdentityConfig :: CloudFrontOriginAccessIdentityConfig
ifMatch :: Maybe Text
$sel:id:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity -> Text
$sel:cloudFrontOriginAccessIdentityConfig:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity
-> CloudFrontOriginAccessIdentityConfig
$sel:ifMatch:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity -> Maybe Text
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat [HeaderName
"If-Match" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
ifMatch]
instance
Core.ToPath
UpdateCloudFrontOriginAccessIdentity
where
toPath :: UpdateCloudFrontOriginAccessIdentity -> ByteString
toPath UpdateCloudFrontOriginAccessIdentity' {Maybe Text
Text
CloudFrontOriginAccessIdentityConfig
id :: Text
cloudFrontOriginAccessIdentityConfig :: CloudFrontOriginAccessIdentityConfig
ifMatch :: Maybe Text
$sel:id:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity -> Text
$sel:cloudFrontOriginAccessIdentityConfig:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity
-> CloudFrontOriginAccessIdentityConfig
$sel:ifMatch:UpdateCloudFrontOriginAccessIdentity' :: UpdateCloudFrontOriginAccessIdentity -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/2020-05-31/origin-access-identity/cloudfront/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id,
ByteString
"/config"
]
instance
Core.ToQuery
UpdateCloudFrontOriginAccessIdentity
where
toQuery :: UpdateCloudFrontOriginAccessIdentity -> QueryString
toQuery = QueryString -> UpdateCloudFrontOriginAccessIdentity -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateCloudFrontOriginAccessIdentityResponse = UpdateCloudFrontOriginAccessIdentityResponse'
{
UpdateCloudFrontOriginAccessIdentityResponse -> Maybe Text
eTag :: Prelude.Maybe Prelude.Text,
UpdateCloudFrontOriginAccessIdentityResponse
-> Maybe CloudFrontOriginAccessIdentity
cloudFrontOriginAccessIdentity :: Prelude.Maybe CloudFrontOriginAccessIdentity,
UpdateCloudFrontOriginAccessIdentityResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateCloudFrontOriginAccessIdentityResponse
-> UpdateCloudFrontOriginAccessIdentityResponse -> Bool
(UpdateCloudFrontOriginAccessIdentityResponse
-> UpdateCloudFrontOriginAccessIdentityResponse -> Bool)
-> (UpdateCloudFrontOriginAccessIdentityResponse
-> UpdateCloudFrontOriginAccessIdentityResponse -> Bool)
-> Eq UpdateCloudFrontOriginAccessIdentityResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCloudFrontOriginAccessIdentityResponse
-> UpdateCloudFrontOriginAccessIdentityResponse -> Bool
$c/= :: UpdateCloudFrontOriginAccessIdentityResponse
-> UpdateCloudFrontOriginAccessIdentityResponse -> Bool
== :: UpdateCloudFrontOriginAccessIdentityResponse
-> UpdateCloudFrontOriginAccessIdentityResponse -> Bool
$c== :: UpdateCloudFrontOriginAccessIdentityResponse
-> UpdateCloudFrontOriginAccessIdentityResponse -> Bool
Prelude.Eq, ReadPrec [UpdateCloudFrontOriginAccessIdentityResponse]
ReadPrec UpdateCloudFrontOriginAccessIdentityResponse
Int -> ReadS UpdateCloudFrontOriginAccessIdentityResponse
ReadS [UpdateCloudFrontOriginAccessIdentityResponse]
(Int -> ReadS UpdateCloudFrontOriginAccessIdentityResponse)
-> ReadS [UpdateCloudFrontOriginAccessIdentityResponse]
-> ReadPrec UpdateCloudFrontOriginAccessIdentityResponse
-> ReadPrec [UpdateCloudFrontOriginAccessIdentityResponse]
-> Read UpdateCloudFrontOriginAccessIdentityResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCloudFrontOriginAccessIdentityResponse]
$creadListPrec :: ReadPrec [UpdateCloudFrontOriginAccessIdentityResponse]
readPrec :: ReadPrec UpdateCloudFrontOriginAccessIdentityResponse
$creadPrec :: ReadPrec UpdateCloudFrontOriginAccessIdentityResponse
readList :: ReadS [UpdateCloudFrontOriginAccessIdentityResponse]
$creadList :: ReadS [UpdateCloudFrontOriginAccessIdentityResponse]
readsPrec :: Int -> ReadS UpdateCloudFrontOriginAccessIdentityResponse
$creadsPrec :: Int -> ReadS UpdateCloudFrontOriginAccessIdentityResponse
Prelude.Read, Int -> UpdateCloudFrontOriginAccessIdentityResponse -> ShowS
[UpdateCloudFrontOriginAccessIdentityResponse] -> ShowS
UpdateCloudFrontOriginAccessIdentityResponse -> String
(Int -> UpdateCloudFrontOriginAccessIdentityResponse -> ShowS)
-> (UpdateCloudFrontOriginAccessIdentityResponse -> String)
-> ([UpdateCloudFrontOriginAccessIdentityResponse] -> ShowS)
-> Show UpdateCloudFrontOriginAccessIdentityResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCloudFrontOriginAccessIdentityResponse] -> ShowS
$cshowList :: [UpdateCloudFrontOriginAccessIdentityResponse] -> ShowS
show :: UpdateCloudFrontOriginAccessIdentityResponse -> String
$cshow :: UpdateCloudFrontOriginAccessIdentityResponse -> String
showsPrec :: Int -> UpdateCloudFrontOriginAccessIdentityResponse -> ShowS
$cshowsPrec :: Int -> UpdateCloudFrontOriginAccessIdentityResponse -> ShowS
Prelude.Show, (forall x.
UpdateCloudFrontOriginAccessIdentityResponse
-> Rep UpdateCloudFrontOriginAccessIdentityResponse x)
-> (forall x.
Rep UpdateCloudFrontOriginAccessIdentityResponse x
-> UpdateCloudFrontOriginAccessIdentityResponse)
-> Generic UpdateCloudFrontOriginAccessIdentityResponse
forall x.
Rep UpdateCloudFrontOriginAccessIdentityResponse x
-> UpdateCloudFrontOriginAccessIdentityResponse
forall x.
UpdateCloudFrontOriginAccessIdentityResponse
-> Rep UpdateCloudFrontOriginAccessIdentityResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCloudFrontOriginAccessIdentityResponse x
-> UpdateCloudFrontOriginAccessIdentityResponse
$cfrom :: forall x.
UpdateCloudFrontOriginAccessIdentityResponse
-> Rep UpdateCloudFrontOriginAccessIdentityResponse x
Prelude.Generic)
newUpdateCloudFrontOriginAccessIdentityResponse ::
Prelude.Int ->
UpdateCloudFrontOriginAccessIdentityResponse
newUpdateCloudFrontOriginAccessIdentityResponse :: Int -> UpdateCloudFrontOriginAccessIdentityResponse
newUpdateCloudFrontOriginAccessIdentityResponse
Int
pHttpStatus_ =
UpdateCloudFrontOriginAccessIdentityResponse' :: Maybe Text
-> Maybe CloudFrontOriginAccessIdentity
-> Int
-> UpdateCloudFrontOriginAccessIdentityResponse
UpdateCloudFrontOriginAccessIdentityResponse'
{ $sel:eTag:UpdateCloudFrontOriginAccessIdentityResponse' :: Maybe Text
eTag =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cloudFrontOriginAccessIdentity:UpdateCloudFrontOriginAccessIdentityResponse' :: Maybe CloudFrontOriginAccessIdentity
cloudFrontOriginAccessIdentity =
Maybe CloudFrontOriginAccessIdentity
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateCloudFrontOriginAccessIdentityResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateCloudFrontOriginAccessIdentityResponse_eTag :: Lens.Lens' UpdateCloudFrontOriginAccessIdentityResponse (Prelude.Maybe Prelude.Text)
updateCloudFrontOriginAccessIdentityResponse_eTag :: (Maybe Text -> f (Maybe Text))
-> UpdateCloudFrontOriginAccessIdentityResponse
-> f UpdateCloudFrontOriginAccessIdentityResponse
updateCloudFrontOriginAccessIdentityResponse_eTag = (UpdateCloudFrontOriginAccessIdentityResponse -> Maybe Text)
-> (UpdateCloudFrontOriginAccessIdentityResponse
-> Maybe Text -> UpdateCloudFrontOriginAccessIdentityResponse)
-> Lens
UpdateCloudFrontOriginAccessIdentityResponse
UpdateCloudFrontOriginAccessIdentityResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCloudFrontOriginAccessIdentityResponse' {Maybe Text
eTag :: Maybe Text
$sel:eTag:UpdateCloudFrontOriginAccessIdentityResponse' :: UpdateCloudFrontOriginAccessIdentityResponse -> Maybe Text
eTag} -> Maybe Text
eTag) (\s :: UpdateCloudFrontOriginAccessIdentityResponse
s@UpdateCloudFrontOriginAccessIdentityResponse' {} Maybe Text
a -> UpdateCloudFrontOriginAccessIdentityResponse
s {$sel:eTag:UpdateCloudFrontOriginAccessIdentityResponse' :: Maybe Text
eTag = Maybe Text
a} :: UpdateCloudFrontOriginAccessIdentityResponse)
updateCloudFrontOriginAccessIdentityResponse_cloudFrontOriginAccessIdentity :: Lens.Lens' UpdateCloudFrontOriginAccessIdentityResponse (Prelude.Maybe CloudFrontOriginAccessIdentity)
updateCloudFrontOriginAccessIdentityResponse_cloudFrontOriginAccessIdentity :: (Maybe CloudFrontOriginAccessIdentity
-> f (Maybe CloudFrontOriginAccessIdentity))
-> UpdateCloudFrontOriginAccessIdentityResponse
-> f UpdateCloudFrontOriginAccessIdentityResponse
updateCloudFrontOriginAccessIdentityResponse_cloudFrontOriginAccessIdentity = (UpdateCloudFrontOriginAccessIdentityResponse
-> Maybe CloudFrontOriginAccessIdentity)
-> (UpdateCloudFrontOriginAccessIdentityResponse
-> Maybe CloudFrontOriginAccessIdentity
-> UpdateCloudFrontOriginAccessIdentityResponse)
-> Lens
UpdateCloudFrontOriginAccessIdentityResponse
UpdateCloudFrontOriginAccessIdentityResponse
(Maybe CloudFrontOriginAccessIdentity)
(Maybe CloudFrontOriginAccessIdentity)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCloudFrontOriginAccessIdentityResponse' {Maybe CloudFrontOriginAccessIdentity
cloudFrontOriginAccessIdentity :: Maybe CloudFrontOriginAccessIdentity
$sel:cloudFrontOriginAccessIdentity:UpdateCloudFrontOriginAccessIdentityResponse' :: UpdateCloudFrontOriginAccessIdentityResponse
-> Maybe CloudFrontOriginAccessIdentity
cloudFrontOriginAccessIdentity} -> Maybe CloudFrontOriginAccessIdentity
cloudFrontOriginAccessIdentity) (\s :: UpdateCloudFrontOriginAccessIdentityResponse
s@UpdateCloudFrontOriginAccessIdentityResponse' {} Maybe CloudFrontOriginAccessIdentity
a -> UpdateCloudFrontOriginAccessIdentityResponse
s {$sel:cloudFrontOriginAccessIdentity:UpdateCloudFrontOriginAccessIdentityResponse' :: Maybe CloudFrontOriginAccessIdentity
cloudFrontOriginAccessIdentity = Maybe CloudFrontOriginAccessIdentity
a} :: UpdateCloudFrontOriginAccessIdentityResponse)
updateCloudFrontOriginAccessIdentityResponse_httpStatus :: Lens.Lens' UpdateCloudFrontOriginAccessIdentityResponse Prelude.Int
updateCloudFrontOriginAccessIdentityResponse_httpStatus :: (Int -> f Int)
-> UpdateCloudFrontOriginAccessIdentityResponse
-> f UpdateCloudFrontOriginAccessIdentityResponse
updateCloudFrontOriginAccessIdentityResponse_httpStatus = (UpdateCloudFrontOriginAccessIdentityResponse -> Int)
-> (UpdateCloudFrontOriginAccessIdentityResponse
-> Int -> UpdateCloudFrontOriginAccessIdentityResponse)
-> Lens
UpdateCloudFrontOriginAccessIdentityResponse
UpdateCloudFrontOriginAccessIdentityResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCloudFrontOriginAccessIdentityResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateCloudFrontOriginAccessIdentityResponse' :: UpdateCloudFrontOriginAccessIdentityResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateCloudFrontOriginAccessIdentityResponse
s@UpdateCloudFrontOriginAccessIdentityResponse' {} Int
a -> UpdateCloudFrontOriginAccessIdentityResponse
s {$sel:httpStatus:UpdateCloudFrontOriginAccessIdentityResponse' :: Int
httpStatus = Int
a} :: UpdateCloudFrontOriginAccessIdentityResponse)
instance
Prelude.NFData
UpdateCloudFrontOriginAccessIdentityResponse