{-# 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.Redshift.CreateHsmConfiguration
(
CreateHsmConfiguration (..),
newCreateHsmConfiguration,
createHsmConfiguration_tags,
createHsmConfiguration_hsmConfigurationIdentifier,
createHsmConfiguration_description,
createHsmConfiguration_hsmIpAddress,
createHsmConfiguration_hsmPartitionName,
createHsmConfiguration_hsmPartitionPassword,
createHsmConfiguration_hsmServerPublicCertificate,
CreateHsmConfigurationResponse (..),
newCreateHsmConfigurationResponse,
createHsmConfigurationResponse_hsmConfiguration,
createHsmConfigurationResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateHsmConfiguration = CreateHsmConfiguration'
{
CreateHsmConfiguration -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateHsmConfiguration -> Text
hsmConfigurationIdentifier :: Prelude.Text,
CreateHsmConfiguration -> Text
description :: Prelude.Text,
CreateHsmConfiguration -> Text
hsmIpAddress :: Prelude.Text,
CreateHsmConfiguration -> Text
hsmPartitionName :: Prelude.Text,
CreateHsmConfiguration -> Text
hsmPartitionPassword :: Prelude.Text,
CreateHsmConfiguration -> Text
hsmServerPublicCertificate :: Prelude.Text
}
deriving (CreateHsmConfiguration -> CreateHsmConfiguration -> Bool
(CreateHsmConfiguration -> CreateHsmConfiguration -> Bool)
-> (CreateHsmConfiguration -> CreateHsmConfiguration -> Bool)
-> Eq CreateHsmConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateHsmConfiguration -> CreateHsmConfiguration -> Bool
$c/= :: CreateHsmConfiguration -> CreateHsmConfiguration -> Bool
== :: CreateHsmConfiguration -> CreateHsmConfiguration -> Bool
$c== :: CreateHsmConfiguration -> CreateHsmConfiguration -> Bool
Prelude.Eq, ReadPrec [CreateHsmConfiguration]
ReadPrec CreateHsmConfiguration
Int -> ReadS CreateHsmConfiguration
ReadS [CreateHsmConfiguration]
(Int -> ReadS CreateHsmConfiguration)
-> ReadS [CreateHsmConfiguration]
-> ReadPrec CreateHsmConfiguration
-> ReadPrec [CreateHsmConfiguration]
-> Read CreateHsmConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateHsmConfiguration]
$creadListPrec :: ReadPrec [CreateHsmConfiguration]
readPrec :: ReadPrec CreateHsmConfiguration
$creadPrec :: ReadPrec CreateHsmConfiguration
readList :: ReadS [CreateHsmConfiguration]
$creadList :: ReadS [CreateHsmConfiguration]
readsPrec :: Int -> ReadS CreateHsmConfiguration
$creadsPrec :: Int -> ReadS CreateHsmConfiguration
Prelude.Read, Int -> CreateHsmConfiguration -> ShowS
[CreateHsmConfiguration] -> ShowS
CreateHsmConfiguration -> String
(Int -> CreateHsmConfiguration -> ShowS)
-> (CreateHsmConfiguration -> String)
-> ([CreateHsmConfiguration] -> ShowS)
-> Show CreateHsmConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateHsmConfiguration] -> ShowS
$cshowList :: [CreateHsmConfiguration] -> ShowS
show :: CreateHsmConfiguration -> String
$cshow :: CreateHsmConfiguration -> String
showsPrec :: Int -> CreateHsmConfiguration -> ShowS
$cshowsPrec :: Int -> CreateHsmConfiguration -> ShowS
Prelude.Show, (forall x. CreateHsmConfiguration -> Rep CreateHsmConfiguration x)
-> (forall x.
Rep CreateHsmConfiguration x -> CreateHsmConfiguration)
-> Generic CreateHsmConfiguration
forall x. Rep CreateHsmConfiguration x -> CreateHsmConfiguration
forall x. CreateHsmConfiguration -> Rep CreateHsmConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateHsmConfiguration x -> CreateHsmConfiguration
$cfrom :: forall x. CreateHsmConfiguration -> Rep CreateHsmConfiguration x
Prelude.Generic)
newCreateHsmConfiguration ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateHsmConfiguration
newCreateHsmConfiguration :: Text
-> Text -> Text -> Text -> Text -> Text -> CreateHsmConfiguration
newCreateHsmConfiguration
Text
pHsmConfigurationIdentifier_
Text
pDescription_
Text
pHsmIpAddress_
Text
pHsmPartitionName_
Text
pHsmPartitionPassword_
Text
pHsmServerPublicCertificate_ =
CreateHsmConfiguration' :: Maybe [Tag]
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> CreateHsmConfiguration
CreateHsmConfiguration'
{ $sel:tags:CreateHsmConfiguration' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:hsmConfigurationIdentifier:CreateHsmConfiguration' :: Text
hsmConfigurationIdentifier =
Text
pHsmConfigurationIdentifier_,
$sel:description:CreateHsmConfiguration' :: Text
description = Text
pDescription_,
$sel:hsmIpAddress:CreateHsmConfiguration' :: Text
hsmIpAddress = Text
pHsmIpAddress_,
$sel:hsmPartitionName:CreateHsmConfiguration' :: Text
hsmPartitionName = Text
pHsmPartitionName_,
$sel:hsmPartitionPassword:CreateHsmConfiguration' :: Text
hsmPartitionPassword = Text
pHsmPartitionPassword_,
$sel:hsmServerPublicCertificate:CreateHsmConfiguration' :: Text
hsmServerPublicCertificate =
Text
pHsmServerPublicCertificate_
}
createHsmConfiguration_tags :: Lens.Lens' CreateHsmConfiguration (Prelude.Maybe [Tag])
createHsmConfiguration_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateHsmConfiguration -> f CreateHsmConfiguration
createHsmConfiguration_tags = (CreateHsmConfiguration -> Maybe [Tag])
-> (CreateHsmConfiguration
-> Maybe [Tag] -> CreateHsmConfiguration)
-> Lens
CreateHsmConfiguration
CreateHsmConfiguration
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHsmConfiguration' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateHsmConfiguration' :: CreateHsmConfiguration -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateHsmConfiguration
s@CreateHsmConfiguration' {} Maybe [Tag]
a -> CreateHsmConfiguration
s {$sel:tags:CreateHsmConfiguration' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateHsmConfiguration) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateHsmConfiguration -> f CreateHsmConfiguration)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateHsmConfiguration
-> f CreateHsmConfiguration
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createHsmConfiguration_hsmConfigurationIdentifier :: Lens.Lens' CreateHsmConfiguration Prelude.Text
createHsmConfiguration_hsmConfigurationIdentifier :: (Text -> f Text)
-> CreateHsmConfiguration -> f CreateHsmConfiguration
createHsmConfiguration_hsmConfigurationIdentifier = (CreateHsmConfiguration -> Text)
-> (CreateHsmConfiguration -> Text -> CreateHsmConfiguration)
-> Lens CreateHsmConfiguration CreateHsmConfiguration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHsmConfiguration' {Text
hsmConfigurationIdentifier :: Text
$sel:hsmConfigurationIdentifier:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
hsmConfigurationIdentifier} -> Text
hsmConfigurationIdentifier) (\s :: CreateHsmConfiguration
s@CreateHsmConfiguration' {} Text
a -> CreateHsmConfiguration
s {$sel:hsmConfigurationIdentifier:CreateHsmConfiguration' :: Text
hsmConfigurationIdentifier = Text
a} :: CreateHsmConfiguration)
createHsmConfiguration_description :: Lens.Lens' CreateHsmConfiguration Prelude.Text
createHsmConfiguration_description :: (Text -> f Text)
-> CreateHsmConfiguration -> f CreateHsmConfiguration
createHsmConfiguration_description = (CreateHsmConfiguration -> Text)
-> (CreateHsmConfiguration -> Text -> CreateHsmConfiguration)
-> Lens CreateHsmConfiguration CreateHsmConfiguration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHsmConfiguration' {Text
description :: Text
$sel:description:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
description} -> Text
description) (\s :: CreateHsmConfiguration
s@CreateHsmConfiguration' {} Text
a -> CreateHsmConfiguration
s {$sel:description:CreateHsmConfiguration' :: Text
description = Text
a} :: CreateHsmConfiguration)
createHsmConfiguration_hsmIpAddress :: Lens.Lens' CreateHsmConfiguration Prelude.Text
createHsmConfiguration_hsmIpAddress :: (Text -> f Text)
-> CreateHsmConfiguration -> f CreateHsmConfiguration
createHsmConfiguration_hsmIpAddress = (CreateHsmConfiguration -> Text)
-> (CreateHsmConfiguration -> Text -> CreateHsmConfiguration)
-> Lens CreateHsmConfiguration CreateHsmConfiguration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHsmConfiguration' {Text
hsmIpAddress :: Text
$sel:hsmIpAddress:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
hsmIpAddress} -> Text
hsmIpAddress) (\s :: CreateHsmConfiguration
s@CreateHsmConfiguration' {} Text
a -> CreateHsmConfiguration
s {$sel:hsmIpAddress:CreateHsmConfiguration' :: Text
hsmIpAddress = Text
a} :: CreateHsmConfiguration)
createHsmConfiguration_hsmPartitionName :: Lens.Lens' CreateHsmConfiguration Prelude.Text
createHsmConfiguration_hsmPartitionName :: (Text -> f Text)
-> CreateHsmConfiguration -> f CreateHsmConfiguration
createHsmConfiguration_hsmPartitionName = (CreateHsmConfiguration -> Text)
-> (CreateHsmConfiguration -> Text -> CreateHsmConfiguration)
-> Lens CreateHsmConfiguration CreateHsmConfiguration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHsmConfiguration' {Text
hsmPartitionName :: Text
$sel:hsmPartitionName:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
hsmPartitionName} -> Text
hsmPartitionName) (\s :: CreateHsmConfiguration
s@CreateHsmConfiguration' {} Text
a -> CreateHsmConfiguration
s {$sel:hsmPartitionName:CreateHsmConfiguration' :: Text
hsmPartitionName = Text
a} :: CreateHsmConfiguration)
createHsmConfiguration_hsmPartitionPassword :: Lens.Lens' CreateHsmConfiguration Prelude.Text
createHsmConfiguration_hsmPartitionPassword :: (Text -> f Text)
-> CreateHsmConfiguration -> f CreateHsmConfiguration
createHsmConfiguration_hsmPartitionPassword = (CreateHsmConfiguration -> Text)
-> (CreateHsmConfiguration -> Text -> CreateHsmConfiguration)
-> Lens CreateHsmConfiguration CreateHsmConfiguration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHsmConfiguration' {Text
hsmPartitionPassword :: Text
$sel:hsmPartitionPassword:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
hsmPartitionPassword} -> Text
hsmPartitionPassword) (\s :: CreateHsmConfiguration
s@CreateHsmConfiguration' {} Text
a -> CreateHsmConfiguration
s {$sel:hsmPartitionPassword:CreateHsmConfiguration' :: Text
hsmPartitionPassword = Text
a} :: CreateHsmConfiguration)
createHsmConfiguration_hsmServerPublicCertificate :: Lens.Lens' CreateHsmConfiguration Prelude.Text
createHsmConfiguration_hsmServerPublicCertificate :: (Text -> f Text)
-> CreateHsmConfiguration -> f CreateHsmConfiguration
createHsmConfiguration_hsmServerPublicCertificate = (CreateHsmConfiguration -> Text)
-> (CreateHsmConfiguration -> Text -> CreateHsmConfiguration)
-> Lens CreateHsmConfiguration CreateHsmConfiguration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHsmConfiguration' {Text
hsmServerPublicCertificate :: Text
$sel:hsmServerPublicCertificate:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
hsmServerPublicCertificate} -> Text
hsmServerPublicCertificate) (\s :: CreateHsmConfiguration
s@CreateHsmConfiguration' {} Text
a -> CreateHsmConfiguration
s {$sel:hsmServerPublicCertificate:CreateHsmConfiguration' :: Text
hsmServerPublicCertificate = Text
a} :: CreateHsmConfiguration)
instance Core.AWSRequest CreateHsmConfiguration where
type
AWSResponse CreateHsmConfiguration =
CreateHsmConfigurationResponse
request :: CreateHsmConfiguration -> Request CreateHsmConfiguration
request = Service -> CreateHsmConfiguration -> Request CreateHsmConfiguration
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy CreateHsmConfiguration
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateHsmConfiguration)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateHsmConfiguration))
-> Logger
-> Service
-> Proxy CreateHsmConfiguration
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateHsmConfiguration)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"CreateHsmConfigurationResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe HsmConfiguration -> Int -> CreateHsmConfigurationResponse
CreateHsmConfigurationResponse'
(Maybe HsmConfiguration -> Int -> CreateHsmConfigurationResponse)
-> Either String (Maybe HsmConfiguration)
-> Either String (Int -> CreateHsmConfigurationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe HsmConfiguration)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"HsmConfiguration")
Either String (Int -> CreateHsmConfigurationResponse)
-> Either String Int
-> Either String CreateHsmConfigurationResponse
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 CreateHsmConfiguration
instance Prelude.NFData CreateHsmConfiguration
instance Core.ToHeaders CreateHsmConfiguration where
toHeaders :: CreateHsmConfiguration -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateHsmConfiguration -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CreateHsmConfiguration where
toPath :: CreateHsmConfiguration -> ByteString
toPath = ByteString -> CreateHsmConfiguration -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateHsmConfiguration where
toQuery :: CreateHsmConfiguration -> QueryString
toQuery CreateHsmConfiguration' {Maybe [Tag]
Text
hsmServerPublicCertificate :: Text
hsmPartitionPassword :: Text
hsmPartitionName :: Text
hsmIpAddress :: Text
description :: Text
hsmConfigurationIdentifier :: Text
tags :: Maybe [Tag]
$sel:hsmServerPublicCertificate:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
$sel:hsmPartitionPassword:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
$sel:hsmPartitionName:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
$sel:hsmIpAddress:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
$sel:description:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
$sel:hsmConfigurationIdentifier:CreateHsmConfiguration' :: CreateHsmConfiguration -> Text
$sel:tags:CreateHsmConfiguration' :: CreateHsmConfiguration -> Maybe [Tag]
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"CreateHsmConfiguration" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
ByteString
"Tags"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Tag] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Tag" ([Tag] -> QueryString) -> Maybe [Tag] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags),
ByteString
"HsmConfigurationIdentifier"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
hsmConfigurationIdentifier,
ByteString
"Description" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
description,
ByteString
"HsmIpAddress" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
hsmIpAddress,
ByteString
"HsmPartitionName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
hsmPartitionName,
ByteString
"HsmPartitionPassword" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
hsmPartitionPassword,
ByteString
"HsmServerPublicCertificate"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
hsmServerPublicCertificate
]
data CreateHsmConfigurationResponse = CreateHsmConfigurationResponse'
{ CreateHsmConfigurationResponse -> Maybe HsmConfiguration
hsmConfiguration :: Prelude.Maybe HsmConfiguration,
CreateHsmConfigurationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateHsmConfigurationResponse
-> CreateHsmConfigurationResponse -> Bool
(CreateHsmConfigurationResponse
-> CreateHsmConfigurationResponse -> Bool)
-> (CreateHsmConfigurationResponse
-> CreateHsmConfigurationResponse -> Bool)
-> Eq CreateHsmConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateHsmConfigurationResponse
-> CreateHsmConfigurationResponse -> Bool
$c/= :: CreateHsmConfigurationResponse
-> CreateHsmConfigurationResponse -> Bool
== :: CreateHsmConfigurationResponse
-> CreateHsmConfigurationResponse -> Bool
$c== :: CreateHsmConfigurationResponse
-> CreateHsmConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [CreateHsmConfigurationResponse]
ReadPrec CreateHsmConfigurationResponse
Int -> ReadS CreateHsmConfigurationResponse
ReadS [CreateHsmConfigurationResponse]
(Int -> ReadS CreateHsmConfigurationResponse)
-> ReadS [CreateHsmConfigurationResponse]
-> ReadPrec CreateHsmConfigurationResponse
-> ReadPrec [CreateHsmConfigurationResponse]
-> Read CreateHsmConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateHsmConfigurationResponse]
$creadListPrec :: ReadPrec [CreateHsmConfigurationResponse]
readPrec :: ReadPrec CreateHsmConfigurationResponse
$creadPrec :: ReadPrec CreateHsmConfigurationResponse
readList :: ReadS [CreateHsmConfigurationResponse]
$creadList :: ReadS [CreateHsmConfigurationResponse]
readsPrec :: Int -> ReadS CreateHsmConfigurationResponse
$creadsPrec :: Int -> ReadS CreateHsmConfigurationResponse
Prelude.Read, Int -> CreateHsmConfigurationResponse -> ShowS
[CreateHsmConfigurationResponse] -> ShowS
CreateHsmConfigurationResponse -> String
(Int -> CreateHsmConfigurationResponse -> ShowS)
-> (CreateHsmConfigurationResponse -> String)
-> ([CreateHsmConfigurationResponse] -> ShowS)
-> Show CreateHsmConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateHsmConfigurationResponse] -> ShowS
$cshowList :: [CreateHsmConfigurationResponse] -> ShowS
show :: CreateHsmConfigurationResponse -> String
$cshow :: CreateHsmConfigurationResponse -> String
showsPrec :: Int -> CreateHsmConfigurationResponse -> ShowS
$cshowsPrec :: Int -> CreateHsmConfigurationResponse -> ShowS
Prelude.Show, (forall x.
CreateHsmConfigurationResponse
-> Rep CreateHsmConfigurationResponse x)
-> (forall x.
Rep CreateHsmConfigurationResponse x
-> CreateHsmConfigurationResponse)
-> Generic CreateHsmConfigurationResponse
forall x.
Rep CreateHsmConfigurationResponse x
-> CreateHsmConfigurationResponse
forall x.
CreateHsmConfigurationResponse
-> Rep CreateHsmConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateHsmConfigurationResponse x
-> CreateHsmConfigurationResponse
$cfrom :: forall x.
CreateHsmConfigurationResponse
-> Rep CreateHsmConfigurationResponse x
Prelude.Generic)
newCreateHsmConfigurationResponse ::
Prelude.Int ->
CreateHsmConfigurationResponse
newCreateHsmConfigurationResponse :: Int -> CreateHsmConfigurationResponse
newCreateHsmConfigurationResponse Int
pHttpStatus_ =
CreateHsmConfigurationResponse' :: Maybe HsmConfiguration -> Int -> CreateHsmConfigurationResponse
CreateHsmConfigurationResponse'
{ $sel:hsmConfiguration:CreateHsmConfigurationResponse' :: Maybe HsmConfiguration
hsmConfiguration =
Maybe HsmConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateHsmConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createHsmConfigurationResponse_hsmConfiguration :: Lens.Lens' CreateHsmConfigurationResponse (Prelude.Maybe HsmConfiguration)
createHsmConfigurationResponse_hsmConfiguration :: (Maybe HsmConfiguration -> f (Maybe HsmConfiguration))
-> CreateHsmConfigurationResponse
-> f CreateHsmConfigurationResponse
createHsmConfigurationResponse_hsmConfiguration = (CreateHsmConfigurationResponse -> Maybe HsmConfiguration)
-> (CreateHsmConfigurationResponse
-> Maybe HsmConfiguration -> CreateHsmConfigurationResponse)
-> Lens
CreateHsmConfigurationResponse
CreateHsmConfigurationResponse
(Maybe HsmConfiguration)
(Maybe HsmConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHsmConfigurationResponse' {Maybe HsmConfiguration
hsmConfiguration :: Maybe HsmConfiguration
$sel:hsmConfiguration:CreateHsmConfigurationResponse' :: CreateHsmConfigurationResponse -> Maybe HsmConfiguration
hsmConfiguration} -> Maybe HsmConfiguration
hsmConfiguration) (\s :: CreateHsmConfigurationResponse
s@CreateHsmConfigurationResponse' {} Maybe HsmConfiguration
a -> CreateHsmConfigurationResponse
s {$sel:hsmConfiguration:CreateHsmConfigurationResponse' :: Maybe HsmConfiguration
hsmConfiguration = Maybe HsmConfiguration
a} :: CreateHsmConfigurationResponse)
createHsmConfigurationResponse_httpStatus :: Lens.Lens' CreateHsmConfigurationResponse Prelude.Int
createHsmConfigurationResponse_httpStatus :: (Int -> f Int)
-> CreateHsmConfigurationResponse
-> f CreateHsmConfigurationResponse
createHsmConfigurationResponse_httpStatus = (CreateHsmConfigurationResponse -> Int)
-> (CreateHsmConfigurationResponse
-> Int -> CreateHsmConfigurationResponse)
-> Lens
CreateHsmConfigurationResponse
CreateHsmConfigurationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHsmConfigurationResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateHsmConfigurationResponse' :: CreateHsmConfigurationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateHsmConfigurationResponse
s@CreateHsmConfigurationResponse' {} Int
a -> CreateHsmConfigurationResponse
s {$sel:httpStatus:CreateHsmConfigurationResponse' :: Int
httpStatus = Int
a} :: CreateHsmConfigurationResponse)
instance
Prelude.NFData
CreateHsmConfigurationResponse