{-# 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.Route53.CreateKeySigningKey
(
CreateKeySigningKey (..),
newCreateKeySigningKey,
createKeySigningKey_callerReference,
createKeySigningKey_hostedZoneId,
createKeySigningKey_keyManagementServiceArn,
createKeySigningKey_name,
createKeySigningKey_status,
CreateKeySigningKeyResponse (..),
newCreateKeySigningKeyResponse,
createKeySigningKeyResponse_httpStatus,
createKeySigningKeyResponse_changeInfo,
createKeySigningKeyResponse_keySigningKey,
createKeySigningKeyResponse_location,
)
where
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
import Amazonka.Route53.Types
data CreateKeySigningKey = CreateKeySigningKey'
{
CreateKeySigningKey -> Text
callerReference :: Prelude.Text,
CreateKeySigningKey -> ResourceId
hostedZoneId :: ResourceId,
CreateKeySigningKey -> Text
keyManagementServiceArn :: Prelude.Text,
CreateKeySigningKey -> Text
name :: Prelude.Text,
CreateKeySigningKey -> Text
status :: Prelude.Text
}
deriving (CreateKeySigningKey -> CreateKeySigningKey -> Bool
(CreateKeySigningKey -> CreateKeySigningKey -> Bool)
-> (CreateKeySigningKey -> CreateKeySigningKey -> Bool)
-> Eq CreateKeySigningKey
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateKeySigningKey -> CreateKeySigningKey -> Bool
$c/= :: CreateKeySigningKey -> CreateKeySigningKey -> Bool
== :: CreateKeySigningKey -> CreateKeySigningKey -> Bool
$c== :: CreateKeySigningKey -> CreateKeySigningKey -> Bool
Prelude.Eq, ReadPrec [CreateKeySigningKey]
ReadPrec CreateKeySigningKey
Int -> ReadS CreateKeySigningKey
ReadS [CreateKeySigningKey]
(Int -> ReadS CreateKeySigningKey)
-> ReadS [CreateKeySigningKey]
-> ReadPrec CreateKeySigningKey
-> ReadPrec [CreateKeySigningKey]
-> Read CreateKeySigningKey
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateKeySigningKey]
$creadListPrec :: ReadPrec [CreateKeySigningKey]
readPrec :: ReadPrec CreateKeySigningKey
$creadPrec :: ReadPrec CreateKeySigningKey
readList :: ReadS [CreateKeySigningKey]
$creadList :: ReadS [CreateKeySigningKey]
readsPrec :: Int -> ReadS CreateKeySigningKey
$creadsPrec :: Int -> ReadS CreateKeySigningKey
Prelude.Read, Int -> CreateKeySigningKey -> ShowS
[CreateKeySigningKey] -> ShowS
CreateKeySigningKey -> String
(Int -> CreateKeySigningKey -> ShowS)
-> (CreateKeySigningKey -> String)
-> ([CreateKeySigningKey] -> ShowS)
-> Show CreateKeySigningKey
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateKeySigningKey] -> ShowS
$cshowList :: [CreateKeySigningKey] -> ShowS
show :: CreateKeySigningKey -> String
$cshow :: CreateKeySigningKey -> String
showsPrec :: Int -> CreateKeySigningKey -> ShowS
$cshowsPrec :: Int -> CreateKeySigningKey -> ShowS
Prelude.Show, (forall x. CreateKeySigningKey -> Rep CreateKeySigningKey x)
-> (forall x. Rep CreateKeySigningKey x -> CreateKeySigningKey)
-> Generic CreateKeySigningKey
forall x. Rep CreateKeySigningKey x -> CreateKeySigningKey
forall x. CreateKeySigningKey -> Rep CreateKeySigningKey x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateKeySigningKey x -> CreateKeySigningKey
$cfrom :: forall x. CreateKeySigningKey -> Rep CreateKeySigningKey x
Prelude.Generic)
newCreateKeySigningKey ::
Prelude.Text ->
ResourceId ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateKeySigningKey
newCreateKeySigningKey :: Text -> ResourceId -> Text -> Text -> Text -> CreateKeySigningKey
newCreateKeySigningKey
Text
pCallerReference_
ResourceId
pHostedZoneId_
Text
pKeyManagementServiceArn_
Text
pName_
Text
pStatus_ =
CreateKeySigningKey' :: Text -> ResourceId -> Text -> Text -> Text -> CreateKeySigningKey
CreateKeySigningKey'
{ $sel:callerReference:CreateKeySigningKey' :: Text
callerReference =
Text
pCallerReference_,
$sel:hostedZoneId:CreateKeySigningKey' :: ResourceId
hostedZoneId = ResourceId
pHostedZoneId_,
$sel:keyManagementServiceArn:CreateKeySigningKey' :: Text
keyManagementServiceArn = Text
pKeyManagementServiceArn_,
$sel:name:CreateKeySigningKey' :: Text
name = Text
pName_,
$sel:status:CreateKeySigningKey' :: Text
status = Text
pStatus_
}
createKeySigningKey_callerReference :: Lens.Lens' CreateKeySigningKey Prelude.Text
createKeySigningKey_callerReference :: (Text -> f Text) -> CreateKeySigningKey -> f CreateKeySigningKey
createKeySigningKey_callerReference = (CreateKeySigningKey -> Text)
-> (CreateKeySigningKey -> Text -> CreateKeySigningKey)
-> Lens CreateKeySigningKey CreateKeySigningKey Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateKeySigningKey' {Text
callerReference :: Text
$sel:callerReference:CreateKeySigningKey' :: CreateKeySigningKey -> Text
callerReference} -> Text
callerReference) (\s :: CreateKeySigningKey
s@CreateKeySigningKey' {} Text
a -> CreateKeySigningKey
s {$sel:callerReference:CreateKeySigningKey' :: Text
callerReference = Text
a} :: CreateKeySigningKey)
createKeySigningKey_hostedZoneId :: Lens.Lens' CreateKeySigningKey ResourceId
createKeySigningKey_hostedZoneId :: (ResourceId -> f ResourceId)
-> CreateKeySigningKey -> f CreateKeySigningKey
createKeySigningKey_hostedZoneId = (CreateKeySigningKey -> ResourceId)
-> (CreateKeySigningKey -> ResourceId -> CreateKeySigningKey)
-> Lens
CreateKeySigningKey CreateKeySigningKey ResourceId ResourceId
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateKeySigningKey' {ResourceId
hostedZoneId :: ResourceId
$sel:hostedZoneId:CreateKeySigningKey' :: CreateKeySigningKey -> ResourceId
hostedZoneId} -> ResourceId
hostedZoneId) (\s :: CreateKeySigningKey
s@CreateKeySigningKey' {} ResourceId
a -> CreateKeySigningKey
s {$sel:hostedZoneId:CreateKeySigningKey' :: ResourceId
hostedZoneId = ResourceId
a} :: CreateKeySigningKey)
createKeySigningKey_keyManagementServiceArn :: Lens.Lens' CreateKeySigningKey Prelude.Text
createKeySigningKey_keyManagementServiceArn :: (Text -> f Text) -> CreateKeySigningKey -> f CreateKeySigningKey
createKeySigningKey_keyManagementServiceArn = (CreateKeySigningKey -> Text)
-> (CreateKeySigningKey -> Text -> CreateKeySigningKey)
-> Lens CreateKeySigningKey CreateKeySigningKey Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateKeySigningKey' {Text
keyManagementServiceArn :: Text
$sel:keyManagementServiceArn:CreateKeySigningKey' :: CreateKeySigningKey -> Text
keyManagementServiceArn} -> Text
keyManagementServiceArn) (\s :: CreateKeySigningKey
s@CreateKeySigningKey' {} Text
a -> CreateKeySigningKey
s {$sel:keyManagementServiceArn:CreateKeySigningKey' :: Text
keyManagementServiceArn = Text
a} :: CreateKeySigningKey)
createKeySigningKey_name :: Lens.Lens' CreateKeySigningKey Prelude.Text
createKeySigningKey_name :: (Text -> f Text) -> CreateKeySigningKey -> f CreateKeySigningKey
createKeySigningKey_name = (CreateKeySigningKey -> Text)
-> (CreateKeySigningKey -> Text -> CreateKeySigningKey)
-> Lens CreateKeySigningKey CreateKeySigningKey Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateKeySigningKey' {Text
name :: Text
$sel:name:CreateKeySigningKey' :: CreateKeySigningKey -> Text
name} -> Text
name) (\s :: CreateKeySigningKey
s@CreateKeySigningKey' {} Text
a -> CreateKeySigningKey
s {$sel:name:CreateKeySigningKey' :: Text
name = Text
a} :: CreateKeySigningKey)
createKeySigningKey_status :: Lens.Lens' CreateKeySigningKey Prelude.Text
createKeySigningKey_status :: (Text -> f Text) -> CreateKeySigningKey -> f CreateKeySigningKey
createKeySigningKey_status = (CreateKeySigningKey -> Text)
-> (CreateKeySigningKey -> Text -> CreateKeySigningKey)
-> Lens CreateKeySigningKey CreateKeySigningKey Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateKeySigningKey' {Text
status :: Text
$sel:status:CreateKeySigningKey' :: CreateKeySigningKey -> Text
status} -> Text
status) (\s :: CreateKeySigningKey
s@CreateKeySigningKey' {} Text
a -> CreateKeySigningKey
s {$sel:status:CreateKeySigningKey' :: Text
status = Text
a} :: CreateKeySigningKey)
instance Core.AWSRequest CreateKeySigningKey where
type
AWSResponse CreateKeySigningKey =
CreateKeySigningKeyResponse
request :: CreateKeySigningKey -> Request CreateKeySigningKey
request = Service -> CreateKeySigningKey -> Request CreateKeySigningKey
forall a. (ToRequest a, ToElement a) => Service -> a -> Request a
Request.postXML Service
defaultService
response :: Logger
-> Service
-> Proxy CreateKeySigningKey
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateKeySigningKey)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateKeySigningKey))
-> Logger
-> Service
-> Proxy CreateKeySigningKey
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateKeySigningKey)))
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 ->
Int
-> ChangeInfo
-> KeySigningKey
-> Text
-> CreateKeySigningKeyResponse
CreateKeySigningKeyResponse'
(Int
-> ChangeInfo
-> KeySigningKey
-> Text
-> CreateKeySigningKeyResponse)
-> Either String Int
-> Either
String
(ChangeInfo
-> KeySigningKey -> Text -> CreateKeySigningKeyResponse)
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))
Either
String
(ChangeInfo
-> KeySigningKey -> Text -> CreateKeySigningKeyResponse)
-> Either String ChangeInfo
-> Either
String (KeySigningKey -> Text -> CreateKeySigningKeyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String ChangeInfo
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"ChangeInfo")
Either
String (KeySigningKey -> Text -> CreateKeySigningKeyResponse)
-> Either String KeySigningKey
-> Either String (Text -> CreateKeySigningKeyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String KeySigningKey
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"KeySigningKey")
Either String (Text -> CreateKeySigningKeyResponse)
-> Either String Text -> Either String CreateKeySigningKeyResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String Text
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String a
Core..# HeaderName
"Location")
)
instance Prelude.Hashable CreateKeySigningKey
instance Prelude.NFData CreateKeySigningKey
instance Core.ToElement CreateKeySigningKey where
toElement :: CreateKeySigningKey -> Element
toElement =
Name -> CreateKeySigningKey -> Element
forall a. ToXML a => Name -> a -> Element
Core.mkElement
Name
"{https://route53.amazonaws.com/doc/2013-04-01/}CreateKeySigningKeyRequest"
instance Core.ToHeaders CreateKeySigningKey where
toHeaders :: CreateKeySigningKey -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateKeySigningKey -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CreateKeySigningKey where
toPath :: CreateKeySigningKey -> ByteString
toPath = ByteString -> CreateKeySigningKey -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/2013-04-01/keysigningkey"
instance Core.ToQuery CreateKeySigningKey where
toQuery :: CreateKeySigningKey -> QueryString
toQuery = QueryString -> CreateKeySigningKey -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
instance Core.ToXML CreateKeySigningKey where
toXML :: CreateKeySigningKey -> XML
toXML CreateKeySigningKey' {Text
ResourceId
status :: Text
name :: Text
keyManagementServiceArn :: Text
hostedZoneId :: ResourceId
callerReference :: Text
$sel:status:CreateKeySigningKey' :: CreateKeySigningKey -> Text
$sel:name:CreateKeySigningKey' :: CreateKeySigningKey -> Text
$sel:keyManagementServiceArn:CreateKeySigningKey' :: CreateKeySigningKey -> Text
$sel:hostedZoneId:CreateKeySigningKey' :: CreateKeySigningKey -> ResourceId
$sel:callerReference:CreateKeySigningKey' :: CreateKeySigningKey -> Text
..} =
[XML] -> XML
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ Name
"CallerReference" Name -> Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Text
callerReference,
Name
"HostedZoneId" Name -> ResourceId -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= ResourceId
hostedZoneId,
Name
"KeyManagementServiceArn"
Name -> Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Text
keyManagementServiceArn,
Name
"Name" Name -> Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Text
name,
Name
"Status" Name -> Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Text
status
]
data CreateKeySigningKeyResponse = CreateKeySigningKeyResponse'
{
CreateKeySigningKeyResponse -> Int
httpStatus :: Prelude.Int,
CreateKeySigningKeyResponse -> ChangeInfo
changeInfo :: ChangeInfo,
CreateKeySigningKeyResponse -> KeySigningKey
keySigningKey :: KeySigningKey,
CreateKeySigningKeyResponse -> Text
location :: Prelude.Text
}
deriving (CreateKeySigningKeyResponse -> CreateKeySigningKeyResponse -> Bool
(CreateKeySigningKeyResponse
-> CreateKeySigningKeyResponse -> Bool)
-> (CreateKeySigningKeyResponse
-> CreateKeySigningKeyResponse -> Bool)
-> Eq CreateKeySigningKeyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateKeySigningKeyResponse -> CreateKeySigningKeyResponse -> Bool
$c/= :: CreateKeySigningKeyResponse -> CreateKeySigningKeyResponse -> Bool
== :: CreateKeySigningKeyResponse -> CreateKeySigningKeyResponse -> Bool
$c== :: CreateKeySigningKeyResponse -> CreateKeySigningKeyResponse -> Bool
Prelude.Eq, ReadPrec [CreateKeySigningKeyResponse]
ReadPrec CreateKeySigningKeyResponse
Int -> ReadS CreateKeySigningKeyResponse
ReadS [CreateKeySigningKeyResponse]
(Int -> ReadS CreateKeySigningKeyResponse)
-> ReadS [CreateKeySigningKeyResponse]
-> ReadPrec CreateKeySigningKeyResponse
-> ReadPrec [CreateKeySigningKeyResponse]
-> Read CreateKeySigningKeyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateKeySigningKeyResponse]
$creadListPrec :: ReadPrec [CreateKeySigningKeyResponse]
readPrec :: ReadPrec CreateKeySigningKeyResponse
$creadPrec :: ReadPrec CreateKeySigningKeyResponse
readList :: ReadS [CreateKeySigningKeyResponse]
$creadList :: ReadS [CreateKeySigningKeyResponse]
readsPrec :: Int -> ReadS CreateKeySigningKeyResponse
$creadsPrec :: Int -> ReadS CreateKeySigningKeyResponse
Prelude.Read, Int -> CreateKeySigningKeyResponse -> ShowS
[CreateKeySigningKeyResponse] -> ShowS
CreateKeySigningKeyResponse -> String
(Int -> CreateKeySigningKeyResponse -> ShowS)
-> (CreateKeySigningKeyResponse -> String)
-> ([CreateKeySigningKeyResponse] -> ShowS)
-> Show CreateKeySigningKeyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateKeySigningKeyResponse] -> ShowS
$cshowList :: [CreateKeySigningKeyResponse] -> ShowS
show :: CreateKeySigningKeyResponse -> String
$cshow :: CreateKeySigningKeyResponse -> String
showsPrec :: Int -> CreateKeySigningKeyResponse -> ShowS
$cshowsPrec :: Int -> CreateKeySigningKeyResponse -> ShowS
Prelude.Show, (forall x.
CreateKeySigningKeyResponse -> Rep CreateKeySigningKeyResponse x)
-> (forall x.
Rep CreateKeySigningKeyResponse x -> CreateKeySigningKeyResponse)
-> Generic CreateKeySigningKeyResponse
forall x.
Rep CreateKeySigningKeyResponse x -> CreateKeySigningKeyResponse
forall x.
CreateKeySigningKeyResponse -> Rep CreateKeySigningKeyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateKeySigningKeyResponse x -> CreateKeySigningKeyResponse
$cfrom :: forall x.
CreateKeySigningKeyResponse -> Rep CreateKeySigningKeyResponse x
Prelude.Generic)
newCreateKeySigningKeyResponse ::
Prelude.Int ->
ChangeInfo ->
KeySigningKey ->
Prelude.Text ->
CreateKeySigningKeyResponse
newCreateKeySigningKeyResponse :: Int
-> ChangeInfo
-> KeySigningKey
-> Text
-> CreateKeySigningKeyResponse
newCreateKeySigningKeyResponse
Int
pHttpStatus_
ChangeInfo
pChangeInfo_
KeySigningKey
pKeySigningKey_
Text
pLocation_ =
CreateKeySigningKeyResponse' :: Int
-> ChangeInfo
-> KeySigningKey
-> Text
-> CreateKeySigningKeyResponse
CreateKeySigningKeyResponse'
{ $sel:httpStatus:CreateKeySigningKeyResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:changeInfo:CreateKeySigningKeyResponse' :: ChangeInfo
changeInfo = ChangeInfo
pChangeInfo_,
$sel:keySigningKey:CreateKeySigningKeyResponse' :: KeySigningKey
keySigningKey = KeySigningKey
pKeySigningKey_,
$sel:location:CreateKeySigningKeyResponse' :: Text
location = Text
pLocation_
}
createKeySigningKeyResponse_httpStatus :: Lens.Lens' CreateKeySigningKeyResponse Prelude.Int
createKeySigningKeyResponse_httpStatus :: (Int -> f Int)
-> CreateKeySigningKeyResponse -> f CreateKeySigningKeyResponse
createKeySigningKeyResponse_httpStatus = (CreateKeySigningKeyResponse -> Int)
-> (CreateKeySigningKeyResponse
-> Int -> CreateKeySigningKeyResponse)
-> Lens
CreateKeySigningKeyResponse CreateKeySigningKeyResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateKeySigningKeyResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateKeySigningKeyResponse' :: CreateKeySigningKeyResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateKeySigningKeyResponse
s@CreateKeySigningKeyResponse' {} Int
a -> CreateKeySigningKeyResponse
s {$sel:httpStatus:CreateKeySigningKeyResponse' :: Int
httpStatus = Int
a} :: CreateKeySigningKeyResponse)
createKeySigningKeyResponse_changeInfo :: Lens.Lens' CreateKeySigningKeyResponse ChangeInfo
createKeySigningKeyResponse_changeInfo :: (ChangeInfo -> f ChangeInfo)
-> CreateKeySigningKeyResponse -> f CreateKeySigningKeyResponse
createKeySigningKeyResponse_changeInfo = (CreateKeySigningKeyResponse -> ChangeInfo)
-> (CreateKeySigningKeyResponse
-> ChangeInfo -> CreateKeySigningKeyResponse)
-> Lens
CreateKeySigningKeyResponse
CreateKeySigningKeyResponse
ChangeInfo
ChangeInfo
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateKeySigningKeyResponse' {ChangeInfo
changeInfo :: ChangeInfo
$sel:changeInfo:CreateKeySigningKeyResponse' :: CreateKeySigningKeyResponse -> ChangeInfo
changeInfo} -> ChangeInfo
changeInfo) (\s :: CreateKeySigningKeyResponse
s@CreateKeySigningKeyResponse' {} ChangeInfo
a -> CreateKeySigningKeyResponse
s {$sel:changeInfo:CreateKeySigningKeyResponse' :: ChangeInfo
changeInfo = ChangeInfo
a} :: CreateKeySigningKeyResponse)
createKeySigningKeyResponse_keySigningKey :: Lens.Lens' CreateKeySigningKeyResponse KeySigningKey
createKeySigningKeyResponse_keySigningKey :: (KeySigningKey -> f KeySigningKey)
-> CreateKeySigningKeyResponse -> f CreateKeySigningKeyResponse
createKeySigningKeyResponse_keySigningKey = (CreateKeySigningKeyResponse -> KeySigningKey)
-> (CreateKeySigningKeyResponse
-> KeySigningKey -> CreateKeySigningKeyResponse)
-> Lens
CreateKeySigningKeyResponse
CreateKeySigningKeyResponse
KeySigningKey
KeySigningKey
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateKeySigningKeyResponse' {KeySigningKey
keySigningKey :: KeySigningKey
$sel:keySigningKey:CreateKeySigningKeyResponse' :: CreateKeySigningKeyResponse -> KeySigningKey
keySigningKey} -> KeySigningKey
keySigningKey) (\s :: CreateKeySigningKeyResponse
s@CreateKeySigningKeyResponse' {} KeySigningKey
a -> CreateKeySigningKeyResponse
s {$sel:keySigningKey:CreateKeySigningKeyResponse' :: KeySigningKey
keySigningKey = KeySigningKey
a} :: CreateKeySigningKeyResponse)
createKeySigningKeyResponse_location :: Lens.Lens' CreateKeySigningKeyResponse Prelude.Text
createKeySigningKeyResponse_location :: (Text -> f Text)
-> CreateKeySigningKeyResponse -> f CreateKeySigningKeyResponse
createKeySigningKeyResponse_location = (CreateKeySigningKeyResponse -> Text)
-> (CreateKeySigningKeyResponse
-> Text -> CreateKeySigningKeyResponse)
-> Lens
CreateKeySigningKeyResponse CreateKeySigningKeyResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateKeySigningKeyResponse' {Text
location :: Text
$sel:location:CreateKeySigningKeyResponse' :: CreateKeySigningKeyResponse -> Text
location} -> Text
location) (\s :: CreateKeySigningKeyResponse
s@CreateKeySigningKeyResponse' {} Text
a -> CreateKeySigningKeyResponse
s {$sel:location:CreateKeySigningKeyResponse' :: Text
location = Text
a} :: CreateKeySigningKeyResponse)
instance Prelude.NFData CreateKeySigningKeyResponse