{-# 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.Config.SelectResourceConfig
(
SelectResourceConfig (..),
newSelectResourceConfig,
selectResourceConfig_nextToken,
selectResourceConfig_limit,
selectResourceConfig_expression,
SelectResourceConfigResponse (..),
newSelectResourceConfigResponse,
selectResourceConfigResponse_results,
selectResourceConfigResponse_queryInfo,
selectResourceConfigResponse_nextToken,
selectResourceConfigResponse_httpStatus,
)
where
import Amazonka.Config.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 SelectResourceConfig = SelectResourceConfig'
{
SelectResourceConfig -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
SelectResourceConfig -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
SelectResourceConfig -> Text
expression :: Prelude.Text
}
deriving (SelectResourceConfig -> SelectResourceConfig -> Bool
(SelectResourceConfig -> SelectResourceConfig -> Bool)
-> (SelectResourceConfig -> SelectResourceConfig -> Bool)
-> Eq SelectResourceConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SelectResourceConfig -> SelectResourceConfig -> Bool
$c/= :: SelectResourceConfig -> SelectResourceConfig -> Bool
== :: SelectResourceConfig -> SelectResourceConfig -> Bool
$c== :: SelectResourceConfig -> SelectResourceConfig -> Bool
Prelude.Eq, ReadPrec [SelectResourceConfig]
ReadPrec SelectResourceConfig
Int -> ReadS SelectResourceConfig
ReadS [SelectResourceConfig]
(Int -> ReadS SelectResourceConfig)
-> ReadS [SelectResourceConfig]
-> ReadPrec SelectResourceConfig
-> ReadPrec [SelectResourceConfig]
-> Read SelectResourceConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SelectResourceConfig]
$creadListPrec :: ReadPrec [SelectResourceConfig]
readPrec :: ReadPrec SelectResourceConfig
$creadPrec :: ReadPrec SelectResourceConfig
readList :: ReadS [SelectResourceConfig]
$creadList :: ReadS [SelectResourceConfig]
readsPrec :: Int -> ReadS SelectResourceConfig
$creadsPrec :: Int -> ReadS SelectResourceConfig
Prelude.Read, Int -> SelectResourceConfig -> ShowS
[SelectResourceConfig] -> ShowS
SelectResourceConfig -> String
(Int -> SelectResourceConfig -> ShowS)
-> (SelectResourceConfig -> String)
-> ([SelectResourceConfig] -> ShowS)
-> Show SelectResourceConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SelectResourceConfig] -> ShowS
$cshowList :: [SelectResourceConfig] -> ShowS
show :: SelectResourceConfig -> String
$cshow :: SelectResourceConfig -> String
showsPrec :: Int -> SelectResourceConfig -> ShowS
$cshowsPrec :: Int -> SelectResourceConfig -> ShowS
Prelude.Show, (forall x. SelectResourceConfig -> Rep SelectResourceConfig x)
-> (forall x. Rep SelectResourceConfig x -> SelectResourceConfig)
-> Generic SelectResourceConfig
forall x. Rep SelectResourceConfig x -> SelectResourceConfig
forall x. SelectResourceConfig -> Rep SelectResourceConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SelectResourceConfig x -> SelectResourceConfig
$cfrom :: forall x. SelectResourceConfig -> Rep SelectResourceConfig x
Prelude.Generic)
newSelectResourceConfig ::
Prelude.Text ->
SelectResourceConfig
newSelectResourceConfig :: Text -> SelectResourceConfig
newSelectResourceConfig Text
pExpression_ =
SelectResourceConfig' :: Maybe Text -> Maybe Natural -> Text -> SelectResourceConfig
SelectResourceConfig'
{ $sel:nextToken:SelectResourceConfig' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:SelectResourceConfig' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:expression:SelectResourceConfig' :: Text
expression = Text
pExpression_
}
selectResourceConfig_nextToken :: Lens.Lens' SelectResourceConfig (Prelude.Maybe Prelude.Text)
selectResourceConfig_nextToken :: (Maybe Text -> f (Maybe Text))
-> SelectResourceConfig -> f SelectResourceConfig
selectResourceConfig_nextToken = (SelectResourceConfig -> Maybe Text)
-> (SelectResourceConfig -> Maybe Text -> SelectResourceConfig)
-> Lens
SelectResourceConfig SelectResourceConfig (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SelectResourceConfig' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:SelectResourceConfig' :: SelectResourceConfig -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: SelectResourceConfig
s@SelectResourceConfig' {} Maybe Text
a -> SelectResourceConfig
s {$sel:nextToken:SelectResourceConfig' :: Maybe Text
nextToken = Maybe Text
a} :: SelectResourceConfig)
selectResourceConfig_limit :: Lens.Lens' SelectResourceConfig (Prelude.Maybe Prelude.Natural)
selectResourceConfig_limit :: (Maybe Natural -> f (Maybe Natural))
-> SelectResourceConfig -> f SelectResourceConfig
selectResourceConfig_limit = (SelectResourceConfig -> Maybe Natural)
-> (SelectResourceConfig -> Maybe Natural -> SelectResourceConfig)
-> Lens
SelectResourceConfig
SelectResourceConfig
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SelectResourceConfig' {Maybe Natural
limit :: Maybe Natural
$sel:limit:SelectResourceConfig' :: SelectResourceConfig -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: SelectResourceConfig
s@SelectResourceConfig' {} Maybe Natural
a -> SelectResourceConfig
s {$sel:limit:SelectResourceConfig' :: Maybe Natural
limit = Maybe Natural
a} :: SelectResourceConfig)
selectResourceConfig_expression :: Lens.Lens' SelectResourceConfig Prelude.Text
selectResourceConfig_expression :: (Text -> f Text) -> SelectResourceConfig -> f SelectResourceConfig
selectResourceConfig_expression = (SelectResourceConfig -> Text)
-> (SelectResourceConfig -> Text -> SelectResourceConfig)
-> Lens SelectResourceConfig SelectResourceConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SelectResourceConfig' {Text
expression :: Text
$sel:expression:SelectResourceConfig' :: SelectResourceConfig -> Text
expression} -> Text
expression) (\s :: SelectResourceConfig
s@SelectResourceConfig' {} Text
a -> SelectResourceConfig
s {$sel:expression:SelectResourceConfig' :: Text
expression = Text
a} :: SelectResourceConfig)
instance Core.AWSPager SelectResourceConfig where
page :: SelectResourceConfig
-> AWSResponse SelectResourceConfig -> Maybe SelectResourceConfig
page SelectResourceConfig
rq AWSResponse SelectResourceConfig
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse SelectResourceConfig
SelectResourceConfigResponse
rs
SelectResourceConfigResponse
-> Getting (First Text) SelectResourceConfigResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> SelectResourceConfigResponse
-> Const (First Text) SelectResourceConfigResponse
Lens' SelectResourceConfigResponse (Maybe Text)
selectResourceConfigResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> SelectResourceConfigResponse
-> Const (First Text) SelectResourceConfigResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) SelectResourceConfigResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe SelectResourceConfig
forall a. Maybe a
Prelude.Nothing
| Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse SelectResourceConfig
SelectResourceConfigResponse
rs
SelectResourceConfigResponse
-> Getting (First [Text]) SelectResourceConfigResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> SelectResourceConfigResponse
-> Const (First [Text]) SelectResourceConfigResponse
Lens' SelectResourceConfigResponse (Maybe [Text])
selectResourceConfigResponse_results
((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> SelectResourceConfigResponse
-> Const (First [Text]) SelectResourceConfigResponse)
-> (([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting (First [Text]) SelectResourceConfigResponse [Text]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe SelectResourceConfig
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
SelectResourceConfig -> Maybe SelectResourceConfig
forall a. a -> Maybe a
Prelude.Just (SelectResourceConfig -> Maybe SelectResourceConfig)
-> SelectResourceConfig -> Maybe SelectResourceConfig
forall a b. (a -> b) -> a -> b
Prelude.$
SelectResourceConfig
rq
SelectResourceConfig
-> (SelectResourceConfig -> SelectResourceConfig)
-> SelectResourceConfig
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> SelectResourceConfig -> Identity SelectResourceConfig
Lens
SelectResourceConfig SelectResourceConfig (Maybe Text) (Maybe Text)
selectResourceConfig_nextToken
((Maybe Text -> Identity (Maybe Text))
-> SelectResourceConfig -> Identity SelectResourceConfig)
-> Maybe Text -> SelectResourceConfig -> SelectResourceConfig
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse SelectResourceConfig
SelectResourceConfigResponse
rs
SelectResourceConfigResponse
-> Getting (First Text) SelectResourceConfigResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> SelectResourceConfigResponse
-> Const (First Text) SelectResourceConfigResponse
Lens' SelectResourceConfigResponse (Maybe Text)
selectResourceConfigResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> SelectResourceConfigResponse
-> Const (First Text) SelectResourceConfigResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) SelectResourceConfigResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest SelectResourceConfig where
type
AWSResponse SelectResourceConfig =
SelectResourceConfigResponse
request :: SelectResourceConfig -> Request SelectResourceConfig
request = Service -> SelectResourceConfig -> Request SelectResourceConfig
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy SelectResourceConfig
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse SelectResourceConfig)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse SelectResourceConfig))
-> Logger
-> Service
-> Proxy SelectResourceConfig
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse SelectResourceConfig)))
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 QueryInfo
-> Maybe Text
-> Int
-> SelectResourceConfigResponse
SelectResourceConfigResponse'
(Maybe [Text]
-> Maybe QueryInfo
-> Maybe Text
-> Int
-> SelectResourceConfigResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe QueryInfo
-> Maybe Text -> Int -> SelectResourceConfigResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Results" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe QueryInfo
-> Maybe Text -> Int -> SelectResourceConfigResponse)
-> Either String (Maybe QueryInfo)
-> Either
String (Maybe Text -> Int -> SelectResourceConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe QueryInfo)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"QueryInfo")
Either String (Maybe Text -> Int -> SelectResourceConfigResponse)
-> Either String (Maybe Text)
-> Either String (Int -> SelectResourceConfigResponse)
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
"NextToken")
Either String (Int -> SelectResourceConfigResponse)
-> Either String Int -> Either String SelectResourceConfigResponse
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 SelectResourceConfig
instance Prelude.NFData SelectResourceConfig
instance Core.ToHeaders SelectResourceConfig where
toHeaders :: SelectResourceConfig -> ResponseHeaders
toHeaders =
ResponseHeaders -> SelectResourceConfig -> 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
"StarlingDoveService.SelectResourceConfig" ::
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 SelectResourceConfig where
toJSON :: SelectResourceConfig -> Value
toJSON SelectResourceConfig' {Maybe Natural
Maybe Text
Text
expression :: Text
limit :: Maybe Natural
nextToken :: Maybe Text
$sel:expression:SelectResourceConfig' :: SelectResourceConfig -> Text
$sel:limit:SelectResourceConfig' :: SelectResourceConfig -> Maybe Natural
$sel:nextToken:SelectResourceConfig' :: SelectResourceConfig -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" 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
nextToken,
(Text
"Limit" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Expression" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
expression)
]
)
instance Core.ToPath SelectResourceConfig where
toPath :: SelectResourceConfig -> ByteString
toPath = ByteString -> SelectResourceConfig -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery SelectResourceConfig where
toQuery :: SelectResourceConfig -> QueryString
toQuery = QueryString -> SelectResourceConfig -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data SelectResourceConfigResponse = SelectResourceConfigResponse'
{
SelectResourceConfigResponse -> Maybe [Text]
results :: Prelude.Maybe [Prelude.Text],
SelectResourceConfigResponse -> Maybe QueryInfo
queryInfo :: Prelude.Maybe QueryInfo,
SelectResourceConfigResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
SelectResourceConfigResponse -> Int
httpStatus :: Prelude.Int
}
deriving (SelectResourceConfigResponse
-> SelectResourceConfigResponse -> Bool
(SelectResourceConfigResponse
-> SelectResourceConfigResponse -> Bool)
-> (SelectResourceConfigResponse
-> SelectResourceConfigResponse -> Bool)
-> Eq SelectResourceConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SelectResourceConfigResponse
-> SelectResourceConfigResponse -> Bool
$c/= :: SelectResourceConfigResponse
-> SelectResourceConfigResponse -> Bool
== :: SelectResourceConfigResponse
-> SelectResourceConfigResponse -> Bool
$c== :: SelectResourceConfigResponse
-> SelectResourceConfigResponse -> Bool
Prelude.Eq, ReadPrec [SelectResourceConfigResponse]
ReadPrec SelectResourceConfigResponse
Int -> ReadS SelectResourceConfigResponse
ReadS [SelectResourceConfigResponse]
(Int -> ReadS SelectResourceConfigResponse)
-> ReadS [SelectResourceConfigResponse]
-> ReadPrec SelectResourceConfigResponse
-> ReadPrec [SelectResourceConfigResponse]
-> Read SelectResourceConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SelectResourceConfigResponse]
$creadListPrec :: ReadPrec [SelectResourceConfigResponse]
readPrec :: ReadPrec SelectResourceConfigResponse
$creadPrec :: ReadPrec SelectResourceConfigResponse
readList :: ReadS [SelectResourceConfigResponse]
$creadList :: ReadS [SelectResourceConfigResponse]
readsPrec :: Int -> ReadS SelectResourceConfigResponse
$creadsPrec :: Int -> ReadS SelectResourceConfigResponse
Prelude.Read, Int -> SelectResourceConfigResponse -> ShowS
[SelectResourceConfigResponse] -> ShowS
SelectResourceConfigResponse -> String
(Int -> SelectResourceConfigResponse -> ShowS)
-> (SelectResourceConfigResponse -> String)
-> ([SelectResourceConfigResponse] -> ShowS)
-> Show SelectResourceConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SelectResourceConfigResponse] -> ShowS
$cshowList :: [SelectResourceConfigResponse] -> ShowS
show :: SelectResourceConfigResponse -> String
$cshow :: SelectResourceConfigResponse -> String
showsPrec :: Int -> SelectResourceConfigResponse -> ShowS
$cshowsPrec :: Int -> SelectResourceConfigResponse -> ShowS
Prelude.Show, (forall x.
SelectResourceConfigResponse -> Rep SelectResourceConfigResponse x)
-> (forall x.
Rep SelectResourceConfigResponse x -> SelectResourceConfigResponse)
-> Generic SelectResourceConfigResponse
forall x.
Rep SelectResourceConfigResponse x -> SelectResourceConfigResponse
forall x.
SelectResourceConfigResponse -> Rep SelectResourceConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SelectResourceConfigResponse x -> SelectResourceConfigResponse
$cfrom :: forall x.
SelectResourceConfigResponse -> Rep SelectResourceConfigResponse x
Prelude.Generic)
newSelectResourceConfigResponse ::
Prelude.Int ->
SelectResourceConfigResponse
newSelectResourceConfigResponse :: Int -> SelectResourceConfigResponse
newSelectResourceConfigResponse Int
pHttpStatus_ =
SelectResourceConfigResponse' :: Maybe [Text]
-> Maybe QueryInfo
-> Maybe Text
-> Int
-> SelectResourceConfigResponse
SelectResourceConfigResponse'
{ $sel:results:SelectResourceConfigResponse' :: Maybe [Text]
results =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:queryInfo:SelectResourceConfigResponse' :: Maybe QueryInfo
queryInfo = Maybe QueryInfo
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:SelectResourceConfigResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:SelectResourceConfigResponse' :: Int
httpStatus = Int
pHttpStatus_
}
selectResourceConfigResponse_results :: Lens.Lens' SelectResourceConfigResponse (Prelude.Maybe [Prelude.Text])
selectResourceConfigResponse_results :: (Maybe [Text] -> f (Maybe [Text]))
-> SelectResourceConfigResponse -> f SelectResourceConfigResponse
selectResourceConfigResponse_results = (SelectResourceConfigResponse -> Maybe [Text])
-> (SelectResourceConfigResponse
-> Maybe [Text] -> SelectResourceConfigResponse)
-> Lens' SelectResourceConfigResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SelectResourceConfigResponse' {Maybe [Text]
results :: Maybe [Text]
$sel:results:SelectResourceConfigResponse' :: SelectResourceConfigResponse -> Maybe [Text]
results} -> Maybe [Text]
results) (\s :: SelectResourceConfigResponse
s@SelectResourceConfigResponse' {} Maybe [Text]
a -> SelectResourceConfigResponse
s {$sel:results:SelectResourceConfigResponse' :: Maybe [Text]
results = Maybe [Text]
a} :: SelectResourceConfigResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> SelectResourceConfigResponse -> f SelectResourceConfigResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> SelectResourceConfigResponse
-> f SelectResourceConfigResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
selectResourceConfigResponse_queryInfo :: Lens.Lens' SelectResourceConfigResponse (Prelude.Maybe QueryInfo)
selectResourceConfigResponse_queryInfo :: (Maybe QueryInfo -> f (Maybe QueryInfo))
-> SelectResourceConfigResponse -> f SelectResourceConfigResponse
selectResourceConfigResponse_queryInfo = (SelectResourceConfigResponse -> Maybe QueryInfo)
-> (SelectResourceConfigResponse
-> Maybe QueryInfo -> SelectResourceConfigResponse)
-> Lens
SelectResourceConfigResponse
SelectResourceConfigResponse
(Maybe QueryInfo)
(Maybe QueryInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SelectResourceConfigResponse' {Maybe QueryInfo
queryInfo :: Maybe QueryInfo
$sel:queryInfo:SelectResourceConfigResponse' :: SelectResourceConfigResponse -> Maybe QueryInfo
queryInfo} -> Maybe QueryInfo
queryInfo) (\s :: SelectResourceConfigResponse
s@SelectResourceConfigResponse' {} Maybe QueryInfo
a -> SelectResourceConfigResponse
s {$sel:queryInfo:SelectResourceConfigResponse' :: Maybe QueryInfo
queryInfo = Maybe QueryInfo
a} :: SelectResourceConfigResponse)
selectResourceConfigResponse_nextToken :: Lens.Lens' SelectResourceConfigResponse (Prelude.Maybe Prelude.Text)
selectResourceConfigResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> SelectResourceConfigResponse -> f SelectResourceConfigResponse
selectResourceConfigResponse_nextToken = (SelectResourceConfigResponse -> Maybe Text)
-> (SelectResourceConfigResponse
-> Maybe Text -> SelectResourceConfigResponse)
-> Lens' SelectResourceConfigResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SelectResourceConfigResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:SelectResourceConfigResponse' :: SelectResourceConfigResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: SelectResourceConfigResponse
s@SelectResourceConfigResponse' {} Maybe Text
a -> SelectResourceConfigResponse
s {$sel:nextToken:SelectResourceConfigResponse' :: Maybe Text
nextToken = Maybe Text
a} :: SelectResourceConfigResponse)
selectResourceConfigResponse_httpStatus :: Lens.Lens' SelectResourceConfigResponse Prelude.Int
selectResourceConfigResponse_httpStatus :: (Int -> f Int)
-> SelectResourceConfigResponse -> f SelectResourceConfigResponse
selectResourceConfigResponse_httpStatus = (SelectResourceConfigResponse -> Int)
-> (SelectResourceConfigResponse
-> Int -> SelectResourceConfigResponse)
-> Lens
SelectResourceConfigResponse SelectResourceConfigResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SelectResourceConfigResponse' {Int
httpStatus :: Int
$sel:httpStatus:SelectResourceConfigResponse' :: SelectResourceConfigResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: SelectResourceConfigResponse
s@SelectResourceConfigResponse' {} Int
a -> SelectResourceConfigResponse
s {$sel:httpStatus:SelectResourceConfigResponse' :: Int
httpStatus = Int
a} :: SelectResourceConfigResponse)
instance Prelude.NFData SelectResourceConfigResponse