---
updatedAt: 2026-10-06T17:40:07.000Z
agentTools:
  projectIndex: https://docs.akeyless.io/llms.txt
---

# /gateway-update-remote-access-session-forwarding-aws-s3

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "email": "support@akeyless.io",
      "name": "Akeyless",
      "url": "http://akeyless.io"
    },
    "description": "The purpose of this application is to provide access to Akeyless API.",
    "title": "Infrastructure & connectivity",
    "version": "3.0"
  },
  "paths": {
    "/gateway-update-remote-access-session-forwarding-aws-s3": {
      "post": {
        "operationId": "gwUpdateRemoteAccessSessionLogsAwsS3",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/gwUpdateRemoteAccessSessionLogsAwsS3"
              }
            }
          },
          "required": true,
          "x-go-name": "Body"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/gwUpdateRemoteAccessSessionLogsResponse"
          },
          "default": {
            "$ref": "#/components/responses/errorResponse"
          }
        },
        "tags": [
          "Secure Remote Access"
        ],
        "x-docs-category": "Infrastructure & connectivity",
        "x-docs-group": "Secure Remote Access"
      }
    }
  },
  "tags": [
    {
      "name": "Secure Remote Access"
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  },
  "servers": [
    {
      "url": "https://api.akeyless.io"
    }
  ],
  "components": {
    "responses": {
      "errorResponse": {
        "description": "errorResponse wraps any error to return it as a JSON object with one \"error\"\nfield.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/JSONError"
            }
          }
        }
      },
      "gwUpdateRemoteAccessSessionLogsResponse": {
        "description": "gwUpdateRemoteAccessSessionLogsResponse wraps response body.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/gatewayUpdateLogForwardingOutput"
            }
          }
        }
      }
    },
    "schemas": {
      "JSONError": {
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Err"
          }
        },
        "title": "JSONError wraps an error with JSON object.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client"
      },
      "gatewayUpdateLogForwardingOutput": {
        "properties": {
          "updated": {
            "type": "boolean",
            "x-go-name": "Updated"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      },
      "gwUpdateRemoteAccessSessionLogsAwsS3": {
        "description": "gwUpdateRemoteAccessSessionLogsAwsS3 is a command that updates session log forwarding config (aws-s3 target)",
        "properties": {
          "access-id": {
            "description": "AWS access id relevant for access_key auth-type",
            "type": "string",
            "x-go-name": "AwsAccessId"
          },
          "access-key": {
            "description": "AWS access key relevant for access_key auth-type",
            "type": "string",
            "x-go-name": "AwsAccessKey"
          },
          "auth-type": {
            "description": "AWS auth type [access_key/cloud_id/assume_role]",
            "type": "string",
            "x-go-name": "AwsAuthType"
          },
          "bucket-name": {
            "description": "AWS S3 bucket name",
            "type": "string",
            "x-go-name": "AwsBucketName"
          },
          "enable": {
            "default": "true",
            "description": "Enable Log Forwarding [true/false]",
            "type": "string",
            "x-go-name": "Enable"
          },
          "json": {
            "default": false,
            "description": "Set output format to JSON",
            "type": "boolean",
            "x-go-name": "Json"
          },
          "log-folder": {
            "default": "use-existing",
            "description": "AWS S3 destination folder for logs",
            "type": "string",
            "x-go-name": "AwsLogFolder"
          },
          "output-format": {
            "default": "text",
            "description": "Logs format [text/json]",
            "type": "string",
            "x-go-name": "OutputFormat"
          },
          "pull-interval": {
            "default": "10",
            "description": "Pull interval in seconds",
            "type": "string",
            "x-go-name": "PullIntervalSec"
          },
          "region": {
            "description": "AWS region",
            "type": "string",
            "x-go-name": "AwsRegion"
          },
          "role-arn": {
            "description": "AWS role arn relevant for assume_role auth-type",
            "type": "string",
            "x-go-name": "AwsRoleARN"
          },
          "token": {
            "description": "Authentication token (see `/auth` and `/configure`)",
            "type": "string",
            "x-go-name": "Profile"
          },
          "uid-token": {
            "description": "The universal identity token, Required only for universal_identity authentication",
            "type": "string",
            "x-go-name": "UIDToken"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      }
    }
  }
}
```