AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Accepts a structured query language (SQL) SELECT command and an aggregator to query configuration state of Amazon Web Services resources across multiple accounts and regions, 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.
If you run an aggregation query (i.e., using GROUP BY
or using aggregate functions
such as COUNT
; e.g., SELECT resourceId, COUNT(*) WHERE resourceType = 'AWS::IAM::Role'
GROUP BY resourceId
) and do not specify the MaxResults
or the Limit
query parameters, the default page size is set to 500.
If you run a non-aggregation query (i.e., not using GROUP BY
or aggregate function;
e.g., SELECT * WHERE resourceType = 'AWS::IAM::Role'
) and do not specify the
MaxResults
or the Limit
query parameters, the default page size is set
to 25.
For .NET Core this operation is only available in asynchronous form. Please refer to SelectAggregateResourceConfigAsync.
Namespace: Amazon.ConfigService
Assembly: AWSSDK.ConfigService.dll
Version: 3.x.y.z
public abstract SelectAggregateResourceConfigResponse SelectAggregateResourceConfig( SelectAggregateResourceConfigRequest request )
Container for the necessary parameters to execute the SelectAggregateResourceConfig service method.
Exception | Condition |
---|---|
InvalidExpressionException | The syntax of the query is incorrect. |
InvalidLimitException | The specified limit is outside the allowable range. |
InvalidNextTokenException | The specified next token is not valid. Specify the nextToken string that was returned in the previous response to get the next page of results. |
NoSuchConfigurationAggregatorException | You have specified a configuration aggregator that does not exist. |
.NET Framework:
Supported in: 4.5 and newer, 3.5