@aws-sdk/client-sts 3.50.0 → 3.53.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/STSServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +106 -1
- package/dist-cjs/protocols/Aws_query.js +80 -252
- package/dist-es/index.js +1 -0
- package/dist-es/models/STSServiceException.js +12 -0
- package/dist-es/models/models_0.js +98 -1
- package/dist-es/protocols/Aws_query.js +159 -255
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/STSServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -33
- package/dist-types/ts3.4/STS.d.ts +45 -0
- package/dist-types/ts3.4/STSClient.d.ts +81 -0
- package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/defaultRoleAssumers.d.ts +8 -0
- package/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +16 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/STSServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +344 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +26 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { STSServiceException as __BaseException } from "./STSServiceException";
|
|
2
3
|
/**
|
|
3
4
|
* <p>The identifiers for the temporary security credentials that the operation
|
|
4
5
|
* returns.</p>
|
|
@@ -356,19 +357,25 @@ export declare namespace AssumeRoleResponse {
|
|
|
356
357
|
* <p>The web identity token that was passed is expired or is not valid. Get a new identity
|
|
357
358
|
* token from the identity provider and then retry the request.</p>
|
|
358
359
|
*/
|
|
359
|
-
export
|
|
360
|
-
name: "ExpiredTokenException";
|
|
361
|
-
$fault: "client";
|
|
362
|
-
|
|
360
|
+
export declare class ExpiredTokenException extends __BaseException {
|
|
361
|
+
readonly name: "ExpiredTokenException";
|
|
362
|
+
readonly $fault: "client";
|
|
363
|
+
/**
|
|
364
|
+
* @internal
|
|
365
|
+
*/
|
|
366
|
+
constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
|
|
363
367
|
}
|
|
364
368
|
/**
|
|
365
369
|
* <p>The request was rejected because the policy document was malformed. The error message
|
|
366
370
|
* describes the specific error.</p>
|
|
367
371
|
*/
|
|
368
|
-
export
|
|
369
|
-
name: "MalformedPolicyDocumentException";
|
|
370
|
-
$fault: "client";
|
|
371
|
-
|
|
372
|
+
export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
373
|
+
readonly name: "MalformedPolicyDocumentException";
|
|
374
|
+
readonly $fault: "client";
|
|
375
|
+
/**
|
|
376
|
+
* @internal
|
|
377
|
+
*/
|
|
378
|
+
constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
|
|
372
379
|
}
|
|
373
380
|
/**
|
|
374
381
|
* <p>The request was rejected because the total packed size of the session policies and
|
|
@@ -381,10 +388,13 @@ export interface MalformedPolicyDocumentException extends __SmithyException, $Me
|
|
|
381
388
|
* session tag limits. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length">IAM and STS Entity
|
|
382
389
|
* Character Limits</a> in the <i>IAM User Guide</i>.</p>
|
|
383
390
|
*/
|
|
384
|
-
export
|
|
385
|
-
name: "PackedPolicyTooLargeException";
|
|
386
|
-
$fault: "client";
|
|
387
|
-
|
|
391
|
+
export declare class PackedPolicyTooLargeException extends __BaseException {
|
|
392
|
+
readonly name: "PackedPolicyTooLargeException";
|
|
393
|
+
readonly $fault: "client";
|
|
394
|
+
/**
|
|
395
|
+
* @internal
|
|
396
|
+
*/
|
|
397
|
+
constructor(opts: __ExceptionOptionType<PackedPolicyTooLargeException, __BaseException>);
|
|
388
398
|
}
|
|
389
399
|
/**
|
|
390
400
|
* <p>STS is not activated in the requested region for the account that is being asked to
|
|
@@ -393,10 +403,13 @@ export interface PackedPolicyTooLargeException extends __SmithyException, $Metad
|
|
|
393
403
|
* Deactivating Amazon Web Services STS in an Amazon Web Services Region</a> in the <i>IAM User
|
|
394
404
|
* Guide</i>.</p>
|
|
395
405
|
*/
|
|
396
|
-
export
|
|
397
|
-
name: "RegionDisabledException";
|
|
398
|
-
$fault: "client";
|
|
399
|
-
|
|
406
|
+
export declare class RegionDisabledException extends __BaseException {
|
|
407
|
+
readonly name: "RegionDisabledException";
|
|
408
|
+
readonly $fault: "client";
|
|
409
|
+
/**
|
|
410
|
+
* @internal
|
|
411
|
+
*/
|
|
412
|
+
constructor(opts: __ExceptionOptionType<RegionDisabledException, __BaseException>);
|
|
400
413
|
}
|
|
401
414
|
export interface AssumeRoleWithSAMLRequest {
|
|
402
415
|
/**
|
|
@@ -601,19 +614,25 @@ export declare namespace AssumeRoleWithSAMLResponse {
|
|
|
601
614
|
* <p>If this error is returned for the <code>AssumeRoleWithWebIdentity</code> operation, it
|
|
602
615
|
* can also mean that the claim has expired or has been explicitly revoked. </p>
|
|
603
616
|
*/
|
|
604
|
-
export
|
|
605
|
-
name: "IDPRejectedClaimException";
|
|
606
|
-
$fault: "client";
|
|
607
|
-
|
|
617
|
+
export declare class IDPRejectedClaimException extends __BaseException {
|
|
618
|
+
readonly name: "IDPRejectedClaimException";
|
|
619
|
+
readonly $fault: "client";
|
|
620
|
+
/**
|
|
621
|
+
* @internal
|
|
622
|
+
*/
|
|
623
|
+
constructor(opts: __ExceptionOptionType<IDPRejectedClaimException, __BaseException>);
|
|
608
624
|
}
|
|
609
625
|
/**
|
|
610
626
|
* <p>The web identity token that was passed could not be validated by Amazon Web Services. Get a new
|
|
611
627
|
* identity token from the identity provider and then retry the request.</p>
|
|
612
628
|
*/
|
|
613
|
-
export
|
|
614
|
-
name: "InvalidIdentityTokenException";
|
|
615
|
-
$fault: "client";
|
|
616
|
-
|
|
629
|
+
export declare class InvalidIdentityTokenException extends __BaseException {
|
|
630
|
+
readonly name: "InvalidIdentityTokenException";
|
|
631
|
+
readonly $fault: "client";
|
|
632
|
+
/**
|
|
633
|
+
* @internal
|
|
634
|
+
*/
|
|
635
|
+
constructor(opts: __ExceptionOptionType<InvalidIdentityTokenException, __BaseException>);
|
|
617
636
|
}
|
|
618
637
|
export interface AssumeRoleWithWebIdentityRequest {
|
|
619
638
|
/**
|
|
@@ -813,10 +832,13 @@ export declare namespace AssumeRoleWithWebIdentityResponse {
|
|
|
813
832
|
* times so that you don't exceed the request rate. If the error persists, the
|
|
814
833
|
* identity provider might be down or not responding.</p>
|
|
815
834
|
*/
|
|
816
|
-
export
|
|
817
|
-
name: "IDPCommunicationErrorException";
|
|
818
|
-
$fault: "client";
|
|
819
|
-
|
|
835
|
+
export declare class IDPCommunicationErrorException extends __BaseException {
|
|
836
|
+
readonly name: "IDPCommunicationErrorException";
|
|
837
|
+
readonly $fault: "client";
|
|
838
|
+
/**
|
|
839
|
+
* @internal
|
|
840
|
+
*/
|
|
841
|
+
constructor(opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>);
|
|
820
842
|
}
|
|
821
843
|
export interface DecodeAuthorizationMessageRequest {
|
|
822
844
|
/**
|
|
@@ -851,10 +873,13 @@ export declare namespace DecodeAuthorizationMessageResponse {
|
|
|
851
873
|
* was invalid. This can happen if the token contains invalid characters, such as
|
|
852
874
|
* linebreaks. </p>
|
|
853
875
|
*/
|
|
854
|
-
export
|
|
855
|
-
name: "InvalidAuthorizationMessageException";
|
|
856
|
-
$fault: "client";
|
|
857
|
-
|
|
876
|
+
export declare class InvalidAuthorizationMessageException extends __BaseException {
|
|
877
|
+
readonly name: "InvalidAuthorizationMessageException";
|
|
878
|
+
readonly $fault: "client";
|
|
879
|
+
/**
|
|
880
|
+
* @internal
|
|
881
|
+
*/
|
|
882
|
+
constructor(opts: __ExceptionOptionType<InvalidAuthorizationMessageException, __BaseException>);
|
|
858
883
|
}
|
|
859
884
|
export interface GetAccessKeyInfoRequest {
|
|
860
885
|
/**
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
|
|
12
|
+
export declare class STS extends STSClient {
|
|
13
|
+
|
|
14
|
+
assumeRole(args: AssumeRoleCommandInput, options?: __HttpHandlerOptions): Promise<AssumeRoleCommandOutput>;
|
|
15
|
+
assumeRole(args: AssumeRoleCommandInput, cb: (err: any, data?: AssumeRoleCommandOutput) => void): void;
|
|
16
|
+
assumeRole(args: AssumeRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeRoleCommandOutput) => void): void;
|
|
17
|
+
|
|
18
|
+
assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, options?: __HttpHandlerOptions): Promise<AssumeRoleWithSAMLCommandOutput>;
|
|
19
|
+
assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, cb: (err: any, data?: AssumeRoleWithSAMLCommandOutput) => void): void;
|
|
20
|
+
assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeRoleWithSAMLCommandOutput) => void): void;
|
|
21
|
+
|
|
22
|
+
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options?: __HttpHandlerOptions): Promise<AssumeRoleWithWebIdentityCommandOutput>;
|
|
23
|
+
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void): void;
|
|
24
|
+
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void): void;
|
|
25
|
+
|
|
26
|
+
decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, options?: __HttpHandlerOptions): Promise<DecodeAuthorizationMessageCommandOutput>;
|
|
27
|
+
decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, cb: (err: any, data?: DecodeAuthorizationMessageCommandOutput) => void): void;
|
|
28
|
+
decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DecodeAuthorizationMessageCommandOutput) => void): void;
|
|
29
|
+
|
|
30
|
+
getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, options?: __HttpHandlerOptions): Promise<GetAccessKeyInfoCommandOutput>;
|
|
31
|
+
getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, cb: (err: any, data?: GetAccessKeyInfoCommandOutput) => void): void;
|
|
32
|
+
getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccessKeyInfoCommandOutput) => void): void;
|
|
33
|
+
|
|
34
|
+
getCallerIdentity(args: GetCallerIdentityCommandInput, options?: __HttpHandlerOptions): Promise<GetCallerIdentityCommandOutput>;
|
|
35
|
+
getCallerIdentity(args: GetCallerIdentityCommandInput, cb: (err: any, data?: GetCallerIdentityCommandOutput) => void): void;
|
|
36
|
+
getCallerIdentity(args: GetCallerIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCallerIdentityCommandOutput) => void): void;
|
|
37
|
+
|
|
38
|
+
getFederationToken(args: GetFederationTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetFederationTokenCommandOutput>;
|
|
39
|
+
getFederationToken(args: GetFederationTokenCommandInput, cb: (err: any, data?: GetFederationTokenCommandOutput) => void): void;
|
|
40
|
+
getFederationToken(args: GetFederationTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFederationTokenCommandOutput) => void): void;
|
|
41
|
+
|
|
42
|
+
getSessionToken(args: GetSessionTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionTokenCommandOutput>;
|
|
43
|
+
getSessionToken(args: GetSessionTokenCommandInput, cb: (err: any, data?: GetSessionTokenCommandOutput) => void): void;
|
|
44
|
+
getSessionToken(args: GetSessionTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionTokenCommandOutput) => void): void;
|
|
45
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { StsAuthInputConfig, StsAuthResolvedConfig } from "@aws-sdk/middleware-sdk-sts";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
10
|
+
import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
|
|
11
|
+
import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
12
|
+
import { DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput } from "./commands/DecodeAuthorizationMessageCommand";
|
|
13
|
+
import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand";
|
|
14
|
+
import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
|
|
15
|
+
import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
|
|
16
|
+
import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
|
|
17
|
+
export declare type ServiceInputTypes = AssumeRoleCommandInput | AssumeRoleWithSAMLCommandInput | AssumeRoleWithWebIdentityCommandInput | DecodeAuthorizationMessageCommandInput | GetAccessKeyInfoCommandInput | GetCallerIdentityCommandInput | GetFederationTokenCommandInput | GetSessionTokenCommandInput;
|
|
18
|
+
export declare type ServiceOutputTypes = AssumeRoleCommandOutput | AssumeRoleWithSAMLCommandOutput | AssumeRoleWithWebIdentityCommandOutput | DecodeAuthorizationMessageCommandOutput | GetAccessKeyInfoCommandOutput | GetCallerIdentityCommandOutput | GetFederationTokenCommandOutput | GetSessionTokenCommandOutput;
|
|
19
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
20
|
+
|
|
21
|
+
requestHandler?: __HttpHandler;
|
|
22
|
+
|
|
23
|
+
sha256?: __HashConstructor;
|
|
24
|
+
|
|
25
|
+
urlParser?: __UrlParser;
|
|
26
|
+
|
|
27
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
28
|
+
|
|
29
|
+
streamCollector?: __StreamCollector;
|
|
30
|
+
|
|
31
|
+
base64Decoder?: __Decoder;
|
|
32
|
+
|
|
33
|
+
base64Encoder?: __Encoder;
|
|
34
|
+
|
|
35
|
+
utf8Decoder?: __Decoder;
|
|
36
|
+
|
|
37
|
+
utf8Encoder?: __Encoder;
|
|
38
|
+
|
|
39
|
+
runtime?: string;
|
|
40
|
+
|
|
41
|
+
disableHostPrefix?: boolean;
|
|
42
|
+
|
|
43
|
+
maxAttempts?: number | __Provider<number>;
|
|
44
|
+
|
|
45
|
+
retryMode?: string | __Provider<string>;
|
|
46
|
+
|
|
47
|
+
logger?: __Logger;
|
|
48
|
+
|
|
49
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
50
|
+
|
|
51
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
52
|
+
|
|
53
|
+
serviceId?: string;
|
|
54
|
+
|
|
55
|
+
region?: string | __Provider<string>;
|
|
56
|
+
|
|
57
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
58
|
+
|
|
59
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
60
|
+
|
|
61
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
62
|
+
|
|
63
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
64
|
+
}
|
|
65
|
+
declare type STSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & StsAuthInputConfig & UserAgentInputConfig;
|
|
66
|
+
|
|
67
|
+
export interface STSClientConfig extends STSClientConfigType {
|
|
68
|
+
}
|
|
69
|
+
declare type STSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & StsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
70
|
+
|
|
71
|
+
export interface STSClientResolvedConfig extends STSClientResolvedConfigType {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export declare class STSClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig> {
|
|
75
|
+
|
|
76
|
+
readonly config: STSClientResolvedConfig;
|
|
77
|
+
constructor(configuration: STSClientConfig);
|
|
78
|
+
|
|
79
|
+
destroy(): void;
|
|
80
|
+
}
|
|
81
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AssumeRoleRequest, AssumeRoleResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
|
+
export interface AssumeRoleCommandInput extends AssumeRoleRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class AssumeRoleCommand extends $Command<AssumeRoleCommandInput, AssumeRoleCommandOutput, STSClientResolvedConfig> {
|
|
11
|
+
readonly input: AssumeRoleCommandInput;
|
|
12
|
+
constructor(input: AssumeRoleCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssumeRoleCommandInput, AssumeRoleCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AssumeRoleWithSAMLRequest, AssumeRoleWithSAMLResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
|
+
export interface AssumeRoleWithSAMLCommandInput extends AssumeRoleWithSAMLRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface AssumeRoleWithSAMLCommandOutput extends AssumeRoleWithSAMLResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class AssumeRoleWithSAMLCommand extends $Command<AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput, STSClientResolvedConfig> {
|
|
11
|
+
readonly input: AssumeRoleWithSAMLCommandInput;
|
|
12
|
+
constructor(input: AssumeRoleWithSAMLCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AssumeRoleWithWebIdentityRequest, AssumeRoleWithWebIdentityResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
|
+
export interface AssumeRoleWithWebIdentityCommandInput extends AssumeRoleWithWebIdentityRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWebIdentityResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class AssumeRoleWithWebIdentityCommand extends $Command<AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput, STSClientResolvedConfig> {
|
|
11
|
+
readonly input: AssumeRoleWithWebIdentityCommandInput;
|
|
12
|
+
constructor(input: AssumeRoleWithWebIdentityCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { DecodeAuthorizationMessageRequest, DecodeAuthorizationMessageResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
|
+
export interface DecodeAuthorizationMessageCommandInput extends DecodeAuthorizationMessageRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DecodeAuthorizationMessageCommandOutput extends DecodeAuthorizationMessageResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class DecodeAuthorizationMessageCommand extends $Command<DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput, STSClientResolvedConfig> {
|
|
11
|
+
readonly input: DecodeAuthorizationMessageCommandInput;
|
|
12
|
+
constructor(input: DecodeAuthorizationMessageCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetAccessKeyInfoRequest, GetAccessKeyInfoResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
|
+
export interface GetAccessKeyInfoCommandInput extends GetAccessKeyInfoRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetAccessKeyInfoCommandOutput extends GetAccessKeyInfoResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class GetAccessKeyInfoCommand extends $Command<GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput, STSClientResolvedConfig> {
|
|
11
|
+
readonly input: GetAccessKeyInfoCommandInput;
|
|
12
|
+
constructor(input: GetAccessKeyInfoCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetCallerIdentityRequest, GetCallerIdentityResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
|
+
export interface GetCallerIdentityCommandInput extends GetCallerIdentityRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetCallerIdentityCommandOutput extends GetCallerIdentityResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class GetCallerIdentityCommand extends $Command<GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput, STSClientResolvedConfig> {
|
|
11
|
+
readonly input: GetCallerIdentityCommandInput;
|
|
12
|
+
constructor(input: GetCallerIdentityCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetFederationTokenRequest, GetFederationTokenResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
|
+
export interface GetFederationTokenCommandInput extends GetFederationTokenRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetFederationTokenCommandOutput extends GetFederationTokenResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class GetFederationTokenCommand extends $Command<GetFederationTokenCommandInput, GetFederationTokenCommandOutput, STSClientResolvedConfig> {
|
|
11
|
+
readonly input: GetFederationTokenCommandInput;
|
|
12
|
+
constructor(input: GetFederationTokenCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetFederationTokenCommandInput, GetFederationTokenCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetSessionTokenRequest, GetSessionTokenResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
|
5
|
+
export interface GetSessionTokenCommandInput extends GetSessionTokenRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetSessionTokenCommandOutput extends GetSessionTokenResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class GetSessionTokenCommand extends $Command<GetSessionTokenCommandInput, GetSessionTokenCommandOutput, STSClientResolvedConfig> {
|
|
11
|
+
readonly input: GetSessionTokenCommandInput;
|
|
12
|
+
constructor(input: GetSessionTokenCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSessionTokenCommandInput, GetSessionTokenCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./AssumeRoleCommand";
|
|
2
|
+
export * from "./AssumeRoleWithSAMLCommand";
|
|
3
|
+
export * from "./AssumeRoleWithWebIdentityCommand";
|
|
4
|
+
export * from "./DecodeAuthorizationMessageCommand";
|
|
5
|
+
export * from "./GetAccessKeyInfoCommand";
|
|
6
|
+
export * from "./GetCallerIdentityCommand";
|
|
7
|
+
export * from "./GetFederationTokenCommand";
|
|
8
|
+
export * from "./GetSessionTokenCommand";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefaultCredentialProvider, RoleAssumer, RoleAssumerWithWebIdentity } from "./defaultStsRoleAssumers";
|
|
2
|
+
import { STSClientConfig } from "./STSClient";
|
|
3
|
+
|
|
4
|
+
export declare const getDefaultRoleAssumer: (stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">) => RoleAssumer;
|
|
5
|
+
|
|
6
|
+
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">) => RoleAssumerWithWebIdentity;
|
|
7
|
+
|
|
8
|
+
export declare const decorateDefaultCredentialProvider: (provider: DefaultCredentialProvider) => DefaultCredentialProvider;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Credentials, Provider } from "@aws-sdk/types";
|
|
2
|
+
import { AssumeRoleCommandInput } from "./commands/AssumeRoleCommand";
|
|
3
|
+
import { AssumeRoleWithWebIdentityCommandInput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
4
|
+
import { STSClient, STSClientConfig } from "./STSClient";
|
|
5
|
+
|
|
6
|
+
export declare type RoleAssumer = (sourceCreds: Credentials, params: AssumeRoleCommandInput) => Promise<Credentials>;
|
|
7
|
+
|
|
8
|
+
export declare const getDefaultRoleAssumer: (stsOptions: Pick<STSClientConfig, "logger" | "region" | "requestHandler">, stsClientCtor: new (options: STSClientConfig) => STSClient) => RoleAssumer;
|
|
9
|
+
|
|
10
|
+
export declare type RoleAssumerWithWebIdentity = (params: AssumeRoleWithWebIdentityCommandInput) => Promise<Credentials>;
|
|
11
|
+
|
|
12
|
+
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions: Pick<STSClientConfig, "logger" | "region" | "requestHandler">, stsClientCtor: new (options: STSClientConfig) => STSClient) => RoleAssumerWithWebIdentity;
|
|
13
|
+
|
|
14
|
+
export declare type DefaultCredentialProvider = (input: any) => Provider<Credentials>;
|
|
15
|
+
|
|
16
|
+
export declare const decorateDefaultCredentialProvider: (provider: DefaultCredentialProvider) => DefaultCredentialProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|