# aws_auth

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/sandbox/_proxy_config/aws_auth)

Build a sandbox proxy rule that signs AWS HTTPS requests.

The sandbox proxy keeps the real AWS credentials outside the sandbox and
signs supported AWS requests with SigV4 on the sandbox's behalf. AWS
credentials must be supplied as ``workspace_secret`` or ``opaque`` values;
plaintext AWS credentials are intentionally not supported.

## Signature

```python
aws_auth(
    *,
    access_key_id: SandboxProxySecret,
    secret_access_key: SandboxProxySecret,
    name: str = 'aws',
    enabled: bool = True,
) -> SandboxProxyRule
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/d6cd6082f09e7826a2d6afe444ae6119e61b82a6/python/langsmith/sandbox/_proxy_config.py#L109)