# PermissionDefinitions Object

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

Schema for the `PermissionDefinitions` 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, verbatim -- a full ARN, resource id, or self-link. Never truncated or normalised. Use it to find the object in the provider's console.
- **`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 located. 'global' marks resources with no region (e.g. IAM, a GCP VPC network). If the provider gives none, the collector's queried region is used instead and flagged in unreadable_fields.
- **`native_type`** _(string)_
  The provider's own type string, unmodified -- for example 'AWS::S3::Bucket', 'aws_iam_role', 'Microsoft.Sql/servers'. Used for display and drill-down.
- **`tags`** _(object)_
  Key-value pairs exactly as the customer set them -- no case folding, key/value normalisation, or merging across providers. An empty object means no tags; unreadable tags appear in unreadable_fields instead.
- **`collected_at`** _(string)_
  When Truto read this object from the provider, in UTC ISO 8601 with offset. Not the request time, and not a provider-supplied timestamp.
- **`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)_
    Additional detail on the reason, when there is any.
- **`remote_data`** _(object)_
  Raw data returned from the remote API call.
- **`definition_id`** _(string)_
  The provider's own identifier for the policy or role definition.
- **`name`** _(string)_
  The policy or role name as the provider names it.
- **`is_custom`** _(boolean)_
  Whether the customer authored this, as opposed to a provider-supplied built-in.
- **`allowed_actions`** _(array<string>)_
  Permitted actions with wildcards intact, e.g. 's3:*' or 'ec2:Describe*' -- never expanded. An empty array means the document grants nothing; null means the document could not be read (see unreadable_fields).
- **`denied_actions`** _(array<string>)_
  Explicitly denied actions, with wildcards intact.
- **`not_actions`** _(array<string>)_
  Actions under a NotAction clause, kept separate from allowed_actions. Combined with Allow, this permits everything EXCEPT these actions -- the inverse of a normal action list.
- **`not_resources`** _(array<string>)_
  Resources under a NotResource clause. Combined with Allow, this excludes these resources rather than including them.
- **`resource_scope`** _(array<string>)_
  The resources the permissions apply to, with wildcards intact.
- **`has_wildcard_action`** _(boolean)_
  Whether any statement grants a bare action wildcard. Derived.
- **`has_wildcard_resource`** _(boolean)_
  Whether any statement applies to a bare resource wildcard. Derived.
- **`raw_document`** _(string)_
  The provider's raw policy document as a string, in its native encoding. AWS IAM documents are URL-encoded (RFC 3986); Organizations and Identity Center inline documents are plain JSON.
- **`attachment_count`** _(integer)_
  How many principals this definition is attached to as a grant, kept separate from permissions_boundary_usage_count (a restriction, not a grant).
- **`permissions_boundary_usage_count`** _(integer)_
  How many principals use this definition as a permissions boundary -- a restriction, not a grant.
- **`assignment_count`** _(integer)_
  Total assignments, where the provider exposes a single combined number.
- **`created_at`** _(string)_
  When the definition was created.
- **`updated_at`** _(string)_
  When the definition was last modified.

## Methods

- [GET /unified/cloud-infrastructure/permission_definitions](/docs/api-reference/unified-cloud-infrastructure-api/permissiondefinitions/list) — List Permission definitions
