{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-create-iampolicy-assignment-request-schema.json",
  "title": "CreateIAMPolicyAssignmentRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-quicksight-iam-policy-assignments-api-openapi.yml#/components/schemas/CreateIAMPolicyAssignmentRequest",
  "type": "object",
  "properties": {
    "AwsAccountId": {
      "type": "string",
      "description": "The ID of the Amazon Web Services account where you want to assign an IAM policy to Amazon Quick Sight users or groups."
    },
    "AssignmentName": {
      "type": "string",
      "description": "The name of the assignment, also called a rule. The name must be unique within the Amazon Web Services account."
    },
    "AssignmentStatus": {
      "type": "string",
      "enum": [
        "ENABLED",
        "DRAFT",
        "DISABLED"
      ],
      "description": "The status of the assignment. Possible values are as follows: ENABLED - Anything specified in this assignment is used when creating the data source. DISABLED - This assignment isn't used when creating the data source. DRAFT - This assignment is an unfinished draft and isn't used when creating the data source."
    },
    "PolicyArn": {
      "type": "string",
      "description": "The ARN for the IAM policy to apply to the Amazon Quick Sight users and groups specified in this assignment."
    },
    "Identities": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "The Amazon Quick Sight users, groups, or both that you want to assign the policy to."
    },
    "Namespace": {
      "type": "string",
      "description": "The namespace that contains the assignment."
    }
  },
  "required": [
    "AwsAccountId",
    "AssignmentName",
    "AssignmentStatus",
    "Namespace"
  ]
}