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]
session_tagsDict[str, str]
subject_scopestr
attribute
role_arn: Required[str]
attribute
session_tags: Dict[str, 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.

SessionTags are AWS session tags on the role session, for role policies that scope access with ${aws:PrincipalTag/}. The role's trust policy must allow sts:TagSession. At most 50; keys are 1-128 and values 1-256 letters, numbers, spaces or __.:=+-@ (keys may also contain /); keys starting with aws: or langsmith: are reserved. Only valid with role_arn, 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.