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
6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 | |