Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_nextToken :: Lens' SelectResourceConfig (Maybe Text)
- selectResourceConfig_limit :: Lens' SelectResourceConfig (Maybe Natural)
- selectResourceConfig_expression :: Lens' SelectResourceConfig Text
- data SelectResourceConfigResponse = SelectResourceConfigResponse' {}
- newSelectResourceConfigResponse :: Int -> SelectResourceConfigResponse
- selectResourceConfigResponse_results :: Lens' SelectResourceConfigResponse (Maybe [Text])
- selectResourceConfigResponse_queryInfo :: Lens' SelectResourceConfigResponse (Maybe QueryInfo)
- selectResourceConfigResponse_nextToken :: 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:nextToken: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.
$sel:limit:SelectResourceConfig'
, selectResourceConfig_limit
- The maximum number of query results returned on each page.
$sel:expression:SelectResourceConfig'
, selectResourceConfig_expression
- The SQL query SELECT
command.
Request Lenses
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_limit :: Lens' SelectResourceConfig (Maybe Natural) Source #
The maximum number of query results returned on each page.
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:
$sel:results:SelectResourceConfigResponse'
, selectResourceConfigResponse_results
- Returns the results for the SQL query.
$sel:queryInfo:SelectResourceConfigResponse'
, selectResourceConfigResponse_queryInfo
- Returns the QueryInfo
object.
$sel:nextToken: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:httpStatus:SelectResourceConfigResponse'
, selectResourceConfigResponse_httpStatus
- The response's http status code.
Response Lenses
selectResourceConfigResponse_results :: Lens' SelectResourceConfigResponse (Maybe [Text]) Source #
Returns the results for the SQL query.
selectResourceConfigResponse_queryInfo :: Lens' SelectResourceConfigResponse (Maybe QueryInfo) Source #
Returns the QueryInfo
object.
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_httpStatus :: Lens' SelectResourceConfigResponse Int Source #
The response's http status code.