{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iam-access-analyzer/refs/heads/main/json-schema/iam-access-analyzer-policy-generation-schema.json",
"title": "PolicyGeneration",
"description": "Contains details about the policy generation status and properties.",
"type": "object",
"properties": {
"jobId": {
"allOf": [
{
"$ref": "#/components/schemas/JobId"
},
{
"description": "The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request."
}
]
},
"principalArn": {
"allOf": [
{
"$ref": "#/components/schemas/PrincipalArn"
},
{
"description": "The ARN of the IAM entity (user or role) for which you are generating a policy."
}
]
},
"status": {
"allOf": [
{
"$ref": "#/components/schemas/JobStatus"
},
{
"description": "The status of the policy generation request."
}
]
},
"startedOn": {
"allOf": [
{
"$ref": "#/components/schemas/Timestamp"
},
{
"description": "A timestamp of when the policy generation started."
}
]
},
"completedOn": {
"allOf": [
{
"$ref": "#/components/schemas/Timestamp"
},
{
"description": "A timestamp of when the policy generation was completed."
}
]
}
},
"required": [
"jobId",
"principalArn",
"status",
"startedOn"
]
}