@aws-sdk/client-iam-toolbox 3.1118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +188 -0
- package/dist-cjs/index.js +528 -0
- package/dist-es/IAMToolbox.js +13 -0
- package/dist-es/IAMToolboxClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/GetRequestAuthorizationDetailsCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/bdd.js +46 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/IAMToolboxServiceException.js +8 -0
- package/dist-es/models/enums.js +18 -0
- package/dist-es/models/errors.js +49 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/GetRequestAuthorizationDetailsPaginator.js +4 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +132 -0
- package/dist-types/IAMToolbox.d.ts +24 -0
- package/dist-types/IAMToolboxClient.d.ts +187 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/GetRequestAuthorizationDetailsCommand.d.ts +120 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +18 -0
- package/dist-types/models/IAMToolboxServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +42 -0
- package/dist-types/models/errors.d.ts +50 -0
- package/dist-types/models/models_0.d.ts +142 -0
- package/dist-types/pagination/GetRequestAuthorizationDetailsPaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +57 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +21 -0
- package/dist-types/ts3.4/IAMToolbox.d.ts +33 -0
- package/dist-types/ts3.4/IAMToolboxClient.d.ts +105 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetRequestAuthorizationDetailsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/IAMToolboxServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +21 -0
- package/dist-types/ts3.4/models/errors.d.ts +22 -0
- package/dist-types/ts3.4/models/models_0.d.ts +36 -0
- package/dist-types/ts3.4/pagination/GetRequestAuthorizationDetailsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
- package/package.json +69 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
+
import type { EvaluatedEffect, PolicyType, StatementEffect } from "./enums";
|
|
3
|
+
/**
|
|
4
|
+
* <p>An entity that a policy is attached to, identified by its ARN.</p>
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface AttachedTo {
|
|
8
|
+
/**
|
|
9
|
+
* <p>The ARN of the entity that the policy is attached to. The ARN format depends on the policy type:</p> <ul> <li> <p>For identity, session, and permissions boundary policies, this is the principal ARN (for example, an IAM role or user ARN).</p> </li> <li> <p>For resource-based policies, this is the resource ARN.</p> </li> <li> <p>For organization control policies (SCPs and RCPs), this is the AWS Organizations ARN of the account, organizational unit, or root.</p> </li> </ul>
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
arn?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export interface GetRequestAuthorizationDetailsInput {
|
|
18
|
+
/**
|
|
19
|
+
* <p>The authorization ID received in the access denied error message. This ID identifies the specific request to retrieve details for.</p>
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
authorizationId: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* <p>The pagination token from a previous call, used to retrieve the next page of evaluations. Omit this value on the first call.</p>
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
nextToken?: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* <p>A statement that matched during evaluation.</p>
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export interface MatchedStatement {
|
|
34
|
+
/**
|
|
35
|
+
* <p>The statement ID (Sid). If the statement has no Sid, one is generated for reference.</p>
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
sid?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* <p>The evaluated effect of this statement. Valid values:</p> <ul> <li> <p> <code>ALLOW</code> - The statement allows the action.</p> </li> <li> <p> <code>DENY</code> - The statement denies the action.</p> </li> </ul>
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
evaluatedEffect?: StatementEffect | undefined;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* <p>A policy that matched during evaluation, referenced by URI. The URI corresponds to a policy in the top-level policies list.</p>
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export interface MatchedPolicy {
|
|
50
|
+
/**
|
|
51
|
+
* <p>The URI of the policy. This cross-references an entry in the top-level policies list. The value depends on the policy type:</p> <ul> <li> <p>For managed policies, this is the policy ARN.</p> </li> <li> <p>For inline policies, this is an opaque identifier.</p> </li> </ul>
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
uri: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* <p>The statements within the policy that matched during the evaluation.</p>
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
matchedStatements?: MatchedStatement[] | undefined;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* <p>Represents an individual evaluation for a single action and resource pair. This includes the context, the resulting effect, and any policies that matched.</p>
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export interface Evaluation {
|
|
66
|
+
/**
|
|
67
|
+
* <p>The action evaluated for this request (for example, <code>iam:PassRole</code>).</p>
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
action: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* <p>The resource that the action targeted. This is typically a resource ARN, but can be a wildcard ARN that matches multiple resources, or empty for actions that are not resource-specific.</p>
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
resource: string | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* <p>The context keys and values specific to this evaluation. These are applied on top of the request context.</p>
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
context?: Record<string, __DocumentType> | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* <p>The result of the evaluation. Valid values:</p> <ul> <li> <p> <code>ALLOW</code> - The action was allowed.</p> </li> <li> <p> <code>EXPLICIT_DENY</code> - The action was explicitly denied by a policy.</p> </li> <li> <p> <code>IMPLICIT_DENY</code> - The action was denied because no policy allowed it.</p> </li> </ul>
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
evaluatedEffect?: EvaluatedEffect | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* <p>The policies that matched during evaluation of this action and resource. An implicit denial produces no matched policies.</p>
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
matchedPolicies?: MatchedPolicy[] | undefined;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* <p>Contains details about a policy evaluated during authorization. Details include the policy type, whether it is inline or managed, a URI that identifies it, and the entities it is attached to.</p>
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export interface PolicyInfo {
|
|
97
|
+
/**
|
|
98
|
+
* <p>The type of policy. Valid values:</p> <ul> <li> <p> <code>IDENTITY_BASED_POLICY</code> - An identity-based policy attached to an IAM user, group, or role.</p> </li> <li> <p> <code>PERMISSIONS_BOUNDARY</code> - A permissions boundary for an IAM entity.</p> </li> <li> <p> <code>RESOURCE_BASED_POLICY</code> - A resource-based policy attached to a resource.</p> </li> <li> <p> <code>RESOURCE_CONTROL_POLICY</code> - A resource control policy (RCP) in AWS Organizations.</p> </li> <li> <p> <code>SERVICE_CONTROL_POLICY</code> - A service control policy (SCP) in AWS Organizations.</p> </li> <li> <p> <code>SESSION_POLICY</code> - A session policy passed during role assumption or federation.</p> </li> <li> <p> <code>VPC_ENDPOINT_POLICY</code> - A VPC endpoint policy.</p> </li> </ul>
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
type?: PolicyType | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* <p>Specifies whether this is an inline policy (<code>true</code>) or a managed policy (<code>false</code>).</p>
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
inline?: boolean | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* <p>A URI that identifies the policy. Use this URI to cross-reference the policy with the matching policies in each evaluation. The value depends on the policy type:</p> <ul> <li> <p>For managed policies, this is the policy ARN.</p> </li> <li> <p>For inline policies, which have no ARN, this is an opaque identifier.</p> </li> </ul>
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
uri?: string | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* <p>The entities that the policy is attached to. For identity, session, and resource-based policies, this is typically a single entity. For organization control policies (SCPs and RCPs), it can be multiple entities at different levels of the organization hierarchy.</p>
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
attachedTo?: AttachedTo[] | undefined;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export interface GetRequestAuthorizationDetailsOutput {
|
|
122
|
+
/**
|
|
123
|
+
* <p>The request context is the set of context keys and values that apply to the entire request and are shared by all evaluations.</p>
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
requestContext: Record<string, __DocumentType> | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* <p>The list of evaluations for this request. Each evaluation shows how a single action and resource pair was evaluated. This includes the context, the effect, and any policies that matched.</p>
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
evaluations: Evaluation[] | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* <p>The list of policies that were evaluated.</p>
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
policies: PolicyInfo[] | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* <p>The pagination token for retrieving the next page of evaluations. This value is absent when there are no more results.</p>
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
nextToken?: string | undefined;
|
|
142
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
|
+
import { GetRequestAuthorizationDetailsCommandInput, GetRequestAuthorizationDetailsCommandOutput } from "../commands/GetRequestAuthorizationDetailsCommand";
|
|
3
|
+
import type { IAMToolboxPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateGetRequestAuthorizationDetails: (config: IAMToolboxPaginationConfiguration, input: GetRequestAuthorizationDetailsCommandInput, ...rest: any[]) => Paginator<GetRequestAuthorizationDetailsCommandOutput>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import type { IAMToolboxClientConfig } from "./IAMToolboxClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: IAMToolboxClientConfig) => {
|
|
7
|
+
cacheMiddleware?: boolean;
|
|
8
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<string> | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
9
|
+
tls?: boolean;
|
|
10
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
11
|
+
serviceConfiguredEndpoint?: never;
|
|
12
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
13
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
14
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
15
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
16
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
17
|
+
signingEscapePath?: boolean;
|
|
18
|
+
systemClockOffset?: number;
|
|
19
|
+
signingRegion?: string;
|
|
20
|
+
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
21
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
23
|
+
apiVersion: string;
|
|
24
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
25
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
26
|
+
disableHostPrefix: boolean;
|
|
27
|
+
endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
28
|
+
logger?: import("@smithy/types").Logger;
|
|
29
|
+
}) => import("@smithy/types").EndpointV2;
|
|
30
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
31
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IAMToolboxHttpAuthSchemeProvider;
|
|
32
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
33
|
+
logger: import("@smithy/types").Logger;
|
|
34
|
+
protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
35
|
+
protocolSettings: {
|
|
36
|
+
[setting: string]: unknown;
|
|
37
|
+
defaultNamespace?: string;
|
|
38
|
+
};
|
|
39
|
+
serviceId: string;
|
|
40
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
41
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
42
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
43
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
44
|
+
profile?: string;
|
|
45
|
+
runtime: string;
|
|
46
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
|
|
47
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
48
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
49
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
50
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
51
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
52
|
+
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
53
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
54
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
55
|
+
useDualstackEndpoint: boolean | (() => Promise<boolean>);
|
|
56
|
+
useFipsEndpoint: boolean | (() => Promise<boolean>);
|
|
57
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
+
import type { IAMToolboxClientConfig } from "./IAMToolboxClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: IAMToolboxClientConfig) => {
|
|
7
|
+
cacheMiddleware?: boolean;
|
|
8
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<string> | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
9
|
+
tls?: boolean;
|
|
10
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
11
|
+
serviceConfiguredEndpoint?: never;
|
|
12
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
13
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
14
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
15
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
16
|
+
signingEscapePath?: boolean;
|
|
17
|
+
systemClockOffset?: number;
|
|
18
|
+
signingRegion?: string;
|
|
19
|
+
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
20
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
|
+
apiVersion: string;
|
|
22
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
24
|
+
disableHostPrefix: boolean;
|
|
25
|
+
endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
26
|
+
logger?: import("@smithy/types").Logger;
|
|
27
|
+
}) => import("@smithy/types").EndpointV2;
|
|
28
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IAMToolboxHttpAuthSchemeProvider;
|
|
30
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
31
|
+
logger: import("@smithy/types").Logger;
|
|
32
|
+
protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
33
|
+
protocolSettings: {
|
|
34
|
+
[setting: string]: unknown;
|
|
35
|
+
defaultNamespace?: string;
|
|
36
|
+
};
|
|
37
|
+
serviceId: string;
|
|
38
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
39
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
40
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
41
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
42
|
+
runtime: string;
|
|
43
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
|
|
44
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
46
|
+
credentialDefaultProvider: ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider) | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
|
|
47
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
48
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
49
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
50
|
+
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
51
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
52
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
53
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
54
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
55
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
56
|
+
profile?: string;
|
|
57
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { IAMToolboxClientConfig } from "./IAMToolboxClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: IAMToolboxClientConfig) => {
|
|
6
|
+
cacheMiddleware?: boolean;
|
|
7
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Endpoint | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<string> | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
8
|
+
tls?: boolean;
|
|
9
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
10
|
+
serviceConfiguredEndpoint?: never;
|
|
11
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
12
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
13
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
14
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
15
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
16
|
+
signingEscapePath?: boolean;
|
|
17
|
+
systemClockOffset?: number;
|
|
18
|
+
signingRegion?: string;
|
|
19
|
+
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
20
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
22
|
+
apiVersion: string;
|
|
23
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
24
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
25
|
+
disableHostPrefix: boolean;
|
|
26
|
+
endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
27
|
+
logger?: import("@smithy/types").Logger;
|
|
28
|
+
}) => import("@smithy/types").EndpointV2;
|
|
29
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IAMToolboxHttpAuthSchemeProvider;
|
|
31
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
32
|
+
logger: import("@smithy/types").Logger;
|
|
33
|
+
protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
34
|
+
protocolSettings: {
|
|
35
|
+
[setting: string]: unknown;
|
|
36
|
+
defaultNamespace?: string;
|
|
37
|
+
};
|
|
38
|
+
serviceId: string;
|
|
39
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
40
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
41
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
42
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
43
|
+
profile?: string;
|
|
44
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode> | import("@smithy/core/client").DefaultsMode;
|
|
45
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
46
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
47
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
48
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
49
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
50
|
+
requestHandler: import("@smithy/fetch-http-handler").FetchHttpHandler | import("@smithy/types").FetchHttpHandlerOptions | import("@smithy/types").NodeHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any>;
|
|
51
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
52
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
53
|
+
useDualstackEndpoint: boolean | (() => Promise<boolean>);
|
|
54
|
+
useFipsEndpoint: boolean | (() => Promise<boolean>);
|
|
55
|
+
runtime: string;
|
|
56
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
|
+
import type { IAMToolboxClientConfig } from "./IAMToolboxClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: IAMToolboxClientConfig) => {
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
9
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
10
|
+
disableHostPrefix: boolean;
|
|
11
|
+
endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
12
|
+
logger?: import("@smithy/types").Logger;
|
|
13
|
+
}) => import("@smithy/types").EndpointV2;
|
|
14
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
15
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IAMToolboxHttpAuthSchemeProvider;
|
|
16
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
17
|
+
logger: import("@smithy/types").Logger;
|
|
18
|
+
protocol: import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
|
|
19
|
+
protocolSettings: {
|
|
20
|
+
[setting: string]: unknown;
|
|
21
|
+
defaultNamespace?: string;
|
|
22
|
+
};
|
|
23
|
+
serviceId: string;
|
|
24
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
25
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
26
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
27
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IAMToolboxExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configure(extensionConfiguration: IAMToolboxExtensionConfiguration): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RuntimeExtensionsConfig {
|
|
12
|
+
extensions: RuntimeExtension[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
3
|
+
export declare var IAMToolboxServiceException$: StaticErrorSchema;
|
|
4
|
+
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
5
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
6
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
7
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
8
|
+
/**
|
|
9
|
+
* TypeRegistry instances containing modeled errors.
|
|
10
|
+
* @internal
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
14
|
+
export declare var AttachedTo$: StaticStructureSchema;
|
|
15
|
+
export declare var Evaluation$: StaticStructureSchema;
|
|
16
|
+
export declare var GetRequestAuthorizationDetailsInput$: StaticStructureSchema;
|
|
17
|
+
export declare var GetRequestAuthorizationDetailsOutput$: StaticStructureSchema;
|
|
18
|
+
export declare var MatchedPolicy$: StaticStructureSchema;
|
|
19
|
+
export declare var MatchedStatement$: StaticStructureSchema;
|
|
20
|
+
export declare var PolicyInfo$: StaticStructureSchema;
|
|
21
|
+
export declare var GetRequestAuthorizationDetails$: StaticOperationSchema;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
6
|
+
import {
|
|
7
|
+
GetRequestAuthorizationDetailsCommandInput,
|
|
8
|
+
GetRequestAuthorizationDetailsCommandOutput,
|
|
9
|
+
} from "./commands/GetRequestAuthorizationDetailsCommand";
|
|
10
|
+
import { IAMToolboxClient } from "./IAMToolboxClient";
|
|
11
|
+
export interface IAMToolbox {
|
|
12
|
+
getRequestAuthorizationDetails(
|
|
13
|
+
args: GetRequestAuthorizationDetailsCommandInput,
|
|
14
|
+
options?: __HttpHandlerOptions,
|
|
15
|
+
): Promise<GetRequestAuthorizationDetailsCommandOutput>;
|
|
16
|
+
getRequestAuthorizationDetails(
|
|
17
|
+
args: GetRequestAuthorizationDetailsCommandInput,
|
|
18
|
+
cb: (err: any, data?: GetRequestAuthorizationDetailsCommandOutput) => void,
|
|
19
|
+
): void;
|
|
20
|
+
getRequestAuthorizationDetails(
|
|
21
|
+
args: GetRequestAuthorizationDetailsCommandInput,
|
|
22
|
+
options: __HttpHandlerOptions,
|
|
23
|
+
cb: (err: any, data?: GetRequestAuthorizationDetailsCommandOutput) => void,
|
|
24
|
+
): void;
|
|
25
|
+
paginateGetRequestAuthorizationDetails(
|
|
26
|
+
args: GetRequestAuthorizationDetailsCommandInput,
|
|
27
|
+
paginationConfig?: Pick<
|
|
28
|
+
PaginationConfiguration,
|
|
29
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
30
|
+
>,
|
|
31
|
+
): Paginator<GetRequestAuthorizationDetailsCommandOutput>;
|
|
32
|
+
}
|
|
33
|
+
export declare class IAMToolbox extends IAMToolboxClient implements IAMToolbox {}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HostHeaderInputConfig,
|
|
3
|
+
HostHeaderResolvedConfig,
|
|
4
|
+
UserAgentInputConfig,
|
|
5
|
+
UserAgentResolvedConfig,
|
|
6
|
+
} from "@aws-sdk/core/client";
|
|
7
|
+
import {
|
|
8
|
+
DefaultsMode as __DefaultsMode,
|
|
9
|
+
SmithyConfiguration as __SmithyConfiguration,
|
|
10
|
+
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
11
|
+
Client as __Client,
|
|
12
|
+
} from "@smithy/core/client";
|
|
13
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/core/config";
|
|
14
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
15
|
+
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
|
|
16
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/core/retry";
|
|
17
|
+
import {
|
|
18
|
+
AwsCredentialIdentityProvider,
|
|
19
|
+
BodyLengthCalculator as __BodyLengthCalculator,
|
|
20
|
+
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
21
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
22
|
+
Decoder as __Decoder,
|
|
23
|
+
Encoder as __Encoder,
|
|
24
|
+
HashConstructor as __HashConstructor,
|
|
25
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
26
|
+
Logger as __Logger,
|
|
27
|
+
Provider as __Provider,
|
|
28
|
+
StreamCollector as __StreamCollector,
|
|
29
|
+
UrlParser as __UrlParser,
|
|
30
|
+
UserAgent as __UserAgent,
|
|
31
|
+
} from "@smithy/types";
|
|
32
|
+
import {
|
|
33
|
+
HttpAuthSchemeInputConfig,
|
|
34
|
+
HttpAuthSchemeResolvedConfig,
|
|
35
|
+
} from "./auth/httpAuthSchemeProvider";
|
|
36
|
+
import {
|
|
37
|
+
GetRequestAuthorizationDetailsCommandInput,
|
|
38
|
+
GetRequestAuthorizationDetailsCommandOutput,
|
|
39
|
+
} from "./commands/GetRequestAuthorizationDetailsCommand";
|
|
40
|
+
import {
|
|
41
|
+
ClientInputEndpointParameters,
|
|
42
|
+
ClientResolvedEndpointParameters,
|
|
43
|
+
EndpointParameters,
|
|
44
|
+
} from "./endpoint/EndpointParameters";
|
|
45
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
46
|
+
export { __Client };
|
|
47
|
+
export type ServiceInputTypes = GetRequestAuthorizationDetailsCommandInput;
|
|
48
|
+
export type ServiceOutputTypes = GetRequestAuthorizationDetailsCommandOutput;
|
|
49
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
50
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
51
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
52
|
+
urlParser?: __UrlParser;
|
|
53
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
54
|
+
streamCollector?: __StreamCollector;
|
|
55
|
+
base64Decoder?: __Decoder;
|
|
56
|
+
base64Encoder?: __Encoder;
|
|
57
|
+
utf8Decoder?: __Decoder;
|
|
58
|
+
utf8Encoder?: __Encoder;
|
|
59
|
+
runtime?: string;
|
|
60
|
+
disableHostPrefix?: boolean;
|
|
61
|
+
serviceId?: string;
|
|
62
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
63
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
64
|
+
region?: string | __Provider<string>;
|
|
65
|
+
profile?: string;
|
|
66
|
+
defaultUserAgentProvider?: __Provider<__UserAgent>;
|
|
67
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
68
|
+
maxAttempts?: number | __Provider<number>;
|
|
69
|
+
retryMode?: string | __Provider<string>;
|
|
70
|
+
logger?: __Logger;
|
|
71
|
+
extensions?: RuntimeExtension[];
|
|
72
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
73
|
+
}
|
|
74
|
+
export type IAMToolboxClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
75
|
+
ClientDefaults &
|
|
76
|
+
UserAgentInputConfig &
|
|
77
|
+
RetryInputConfig &
|
|
78
|
+
RegionInputConfig &
|
|
79
|
+
HostHeaderInputConfig &
|
|
80
|
+
EndpointInputConfig<EndpointParameters> &
|
|
81
|
+
HttpAuthSchemeInputConfig &
|
|
82
|
+
ClientInputEndpointParameters;
|
|
83
|
+
export interface IAMToolboxClientConfig extends IAMToolboxClientConfigType {}
|
|
84
|
+
export type IAMToolboxClientResolvedConfigType =
|
|
85
|
+
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
86
|
+
Required<ClientDefaults> &
|
|
87
|
+
RuntimeExtensionsConfig &
|
|
88
|
+
UserAgentResolvedConfig &
|
|
89
|
+
RetryResolvedConfig &
|
|
90
|
+
RegionResolvedConfig &
|
|
91
|
+
HostHeaderResolvedConfig &
|
|
92
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
93
|
+
HttpAuthSchemeResolvedConfig &
|
|
94
|
+
ClientResolvedEndpointParameters;
|
|
95
|
+
export interface IAMToolboxClientResolvedConfig extends IAMToolboxClientResolvedConfigType {}
|
|
96
|
+
export declare class IAMToolboxClient extends __Client<
|
|
97
|
+
__HttpHandlerOptions,
|
|
98
|
+
ServiceInputTypes,
|
|
99
|
+
ServiceOutputTypes,
|
|
100
|
+
IAMToolboxClientResolvedConfig
|
|
101
|
+
> {
|
|
102
|
+
readonly config: IAMToolboxClientResolvedConfig;
|
|
103
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<IAMToolboxClientConfig>);
|
|
104
|
+
destroy(): void;
|
|
105
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsCredentialIdentity,
|
|
3
|
+
AwsCredentialIdentityProvider,
|
|
4
|
+
HttpAuthScheme,
|
|
5
|
+
} from "@smithy/types";
|
|
6
|
+
import { IAMToolboxHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
7
|
+
export interface HttpAuthExtensionConfiguration {
|
|
8
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
9
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
10
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: IAMToolboxHttpAuthSchemeProvider): void;
|
|
11
|
+
httpAuthSchemeProvider(): IAMToolboxHttpAuthSchemeProvider;
|
|
12
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
13
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
14
|
+
}
|
|
15
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
16
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
17
|
+
httpAuthSchemeProvider: IAMToolboxHttpAuthSchemeProvider;
|
|
18
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const getHttpAuthExtensionConfiguration: (
|
|
21
|
+
runtimeConfig: HttpAuthRuntimeConfig,
|
|
22
|
+
) => HttpAuthExtensionConfiguration;
|
|
23
|
+
export declare const resolveHttpAuthRuntimeConfig: (
|
|
24
|
+
config: HttpAuthExtensionConfiguration,
|
|
25
|
+
) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
5
|
+
} from "@aws-sdk/core/httpAuthSchemes";
|
|
6
|
+
import {
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpAuthScheme,
|
|
9
|
+
HttpAuthSchemeParameters,
|
|
10
|
+
HttpAuthSchemeParametersProvider,
|
|
11
|
+
HttpAuthSchemeProvider,
|
|
12
|
+
Provider,
|
|
13
|
+
} from "@smithy/types";
|
|
14
|
+
import { IAMToolboxClientResolvedConfig } from "../IAMToolboxClient";
|
|
15
|
+
export interface IAMToolboxHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
16
|
+
region?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IAMToolboxHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<
|
|
19
|
+
IAMToolboxClientResolvedConfig,
|
|
20
|
+
HandlerExecutionContext,
|
|
21
|
+
IAMToolboxHttpAuthSchemeParameters,
|
|
22
|
+
object
|
|
23
|
+
> {}
|
|
24
|
+
export declare const defaultIAMToolboxHttpAuthSchemeParametersProvider: (
|
|
25
|
+
config: IAMToolboxClientResolvedConfig,
|
|
26
|
+
context: HandlerExecutionContext,
|
|
27
|
+
input: object,
|
|
28
|
+
) => Promise<IAMToolboxHttpAuthSchemeParameters>;
|
|
29
|
+
export interface IAMToolboxHttpAuthSchemeProvider extends HttpAuthSchemeProvider<IAMToolboxHttpAuthSchemeParameters> {}
|
|
30
|
+
export declare const defaultIAMToolboxHttpAuthSchemeProvider: IAMToolboxHttpAuthSchemeProvider;
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
33
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
34
|
+
httpAuthSchemeProvider?: IAMToolboxHttpAuthSchemeProvider;
|
|
35
|
+
}
|
|
36
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
37
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
38
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
39
|
+
readonly httpAuthSchemeProvider: IAMToolboxHttpAuthSchemeProvider;
|
|
40
|
+
}
|
|
41
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
42
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
|
|
43
|
+
) => T & HttpAuthSchemeResolvedConfig;
|