Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Accepts a structured query language (SQL) SELECT
command, performs the
corresponding search, and returns resource configurations matching the
properties.
For more information about query components, see the Query Components section in the Config Developer Guide.
This operation returns paginated results.
Synopsis
- data SelectResourceConfig = SelectResourceConfig' {}
- newSelectResourceConfig :: Text -> SelectResourceConfig
- selectResourceConfig_limit :: Lens' SelectResourceConfig (Maybe Natural)
- selectResourceConfig_nextToken :: Lens' SelectResourceConfig (Maybe Text)
- selectResourceConfig_expression :: Lens' SelectResourceConfig Text
- data SelectResourceConfigResponse = SelectResourceConfigResponse' {}
- newSelectResourceConfigResponse :: Int -> SelectResourceConfigResponse
- selectResourceConfigResponse_nextToken :: Lens' SelectResourceConfigResponse (Maybe Text)
- selectResourceConfigResponse_queryInfo :: Lens' SelectResourceConfigResponse (Maybe QueryInfo)
- selectResourceConfigResponse_results :: Lens' SelectResourceConfigResponse (Maybe [Text])
- selectResourceConfigResponse_httpStatus :: Lens' SelectResourceConfigResponse Int
Creating a Request
data SelectResourceConfig Source #
See: newSelectResourceConfig
smart constructor.
Instances
newSelectResourceConfig Source #
Create a value of SelectResourceConfig
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:limit:SelectResourceConfig'
, selectResourceConfig_limit
- The maximum number of query results returned on each page.
SelectResourceConfig
, selectResourceConfig_nextToken
- The nextToken
string returned in a previous request that you use to
request the next page of results in a paginated response.
SelectResourceConfig
, selectResourceConfig_expression
- The SQL query SELECT
command.
Request Lenses
selectResourceConfig_limit :: Lens' SelectResourceConfig (Maybe Natural) Source #
The maximum number of query results returned on each page.
selectResourceConfig_nextToken :: Lens' SelectResourceConfig (Maybe Text) Source #
The nextToken
string returned in a previous request that you use to
request the next page of results in a paginated response.
selectResourceConfig_expression :: Lens' SelectResourceConfig Text Source #
The SQL query SELECT
command.
Destructuring the Response
data SelectResourceConfigResponse Source #
See: newSelectResourceConfigResponse
smart constructor.
SelectResourceConfigResponse' | |
|
Instances
newSelectResourceConfigResponse Source #
Create a value of SelectResourceConfigResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
SelectResourceConfig
, selectResourceConfigResponse_nextToken
- The nextToken
string returned in a previous request that you use to
request the next page of results in a paginated response.
$sel:queryInfo:SelectResourceConfigResponse'
, selectResourceConfigResponse_queryInfo
- Returns the QueryInfo
object.
$sel:results:SelectResourceConfigResponse'
, selectResourceConfigResponse_results
- Returns the results for the SQL query.
$sel:httpStatus:SelectResourceConfigResponse'
, selectResourceConfigResponse_httpStatus
- The response's http status code.
Response Lenses
selectResourceConfigResponse_nextToken :: Lens' SelectResourceConfigResponse (Maybe Text) Source #
The nextToken
string returned in a previous request that you use to
request the next page of results in a paginated response.
selectResourceConfigResponse_queryInfo :: Lens' SelectResourceConfigResponse (Maybe QueryInfo) Source #
Returns the QueryInfo
object.
selectResourceConfigResponse_results :: Lens' SelectResourceConfigResponse (Maybe [Text]) Source #
Returns the results for the SQL query.
selectResourceConfigResponse_httpStatus :: Lens' SelectResourceConfigResponse Int Source #
The response's http status code.