Amazon IAM · Schema

Role

Role schema from AWS IAM API

Access ManagementAuthenticationAuthorizationIdentitySecurity

Properties

Name Type Description
Path string The path to the role.
RoleName string The friendly name that identifies the role.
RoleId string The stable and unique string identifying the role.
Arn string The Amazon Resource Name (ARN) specifying the role.
CreateDate string The date and time when the role was created.
AssumeRolePolicyDocument string The policy that grants an entity permission to assume the role.
Description string A description of the role.
MaxSessionDuration integer The maximum session duration (in seconds) for the specified role.
Tags array
View JSON Schema on GitHub

JSON Schema

amazon-iam-role-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iam/refs/heads/main/json-schema/amazon-iam-role-schema.json",
  "title": "Role",
  "description": "Role schema from AWS IAM API",
  "type": "object",
  "properties": {
    "Path": {
      "type": "string",
      "description": "The path to the role."
    },
    "RoleName": {
      "type": "string",
      "description": "The friendly name that identifies the role."
    },
    "RoleId": {
      "type": "string",
      "description": "The stable and unique string identifying the role."
    },
    "Arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) specifying the role."
    },
    "CreateDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the role was created."
    },
    "AssumeRolePolicyDocument": {
      "type": "string",
      "description": "The policy that grants an entity permission to assume the role."
    },
    "Description": {
      "type": "string",
      "description": "A description of the role."
    },
    "MaxSessionDuration": {
      "type": "integer",
      "description": "The maximum session duration (in seconds) for the specified role."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Tag"
      }
    }
  },
  "required": [
    "RoleName",
    "RoleId",
    "Arn",
    "CreateDate",
    "AssumeRolePolicyDocument"
  ]
}