@effect-aws/client-iam 1.10.7 → 2.0.0-beta.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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/IAMClientInstance.d.ts +2 -2
- package/dist/dts/IAMClientInstance.d.ts.map +1 -1
- package/dist/dts/IAMService.d.ts +178 -180
- package/dist/dts/IAMService.d.ts.map +1 -1
- package/dist/dts/IAMServiceConfig.d.ts.map +1 -1
- package/dist/esm/IAMClientInstance.js +3 -3
- package/dist/esm/IAMClientInstance.js.map +1 -1
- package/dist/esm/IAMService.js +2 -2
- package/dist/esm/IAMService.js.map +1 -1
- package/dist/esm/IAMServiceConfig.js +5 -6
- package/dist/esm/IAMServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/IAMClientInstance.ts +4 -4
- package/src/IAMService.ts +179 -194
- package/src/IAMServiceConfig.ts +6 -7
- package/dist/cjs/Errors.d.ts +0 -42
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -41
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/IAMClientInstance.d.ts +0 -24
- package/dist/cjs/IAMClientInstance.d.ts.map +0 -1
- package/dist/cjs/IAMClientInstance.js +0 -50
- package/dist/cjs/IAMClientInstance.js.map +0 -1
- package/dist/cjs/IAMService.d.ts +0 -750
- package/dist/cjs/IAMService.d.ts.map +0 -1
- package/dist/cjs/IAMService.js +0 -235
- package/dist/cjs/IAMService.js.map +0 -1
- package/dist/cjs/IAMServiceConfig.d.ts +0 -25
- package/dist/cjs/IAMServiceConfig.d.ts.map +0 -1
- package/dist/cjs/IAMServiceConfig.js +0 -35
- package/dist/cjs/IAMServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
package/src/IAMServiceConfig.ts
CHANGED
|
@@ -3,18 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { IAMClientConfig } from "@aws-sdk/client-iam";
|
|
5
5
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import { Effect,
|
|
6
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
|
-
import { globalValue } from "effect/GlobalValue";
|
|
9
8
|
import type { IAMService } from "./IAMService.js";
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* @since 1.0.0
|
|
13
12
|
* @category iam service config
|
|
14
13
|
*/
|
|
15
|
-
const currentIAMServiceConfig =
|
|
14
|
+
const currentIAMServiceConfig = ServiceMap.Reference<IAMService.Config>(
|
|
16
15
|
"@effect-aws/client-iam/currentIAMServiceConfig",
|
|
17
|
-
() =>
|
|
16
|
+
{ defaultValue: () => ({}) },
|
|
18
17
|
);
|
|
19
18
|
|
|
20
19
|
/**
|
|
@@ -27,21 +26,21 @@ export const withIAMServiceConfig: {
|
|
|
27
26
|
} = dual(
|
|
28
27
|
2,
|
|
29
28
|
<A, E, R>(effect: Effect.Effect<A, E, R>, config: IAMService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
-
Effect.
|
|
29
|
+
Effect.provideService(effect, currentIAMServiceConfig, config),
|
|
31
30
|
);
|
|
32
31
|
|
|
33
32
|
/**
|
|
34
33
|
* @since 1.0.0
|
|
35
34
|
* @category iam service config
|
|
36
35
|
*/
|
|
37
|
-
export const setIAMServiceConfig = (config: IAMService.Config) => Layer.
|
|
36
|
+
export const setIAMServiceConfig = (config: IAMService.Config) => Layer.succeed(currentIAMServiceConfig, config);
|
|
38
37
|
|
|
39
38
|
/**
|
|
40
39
|
* @since 1.0.0
|
|
41
40
|
* @category adapters
|
|
42
41
|
*/
|
|
43
42
|
export const toIAMClientConfig: Effect.Effect<IAMClientConfig> = Effect.gen(function*() {
|
|
44
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
43
|
+
const { logger: serviceLogger, ...config } = yield* currentIAMServiceConfig;
|
|
45
44
|
|
|
46
45
|
const logger = serviceLogger === true
|
|
47
46
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
package/dist/cjs/Errors.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { AccountNotManagementOrDelegatedAdministratorException, CallerIsNotManagementAccountException, ConcurrentModificationException, CredentialReportExpiredException, CredentialReportNotPresentException, CredentialReportNotReadyException, DeleteConflictException, DuplicateCertificateException, DuplicateSSHPublicKeyException, EntityAlreadyExistsException, EntityTemporarilyUnmodifiableException, FeatureDisabledException, FeatureEnabledException, InvalidAuthenticationCodeException, InvalidCertificateException, InvalidInputException, InvalidPublicKeyException, InvalidUserTypeException, KeyPairMismatchException, LimitExceededException, MalformedCertificateException, MalformedPolicyDocumentException, NoSuchEntityException, OpenIdIdpCommunicationErrorException, OrganizationNotFoundException, OrganizationNotInAllFeaturesModeException, PasswordPolicyViolationException, PolicyEvaluationException, PolicyNotAttachableException, ReportGenerationLimitExceededException, ServiceAccessNotEnabledException, ServiceFailureException, ServiceNotSupportedException, UnmodifiableEntityException, UnrecognizedPublicKeyEncodingException } from "@aws-sdk/client-iam";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
export declare const AllServiceErrors: readonly ["AccountNotManagementOrDelegatedAdministratorException", "CallerIsNotManagementAccountException", "ConcurrentModificationException", "CredentialReportExpiredException", "CredentialReportNotPresentException", "CredentialReportNotReadyException", "DeleteConflictException", "DuplicateCertificateException", "DuplicateSSHPublicKeyException", "EntityAlreadyExistsException", "EntityTemporarilyUnmodifiableException", "FeatureDisabledException", "FeatureEnabledException", "InvalidAuthenticationCodeException", "InvalidCertificateException", "InvalidInputException", "InvalidPublicKeyException", "InvalidUserTypeException", "KeyPairMismatchException", "LimitExceededException", "MalformedCertificateException", "MalformedPolicyDocumentException", "NoSuchEntityException", "OpenIdIdpCommunicationErrorException", "OrganizationNotFoundException", "OrganizationNotInAllFeaturesModeException", "PasswordPolicyViolationException", "PolicyEvaluationException", "PolicyNotAttachableException", "ReportGenerationLimitExceededException", "ServiceAccessNotEnabledException", "ServiceFailureException", "ServiceNotSupportedException", "UnmodifiableEntityException", "UnrecognizedPublicKeyEncodingException"];
|
|
4
|
-
export type AccountNotManagementOrDelegatedAdministratorError = TaggedException<AccountNotManagementOrDelegatedAdministratorException>;
|
|
5
|
-
export type CallerIsNotManagementAccountError = TaggedException<CallerIsNotManagementAccountException>;
|
|
6
|
-
export type ConcurrentModificationError = TaggedException<ConcurrentModificationException>;
|
|
7
|
-
export type CredentialReportExpiredError = TaggedException<CredentialReportExpiredException>;
|
|
8
|
-
export type CredentialReportNotPresentError = TaggedException<CredentialReportNotPresentException>;
|
|
9
|
-
export type CredentialReportNotReadyError = TaggedException<CredentialReportNotReadyException>;
|
|
10
|
-
export type DeleteConflictError = TaggedException<DeleteConflictException>;
|
|
11
|
-
export type DuplicateCertificateError = TaggedException<DuplicateCertificateException>;
|
|
12
|
-
export type DuplicateSSHPublicKeyError = TaggedException<DuplicateSSHPublicKeyException>;
|
|
13
|
-
export type EntityAlreadyExistsError = TaggedException<EntityAlreadyExistsException>;
|
|
14
|
-
export type EntityTemporarilyUnmodifiableError = TaggedException<EntityTemporarilyUnmodifiableException>;
|
|
15
|
-
export type FeatureDisabledError = TaggedException<FeatureDisabledException>;
|
|
16
|
-
export type FeatureEnabledError = TaggedException<FeatureEnabledException>;
|
|
17
|
-
export type InvalidAuthenticationCodeError = TaggedException<InvalidAuthenticationCodeException>;
|
|
18
|
-
export type InvalidCertificateError = TaggedException<InvalidCertificateException>;
|
|
19
|
-
export type InvalidInputError = TaggedException<InvalidInputException>;
|
|
20
|
-
export type InvalidPublicKeyError = TaggedException<InvalidPublicKeyException>;
|
|
21
|
-
export type InvalidUserTypeError = TaggedException<InvalidUserTypeException>;
|
|
22
|
-
export type KeyPairMismatchError = TaggedException<KeyPairMismatchException>;
|
|
23
|
-
export type LimitExceededError = TaggedException<LimitExceededException>;
|
|
24
|
-
export type MalformedCertificateError = TaggedException<MalformedCertificateException>;
|
|
25
|
-
export type MalformedPolicyDocumentError = TaggedException<MalformedPolicyDocumentException>;
|
|
26
|
-
export type NoSuchEntityError = TaggedException<NoSuchEntityException>;
|
|
27
|
-
export type OpenIdIdpCommunicationError = TaggedException<OpenIdIdpCommunicationErrorException>;
|
|
28
|
-
export type OrganizationNotFoundError = TaggedException<OrganizationNotFoundException>;
|
|
29
|
-
export type OrganizationNotInAllFeaturesModeError = TaggedException<OrganizationNotInAllFeaturesModeException>;
|
|
30
|
-
export type PasswordPolicyViolationError = TaggedException<PasswordPolicyViolationException>;
|
|
31
|
-
export type PolicyEvaluationError = TaggedException<PolicyEvaluationException>;
|
|
32
|
-
export type PolicyNotAttachableError = TaggedException<PolicyNotAttachableException>;
|
|
33
|
-
export type ReportGenerationLimitExceededError = TaggedException<ReportGenerationLimitExceededException>;
|
|
34
|
-
export type ServiceAccessNotEnabledError = TaggedException<ServiceAccessNotEnabledException>;
|
|
35
|
-
export type ServiceFailureError = TaggedException<ServiceFailureException>;
|
|
36
|
-
export type ServiceNotSupportedError = TaggedException<ServiceNotSupportedException>;
|
|
37
|
-
export type UnmodifiableEntityError = TaggedException<UnmodifiableEntityException>;
|
|
38
|
-
export type UnrecognizedPublicKeyEncodingError = TaggedException<UnrecognizedPublicKeyEncodingException>;
|
|
39
|
-
export type SdkError = TaggedException<Error & {
|
|
40
|
-
name: "SdkError";
|
|
41
|
-
}>;
|
|
42
|
-
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qDAAqD,EACrD,qCAAqC,EACrC,+BAA+B,EAC/B,gCAAgC,EAChC,mCAAmC,EACnC,iCAAiC,EACjC,uBAAu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kCAAkC,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AACzG,MAAM,MAAM,4BAA4B,GAAG,eAAe,CAAC,gCAAgC,CAAC,CAAC;AAC7F,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AACrF,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,kCAAkC,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AACzG,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllServiceErrors = void 0;
|
|
4
|
-
exports.AllServiceErrors = [
|
|
5
|
-
"AccountNotManagementOrDelegatedAdministratorException",
|
|
6
|
-
"CallerIsNotManagementAccountException",
|
|
7
|
-
"ConcurrentModificationException",
|
|
8
|
-
"CredentialReportExpiredException",
|
|
9
|
-
"CredentialReportNotPresentException",
|
|
10
|
-
"CredentialReportNotReadyException",
|
|
11
|
-
"DeleteConflictException",
|
|
12
|
-
"DuplicateCertificateException",
|
|
13
|
-
"DuplicateSSHPublicKeyException",
|
|
14
|
-
"EntityAlreadyExistsException",
|
|
15
|
-
"EntityTemporarilyUnmodifiableException",
|
|
16
|
-
"FeatureDisabledException",
|
|
17
|
-
"FeatureEnabledException",
|
|
18
|
-
"InvalidAuthenticationCodeException",
|
|
19
|
-
"InvalidCertificateException",
|
|
20
|
-
"InvalidInputException",
|
|
21
|
-
"InvalidPublicKeyException",
|
|
22
|
-
"InvalidUserTypeException",
|
|
23
|
-
"KeyPairMismatchException",
|
|
24
|
-
"LimitExceededException",
|
|
25
|
-
"MalformedCertificateException",
|
|
26
|
-
"MalformedPolicyDocumentException",
|
|
27
|
-
"NoSuchEntityException",
|
|
28
|
-
"OpenIdIdpCommunicationErrorException",
|
|
29
|
-
"OrganizationNotFoundException",
|
|
30
|
-
"OrganizationNotInAllFeaturesModeException",
|
|
31
|
-
"PasswordPolicyViolationException",
|
|
32
|
-
"PolicyEvaluationException",
|
|
33
|
-
"PolicyNotAttachableException",
|
|
34
|
-
"ReportGenerationLimitExceededException",
|
|
35
|
-
"ServiceAccessNotEnabledException",
|
|
36
|
-
"ServiceFailureException",
|
|
37
|
-
"ServiceNotSupportedException",
|
|
38
|
-
"UnmodifiableEntityException",
|
|
39
|
-
"UnrecognizedPublicKeyEncodingException",
|
|
40
|
-
];
|
|
41
|
-
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAuCa,QAAA,gBAAgB,GAAG;IAC9B,uDAAuD;IACvD,uCAAuC;IACvC,iCAAiC;IACjC,kCAAkC;IAClC,qCAAqC;IACrC,mCAAmC;IACnC,yBAAyB;IACzB,+BAA+B;IAC/B,gCAAgC;IAChC,8BAA8B;IAC9B,wCAAwC;IACxC,0BAA0B;IAC1B,yBAAyB;IACzB,oCAAoC;IACpC,6BAA6B;IAC7B,uBAAuB;IACvB,2BAA2B;IAC3B,0BAA0B;IAC1B,0BAA0B;IAC1B,wBAAwB;IACxB,+BAA+B;IAC/B,kCAAkC;IAClC,uBAAuB;IACvB,sCAAsC;IACtC,+BAA+B;IAC/B,2CAA2C;IAC3C,kCAAkC;IAClC,2BAA2B;IAC3B,8BAA8B;IAC9B,wCAAwC;IACxC,kCAAkC;IAClC,yBAAyB;IACzB,8BAA8B;IAC9B,6BAA6B;IAC7B,wCAAwC;CAChC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { IAMClient } from "@aws-sdk/client-iam";
|
|
5
|
-
import { Context, Effect, Layer } from "effect";
|
|
6
|
-
declare const IAMClientInstance_base: Context.TagClass<IAMClientInstance, "@effect-aws/client-iam/IAMClientInstance", IAMClient>;
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category tags
|
|
10
|
-
*/
|
|
11
|
-
export declare class IAMClientInstance extends IAMClientInstance_base {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category constructors
|
|
16
|
-
*/
|
|
17
|
-
export declare const make: Effect.Effect<IAMClient, never, import("effect/Scope").Scope>;
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category layers
|
|
21
|
-
*/
|
|
22
|
-
export declare const layer: Layer.Layer<IAMClientInstance, never, never>;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=IAMClientInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IAMClientInstance.d.ts","sourceRoot":"","sources":["../../src/IAMClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAEN;CAAG;AAEpC;;;GAGG;AACH,eAAO,MAAM,IAAI,+DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,8CAAwC,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.layer = exports.make = exports.IAMClientInstance = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_iam_1 = require("@aws-sdk/client-iam");
|
|
31
|
-
const effect_1 = require("effect");
|
|
32
|
-
const IAMServiceConfig = __importStar(require("./IAMServiceConfig.js"));
|
|
33
|
-
/**
|
|
34
|
-
* @since 1.0.0
|
|
35
|
-
* @category tags
|
|
36
|
-
*/
|
|
37
|
-
class IAMClientInstance extends effect_1.Context.Tag("@effect-aws/client-iam/IAMClientInstance")() {
|
|
38
|
-
}
|
|
39
|
-
exports.IAMClientInstance = IAMClientInstance;
|
|
40
|
-
/**
|
|
41
|
-
* @since 1.0.0
|
|
42
|
-
* @category constructors
|
|
43
|
-
*/
|
|
44
|
-
exports.make = effect_1.Effect.flatMap(IAMServiceConfig.toIAMClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_iam_1.IAMClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
|
|
45
|
-
/**
|
|
46
|
-
* @since 1.0.0
|
|
47
|
-
* @category layers
|
|
48
|
-
*/
|
|
49
|
-
exports.layer = effect_1.Layer.scoped(IAMClientInstance, exports.make);
|
|
50
|
-
//# sourceMappingURL=IAMClientInstance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IAMClientInstance.js","sourceRoot":"","sources":["../../src/IAMClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAAgD;AAChD,mCAAgD;AAChD,wEAA0D;AAE1D;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,gBAAO,CAAC,GAAG,CAChD,0CAA0C,CAC3C,EAAgC;CAAG;AAFpC,8CAEoC;AAEpC;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,gBAAgB,CAAC,iBAAiB,EAClC,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,sBAAS,CAAC,MAAM,CAAC,CAAC,EACxC,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,iBAAiB,EAAE,YAAI,CAAC,CAAC"}
|