@aws-sdk/client-sts 3.335.0 → 3.335.1

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 (27) hide show
  1. package/CHANGELOG.md +3735 -0
  2. package/dist-types/ts3.4/STS.d.ts +69 -141
  3. package/dist-types/ts3.4/STSClient.d.ts +173 -161
  4. package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +261 -34
  5. package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +292 -38
  6. package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +301 -41
  7. package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +125 -41
  8. package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +86 -37
  9. package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +124 -38
  10. package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +235 -38
  11. package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +162 -37
  12. package/dist-types/ts3.4/commands/index.d.ts +8 -8
  13. package/dist-types/ts3.4/defaultRoleAssumers.d.ts +20 -22
  14. package/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +35 -23
  15. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +22 -34
  16. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +5 -8
  17. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
  18. package/dist-types/ts3.4/index.d.ts +6 -6
  19. package/dist-types/ts3.4/models/STSServiceException.d.ts +12 -7
  20. package/dist-types/ts3.4/models/index.d.ts +1 -1
  21. package/dist-types/ts3.4/models/models_0.d.ts +1110 -201
  22. package/dist-types/ts3.4/protocols/Aws_query.d.ts +74 -101
  23. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +43 -98
  24. package/dist-types/ts3.4/runtimeConfig.d.ts +43 -93
  25. package/dist-types/ts3.4/runtimeConfig.native.d.ts +42 -89
  26. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -18
  27. package/package.json +2 -2
