@effect-aws/client-iam 1.7.0 → 1.9.3

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 (69) hide show
  1. package/Errors/package.json +6 -0
  2. package/IAMClientInstance/package.json +6 -0
  3. package/IAMService/package.json +6 -0
  4. package/IAMServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +41 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/IAMClientInstance.d.ts +24 -0
  10. package/dist/cjs/IAMClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/IAMClientInstance.js +50 -0
  12. package/dist/cjs/IAMClientInstance.js.map +1 -0
  13. package/dist/cjs/IAMService.d.ts +697 -0
  14. package/dist/cjs/IAMService.d.ts.map +1 -0
  15. package/dist/cjs/IAMService.js +223 -0
  16. package/dist/cjs/IAMService.js.map +1 -0
  17. package/dist/cjs/IAMServiceConfig.d.ts +25 -0
  18. package/dist/cjs/IAMServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/IAMServiceConfig.js +35 -0
  20. package/dist/cjs/IAMServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +40 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/IAMClientInstance.d.ts +24 -0
  28. package/dist/dts/IAMClientInstance.d.ts.map +1 -0
  29. package/dist/dts/IAMService.d.ts +697 -0
  30. package/dist/dts/IAMService.d.ts.map +1 -0
  31. package/dist/dts/IAMServiceConfig.d.ts +25 -0
  32. package/dist/dts/IAMServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +38 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/IAMClientInstance.js +23 -0
  38. package/dist/esm/IAMClientInstance.js.map +1 -0
  39. package/dist/esm/IAMService.js +196 -0
  40. package/dist/esm/IAMService.js.map +1 -0
  41. package/dist/esm/IAMServiceConfig.js +31 -0
  42. package/dist/esm/IAMServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/Errors.ts +112 -0
  48. package/src/IAMClientInstance.ts +33 -0
  49. package/src/IAMService.ts +2797 -0
  50. package/src/IAMServiceConfig.ts +51 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -73
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -41
  55. package/lib/IAMClientInstance.d.ts +0 -31
  56. package/lib/IAMClientInstance.js +0 -57
  57. package/lib/IAMClientInstanceConfig.d.ts +0 -23
  58. package/lib/IAMClientInstanceConfig.js +0 -44
  59. package/lib/IAMService.d.ts +0 -885
  60. package/lib/IAMService.js +0 -252
  61. package/lib/esm/Errors.js +0 -38
  62. package/lib/esm/IAMClientInstance.js +0 -30
  63. package/lib/esm/IAMClientInstanceConfig.js +0 -40
  64. package/lib/esm/IAMService.js +0 -248
  65. package/lib/esm/index.js +0 -5
  66. package/lib/index.d.ts +0 -4
  67. package/lib/index.js +0 -21
  68. package/project.json +0 -77
  69. package/vitest.config.ts +0 -3
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/Errors.js",
3
+ "module": "../dist/esm/Errors.js",
4
+ "types": "../dist/dts/Errors.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/IAMClientInstance.js",
3
+ "module": "../dist/esm/IAMClientInstance.js",
4
+ "types": "../dist/dts/IAMClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/IAMService.js",
3
+ "module": "../dist/esm/IAMService.js",
4
+ "types": "../dist/dts/IAMService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/IAMServiceConfig.js",
3
+ "module": "../dist/esm/IAMServiceConfig.js",
4
+ "types": "../dist/dts/IAMServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -1,11 +1,7 @@
1
1
  import type { AccountNotManagementOrDelegatedAdministratorException, CallerIsNotManagementAccountException, ConcurrentModificationException, CredentialReportExpiredException, CredentialReportNotPresentException, CredentialReportNotReadyException, DeleteConflictException, DuplicateCertificateException, DuplicateSSHPublicKeyException, EntityAlreadyExistsException, EntityTemporarilyUnmodifiableException, 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 { Data } from "effect";
3
- export declare const AllServiceErrors: string[];
4
- export type TaggedException<T extends {
5
- name: string;
6
- }> = T & {
7
- readonly _tag: T["name"];
8
- };
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["AccountNotManagementOrDelegatedAdministratorException", "CallerIsNotManagementAccountException", "ConcurrentModificationException", "CredentialReportExpiredException", "CredentialReportNotPresentException", "CredentialReportNotReadyException", "DeleteConflictException", "DuplicateCertificateException", "DuplicateSSHPublicKeyException", "EntityAlreadyExistsException", "EntityTemporarilyUnmodifiableException", "InvalidAuthenticationCodeException", "InvalidCertificateException", "InvalidInputException", "InvalidPublicKeyException", "InvalidUserTypeException", "KeyPairMismatchException", "LimitExceededException", "MalformedCertificateException", "MalformedPolicyDocumentException", "NoSuchEntityException", "OpenIdIdpCommunicationErrorException", "OrganizationNotFoundException", "OrganizationNotInAllFeaturesModeException", "PasswordPolicyViolationException", "PolicyEvaluationException", "PolicyNotAttachableException", "ReportGenerationLimitExceededException", "ServiceAccessNotEnabledException", "ServiceFailureException", "ServiceNotSupportedException", "UnmodifiableEntityException", "UnrecognizedPublicKeyEncodingException"];
9
5
  export type AccountNotManagementOrDelegatedAdministratorError = TaggedException<AccountNotManagementOrDelegatedAdministratorException>;
10
6
  export type CallerIsNotManagementAccountError = TaggedException<CallerIsNotManagementAccountException>;
11
7
  export type ConcurrentModificationError = TaggedException<ConcurrentModificationException>;
@@ -39,7 +35,6 @@ export type ServiceFailureError = TaggedException<ServiceFailureException>;
39
35
  export type ServiceNotSupportedError = TaggedException<ServiceNotSupportedException>;
40
36
  export type UnmodifiableEntityError = TaggedException<UnmodifiableEntityException>;
41
37
  export type UnrecognizedPublicKeyEncodingError = TaggedException<UnrecognizedPublicKeyEncodingException>;
42
- export type SdkError = TaggedException<Error & {
43
- name: "SdkError";
44
- }>;
45
- export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
38
+ export type SdkError = CommonSdkError;
39
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
40
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
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,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,4BAA4B,EAC5B,sC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AC,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;AAEzG,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdkError = exports.AllServiceErrors = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ exports.AllServiceErrors = [
6
+ "AccountNotManagementOrDelegatedAdministratorException",
7
+ "CallerIsNotManagementAccountException",
8
+ "ConcurrentModificationException",
9
+ "CredentialReportExpiredException",
10
+ "CredentialReportNotPresentException",
11
+ "CredentialReportNotReadyException",
12
+ "DeleteConflictException",
13
+ "DuplicateCertificateException",
14
+ "DuplicateSSHPublicKeyException",
15
+ "EntityAlreadyExistsException",
16
+ "EntityTemporarilyUnmodifiableException",
17
+ "InvalidAuthenticationCodeException",
18
+ "InvalidCertificateException",
19
+ "InvalidInputException",
20
+ "InvalidPublicKeyException",
21
+ "InvalidUserTypeException",
22
+ "KeyPairMismatchException",
23
+ "LimitExceededException",
24
+ "MalformedCertificateException",
25
+ "MalformedPolicyDocumentException",
26
+ "NoSuchEntityException",
27
+ "OpenIdIdpCommunicationErrorException",
28
+ "OrganizationNotFoundException",
29
+ "OrganizationNotInAllFeaturesModeException",
30
+ "PasswordPolicyViolationException",
31
+ "PolicyEvaluationException",
32
+ "PolicyNotAttachableException",
33
+ "ReportGenerationLimitExceededException",
34
+ "ServiceAccessNotEnabledException",
35
+ "ServiceFailureException",
36
+ "ServiceNotSupportedException",
37
+ "UnmodifiableEntityException",
38
+ "UnrecognizedPublicKeyEncodingException",
39
+ ];
40
+ exports.SdkError = commons_1.SdkError;
41
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAoCA,iDAAiE;AAEpD,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,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;AAuCE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,24 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,50 @@
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
@@ -0,0 +1 @@
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"}