@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,39 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
+
import { IAMToolboxClientResolvedConfig } from "./IAMToolboxClient";
|
|
3
|
+
export declare const command: <
|
|
4
|
+
I extends import("./commands").GetRequestAuthorizationDetailsCommandInput,
|
|
5
|
+
O extends import("./commands").GetRequestAuthorizationDetailsCommandOutput,
|
|
6
|
+
>(
|
|
7
|
+
added: EndpointParameterInstructions,
|
|
8
|
+
plugins: (
|
|
9
|
+
CommandCtor: any,
|
|
10
|
+
clientStack: any,
|
|
11
|
+
config: any,
|
|
12
|
+
options: any,
|
|
13
|
+
) => import("@smithy/types").Pluggable<any, any>[],
|
|
14
|
+
op: string,
|
|
15
|
+
$: import("@smithy/types").StaticOperationSchema,
|
|
16
|
+
smithyContext?: Record<string, unknown>,
|
|
17
|
+
) => {
|
|
18
|
+
new (
|
|
19
|
+
input: I,
|
|
20
|
+
): import("@smithy/core/client").CommandImpl<
|
|
21
|
+
I,
|
|
22
|
+
O,
|
|
23
|
+
IAMToolboxClientResolvedConfig,
|
|
24
|
+
import("./commands").GetRequestAuthorizationDetailsCommandInput,
|
|
25
|
+
import("./commands").GetRequestAuthorizationDetailsCommandOutput
|
|
26
|
+
>;
|
|
27
|
+
new (
|
|
28
|
+
...[input]: import("@smithy/types").OptionalParameter<I>
|
|
29
|
+
): import("@smithy/core/client").CommandImpl<
|
|
30
|
+
I,
|
|
31
|
+
O,
|
|
32
|
+
IAMToolboxClientResolvedConfig,
|
|
33
|
+
import("./commands").GetRequestAuthorizationDetailsCommandInput,
|
|
34
|
+
import("./commands").GetRequestAuthorizationDetailsCommandOutput
|
|
35
|
+
>;
|
|
36
|
+
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
37
|
+
};
|
|
38
|
+
export declare const _ep0: EndpointParameterInstructions;
|
|
39
|
+
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
GetRequestAuthorizationDetailsInput,
|
|
4
|
+
GetRequestAuthorizationDetailsOutput,
|
|
5
|
+
} from "../models/models_0";
|
|
6
|
+
export { __MetadataBearer };
|
|
7
|
+
export interface GetRequestAuthorizationDetailsCommandInput extends GetRequestAuthorizationDetailsInput {}
|
|
8
|
+
export interface GetRequestAuthorizationDetailsCommandOutput
|
|
9
|
+
extends GetRequestAuthorizationDetailsOutput, __MetadataBearer {}
|
|
10
|
+
declare const GetRequestAuthorizationDetailsCommand_base: {
|
|
11
|
+
new (
|
|
12
|
+
input: GetRequestAuthorizationDetailsCommandInput,
|
|
13
|
+
): import("@smithy/core/client").CommandImpl<
|
|
14
|
+
GetRequestAuthorizationDetailsCommandInput,
|
|
15
|
+
GetRequestAuthorizationDetailsCommandOutput,
|
|
16
|
+
import("..").IAMToolboxClientResolvedConfig,
|
|
17
|
+
GetRequestAuthorizationDetailsCommandInput,
|
|
18
|
+
GetRequestAuthorizationDetailsCommandOutput
|
|
19
|
+
>;
|
|
20
|
+
new (
|
|
21
|
+
input: GetRequestAuthorizationDetailsCommandInput,
|
|
22
|
+
): import("@smithy/core/client").CommandImpl<
|
|
23
|
+
GetRequestAuthorizationDetailsCommandInput,
|
|
24
|
+
GetRequestAuthorizationDetailsCommandOutput,
|
|
25
|
+
import("..").IAMToolboxClientResolvedConfig,
|
|
26
|
+
GetRequestAuthorizationDetailsCommandInput,
|
|
27
|
+
GetRequestAuthorizationDetailsCommandOutput
|
|
28
|
+
>;
|
|
29
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
|
+
};
|
|
31
|
+
export declare class GetRequestAuthorizationDetailsCommand extends GetRequestAuthorizationDetailsCommand_base {
|
|
32
|
+
protected static __types: {
|
|
33
|
+
api: {
|
|
34
|
+
input: GetRequestAuthorizationDetailsInput;
|
|
35
|
+
output: GetRequestAuthorizationDetailsOutput;
|
|
36
|
+
};
|
|
37
|
+
sdk: {
|
|
38
|
+
input: GetRequestAuthorizationDetailsCommandInput;
|
|
39
|
+
output: GetRequestAuthorizationDetailsCommandOutput;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetRequestAuthorizationDetailsCommand";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Endpoint,
|
|
3
|
+
EndpointParameters as __EndpointParameters,
|
|
4
|
+
EndpointV2,
|
|
5
|
+
Provider,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export interface ClientInputEndpointParameters {
|
|
8
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
9
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
10
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
11
|
+
endpoint?:
|
|
12
|
+
| string
|
|
13
|
+
| Provider<string>
|
|
14
|
+
| Endpoint
|
|
15
|
+
| Provider<Endpoint>
|
|
16
|
+
| EndpointV2
|
|
17
|
+
| Provider<EndpointV2>;
|
|
18
|
+
}
|
|
19
|
+
export type ClientResolvedEndpointParameters = Pick<
|
|
20
|
+
ClientInputEndpointParameters,
|
|
21
|
+
Exclude<keyof ClientInputEndpointParameters, "endpoint">
|
|
22
|
+
> & {
|
|
23
|
+
defaultSigningName: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const resolveClientEndpointParameters: <T>(
|
|
26
|
+
options: T & ClientInputEndpointParameters,
|
|
27
|
+
) => T & ClientResolvedEndpointParameters;
|
|
28
|
+
export declare const commonParams: {
|
|
29
|
+
readonly UseFIPS: {
|
|
30
|
+
readonly type: "builtInParams";
|
|
31
|
+
readonly name: "useFipsEndpoint";
|
|
32
|
+
};
|
|
33
|
+
readonly Endpoint: {
|
|
34
|
+
readonly type: "builtInParams";
|
|
35
|
+
readonly name: "endpoint";
|
|
36
|
+
};
|
|
37
|
+
readonly Region: {
|
|
38
|
+
readonly type: "builtInParams";
|
|
39
|
+
readonly name: "region";
|
|
40
|
+
};
|
|
41
|
+
readonly UseDualStack: {
|
|
42
|
+
readonly type: "builtInParams";
|
|
43
|
+
readonly name: "useDualstackEndpoint";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
47
|
+
Region?: string | undefined;
|
|
48
|
+
UseDualStack?: boolean | undefined;
|
|
49
|
+
UseFIPS?: boolean | undefined;
|
|
50
|
+
Endpoint?: string | undefined;
|
|
51
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
|
|
3
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
export interface IAMToolboxExtensionConfiguration
|
|
6
|
+
extends
|
|
7
|
+
HttpHandlerExtensionConfiguration,
|
|
8
|
+
DefaultExtensionConfiguration,
|
|
9
|
+
AwsRegionExtensionConfiguration,
|
|
10
|
+
HttpAuthExtensionConfiguration {}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./IAMToolboxClient";
|
|
2
|
+
export * from "./IAMToolbox";
|
|
3
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
4
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
5
|
+
export { IAMToolboxExtensionConfiguration } from "./extensionConfiguration";
|
|
6
|
+
export * from "./commands";
|
|
7
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
8
|
+
export * from "./pagination";
|
|
9
|
+
export * from "./schemas/schemas_0";
|
|
10
|
+
export * from "./models/enums";
|
|
11
|
+
export * from "./models/errors";
|
|
12
|
+
export * from "./models/models_0";
|
|
13
|
+
export { IAMToolboxServiceException } from "./models/IAMToolboxServiceException";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ServiceExceptionOptions as __ServiceExceptionOptions,
|
|
3
|
+
ServiceException as __ServiceException,
|
|
4
|
+
} from "@smithy/core/client";
|
|
5
|
+
export { __ServiceExceptionOptions };
|
|
6
|
+
export { __ServiceException };
|
|
7
|
+
export declare class IAMToolboxServiceException extends __ServiceException {
|
|
8
|
+
constructor(options: __ServiceExceptionOptions);
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const EvaluatedEffect: {
|
|
2
|
+
readonly ALLOW: "ALLOW";
|
|
3
|
+
readonly EXPLICIT_DENY: "EXPLICIT_DENY";
|
|
4
|
+
readonly IMPLICIT_DENY: "IMPLICIT_DENY";
|
|
5
|
+
};
|
|
6
|
+
export type EvaluatedEffect = (typeof EvaluatedEffect)[keyof typeof EvaluatedEffect];
|
|
7
|
+
export declare const StatementEffect: {
|
|
8
|
+
readonly ALLOW: "ALLOW";
|
|
9
|
+
readonly DENY: "DENY";
|
|
10
|
+
};
|
|
11
|
+
export type StatementEffect = (typeof StatementEffect)[keyof typeof StatementEffect];
|
|
12
|
+
export declare const PolicyType: {
|
|
13
|
+
readonly IDENTITY_BASED_POLICY: "IDENTITY_BASED_POLICY";
|
|
14
|
+
readonly PERMISSIONS_BOUNDARY: "PERMISSIONS_BOUNDARY";
|
|
15
|
+
readonly RESOURCE_BASED_POLICY: "RESOURCE_BASED_POLICY";
|
|
16
|
+
readonly RESOURCE_CONTROL_POLICY: "RESOURCE_CONTROL_POLICY";
|
|
17
|
+
readonly SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY";
|
|
18
|
+
readonly SESSION_POLICY: "SESSION_POLICY";
|
|
19
|
+
readonly VPC_ENDPOINT_POLICY: "VPC_ENDPOINT_POLICY";
|
|
20
|
+
};
|
|
21
|
+
export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
|
|
2
|
+
import { IAMToolboxServiceException as __BaseException } from "./IAMToolboxServiceException";
|
|
3
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
4
|
+
readonly name: "AccessDeniedException";
|
|
5
|
+
readonly $fault: "client";
|
|
6
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
7
|
+
}
|
|
8
|
+
export declare class InternalServerException extends __BaseException {
|
|
9
|
+
readonly name: "InternalServerException";
|
|
10
|
+
readonly $fault: "server";
|
|
11
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
12
|
+
}
|
|
13
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
14
|
+
readonly name: "ResourceNotFoundException";
|
|
15
|
+
readonly $fault: "client";
|
|
16
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
17
|
+
}
|
|
18
|
+
export declare class ValidationException extends __BaseException {
|
|
19
|
+
readonly name: "ValidationException";
|
|
20
|
+
readonly $fault: "client";
|
|
21
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
22
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
+
import { EvaluatedEffect, PolicyType, StatementEffect } from "./enums";
|
|
3
|
+
export interface AttachedTo {
|
|
4
|
+
arn?: string | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface GetRequestAuthorizationDetailsInput {
|
|
7
|
+
authorizationId: string | undefined;
|
|
8
|
+
nextToken?: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface MatchedStatement {
|
|
11
|
+
sid?: string | undefined;
|
|
12
|
+
evaluatedEffect?: StatementEffect | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface MatchedPolicy {
|
|
15
|
+
uri: string | undefined;
|
|
16
|
+
matchedStatements?: MatchedStatement[] | undefined;
|
|
17
|
+
}
|
|
18
|
+
export interface Evaluation {
|
|
19
|
+
action: string | undefined;
|
|
20
|
+
resource: string | undefined;
|
|
21
|
+
context?: Record<string, __DocumentType> | undefined;
|
|
22
|
+
evaluatedEffect?: EvaluatedEffect | undefined;
|
|
23
|
+
matchedPolicies?: MatchedPolicy[] | undefined;
|
|
24
|
+
}
|
|
25
|
+
export interface PolicyInfo {
|
|
26
|
+
type?: PolicyType | undefined;
|
|
27
|
+
inline?: boolean | undefined;
|
|
28
|
+
uri?: string | undefined;
|
|
29
|
+
attachedTo?: AttachedTo[] | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface GetRequestAuthorizationDetailsOutput {
|
|
32
|
+
requestContext: Record<string, __DocumentType> | undefined;
|
|
33
|
+
evaluations: Evaluation[] | undefined;
|
|
34
|
+
policies: PolicyInfo[] | undefined;
|
|
35
|
+
nextToken?: string | undefined;
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
GetRequestAuthorizationDetailsCommandInput,
|
|
4
|
+
GetRequestAuthorizationDetailsCommandOutput,
|
|
5
|
+
} from "../commands/GetRequestAuthorizationDetailsCommand";
|
|
6
|
+
import { IAMToolboxPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateGetRequestAuthorizationDetails: (
|
|
8
|
+
config: IAMToolboxPaginationConfiguration,
|
|
9
|
+
input: GetRequestAuthorizationDetailsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetRequestAuthorizationDetailsCommandOutput>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import { IAMToolboxClientConfig } from "./IAMToolboxClient";
|
|
3
|
+
export declare const getRuntimeConfig: (config: IAMToolboxClientConfig) => {
|
|
4
|
+
cacheMiddleware?: boolean;
|
|
5
|
+
endpoint?:
|
|
6
|
+
| ((
|
|
7
|
+
| string
|
|
8
|
+
| import("@smithy/types").Endpoint
|
|
9
|
+
| import("@smithy/types").EndpointV2
|
|
10
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
11
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
12
|
+
) &
|
|
13
|
+
(
|
|
14
|
+
| string
|
|
15
|
+
| import("@smithy/types").Endpoint
|
|
16
|
+
| import("@smithy/types").EndpointV2
|
|
17
|
+
| import("@smithy/types").Provider<string>
|
|
18
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
19
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
20
|
+
))
|
|
21
|
+
| undefined;
|
|
22
|
+
tls?: boolean;
|
|
23
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
24
|
+
serviceConfiguredEndpoint?: never;
|
|
25
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
26
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
27
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
28
|
+
credentials?:
|
|
29
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
30
|
+
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
31
|
+
signer?:
|
|
32
|
+
| import("@smithy/types").RequestSigner
|
|
33
|
+
| ((
|
|
34
|
+
authScheme?: import("@smithy/types").AuthScheme,
|
|
35
|
+
) => Promise<import("@smithy/types").RequestSigner>);
|
|
36
|
+
signingEscapePath?: boolean;
|
|
37
|
+
systemClockOffset?: number;
|
|
38
|
+
signingRegion?: string;
|
|
39
|
+
signerConstructor?: new (
|
|
40
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
41
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
42
|
+
) => import("@smithy/types").RequestSigner;
|
|
43
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
44
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
|
+
apiVersion: string;
|
|
46
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
47
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
48
|
+
disableHostPrefix: boolean;
|
|
49
|
+
endpointProvider: (
|
|
50
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
51
|
+
context?: {
|
|
52
|
+
logger?: import("@smithy/types").Logger;
|
|
53
|
+
},
|
|
54
|
+
) => import("@smithy/types").EndpointV2;
|
|
55
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
56
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IAMToolboxHttpAuthSchemeProvider;
|
|
57
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
58
|
+
logger: import("@smithy/types").Logger;
|
|
59
|
+
protocol:
|
|
60
|
+
| import("@smithy/types").$ClientProtocol<any, any>
|
|
61
|
+
| import("@smithy/types").$ClientProtocolCtor<any, any>
|
|
62
|
+
| typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
63
|
+
protocolSettings: {
|
|
64
|
+
[setting: string]: unknown;
|
|
65
|
+
defaultNamespace?: string;
|
|
66
|
+
};
|
|
67
|
+
serviceId: string;
|
|
68
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
69
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
70
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
71
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
72
|
+
profile?: string;
|
|
73
|
+
runtime: string;
|
|
74
|
+
defaultsMode: import("@smithy/types").Provider<
|
|
75
|
+
import("@smithy/core/client").ResolvedDefaultsMode
|
|
76
|
+
>;
|
|
77
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
78
|
+
credentialDefaultProvider:
|
|
79
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
80
|
+
| ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
81
|
+
defaultUserAgentProvider: (
|
|
82
|
+
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
83
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
84
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
85
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
86
|
+
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
87
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
88
|
+
streamCollector: (
|
|
89
|
+
stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
|
|
90
|
+
) => Promise<Uint8Array>;
|
|
91
|
+
useDualstackEndpoint: boolean | (() => Promise<boolean>);
|
|
92
|
+
useFipsEndpoint: boolean | (() => Promise<boolean>);
|
|
93
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
+
import { IAMToolboxClientConfig } from "./IAMToolboxClient";
|
|
3
|
+
export declare const getRuntimeConfig: (config: IAMToolboxClientConfig) => {
|
|
4
|
+
cacheMiddleware?: boolean;
|
|
5
|
+
endpoint?:
|
|
6
|
+
| ((
|
|
7
|
+
| string
|
|
8
|
+
| import("@smithy/types").Endpoint
|
|
9
|
+
| import("@smithy/types").EndpointV2
|
|
10
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
11
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
12
|
+
) &
|
|
13
|
+
(
|
|
14
|
+
| string
|
|
15
|
+
| import("@smithy/types").Endpoint
|
|
16
|
+
| import("@smithy/types").EndpointV2
|
|
17
|
+
| import("@smithy/types").Provider<string>
|
|
18
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
19
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
20
|
+
))
|
|
21
|
+
| undefined;
|
|
22
|
+
tls?: boolean;
|
|
23
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
24
|
+
serviceConfiguredEndpoint?: never;
|
|
25
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
26
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
27
|
+
credentials?:
|
|
28
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
29
|
+
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
30
|
+
signer?:
|
|
31
|
+
| import("@smithy/types").RequestSigner
|
|
32
|
+
| ((
|
|
33
|
+
authScheme?: import("@smithy/types").AuthScheme,
|
|
34
|
+
) => Promise<import("@smithy/types").RequestSigner>);
|
|
35
|
+
signingEscapePath?: boolean;
|
|
36
|
+
systemClockOffset?: number;
|
|
37
|
+
signingRegion?: string;
|
|
38
|
+
signerConstructor?: new (
|
|
39
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
40
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
41
|
+
) => import("@smithy/types").RequestSigner;
|
|
42
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
43
|
+
apiVersion: string;
|
|
44
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
45
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
46
|
+
disableHostPrefix: boolean;
|
|
47
|
+
endpointProvider: (
|
|
48
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
49
|
+
context?: {
|
|
50
|
+
logger?: import("@smithy/types").Logger;
|
|
51
|
+
},
|
|
52
|
+
) => import("@smithy/types").EndpointV2;
|
|
53
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
54
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IAMToolboxHttpAuthSchemeProvider;
|
|
55
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
56
|
+
logger: import("@smithy/types").Logger;
|
|
57
|
+
protocol:
|
|
58
|
+
| import("@smithy/types").$ClientProtocol<any, any>
|
|
59
|
+
| import("@smithy/types").$ClientProtocolCtor<any, any>
|
|
60
|
+
| typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
61
|
+
protocolSettings: {
|
|
62
|
+
[setting: string]: unknown;
|
|
63
|
+
defaultNamespace?: string;
|
|
64
|
+
};
|
|
65
|
+
serviceId: string;
|
|
66
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
67
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
68
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
69
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
70
|
+
runtime: string;
|
|
71
|
+
defaultsMode: import("@smithy/types").Provider<
|
|
72
|
+
import("@smithy/core/client").ResolvedDefaultsMode
|
|
73
|
+
>;
|
|
74
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
75
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
76
|
+
credentialDefaultProvider:
|
|
77
|
+
| ((
|
|
78
|
+
init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
|
|
79
|
+
) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider)
|
|
80
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
|
|
81
|
+
defaultUserAgentProvider: (
|
|
82
|
+
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
83
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
84
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
85
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
86
|
+
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
87
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
88
|
+
streamCollector: (
|
|
89
|
+
stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
|
|
90
|
+
) => Promise<Uint8Array>;
|
|
91
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
92
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
93
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
94
|
+
profile?: string;
|
|
95
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { IAMToolboxClientConfig } from "./IAMToolboxClient";
|
|
2
|
+
export declare const getRuntimeConfig: (config: IAMToolboxClientConfig) => {
|
|
3
|
+
cacheMiddleware?: boolean;
|
|
4
|
+
endpoint?:
|
|
5
|
+
| ((
|
|
6
|
+
| string
|
|
7
|
+
| import("@smithy/types").Endpoint
|
|
8
|
+
| import("@smithy/types").EndpointV2
|
|
9
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
10
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
11
|
+
) &
|
|
12
|
+
(
|
|
13
|
+
| string
|
|
14
|
+
| import("@smithy/types").Endpoint
|
|
15
|
+
| import("@smithy/types").EndpointV2
|
|
16
|
+
| import("@smithy/types").Provider<string>
|
|
17
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
18
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
19
|
+
))
|
|
20
|
+
| undefined;
|
|
21
|
+
tls?: boolean;
|
|
22
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
23
|
+
serviceConfiguredEndpoint?: never;
|
|
24
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
25
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
26
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
27
|
+
credentials?:
|
|
28
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
29
|
+
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
30
|
+
signer?:
|
|
31
|
+
| import("@smithy/types").RequestSigner
|
|
32
|
+
| ((
|
|
33
|
+
authScheme?: import("@smithy/types").AuthScheme,
|
|
34
|
+
) => Promise<import("@smithy/types").RequestSigner>);
|
|
35
|
+
signingEscapePath?: boolean;
|
|
36
|
+
systemClockOffset?: number;
|
|
37
|
+
signingRegion?: string;
|
|
38
|
+
signerConstructor?: new (
|
|
39
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
40
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
41
|
+
) => import("@smithy/types").RequestSigner;
|
|
42
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
43
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
44
|
+
apiVersion: string;
|
|
45
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
46
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
47
|
+
disableHostPrefix: boolean;
|
|
48
|
+
endpointProvider: (
|
|
49
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
50
|
+
context?: {
|
|
51
|
+
logger?: import("@smithy/types").Logger;
|
|
52
|
+
},
|
|
53
|
+
) => import("@smithy/types").EndpointV2;
|
|
54
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
55
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IAMToolboxHttpAuthSchemeProvider;
|
|
56
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
57
|
+
logger: import("@smithy/types").Logger;
|
|
58
|
+
protocol:
|
|
59
|
+
| import("@smithy/types").$ClientProtocol<any, any>
|
|
60
|
+
| import("@smithy/types").$ClientProtocolCtor<any, any>
|
|
61
|
+
| typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
62
|
+
protocolSettings: {
|
|
63
|
+
[setting: string]: unknown;
|
|
64
|
+
defaultNamespace?: string;
|
|
65
|
+
};
|
|
66
|
+
serviceId: string;
|
|
67
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
68
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
69
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
70
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
71
|
+
profile?: string;
|
|
72
|
+
defaultsMode:
|
|
73
|
+
| import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>
|
|
74
|
+
| import("@smithy/core/client").DefaultsMode;
|
|
75
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
76
|
+
credentialDefaultProvider:
|
|
77
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
78
|
+
| ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
79
|
+
defaultUserAgentProvider: (
|
|
80
|
+
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
81
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
82
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
83
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
84
|
+
requestHandler:
|
|
85
|
+
| import("@smithy/fetch-http-handler").FetchHttpHandler
|
|
86
|
+
| import("@smithy/types").FetchHttpHandlerOptions
|
|
87
|
+
| import("@smithy/types").NodeHttpHandlerOptions
|
|
88
|
+
| Record<string, unknown>
|
|
89
|
+
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
90
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
91
|
+
streamCollector: (
|
|
92
|
+
stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
|
|
93
|
+
) => Promise<Uint8Array>;
|
|
94
|
+
useDualstackEndpoint: boolean | (() => Promise<boolean>);
|
|
95
|
+
useFipsEndpoint: boolean | (() => Promise<boolean>);
|
|
96
|
+
runtime: string;
|
|
97
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
|
+
import { IAMToolboxClientConfig } from "./IAMToolboxClient";
|
|
3
|
+
export declare const getRuntimeConfig: (config: IAMToolboxClientConfig) => {
|
|
4
|
+
apiVersion: string;
|
|
5
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
6
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
7
|
+
disableHostPrefix: boolean;
|
|
8
|
+
endpointProvider: (
|
|
9
|
+
params: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
10
|
+
context?: {
|
|
11
|
+
logger?: import("@smithy/types").Logger;
|
|
12
|
+
},
|
|
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:
|
|
19
|
+
| import("@smithy/types").$ClientProtocol<any, any>
|
|
20
|
+
| import("@smithy/types").$ClientProtocolCtor<any, any>
|
|
21
|
+
| typeof AwsRestJsonProtocol;
|
|
22
|
+
protocolSettings: {
|
|
23
|
+
[setting: string]: unknown;
|
|
24
|
+
defaultNamespace?: string;
|
|
25
|
+
};
|
|
26
|
+
serviceId: string;
|
|
27
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
28
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
29
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
30
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
31
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IAMToolboxExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
export interface RuntimeExtension {
|
|
3
|
+
configure(extensionConfiguration: IAMToolboxExtensionConfiguration): void;
|
|
4
|
+
}
|
|
5
|
+
export interface RuntimeExtensionsConfig {
|
|
6
|
+
extensions: RuntimeExtension[];
|
|
7
|
+
}
|
|
8
|
+
export declare const resolveRuntimeExtensions: (
|
|
9
|
+
runtimeConfig: any,
|
|
10
|
+
extensions: RuntimeExtension[],
|
|
11
|
+
) => any;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import { 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
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
9
|
+
export declare var AttachedTo$: StaticStructureSchema;
|
|
10
|
+
export declare var Evaluation$: StaticStructureSchema;
|
|
11
|
+
export declare var GetRequestAuthorizationDetailsInput$: StaticStructureSchema;
|
|
12
|
+
export declare var GetRequestAuthorizationDetailsOutput$: StaticStructureSchema;
|
|
13
|
+
export declare var MatchedPolicy$: StaticStructureSchema;
|
|
14
|
+
export declare var MatchedStatement$: StaticStructureSchema;
|
|
15
|
+
export declare var PolicyInfo$: StaticStructureSchema;
|
|
16
|
+
export declare var GetRequestAuthorizationDetails$: StaticOperationSchema;
|