{-# 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.Organizations.CreateGovCloudAccount
(
CreateGovCloudAccount (..),
newCreateGovCloudAccount,
createGovCloudAccount_iamUserAccessToBilling,
createGovCloudAccount_roleName,
createGovCloudAccount_tags,
createGovCloudAccount_email,
createGovCloudAccount_accountName,
CreateGovCloudAccountResponse (..),
newCreateGovCloudAccountResponse,
createGovCloudAccountResponse_createAccountStatus,
createGovCloudAccountResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Organizations.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateGovCloudAccount = CreateGovCloudAccount'
{
CreateGovCloudAccount -> Maybe IAMUserAccessToBilling
iamUserAccessToBilling :: Prelude.Maybe IAMUserAccessToBilling,
CreateGovCloudAccount -> Maybe Text
roleName :: Prelude.Maybe Prelude.Text,
CreateGovCloudAccount -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateGovCloudAccount -> Sensitive Text
email :: Core.Sensitive Prelude.Text,
CreateGovCloudAccount -> Sensitive Text
accountName :: Core.Sensitive Prelude.Text
}
deriving (CreateGovCloudAccount -> CreateGovCloudAccount -> Bool
(CreateGovCloudAccount -> CreateGovCloudAccount -> Bool)
-> (CreateGovCloudAccount -> CreateGovCloudAccount -> Bool)
-> Eq CreateGovCloudAccount
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateGovCloudAccount -> CreateGovCloudAccount -> Bool
$c/= :: CreateGovCloudAccount -> CreateGovCloudAccount -> Bool
== :: CreateGovCloudAccount -> CreateGovCloudAccount -> Bool
$c== :: CreateGovCloudAccount -> CreateGovCloudAccount -> Bool
Prelude.Eq, Int -> CreateGovCloudAccount -> ShowS
[CreateGovCloudAccount] -> ShowS
CreateGovCloudAccount -> String
(Int -> CreateGovCloudAccount -> ShowS)
-> (CreateGovCloudAccount -> String)
-> ([CreateGovCloudAccount] -> ShowS)
-> Show CreateGovCloudAccount
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateGovCloudAccount] -> ShowS
$cshowList :: [CreateGovCloudAccount] -> ShowS
show :: CreateGovCloudAccount -> String
$cshow :: CreateGovCloudAccount -> String
showsPrec :: Int -> CreateGovCloudAccount -> ShowS
$cshowsPrec :: Int -> CreateGovCloudAccount -> ShowS
Prelude.Show, (forall x. CreateGovCloudAccount -> Rep CreateGovCloudAccount x)
-> (forall x. Rep CreateGovCloudAccount x -> CreateGovCloudAccount)
-> Generic CreateGovCloudAccount
forall x. Rep CreateGovCloudAccount x -> CreateGovCloudAccount
forall x. CreateGovCloudAccount -> Rep CreateGovCloudAccount x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateGovCloudAccount x -> CreateGovCloudAccount
$cfrom :: forall x. CreateGovCloudAccount -> Rep CreateGovCloudAccount x
Prelude.Generic)
newCreateGovCloudAccount ::
Prelude.Text ->
Prelude.Text ->
CreateGovCloudAccount
newCreateGovCloudAccount :: Text -> Text -> CreateGovCloudAccount
newCreateGovCloudAccount Text
pEmail_ Text
pAccountName_ =
CreateGovCloudAccount' :: Maybe IAMUserAccessToBilling
-> Maybe Text
-> Maybe [Tag]
-> Sensitive Text
-> Sensitive Text
-> CreateGovCloudAccount
CreateGovCloudAccount'
{ $sel:iamUserAccessToBilling:CreateGovCloudAccount' :: Maybe IAMUserAccessToBilling
iamUserAccessToBilling =
Maybe IAMUserAccessToBilling
forall a. Maybe a
Prelude.Nothing,
$sel:roleName:CreateGovCloudAccount' :: Maybe Text
roleName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateGovCloudAccount' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:email:CreateGovCloudAccount' :: Sensitive Text
email = Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pEmail_,
$sel:accountName:CreateGovCloudAccount' :: Sensitive Text
accountName = Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pAccountName_
}
createGovCloudAccount_iamUserAccessToBilling :: Lens.Lens' CreateGovCloudAccount (Prelude.Maybe IAMUserAccessToBilling)
createGovCloudAccount_iamUserAccessToBilling :: (Maybe IAMUserAccessToBilling -> f (Maybe IAMUserAccessToBilling))
-> CreateGovCloudAccount -> f CreateGovCloudAccount
createGovCloudAccount_iamUserAccessToBilling = (CreateGovCloudAccount -> Maybe IAMUserAccessToBilling)
-> (CreateGovCloudAccount
-> Maybe IAMUserAccessToBilling -> CreateGovCloudAccount)
-> Lens
CreateGovCloudAccount
CreateGovCloudAccount
(Maybe IAMUserAccessToBilling)
(Maybe IAMUserAccessToBilling)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateGovCloudAccount' {Maybe IAMUserAccessToBilling
iamUserAccessToBilling :: Maybe IAMUserAccessToBilling
$sel:iamUserAccessToBilling:CreateGovCloudAccount' :: CreateGovCloudAccount -> Maybe IAMUserAccessToBilling
iamUserAccessToBilling} -> Maybe IAMUserAccessToBilling
iamUserAccessToBilling) (\s :: CreateGovCloudAccount
s@CreateGovCloudAccount' {} Maybe IAMUserAccessToBilling
a -> CreateGovCloudAccount
s {$sel:iamUserAccessToBilling:CreateGovCloudAccount' :: Maybe IAMUserAccessToBilling
iamUserAccessToBilling = Maybe IAMUserAccessToBilling
a} :: CreateGovCloudAccount)
createGovCloudAccount_roleName :: Lens.Lens' CreateGovCloudAccount (Prelude.Maybe Prelude.Text)
createGovCloudAccount_roleName :: (Maybe Text -> f (Maybe Text))
-> CreateGovCloudAccount -> f CreateGovCloudAccount
createGovCloudAccount_roleName = (CreateGovCloudAccount -> Maybe Text)
-> (CreateGovCloudAccount -> Maybe Text -> CreateGovCloudAccount)
-> Lens
CreateGovCloudAccount
CreateGovCloudAccount
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateGovCloudAccount' {Maybe Text
roleName :: Maybe Text
$sel:roleName:CreateGovCloudAccount' :: CreateGovCloudAccount -> Maybe Text
roleName} -> Maybe Text
roleName) (\s :: CreateGovCloudAccount
s@CreateGovCloudAccount' {} Maybe Text
a -> CreateGovCloudAccount
s {$sel:roleName:CreateGovCloudAccount' :: Maybe Text
roleName = Maybe Text
a} :: CreateGovCloudAccount)
createGovCloudAccount_tags :: Lens.Lens' CreateGovCloudAccount (Prelude.Maybe [Tag])
createGovCloudAccount_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateGovCloudAccount -> f CreateGovCloudAccount
createGovCloudAccount_tags = (CreateGovCloudAccount -> Maybe [Tag])
-> (CreateGovCloudAccount -> Maybe [Tag] -> CreateGovCloudAccount)
-> Lens
CreateGovCloudAccount
CreateGovCloudAccount
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateGovCloudAccount' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateGovCloudAccount' :: CreateGovCloudAccount -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateGovCloudAccount
s@CreateGovCloudAccount' {} Maybe [Tag]
a -> CreateGovCloudAccount
s {$sel:tags:CreateGovCloudAccount' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateGovCloudAccount) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateGovCloudAccount -> f CreateGovCloudAccount)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateGovCloudAccount
-> f CreateGovCloudAccount
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
createGovCloudAccount_email :: Lens.Lens' CreateGovCloudAccount Prelude.Text
createGovCloudAccount_email :: (Text -> f Text)
-> CreateGovCloudAccount -> f CreateGovCloudAccount
createGovCloudAccount_email = (CreateGovCloudAccount -> Sensitive Text)
-> (CreateGovCloudAccount
-> Sensitive Text -> CreateGovCloudAccount)
-> Lens
CreateGovCloudAccount
CreateGovCloudAccount
(Sensitive Text)
(Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateGovCloudAccount' {Sensitive Text
email :: Sensitive Text
$sel:email:CreateGovCloudAccount' :: CreateGovCloudAccount -> Sensitive Text
email} -> Sensitive Text
email) (\s :: CreateGovCloudAccount
s@CreateGovCloudAccount' {} Sensitive Text
a -> CreateGovCloudAccount
s {$sel:email:CreateGovCloudAccount' :: Sensitive Text
email = Sensitive Text
a} :: CreateGovCloudAccount) ((Sensitive Text -> f (Sensitive Text))
-> CreateGovCloudAccount -> f CreateGovCloudAccount)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> CreateGovCloudAccount
-> f CreateGovCloudAccount
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive
createGovCloudAccount_accountName :: Lens.Lens' CreateGovCloudAccount Prelude.Text
createGovCloudAccount_accountName :: (Text -> f Text)
-> CreateGovCloudAccount -> f CreateGovCloudAccount
createGovCloudAccount_accountName = (CreateGovCloudAccount -> Sensitive Text)
-> (CreateGovCloudAccount
-> Sensitive Text -> CreateGovCloudAccount)
-> Lens
CreateGovCloudAccount
CreateGovCloudAccount
(Sensitive Text)
(Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateGovCloudAccount' {Sensitive Text
accountName :: Sensitive Text
$sel:accountName:CreateGovCloudAccount' :: CreateGovCloudAccount -> Sensitive Text
accountName} -> Sensitive Text
accountName) (\s :: CreateGovCloudAccount
s@CreateGovCloudAccount' {} Sensitive Text
a -> CreateGovCloudAccount
s {$sel:accountName:CreateGovCloudAccount' :: Sensitive Text
accountName = Sensitive Text
a} :: CreateGovCloudAccount) ((Sensitive Text -> f (Sensitive Text))
-> CreateGovCloudAccount -> f CreateGovCloudAccount)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> CreateGovCloudAccount
-> f CreateGovCloudAccount
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive
instance Core.AWSRequest CreateGovCloudAccount where
type
AWSResponse CreateGovCloudAccount =
CreateGovCloudAccountResponse
request :: CreateGovCloudAccount -> Request CreateGovCloudAccount
request = Service -> CreateGovCloudAccount -> Request CreateGovCloudAccount
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateGovCloudAccount
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateGovCloudAccount)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateGovCloudAccount))
-> Logger
-> Service
-> Proxy CreateGovCloudAccount
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateGovCloudAccount)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe CreateAccountStatus -> Int -> CreateGovCloudAccountResponse
CreateGovCloudAccountResponse'
(Maybe CreateAccountStatus -> Int -> CreateGovCloudAccountResponse)
-> Either String (Maybe CreateAccountStatus)
-> Either String (Int -> CreateGovCloudAccountResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe CreateAccountStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreateAccountStatus")
Either String (Int -> CreateGovCloudAccountResponse)
-> Either String Int -> Either String CreateGovCloudAccountResponse
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 CreateGovCloudAccount
instance Prelude.NFData CreateGovCloudAccount
instance Core.ToHeaders CreateGovCloudAccount where
toHeaders :: CreateGovCloudAccount -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateGovCloudAccount -> 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
"AWSOrganizationsV20161128.CreateGovCloudAccount" ::
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 CreateGovCloudAccount where
toJSON :: CreateGovCloudAccount -> Value
toJSON CreateGovCloudAccount' {Maybe [Tag]
Maybe Text
Maybe IAMUserAccessToBilling
Sensitive Text
accountName :: Sensitive Text
email :: Sensitive Text
tags :: Maybe [Tag]
roleName :: Maybe Text
iamUserAccessToBilling :: Maybe IAMUserAccessToBilling
$sel:accountName:CreateGovCloudAccount' :: CreateGovCloudAccount -> Sensitive Text
$sel:email:CreateGovCloudAccount' :: CreateGovCloudAccount -> Sensitive Text
$sel:tags:CreateGovCloudAccount' :: CreateGovCloudAccount -> Maybe [Tag]
$sel:roleName:CreateGovCloudAccount' :: CreateGovCloudAccount -> Maybe Text
$sel:iamUserAccessToBilling:CreateGovCloudAccount' :: CreateGovCloudAccount -> Maybe IAMUserAccessToBilling
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"IamUserAccessToBilling" Text -> IAMUserAccessToBilling -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(IAMUserAccessToBilling -> Pair)
-> Maybe IAMUserAccessToBilling -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IAMUserAccessToBilling
iamUserAccessToBilling,
(Text
"RoleName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
roleName,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Email" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
email),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"AccountName" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
accountName)
]
)
instance Core.ToPath CreateGovCloudAccount where
toPath :: CreateGovCloudAccount -> ByteString
toPath = ByteString -> CreateGovCloudAccount -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateGovCloudAccount where
toQuery :: CreateGovCloudAccount -> QueryString
toQuery = QueryString -> CreateGovCloudAccount -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateGovCloudAccountResponse = CreateGovCloudAccountResponse'
{ CreateGovCloudAccountResponse -> Maybe CreateAccountStatus
createAccountStatus :: Prelude.Maybe CreateAccountStatus,
CreateGovCloudAccountResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateGovCloudAccountResponse
-> CreateGovCloudAccountResponse -> Bool
(CreateGovCloudAccountResponse
-> CreateGovCloudAccountResponse -> Bool)
-> (CreateGovCloudAccountResponse
-> CreateGovCloudAccountResponse -> Bool)
-> Eq CreateGovCloudAccountResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateGovCloudAccountResponse
-> CreateGovCloudAccountResponse -> Bool
$c/= :: CreateGovCloudAccountResponse
-> CreateGovCloudAccountResponse -> Bool
== :: CreateGovCloudAccountResponse
-> CreateGovCloudAccountResponse -> Bool
$c== :: CreateGovCloudAccountResponse
-> CreateGovCloudAccountResponse -> Bool
Prelude.Eq, Int -> CreateGovCloudAccountResponse -> ShowS
[CreateGovCloudAccountResponse] -> ShowS
CreateGovCloudAccountResponse -> String
(Int -> CreateGovCloudAccountResponse -> ShowS)
-> (CreateGovCloudAccountResponse -> String)
-> ([CreateGovCloudAccountResponse] -> ShowS)
-> Show CreateGovCloudAccountResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateGovCloudAccountResponse] -> ShowS
$cshowList :: [CreateGovCloudAccountResponse] -> ShowS
show :: CreateGovCloudAccountResponse -> String
$cshow :: CreateGovCloudAccountResponse -> String
showsPrec :: Int -> CreateGovCloudAccountResponse -> ShowS
$cshowsPrec :: Int -> CreateGovCloudAccountResponse -> ShowS
Prelude.Show, (forall x.
CreateGovCloudAccountResponse
-> Rep CreateGovCloudAccountResponse x)
-> (forall x.
Rep CreateGovCloudAccountResponse x
-> CreateGovCloudAccountResponse)
-> Generic CreateGovCloudAccountResponse
forall x.
Rep CreateGovCloudAccountResponse x
-> CreateGovCloudAccountResponse
forall x.
CreateGovCloudAccountResponse
-> Rep CreateGovCloudAccountResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateGovCloudAccountResponse x
-> CreateGovCloudAccountResponse
$cfrom :: forall x.
CreateGovCloudAccountResponse
-> Rep CreateGovCloudAccountResponse x
Prelude.Generic)
newCreateGovCloudAccountResponse ::
Prelude.Int ->
CreateGovCloudAccountResponse
newCreateGovCloudAccountResponse :: Int -> CreateGovCloudAccountResponse
newCreateGovCloudAccountResponse Int
pHttpStatus_ =
CreateGovCloudAccountResponse' :: Maybe CreateAccountStatus -> Int -> CreateGovCloudAccountResponse
CreateGovCloudAccountResponse'
{ $sel:createAccountStatus:CreateGovCloudAccountResponse' :: Maybe CreateAccountStatus
createAccountStatus =
Maybe CreateAccountStatus
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateGovCloudAccountResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createGovCloudAccountResponse_createAccountStatus :: Lens.Lens' CreateGovCloudAccountResponse (Prelude.Maybe CreateAccountStatus)
createGovCloudAccountResponse_createAccountStatus :: (Maybe CreateAccountStatus -> f (Maybe CreateAccountStatus))
-> CreateGovCloudAccountResponse -> f CreateGovCloudAccountResponse
createGovCloudAccountResponse_createAccountStatus = (CreateGovCloudAccountResponse -> Maybe CreateAccountStatus)
-> (CreateGovCloudAccountResponse
-> Maybe CreateAccountStatus -> CreateGovCloudAccountResponse)
-> Lens
CreateGovCloudAccountResponse
CreateGovCloudAccountResponse
(Maybe CreateAccountStatus)
(Maybe CreateAccountStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateGovCloudAccountResponse' {Maybe CreateAccountStatus
createAccountStatus :: Maybe CreateAccountStatus
$sel:createAccountStatus:CreateGovCloudAccountResponse' :: CreateGovCloudAccountResponse -> Maybe CreateAccountStatus
createAccountStatus} -> Maybe CreateAccountStatus
createAccountStatus) (\s :: CreateGovCloudAccountResponse
s@CreateGovCloudAccountResponse' {} Maybe CreateAccountStatus
a -> CreateGovCloudAccountResponse
s {$sel:createAccountStatus:CreateGovCloudAccountResponse' :: Maybe CreateAccountStatus
createAccountStatus = Maybe CreateAccountStatus
a} :: CreateGovCloudAccountResponse)
createGovCloudAccountResponse_httpStatus :: Lens.Lens' CreateGovCloudAccountResponse Prelude.Int
createGovCloudAccountResponse_httpStatus :: (Int -> f Int)
-> CreateGovCloudAccountResponse -> f CreateGovCloudAccountResponse
createGovCloudAccountResponse_httpStatus = (CreateGovCloudAccountResponse -> Int)
-> (CreateGovCloudAccountResponse
-> Int -> CreateGovCloudAccountResponse)
-> Lens
CreateGovCloudAccountResponse CreateGovCloudAccountResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateGovCloudAccountResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateGovCloudAccountResponse' :: CreateGovCloudAccountResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateGovCloudAccountResponse
s@CreateGovCloudAccountResponse' {} Int
a -> CreateGovCloudAccountResponse
s {$sel:httpStatus:CreateGovCloudAccountResponse' :: Int
httpStatus = Int
a} :: CreateGovCloudAccountResponse)
instance Prelude.NFData CreateGovCloudAccountResponse