@aws-sdk/middleware-user-agent
- Version 3.758.0
- Published
- 35.9 kB
- 7 dependencies
- Apache-2.0 license
Install
npm i @aws-sdk/middleware-user-agent
yarn add @aws-sdk/middleware-user-agent
pnpm add @aws-sdk/middleware-user-agent
Overview
[](https://www.npmjs.com/package/@aws-sdk/middleware-user-agent) [](https://www.npmjs.c
Index
Variables
variable getUserAgentMiddlewareOptions
const getUserAgentMiddlewareOptions: any;
Functions
function getUserAgentPlugin
getUserAgentPlugin: (config: UserAgentResolvedConfig) => Pluggable<any, any>;
function resolveUserAgentConfig
resolveUserAgentConfig: <T>( input: T & PreviouslyResolved & UserAgentInputConfig) => T & UserAgentResolvedConfig;
function userAgentMiddleware
userAgentMiddleware: ( options: UserAgentResolvedConfig) => <Output extends MetadataBearer>( next: BuildHandler<any, any>, context: HandlerExecutionContext | AwsHandlerExecutionContext) => BuildHandler<any, any>;
Build user agent header sections from: 1. runtime-specific default user agent provider; 2. custom user agent from
customUserAgent
client config; 3. handler execution context set by internal SDK components; The built user agent will be set tox-amz-user-agent
header for ALL the runtimes. Please note that any override to theuser-agent
orx-amz-user-agent
header in the HTTP request is discouraged. Please usecustomUserAgent
client config or middleware setting theuserAgent
context to generate desired user agent.
Interfaces
interface UserAgentInputConfig
interface UserAgentInputConfig {}
Modifiers
@public
property customUserAgent
customUserAgent?: string | UserAgent;
The custom user agent header that would be appended to default one
property userAgentAppId
userAgentAppId?: string | undefined | Provider<string | undefined>;
The application ID used to identify the application.
interface UserAgentResolvedConfig
interface UserAgentResolvedConfig {}
property customUserAgent
customUserAgent?: UserAgent;
The custom user agent header that would be appended to default one
property runtime
runtime: string;
The runtime environment
property userAgentAppId
userAgentAppId: Provider<string | undefined>;
Resolved value for input config {config.userAgentAppId}
Package Files (3)
Dependencies (7)
Dev Dependencies (5)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@aws-sdk/middleware-user-agent
.
- Markdown[](https://www.jsdocs.io/package/@aws-sdk/middleware-user-agent)
- HTML<a href="https://www.jsdocs.io/package/@aws-sdk/middleware-user-agent"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3207 ms. - Missing or incorrect documentation? Open an issue for this package.