Skip to content

Save Browser Session Profile

bedrockagentcore_save_browser_session_profile R Documentation

Saves the current state of a browser session as a reusable profile in Amazon Bedrock AgentCore

Description

Saves the current state of a browser session as a reusable profile in Amazon Bedrock AgentCore. A browser profile captures persistent browser data such as cookies and local storage from an active session, enabling you to reuse this data in future browser sessions.

To save a browser session profile, you must specify the profile identifier, browser identifier, and session ID. The session must be active when saving the profile. Once saved, the profile can be used with the start_browser_session operation to initialize new sessions with the stored browser state.

Browser profiles are useful for scenarios that require persistent authentication, maintaining user preferences across sessions, or continuing tasks that depend on previously stored browser data.

The following operations are related to save_browser_session_profile:

  • start_browser_session

  • get_browser_session

Usage

bedrockagentcore_save_browser_session_profile(traceId, traceParent,
  profileIdentifier, browserIdentifier, sessionId, clientToken)

Arguments

traceId

The trace identifier for request tracking.

traceParent

The parent trace information for distributed tracing.

profileIdentifier

[required] The unique identifier for the browser profile. This identifier is used to reference the profile when starting new browser sessions. The identifier must follow the pattern of an alphanumeric name (up to 48 characters) followed by a hyphen and a 10-character alphanumeric suffix.

browserIdentifier

[required] The unique identifier of the browser associated with the session from which to save the profile.

sessionId

[required] The unique identifier of the browser session from which to save the profile. The session must be active when saving the profile.

clientToken

A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request, but does not return an error.

Value

A list with the following syntax:

list(
  profileIdentifier = "string",
  browserIdentifier = "string",
  sessionId = "string",
  lastUpdatedAt = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

svc$save_browser_session_profile(
  traceId = "string",
  traceParent = "string",
  profileIdentifier = "string",
  browserIdentifier = "string",
  sessionId = "string",
  clientToken = "string"
)