@aws-sdk/client-sts 3.332.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.
- package/CHANGELOG.md +3735 -0
- package/dist-cjs/commands/AssumeRoleCommand.js +2 -1
- package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +3 -2
- package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +3 -2
- package/dist-cjs/commands/GetFederationTokenCommand.js +2 -1
- package/dist-cjs/commands/GetSessionTokenCommand.js +2 -1
- package/dist-cjs/models/models_0.js +42 -1
- package/dist-cjs/protocols/Aws_query.js +1 -1
- package/dist-es/commands/AssumeRoleCommand.js +2 -1
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js +3 -2
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +3 -2
- package/dist-es/commands/GetFederationTokenCommand.js +2 -1
- package/dist-es/commands/GetSessionTokenCommand.js +2 -1
- package/dist-es/models/models_0.js +33 -0
- package/dist-es/protocols/Aws_query.js +1 -1
- package/dist-types/STSClient.d.ts +3 -2
- package/dist-types/endpoint/EndpointParameters.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +32 -0
- package/dist-types/protocols/Aws_query.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +13 -13
- package/dist-types/runtimeConfig.d.ts +9 -9
- package/dist-types/runtimeConfig.native.d.ts +14 -14
- package/dist-types/runtimeConfig.shared.d.ts +4 -4
- package/dist-types/ts3.4/STS.d.ts +69 -141
- package/dist-types/ts3.4/STSClient.d.ts +173 -159
- package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +261 -34
- package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +292 -38
- package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +301 -41
- package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +125 -41
- package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +86 -37
- package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +124 -38
- package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +235 -38
- package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +162 -37
- package/dist-types/ts3.4/commands/index.d.ts +8 -8
- package/dist-types/ts3.4/defaultRoleAssumers.d.ts +20 -22
- package/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +35 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +22 -35
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +5 -8
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +6 -6
- package/dist-types/ts3.4/models/STSServiceException.d.ts +12 -7
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +1110 -179
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +74 -101
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +43 -95
- package/dist-types/ts3.4/runtimeConfig.d.ts +43 -93
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +42 -84
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -18
- package/package.json +5 -4
|
@@ -1,141 +1,69 @@
|
|
|
1
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./commands/
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./commands/
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
args:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
args:
|
|
46
|
-
|
|
47
|
-
cb: (err: any, data?:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
options?: __HttpHandlerOptions
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
args:
|
|
59
|
-
options: __HttpHandlerOptions,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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,159 +1,173 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "@aws-sdk/
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "@aws-sdk/
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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 {};
|