@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.
Files changed (79) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +188 -0
  3. package/dist-cjs/index.js +528 -0
  4. package/dist-es/IAMToolbox.js +13 -0
  5. package/dist-es/IAMToolboxClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/GetRequestAuthorizationDetailsCommand.js +4 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/endpoint/EndpointParameters.js +13 -0
  12. package/dist-es/endpoint/bdd.js +46 -0
  13. package/dist-es/endpoint/endpointResolver.js +14 -0
  14. package/dist-es/extensionConfiguration.js +1 -0
  15. package/dist-es/index.js +10 -0
  16. package/dist-es/models/IAMToolboxServiceException.js +8 -0
  17. package/dist-es/models/enums.js +18 -0
  18. package/dist-es/models/errors.js +49 -0
  19. package/dist-es/models/models_0.js +1 -0
  20. package/dist-es/pagination/GetRequestAuthorizationDetailsPaginator.js +4 -0
  21. package/dist-es/pagination/Interfaces.js +1 -0
  22. package/dist-es/pagination/index.js +2 -0
  23. package/dist-es/runtimeConfig.browser.js +29 -0
  24. package/dist-es/runtimeConfig.js +43 -0
  25. package/dist-es/runtimeConfig.native.js +9 -0
  26. package/dist-es/runtimeConfig.shared.js +40 -0
  27. package/dist-es/runtimeExtensions.js +9 -0
  28. package/dist-es/schemas/schemas_0.js +132 -0
  29. package/dist-types/IAMToolbox.d.ts +24 -0
  30. package/dist-types/IAMToolboxClient.d.ts +187 -0
  31. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  32. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  33. package/dist-types/commandBuilder.d.ts +18 -0
  34. package/dist-types/commands/GetRequestAuthorizationDetailsCommand.d.ts +120 -0
  35. package/dist-types/commands/index.d.ts +1 -0
  36. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  37. package/dist-types/endpoint/bdd.d.ts +2 -0
  38. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  39. package/dist-types/extensionConfiguration.d.ts +9 -0
  40. package/dist-types/index.d.ts +18 -0
  41. package/dist-types/models/IAMToolboxServiceException.d.ts +14 -0
  42. package/dist-types/models/enums.d.ts +42 -0
  43. package/dist-types/models/errors.d.ts +50 -0
  44. package/dist-types/models/models_0.d.ts +142 -0
  45. package/dist-types/pagination/GetRequestAuthorizationDetailsPaginator.d.ts +7 -0
  46. package/dist-types/pagination/Interfaces.d.ts +8 -0
  47. package/dist-types/pagination/index.d.ts +2 -0
  48. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  49. package/dist-types/runtimeConfig.d.ts +57 -0
  50. package/dist-types/runtimeConfig.native.d.ts +56 -0
  51. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  52. package/dist-types/runtimeExtensions.d.ts +17 -0
  53. package/dist-types/schemas/schemas_0.d.ts +21 -0
  54. package/dist-types/ts3.4/IAMToolbox.d.ts +33 -0
  55. package/dist-types/ts3.4/IAMToolboxClient.d.ts +105 -0
  56. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  57. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  58. package/dist-types/ts3.4/commandBuilder.d.ts +39 -0
  59. package/dist-types/ts3.4/commands/GetRequestAuthorizationDetailsCommand.d.ts +42 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  61. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  62. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  63. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  64. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  65. package/dist-types/ts3.4/index.d.ts +13 -0
  66. package/dist-types/ts3.4/models/IAMToolboxServiceException.d.ts +9 -0
  67. package/dist-types/ts3.4/models/enums.d.ts +21 -0
  68. package/dist-types/ts3.4/models/errors.d.ts +22 -0
  69. package/dist-types/ts3.4/models/models_0.d.ts +36 -0
  70. package/dist-types/ts3.4/pagination/GetRequestAuthorizationDetailsPaginator.d.ts +11 -0
  71. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  72. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  73. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  74. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  75. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  76. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  77. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  78. package/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
  79. package/package.json +69 -0
