{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-update-dlp-setting-request-schema.json",
  "title": "UpdateDlpSettingRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-quicksight-data-loss-prevention-api-openapi.yml#/components/schemas/UpdateDlpSettingRequest",
  "type": "object",
  "properties": {
    "AwsAccountId": {
      "type": "string",
      "description": "The ID of the Amazon Web Services account that contains the DLP setting that you want to update."
    },
    "DlpSettingId": {
      "type": "string",
      "description": "The ID of the DLP setting that you want to update."
    },
    "Name": {
      "type": "string",
      "description": "An updated display name for the DLP setting."
    },
    "ProviderType": {
      "type": "string",
      "enum": [
        "MICROSOFT_PURVIEW"
      ],
      "description": "An updated DLP provider type. Currently, the only supported value is MICROSOFT_PURVIEW."
    },
    "ProviderConfig": {
      "$ref": "#/$defs/ProviderConfig"
    },
    "ProviderOutageAction": {
      "type": "string",
      "enum": [
        "ALLOW",
        "WARN",
        "BLOCK"
      ],
      "description": "An updated behavior to apply when the DLP provider is unreachable. Valid values are ALLOW, WARN, and BLOCK."
    },
    "Enabled": {
      "type": "boolean",
      "description": "Specifies whether DLP enforcement is active for this setting. Set to true to enable enforcement, or false to disable it."
    }
  },
  "required": [
    "AwsAccountId",
    "DlpSettingId"
  ],
  "$defs": {
    "LabelActionMapping": {
      "type": "object",
      "properties": {
        "LabelId": {
          "type": "string",
          "description": "The identifier of the sensitivity label from the DLP provider."
        },
        "LabelName": {
          "type": "string",
          "description": "The display name of the sensitivity label from the DLP provider."
        },
        "Action": {
          "type": "string",
          "enum": [
            "ALLOW",
            "WARN",
            "BLOCK"
          ],
          "description": "The enforcement action to apply when content with this sensitivity label is detected. Valid values are ALLOW, BLOCK, and WARN."
        }
      },
      "required": [
        "LabelId",
        "LabelName",
        "Action"
      ]
    },
    "MicrosoftPurviewCredentials": {
      "type": "object",
      "properties": {
        "SecretArn": {
          "type": "string",
          "description": "The ARN of the Amazon Web Services Secrets Manager secret that contains the Microsoft Purview OAuth credentials. The secret includes the Azure tenant ID, client ID, and client secret or certificate."
        }
      },
      "required": [
        "SecretArn"
      ]
    },
    "MicrosoftPurviewProviderConfig": {
      "type": "object",
      "properties": {
        "Credentials": {
          "$ref": "#/$defs/MicrosoftPurviewCredentials"
        },
        "LabelActionMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LabelActionMapping"
          },
          "description": "The mappings from Microsoft Purview sensitivity labels to enforcement actions."
        },
        "UnmappedAction": {
          "type": "string",
          "enum": [
            "ALLOW",
            "WARN",
            "BLOCK"
          ],
          "description": "The default action to apply to content that has no sensitivity label or whose label is not mapped. Valid values are ALLOW, BLOCK, and WARN."
        }
      },
      "required": [
        "Credentials",
        "LabelActionMappings",
        "UnmappedAction"
      ]
    },
    "ProviderConfig": {
      "type": "object",
      "properties": {
        "MicrosoftPurview": {
          "$ref": "#/$defs/MicrosoftPurviewProviderConfig"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}