@@ -1,141 +1,69 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
- import {
3
- AssumeRoleCommandInput,
4
- AssumeRoleCommandOutput,
5
- } from "./commands/AssumeRoleCommand";
6
- import {
7
- AssumeRoleWithSAMLCommandInput,
8
- AssumeRoleWithSAMLCommandOutput,
9
- } from "./commands/AssumeRoleWithSAMLCommand";
10
- import {
11
- AssumeRoleWithWebIdentityCommandInput,
12
- AssumeRoleWithWebIdentityCommandOutput,
13
- } from "./commands/AssumeRoleWithWebIdentityCommand";
14
- import {
15
- DecodeAuthorizationMessageCommandInput,
16
- DecodeAuthorizationMessageCommandOutput,
17
- } from "./commands/DecodeAuthorizationMessageCommand";
18
- import {
19
- GetAccessKeyInfoCommandInput,
20
- GetAccessKeyInfoCommandOutput,
21
- } from "./commands/GetAccessKeyInfoCommand";
22
- import {
23
- GetCallerIdentityCommandInput,
24
- GetCallerIdentityCommandOutput,
25
- } from "./commands/GetCallerIdentityCommand";
26
- import {
27
- GetFederationTokenCommandInput,
28
- GetFederationTokenCommandOutput,
29
- } from "./commands/GetFederationTokenCommand";
30
- import {
31
- GetSessionTokenCommandInput,
32
- GetSessionTokenCommandOutput,
33
- } from "./commands/GetSessionTokenCommand";
34
- import { STSClient } from "./STSClient";
35
- export interface STS {
36
- assumeRole(
37
- args: AssumeRoleCommandInput,
38
- options?: __HttpHandlerOptions
39
- ): Promise<AssumeRoleCommandOutput>;
40
- assumeRole(
41
- args: AssumeRoleCommandInput,
42
- cb: (err: any, data?: AssumeRoleCommandOutput) => void
43
- ): void;
44
- assumeRole(
45
- args: AssumeRoleCommandInput,
46
- options: __HttpHandlerOptions,
47
- cb: (err: any, data?: AssumeRoleCommandOutput) => void
48
- ): void;
49
- assumeRoleWithSAML(
50
- args: AssumeRoleWithSAMLCommandInput,
51
- options?: __HttpHandlerOptions
52
- ): Promise<AssumeRoleWithSAMLCommandOutput>;
53
- assumeRoleWithSAML(
54
- args: AssumeRoleWithSAMLCommandInput,
55
- cb: (err: any, data?: AssumeRoleWithSAMLCommandOutput) => void
56
- ): void;
57
- assumeRoleWithSAML(
58
- args: AssumeRoleWithSAMLCommandInput,
59
- options: __HttpHandlerOptions,
60
- cb: (err: any, data?: AssumeRoleWithSAMLCommandOutput) => void
61
- ): void;
62
- assumeRoleWithWebIdentity(
63
- args: AssumeRoleWithWebIdentityCommandInput,
64
- options?: __HttpHandlerOptions
65
- ): Promise<AssumeRoleWithWebIdentityCommandOutput>;
66
- assumeRoleWithWebIdentity(
67
- args: AssumeRoleWithWebIdentityCommandInput,
68
- cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void
69
- ): void;
70
- assumeRoleWithWebIdentity(
71
- args: AssumeRoleWithWebIdentityCommandInput,
72
- options: __HttpHandlerOptions,
73
- cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void
74
- ): void;
75
- decodeAuthorizationMessage(
76
- args: DecodeAuthorizationMessageCommandInput,
77
- options?: __HttpHandlerOptions
78
- ): Promise<DecodeAuthorizationMessageCommandOutput>;
79
- decodeAuthorizationMessage(
80
- args: DecodeAuthorizationMessageCommandInput,
81
- cb: (err: any, data?: DecodeAuthorizationMessageCommandOutput) => void
82
- ): void;
83
- decodeAuthorizationMessage(
84
- args: DecodeAuthorizationMessageCommandInput,
85
- options: __HttpHandlerOptions,
86
- cb: (err: any, data?: DecodeAuthorizationMessageCommandOutput) => void
87
- ): void;
88
- getAccessKeyInfo(
89
- args: GetAccessKeyInfoCommandInput,
90
- options?: __HttpHandlerOptions
91
- ): Promise<GetAccessKeyInfoCommandOutput>;
92
- getAccessKeyInfo(
93
- args: GetAccessKeyInfoCommandInput,
94
- cb: (err: any, data?: GetAccessKeyInfoCommandOutput) => void
95
- ): void;
96
- getAccessKeyInfo(
97
- args: GetAccessKeyInfoCommandInput,
98
- options: __HttpHandlerOptions,
99
- cb: (err: any, data?: GetAccessKeyInfoCommandOutput) => void
100
- ): void;
101
- getCallerIdentity(
102
- args: GetCallerIdentityCommandInput,
103
- options?: __HttpHandlerOptions
104
- ): Promise<GetCallerIdentityCommandOutput>;
105
- getCallerIdentity(
106
- args: GetCallerIdentityCommandInput,
107
- cb: (err: any, data?: GetCallerIdentityCommandOutput) => void
108
- ): void;
109
- getCallerIdentity(
110
- args: GetCallerIdentityCommandInput,
111
- options: __HttpHandlerOptions,
112
- cb: (err: any, data?: GetCallerIdentityCommandOutput) => void
113
- ): void;
114
- getFederationToken(
115
- args: GetFederationTokenCommandInput,
116
- options?: __HttpHandlerOptions
117
- ): Promise<GetFederationTokenCommandOutput>;
118
- getFederationToken(
119
- args: GetFederationTokenCommandInput,
120
- cb: (err: any, data?: GetFederationTokenCommandOutput) => void
121
- ): void;
122
- getFederationToken(
123
- args: GetFederationTokenCommandInput,
124
- options: __HttpHandlerOptions,
125
- cb: (err: any, data?: GetFederationTokenCommandOutput) => void
126
- ): void;
127
- getSessionToken(
128
- args: GetSessionTokenCommandInput,
129
- options?: __HttpHandlerOptions
130
- ): Promise<GetSessionTokenCommandOutput>;
131
- getSessionToken(
132
- args: GetSessionTokenCommandInput,
133
- cb: (err: any, data?: GetSessionTokenCommandOutput) => void
134
- ): void;
135
- getSessionToken(
136
- args: GetSessionTokenCommandInput,
137
- options: __HttpHandlerOptions,
138
- cb: (err: any, data?: GetSessionTokenCommandOutput) => void
139
- ): void;
140
- }
141
- export declare class STS extends STSClient implements STS {}
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
3
+ import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
4
+ import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
5
+ import { DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput } from "./commands/DecodeAuthorizationMessageCommand";
6
+ import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand";
7
+ import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
8
+ import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
9
+ import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
10
+ import { STSClient } from "./STSClient";
11
+ export interface STS {
12
+ /**
13
+ * @see {@link AssumeRoleCommand}
14
+ */
15
+ assumeRole(args: AssumeRoleCommandInput, options?: __HttpHandlerOptions): Promise<AssumeRoleCommandOutput>;
16
+ assumeRole(args: AssumeRoleCommandInput, cb: (err: any, data?: AssumeRoleCommandOutput) => void): void;
17
+ assumeRole(args: AssumeRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeRoleCommandOutput) => void): void;
18
+ /**
19
+ * @see {@link AssumeRoleWithSAMLCommand}
20
+ */
21
+ assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, options?: __HttpHandlerOptions): Promise<AssumeRoleWithSAMLCommandOutput>;
22
+ assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, cb: (err: any, data?: AssumeRoleWithSAMLCommandOutput) => void): void;
23
+ assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeRoleWithSAMLCommandOutput) => void): void;
24
+ /**
25
+ * @see {@link AssumeRoleWithWebIdentityCommand}
26
+ */
27
+ assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options?: __HttpHandlerOptions): Promise<AssumeRoleWithWebIdentityCommandOutput>;
28
+ assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void): void;
29
+ assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void): void;
30
+ /**
31
+ * @see {@link DecodeAuthorizationMessageCommand}
32
+ */
33
+ decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, options?: __HttpHandlerOptions): Promise<DecodeAuthorizationMessageCommandOutput>;
34
+ decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, cb: (err: any, data?: DecodeAuthorizationMessageCommandOutput) => void): void;
35
+ decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DecodeAuthorizationMessageCommandOutput) => void): void;
36
+ /**
37
+ * @see {@link GetAccessKeyInfoCommand}
38
+ */
39
+ getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, options?: __HttpHandlerOptions): Promise<GetAccessKeyInfoCommandOutput>;
40
+ getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, cb: (err: any, data?: GetAccessKeyInfoCommandOutput) => void): void;
41
+ getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccessKeyInfoCommandOutput) => void): void;
42
+ /**
43
+ * @see {@link GetCallerIdentityCommand}
44
+ */
45
+ getCallerIdentity(args: GetCallerIdentityCommandInput, options?: __HttpHandlerOptions): Promise<GetCallerIdentityCommandOutput>;
46
+ getCallerIdentity(args: GetCallerIdentityCommandInput, cb: (err: any, data?: GetCallerIdentityCommandOutput) => void): void;
47
+ getCallerIdentity(args: GetCallerIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCallerIdentityCommandOutput) => void): void;
48
+ /**
49
+ * @see {@link GetFederationTokenCommand}
50
+ */
51
+ getFederationToken(args: GetFederationTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetFederationTokenCommandOutput>;
52
+ getFederationToken(args: GetFederationTokenCommandInput, cb: (err: any, data?: GetFederationTokenCommandOutput) => void): void;
53
+ getFederationToken(args: GetFederationTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFederationTokenCommandOutput) => void): void;
54
+ /**
55
+ * @see {@link GetSessionTokenCommand}
56
+ */
57
+ getSessionToken(args: GetSessionTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionTokenCommandOutput>;
58
+ getSessionToken(args: GetSessionTokenCommandInput, cb: (err: any, data?: GetSessionTokenCommandOutput) => void): void;
59
+ getSessionToken(args: GetSessionTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionTokenCommandOutput) => void): void;
60
+ }
61
+ /**
62
+ * @public
63
+ * <fullname>Security Token Service</fullname>
64
+ * <p>Security Token Service (STS) enables you to request temporary, limited-privilege
65
+ * credentials for users. This guide provides descriptions of the STS API. For
66
+ * more information about using this service, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security Credentials</a>.</p>
67
+ */
68
+ export declare class STS extends STSClient implements STS {
69
+ }
@@ -1,161 +1,173 @@
1
- import {
2
- RegionInputConfig,
3
- RegionResolvedConfig,
4
- } from "@aws-sdk/config-resolver";
5
- import {
6
- EndpointInputConfig,
7
- EndpointResolvedConfig,
8
- } from "@aws-sdk/middleware-endpoint";
9
- import {
10
- HostHeaderInputConfig,
11
- HostHeaderResolvedConfig,
12
- } from "@aws-sdk/middleware-host-header";
13
- import {
14
- RetryInputConfig,
15
- RetryResolvedConfig,
16
- } from "@aws-sdk/middleware-retry";
17
- import {
18
- StsAuthInputConfig,
19
- StsAuthResolvedConfig,
20
- } from "@aws-sdk/middleware-sdk-sts";
21
- import {
22
- UserAgentInputConfig,
23
- UserAgentResolvedConfig,
24
- } from "@aws-sdk/middleware-user-agent";
25
- import {
26
- Client as __Client,
27
- DefaultsMode as __DefaultsMode,
28
- SmithyConfiguration as __SmithyConfiguration,
29
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
30
- } from "@aws-sdk/smithy-client";
31
- import {
32
- BodyLengthCalculator as __BodyLengthCalculator,
33
- ChecksumConstructor as __ChecksumConstructor,
34
- Credentials as __Credentials,
35
- HashConstructor as __HashConstructor,
36
- HttpHandlerOptions as __HttpHandlerOptions,
37
- Logger as __Logger,
38
- Provider,
39
- UrlParser as __UrlParser,
40
- UserAgent as __UserAgent,
41
- } from "@aws-sdk/types";
42
- import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
43
- import {
44
- Decoder as __Decoder,
45
- Encoder as __Encoder,
46
- Provider as __Provider,
47
- StreamCollector as __StreamCollector,
48
- } from "@smithy/types";
49
- import {
50
- AssumeRoleCommandInput,
51
- AssumeRoleCommandOutput,
52
- } from "./commands/AssumeRoleCommand";
53
- import {
54
- AssumeRoleWithSAMLCommandInput,
55
- AssumeRoleWithSAMLCommandOutput,
56
- } from "./commands/AssumeRoleWithSAMLCommand";
57
- import {
58
- AssumeRoleWithWebIdentityCommandInput,
59
- AssumeRoleWithWebIdentityCommandOutput,
60
- } from "./commands/AssumeRoleWithWebIdentityCommand";
61
- import {
62
- DecodeAuthorizationMessageCommandInput,
63
- DecodeAuthorizationMessageCommandOutput,
64
- } from "./commands/DecodeAuthorizationMessageCommand";
65
- import {
66
- GetAccessKeyInfoCommandInput,
67
- GetAccessKeyInfoCommandOutput,
68
- } from "./commands/GetAccessKeyInfoCommand";
69
- import {
70
- GetCallerIdentityCommandInput,
71
- GetCallerIdentityCommandOutput,
72
- } from "./commands/GetCallerIdentityCommand";
73
- import {
74
- GetFederationTokenCommandInput,
75
- GetFederationTokenCommandOutput,
76
- } from "./commands/GetFederationTokenCommand";
77
- import {
78
- GetSessionTokenCommandInput,
79
- GetSessionTokenCommandOutput,
80
- } from "./commands/GetSessionTokenCommand";
81
- import {
82
- ClientInputEndpointParameters,
83
- ClientResolvedEndpointParameters,
84
- EndpointParameters,
85
- } from "./endpoint/EndpointParameters";
86
- export type ServiceInputTypes =
87
- | AssumeRoleCommandInput
88
- | AssumeRoleWithSAMLCommandInput
89
- | AssumeRoleWithWebIdentityCommandInput
90
- | DecodeAuthorizationMessageCommandInput
91
- | GetAccessKeyInfoCommandInput
92
- | GetCallerIdentityCommandInput
93
- | GetFederationTokenCommandInput
94
- | GetSessionTokenCommandInput;
95
- export type ServiceOutputTypes =
96
- | AssumeRoleCommandOutput
97
- | AssumeRoleWithSAMLCommandOutput
98
- | AssumeRoleWithWebIdentityCommandOutput
99
- | DecodeAuthorizationMessageCommandOutput
100
- | GetAccessKeyInfoCommandOutput
101
- | GetCallerIdentityCommandOutput
102
- | GetFederationTokenCommandOutput
103
- | GetSessionTokenCommandOutput;
104
- export interface ClientDefaults
105
- extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
106
- requestHandler?: __HttpHandler;
107
- sha256?: __ChecksumConstructor | __HashConstructor;
108
- urlParser?: __UrlParser;
109
- bodyLengthChecker?: __BodyLengthCalculator;
110
- streamCollector?: __StreamCollector;
111
- base64Decoder?: __Decoder;
112
- base64Encoder?: __Encoder;
113
- utf8Decoder?: __Decoder;
114
- utf8Encoder?: __Encoder;
115
- runtime?: string;
116
- disableHostPrefix?: boolean;
117
- serviceId?: string;
118
- useDualstackEndpoint?: boolean | __Provider<boolean>;
119
- useFipsEndpoint?: boolean | __Provider<boolean>;
120
- region?: string | __Provider<string>;
121
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
122
- defaultUserAgentProvider?: Provider<__UserAgent>;
123
- maxAttempts?: number | __Provider<number>;
124
- retryMode?: string | __Provider<string>;
125
- logger?: __Logger;
126
- defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
127
- }
128
- type STSClientConfigType = Partial<
129
- __SmithyConfiguration<__HttpHandlerOptions>
130
- > &
131
- ClientDefaults &
132
- RegionInputConfig &
133
- EndpointInputConfig<EndpointParameters> &
134
- RetryInputConfig &
135
- HostHeaderInputConfig &
136
- StsAuthInputConfig &
137
- UserAgentInputConfig &
138
- ClientInputEndpointParameters;
139
- export interface STSClientConfig extends STSClientConfigType {}
140
- type STSClientResolvedConfigType =
141
- __SmithyResolvedConfiguration<__HttpHandlerOptions> &
142
- Required<ClientDefaults> &
143
- RegionResolvedConfig &
144
- EndpointResolvedConfig<EndpointParameters> &
145
- RetryResolvedConfig &
146
- HostHeaderResolvedConfig &
147
- StsAuthResolvedConfig &
148
- UserAgentResolvedConfig &
149
- ClientResolvedEndpointParameters;
150
- export interface STSClientResolvedConfig extends STSClientResolvedConfigType {}
151
- export declare class STSClient extends __Client<
152
- __HttpHandlerOptions,
153
- ServiceInputTypes,
154
- ServiceOutputTypes,
155
- STSClientResolvedConfig
156
- > {
157
- readonly config: STSClientResolvedConfig;
158
- constructor(configuration: STSClientConfig);
159
- destroy(): void;
160
- }
161
- export {};
1
+ import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware-endpoint";
3
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
4
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
5
+ import { StsAuthInputConfig, StsAuthResolvedConfig } from "@aws-sdk/middleware-sdk-sts";
6
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
10
+ import { Decoder as __Decoder, Encoder as __Encoder, Provider as __Provider, StreamCollector as __StreamCollector } from "@smithy/types";
11
+ import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
12
+ import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
13
+ import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
14
+ import { DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput } from "./commands/DecodeAuthorizationMessageCommand";
15
+ import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand";
16
+ import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
17
+ import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
18
+ import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
19
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
20
+ /**
21
+ * @public
22
+ */
23
+ export type ServiceInputTypes = AssumeRoleCommandInput | AssumeRoleWithSAMLCommandInput | AssumeRoleWithWebIdentityCommandInput | DecodeAuthorizationMessageCommandInput | GetAccessKeyInfoCommandInput | GetCallerIdentityCommandInput | GetFederationTokenCommandInput | GetSessionTokenCommandInput;
24
+ /**
25
+ * @public
26
+ */
27
+ export type ServiceOutputTypes = AssumeRoleCommandOutput | AssumeRoleWithSAMLCommandOutput | AssumeRoleWithWebIdentityCommandOutput | DecodeAuthorizationMessageCommandOutput | GetAccessKeyInfoCommandOutput | GetCallerIdentityCommandOutput | GetFederationTokenCommandOutput | GetSessionTokenCommandOutput;
28
+ /**
29
+ * @public
30
+ */
31
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
32
+ /**
33
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
34
+ */
35
+ requestHandler?: __HttpHandler;
36
+ /**
37
+ * A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
38
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
39
+ * @internal
40
+ */
41
+ sha256?: __ChecksumConstructor | __HashConstructor;
42
+ /**
43
+ * The function that will be used to convert strings into HTTP endpoints.
44
+ * @internal
45
+ */
46
+ urlParser?: __UrlParser;
47
+ /**
48
+ * A function that can calculate the length of a request body.
49
+ * @internal
50
+ */
51
+ bodyLengthChecker?: __BodyLengthCalculator;
52
+ /**
53
+ * A function that converts a stream into an array of bytes.
54
+ * @internal
55
+ */
56
+ streamCollector?: __StreamCollector;
57
+ /**
58
+ * The function that will be used to convert a base64-encoded string to a byte array.
59
+ * @internal
60
+ */
61
+ base64Decoder?: __Decoder;
62
+ /**
63
+ * The function that will be used to convert binary data to a base64-encoded string.
64
+ * @internal
65
+ */
66
+ base64Encoder?: __Encoder;
67
+ /**
68
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
69
+ * @internal
70
+ */
71
+ utf8Decoder?: __Decoder;
72
+ /**
73
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
74
+ * @internal
75
+ */
76
+ utf8Encoder?: __Encoder;
77
+ /**
78
+ * The runtime environment.
79
+ * @internal
80
+ */
81
+ runtime?: string;
82
+ /**
83
+ * Disable dyanamically changing the endpoint of the client based on the hostPrefix
84
+ * trait of an operation.
85
+ */
86
+ disableHostPrefix?: boolean;
87
+ /**
88
+ * Unique service identifier.
89
+ * @internal
90
+ */
91
+ serviceId?: string;
92
+ /**
93
+ * Enables IPv6/IPv4 dualstack endpoint.
94
+ */
95
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
96
+ /**
97
+ * Enables FIPS compatible endpoints.
98
+ */
99
+ useFipsEndpoint?: boolean | __Provider<boolean>;
100
+ /**
101
+ * The AWS region to which this client will send requests
102
+ */
103
+ region?: string | __Provider<string>;
104
+ /**
105
+ * Default credentials provider; Not available in browser runtime.
106
+ * @internal
107
+ */
108
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
109
+ /**
110
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
111
+ * @internal
112
+ */
113
+ defaultUserAgentProvider?: Provider<__UserAgent>;
114
+ /**
115
+ * Value for how many times a request will be made at most in case of retry.
116
+ */
117
+ maxAttempts?: number | __Provider<number>;
118
+ /**
119
+ * Specifies which retry algorithm to use.
120
+ */
121
+ retryMode?: string | __Provider<string>;
122
+ /**
123
+ * Optional logger for logging debug/info/warn/error.
124
+ */
125
+ logger?: __Logger;
126
+ /**
127
+ * The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
128
+ */
129
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
130
+ }
131
+ /**
132
+ * @public
133
+ */
134
+ type STSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & StsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
135
+ /**
136
+ * @public
137
+ *
138
+ * The configuration interface of STSClient class constructor that set the region, credentials and other options.
139
+ */
140
+ export interface STSClientConfig extends STSClientConfigType {
141
+ }
142
+ /**
143
+ * @public
144
+ */
145
+ type STSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & StsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
146
+ /**
147
+ * @public
148
+ *
149
+ * The resolved configuration interface of STSClient class. This is resolved and normalized from the {@link STSClientConfig | constructor configuration interface}.
150
+ */
151
+ export interface STSClientResolvedConfig extends STSClientResolvedConfigType {
152
+ }
153
+ /**
154
+ * @public
155
+ * <fullname>Security Token Service</fullname>
156
+ * <p>Security Token Service (STS) enables you to request temporary, limited-privilege
157
+ * credentials for users. This guide provides descriptions of the STS API. For
158
+ * more information about using this service, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security Credentials</a>.</p>
159
+ */
160
+ export declare class STSClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig> {
161
+ /**
162
+ * The resolved configuration of STSClient class. This is resolved and normalized from the {@link STSClientConfig | constructor configuration interface}.
163
+ */
164
+ readonly config: STSClientResolvedConfig;
165
+ constructor(configuration: STSClientConfig);
166
+ /**
167
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
168
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
169
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
170
+ */
171
+ destroy(): void;
172
+ }
173
+ export {};