@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,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
- DefaultCredentialProvider,
4
- RoleAssumer,
5
- RoleAssumerWithWebIdentity,
6
- } from "./defaultStsRoleAssumers";
7
- import {
8
- ServiceInputTypes,
9
- ServiceOutputTypes,
10
- STSClientConfig,
11
- } from "./STSClient";
12
- export declare const getDefaultRoleAssumer: (
13
- stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">,
14
- stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]
15
- ) => RoleAssumer;
16
- export declare const getDefaultRoleAssumerWithWebIdentity: (
17
- stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">,
18
- stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]
19
- ) => RoleAssumerWithWebIdentity;
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
- export type RoleAssumer = (
6
- sourceCreds: Credentials,
7
- params: AssumeRoleCommandInput
8
- ) => Promise<Credentials>;
9
- export declare const getDefaultRoleAssumer: (
10
- stsOptions: Pick<STSClientConfig, "logger" | "region" | "requestHandler">,
11
- stsClientCtor: new (options: STSClientConfig) => STSClient
12
- ) => RoleAssumer;
13
- export type RoleAssumerWithWebIdentity = (
14
- params: AssumeRoleWithWebIdentityCommandInput
15
- ) => Promise<Credentials>;
16
- export declare const getDefaultRoleAssumerWithWebIdentity: (
17
- stsOptions: Pick<STSClientConfig, "logger" | "region" | "requestHandler">,
18
- stsClientCtor: new (options: STSClientConfig) => STSClient
19
- ) => RoleAssumerWithWebIdentity;
20
- export type DefaultCredentialProvider = (input: any) => Provider<Credentials>;
21
- export declare const decorateDefaultCredentialProvider: (
22
- provider: DefaultCredentialProvider
23
- ) => DefaultCredentialProvider;
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
- EndpointParameters as __EndpointParameters,
3
- EndpointV2,
4
- } from "@aws-sdk/types";
5
- import { Endpoint, Provider } from "@smithy/types";
6
- export interface ClientInputEndpointParameters {
7
- region?: string | Provider<string>;
8
- useDualstackEndpoint?: boolean | Provider<boolean>;
9
- useFipsEndpoint?: boolean | Provider<boolean>;
10
- endpoint?:
11
- | string
12
- | Provider<string>
13
- | Endpoint
14
- | Provider<Endpoint>
15
- | EndpointV2
16
- | Provider<EndpointV2>;
17
- useGlobalEndpoint?: boolean | Provider<boolean>;
18
- }
19
- export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
20
- defaultSigningName: string;
21
- };
22
- export declare const resolveClientEndpointParameters: <T>(
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
- endpointParams: EndpointParameters,
5
- context?: {
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
- ServiceException as __ServiceException,
3
- ServiceExceptionOptions as __ServiceExceptionOptions,
4
- } from "@aws-sdk/smithy-client";
5
- export declare class STSServiceException extends __ServiceException {
6
- constructor(options: __ServiceExceptionOptions);
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";