@aws-sdk/client-sts 3.533.0 → 3.535.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/dist-types/STS.d.ts +3 -1
- package/dist-types/STSClient.d.ts +1 -1
- package/dist-types/commands/AssumeRoleCommand.d.ts +2 -1
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +2 -1
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -1
- package/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +2 -1
- package/dist-types/commands/GetAccessKeyInfoCommand.d.ts +2 -1
- package/dist-types/commands/GetCallerIdentityCommand.d.ts +2 -1
- package/dist-types/commands/GetFederationTokenCommand.d.ts +2 -1
- package/dist-types/commands/GetSessionTokenCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +98 -98
- package/dist-types/ts3.4/STS.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +9 -0
- package/package.json +39 -39
package/dist-types/STS.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export interface STS {
|
|
|
42
42
|
/**
|
|
43
43
|
* @see {@link GetCallerIdentityCommand}
|
|
44
44
|
*/
|
|
45
|
+
getCallerIdentity(): Promise<GetCallerIdentityCommandOutput>;
|
|
45
46
|
getCallerIdentity(args: GetCallerIdentityCommandInput, options?: __HttpHandlerOptions): Promise<GetCallerIdentityCommandOutput>;
|
|
46
47
|
getCallerIdentity(args: GetCallerIdentityCommandInput, cb: (err: any, data?: GetCallerIdentityCommandOutput) => void): void;
|
|
47
48
|
getCallerIdentity(args: GetCallerIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCallerIdentityCommandOutput) => void): void;
|
|
@@ -54,16 +55,17 @@ export interface STS {
|
|
|
54
55
|
/**
|
|
55
56
|
* @see {@link GetSessionTokenCommand}
|
|
56
57
|
*/
|
|
58
|
+
getSessionToken(): Promise<GetSessionTokenCommandOutput>;
|
|
57
59
|
getSessionToken(args: GetSessionTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionTokenCommandOutput>;
|
|
58
60
|
getSessionToken(args: GetSessionTokenCommandInput, cb: (err: any, data?: GetSessionTokenCommandOutput) => void): void;
|
|
59
61
|
getSessionToken(args: GetSessionTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionTokenCommandOutput) => void): void;
|
|
60
62
|
}
|
|
61
63
|
/**
|
|
62
|
-
* @public
|
|
63
64
|
* <fullname>Security Token Service</fullname>
|
|
64
65
|
* <p>Security Token Service (STS) enables you to request temporary, limited-privilege
|
|
65
66
|
* credentials for users. This guide provides descriptions of the STS API. For
|
|
66
67
|
* 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>
|
|
68
|
+
* @public
|
|
67
69
|
*/
|
|
68
70
|
export declare class STS extends STSClient implements STS {
|
|
69
71
|
}
|
|
@@ -159,11 +159,11 @@ export type STSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHa
|
|
|
159
159
|
export interface STSClientResolvedConfig extends STSClientResolvedConfigType {
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
|
-
* @public
|
|
163
162
|
* <fullname>Security Token Service</fullname>
|
|
164
163
|
* <p>Security Token Service (STS) enables you to request temporary, limited-privilege
|
|
165
164
|
* credentials for users. This guide provides descriptions of the STS API. For
|
|
166
165
|
* 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>
|
|
166
|
+
* @public
|
|
167
167
|
*/
|
|
168
168
|
export declare class STSClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig> {
|
|
169
169
|
/**
|
|
@@ -22,10 +22,10 @@ export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataB
|
|
|
22
22
|
}
|
|
23
23
|
declare const AssumeRoleCommand_base: {
|
|
24
24
|
new (input: AssumeRoleCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleCommandInput, AssumeRoleCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: AssumeRoleCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleCommandInput, AssumeRoleCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns a set of temporary security credentials that you can use to access Amazon Web Services
|
|
30
30
|
* resources. These temporary credentials consist of an access key ID, a secret access key,
|
|
31
31
|
* and a security token. Typically, you use <code>AssumeRole</code> within your account or for
|
|
@@ -204,6 +204,7 @@ declare const AssumeRoleCommand_base: {
|
|
|
204
204
|
* @throws {@link STSServiceException}
|
|
205
205
|
* <p>Base exception class for all service exceptions from STS service.</p>
|
|
206
206
|
*
|
|
207
|
+
* @public
|
|
207
208
|
* @example To assume a role
|
|
208
209
|
* ```javascript
|
|
209
210
|
* //
|
|
@@ -22,10 +22,10 @@ export interface AssumeRoleWithSAMLCommandOutput extends AssumeRoleWithSAMLRespo
|
|
|
22
22
|
}
|
|
23
23
|
declare const AssumeRoleWithSAMLCommand_base: {
|
|
24
24
|
new (input: AssumeRoleWithSAMLCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: AssumeRoleWithSAMLCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns a set of temporary security credentials for users who have been authenticated
|
|
30
30
|
* via a SAML authentication response. This operation provides a mechanism for tying an
|
|
31
31
|
* enterprise identity store or directory to role-based Amazon Web Services access without user-specific
|
|
@@ -242,6 +242,7 @@ declare const AssumeRoleWithSAMLCommand_base: {
|
|
|
242
242
|
* @throws {@link STSServiceException}
|
|
243
243
|
* <p>Base exception class for all service exceptions from STS service.</p>
|
|
244
244
|
*
|
|
245
|
+
* @public
|
|
245
246
|
* @example To assume a role using a SAML assertion
|
|
246
247
|
* ```javascript
|
|
247
248
|
* //
|
|
@@ -22,10 +22,10 @@ export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWe
|
|
|
22
22
|
}
|
|
23
23
|
declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
24
24
|
new (input: AssumeRoleWithWebIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: AssumeRoleWithWebIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns a set of temporary security credentials for users who have been authenticated in
|
|
30
30
|
* a mobile or web application with a web identity provider. Example providers include the
|
|
31
31
|
* OAuth 2.0 providers Login with Amazon and Facebook, or any OpenID Connect-compatible
|
|
@@ -251,6 +251,7 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
|
251
251
|
* @throws {@link STSServiceException}
|
|
252
252
|
* <p>Base exception class for all service exceptions from STS service.</p>
|
|
253
253
|
*
|
|
254
|
+
* @public
|
|
254
255
|
* @example To assume a role as an OpenID Connect-federated user
|
|
255
256
|
* ```javascript
|
|
256
257
|
* //
|
|
@@ -22,10 +22,10 @@ export interface DecodeAuthorizationMessageCommandOutput extends DecodeAuthoriza
|
|
|
22
22
|
}
|
|
23
23
|
declare const DecodeAuthorizationMessageCommand_base: {
|
|
24
24
|
new (input: DecodeAuthorizationMessageCommandInput): import("@smithy/smithy-client").CommandImpl<DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: DecodeAuthorizationMessageCommandInput): import("@smithy/smithy-client").CommandImpl<DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Decodes additional information about the authorization status of a request from an
|
|
30
30
|
* encoded message returned in response to an Amazon Web Services request.</p>
|
|
31
31
|
* <p>For example, if a user is not authorized to perform an operation that he or she has
|
|
@@ -93,6 +93,7 @@ declare const DecodeAuthorizationMessageCommand_base: {
|
|
|
93
93
|
* @throws {@link STSServiceException}
|
|
94
94
|
* <p>Base exception class for all service exceptions from STS service.</p>
|
|
95
95
|
*
|
|
96
|
+
* @public
|
|
96
97
|
* @example To decode information about an authorization status of a request
|
|
97
98
|
* ```javascript
|
|
98
99
|
* //
|
|
@@ -22,10 +22,10 @@ export interface GetAccessKeyInfoCommandOutput extends GetAccessKeyInfoResponse,
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetAccessKeyInfoCommand_base: {
|
|
24
24
|
new (input: GetAccessKeyInfoCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetAccessKeyInfoCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns the account identifier for the specified access key ID.</p>
|
|
30
30
|
* <p>Access keys consist of two parts: an access key ID (for example,
|
|
31
31
|
* <code>AKIAIOSFODNN7EXAMPLE</code>) and a secret access key (for example,
|
|
@@ -69,6 +69,7 @@ declare const GetAccessKeyInfoCommand_base: {
|
|
|
69
69
|
* @throws {@link STSServiceException}
|
|
70
70
|
* <p>Base exception class for all service exceptions from STS service.</p>
|
|
71
71
|
*
|
|
72
|
+
* @public
|
|
72
73
|
*/
|
|
73
74
|
export declare class GetAccessKeyInfoCommand extends GetAccessKeyInfoCommand_base {
|
|
74
75
|
}
|
|
@@ -22,10 +22,10 @@ export interface GetCallerIdentityCommandOutput extends GetCallerIdentityRespons
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetCallerIdentityCommand_base: {
|
|
24
24
|
new (input: GetCallerIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [GetCallerIdentityCommandInput]): import("@smithy/smithy-client").CommandImpl<GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns details about the IAM user or role whose credentials are used to
|
|
30
30
|
* call the operation.</p>
|
|
31
31
|
* <note>
|
|
@@ -62,6 +62,7 @@ declare const GetCallerIdentityCommand_base: {
|
|
|
62
62
|
* @throws {@link STSServiceException}
|
|
63
63
|
* <p>Base exception class for all service exceptions from STS service.</p>
|
|
64
64
|
*
|
|
65
|
+
* @public
|
|
65
66
|
* @example To get details about a calling IAM user
|
|
66
67
|
* ```javascript
|
|
67
68
|
* // This example shows a request and response made with the credentials for a user named Alice in the AWS account 123456789012.
|
|
@@ -22,10 +22,10 @@ export interface GetFederationTokenCommandOutput extends GetFederationTokenRespo
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetFederationTokenCommand_base: {
|
|
24
24
|
new (input: GetFederationTokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetFederationTokenCommandInput, GetFederationTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetFederationTokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetFederationTokenCommandInput, GetFederationTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns a set of temporary security credentials (consisting of an access key ID, a
|
|
30
30
|
* secret access key, and a security token) for a user. A typical use is in a proxy
|
|
31
31
|
* application that gets temporary security credentials on behalf of distributed applications
|
|
@@ -186,6 +186,7 @@ declare const GetFederationTokenCommand_base: {
|
|
|
186
186
|
* @throws {@link STSServiceException}
|
|
187
187
|
* <p>Base exception class for all service exceptions from STS service.</p>
|
|
188
188
|
*
|
|
189
|
+
* @public
|
|
189
190
|
* @example To get temporary credentials for a role by using GetFederationToken
|
|
190
191
|
* ```javascript
|
|
191
192
|
* //
|
|
@@ -22,10 +22,10 @@ export interface GetSessionTokenCommandOutput extends GetSessionTokenResponse, _
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetSessionTokenCommand_base: {
|
|
24
24
|
new (input: GetSessionTokenCommandInput): import("@smithy/smithy-client").CommandImpl<GetSessionTokenCommandInput, GetSessionTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [GetSessionTokenCommandInput]): import("@smithy/smithy-client").CommandImpl<GetSessionTokenCommandInput, GetSessionTokenCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns a set of temporary credentials for an Amazon Web Services account or IAM user.
|
|
30
30
|
* The credentials consist of an access key ID, a secret access key, and a security token.
|
|
31
31
|
* Typically, you use <code>GetSessionToken</code> if you want to use MFA to protect
|
|
@@ -125,6 +125,7 @@ declare const GetSessionTokenCommand_base: {
|
|
|
125
125
|
* @throws {@link STSServiceException}
|
|
126
126
|
* <p>Base exception class for all service exceptions from STS service.</p>
|
|
127
127
|
*
|
|
128
|
+
* @public
|
|
128
129
|
* @example To get temporary credentials for an IAM user or an AWS account
|
|
129
130
|
* ```javascript
|
|
130
131
|
* //
|