policies_stats
Creates, updates, deletes, gets or lists a policies_stats resource.
Overview
| Name | policies_stats |
| Type | Resource |
| Id | aws.opensearchserverless.policies_stats |
Fields
The following fields are returned by SELECT queries:
- get_policies_stats
| Name | Datatype | Description |
|---|---|---|
access_policy_stats | object | Information about the data access policies in your account. |
lifecycle_policy_stats | object | Information about the lifecycle policies in your account. |
security_config_stats | object | Information about the security configurations in your account. |
security_policy_stats | object | Information about the security policies in your account. |
total_policy_count | integer (int64) | The total number of OpenSearch Serverless security policies and configurations in your account. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_policies_stats | select | region | Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_policies_stats
Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.
SELECT
access_policy_stats,
lifecycle_policy_stats,
security_config_stats,
security_policy_stats,
total_policy_count
FROM aws.opensearchserverless.policies_stats
WHERE region = '{{ region }}' -- required
;