AWS SDK for JavaScript STS Client for Node.js, Browser and React Native, providing temporary security credentials and role assumption capabilities
92
Evaluation — 92%
↑ 1.05xAgent success when using this tile
A utility that wraps AWS SDK clients with a custom HTTP handler to intercept and log all outgoing HTTP requests for debugging and monitoring purposes.
@generates
/**
* Represents a logged HTTP request
*/
export interface LoggedRequest {
url: string;
method: string;
headers: Record<string, string>;
body?: string;
}
/**
* Creates a custom HTTP handler that logs requests and delegates to another handler
*
* @param delegateHandler - The actual HTTP handler to forward requests to (e.g., NodeHttpHandler)
* @param onRequest - Callback invoked for each request with logged request details
* @returns A custom request handler that can be used with AWS SDK clients
*/
export function createLoggingHandler(
delegateHandler: any,
onRequest: (request: LoggedRequest) => void
): any;Provides AWS STS client for testing request interception
@satisfied-by
Provides type definitions for HTTP handlers
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-aws-sdk--client-stsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10