@@ -0,0 +1,187 @@
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
2
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
3
+ import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
4
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
5
+ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
6
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
7
+ import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
9
+ import type { GetRequestAuthorizationDetailsCommandInput, GetRequestAuthorizationDetailsCommandOutput } from "./commands/GetRequestAuthorizationDetailsCommand";
10
+ import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
11
+ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
12
+ export { __Client };
13
+ /**
14
+ * @public
15
+ */
16
+ export type ServiceInputTypes = GetRequestAuthorizationDetailsCommandInput;
17
+ /**
18
+ * @public
19
+ */
20
+ export type ServiceOutputTypes = GetRequestAuthorizationDetailsCommandOutput;
21
+ /**
22
+ * @public
23
+ */
24
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
25
+ /**
26
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
27
+ */
28
+ requestHandler?: __HttpHandlerUserInput;
29
+ /**
30
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
31
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
32
+ * @internal
33
+ */
34
+ sha256?: __ChecksumConstructor | __HashConstructor;
35
+ /**
36
+ * The function that will be used to convert strings into HTTP endpoints.
37
+ * @internal
38
+ */
39
+ urlParser?: __UrlParser;
40
+ /**
41
+ * A function that can calculate the length of a request body.
42
+ * @internal
43
+ */
44
+ bodyLengthChecker?: __BodyLengthCalculator;
45
+ /**
46
+ * A function that converts a stream into an array of bytes.
47
+ * @internal
48
+ */
49
+ streamCollector?: __StreamCollector;
50
+ /**
51
+ * The function that will be used to convert a base64-encoded string to a byte array.
52
+ * @internal
53
+ */
54
+ base64Decoder?: __Decoder;
55
+ /**
56
+ * The function that will be used to convert binary data to a base64-encoded string.
57
+ * @internal
58
+ */
59
+ base64Encoder?: __Encoder;
60
+ /**
61
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
62
+ * @internal
63
+ */
64
+ utf8Decoder?: __Decoder;
65
+ /**
66
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
67
+ * @internal
68
+ */
69
+ utf8Encoder?: __Encoder;
70
+ /**
71
+ * The runtime environment.
72
+ * @internal
73
+ */
74
+ runtime?: string;
75
+ /**
76
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
77
+ * trait of an operation.
78
+ */
79
+ disableHostPrefix?: boolean;
80
+ /**
81
+ * Unique service identifier.
82
+ * @internal
83
+ */
84
+ serviceId?: string;
85
+ /**
86
+ * Enables IPv6/IPv4 dualstack endpoint.
87
+ */
88
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
89
+ /**
90
+ * Enables FIPS compatible endpoints.
91
+ */
92
+ useFipsEndpoint?: boolean | __Provider<boolean>;
93
+ /**
94
+ * The AWS region to which this client will send requests
95
+ */
96
+ region?: string | __Provider<string>;
97
+ /**
98
+ * Setting a client profile is similar to setting a value for the
99
+ * AWS_PROFILE environment variable. Setting a profile on a client
100
+ * in code only affects the single client instance, unlike AWS_PROFILE.
101
+ *
102
+ * When set, and only for environments where an AWS configuration
103
+ * file exists, fields configurable by this file will be retrieved
104
+ * from the specified profile within that file.
105
+ * Conflicting code configuration and environment variables will
106
+ * still have higher priority.
107
+ *
108
+ * For client credential resolution that involves checking the AWS
109
+ * configuration file, the client's profile (this value) will be
110
+ * used unless a different profile is set in the credential
111
+ * provider options.
112
+ *
113
+ */
114
+ profile?: string;
115
+ /**
116
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
117
+ * @internal
118
+ */
119
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
120
+ /**
121
+ * Default credentials provider; Not available in browser runtime.
122
+ * @deprecated
123
+ * @internal
124
+ */
125
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
126
+ /**
127
+ * Value for how many times a request will be made at most in case of retry.
128
+ */
129
+ maxAttempts?: number | __Provider<number>;
130
+ /**
131
+ * Specifies which retry algorithm to use.
132
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
133
+ *
134
+ */
135
+ retryMode?: string | __Provider<string>;
136
+ /**
137
+ * Optional logger for logging debug/info/warn/error.
138
+ */
139
+ logger?: __Logger;
140
+ /**
141
+ * Optional extensions
142
+ */
143
+ extensions?: RuntimeExtension[];
144
+ /**
145
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
146
+ */
147
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
148
+ }
149
+ /**
150
+ * @public
151
+ */
152
+ export type IAMToolboxClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
153
+ /**
154
+ * @public
155
+ *
156
+ * The configuration interface of IAMToolboxClient class constructor that set the region, credentials and other options.
157
+ */
158
+ export interface IAMToolboxClientConfig extends IAMToolboxClientConfigType {
159
+ }
160
+ /**
161
+ * @public
162
+ */
163
+ export type IAMToolboxClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
164
+ /**
165
+ * @public
166
+ *
167
+ * The resolved configuration interface of IAMToolboxClient class. This is resolved and normalized from the {@link IAMToolboxClientConfig | constructor configuration interface}.
168
+ */
169
+ export interface IAMToolboxClientResolvedConfig extends IAMToolboxClientResolvedConfigType {
170
+ }
171
+ /**
172
+ * <p>Contains APIs to work with AWS Identity and Access Management (IAM).</p>
173
+ * @public
174
+ */
175
+ export declare class IAMToolboxClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, IAMToolboxClientResolvedConfig> {
176
+ /**
177
+ * The resolved configuration of IAMToolboxClient class. This is resolved and normalized from the {@link IAMToolboxClientConfig | constructor configuration interface}.
178
+ */
179
+ readonly config: IAMToolboxClientResolvedConfig;
180
+ constructor(...[configuration]: __CheckOptionalClientConfig<IAMToolboxClientConfig>);
181
+ /**
182
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
183
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
184
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
185
+ */
186
+ destroy(): void;
187
+ }
@@ -0,0 +1,29 @@
1
+ import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import type { IAMToolboxHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: IAMToolboxHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): IAMToolboxHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: IAMToolboxHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,75 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
2
+ import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { type IAMToolboxClientResolvedConfig } from "../IAMToolboxClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface IAMToolboxHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface IAMToolboxHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<IAMToolboxClientResolvedConfig, HandlerExecutionContext, IAMToolboxHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultIAMToolboxHttpAuthSchemeParametersProvider: (config: IAMToolboxClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<IAMToolboxHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface IAMToolboxHttpAuthSchemeProvider extends HttpAuthSchemeProvider<IAMToolboxHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultIAMToolboxHttpAuthSchemeProvider: IAMToolboxHttpAuthSchemeProvider;
28
+ /**
29
+ * @public
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * A comma-separated list of case-sensitive auth scheme names.
34
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
35
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
36
+ * @public
37
+ */
38
+ authSchemePreference?: string[] | Provider<string[]>;
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: IAMToolboxHttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * A comma-separated list of case-sensitive auth scheme names.
56
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
57
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
58
+ * @public
59
+ */
60
+ readonly authSchemePreference: Provider<string[]>;
61
+ /**
62
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
63
+ * @internal
64
+ */
65
+ readonly httpAuthSchemes: HttpAuthScheme[];
66
+ /**
67
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
68
+ * @internal
69
+ */
70
+ readonly httpAuthSchemeProvider: IAMToolboxHttpAuthSchemeProvider;
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { IAMToolboxClientResolvedConfig } from "./IAMToolboxClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends import("./commands").GetRequestAuthorizationDetailsCommandInput, O extends import("./commands").GetRequestAuthorizationDetailsCommandOutput>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, IAMToolboxClientResolvedConfig, import("./commands").GetRequestAuthorizationDetailsCommandInput, import("./commands").GetRequestAuthorizationDetailsCommandOutput>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, IAMToolboxClientResolvedConfig, import("./commands").GetRequestAuthorizationDetailsCommandInput, import("./commands").GetRequestAuthorizationDetailsCommandOutput>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -0,0 +1,120 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { GetRequestAuthorizationDetailsInput, GetRequestAuthorizationDetailsOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link GetRequestAuthorizationDetailsCommand}.
11
+ */
12
+ export interface GetRequestAuthorizationDetailsCommandInput extends GetRequestAuthorizationDetailsInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link GetRequestAuthorizationDetailsCommand}.
18
+ */
19
+ export interface GetRequestAuthorizationDetailsCommandOutput extends GetRequestAuthorizationDetailsOutput, __MetadataBearer {
20
+ }
21
+ declare const GetRequestAuthorizationDetailsCommand_base: {
22
+ new (input: GetRequestAuthorizationDetailsCommandInput): import("@smithy/core/client").CommandImpl<GetRequestAuthorizationDetailsCommandInput, GetRequestAuthorizationDetailsCommandOutput, import("..").IAMToolboxClientResolvedConfig, GetRequestAuthorizationDetailsCommandInput, GetRequestAuthorizationDetailsCommandOutput>;
23
+ new (input: GetRequestAuthorizationDetailsCommandInput): import("@smithy/core/client").CommandImpl<GetRequestAuthorizationDetailsCommandInput, GetRequestAuthorizationDetailsCommandOutput, import("..").IAMToolboxClientResolvedConfig, GetRequestAuthorizationDetailsCommandInput, GetRequestAuthorizationDetailsCommandOutput>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Retrieves the authorization details for a specific access denied request. The details include the request context, the evaluations performed, and the policies that were evaluated.</p> <p>Use this operation to understand why a request was denied. Supported services include an authorization ID in the access denied error message. Pass that ID to this operation to retrieve the details.</p> <p>Authorization details are available for at least 24 hours after the denial.</p> <p>To use this operation, you must have the <code>iam:GetRequestAuthorizationDetails</code> permission.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { IAMToolboxClient, GetRequestAuthorizationDetailsCommand } from "@aws-sdk/client-iam-toolbox"; // ES Modules import
32
+ * // const { IAMToolboxClient, GetRequestAuthorizationDetailsCommand } = require("@aws-sdk/client-iam-toolbox"); // CommonJS import
33
+ * // import type { IAMToolboxClientConfig } from "@aws-sdk/client-iam-toolbox";
34
+ * const config = {}; // type is IAMToolboxClientConfig
35
+ * const client = new IAMToolboxClient(config);
36
+ * const input = { // GetRequestAuthorizationDetailsInput
37
+ * authorizationId: "STRING_VALUE", // required
38
+ * nextToken: "STRING_VALUE",
39
+ * };
40
+ * const command = new GetRequestAuthorizationDetailsCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetRequestAuthorizationDetailsOutput
43
+ * // requestContext: { // AuthorizationContext // required
44
+ * // "<keys>": "DOCUMENT_VALUE",
45
+ * // },
46
+ * // evaluations: [ // Evaluations // required
47
+ * // { // Evaluation
48
+ * // action: "STRING_VALUE", // required
49
+ * // resource: "STRING_VALUE", // required
50
+ * // context: {
51
+ * // "<keys>": "DOCUMENT_VALUE",
52
+ * // },
53
+ * // evaluatedEffect: "ALLOW" || "EXPLICIT_DENY" || "IMPLICIT_DENY",
54
+ * // matchedPolicies: [ // MatchedPolicyList
55
+ * // { // MatchedPolicy
56
+ * // uri: "STRING_VALUE", // required
57
+ * // matchedStatements: [ // MatchedStatementList
58
+ * // { // MatchedStatement
59
+ * // sid: "STRING_VALUE",
60
+ * // evaluatedEffect: "ALLOW" || "DENY",
61
+ * // },
62
+ * // ],
63
+ * // },
64
+ * // ],
65
+ * // },
66
+ * // ],
67
+ * // policies: [ // PolicyInfoList // required
68
+ * // { // PolicyInfo
69
+ * // type: "IDENTITY_BASED_POLICY" || "RESOURCE_BASED_POLICY" || "PERMISSIONS_BOUNDARY" || "SESSION_POLICY" || "SERVICE_CONTROL_POLICY" || "RESOURCE_CONTROL_POLICY" || "VPC_ENDPOINT_POLICY",
70
+ * // inline: true || false,
71
+ * // uri: "STRING_VALUE",
72
+ * // attachedTo: [ // AttachedToList
73
+ * // { // AttachedTo
74
+ * // arn: "STRING_VALUE",
75
+ * // },
76
+ * // ],
77
+ * // },
78
+ * // ],
79
+ * // nextToken: "STRING_VALUE",
80
+ * // };
81
+ *
82
+ * ```
83
+ *
84
+ * @param GetRequestAuthorizationDetailsCommandInput - {@link GetRequestAuthorizationDetailsCommandInput}
85
+ * @returns {@link GetRequestAuthorizationDetailsCommandOutput}
86
+ * @see {@link GetRequestAuthorizationDetailsCommandInput} for command's `input` shape.
87
+ * @see {@link GetRequestAuthorizationDetailsCommandOutput} for command's `response` shape.
88
+ * @see {@link IAMToolboxClientResolvedConfig | config} for IAMToolboxClient's `config` shape.
89
+ *
90
+ * @throws {@link AccessDeniedException} (client fault)
91
+ * <p>The caller does not have sufficient access to perform this action.</p>
92
+ *
93
+ * @throws {@link InternalServerException} (server fault)
94
+ * <p>An unexpected error occurred while processing the request. Try again.</p>
95
+ *
96
+ * @throws {@link ResourceNotFoundException} (client fault)
97
+ * <p>The requested authorization details do not exist in this region or have expired. Verify that the authorization ID from the access denied error message is correct and the call is made in the region where the denial occurred. Ensure that the calling principal belongs to the same account or organization as the original denied request.</p>
98
+ *
99
+ * @throws {@link ValidationException} (client fault)
100
+ * <p>The request is malformed or is missing one or more required parameters. Check the request parameters and try again.</p>
101
+ *
102
+ * @throws {@link IAMToolboxServiceException}
103
+ * <p>Base exception class for all service exceptions from IAMToolbox service.</p>
104
+ *
105
+ *
106
+ * @public
107
+ */
108
+ export declare class GetRequestAuthorizationDetailsCommand extends GetRequestAuthorizationDetailsCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: GetRequestAuthorizationDetailsInput;
113
+ output: GetRequestAuthorizationDetailsOutput;
114
+ };
115
+ sdk: {
116
+ input: GetRequestAuthorizationDetailsCommandInput;
117
+ output: GetRequestAuthorizationDetailsCommandOutput;
118
+ };
119
+ };
120
+ }
@@ -0,0 +1 @@
1
+ export * from "./GetRequestAuthorizationDetailsCommand";
@@ -0,0 +1,50 @@
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | undefined | Provider<string | undefined>;
7
+ useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
8
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
+ }
11
+ /**
12
+ * @public
13
+ */
14
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
15
+ defaultSigningName: string;
16
+ };
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
21
+ /**
22
+ * @internal
23
+ */
24
+ export declare const commonParams: {
25
+ readonly UseFIPS: {
26
+ readonly type: "builtInParams";
27
+ readonly name: "useFipsEndpoint";
28
+ };
29
+ readonly Endpoint: {
30
+ readonly type: "builtInParams";
31
+ readonly name: "endpoint";
32
+ };
33
+ readonly Region: {
34
+ readonly type: "builtInParams";
35
+ readonly name: "region";
36
+ };
37
+ readonly UseDualStack: {
38
+ readonly type: "builtInParams";
39
+ readonly name: "useDualstackEndpoint";
40
+ };
41
+ };
42
+ /**
43
+ * @internal
44
+ */
45
+ export interface EndpointParameters extends __EndpointParameters {
46
+ Region?: string | undefined;
47
+ UseDualStack?: boolean | undefined;
48
+ UseFIPS?: boolean | undefined;
49
+ Endpoint?: string | undefined;
50
+ }
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -0,0 +1,8 @@
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
+ logger?: Logger;
8
+ }) => EndpointV2;
@@ -0,0 +1,9 @@
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ /**
6
+ * @internal
7
+ */
8
+ export interface IAMToolboxExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
9
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * <p>Contains APIs to work with AWS Identity and Access Management (IAM).</p>
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ export * from "./IAMToolboxClient";
7
+ export * from "./IAMToolbox";
8
+ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
+ export type { RuntimeExtension } from "./runtimeExtensions";
10
+ export type { IAMToolboxExtensionConfiguration } from "./extensionConfiguration";
11
+ export * from "./commands";
12
+ export { Command as $Command } from "@smithy/core/client";
13
+ export * from "./pagination";
14
+ export * from "./schemas/schemas_0";
15
+ export * from "./models/enums";
16
+ export * from "./models/errors";
17
+ export * from "./models/models_0";
18
+ export { IAMToolboxServiceException } from "./models/IAMToolboxServiceException";
@@ -0,0 +1,14 @@
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
4
+ /**
5
+ * @public
6
+ *
7
+ * Base exception class for all service exceptions from IAMToolbox service.
8
+ */
9
+ export declare class IAMToolboxServiceException extends __ServiceException {
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(options: __ServiceExceptionOptions);
14
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const EvaluatedEffect: {
6
+ readonly ALLOW: "ALLOW";
7
+ readonly EXPLICIT_DENY: "EXPLICIT_DENY";
8
+ readonly IMPLICIT_DENY: "IMPLICIT_DENY";
9
+ };
10
+ /**
11
+ * @public
12
+ */
13
+ export type EvaluatedEffect = (typeof EvaluatedEffect)[keyof typeof EvaluatedEffect];
14
+ /**
15
+ * @public
16
+ * @enum
17
+ */
18
+ export declare const StatementEffect: {
19
+ readonly ALLOW: "ALLOW";
20
+ readonly DENY: "DENY";
21
+ };
22
+ /**
23
+ * @public
24
+ */
25
+ export type StatementEffect = (typeof StatementEffect)[keyof typeof StatementEffect];
26
+ /**
27
+ * @public
28
+ * @enum
29
+ */
30
+ export declare const PolicyType: {
31
+ readonly IDENTITY_BASED_POLICY: "IDENTITY_BASED_POLICY";
32
+ readonly PERMISSIONS_BOUNDARY: "PERMISSIONS_BOUNDARY";
33
+ readonly RESOURCE_BASED_POLICY: "RESOURCE_BASED_POLICY";
34
+ readonly RESOURCE_CONTROL_POLICY: "RESOURCE_CONTROL_POLICY";
35
+ readonly SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY";
36
+ readonly SESSION_POLICY: "SESSION_POLICY";
37
+ readonly VPC_ENDPOINT_POLICY: "VPC_ENDPOINT_POLICY";
38
+ };
39
+ /**
40
+ * @public
41
+ */
42
+ export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
@@ -0,0 +1,50 @@
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
+ import { IAMToolboxServiceException as __BaseException } from "./IAMToolboxServiceException";
3
+ /**
4
+ * <p>The caller does not have sufficient access to perform this action.</p>
5
+ * @public
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>An unexpected error occurred while processing the request. Try again.</p>
17
+ * @public
18
+ */
19
+ export declare class InternalServerException extends __BaseException {
20
+ readonly name: "InternalServerException";
21
+ readonly $fault: "server";
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
26
+ }
27
+ /**
28
+ * <p>The requested authorization details do not exist in this region or have expired. Verify that the authorization ID from the access denied error message is correct and the call is made in the region where the denial occurred. Ensure that the calling principal belongs to the same account or organization as the original denied request.</p>
29
+ * @public
30
+ */
31
+ export declare class ResourceNotFoundException extends __BaseException {
32
+ readonly name: "ResourceNotFoundException";
33
+ readonly $fault: "client";
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
38
+ }
39
+ /**
40
+ * <p>The request is malformed or is missing one or more required parameters. Check the request parameters and try again.</p>
41
+ * @public
42
+ */
43
+ export declare class ValidationException extends __BaseException {
44
+ readonly name: "ValidationException";
45
+ readonly $fault: "client";
46
+ /**
47
+ * @internal
48
+ */
49
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
50
+ }