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

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

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

RuleAwsSandboxesProxyAwsRoleConfig

Copy
RuleAwsSandboxesProxyAwsRoleConfig()

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.