# PolicyComplianceStates Object

> Source: https://truto.one/docs/api-reference/unified-cloud-infrastructure-api/policycompliancestates/

Schema for the `PolicyComplianceStates` resource in **Unified Cloud Infrastructure API**.

## Properties

- **`id`** _(string, required)_
  Truto's stable unified identifier for this object. Opaque; use provider_id to address the object in the provider's own console or API.
- **`provider_id`** _(string)_
  The provider's own identifier — a full ARN, resource id, or self-link — passed through verbatim, never truncated or normalized.
- **`provider`** _(string)_
  Which cloud this object was read from.
  Allowed: `aws`, `azure`, `gcp`
- **`account`** _(string)_
  The account, subscription or project this object belongs to.
- **`region`** _(string)_
  Where the object is. 'global' marks resources with no region (e.g. IAM, a GCP VPC network). If the provider returns no location, the queried region is substituted and flagged in unreadable_fields.
- **`native_type`** _(string)_
  The provider's own type string, unmodified — e.g. 'AWS::S3::Bucket', 'aws_iam_role', 'Microsoft.Sql/servers'.
- **`tags`** _(object)_
  Key-value pairs exactly as the customer set them, with no case folding or normalization. An empty object means no tags; tags that could not be read appear in unreadable_fields instead.
- **`collected_at`** _(string)_
  When Truto actually read this object from the provider, in UTC ISO 8601 with offset. Not the request time, and not a provider timestamp.
- **`updated_at`** _(string)_
  When the object was last modified at the provider, in UTC ISO 8601. Null when the provider does not record one - see unreadable_fields.
- **`created_at`** _(string)_
  When the object was created at the provider, in UTC ISO 8601. Null when the provider does not record one - see unreadable_fields.
- **`unreadable_fields`** _(array<object>)_
  Fields on this object that could not be read, and why. An empty array means everything was read. Use this to tell a real value from a missing one.
  - **`field`** _(string)_
    The property on this resource that could not be read.
  - **`reason`** _(string)_
    Why the field could not be read. available_on_get: Not read on list to keep the list fast; call GET for this resource's id to get it.
    Allowed: `not_supported_by_provider`, `not_configured`, `permission_denied`, `not_collected`, `collection_error`, `partially_collected`, `available_on_get`
  - **`detail`** _(string)_
    Explanation of the reason, where one adds anything.
- **`remote_data`** _(object)_
  Raw data returned from the remote API call.
- **`policy_id`** _(string)_
  The rule or policy this state belongs to.
- **`policy_name`** _(string)_
  The rule name as the provider names it.
- **`scope_id`** _(string)_
  The account, node or resource scope this state was evaluated for.
- **`compliance_state`** _(string)_
  The evaluation outcome. insufficient_data is distinct from compliant — one provider allows this value in results but rejects it as a filter.
  Allowed: `compliant`, `non_compliant`, `insufficient_data`, `not_applicable`, `unknown`
- **`compliant_resource_count`** _(integer)_
  How many resources satisfy the rule.
- **`non_compliant_resource_count`** _(integer)_
  How many resources violate the rule. See count_capped: the provider may return a ceiling rather than a true count.
- **`count_capped`** _(boolean)_
  Whether the counts are a provider-imposed ceiling rather than an exact count.
- **`non_compliant_resource_ids`** _(array<string>)_
  The resources violating the rule. Only collected when opted in — see resource_ids_collected.
- **`resource_ids_collected`** _(boolean)_
  Whether non_compliant_resource_ids was actually gathered. False means an empty list reflects a collection choice, not a clean result.
- **`last_evaluated_at`** _(string)_
  When the rule was last evaluated by the provider, never Truto's fetch time. On AWS this comes from a separate evaluation-status call.
- **`last_successful_evaluation_at`** _(string)_
  The last evaluation that actually succeeded, as distinct from the last invocation.

## Methods

- [GET /unified/cloud-infrastructure/policy_compliance_states](/docs/api-reference/unified-cloud-infrastructure-api/policycompliancestates/list) — List Policy compliance states
