@effect-aws/client-sts 1.9.5 → 1.10.2
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/cjs/Errors.d.ts +3 -3
- package/dist/cjs/Errors.d.ts.map +1 -1
- package/dist/cjs/Errors.js +1 -3
- package/dist/cjs/Errors.js.map +1 -1
- package/dist/cjs/STSService.d.ts +13 -12
- package/dist/cjs/STSService.d.ts.map +1 -1
- package/dist/cjs/STSService.js +1 -1
- package/dist/cjs/STSService.js.map +1 -1
- package/dist/dts/Errors.d.ts +3 -3
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/dts/STSService.d.ts +13 -12
- package/dist/dts/STSService.d.ts.map +1 -1
- package/dist/esm/Errors.js +0 -2
- package/dist/esm/Errors.js.map +1 -1
- package/dist/esm/STSService.js +1 -1
- package/dist/esm/STSService.js.map +1 -1
- package/package.json +2 -2
- package/src/Errors.ts +1 -4
- package/src/STSService.ts +18 -9
package/dist/cjs/Errors.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException } from "@aws-sdk/client-sts";
|
|
2
2
|
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
3
|
export declare const AllServiceErrors: readonly ["ExpiredTokenException", "IDPCommunicationErrorException", "IDPRejectedClaimException", "InvalidAuthorizationMessageException", "InvalidIdentityTokenException", "MalformedPolicyDocumentException", "PackedPolicyTooLargeException", "RegionDisabledException"];
|
|
5
4
|
export type ExpiredTokenError = TaggedException<ExpiredTokenException>;
|
|
6
5
|
export type IDPCommunicationError = TaggedException<IDPCommunicationErrorException>;
|
|
@@ -10,6 +9,7 @@ export type InvalidIdentityTokenError = TaggedException<InvalidIdentityTokenExce
|
|
|
10
9
|
export type MalformedPolicyDocumentError = TaggedException<MalformedPolicyDocumentException>;
|
|
11
10
|
export type PackedPolicyTooLargeError = TaggedException<PackedPolicyTooLargeException>;
|
|
12
11
|
export type RegionDisabledError = TaggedException<RegionDisabledException>;
|
|
13
|
-
export type SdkError =
|
|
14
|
-
|
|
12
|
+
export type SdkError = TaggedException<Error & {
|
|
13
|
+
name: "SdkError";
|
|
14
|
+
}>;
|
|
15
15
|
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,8BAA8B,EAC9B,yBAAyB,EACzB,oCAAoC,EACpC,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,8BAA8B,EAC9B,yBAAyB,EACzB,oCAAoC,EACpC,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,4QASnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,8BAA8B,CAAC,CAAC;AACpF,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,gCAAgC,GAAG,eAAe,CAAC,oCAAoC,CAAC,CAAC;AACrG,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,4BAA4B,GAAG,eAAe,CAAC,gCAAgC,CAAC,CAAC;AAC7F,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const commons_1 = require("@effect-aws/commons");
|
|
3
|
+
exports.AllServiceErrors = void 0;
|
|
5
4
|
exports.AllServiceErrors = [
|
|
6
5
|
"ExpiredTokenException",
|
|
7
6
|
"IDPCommunicationErrorException",
|
|
@@ -12,5 +11,4 @@ exports.AllServiceErrors = [
|
|
|
12
11
|
"PackedPolicyTooLargeException",
|
|
13
12
|
"RegionDisabledException",
|
|
14
13
|
];
|
|
15
|
-
exports.SdkError = commons_1.SdkError;
|
|
16
14
|
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAYa,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,gCAAgC;IAChC,2BAA2B;IAC3B,sCAAsC;IACtC,+BAA+B;IAC/B,kCAAkC;IAClC,+BAA+B;IAC/B,yBAAyB;CACjB,CAAC"}
|
package/dist/cjs/STSService.d.ts
CHANGED
|
@@ -2,48 +2,49 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { type AssumeRoleCommandInput, type AssumeRoleCommandOutput, type AssumeRoleWithSAMLCommandInput, type AssumeRoleWithSAMLCommandOutput, type AssumeRoleWithWebIdentityCommandInput, type AssumeRoleWithWebIdentityCommandOutput, type AssumeRootCommandInput, type AssumeRootCommandOutput, type DecodeAuthorizationMessageCommandInput, type DecodeAuthorizationMessageCommandOutput, type GetAccessKeyInfoCommandInput, type GetAccessKeyInfoCommandOutput, type GetCallerIdentityCommandInput, type GetCallerIdentityCommandOutput, type GetFederationTokenCommandInput, type GetFederationTokenCommandOutput, type GetSessionTokenCommandInput, type GetSessionTokenCommandOutput, type STSClient, type STSClientConfig } from "@aws-sdk/client-sts";
|
|
5
|
-
import type { HttpHandlerOptions,
|
|
5
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
|
-
import type { ExpiredTokenError, IDPCommunicationError, IDPRejectedClaimError, InvalidAuthorizationMessageError, InvalidIdentityTokenError, MalformedPolicyDocumentError, PackedPolicyTooLargeError, RegionDisabledError } from "./Errors.js";
|
|
8
|
+
import type { ExpiredTokenError, IDPCommunicationError, IDPRejectedClaimError, InvalidAuthorizationMessageError, InvalidIdentityTokenError, MalformedPolicyDocumentError, PackedPolicyTooLargeError, RegionDisabledError, SdkError } from "./Errors.js";
|
|
8
9
|
import * as Instance from "./STSClientInstance.js";
|
|
9
10
|
interface STSService$ {
|
|
10
11
|
readonly _: unique symbol;
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link AssumeRoleCommand}
|
|
13
14
|
*/
|
|
14
|
-
assumeRole(args: AssumeRoleCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleCommandOutput, SdkError | ExpiredTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
15
|
+
assumeRole(args: AssumeRoleCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleCommandOutput, Cause.TimeoutException | SdkError | ExpiredTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link AssumeRoleWithSAMLCommand}
|
|
17
18
|
*/
|
|
18
|
-
assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleWithSAMLCommandOutput, SdkError | ExpiredTokenError | IDPRejectedClaimError | InvalidIdentityTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
19
|
+
assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleWithSAMLCommandOutput, Cause.TimeoutException | SdkError | ExpiredTokenError | IDPRejectedClaimError | InvalidIdentityTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link AssumeRoleWithWebIdentityCommand}
|
|
21
22
|
*/
|
|
22
|
-
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleWithWebIdentityCommandOutput, SdkError | ExpiredTokenError | IDPCommunicationError | IDPRejectedClaimError | InvalidIdentityTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
23
|
+
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleWithWebIdentityCommandOutput, Cause.TimeoutException | SdkError | ExpiredTokenError | IDPCommunicationError | IDPRejectedClaimError | InvalidIdentityTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
23
24
|
/**
|
|
24
25
|
* @see {@link AssumeRootCommand}
|
|
25
26
|
*/
|
|
26
|
-
assumeRoot(args: AssumeRootCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRootCommandOutput, SdkError | ExpiredTokenError | RegionDisabledError>;
|
|
27
|
+
assumeRoot(args: AssumeRootCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRootCommandOutput, Cause.TimeoutException | SdkError | ExpiredTokenError | RegionDisabledError>;
|
|
27
28
|
/**
|
|
28
29
|
* @see {@link DecodeAuthorizationMessageCommand}
|
|
29
30
|
*/
|
|
30
|
-
decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DecodeAuthorizationMessageCommandOutput, SdkError | InvalidAuthorizationMessageError>;
|
|
31
|
+
decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DecodeAuthorizationMessageCommandOutput, Cause.TimeoutException | SdkError | InvalidAuthorizationMessageError>;
|
|
31
32
|
/**
|
|
32
33
|
* @see {@link GetAccessKeyInfoCommand}
|
|
33
34
|
*/
|
|
34
|
-
getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccessKeyInfoCommandOutput, SdkError>;
|
|
35
|
+
getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccessKeyInfoCommandOutput, Cause.TimeoutException | SdkError>;
|
|
35
36
|
/**
|
|
36
37
|
* @see {@link GetCallerIdentityCommand}
|
|
37
38
|
*/
|
|
38
|
-
getCallerIdentity(args: GetCallerIdentityCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetCallerIdentityCommandOutput, SdkError>;
|
|
39
|
+
getCallerIdentity(args: GetCallerIdentityCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetCallerIdentityCommandOutput, Cause.TimeoutException | SdkError>;
|
|
39
40
|
/**
|
|
40
41
|
* @see {@link GetFederationTokenCommand}
|
|
41
42
|
*/
|
|
42
|
-
getFederationToken(args: GetFederationTokenCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetFederationTokenCommandOutput, SdkError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
43
|
+
getFederationToken(args: GetFederationTokenCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetFederationTokenCommandOutput, Cause.TimeoutException | SdkError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
43
44
|
/**
|
|
44
45
|
* @see {@link GetSessionTokenCommand}
|
|
45
46
|
*/
|
|
46
|
-
getSessionToken(args: GetSessionTokenCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSessionTokenCommandOutput, SdkError | RegionDisabledError>;
|
|
47
|
+
getSessionToken(args: GetSessionTokenCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSessionTokenCommandOutput, Cause.TimeoutException | SdkError | RegionDisabledError>;
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
49
50
|
* @since 1.0.0
|
|
@@ -51,7 +52,7 @@ interface STSService$ {
|
|
|
51
52
|
*/
|
|
52
53
|
export declare const makeSTSService: Effect.Effect<STSService$, never, Instance.STSClientInstance>;
|
|
53
54
|
declare const STSService_base: import("effect/Context").TagClass<STSService, "@effect-aws/client-sts/STSService", STSService$> & Effect.Tag.Proxy<STSService, STSService$> & {
|
|
54
|
-
use: <X>(body: (_: STSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, STSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
55
|
+
use: <X>(body: (_: STSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, STSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, STSService> : Effect.Effect<X, never, STSService>;
|
|
55
56
|
};
|
|
56
57
|
/**
|
|
57
58
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"STSService.d.ts","sourceRoot":"","sources":["../../src/STSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,sCAAsC,EAC3C,KAAK,uCAAuC,EAE5C,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"STSService.d.ts","sourceRoot":"","sources":["../../src/STSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,sCAAsC,EAC3C,KAAK,uCAAuC,EAE5C,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,KAAK,EAAE,K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CAAC,QAAQ,CAAC,KAAK,WAAY,WAAW,MAAM,2CAI9C;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,eAAe,KAAK,SAAS,2CASrD;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC;QAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
package/dist/cjs/STSService.js
CHANGED
|
@@ -50,7 +50,7 @@ const commands = {
|
|
|
50
50
|
*/
|
|
51
51
|
exports.makeSTSService = effect_1.Effect.gen(function* () {
|
|
52
52
|
const client = yield* Instance.STSClientInstance;
|
|
53
|
-
return commons_1.Service.fromClientAndCommands(client, commands, {
|
|
53
|
+
return yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
54
54
|
errorTags: Errors_js_1.AllServiceErrors,
|
|
55
55
|
resolveClientConfig: STSServiceConfig.toSTSClientConfig,
|
|
56
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"STSService.js","sourceRoot":"","sources":["../../src/STSService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDA8B6B;AAE7B,iDAA8C;
|
|
1
|
+
{"version":3,"file":"STSService.js","sourceRoot":"","sources":["../../src/STSService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDA8B6B;AAE7B,iDAA8C;AAE9C,mCAAuC;AAYvC,2CAA+C;AAC/C,iEAAmD;AACnD,wEAA0D;AAE1D,MAAM,QAAQ,GAAG;IACf,iBAAiB,EAAjB,8BAAiB;IACjB,yBAAyB,EAAzB,sCAAyB;IACzB,gCAAgC,EAAhC,6CAAgC;IAChC,iBAAiB,EAAjB,8BAAiB;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,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CACzD,CACF,CACF,CAAC;;AApBN,gCAqBC"}
|
package/dist/dts/Errors.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException } from "@aws-sdk/client-sts";
|
|
2
2
|
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
3
|
export declare const AllServiceErrors: readonly ["ExpiredTokenException", "IDPCommunicationErrorException", "IDPRejectedClaimException", "InvalidAuthorizationMessageException", "InvalidIdentityTokenException", "MalformedPolicyDocumentException", "PackedPolicyTooLargeException", "RegionDisabledException"];
|
|
5
4
|
export type ExpiredTokenError = TaggedException<ExpiredTokenException>;
|
|
6
5
|
export type IDPCommunicationError = TaggedException<IDPCommunicationErrorException>;
|
|
@@ -10,6 +9,7 @@ export type InvalidIdentityTokenError = TaggedException<InvalidIdentityTokenExce
|
|
|
10
9
|
export type MalformedPolicyDocumentError = TaggedException<MalformedPolicyDocumentException>;
|
|
11
10
|
export type PackedPolicyTooLargeError = TaggedException<PackedPolicyTooLargeException>;
|
|
12
11
|
export type RegionDisabledError = TaggedException<RegionDisabledException>;
|
|
13
|
-
export type SdkError =
|
|
14
|
-
|
|
12
|
+
export type SdkError = TaggedException<Error & {
|
|
13
|
+
name: "SdkError";
|
|
14
|
+
}>;
|
|
15
15
|
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/dts/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,8BAA8B,EAC9B,yBAAyB,EACzB,oCAAoC,EACpC,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,8BAA8B,EAC9B,yBAAyB,EACzB,oCAAoC,EACpC,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,4QASnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,8BAA8B,CAAC,CAAC;AACpF,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,gCAAgC,GAAG,eAAe,CAAC,oCAAoC,CAAC,CAAC;AACrG,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,4BAA4B,GAAG,eAAe,CAAC,gCAAgC,CAAC,CAAC;AAC7F,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/dts/STSService.d.ts
CHANGED
|
@@ -2,48 +2,49 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { type AssumeRoleCommandInput, type AssumeRoleCommandOutput, type AssumeRoleWithSAMLCommandInput, type AssumeRoleWithSAMLCommandOutput, type AssumeRoleWithWebIdentityCommandInput, type AssumeRoleWithWebIdentityCommandOutput, type AssumeRootCommandInput, type AssumeRootCommandOutput, type DecodeAuthorizationMessageCommandInput, type DecodeAuthorizationMessageCommandOutput, type GetAccessKeyInfoCommandInput, type GetAccessKeyInfoCommandOutput, type GetCallerIdentityCommandInput, type GetCallerIdentityCommandOutput, type GetFederationTokenCommandInput, type GetFederationTokenCommandOutput, type GetSessionTokenCommandInput, type GetSessionTokenCommandOutput, type STSClient, type STSClientConfig } from "@aws-sdk/client-sts";
|
|
5
|
-
import type { HttpHandlerOptions,
|
|
5
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
|
-
import type { ExpiredTokenError, IDPCommunicationError, IDPRejectedClaimError, InvalidAuthorizationMessageError, InvalidIdentityTokenError, MalformedPolicyDocumentError, PackedPolicyTooLargeError, RegionDisabledError } from "./Errors.js";
|
|
8
|
+
import type { ExpiredTokenError, IDPCommunicationError, IDPRejectedClaimError, InvalidAuthorizationMessageError, InvalidIdentityTokenError, MalformedPolicyDocumentError, PackedPolicyTooLargeError, RegionDisabledError, SdkError } from "./Errors.js";
|
|
8
9
|
import * as Instance from "./STSClientInstance.js";
|
|
9
10
|
interface STSService$ {
|
|
10
11
|
readonly _: unique symbol;
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link AssumeRoleCommand}
|
|
13
14
|
*/
|
|
14
|
-
assumeRole(args: AssumeRoleCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleCommandOutput, SdkError | ExpiredTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
15
|
+
assumeRole(args: AssumeRoleCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleCommandOutput, Cause.TimeoutException | SdkError | ExpiredTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link AssumeRoleWithSAMLCommand}
|
|
17
18
|
*/
|
|
18
|
-
assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleWithSAMLCommandOutput, SdkError | ExpiredTokenError | IDPRejectedClaimError | InvalidIdentityTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
19
|
+
assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleWithSAMLCommandOutput, Cause.TimeoutException | SdkError | ExpiredTokenError | IDPRejectedClaimError | InvalidIdentityTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link AssumeRoleWithWebIdentityCommand}
|
|
21
22
|
*/
|
|
22
|
-
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleWithWebIdentityCommandOutput, SdkError | ExpiredTokenError | IDPCommunicationError | IDPRejectedClaimError | InvalidIdentityTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
23
|
+
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRoleWithWebIdentityCommandOutput, Cause.TimeoutException | SdkError | ExpiredTokenError | IDPCommunicationError | IDPRejectedClaimError | InvalidIdentityTokenError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
23
24
|
/**
|
|
24
25
|
* @see {@link AssumeRootCommand}
|
|
25
26
|
*/
|
|
26
|
-
assumeRoot(args: AssumeRootCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRootCommandOutput, SdkError | ExpiredTokenError | RegionDisabledError>;
|
|
27
|
+
assumeRoot(args: AssumeRootCommandInput, options?: HttpHandlerOptions): Effect.Effect<AssumeRootCommandOutput, Cause.TimeoutException | SdkError | ExpiredTokenError | RegionDisabledError>;
|
|
27
28
|
/**
|
|
28
29
|
* @see {@link DecodeAuthorizationMessageCommand}
|
|
29
30
|
*/
|
|
30
|
-
decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DecodeAuthorizationMessageCommandOutput, SdkError | InvalidAuthorizationMessageError>;
|
|
31
|
+
decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DecodeAuthorizationMessageCommandOutput, Cause.TimeoutException | SdkError | InvalidAuthorizationMessageError>;
|
|
31
32
|
/**
|
|
32
33
|
* @see {@link GetAccessKeyInfoCommand}
|
|
33
34
|
*/
|
|
34
|
-
getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccessKeyInfoCommandOutput, SdkError>;
|
|
35
|
+
getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccessKeyInfoCommandOutput, Cause.TimeoutException | SdkError>;
|
|
35
36
|
/**
|
|
36
37
|
* @see {@link GetCallerIdentityCommand}
|
|
37
38
|
*/
|
|
38
|
-
getCallerIdentity(args: GetCallerIdentityCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetCallerIdentityCommandOutput, SdkError>;
|
|
39
|
+
getCallerIdentity(args: GetCallerIdentityCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetCallerIdentityCommandOutput, Cause.TimeoutException | SdkError>;
|
|
39
40
|
/**
|
|
40
41
|
* @see {@link GetFederationTokenCommand}
|
|
41
42
|
*/
|
|
42
|
-
getFederationToken(args: GetFederationTokenCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetFederationTokenCommandOutput, SdkError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
43
|
+
getFederationToken(args: GetFederationTokenCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetFederationTokenCommandOutput, Cause.TimeoutException | SdkError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError>;
|
|
43
44
|
/**
|
|
44
45
|
* @see {@link GetSessionTokenCommand}
|
|
45
46
|
*/
|
|
46
|
-
getSessionToken(args: GetSessionTokenCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSessionTokenCommandOutput, SdkError | RegionDisabledError>;
|
|
47
|
+
getSessionToken(args: GetSessionTokenCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSessionTokenCommandOutput, Cause.TimeoutException | SdkError | RegionDisabledError>;
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
49
50
|
* @since 1.0.0
|
|
@@ -51,7 +52,7 @@ interface STSService$ {
|
|
|
51
52
|
*/
|
|
52
53
|
export declare const makeSTSService: Effect.Effect<STSService$, never, Instance.STSClientInstance>;
|
|
53
54
|
declare const STSService_base: import("effect/Context").TagClass<STSService, "@effect-aws/client-sts/STSService", STSService$> & Effect.Tag.Proxy<STSService, STSService$> & {
|
|
54
|
-
use: <X>(body: (_: STSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, STSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
55
|
+
use: <X>(body: (_: STSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, STSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, STSService> : Effect.Effect<X, never, STSService>;
|
|
55
56
|
};
|
|
56
57
|
/**
|
|
57
58
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"STSService.d.ts","sourceRoot":"","sources":["../../src/STSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,sBAAsB,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AAS,2CASrD;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC;QAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
package/dist/esm/Errors.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
2
1
|
export const AllServiceErrors = [
|
|
3
2
|
"ExpiredTokenException",
|
|
4
3
|
"IDPCommunicationErrorException",
|
|
@@ -9,5 +8,4 @@ export const AllServiceErrors = [
|
|
|
9
8
|
"PackedPolicyTooLargeException",
|
|
10
9
|
"RegionDisabledException",
|
|
11
10
|
];
|
|
12
|
-
export const SdkError = CommonSdkError;
|
|
13
11
|
//# sourceMappingURL=Errors.js.map
|
package/dist/esm/Errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,gCAAgC;IAChC,2BAA2B;IAC3B,sCAAsC;IACtC,+BAA+B;IAC/B,kCAAkC;IAClC,+BAA+B;IAC/B,yBAAyB;CACjB,CAAC"}
|
package/dist/esm/STSService.js
CHANGED
|
@@ -24,7 +24,7 @@ const commands = {
|
|
|
24
24
|
*/
|
|
25
25
|
export const makeSTSService = Effect.gen(function* () {
|
|
26
26
|
const client = yield* Instance.STSClientInstance;
|
|
27
|
-
return Service.fromClientAndCommands(client, commands, {
|
|
27
|
+
return yield* Service.fromClientAndCommands(client, commands, {
|
|
28
28
|
errorTags: AllServiceErrors,
|
|
29
29
|
resolveClientConfig: STSServiceConfig.toSTSClientConfig,
|
|
30
30
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"STSService.js","sourceRoot":"","sources":["../../src/STSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,iBAAiB,EAGjB,yBAAyB,EAGzB,gCAAgC,EAGhC,iBAAiB,EAGjB,iCAAiC,EAGjC,uBAAuB,EAGvB,wBAAwB,EAGxB,yBAAyB,EAGzB,sBAAsB,GAKvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"STSService.js","sourceRoot":"","sources":["../../src/STSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,iBAAiB,EAGjB,yBAAyB,EAGzB,gCAAgC,EAGhC,iBAAiB,EAGjB,iCAAiC,EAGjC,uBAAuB,EAGvB,wBAAwB,EAGxB,yBAAyB,EAGzB,sBAAsB,GAKvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAYvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D,MAAM,QAAQ,GAAG;IACf,iBAAiB;IACjB,yBAAyB;IACzB,gCAAgC;IAChC,iBAAiB;IACjB,iCAAiC;IACjC,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,sBAAsB;CACvB,CAAC;AA6HF;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAChD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IAEjD,OAAO,KAAK,CAAC,CAAC,OAAO,CAAC,qBAAqB,CACzC,MAAM,EACN,QAAQ,EACR;QACE,SAAS,EAAE,gBAAgB;QAC3B,mBAAmB,EAAE,gBAAgB,CAAC,iBAAiB;KACxD,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,OAAO,UAAW,SAAQ,MAAM,CAAC,GAAG,CAAC,mCAAmC,CAAC,EAG5E;IACD,MAAM,CAAU,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACtG,MAAM,CAAU,KAAK,GAAG,CAAC,MAAyB,EAAE,EAAE,CACpD,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,IAAI,CACrC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAC5D,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAuD,EACvD,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,IAAI,CACrC,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,iBAAiB,EAC1B,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CACzD,CACF,CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-sts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "Effectful AWS STS client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-sts",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-sts": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^0.3.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": ">=3.0.4 <4.0.0"
|
package/src/Errors.ts
CHANGED
|
@@ -9,7 +9,6 @@ import type {
|
|
|
9
9
|
RegionDisabledException,
|
|
10
10
|
} from "@aws-sdk/client-sts";
|
|
11
11
|
import type { TaggedException } from "@effect-aws/commons";
|
|
12
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
13
12
|
|
|
14
13
|
export const AllServiceErrors = [
|
|
15
14
|
"ExpiredTokenException",
|
|
@@ -30,6 +29,4 @@ export type InvalidIdentityTokenError = TaggedException<InvalidIdentityTokenExce
|
|
|
30
29
|
export type MalformedPolicyDocumentError = TaggedException<MalformedPolicyDocumentException>;
|
|
31
30
|
export type PackedPolicyTooLargeError = TaggedException<PackedPolicyTooLargeException>;
|
|
32
31
|
export type RegionDisabledError = TaggedException<RegionDisabledException>;
|
|
33
|
-
|
|
34
|
-
export type SdkError = CommonSdkError;
|
|
35
|
-
export const SdkError = CommonSdkError;
|
|
32
|
+
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
|
package/src/STSService.ts
CHANGED
|
@@ -32,8 +32,9 @@ import {
|
|
|
32
32
|
type STSClient,
|
|
33
33
|
type STSClientConfig,
|
|
34
34
|
} from "@aws-sdk/client-sts";
|
|
35
|
-
import type { HttpHandlerOptions,
|
|
35
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
36
36
|
import { Service } from "@effect-aws/commons";
|
|
37
|
+
import type { Cause } from "effect";
|
|
37
38
|
import { Effect, Layer } from "effect";
|
|
38
39
|
import type {
|
|
39
40
|
ExpiredTokenError,
|
|
@@ -44,6 +45,7 @@ import type {
|
|
|
44
45
|
MalformedPolicyDocumentError,
|
|
45
46
|
PackedPolicyTooLargeError,
|
|
46
47
|
RegionDisabledError,
|
|
48
|
+
SdkError,
|
|
47
49
|
} from "./Errors.js";
|
|
48
50
|
import { AllServiceErrors } from "./Errors.js";
|
|
49
51
|
import * as Instance from "./STSClientInstance.js";
|
|
@@ -72,7 +74,12 @@ interface STSService$ {
|
|
|
72
74
|
options?: HttpHandlerOptions,
|
|
73
75
|
): Effect.Effect<
|
|
74
76
|
AssumeRoleCommandOutput,
|
|
75
|
-
|
|
77
|
+
| Cause.TimeoutException
|
|
78
|
+
| SdkError
|
|
79
|
+
| ExpiredTokenError
|
|
80
|
+
| MalformedPolicyDocumentError
|
|
81
|
+
| PackedPolicyTooLargeError
|
|
82
|
+
| RegionDisabledError
|
|
76
83
|
>;
|
|
77
84
|
|
|
78
85
|
/**
|
|
@@ -83,6 +90,7 @@ interface STSService$ {
|
|
|
83
90
|
options?: HttpHandlerOptions,
|
|
84
91
|
): Effect.Effect<
|
|
85
92
|
AssumeRoleWithSAMLCommandOutput,
|
|
93
|
+
| Cause.TimeoutException
|
|
86
94
|
| SdkError
|
|
87
95
|
| ExpiredTokenError
|
|
88
96
|
| IDPRejectedClaimError
|
|
@@ -100,6 +108,7 @@ interface STSService$ {
|
|
|
100
108
|
options?: HttpHandlerOptions,
|
|
101
109
|
): Effect.Effect<
|
|
102
110
|
AssumeRoleWithWebIdentityCommandOutput,
|
|
111
|
+
| Cause.TimeoutException
|
|
103
112
|
| SdkError
|
|
104
113
|
| ExpiredTokenError
|
|
105
114
|
| IDPCommunicationError
|
|
@@ -118,7 +127,7 @@ interface STSService$ {
|
|
|
118
127
|
options?: HttpHandlerOptions,
|
|
119
128
|
): Effect.Effect<
|
|
120
129
|
AssumeRootCommandOutput,
|
|
121
|
-
SdkError | ExpiredTokenError | RegionDisabledError
|
|
130
|
+
Cause.TimeoutException | SdkError | ExpiredTokenError | RegionDisabledError
|
|
122
131
|
>;
|
|
123
132
|
|
|
124
133
|
/**
|
|
@@ -129,7 +138,7 @@ interface STSService$ {
|
|
|
129
138
|
options?: HttpHandlerOptions,
|
|
130
139
|
): Effect.Effect<
|
|
131
140
|
DecodeAuthorizationMessageCommandOutput,
|
|
132
|
-
SdkError | InvalidAuthorizationMessageError
|
|
141
|
+
Cause.TimeoutException | SdkError | InvalidAuthorizationMessageError
|
|
133
142
|
>;
|
|
134
143
|
|
|
135
144
|
/**
|
|
@@ -140,7 +149,7 @@ interface STSService$ {
|
|
|
140
149
|
options?: HttpHandlerOptions,
|
|
141
150
|
): Effect.Effect<
|
|
142
151
|
GetAccessKeyInfoCommandOutput,
|
|
143
|
-
SdkError
|
|
152
|
+
Cause.TimeoutException | SdkError
|
|
144
153
|
>;
|
|
145
154
|
|
|
146
155
|
/**
|
|
@@ -151,7 +160,7 @@ interface STSService$ {
|
|
|
151
160
|
options?: HttpHandlerOptions,
|
|
152
161
|
): Effect.Effect<
|
|
153
162
|
GetCallerIdentityCommandOutput,
|
|
154
|
-
SdkError
|
|
163
|
+
Cause.TimeoutException | SdkError
|
|
155
164
|
>;
|
|
156
165
|
|
|
157
166
|
/**
|
|
@@ -162,7 +171,7 @@ interface STSService$ {
|
|
|
162
171
|
options?: HttpHandlerOptions,
|
|
163
172
|
): Effect.Effect<
|
|
164
173
|
GetFederationTokenCommandOutput,
|
|
165
|
-
SdkError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError
|
|
174
|
+
Cause.TimeoutException | SdkError | MalformedPolicyDocumentError | PackedPolicyTooLargeError | RegionDisabledError
|
|
166
175
|
>;
|
|
167
176
|
|
|
168
177
|
/**
|
|
@@ -173,7 +182,7 @@ interface STSService$ {
|
|
|
173
182
|
options?: HttpHandlerOptions,
|
|
174
183
|
): Effect.Effect<
|
|
175
184
|
GetSessionTokenCommandOutput,
|
|
176
|
-
SdkError | RegionDisabledError
|
|
185
|
+
Cause.TimeoutException | SdkError | RegionDisabledError
|
|
177
186
|
>;
|
|
178
187
|
}
|
|
179
188
|
|
|
@@ -184,7 +193,7 @@ interface STSService$ {
|
|
|
184
193
|
export const makeSTSService = Effect.gen(function*() {
|
|
185
194
|
const client = yield* Instance.STSClientInstance;
|
|
186
195
|
|
|
187
|
-
return Service.fromClientAndCommands<STSService$>(
|
|
196
|
+
return yield* Service.fromClientAndCommands<STSService$>(
|
|
188
197
|
client,
|
|
189
198
|
commands,
|
|
190
199
|
{
|