{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces-web/json-schema/amazon-workspaces-web-update-session-logger-request-schema.json",
  "title": "UpdateSessionLoggerRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-web-sessionloggers-api-openapi.yml#/components/schemas/UpdateSessionLoggerRequest",
  "type": "object",
  "properties": {
    "sessionLoggerArn": {
      "type": "string",
      "description": "The ARN of the session logger to update."
    },
    "eventFilter": {
      "$ref": "#/$defs/EventFilter"
    },
    "logConfiguration": {
      "$ref": "#/$defs/LogConfiguration"
    },
    "displayName": {
      "type": "string",
      "description": "The updated display name."
    }
  },
  "required": [
    "sessionLoggerArn"
  ],
  "$defs": {
    "EventFilter": {
      "type": "object",
      "properties": {
        "all": {
          "type": "string",
          "description": "The filter that monitors all of the available events, including any new events emitted in the future."
        },
        "include": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "WebsiteInteract",
              "FileDownloadFromSecureBrowserToRemoteDisk",
              "FileTransferFromRemoteToLocalDisk",
              "FileTransferFromLocalToRemoteDisk",
              "FileUploadFromRemoteDiskToSecureBrowser",
              "ContentPasteToWebsite",
              "ContentTransferFromLocalToRemoteClipboard",
              "ContentCopyFromWebsite",
              "UrlLoad",
              "TabOpen",
              "TabClose",
              "PrintJobSubmit",
              "SessionConnect",
              "SessionStart",
              "SessionDisconnect",
              "SessionEnd",
              "UrlBlockByContentFilter"
            ]
          },
          "description": "The filter that monitors only the listed set of events. New events are not auto-monitored."
        }
      },
      "description": "Exactly one member is set."
    },
    "LogConfiguration": {
      "type": "object",
      "properties": {
        "s3": {
          "$ref": "#/$defs/S3LogConfiguration"
        }
      }
    },
    "S3LogConfiguration": {
      "type": "object",
      "properties": {
        "bucket": {
          "type": "string",
          "description": "The S3 bucket name where logs are delivered."
        },
        "keyPrefix": {
          "type": "string",
          "description": "The S3 path prefix that determines where log files are stored."
        },
        "bucketOwner": {
          "type": "string",
          "description": "The expected bucket owner of the target S3 bucket. The caller must have permissions to write to the target bucket."
        },
        "logFileFormat": {
          "type": "string",
          "enum": [
            "JSONLines",
            "Json"
          ],
          "description": "The format of the LogFile that is written to S3."
        },
        "folderStructure": {
          "type": "string",
          "enum": [
            "Flat",
            "NestedByDate"
          ],
          "description": "The folder structure that defines the organizational structure for log files in S3."
        }
      },
      "required": [
        "bucket",
        "logFileFormat",
        "folderStructure"
      ]
    }
  }
}