UNPKG

@smithy/types

Version:

[![NPM version](https://img.shields.io/npm/v/@smithy/types/latest.svg)](https://www.npmjs.com/package/@smithy/types) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/types.svg)](https://www.npmjs.com/package/@smithy/types)

58 lines (57 loc) 1.28 kB
/** * @internal * * Authentication schemes represent a way that the service will authenticate the customer’s identity. */ export interface AuthScheme { /** * @example "sigv4a" or "sigv4" */ name: "sigv4" | "sigv4a" | string; /** * @example "s3" */ signingName: string; /** * @example "us-east-1" */ signingRegion: string; /** * @example ["*"] * @example ["us-west-2", "us-east-1"] */ signingRegionSet?: string[]; /** * @deprecated this field was renamed to signingRegion. */ signingScope?: never; properties: Record<string, unknown>; } /** * @internal * @deprecated */ export interface HttpAuthDefinition { /** * Defines the location of where the Auth is serialized. */ in: HttpAuthLocation; /** * Defines the name of the HTTP header or query string parameter * that contains the Auth. */ name: string; /** * Defines the security scheme to use on the `Authorization` header value. * This can only be set if the "in" property is set to {@link HttpAuthLocation.HEADER}. */ scheme?: string; } /** * @internal * @deprecated */ export declare enum HttpAuthLocation { HEADER = "header", QUERY = "query" }