UNPKG

969 BTypeScriptView Raw
1import { AuthScheme } from "./auth";
2export interface EndpointPartition {
3 name: string;
4 dnsSuffix: string;
5 dualStackDnsSuffix: string;
6 supportsFIPS: boolean;
7 supportsDualStack: boolean;
8}
9export interface EndpointARN {
10 partition: string;
11 service: string;
12 region: string;
13 accountId: string;
14 resourceId: Array<string>;
15}
16export declare enum EndpointURLScheme {
17 HTTP = "http",
18 HTTPS = "https",
19}
20export interface EndpointURL {
21 scheme: EndpointURLScheme;
22 authority: string;
23 path: string;
24 normalizedPath: string;
25 isIp: boolean;
26}
27export type EndpointObjectProperty =
28 | string
29 | boolean
30 | {
31 [key: string]: EndpointObjectProperty;
32 }
33 | EndpointObjectProperty[];
34export interface EndpointV2 {
35 url: URL;
36 properties?: {
37 authSchemes?: AuthScheme[];
38 } & Record<string, EndpointObjectProperty>;
39 headers?: Record<string, string[]>;
40}
41export type EndpointParameters = {
42 [name: string]: undefined | string | boolean;
43};