{-# 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.IoT.CreateDimension
(
CreateDimension (..),
newCreateDimension,
createDimension_tags,
createDimension_name,
createDimension_type,
createDimension_stringValues,
createDimension_clientRequestToken,
CreateDimensionResponse (..),
newCreateDimensionResponse,
createDimensionResponse_arn,
createDimensionResponse_name,
createDimensionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoT.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateDimension = CreateDimension'
{
CreateDimension -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateDimension -> Text
name :: Prelude.Text,
CreateDimension -> DimensionType
type' :: DimensionType,
CreateDimension -> NonEmpty Text
stringValues :: Prelude.NonEmpty Prelude.Text,
CreateDimension -> Text
clientRequestToken :: Prelude.Text
}
deriving (CreateDimension -> CreateDimension -> Bool
(CreateDimension -> CreateDimension -> Bool)
-> (CreateDimension -> CreateDimension -> Bool)
-> Eq CreateDimension
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDimension -> CreateDimension -> Bool
$c/= :: CreateDimension -> CreateDimension -> Bool
== :: CreateDimension -> CreateDimension -> Bool
$c== :: CreateDimension -> CreateDimension -> Bool
Prelude.Eq, ReadPrec [CreateDimension]
ReadPrec CreateDimension
Int -> ReadS CreateDimension
ReadS [CreateDimension]
(Int -> ReadS CreateDimension)
-> ReadS [CreateDimension]
-> ReadPrec CreateDimension
-> ReadPrec [CreateDimension]
-> Read CreateDimension
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDimension]
$creadListPrec :: ReadPrec [CreateDimension]
readPrec :: ReadPrec CreateDimension
$creadPrec :: ReadPrec CreateDimension
readList :: ReadS [CreateDimension]
$creadList :: ReadS [CreateDimension]
readsPrec :: Int -> ReadS CreateDimension
$creadsPrec :: Int -> ReadS CreateDimension
Prelude.Read, Int -> CreateDimension -> ShowS
[CreateDimension] -> ShowS
CreateDimension -> String
(Int -> CreateDimension -> ShowS)
-> (CreateDimension -> String)
-> ([CreateDimension] -> ShowS)
-> Show CreateDimension
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDimension] -> ShowS
$cshowList :: [CreateDimension] -> ShowS
show :: CreateDimension -> String
$cshow :: CreateDimension -> String
showsPrec :: Int -> CreateDimension -> ShowS
$cshowsPrec :: Int -> CreateDimension -> ShowS
Prelude.Show, (forall x. CreateDimension -> Rep CreateDimension x)
-> (forall x. Rep CreateDimension x -> CreateDimension)
-> Generic CreateDimension
forall x. Rep CreateDimension x -> CreateDimension
forall x. CreateDimension -> Rep CreateDimension x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDimension x -> CreateDimension
$cfrom :: forall x. CreateDimension -> Rep CreateDimension x
Prelude.Generic)
newCreateDimension ::
Prelude.Text ->
DimensionType ->
Prelude.NonEmpty Prelude.Text ->
Prelude.Text ->
CreateDimension
newCreateDimension :: Text -> DimensionType -> NonEmpty Text -> Text -> CreateDimension
newCreateDimension
Text
pName_
DimensionType
pType_
NonEmpty Text
pStringValues_
Text
pClientRequestToken_ =
CreateDimension' :: Maybe [Tag]
-> Text
-> DimensionType
-> NonEmpty Text
-> Text
-> CreateDimension
CreateDimension'
{ $sel:tags:CreateDimension' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateDimension' :: Text
name = Text
pName_,
$sel:type':CreateDimension' :: DimensionType
type' = DimensionType
pType_,
$sel:stringValues:CreateDimension' :: NonEmpty Text
stringValues = Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pStringValues_,
$sel:clientRequestToken:CreateDimension' :: Text
clientRequestToken = Text
pClientRequestToken_
}
createDimension_tags :: Lens.Lens' CreateDimension (Prelude.Maybe [Tag])
createDimension_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDimension -> f CreateDimension
createDimension_tags = (CreateDimension -> Maybe [Tag])
-> (CreateDimension -> Maybe [Tag] -> CreateDimension)
-> Lens CreateDimension CreateDimension (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDimension' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateDimension' :: CreateDimension -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateDimension
s@CreateDimension' {} Maybe [Tag]
a -> CreateDimension
s {$sel:tags:CreateDimension' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateDimension) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDimension -> f CreateDimension)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDimension
-> f CreateDimension
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
createDimension_name :: Lens.Lens' CreateDimension Prelude.Text
createDimension_name :: (Text -> f Text) -> CreateDimension -> f CreateDimension
createDimension_name = (CreateDimension -> Text)
-> (CreateDimension -> Text -> CreateDimension)
-> Lens CreateDimension CreateDimension Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDimension' {Text
name :: Text
$sel:name:CreateDimension' :: CreateDimension -> Text
name} -> Text
name) (\s :: CreateDimension
s@CreateDimension' {} Text
a -> CreateDimension
s {$sel:name:CreateDimension' :: Text
name = Text
a} :: CreateDimension)
createDimension_type :: Lens.Lens' CreateDimension DimensionType
createDimension_type :: (DimensionType -> f DimensionType)
-> CreateDimension -> f CreateDimension
createDimension_type = (CreateDimension -> DimensionType)
-> (CreateDimension -> DimensionType -> CreateDimension)
-> Lens CreateDimension CreateDimension DimensionType DimensionType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDimension' {DimensionType
type' :: DimensionType
$sel:type':CreateDimension' :: CreateDimension -> DimensionType
type'} -> DimensionType
type') (\s :: CreateDimension
s@CreateDimension' {} DimensionType
a -> CreateDimension
s {$sel:type':CreateDimension' :: DimensionType
type' = DimensionType
a} :: CreateDimension)
createDimension_stringValues :: Lens.Lens' CreateDimension (Prelude.NonEmpty Prelude.Text)
createDimension_stringValues :: (NonEmpty Text -> f (NonEmpty Text))
-> CreateDimension -> f CreateDimension
createDimension_stringValues = (CreateDimension -> NonEmpty Text)
-> (CreateDimension -> NonEmpty Text -> CreateDimension)
-> Lens
CreateDimension CreateDimension (NonEmpty Text) (NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDimension' {NonEmpty Text
stringValues :: NonEmpty Text
$sel:stringValues:CreateDimension' :: CreateDimension -> NonEmpty Text
stringValues} -> NonEmpty Text
stringValues) (\s :: CreateDimension
s@CreateDimension' {} NonEmpty Text
a -> CreateDimension
s {$sel:stringValues:CreateDimension' :: NonEmpty Text
stringValues = NonEmpty Text
a} :: CreateDimension) ((NonEmpty Text -> f (NonEmpty Text))
-> CreateDimension -> f CreateDimension)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> CreateDimension
-> f CreateDimension
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDimension_clientRequestToken :: Lens.Lens' CreateDimension Prelude.Text
createDimension_clientRequestToken :: (Text -> f Text) -> CreateDimension -> f CreateDimension
createDimension_clientRequestToken = (CreateDimension -> Text)
-> (CreateDimension -> Text -> CreateDimension)
-> Lens CreateDimension CreateDimension Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDimension' {Text
clientRequestToken :: Text
$sel:clientRequestToken:CreateDimension' :: CreateDimension -> Text
clientRequestToken} -> Text
clientRequestToken) (\s :: CreateDimension
s@CreateDimension' {} Text
a -> CreateDimension
s {$sel:clientRequestToken:CreateDimension' :: Text
clientRequestToken = Text
a} :: CreateDimension)
instance Core.AWSRequest CreateDimension where
type
AWSResponse CreateDimension =
CreateDimensionResponse
request :: CreateDimension -> Request CreateDimension
request = Service -> CreateDimension -> Request CreateDimension
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateDimension
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateDimension)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateDimension))
-> Logger
-> Service
-> Proxy CreateDimension
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateDimension)))
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 Text -> Int -> CreateDimensionResponse
CreateDimensionResponse'
(Maybe Text -> Maybe Text -> Int -> CreateDimensionResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> CreateDimensionResponse)
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
"arn")
Either String (Maybe Text -> Int -> CreateDimensionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateDimensionResponse)
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
"name")
Either String (Int -> CreateDimensionResponse)
-> Either String Int -> Either String CreateDimensionResponse
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 CreateDimension
instance Prelude.NFData CreateDimension
instance Core.ToHeaders CreateDimension where
toHeaders :: CreateDimension -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateDimension -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON CreateDimension where
toJSON :: CreateDimension -> Value
toJSON CreateDimension' {Maybe [Tag]
NonEmpty Text
Text
DimensionType
clientRequestToken :: Text
stringValues :: NonEmpty Text
type' :: DimensionType
name :: Text
tags :: Maybe [Tag]
$sel:clientRequestToken:CreateDimension' :: CreateDimension -> Text
$sel:stringValues:CreateDimension' :: CreateDimension -> NonEmpty Text
$sel:type':CreateDimension' :: CreateDimension -> DimensionType
$sel:name:CreateDimension' :: CreateDimension -> Text
$sel:tags:CreateDimension' :: CreateDimension -> Maybe [Tag]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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
"type" Text -> DimensionType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= DimensionType
type'),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"stringValues" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
stringValues),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"clientRequestToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clientRequestToken)
]
)
instance Core.ToPath CreateDimension where
toPath :: CreateDimension -> ByteString
toPath CreateDimension' {Maybe [Tag]
NonEmpty Text
Text
DimensionType
clientRequestToken :: Text
stringValues :: NonEmpty Text
type' :: DimensionType
name :: Text
tags :: Maybe [Tag]
$sel:clientRequestToken:CreateDimension' :: CreateDimension -> Text
$sel:stringValues:CreateDimension' :: CreateDimension -> NonEmpty Text
$sel:type':CreateDimension' :: CreateDimension -> DimensionType
$sel:name:CreateDimension' :: CreateDimension -> Text
$sel:tags:CreateDimension' :: CreateDimension -> Maybe [Tag]
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/dimensions/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
name]
instance Core.ToQuery CreateDimension where
toQuery :: CreateDimension -> QueryString
toQuery = QueryString -> CreateDimension -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateDimensionResponse = CreateDimensionResponse'
{
CreateDimensionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateDimensionResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CreateDimensionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateDimensionResponse -> CreateDimensionResponse -> Bool
(CreateDimensionResponse -> CreateDimensionResponse -> Bool)
-> (CreateDimensionResponse -> CreateDimensionResponse -> Bool)
-> Eq CreateDimensionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDimensionResponse -> CreateDimensionResponse -> Bool
$c/= :: CreateDimensionResponse -> CreateDimensionResponse -> Bool
== :: CreateDimensionResponse -> CreateDimensionResponse -> Bool
$c== :: CreateDimensionResponse -> CreateDimensionResponse -> Bool
Prelude.Eq, ReadPrec [CreateDimensionResponse]
ReadPrec CreateDimensionResponse
Int -> ReadS CreateDimensionResponse
ReadS [CreateDimensionResponse]
(Int -> ReadS CreateDimensionResponse)
-> ReadS [CreateDimensionResponse]
-> ReadPrec CreateDimensionResponse
-> ReadPrec [CreateDimensionResponse]
-> Read CreateDimensionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDimensionResponse]
$creadListPrec :: ReadPrec [CreateDimensionResponse]
readPrec :: ReadPrec CreateDimensionResponse
$creadPrec :: ReadPrec CreateDimensionResponse
readList :: ReadS [CreateDimensionResponse]
$creadList :: ReadS [CreateDimensionResponse]
readsPrec :: Int -> ReadS CreateDimensionResponse
$creadsPrec :: Int -> ReadS CreateDimensionResponse
Prelude.Read, Int -> CreateDimensionResponse -> ShowS
[CreateDimensionResponse] -> ShowS
CreateDimensionResponse -> String
(Int -> CreateDimensionResponse -> ShowS)
-> (CreateDimensionResponse -> String)
-> ([CreateDimensionResponse] -> ShowS)
-> Show CreateDimensionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDimensionResponse] -> ShowS
$cshowList :: [CreateDimensionResponse] -> ShowS
show :: CreateDimensionResponse -> String
$cshow :: CreateDimensionResponse -> String
showsPrec :: Int -> CreateDimensionResponse -> ShowS
$cshowsPrec :: Int -> CreateDimensionResponse -> ShowS
Prelude.Show, (forall x.
CreateDimensionResponse -> Rep CreateDimensionResponse x)
-> (forall x.
Rep CreateDimensionResponse x -> CreateDimensionResponse)
-> Generic CreateDimensionResponse
forall x. Rep CreateDimensionResponse x -> CreateDimensionResponse
forall x. CreateDimensionResponse -> Rep CreateDimensionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDimensionResponse x -> CreateDimensionResponse
$cfrom :: forall x. CreateDimensionResponse -> Rep CreateDimensionResponse x
Prelude.Generic)
newCreateDimensionResponse ::
Prelude.Int ->
CreateDimensionResponse
newCreateDimensionResponse :: Int -> CreateDimensionResponse
newCreateDimensionResponse Int
pHttpStatus_ =
CreateDimensionResponse' :: Maybe Text -> Maybe Text -> Int -> CreateDimensionResponse
CreateDimensionResponse'
{ $sel:arn:CreateDimensionResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateDimensionResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateDimensionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createDimensionResponse_arn :: Lens.Lens' CreateDimensionResponse (Prelude.Maybe Prelude.Text)
createDimensionResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateDimensionResponse -> f CreateDimensionResponse
createDimensionResponse_arn = (CreateDimensionResponse -> Maybe Text)
-> (CreateDimensionResponse
-> Maybe Text -> CreateDimensionResponse)
-> Lens
CreateDimensionResponse
CreateDimensionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDimensionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateDimensionResponse' :: CreateDimensionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateDimensionResponse
s@CreateDimensionResponse' {} Maybe Text
a -> CreateDimensionResponse
s {$sel:arn:CreateDimensionResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateDimensionResponse)
createDimensionResponse_name :: Lens.Lens' CreateDimensionResponse (Prelude.Maybe Prelude.Text)
createDimensionResponse_name :: (Maybe Text -> f (Maybe Text))
-> CreateDimensionResponse -> f CreateDimensionResponse
createDimensionResponse_name = (CreateDimensionResponse -> Maybe Text)
-> (CreateDimensionResponse
-> Maybe Text -> CreateDimensionResponse)
-> Lens
CreateDimensionResponse
CreateDimensionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDimensionResponse' {Maybe Text
name :: Maybe Text
$sel:name:CreateDimensionResponse' :: CreateDimensionResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateDimensionResponse
s@CreateDimensionResponse' {} Maybe Text
a -> CreateDimensionResponse
s {$sel:name:CreateDimensionResponse' :: Maybe Text
name = Maybe Text
a} :: CreateDimensionResponse)
createDimensionResponse_httpStatus :: Lens.Lens' CreateDimensionResponse Prelude.Int
createDimensionResponse_httpStatus :: (Int -> f Int)
-> CreateDimensionResponse -> f CreateDimensionResponse
createDimensionResponse_httpStatus = (CreateDimensionResponse -> Int)
-> (CreateDimensionResponse -> Int -> CreateDimensionResponse)
-> Lens CreateDimensionResponse CreateDimensionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDimensionResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateDimensionResponse' :: CreateDimensionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateDimensionResponse
s@CreateDimensionResponse' {} Int
a -> CreateDimensionResponse
s {$sel:httpStatus:CreateDimensionResponse' :: Int
httpStatus = Int
a} :: CreateDimensionResponse)
instance Prelude.NFData CreateDimensionResponse