select_aggregate_resource_config
¶
select_aggregate_resource_config(
expression: Expression,
configuration_aggregator_name: ConfigurationAggregatorName,
*,
config_overrides: Optional[ConfigServiceClientConfig] = 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/config_service.py
6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 | |