ConfigService / Client / select_resource_config
select_resource_config#
- ConfigService.Client.select_resource_config(**kwargs)#
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 <https://docs.aws.amazon.com/config/latest/developerguide/query-components.html>`__section in the Config Developer Guide.
See also: AWS API Documentation
Request Syntax
response = client.select_resource_config( Expression='string', Limit=123, NextToken='string' )
- Parameters:
Expression (string) –
[REQUIRED]
The SQL query
SELECT
command.Limit (integer) – The maximum number of query results returned on each page.
NextToken (string) – The
nextToken
string returned in a previous request that you use to request the next page of results in a paginated response.
- Return type:
dict
- Returns:
Response Syntax
{ 'Results': [ 'string', ], 'QueryInfo': { 'SelectFields': [ { 'Name': 'string' }, ] }, 'NextToken': 'string' }
Response Structure
(dict) –
Results (list) –
Returns the results for the SQL query.
(string) –
QueryInfo (dict) –
Returns the
QueryInfo
object.SelectFields (list) –
Returns a
FieldInfo
object.(dict) –
Details about the fields such as name of the field.
Name (string) –
Name of the field.
NextToken (string) –
The
nextToken
string returned in a previous request that you use to request the next page of results in a paginated response.
Exceptions
ConfigService.Client.exceptions.InvalidExpressionException
ConfigService.Client.exceptions.InvalidLimitException
ConfigService.Client.exceptions.InvalidNextTokenException