select_aggregate_resource_config
async
¶
select_aggregate_resource_config(
expression: Expression,
configuration_aggregator_name: ConfigurationAggregatorName,
*,
config_overrides: Optional[AsyncConfigServiceClientConfig] = None,
limit: Optional[Limit] = None,
max_results: Optional[Limit] = None,
next_token: Optional[NextToken] = None,
) -> SelectAggregateResourceConfigResponse
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.
Parameters:
-
expression(Expression) –The SQL query SELECT command.
-
configuration_aggregator_name(ConfigurationAggregatorName) –The name of the configuration aggregator.
-
limit(Optional[Limit], default:None) –The maximum number of query results returned on each page.
-
max_results(Optional[Limit], default:None) –The maximum number of query results returned on each page. Config also allows the Limit request parameter.
-
next_token(Optional[NextToken], default:None) –The nextToken string returned in a previous request that you use to request the next page of results in a paginated response.
Raises:
-
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
nextTokenstring 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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_config_service/_services/async_config_service.py
6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 | |