@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.
- package/CHANGELOG.md +3735 -0
- package/dist-types/ts3.4/STS.d.ts +69 -141
- package/dist-types/ts3.4/STSClient.d.ts +173 -161
- 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 -34
- 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 -201
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +74 -101
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +43 -98
- package/dist-types/ts3.4/runtimeConfig.d.ts +43 -93
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +42 -89
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -18
- package/package.json +2 -2
|
@@ -1,8 +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";
|
|
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";
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { Pluggable } from "@aws-sdk/types";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare const decorateDefaultCredentialProvider: (
|
|
21
|
-
provider: DefaultCredentialProvider
|
|
22
|
-
) => DefaultCredentialProvider;
|
|
1
|
+
import { Pluggable } from "@aws-sdk/types";
|
|
2
|
+
import { DefaultCredentialProvider, RoleAssumer, RoleAssumerWithWebIdentity } from "./defaultStsRoleAssumers";
|
|
3
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientConfig } from "./STSClient";
|
|
4
|
+
/**
|
|
5
|
+
* The default role assumer that used by credential providers when sts:AssumeRole API is needed.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getDefaultRoleAssumer: (stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">, stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]) => RoleAssumer;
|
|
8
|
+
/**
|
|
9
|
+
* The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed.
|
|
10
|
+
*/
|
|
11
|
+
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">, stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]) => RoleAssumerWithWebIdentity;
|
|
12
|
+
/**
|
|
13
|
+
* The default credential providers depend STS client to assume role with desired API: sts:assumeRole,
|
|
14
|
+
* sts:assumeRoleWithWebIdentity, etc. This function decorates the default credential provider with role assumers which
|
|
15
|
+
* encapsulates the process of calling STS commands. This can only be imported by AWS client packages to avoid circular
|
|
16
|
+
* dependencies.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare const decorateDefaultCredentialProvider: (provider: DefaultCredentialProvider) => DefaultCredentialProvider;
|
|
@@ -1,23 +1,35 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
) => Promise<Credentials>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export type RoleAssumer = (sourceCreds: Credentials, params: AssumeRoleCommandInput) => Promise<Credentials>;
|
|
9
|
+
/**
|
|
10
|
+
* The default role assumer that used by credential providers when sts:AssumeRole API is needed.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const getDefaultRoleAssumer: (stsOptions: Pick<STSClientConfig, "logger" | "region" | "requestHandler">, stsClientCtor: new (options: STSClientConfig) => STSClient) => RoleAssumer;
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type RoleAssumerWithWebIdentity = (params: AssumeRoleWithWebIdentityCommandInput) => Promise<Credentials>;
|
|
18
|
+
/**
|
|
19
|
+
* The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed.
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions: Pick<STSClientConfig, "logger" | "region" | "requestHandler">, stsClientCtor: new (options: STSClientConfig) => STSClient) => RoleAssumerWithWebIdentity;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export type DefaultCredentialProvider = (input: any) => Provider<Credentials>;
|
|
27
|
+
/**
|
|
28
|
+
* The default credential providers depend STS client to assume role with desired API: sts:assumeRole,
|
|
29
|
+
* sts:assumeRoleWithWebIdentity, etc. This function decorates the default credential provider with role assumers which
|
|
30
|
+
* encapsulates the process of calling STS commands. This can only be imported by AWS client packages to avoid circular
|
|
31
|
+
* dependencies.
|
|
32
|
+
*
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export declare const decorateDefaultCredentialProvider: (provider: DefaultCredentialProvider) => DefaultCredentialProvider;
|
|
@@ -1,34 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
options: T & ClientInputEndpointParameters
|
|
24
|
-
) => T &
|
|
25
|
-
ClientInputEndpointParameters & {
|
|
26
|
-
defaultSigningName: string;
|
|
27
|
-
};
|
|
28
|
-
export interface EndpointParameters extends __EndpointParameters {
|
|
29
|
-
Region?: string;
|
|
30
|
-
UseDualStack?: boolean;
|
|
31
|
-
UseFIPS?: boolean;
|
|
32
|
-
Endpoint?: string;
|
|
33
|
-
UseGlobalEndpoint?: boolean;
|
|
34
|
-
}
|
|
1
|
+
import { EndpointParameters as __EndpointParameters, EndpointV2 } from "@aws-sdk/types";
|
|
2
|
+
import { Endpoint, Provider } from "@smithy/types";
|
|
3
|
+
export interface ClientInputEndpointParameters {
|
|
4
|
+
region?: string | Provider<string>;
|
|
5
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
6
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
7
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
8
|
+
useGlobalEndpoint?: boolean | Provider<boolean>;
|
|
9
|
+
}
|
|
10
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
11
|
+
defaultSigningName: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
14
|
+
defaultSigningName: string;
|
|
15
|
+
};
|
|
16
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
17
|
+
Region?: string;
|
|
18
|
+
UseDualStack?: boolean;
|
|
19
|
+
UseFIPS?: boolean;
|
|
20
|
+
Endpoint?: string;
|
|
21
|
+
UseGlobalEndpoint?: boolean;
|
|
22
|
+
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { EndpointV2, Logger } from "@aws-sdk/types";
|
|
2
|
-
import { EndpointParameters } from "./EndpointParameters";
|
|
3
|
-
export declare const defaultEndpointResolver: (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
logger?: Logger;
|
|
7
|
-
}
|
|
8
|
-
) => EndpointV2;
|
|
1
|
+
import { EndpointV2, Logger } from "@aws-sdk/types";
|
|
2
|
+
import { EndpointParameters } from "./EndpointParameters";
|
|
3
|
+
export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
|
|
4
|
+
logger?: Logger;
|
|
5
|
+
}) => EndpointV2;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RuleSetObject } from "@aws-sdk/util-endpoints";
|
|
2
|
-
export declare const ruleSet: RuleSetObject;
|
|
1
|
+
import { RuleSetObject } from "@aws-sdk/util-endpoints";
|
|
2
|
+
export declare const ruleSet: RuleSetObject;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./STS";
|
|
2
|
-
export * from "./STSClient";
|
|
3
|
-
export * from "./commands";
|
|
4
|
-
export * from "./defaultRoleAssumers";
|
|
5
|
-
export * from "./models";
|
|
6
|
-
export { STSServiceException } from "./models/STSServiceException";
|
|
1
|
+
export * from "./STS";
|
|
2
|
+
export * from "./STSClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./defaultRoleAssumers";
|
|
5
|
+
export * from "./models";
|
|
6
|
+
export { STSServiceException } from "./models/STSServiceException";
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*
|
|
5
|
+
* Base exception class for all service exceptions from STS service.
|
|
6
|
+
*/
|
|
7
|
+
export declare class STSServiceException extends __ServiceException {
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
constructor(options: __ServiceExceptionOptions);
|
|
12
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
1
|
+
export * from "./models_0";
|