{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-entity-resolution/json-schema/amazon-entity-resolution-add-policy-statement-input-schema.json",
  "title": "AddPolicyStatementInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-entity-resolution-policies-api-openapi.yml#/components/schemas/AddPolicyStatementInput",
  "type": "object",
  "properties": {
    "arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the resource that will be accessed by the principal."
    },
    "statementId": {
      "type": "string",
      "description": "A statement identifier that differentiates the statement from others in the same policy."
    },
    "effect": {
      "type": "string",
      "enum": [
        "Allow",
        "Deny"
      ],
      "description": "Determines whether the permissions specified in the policy are to be allowed (Allow) or denied (Deny). If you set the value of the effect parameter to Deny for the AddPolicyStatement operation, you must also set the value of the effect parameter in the policy to Deny for the PutPolicy operation."
    },
    "action": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The action that the principal can use on the resource. For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob."
    },
    "principal": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN."
    },
    "condition": {
      "type": "string",
      "description": "A set of condition keys that you can use in key policies."
    }
  },
  "required": [
    "arn",
    "statementId",
    "effect",
    "action",
    "principal"
  ]
}