Amazon IAM · JSON Structure

Amazon Iam Role Structure

Role schema from AWS IAM API

Type: object Properties: 9 Required: 5
Access ManagementAuthenticationAuthorizationIdentitySecurity

Role is a JSON Structure definition published by Amazon IAM, describing 9 properties, of which 5 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

Path RoleName RoleId Arn CreateDate AssumeRolePolicyDocument Description MaxSessionDuration Tags

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iam/refs/heads/main/json-structure/amazon-iam-role-structure.json",
  "name": "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": "datetime",
      "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": "int32",
      "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"
  ]
}