{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iam-identity-center/json-schema/amazon-iam-identity-center-update-instance-request-schema.json",
  "title": "UpdateInstanceRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iam-identity-center-instance-api-openapi.yml#/components/schemas/UpdateInstanceRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "Updates the instance name."
    },
    "InstanceArn": {
      "type": "string",
      "description": "The ARN of the instance of IAM Identity Center under which the operation will run. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference."
    },
    "EncryptionConfiguration": {
      "$ref": "#/$defs/EncryptionConfiguration"
    },
    "PermissionSetsEnabled": {
      "type": "boolean",
      "description": "Enables permission sets for this Identity Center instance. The only accepted value is true . After permission sets are enabled, they cannot be disabled. You can't set EncryptionConfiguration and PermissionSetsEnabled in the same request. To configure both, make two separate UpdateInstance calls. You can make these calls in parallel."
    }
  },
  "required": [
    "InstanceArn"
  ],
  "$defs": {
    "EncryptionConfiguration": {
      "type": "object",
      "properties": {
        "KeyType": {
          "type": "string",
          "enum": [
            "AWS_OWNED_KMS_KEY",
            "CUSTOMER_MANAGED_KEY"
          ],
          "description": "The type of KMS key used for encryption."
        },
        "KmsKeyArn": {
          "type": "string",
          "description": "The ARN of the KMS key used to encrypt data. Required when KeyType is CUSTOMER_MANAGED_KEY. Cannot be specified when KeyType is AWS_OWNED_KMS_KEY."
        }
      },
      "required": [
        "KeyType"
      ]
    }
  }
}