Skip to content

Relationships

Schema relationships
graph LR
    PolicyComplianceStates -->|"account"| Accounts

Properties

idstring
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.

accountstring

The account, subscription or project this object belongs to.

References: Accounts → id
collected_atstring · date-time

When Truto actually read this object from the provider, in UTC ISO 8601 with offset. Not the request time, and not a provider timestamp.

compliance_statestring

The evaluation outcome. insufficient_data is distinct from compliant — one provider allows this value in results but rejects it as a filter.

Possible values:
compliantnon_compliantinsufficient_datanot_applicableunknown
compliant_resource_countinteger

How many resources satisfy the rule.

count_cappedboolean

Whether the counts are a provider-imposed ceiling rather than an exact count.

created_atstring

When the object was created at the provider, in UTC ISO 8601. Null when the provider does not record one - see unreadable_fields.

last_evaluated_atstring · date-time

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_atstring · date-time

The last evaluation that actually succeeded, as distinct from the last invocation.

native_typestring

The provider's own type string, unmodified — e.g. 'AWS::S3::Bucket', 'aws_iam_role', 'Microsoft.Sql/servers'.

non_compliant_resource_countinteger

How many resources violate the rule. See count_capped: the provider may return a ceiling rather than a true count.

non_compliant_resource_idsstring[]

The resources violating the rule. Only collected when opted in — see resource_ids_collected.

policy_idstring

The rule or policy this state belongs to.

policy_namestring

The rule name as the provider names it.

providerstring

Which cloud this object was read from.

Possible values:
awsazuregcp
provider_idstring

The provider's own identifier — a full ARN, resource id, or self-link — passed through verbatim, never truncated or normalized.

regionstring

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.

remote_dataRecord<string, any>

Raw data returned from the remote API call.

resource_ids_collectedboolean

Whether non_compliant_resource_ids was actually gathered. False means an empty list reflects a collection choice, not a clean result.

scope_idstring

The account, node or resource scope this state was evaluated for.

tagsobject

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.

unreadable_fieldsobject[]

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.

detailstring

Explanation of the reason, where one adds anything.

fieldstring

The property on this resource that could not be read.

reasonstring

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.

Possible values:
not_supported_by_providernot_configuredpermission_deniednot_collectedcollection_errorpartially_collectedavailable_on_get
updated_atstring

When the object was last modified at the provider, in UTC ISO 8601. Null when the provider does not record one - see unreadable_fields.