Amazon WorkSpaces Web Workspaces Web Sessionloggers API

The Workspaces Web Sessionloggers API from Amazon WorkSpaces Web — 2 operation(s) for workspaces web sessionloggers.

GitHub OpenAPI

Operations 7

PUT /portals/{portalArn+}/sessionLogger Associate Session Logger #
DELETE /portals/{portalArn+}/sessionLogger Disassociate Session Logger #
POST /sessionLoggers Create Session Logger #
GET /sessionLoggers List Session Loggers #
GET /sessionLoggers/{sessionLoggerArn+} Get Session Logger #
POST /sessionLoggers/{sessionLoggerArn+} Update Session Logger #
DELETE /sessionLoggers/{sessionLoggerArn+} Delete Session Logger #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-workspaces-web:amazon-workspaces-web-sessionloggers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-workspaces-web-sessionloggers-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon WorkSpaces Web Sessionloggers API
  version: '2020-07-08'
  description: Generated from AWS's published Smithy model for Amazon WorkSpaces Web. 7 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://workspaces-web.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /portals/{portalArn+}/sessionLogger:
    put:
      operationId: AssociateSessionLogger
      summary: Associate Session Logger
      description: Associates a session logger with a portal.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssociateSessionLoggerResponse'
              example:
                portalArn: arn:aws:workspaces-web:us-west-2:123456789012:portal/12345678-1234-1234-1234-123456789012
                sessionLoggerArn: arn:aws:workspaces-web:us-west-2:123456789012:sessionLogger/11111111-1111-1111-1111-111111111111
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: portalArn
        in: path
        required: true
        schema:
          type: string
        description: The ARN of the portal to associate to the session logger ARN.
      - name: sessionLoggerArn
        in: query
        required: true
        schema:
          type: string
        description: The ARN of the session logger to associate to the portal ARN.
      tags:
      - Sessionloggers
    delete:
      operationId: DisassociateSessionLogger
      summary: Disassociate Session Logger
      description: Disassociates a session logger from a portal.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DisassociateSessionLoggerResponse'
              example: {}
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: portalArn
        in: path
        required: true
        schema:
          type: string
        description: The ARN of the portal to disassociate from the a session logger.
      tags:
      - Sessionloggers
  /sessionLoggers:
    post:
      operationId: CreateSessionLogger
      summary: Create Session Logger
      description: Creates a session logger.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSessionLoggerResponse'
              example:
                sessionLoggerArn: arn:aws:workspaces-web:us-west-2:123456789012:sessionLogger/12345678-1234-1234-1234-123456789012
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                eventFilter:
                  $ref: '#/components/schemas/EventFilter'
                logConfiguration:
                  $ref: '#/components/schemas/LogConfiguration'
                displayName:
                  type: string
                  description: The human-readable display name for the session logger resource.
                customerManagedKey:
                  type: string
                  description: The custom managed key of the session logger.
                additionalEncryptionContext:
                  type: object
                  additionalProperties:
                    type: string
                  description: The additional encryption context of the session logger.
                tags:
                  type: array
                  items:
                    $ref: '#/components/schemas/Tag'
                  description: The tags to add to the session logger.
                clientToken:
                  type: string
                  description: A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
                    Idempotency ensures that an API request completes only once. With an idempotent request, if the original
                    request completes successfully, subsequent retries with the same client token returns the result from
                    the original successful request. If you do not specify a client token, one is automatically generated
                    by the AWS SDK.
              required:
              - eventFilter
              - logConfiguration
            example:
              eventFilter:
                all: {}
              logConfiguration:
                s3:
                  bucket: my-session-logs-bucket
                  keyPrefix: session-logs/all/events
                  bucketOwner: '123456789012'
                  logFileFormat: Json
                  folderStructure: Flat
              displayName: Session Logger with All Events
      tags:
      - Sessionloggers
    get:
      operationId: ListSessionLoggers
      summary: List Session Loggers
      description: Lists all available session logger resources.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSessionLoggersResponse'
              example:
                sessionLoggers:
                - sessionLoggerArn: arn:aws:workspaces-web:us-west-2:123456789012:sessionLogger/12345678-1234-1234-1234-123456789012
                  logConfiguration:
                    s3:
                      bucket: my-session-logs-bucket-1
                      keyPrefix: session-logs/all/events
                      bucketOwner: '123456789012'
                      logFileFormat: Json
                      folderStructure: Flat
                  displayName: Session Logger with All Events
                  creationDate: '2024-01-15T10:30:00Z'
                - sessionLoggerArn: arn:aws:workspaces-web:us-west-2:123456789012:sessionLogger/87654321-4321-4321-4321-210987654321
                  logConfiguration:
                    s3:
                      bucket: my-session-logs-bucket-2
                      keyPrefix: session-logs/each/event
                      bucketOwner: '123456789012'
                      logFileFormat: JSONLines
                      folderStructure: NestedByDate
                  displayName: Session Logger with Each Events
                  creationDate: '2024-01-15T14:45:00Z'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: nextToken
        in: query
        schema:
          type: string
        description: The pagination token used to retrieve the next page of results for this operation.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to be included in the next page.
      tags:
      - Sessionloggers
  /sessionLoggers/{sessionLoggerArn+}:
    get:
      operationId: GetSessionLogger
      summary: Get Session Logger
      description: Gets details about a specific session logger resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSessionLoggerResponse'
              example:
                sessionLogger:
                  sessionLoggerArn: arn:aws:workspaces-web:us-west-2:123456789012:sessionLogger/12345678-1234-1234-1234-123456789012
                  eventFilter:
                    all: {}
                  logConfiguration:
                    s3:
                      bucket: my-session-logs-bucket-1
                      keyPrefix: session-logs/all/events
                      bucketOwner: '123456789012'
                      logFileFormat: Json
                      folderStructure: Flat
                  displayName: Session Logger with All Events
                  creationDate: '2024-01-15T10:30:00Z'
                  associatedPortalArns:
                  - arn:aws:workspaces-web:us-west-2:123456789012:portal/87654321-4321-4321-4321-210987654321
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: sessionLoggerArn
        in: path
        required: true
        schema:
          type: string
        description: The ARN of the session logger.
      tags:
      - Sessionloggers
    post:
      operationId: UpdateSessionLogger
      summary: Update Session Logger
      description: Updates the details of a session logger.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateSessionLoggerResponse'
              example:
                sessionLogger:
                  sessionLoggerArn: arn:aws:workspaces-web:us-west-2:123456789012:sessionLogger/12345678-1234-1234-1234-123456789012
                  eventFilter:
                    include:
                    - SessionStart
                    - SessionEnd
                    - UrlLoad
                    - WebsiteInteract
                  logConfiguration:
                    s3:
                      bucket: my-session-logs-bucket
                      keyPrefix: updated/session-logs/each/event
                      bucketOwner: '123456789012'
                      logFileFormat: Json
                      folderStructure: Flat
                  displayName: Updated Session Logger with Specific Events
                  creationDate: '2024-01-15T10:30:00Z'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: sessionLoggerArn
        in: path
        required: true
        schema:
          type: string
        description: The ARN of the session logger to update.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                eventFilter:
                  $ref: '#/components/schemas/EventFilter'
                logConfiguration:
                  $ref: '#/components/schemas/LogConfiguration'
                displayName:
                  type: string
                  description: The updated display name.
            example:
              sessionLoggerArn: arn:aws:workspaces-web:us-west-2:123456789012:sessionLogger/12345678-1234-1234-1234-123456789012
              eventFilter:
                include:
                - SessionStart
                - SessionEnd
                - UrlLoad
                - WebsiteInteract
      tags:
      - Sessionloggers
    delete:
      operationId: DeleteSessionLogger
      summary: Delete Session Logger
      description: Deletes a session logger resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteSessionLoggerResponse'
              example: {}
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: sessionLoggerArn
        in: path
        required: true
        schema:
          type: string
        description: The ARN of the session logger.
      tags:
      - Sessionloggers
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: workspaces-web
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
    AssociateSessionLoggerResponse:
      type: object
      properties:
        portalArn:
          type: string
          description: The ARN of the portal.
        sessionLoggerArn:
          type: string
          description: The ARN of the session logger.
      required:
      - portalArn
      - sessionLoggerArn
    ConflictException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: Identifier of the resource affected.
        resourceType:
          type: string
          description: Type of the resource affected.
    CreateSessionLoggerResponse:
      type: object
      properties:
        sessionLoggerArn:
          type: string
          description: The ARN of the session logger.
      required:
      - sessionLoggerArn
    DeleteSessionLoggerResponse:
      type: object
      properties: {}
    DisassociateSessionLoggerResponse:
      type: object
      properties: {}
    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.
    GetSessionLoggerResponse:
      type: object
      properties:
        sessionLogger:
          $ref: '#/components/schemas/SessionLogger'
    InternalServerException:
      type: object
      properties:
        message:
          type: string
        retryAfterSeconds:
          type: integer
          description: Advice to clients on when the call can be safely retried.
    ListSessionLoggersResponse:
      type: object
      properties:
        sessionLoggers:
          type: array
          items:
            $ref: '#/components/schemas/SessionLoggerSummary'
          description: The list of session loggers, including summaries of their details.
        nextToken:
          type: string
          description: The pagination token used to retrieve the next page of results for this operation.
    LogConfiguration:
      type: object
      properties:
        s3:
          $ref: '#/components/schemas/S3LogConfiguration'
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: Hypothetical identifier of the resource affected.
        resourceType:
          type: string
          description: Hypothetical type of the resource affected.
    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
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: Identifier of the resource affected.
        resourceType:
          type: string
          description: Type of the resource affected.
        serviceCode:
          type: string
          description: The originating service.
        quotaCode:
          type: string
          description: The originating quota.
    SessionLogger:
      type: object
      properties:
        sessionLoggerArn:
          type: string
          description: The ARN of the session logger resource.
        eventFilter:
          $ref: '#/components/schemas/EventFilter'
        logConfiguration:
          $ref: '#/components/schemas/LogConfiguration'
        customerManagedKey:
          type: string
          description: The custom managed key of the session logger.
        additionalEncryptionContext:
          type: object
          additionalProperties:
            type: string
          description: The additional encryption context of the session logger.
        associatedPortalArns:
          type: array
          items:
            type: string
          description: The associated portal ARN.
        displayName:
          type: string
          description: The human-readable display name.
        creationDate:
          type: string
          format: date-time
          description: The date the session logger resource was created.
      required:
      - sessionLoggerArn
    SessionLoggerSummary:
      type: object
      properties:
        sessionLoggerArn:
          type: string
          description: The ARN of the session logger resource.
        logConfiguration:
          $ref: '#/components/schemas/LogConfiguration'
        displayName:
          type: string
          description: The human-readable display name.
        creationDate:
          type: string
          format: date-time
          description: The date the session logger resource was created.
      required:
      - sessionLoggerArn
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: The key of the tag.
        Value:
          type: string
          description: The value of the tag
      required:
      - Key
      - Value
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
        serviceCode:
          type: string
          description: The originating service.
        quotaCode:
          type: string
          description: The originating quota.
        retryAfterSeconds:
          type: integer
          description: Advice to clients on when the call can be safely retried.
    UpdateSessionLoggerResponse:
      type: object
      properties:
        sessionLogger:
          $ref: '#/components/schemas/SessionLogger'
      required:
      - sessionLogger
    ValidationException:
      type: object
      properties:
        message:
          type: string
        reason:
          type: string
          description: Reason the request failed validation
        fieldList:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
          description: The field that caused the error.
    ValidationExceptionField:
      type: object
      properties:
        name:
          type: string
          description: The name of the field that failed validation.
        message:
          type: string
          description: The message describing why the field failed validation.
      required:
      - name
      - message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/workspaces-web/service/2020-07-08/workspaces-web-2020-07-08.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)