LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithtypessandboxesbox_create_paramsProxyConfigRuleAwsSandboxesProxyAwsRoleConfig
Class●Since v0.14

ProxyConfigRuleAwsSandboxesProxyAwsRoleConfig

Copy
ProxyConfigRuleAwsSandboxesProxyAwsRoleConfig()

Bases

TypedDict

Constructors

Attributes

View source on GitHub
constructor
__init__
NameType
role_arnRequired[str]
subject_scopestr
attribute
role_arn: Required[str]
attribute
subject_scope: str

IAM role to assume with AssumeRoleWithWebIdentity, using a short-lived OIDC token LangSmith signs for this workspace. The role's trust policy must trust LangSmith's issuer for the token subject. Credentials renew automatically, and access follows the role's effective AWS permissions. Mutually exclusive with static keys, and cannot be changed after creation.

SubjectScope picks the token subject the role trusts: "workspace" (the default) or "tag:", which must be one of the sandbox's tag_value_ids. Only valid with role_arn.