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
Pythonlangsmithtypesdata_plane_update_paramsFirewall
Class●Since v0.16

Firewall

Copy
Firewall()

Bases

TypedDict

Constructors

Attributes

View source on GitHub
constructor
__init__
NameType
allow_httpbool
allowed_cidrsDict[str, Iterable[int]]
allowed_domainsSequenceNotStr[str]
attribute
allow_http: bool

AllowHTTP allows outbound plain HTTP in addition to HTTPS.

Keeps its value when omitted.

attribute
allowed_cidrs: Dict[str, Iterable[int]]

AllowedCidrs replaces the map of IPv4 CIDRs that workloads may reach to their allowed TCP ports: up to 500 CIDRs, each with 1 to 20 unique ports. Keeps its value when omitted.

attribute
allowed_domains: SequenceNotStr[str]

AllowedDomains replaces the domains that workloads may reach: up to 500 unique lowercase domains, including .aws.langchain-byoc.com. A leading dot also matches subdomains. Keeps its value when omitted.

Firewall changes the outbound firewall.

AWS only; fails when the firewall is disabled. Omitted fields keep their value.