{-# 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.QuickSight.CreateAccountCustomization
(
CreateAccountCustomization (..),
newCreateAccountCustomization,
createAccountCustomization_namespace,
createAccountCustomization_tags,
createAccountCustomization_awsAccountId,
createAccountCustomization_accountCustomization,
CreateAccountCustomizationResponse (..),
newCreateAccountCustomizationResponse,
createAccountCustomizationResponse_requestId,
createAccountCustomizationResponse_accountCustomization,
createAccountCustomizationResponse_arn,
createAccountCustomizationResponse_namespace,
createAccountCustomizationResponse_awsAccountId,
createAccountCustomizationResponse_status,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QuickSight.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateAccountCustomization = CreateAccountCustomization'
{
CreateAccountCustomization -> Maybe Text
namespace :: Prelude.Maybe Prelude.Text,
CreateAccountCustomization -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
CreateAccountCustomization -> Text
awsAccountId :: Prelude.Text,
CreateAccountCustomization -> AccountCustomization
accountCustomization :: AccountCustomization
}
deriving (CreateAccountCustomization -> CreateAccountCustomization -> Bool
(CreateAccountCustomization -> CreateAccountCustomization -> Bool)
-> (CreateAccountCustomization
-> CreateAccountCustomization -> Bool)
-> Eq CreateAccountCustomization
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateAccountCustomization -> CreateAccountCustomization -> Bool
$c/= :: CreateAccountCustomization -> CreateAccountCustomization -> Bool
== :: CreateAccountCustomization -> CreateAccountCustomization -> Bool
$c== :: CreateAccountCustomization -> CreateAccountCustomization -> Bool
Prelude.Eq, ReadPrec [CreateAccountCustomization]
ReadPrec CreateAccountCustomization
Int -> ReadS CreateAccountCustomization
ReadS [CreateAccountCustomization]
(Int -> ReadS CreateAccountCustomization)
-> ReadS [CreateAccountCustomization]
-> ReadPrec CreateAccountCustomization
-> ReadPrec [CreateAccountCustomization]
-> Read CreateAccountCustomization
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateAccountCustomization]
$creadListPrec :: ReadPrec [CreateAccountCustomization]
readPrec :: ReadPrec CreateAccountCustomization
$creadPrec :: ReadPrec CreateAccountCustomization
readList :: ReadS [CreateAccountCustomization]
$creadList :: ReadS [CreateAccountCustomization]
readsPrec :: Int -> ReadS CreateAccountCustomization
$creadsPrec :: Int -> ReadS CreateAccountCustomization
Prelude.Read, Int -> CreateAccountCustomization -> ShowS
[CreateAccountCustomization] -> ShowS
CreateAccountCustomization -> String
(Int -> CreateAccountCustomization -> ShowS)
-> (CreateAccountCustomization -> String)
-> ([CreateAccountCustomization] -> ShowS)
-> Show CreateAccountCustomization
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateAccountCustomization] -> ShowS
$cshowList :: [CreateAccountCustomization] -> ShowS
show :: CreateAccountCustomization -> String
$cshow :: CreateAccountCustomization -> String
showsPrec :: Int -> CreateAccountCustomization -> ShowS
$cshowsPrec :: Int -> CreateAccountCustomization -> ShowS
Prelude.Show, (forall x.
CreateAccountCustomization -> Rep CreateAccountCustomization x)
-> (forall x.
Rep CreateAccountCustomization x -> CreateAccountCustomization)
-> Generic CreateAccountCustomization
forall x.
Rep CreateAccountCustomization x -> CreateAccountCustomization
forall x.
CreateAccountCustomization -> Rep CreateAccountCustomization x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateAccountCustomization x -> CreateAccountCustomization
$cfrom :: forall x.
CreateAccountCustomization -> Rep CreateAccountCustomization x
Prelude.Generic)
newCreateAccountCustomization ::
Prelude.Text ->
AccountCustomization ->
CreateAccountCustomization
newCreateAccountCustomization :: Text -> AccountCustomization -> CreateAccountCustomization
newCreateAccountCustomization
Text
pAwsAccountId_
AccountCustomization
pAccountCustomization_ =
CreateAccountCustomization' :: Maybe Text
-> Maybe (NonEmpty Tag)
-> Text
-> AccountCustomization
-> CreateAccountCustomization
CreateAccountCustomization'
{ $sel:namespace:CreateAccountCustomization' :: Maybe Text
namespace =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateAccountCustomization' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
forall a. Maybe a
Prelude.Nothing,
$sel:awsAccountId:CreateAccountCustomization' :: Text
awsAccountId = Text
pAwsAccountId_,
$sel:accountCustomization:CreateAccountCustomization' :: AccountCustomization
accountCustomization = AccountCustomization
pAccountCustomization_
}
createAccountCustomization_namespace :: Lens.Lens' CreateAccountCustomization (Prelude.Maybe Prelude.Text)
createAccountCustomization_namespace :: (Maybe Text -> f (Maybe Text))
-> CreateAccountCustomization -> f CreateAccountCustomization
createAccountCustomization_namespace = (CreateAccountCustomization -> Maybe Text)
-> (CreateAccountCustomization
-> Maybe Text -> CreateAccountCustomization)
-> Lens
CreateAccountCustomization
CreateAccountCustomization
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAccountCustomization' {Maybe Text
namespace :: Maybe Text
$sel:namespace:CreateAccountCustomization' :: CreateAccountCustomization -> Maybe Text
namespace} -> Maybe Text
namespace) (\s :: CreateAccountCustomization
s@CreateAccountCustomization' {} Maybe Text
a -> CreateAccountCustomization
s {$sel:namespace:CreateAccountCustomization' :: Maybe Text
namespace = Maybe Text
a} :: CreateAccountCustomization)
createAccountCustomization_tags :: Lens.Lens' CreateAccountCustomization (Prelude.Maybe (Prelude.NonEmpty Tag))
createAccountCustomization_tags :: (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateAccountCustomization -> f CreateAccountCustomization
createAccountCustomization_tags = (CreateAccountCustomization -> Maybe (NonEmpty Tag))
-> (CreateAccountCustomization
-> Maybe (NonEmpty Tag) -> CreateAccountCustomization)
-> Lens
CreateAccountCustomization
CreateAccountCustomization
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAccountCustomization' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:CreateAccountCustomization' :: CreateAccountCustomization -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: CreateAccountCustomization
s@CreateAccountCustomization' {} Maybe (NonEmpty Tag)
a -> CreateAccountCustomization
s {$sel:tags:CreateAccountCustomization' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: CreateAccountCustomization) ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateAccountCustomization -> f CreateAccountCustomization)
-> ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateAccountCustomization
-> f CreateAccountCustomization
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
-> Iso
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty 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 (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createAccountCustomization_awsAccountId :: Lens.Lens' CreateAccountCustomization Prelude.Text
createAccountCustomization_awsAccountId :: (Text -> f Text)
-> CreateAccountCustomization -> f CreateAccountCustomization
createAccountCustomization_awsAccountId = (CreateAccountCustomization -> Text)
-> (CreateAccountCustomization
-> Text -> CreateAccountCustomization)
-> Lens
CreateAccountCustomization CreateAccountCustomization Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAccountCustomization' {Text
awsAccountId :: Text
$sel:awsAccountId:CreateAccountCustomization' :: CreateAccountCustomization -> Text
awsAccountId} -> Text
awsAccountId) (\s :: CreateAccountCustomization
s@CreateAccountCustomization' {} Text
a -> CreateAccountCustomization
s {$sel:awsAccountId:CreateAccountCustomization' :: Text
awsAccountId = Text
a} :: CreateAccountCustomization)
createAccountCustomization_accountCustomization :: Lens.Lens' CreateAccountCustomization AccountCustomization
createAccountCustomization_accountCustomization :: (AccountCustomization -> f AccountCustomization)
-> CreateAccountCustomization -> f CreateAccountCustomization
createAccountCustomization_accountCustomization = (CreateAccountCustomization -> AccountCustomization)
-> (CreateAccountCustomization
-> AccountCustomization -> CreateAccountCustomization)
-> Lens
CreateAccountCustomization
CreateAccountCustomization
AccountCustomization
AccountCustomization
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAccountCustomization' {AccountCustomization
accountCustomization :: AccountCustomization
$sel:accountCustomization:CreateAccountCustomization' :: CreateAccountCustomization -> AccountCustomization
accountCustomization} -> AccountCustomization
accountCustomization) (\s :: CreateAccountCustomization
s@CreateAccountCustomization' {} AccountCustomization
a -> CreateAccountCustomization
s {$sel:accountCustomization:CreateAccountCustomization' :: AccountCustomization
accountCustomization = AccountCustomization
a} :: CreateAccountCustomization)
instance Core.AWSRequest CreateAccountCustomization where
type
AWSResponse CreateAccountCustomization =
CreateAccountCustomizationResponse
request :: CreateAccountCustomization -> Request CreateAccountCustomization
request = Service
-> CreateAccountCustomization -> Request CreateAccountCustomization
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateAccountCustomization
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateAccountCustomization)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateAccountCustomization))
-> Logger
-> Service
-> Proxy CreateAccountCustomization
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateAccountCustomization)))
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 Text
-> Maybe AccountCustomization
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateAccountCustomizationResponse
CreateAccountCustomizationResponse'
(Maybe Text
-> Maybe AccountCustomization
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateAccountCustomizationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe AccountCustomization
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateAccountCustomizationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RequestId")
Either
String
(Maybe AccountCustomization
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateAccountCustomizationResponse)
-> Either String (Maybe AccountCustomization)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateAccountCustomizationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe AccountCustomization)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AccountCustomization")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateAccountCustomizationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Int -> CreateAccountCustomizationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Arn")
Either
String
(Maybe Text
-> Maybe Text -> Int -> CreateAccountCustomizationResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> CreateAccountCustomizationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Namespace")
Either
String (Maybe Text -> Int -> CreateAccountCustomizationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateAccountCustomizationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AwsAccountId")
Either String (Int -> CreateAccountCustomizationResponse)
-> Either String Int
-> Either String CreateAccountCustomizationResponse
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 CreateAccountCustomization
instance Prelude.NFData CreateAccountCustomization
instance Core.ToHeaders CreateAccountCustomization where
toHeaders :: CreateAccountCustomization -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateAccountCustomization -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateAccountCustomization where
toJSON :: CreateAccountCustomization -> Value
toJSON CreateAccountCustomization' {Maybe (NonEmpty Tag)
Maybe Text
Text
AccountCustomization
accountCustomization :: AccountCustomization
awsAccountId :: Text
tags :: Maybe (NonEmpty Tag)
namespace :: Maybe Text
$sel:accountCustomization:CreateAccountCustomization' :: CreateAccountCustomization -> AccountCustomization
$sel:awsAccountId:CreateAccountCustomization' :: CreateAccountCustomization -> Text
$sel:tags:CreateAccountCustomization' :: CreateAccountCustomization -> Maybe (NonEmpty Tag)
$sel:namespace:CreateAccountCustomization' :: CreateAccountCustomization -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Tags" Text -> NonEmpty Tag -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Tag -> Pair) -> Maybe (NonEmpty Tag) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Tag)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"AccountCustomization"
Text -> AccountCustomization -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= AccountCustomization
accountCustomization
)
]
)
instance Core.ToPath CreateAccountCustomization where
toPath :: CreateAccountCustomization -> ByteString
toPath CreateAccountCustomization' {Maybe (NonEmpty Tag)
Maybe Text
Text
AccountCustomization
accountCustomization :: AccountCustomization
awsAccountId :: Text
tags :: Maybe (NonEmpty Tag)
namespace :: Maybe Text
$sel:accountCustomization:CreateAccountCustomization' :: CreateAccountCustomization -> AccountCustomization
$sel:awsAccountId:CreateAccountCustomization' :: CreateAccountCustomization -> Text
$sel:tags:CreateAccountCustomization' :: CreateAccountCustomization -> Maybe (NonEmpty Tag)
$sel:namespace:CreateAccountCustomization' :: CreateAccountCustomization -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/accounts/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
awsAccountId,
ByteString
"/customizations"
]
instance Core.ToQuery CreateAccountCustomization where
toQuery :: CreateAccountCustomization -> QueryString
toQuery CreateAccountCustomization' {Maybe (NonEmpty Tag)
Maybe Text
Text
AccountCustomization
accountCustomization :: AccountCustomization
awsAccountId :: Text
tags :: Maybe (NonEmpty Tag)
namespace :: Maybe Text
$sel:accountCustomization:CreateAccountCustomization' :: CreateAccountCustomization -> AccountCustomization
$sel:awsAccountId:CreateAccountCustomization' :: CreateAccountCustomization -> Text
$sel:tags:CreateAccountCustomization' :: CreateAccountCustomization -> Maybe (NonEmpty Tag)
$sel:namespace:CreateAccountCustomization' :: CreateAccountCustomization -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"namespace" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
namespace]
data CreateAccountCustomizationResponse = CreateAccountCustomizationResponse'
{
CreateAccountCustomizationResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
CreateAccountCustomizationResponse -> Maybe AccountCustomization
accountCustomization :: Prelude.Maybe AccountCustomization,
CreateAccountCustomizationResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateAccountCustomizationResponse -> Maybe Text
namespace :: Prelude.Maybe Prelude.Text,
CreateAccountCustomizationResponse -> Maybe Text
awsAccountId :: Prelude.Maybe Prelude.Text,
CreateAccountCustomizationResponse -> Int
status :: Prelude.Int
}
deriving (CreateAccountCustomizationResponse
-> CreateAccountCustomizationResponse -> Bool
(CreateAccountCustomizationResponse
-> CreateAccountCustomizationResponse -> Bool)
-> (CreateAccountCustomizationResponse
-> CreateAccountCustomizationResponse -> Bool)
-> Eq CreateAccountCustomizationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateAccountCustomizationResponse
-> CreateAccountCustomizationResponse -> Bool
$c/= :: CreateAccountCustomizationResponse
-> CreateAccountCustomizationResponse -> Bool
== :: CreateAccountCustomizationResponse
-> CreateAccountCustomizationResponse -> Bool
$c== :: CreateAccountCustomizationResponse
-> CreateAccountCustomizationResponse -> Bool
Prelude.Eq, ReadPrec [CreateAccountCustomizationResponse]
ReadPrec CreateAccountCustomizationResponse
Int -> ReadS CreateAccountCustomizationResponse
ReadS [CreateAccountCustomizationResponse]
(Int -> ReadS CreateAccountCustomizationResponse)
-> ReadS [CreateAccountCustomizationResponse]
-> ReadPrec CreateAccountCustomizationResponse
-> ReadPrec [CreateAccountCustomizationResponse]
-> Read CreateAccountCustomizationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateAccountCustomizationResponse]
$creadListPrec :: ReadPrec [CreateAccountCustomizationResponse]
readPrec :: ReadPrec CreateAccountCustomizationResponse
$creadPrec :: ReadPrec CreateAccountCustomizationResponse
readList :: ReadS [CreateAccountCustomizationResponse]
$creadList :: ReadS [CreateAccountCustomizationResponse]
readsPrec :: Int -> ReadS CreateAccountCustomizationResponse
$creadsPrec :: Int -> ReadS CreateAccountCustomizationResponse
Prelude.Read, Int -> CreateAccountCustomizationResponse -> ShowS
[CreateAccountCustomizationResponse] -> ShowS
CreateAccountCustomizationResponse -> String
(Int -> CreateAccountCustomizationResponse -> ShowS)
-> (CreateAccountCustomizationResponse -> String)
-> ([CreateAccountCustomizationResponse] -> ShowS)
-> Show CreateAccountCustomizationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateAccountCustomizationResponse] -> ShowS
$cshowList :: [CreateAccountCustomizationResponse] -> ShowS
show :: CreateAccountCustomizationResponse -> String
$cshow :: CreateAccountCustomizationResponse -> String
showsPrec :: Int -> CreateAccountCustomizationResponse -> ShowS
$cshowsPrec :: Int -> CreateAccountCustomizationResponse -> ShowS
Prelude.Show, (forall x.
CreateAccountCustomizationResponse
-> Rep CreateAccountCustomizationResponse x)
-> (forall x.
Rep CreateAccountCustomizationResponse x
-> CreateAccountCustomizationResponse)
-> Generic CreateAccountCustomizationResponse
forall x.
Rep CreateAccountCustomizationResponse x
-> CreateAccountCustomizationResponse
forall x.
CreateAccountCustomizationResponse
-> Rep CreateAccountCustomizationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateAccountCustomizationResponse x
-> CreateAccountCustomizationResponse
$cfrom :: forall x.
CreateAccountCustomizationResponse
-> Rep CreateAccountCustomizationResponse x
Prelude.Generic)
newCreateAccountCustomizationResponse ::
Prelude.Int ->
CreateAccountCustomizationResponse
newCreateAccountCustomizationResponse :: Int -> CreateAccountCustomizationResponse
newCreateAccountCustomizationResponse Int
pStatus_ =
CreateAccountCustomizationResponse' :: Maybe Text
-> Maybe AccountCustomization
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateAccountCustomizationResponse
CreateAccountCustomizationResponse'
{ $sel:requestId:CreateAccountCustomizationResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:accountCustomization:CreateAccountCustomizationResponse' :: Maybe AccountCustomization
accountCustomization = Maybe AccountCustomization
forall a. Maybe a
Prelude.Nothing,
$sel:arn:CreateAccountCustomizationResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:namespace:CreateAccountCustomizationResponse' :: Maybe Text
namespace = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:awsAccountId:CreateAccountCustomizationResponse' :: Maybe Text
awsAccountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:CreateAccountCustomizationResponse' :: Int
status = Int
pStatus_
}
createAccountCustomizationResponse_requestId :: Lens.Lens' CreateAccountCustomizationResponse (Prelude.Maybe Prelude.Text)
createAccountCustomizationResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> CreateAccountCustomizationResponse
-> f CreateAccountCustomizationResponse
createAccountCustomizationResponse_requestId = (CreateAccountCustomizationResponse -> Maybe Text)
-> (CreateAccountCustomizationResponse
-> Maybe Text -> CreateAccountCustomizationResponse)
-> Lens
CreateAccountCustomizationResponse
CreateAccountCustomizationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAccountCustomizationResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:CreateAccountCustomizationResponse' :: CreateAccountCustomizationResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: CreateAccountCustomizationResponse
s@CreateAccountCustomizationResponse' {} Maybe Text
a -> CreateAccountCustomizationResponse
s {$sel:requestId:CreateAccountCustomizationResponse' :: Maybe Text
requestId = Maybe Text
a} :: CreateAccountCustomizationResponse)
createAccountCustomizationResponse_accountCustomization :: Lens.Lens' CreateAccountCustomizationResponse (Prelude.Maybe AccountCustomization)
createAccountCustomizationResponse_accountCustomization :: (Maybe AccountCustomization -> f (Maybe AccountCustomization))
-> CreateAccountCustomizationResponse
-> f CreateAccountCustomizationResponse
createAccountCustomizationResponse_accountCustomization = (CreateAccountCustomizationResponse -> Maybe AccountCustomization)
-> (CreateAccountCustomizationResponse
-> Maybe AccountCustomization
-> CreateAccountCustomizationResponse)
-> Lens
CreateAccountCustomizationResponse
CreateAccountCustomizationResponse
(Maybe AccountCustomization)
(Maybe AccountCustomization)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAccountCustomizationResponse' {Maybe AccountCustomization
accountCustomization :: Maybe AccountCustomization
$sel:accountCustomization:CreateAccountCustomizationResponse' :: CreateAccountCustomizationResponse -> Maybe AccountCustomization
accountCustomization} -> Maybe AccountCustomization
accountCustomization) (\s :: CreateAccountCustomizationResponse
s@CreateAccountCustomizationResponse' {} Maybe AccountCustomization
a -> CreateAccountCustomizationResponse
s {$sel:accountCustomization:CreateAccountCustomizationResponse' :: Maybe AccountCustomization
accountCustomization = Maybe AccountCustomization
a} :: CreateAccountCustomizationResponse)
createAccountCustomizationResponse_arn :: Lens.Lens' CreateAccountCustomizationResponse (Prelude.Maybe Prelude.Text)
createAccountCustomizationResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateAccountCustomizationResponse
-> f CreateAccountCustomizationResponse
createAccountCustomizationResponse_arn = (CreateAccountCustomizationResponse -> Maybe Text)
-> (CreateAccountCustomizationResponse
-> Maybe Text -> CreateAccountCustomizationResponse)
-> Lens
CreateAccountCustomizationResponse
CreateAccountCustomizationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAccountCustomizationResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateAccountCustomizationResponse' :: CreateAccountCustomizationResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateAccountCustomizationResponse
s@CreateAccountCustomizationResponse' {} Maybe Text
a -> CreateAccountCustomizationResponse
s {$sel:arn:CreateAccountCustomizationResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateAccountCustomizationResponse)
createAccountCustomizationResponse_namespace :: Lens.Lens' CreateAccountCustomizationResponse (Prelude.Maybe Prelude.Text)
createAccountCustomizationResponse_namespace :: (Maybe Text -> f (Maybe Text))
-> CreateAccountCustomizationResponse
-> f CreateAccountCustomizationResponse
createAccountCustomizationResponse_namespace = (CreateAccountCustomizationResponse -> Maybe Text)
-> (CreateAccountCustomizationResponse
-> Maybe Text -> CreateAccountCustomizationResponse)
-> Lens
CreateAccountCustomizationResponse
CreateAccountCustomizationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAccountCustomizationResponse' {Maybe Text
namespace :: Maybe Text
$sel:namespace:CreateAccountCustomizationResponse' :: CreateAccountCustomizationResponse -> Maybe Text
namespace} -> Maybe Text
namespace) (\s :: CreateAccountCustomizationResponse
s@CreateAccountCustomizationResponse' {} Maybe Text
a -> CreateAccountCustomizationResponse
s {$sel:namespace:CreateAccountCustomizationResponse' :: Maybe Text
namespace = Maybe Text
a} :: CreateAccountCustomizationResponse)
createAccountCustomizationResponse_awsAccountId :: Lens.Lens' CreateAccountCustomizationResponse (Prelude.Maybe Prelude.Text)
createAccountCustomizationResponse_awsAccountId :: (Maybe Text -> f (Maybe Text))
-> CreateAccountCustomizationResponse
-> f CreateAccountCustomizationResponse
createAccountCustomizationResponse_awsAccountId = (CreateAccountCustomizationResponse -> Maybe Text)
-> (CreateAccountCustomizationResponse
-> Maybe Text -> CreateAccountCustomizationResponse)
-> Lens
CreateAccountCustomizationResponse
CreateAccountCustomizationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAccountCustomizationResponse' {Maybe Text
awsAccountId :: Maybe Text
$sel:awsAccountId:CreateAccountCustomizationResponse' :: CreateAccountCustomizationResponse -> Maybe Text
awsAccountId} -> Maybe Text
awsAccountId) (\s :: CreateAccountCustomizationResponse
s@CreateAccountCustomizationResponse' {} Maybe Text
a -> CreateAccountCustomizationResponse
s {$sel:awsAccountId:CreateAccountCustomizationResponse' :: Maybe Text
awsAccountId = Maybe Text
a} :: CreateAccountCustomizationResponse)
createAccountCustomizationResponse_status :: Lens.Lens' CreateAccountCustomizationResponse Prelude.Int
createAccountCustomizationResponse_status :: (Int -> f Int)
-> CreateAccountCustomizationResponse
-> f CreateAccountCustomizationResponse
createAccountCustomizationResponse_status = (CreateAccountCustomizationResponse -> Int)
-> (CreateAccountCustomizationResponse
-> Int -> CreateAccountCustomizationResponse)
-> Lens
CreateAccountCustomizationResponse
CreateAccountCustomizationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAccountCustomizationResponse' {Int
status :: Int
$sel:status:CreateAccountCustomizationResponse' :: CreateAccountCustomizationResponse -> Int
status} -> Int
status) (\s :: CreateAccountCustomizationResponse
s@CreateAccountCustomizationResponse' {} Int
a -> CreateAccountCustomizationResponse
s {$sel:status:CreateAccountCustomizationResponse' :: Int
status = Int
a} :: CreateAccountCustomizationResponse)
instance
Prelude.NFData
CreateAccountCustomizationResponse