{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iam/json-schema/amazon-iam-get-service-last-accessed-details-with-entities-response-schema.json",
  "title": "GetServiceLastAccessedDetailsWithEntitiesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iam-service-last-accessed-detail-api-openapi.yml#/components/schemas/GetServiceLastAccessedDetailsWithEntitiesResponse",
  "type": "object",
  "properties": {
    "JobStatus": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "COMPLETED",
        "FAILED"
      ],
      "description": "The status of the job."
    },
    "JobCreationDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time, in ISO 8601 date-time format, when the report job was created."
    },
    "JobCompletionDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time, in ISO 8601 date-time format, when the generated report job was completed or failed. This field is null if the job is still in progress, as indicated by a job status value of IN_PROGRESS."
    },
    "EntityDetailsList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EntityDetails"
      },
      "description": "An EntityDetailsList object that contains details about when an IAM entity (user or role) used group or policy permissions in an attempt to access the specified Amazon Web Services service."
    },
    "IsTruncated": {
      "type": "boolean",
      "description": "A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results."
    },
    "Marker": {
      "type": "string",
      "description": "When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request."
    },
    "Error": {
      "$ref": "#/$defs/ErrorDetails"
    }
  },
  "required": [
    "JobStatus",
    "JobCreationDate",
    "JobCompletionDate",
    "EntityDetailsList"
  ],
  "$defs": {
    "EntityDetails": {
      "type": "object",
      "properties": {
        "EntityInfo": {
          "$ref": "#/$defs/EntityInfo"
        },
        "LastAuthenticated": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time, in ISO 8601 date-time format, when the authenticated entity last attempted to access Amazon Web Services. Amazon Web Services does not report unauthenticated requests. This field is null if no IAM entities attempted to access the service within the tracking period."
        }
      },
      "required": [
        "EntityInfo"
      ]
    },
    "EntityInfo": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string"
        },
        "Name": {
          "type": "string",
          "description": "The name of the entity (user or role)."
        },
        "Type": {
          "type": "string",
          "enum": [
            "USER",
            "ROLE",
            "GROUP"
          ],
          "description": "The type of entity (user or role)."
        },
        "Id": {
          "type": "string",
          "description": "The identifier of the entity (user or role)."
        },
        "Path": {
          "type": "string",
          "description": "The path to the entity (user or role). For more information about paths, see IAM identifiers in the IAM User Guide."
        }
      },
      "required": [
        "Arn",
        "Name",
        "Type",
        "Id"
      ]
    },
    "ErrorDetails": {
      "type": "object",
      "properties": {
        "Message": {
          "type": "string",
          "description": "Detailed information about the reason that the operation failed."
        },
        "Code": {
          "type": "string",
          "description": "The error code associated with the operation failure."
        }
      },
      "required": [
        "Message",
        "Code"
      ]
    }
  }
}