{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-create-dlp-setting-request-schema.json",
  "title": "CreateDlpSettingRequest",
  "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/CreateDlpSettingRequest",
  "type": "object",
  "properties": {
    "AwsAccountId": {
      "type": "string",
      "description": "The ID of the Amazon Web Services account in which to create the DLP setting."
    },
    "DlpSettingId": {
      "type": "string",
      "description": "A unique identifier for the DLP setting."
    },
    "Name": {
      "type": "string",
      "description": "A human-readable display name for the DLP setting."
    },
    "ProviderType": {
      "type": "string",
      "enum": [
        "MICROSOFT_PURVIEW"
      ],
      "description": "The type of external DLP provider to use for sensitivity label classification. Currently, the only supported value is MICROSOFT_PURVIEW."
    },
    "ProviderConfig": {
      "$ref": "#/$defs/ProviderConfig"
    },
    "ProviderOutageAction": {
      "type": "string",
      "enum": [
        "ALLOW",
        "WARN",
        "BLOCK"
      ],
      "description": "The 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 at time of setting creation."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of resource tags to apply to the DLP setting. You can use tags to manage access to your Amazon Web Services resources."
    }
  },
  "required": [
    "AwsAccountId",
    "DlpSettingId",
    "Name",
    "ProviderType",
    "ProviderConfig",
    "ProviderOutageAction",
    "Enabled"
  ],
  "$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."
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "Tag key."
        },
        "Value": {
          "type": "string",
          "description": "Tag value."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}