{-# 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.AccessAnalyzer.CreateAnalyzer
(
CreateAnalyzer (..),
newCreateAnalyzer,
createAnalyzer_clientToken,
createAnalyzer_archiveRules,
createAnalyzer_tags,
createAnalyzer_analyzerName,
createAnalyzer_type,
CreateAnalyzerResponse (..),
newCreateAnalyzerResponse,
createAnalyzerResponse_arn,
createAnalyzerResponse_httpStatus,
)
where
import Amazonka.AccessAnalyzer.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateAnalyzer = CreateAnalyzer'
{
CreateAnalyzer -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateAnalyzer -> Maybe [InlineArchiveRule]
archiveRules :: Prelude.Maybe [InlineArchiveRule],
CreateAnalyzer -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateAnalyzer -> Text
analyzerName :: Prelude.Text,
CreateAnalyzer -> Type
type' :: Type
}
deriving (CreateAnalyzer -> CreateAnalyzer -> Bool
(CreateAnalyzer -> CreateAnalyzer -> Bool)
-> (CreateAnalyzer -> CreateAnalyzer -> Bool) -> Eq CreateAnalyzer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateAnalyzer -> CreateAnalyzer -> Bool
$c/= :: CreateAnalyzer -> CreateAnalyzer -> Bool
== :: CreateAnalyzer -> CreateAnalyzer -> Bool
$c== :: CreateAnalyzer -> CreateAnalyzer -> Bool
Prelude.Eq, ReadPrec [CreateAnalyzer]
ReadPrec CreateAnalyzer
Int -> ReadS CreateAnalyzer
ReadS [CreateAnalyzer]
(Int -> ReadS CreateAnalyzer)
-> ReadS [CreateAnalyzer]
-> ReadPrec CreateAnalyzer
-> ReadPrec [CreateAnalyzer]
-> Read CreateAnalyzer
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateAnalyzer]
$creadListPrec :: ReadPrec [CreateAnalyzer]
readPrec :: ReadPrec CreateAnalyzer
$creadPrec :: ReadPrec CreateAnalyzer
readList :: ReadS [CreateAnalyzer]
$creadList :: ReadS [CreateAnalyzer]
readsPrec :: Int -> ReadS CreateAnalyzer
$creadsPrec :: Int -> ReadS CreateAnalyzer
Prelude.Read, Int -> CreateAnalyzer -> ShowS
[CreateAnalyzer] -> ShowS
CreateAnalyzer -> String
(Int -> CreateAnalyzer -> ShowS)
-> (CreateAnalyzer -> String)
-> ([CreateAnalyzer] -> ShowS)
-> Show CreateAnalyzer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateAnalyzer] -> ShowS
$cshowList :: [CreateAnalyzer] -> ShowS
show :: CreateAnalyzer -> String
$cshow :: CreateAnalyzer -> String
showsPrec :: Int -> CreateAnalyzer -> ShowS
$cshowsPrec :: Int -> CreateAnalyzer -> ShowS
Prelude.Show, (forall x. CreateAnalyzer -> Rep CreateAnalyzer x)
-> (forall x. Rep CreateAnalyzer x -> CreateAnalyzer)
-> Generic CreateAnalyzer
forall x. Rep CreateAnalyzer x -> CreateAnalyzer
forall x. CreateAnalyzer -> Rep CreateAnalyzer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateAnalyzer x -> CreateAnalyzer
$cfrom :: forall x. CreateAnalyzer -> Rep CreateAnalyzer x
Prelude.Generic)
newCreateAnalyzer ::
Prelude.Text ->
Type ->
CreateAnalyzer
newCreateAnalyzer :: Text -> Type -> CreateAnalyzer
newCreateAnalyzer Text
pAnalyzerName_ Type
pType_ =
CreateAnalyzer' :: Maybe Text
-> Maybe [InlineArchiveRule]
-> Maybe (HashMap Text Text)
-> Text
-> Type
-> CreateAnalyzer
CreateAnalyzer'
{ $sel:clientToken:CreateAnalyzer' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:archiveRules:CreateAnalyzer' :: Maybe [InlineArchiveRule]
archiveRules = Maybe [InlineArchiveRule]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateAnalyzer' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:analyzerName:CreateAnalyzer' :: Text
analyzerName = Text
pAnalyzerName_,
$sel:type':CreateAnalyzer' :: Type
type' = Type
pType_
}
createAnalyzer_clientToken :: Lens.Lens' CreateAnalyzer (Prelude.Maybe Prelude.Text)
createAnalyzer_clientToken :: (Maybe Text -> f (Maybe Text))
-> CreateAnalyzer -> f CreateAnalyzer
createAnalyzer_clientToken = (CreateAnalyzer -> Maybe Text)
-> (CreateAnalyzer -> Maybe Text -> CreateAnalyzer)
-> Lens CreateAnalyzer CreateAnalyzer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAnalyzer' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateAnalyzer' :: CreateAnalyzer -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateAnalyzer
s@CreateAnalyzer' {} Maybe Text
a -> CreateAnalyzer
s {$sel:clientToken:CreateAnalyzer' :: Maybe Text
clientToken = Maybe Text
a} :: CreateAnalyzer)
createAnalyzer_archiveRules :: Lens.Lens' CreateAnalyzer (Prelude.Maybe [InlineArchiveRule])
createAnalyzer_archiveRules :: (Maybe [InlineArchiveRule] -> f (Maybe [InlineArchiveRule]))
-> CreateAnalyzer -> f CreateAnalyzer
createAnalyzer_archiveRules = (CreateAnalyzer -> Maybe [InlineArchiveRule])
-> (CreateAnalyzer -> Maybe [InlineArchiveRule] -> CreateAnalyzer)
-> Lens
CreateAnalyzer
CreateAnalyzer
(Maybe [InlineArchiveRule])
(Maybe [InlineArchiveRule])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAnalyzer' {Maybe [InlineArchiveRule]
archiveRules :: Maybe [InlineArchiveRule]
$sel:archiveRules:CreateAnalyzer' :: CreateAnalyzer -> Maybe [InlineArchiveRule]
archiveRules} -> Maybe [InlineArchiveRule]
archiveRules) (\s :: CreateAnalyzer
s@CreateAnalyzer' {} Maybe [InlineArchiveRule]
a -> CreateAnalyzer
s {$sel:archiveRules:CreateAnalyzer' :: Maybe [InlineArchiveRule]
archiveRules = Maybe [InlineArchiveRule]
a} :: CreateAnalyzer) ((Maybe [InlineArchiveRule] -> f (Maybe [InlineArchiveRule]))
-> CreateAnalyzer -> f CreateAnalyzer)
-> ((Maybe [InlineArchiveRule] -> f (Maybe [InlineArchiveRule]))
-> Maybe [InlineArchiveRule] -> f (Maybe [InlineArchiveRule]))
-> (Maybe [InlineArchiveRule] -> f (Maybe [InlineArchiveRule]))
-> CreateAnalyzer
-> f CreateAnalyzer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[InlineArchiveRule]
[InlineArchiveRule]
[InlineArchiveRule]
[InlineArchiveRule]
-> Iso
(Maybe [InlineArchiveRule])
(Maybe [InlineArchiveRule])
(Maybe [InlineArchiveRule])
(Maybe [InlineArchiveRule])
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
[InlineArchiveRule]
[InlineArchiveRule]
[InlineArchiveRule]
[InlineArchiveRule]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createAnalyzer_tags :: Lens.Lens' CreateAnalyzer (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createAnalyzer_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateAnalyzer -> f CreateAnalyzer
createAnalyzer_tags = (CreateAnalyzer -> Maybe (HashMap Text Text))
-> (CreateAnalyzer -> Maybe (HashMap Text Text) -> CreateAnalyzer)
-> Lens
CreateAnalyzer
CreateAnalyzer
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAnalyzer' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateAnalyzer' :: CreateAnalyzer -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateAnalyzer
s@CreateAnalyzer' {} Maybe (HashMap Text Text)
a -> CreateAnalyzer
s {$sel:tags:CreateAnalyzer' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateAnalyzer) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateAnalyzer -> f CreateAnalyzer)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateAnalyzer
-> f CreateAnalyzer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createAnalyzer_analyzerName :: Lens.Lens' CreateAnalyzer Prelude.Text
createAnalyzer_analyzerName :: (Text -> f Text) -> CreateAnalyzer -> f CreateAnalyzer
createAnalyzer_analyzerName = (CreateAnalyzer -> Text)
-> (CreateAnalyzer -> Text -> CreateAnalyzer)
-> Lens CreateAnalyzer CreateAnalyzer Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAnalyzer' {Text
analyzerName :: Text
$sel:analyzerName:CreateAnalyzer' :: CreateAnalyzer -> Text
analyzerName} -> Text
analyzerName) (\s :: CreateAnalyzer
s@CreateAnalyzer' {} Text
a -> CreateAnalyzer
s {$sel:analyzerName:CreateAnalyzer' :: Text
analyzerName = Text
a} :: CreateAnalyzer)
createAnalyzer_type :: Lens.Lens' CreateAnalyzer Type
createAnalyzer_type :: (Type -> f Type) -> CreateAnalyzer -> f CreateAnalyzer
createAnalyzer_type = (CreateAnalyzer -> Type)
-> (CreateAnalyzer -> Type -> CreateAnalyzer)
-> Lens CreateAnalyzer CreateAnalyzer Type Type
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAnalyzer' {Type
type' :: Type
$sel:type':CreateAnalyzer' :: CreateAnalyzer -> Type
type'} -> Type
type') (\s :: CreateAnalyzer
s@CreateAnalyzer' {} Type
a -> CreateAnalyzer
s {$sel:type':CreateAnalyzer' :: Type
type' = Type
a} :: CreateAnalyzer)
instance Core.AWSRequest CreateAnalyzer where
type
AWSResponse CreateAnalyzer =
CreateAnalyzerResponse
request :: CreateAnalyzer -> Request CreateAnalyzer
request = Service -> CreateAnalyzer -> Request CreateAnalyzer
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateAnalyzer
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateAnalyzer)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateAnalyzer))
-> Logger
-> Service
-> Proxy CreateAnalyzer
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateAnalyzer)))
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 -> Int -> CreateAnalyzerResponse
CreateAnalyzerResponse'
(Maybe Text -> Int -> CreateAnalyzerResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateAnalyzerResponse)
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 (Int -> CreateAnalyzerResponse)
-> Either String Int -> Either String CreateAnalyzerResponse
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 CreateAnalyzer
instance Prelude.NFData CreateAnalyzer
instance Core.ToHeaders CreateAnalyzer where
toHeaders :: CreateAnalyzer -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateAnalyzer -> 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.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateAnalyzer where
toJSON :: CreateAnalyzer -> Value
toJSON CreateAnalyzer' {Maybe [InlineArchiveRule]
Maybe Text
Maybe (HashMap Text Text)
Text
Type
type' :: Type
analyzerName :: Text
tags :: Maybe (HashMap Text Text)
archiveRules :: Maybe [InlineArchiveRule]
clientToken :: Maybe Text
$sel:type':CreateAnalyzer' :: CreateAnalyzer -> Type
$sel:analyzerName:CreateAnalyzer' :: CreateAnalyzer -> Text
$sel:tags:CreateAnalyzer' :: CreateAnalyzer -> Maybe (HashMap Text Text)
$sel:archiveRules:CreateAnalyzer' :: CreateAnalyzer -> Maybe [InlineArchiveRule]
$sel:clientToken:CreateAnalyzer' :: CreateAnalyzer -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"clientToken" 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
clientToken,
(Text
"archiveRules" Text -> [InlineArchiveRule] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([InlineArchiveRule] -> Pair)
-> Maybe [InlineArchiveRule] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InlineArchiveRule]
archiveRules,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"analyzerName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
analyzerName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"type" Text -> Type -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Type
type')
]
)
instance Core.ToPath CreateAnalyzer where
toPath :: CreateAnalyzer -> ByteString
toPath = ByteString -> CreateAnalyzer -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/analyzer"
instance Core.ToQuery CreateAnalyzer where
toQuery :: CreateAnalyzer -> QueryString
toQuery = QueryString -> CreateAnalyzer -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateAnalyzerResponse = CreateAnalyzerResponse'
{
CreateAnalyzerResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateAnalyzerResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateAnalyzerResponse -> CreateAnalyzerResponse -> Bool
(CreateAnalyzerResponse -> CreateAnalyzerResponse -> Bool)
-> (CreateAnalyzerResponse -> CreateAnalyzerResponse -> Bool)
-> Eq CreateAnalyzerResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateAnalyzerResponse -> CreateAnalyzerResponse -> Bool
$c/= :: CreateAnalyzerResponse -> CreateAnalyzerResponse -> Bool
== :: CreateAnalyzerResponse -> CreateAnalyzerResponse -> Bool
$c== :: CreateAnalyzerResponse -> CreateAnalyzerResponse -> Bool
Prelude.Eq, ReadPrec [CreateAnalyzerResponse]
ReadPrec CreateAnalyzerResponse
Int -> ReadS CreateAnalyzerResponse
ReadS [CreateAnalyzerResponse]
(Int -> ReadS CreateAnalyzerResponse)
-> ReadS [CreateAnalyzerResponse]
-> ReadPrec CreateAnalyzerResponse
-> ReadPrec [CreateAnalyzerResponse]
-> Read CreateAnalyzerResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateAnalyzerResponse]
$creadListPrec :: ReadPrec [CreateAnalyzerResponse]
readPrec :: ReadPrec CreateAnalyzerResponse
$creadPrec :: ReadPrec CreateAnalyzerResponse
readList :: ReadS [CreateAnalyzerResponse]
$creadList :: ReadS [CreateAnalyzerResponse]
readsPrec :: Int -> ReadS CreateAnalyzerResponse
$creadsPrec :: Int -> ReadS CreateAnalyzerResponse
Prelude.Read, Int -> CreateAnalyzerResponse -> ShowS
[CreateAnalyzerResponse] -> ShowS
CreateAnalyzerResponse -> String
(Int -> CreateAnalyzerResponse -> ShowS)
-> (CreateAnalyzerResponse -> String)
-> ([CreateAnalyzerResponse] -> ShowS)
-> Show CreateAnalyzerResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateAnalyzerResponse] -> ShowS
$cshowList :: [CreateAnalyzerResponse] -> ShowS
show :: CreateAnalyzerResponse -> String
$cshow :: CreateAnalyzerResponse -> String
showsPrec :: Int -> CreateAnalyzerResponse -> ShowS
$cshowsPrec :: Int -> CreateAnalyzerResponse -> ShowS
Prelude.Show, (forall x. CreateAnalyzerResponse -> Rep CreateAnalyzerResponse x)
-> (forall x.
Rep CreateAnalyzerResponse x -> CreateAnalyzerResponse)
-> Generic CreateAnalyzerResponse
forall x. Rep CreateAnalyzerResponse x -> CreateAnalyzerResponse
forall x. CreateAnalyzerResponse -> Rep CreateAnalyzerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateAnalyzerResponse x -> CreateAnalyzerResponse
$cfrom :: forall x. CreateAnalyzerResponse -> Rep CreateAnalyzerResponse x
Prelude.Generic)
newCreateAnalyzerResponse ::
Prelude.Int ->
CreateAnalyzerResponse
newCreateAnalyzerResponse :: Int -> CreateAnalyzerResponse
newCreateAnalyzerResponse Int
pHttpStatus_ =
CreateAnalyzerResponse' :: Maybe Text -> Int -> CreateAnalyzerResponse
CreateAnalyzerResponse'
{ $sel:arn:CreateAnalyzerResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateAnalyzerResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createAnalyzerResponse_arn :: Lens.Lens' CreateAnalyzerResponse (Prelude.Maybe Prelude.Text)
createAnalyzerResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateAnalyzerResponse -> f CreateAnalyzerResponse
createAnalyzerResponse_arn = (CreateAnalyzerResponse -> Maybe Text)
-> (CreateAnalyzerResponse -> Maybe Text -> CreateAnalyzerResponse)
-> Lens
CreateAnalyzerResponse
CreateAnalyzerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAnalyzerResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateAnalyzerResponse' :: CreateAnalyzerResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateAnalyzerResponse
s@CreateAnalyzerResponse' {} Maybe Text
a -> CreateAnalyzerResponse
s {$sel:arn:CreateAnalyzerResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateAnalyzerResponse)
createAnalyzerResponse_httpStatus :: Lens.Lens' CreateAnalyzerResponse Prelude.Int
createAnalyzerResponse_httpStatus :: (Int -> f Int)
-> CreateAnalyzerResponse -> f CreateAnalyzerResponse
createAnalyzerResponse_httpStatus = (CreateAnalyzerResponse -> Int)
-> (CreateAnalyzerResponse -> Int -> CreateAnalyzerResponse)
-> Lens CreateAnalyzerResponse CreateAnalyzerResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAnalyzerResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateAnalyzerResponse' :: CreateAnalyzerResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateAnalyzerResponse
s@CreateAnalyzerResponse' {} Int
a -> CreateAnalyzerResponse
s {$sel:httpStatus:CreateAnalyzerResponse' :: Int
httpStatus = Int
a} :: CreateAnalyzerResponse)
instance Prelude.NFData CreateAnalyzerResponse