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
6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 | |