1 | import { AuthScheme } from "./auth";
|
2 |
|
3 |
|
4 |
|
5 | export interface EndpointPartition {
|
6 | name: string;
|
7 | dnsSuffix: string;
|
8 | dualStackDnsSuffix: string;
|
9 | supportsFIPS: boolean;
|
10 | supportsDualStack: boolean;
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 | export interface EndpointARN {
|
16 | partition: string;
|
17 | service: string;
|
18 | region: string;
|
19 | accountId: string;
|
20 | resourceId: Array<string>;
|
21 | }
|
22 |
|
23 |
|
24 |
|
25 | export declare enum EndpointURLScheme {
|
26 | HTTP = "http",
|
27 | HTTPS = "https"
|
28 | }
|
29 |
|
30 |
|
31 |
|
32 | export interface EndpointURL {
|
33 | |
34 |
|
35 |
|
36 | scheme: EndpointURLScheme;
|
37 | |
38 |
|
39 |
|
40 | authority: string;
|
41 | |
42 |
|
43 |
|
44 |
|
45 | path: string;
|
46 | |
47 |
|
48 |
|
49 |
|
50 | normalizedPath: string;
|
51 | |
52 |
|
53 |
|
54 | isIp: boolean;
|
55 | }
|
56 |
|
57 |
|
58 |
|
59 | export type EndpointObjectProperty = string | boolean | {
|
60 | [key: string]: EndpointObjectProperty;
|
61 | } | EndpointObjectProperty[];
|
62 |
|
63 |
|
64 |
|
65 | export interface EndpointV2 {
|
66 | url: URL;
|
67 | properties?: {
|
68 | authSchemes?: AuthScheme[];
|
69 | } & Record<string, EndpointObjectProperty>;
|
70 | headers?: Record<string, string[]>;
|
71 | }
|
72 |
|
73 |
|
74 |
|
75 | export type EndpointParameters = {
|
76 | [name: string]: undefined | string | boolean;
|
77 | };
|