@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.
- package/Errors/package.json +6 -0
- package/IAMClientInstance/package.json +6 -0
- package/IAMService/package.json +6 -0
- package/IAMServiceConfig/package.json +6 -0
- package/{lib → dist/cjs}/Errors.d.ts +6 -11
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +41 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/IAMClientInstance.d.ts +24 -0
- package/dist/cjs/IAMClientInstance.d.ts.map +1 -0
- package/dist/cjs/IAMClientInstance.js +50 -0
- package/dist/cjs/IAMClientInstance.js.map +1 -0
- package/dist/cjs/IAMService.d.ts +697 -0
- package/dist/cjs/IAMService.d.ts.map +1 -0
- package/dist/cjs/IAMService.js +223 -0
- package/dist/cjs/IAMService.js.map +1 -0
- package/dist/cjs/IAMServiceConfig.d.ts +25 -0
- package/dist/cjs/IAMServiceConfig.d.ts.map +1 -0
- package/dist/cjs/IAMServiceConfig.js +35 -0
- package/dist/cjs/IAMServiceConfig.js.map +1 -0
- package/dist/cjs/index.d.ts +39 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/Errors.d.ts +40 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/IAMClientInstance.d.ts +24 -0
- package/dist/dts/IAMClientInstance.d.ts.map +1 -0
- package/dist/dts/IAMService.d.ts +697 -0
- package/dist/dts/IAMService.d.ts.map +1 -0
- package/dist/dts/IAMServiceConfig.d.ts +25 -0
- package/dist/dts/IAMServiceConfig.d.ts.map +1 -0
- package/dist/dts/index.d.ts +39 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/Errors.js +38 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/IAMClientInstance.js +23 -0
- package/dist/esm/IAMClientInstance.js.map +1 -0
- package/dist/esm/IAMService.js +196 -0
- package/dist/esm/IAMService.js.map +1 -0
- package/dist/esm/IAMServiceConfig.js +31 -0
- package/dist/esm/IAMServiceConfig.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +60 -43
- package/src/Errors.ts +112 -0
- package/src/IAMClientInstance.ts +33 -0
- package/src/IAMService.ts +2797 -0
- package/src/IAMServiceConfig.ts +51 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -73
- package/docgen.json +0 -8
- package/lib/Errors.js +0 -41
- package/lib/IAMClientInstance.d.ts +0 -31
- package/lib/IAMClientInstance.js +0 -57
- package/lib/IAMClientInstanceConfig.d.ts +0 -23
- package/lib/IAMClientInstanceConfig.js +0 -44
- package/lib/IAMService.d.ts +0 -885
- package/lib/IAMService.js +0 -252
- package/lib/esm/Errors.js +0 -38
- package/lib/esm/IAMClientInstance.js +0 -30
- package/lib/esm/IAMClientInstanceConfig.js +0 -40
- package/lib/esm/IAMService.js +0 -248
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
package/src/Errors.ts
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
AccountNotManagementOrDelegatedAdministratorException,
|
|
3
|
+
CallerIsNotManagementAccountException,
|
|
4
|
+
ConcurrentModificationException,
|
|
5
|
+
CredentialReportExpiredException,
|
|
6
|
+
CredentialReportNotPresentException,
|
|
7
|
+
CredentialReportNotReadyException,
|
|
8
|
+
DeleteConflictException,
|
|
9
|
+
DuplicateCertificateException,
|
|
10
|
+
DuplicateSSHPublicKeyException,
|
|
11
|
+
EntityAlreadyExistsException,
|
|
12
|
+
EntityTemporarilyUnmodifiableException,
|
|
13
|
+
InvalidAuthenticationCodeException,
|
|
14
|
+
InvalidCertificateException,
|
|
15
|
+
InvalidInputException,
|
|
16
|
+
InvalidPublicKeyException,
|
|
17
|
+
InvalidUserTypeException,
|
|
18
|
+
KeyPairMismatchException,
|
|
19
|
+
LimitExceededException,
|
|
20
|
+
MalformedCertificateException,
|
|
21
|
+
MalformedPolicyDocumentException,
|
|
22
|
+
NoSuchEntityException,
|
|
23
|
+
OpenIdIdpCommunicationErrorException,
|
|
24
|
+
OrganizationNotFoundException,
|
|
25
|
+
OrganizationNotInAllFeaturesModeException,
|
|
26
|
+
PasswordPolicyViolationException,
|
|
27
|
+
PolicyEvaluationException,
|
|
28
|
+
PolicyNotAttachableException,
|
|
29
|
+
ReportGenerationLimitExceededException,
|
|
30
|
+
ServiceAccessNotEnabledException,
|
|
31
|
+
ServiceFailureException,
|
|
32
|
+
ServiceNotSupportedException,
|
|
33
|
+
UnmodifiableEntityException,
|
|
34
|
+
UnrecognizedPublicKeyEncodingException,
|
|
35
|
+
} from "@aws-sdk/client-iam";
|
|
36
|
+
import type { TaggedException } from "@effect-aws/commons";
|
|
37
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
38
|
+
|
|
39
|
+
export const AllServiceErrors = [
|
|
40
|
+
"AccountNotManagementOrDelegatedAdministratorException",
|
|
41
|
+
"CallerIsNotManagementAccountException",
|
|
42
|
+
"ConcurrentModificationException",
|
|
43
|
+
"CredentialReportExpiredException",
|
|
44
|
+
"CredentialReportNotPresentException",
|
|
45
|
+
"CredentialReportNotReadyException",
|
|
46
|
+
"DeleteConflictException",
|
|
47
|
+
"DuplicateCertificateException",
|
|
48
|
+
"DuplicateSSHPublicKeyException",
|
|
49
|
+
"EntityAlreadyExistsException",
|
|
50
|
+
"EntityTemporarilyUnmodifiableException",
|
|
51
|
+
"InvalidAuthenticationCodeException",
|
|
52
|
+
"InvalidCertificateException",
|
|
53
|
+
"InvalidInputException",
|
|
54
|
+
"InvalidPublicKeyException",
|
|
55
|
+
"InvalidUserTypeException",
|
|
56
|
+
"KeyPairMismatchException",
|
|
57
|
+
"LimitExceededException",
|
|
58
|
+
"MalformedCertificateException",
|
|
59
|
+
"MalformedPolicyDocumentException",
|
|
60
|
+
"NoSuchEntityException",
|
|
61
|
+
"OpenIdIdpCommunicationErrorException",
|
|
62
|
+
"OrganizationNotFoundException",
|
|
63
|
+
"OrganizationNotInAllFeaturesModeException",
|
|
64
|
+
"PasswordPolicyViolationException",
|
|
65
|
+
"PolicyEvaluationException",
|
|
66
|
+
"PolicyNotAttachableException",
|
|
67
|
+
"ReportGenerationLimitExceededException",
|
|
68
|
+
"ServiceAccessNotEnabledException",
|
|
69
|
+
"ServiceFailureException",
|
|
70
|
+
"ServiceNotSupportedException",
|
|
71
|
+
"UnmodifiableEntityException",
|
|
72
|
+
"UnrecognizedPublicKeyEncodingException",
|
|
73
|
+
] as const;
|
|
74
|
+
|
|
75
|
+
export type AccountNotManagementOrDelegatedAdministratorError = TaggedException<
|
|
76
|
+
AccountNotManagementOrDelegatedAdministratorException
|
|
77
|
+
>;
|
|
78
|
+
export type CallerIsNotManagementAccountError = TaggedException<CallerIsNotManagementAccountException>;
|
|
79
|
+
export type ConcurrentModificationError = TaggedException<ConcurrentModificationException>;
|
|
80
|
+
export type CredentialReportExpiredError = TaggedException<CredentialReportExpiredException>;
|
|
81
|
+
export type CredentialReportNotPresentError = TaggedException<CredentialReportNotPresentException>;
|
|
82
|
+
export type CredentialReportNotReadyError = TaggedException<CredentialReportNotReadyException>;
|
|
83
|
+
export type DeleteConflictError = TaggedException<DeleteConflictException>;
|
|
84
|
+
export type DuplicateCertificateError = TaggedException<DuplicateCertificateException>;
|
|
85
|
+
export type DuplicateSSHPublicKeyError = TaggedException<DuplicateSSHPublicKeyException>;
|
|
86
|
+
export type EntityAlreadyExistsError = TaggedException<EntityAlreadyExistsException>;
|
|
87
|
+
export type EntityTemporarilyUnmodifiableError = TaggedException<EntityTemporarilyUnmodifiableException>;
|
|
88
|
+
export type InvalidAuthenticationCodeError = TaggedException<InvalidAuthenticationCodeException>;
|
|
89
|
+
export type InvalidCertificateError = TaggedException<InvalidCertificateException>;
|
|
90
|
+
export type InvalidInputError = TaggedException<InvalidInputException>;
|
|
91
|
+
export type InvalidPublicKeyError = TaggedException<InvalidPublicKeyException>;
|
|
92
|
+
export type InvalidUserTypeError = TaggedException<InvalidUserTypeException>;
|
|
93
|
+
export type KeyPairMismatchError = TaggedException<KeyPairMismatchException>;
|
|
94
|
+
export type LimitExceededError = TaggedException<LimitExceededException>;
|
|
95
|
+
export type MalformedCertificateError = TaggedException<MalformedCertificateException>;
|
|
96
|
+
export type MalformedPolicyDocumentError = TaggedException<MalformedPolicyDocumentException>;
|
|
97
|
+
export type NoSuchEntityError = TaggedException<NoSuchEntityException>;
|
|
98
|
+
export type OpenIdIdpCommunicationError = TaggedException<OpenIdIdpCommunicationErrorException>;
|
|
99
|
+
export type OrganizationNotFoundError = TaggedException<OrganizationNotFoundException>;
|
|
100
|
+
export type OrganizationNotInAllFeaturesModeError = TaggedException<OrganizationNotInAllFeaturesModeException>;
|
|
101
|
+
export type PasswordPolicyViolationError = TaggedException<PasswordPolicyViolationException>;
|
|
102
|
+
export type PolicyEvaluationError = TaggedException<PolicyEvaluationException>;
|
|
103
|
+
export type PolicyNotAttachableError = TaggedException<PolicyNotAttachableException>;
|
|
104
|
+
export type ReportGenerationLimitExceededError = TaggedException<ReportGenerationLimitExceededException>;
|
|
105
|
+
export type ServiceAccessNotEnabledError = TaggedException<ServiceAccessNotEnabledException>;
|
|
106
|
+
export type ServiceFailureError = TaggedException<ServiceFailureException>;
|
|
107
|
+
export type ServiceNotSupportedError = TaggedException<ServiceNotSupportedException>;
|
|
108
|
+
export type UnmodifiableEntityError = TaggedException<UnmodifiableEntityException>;
|
|
109
|
+
export type UnrecognizedPublicKeyEncodingError = TaggedException<UnrecognizedPublicKeyEncodingException>;
|
|
110
|
+
|
|
111
|
+
export type SdkError = CommonSdkError;
|
|
112
|
+
export const SdkError = CommonSdkError;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { IAMClient } from "@aws-sdk/client-iam";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
import * as IAMServiceConfig from "./IAMServiceConfig.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @since 1.0.0
|
|
10
|
+
* @category tags
|
|
11
|
+
*/
|
|
12
|
+
export class IAMClientInstance extends Context.Tag(
|
|
13
|
+
"@effect-aws/client-iam/IAMClientInstance",
|
|
14
|
+
)<IAMClientInstance, IAMClient>() {}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @since 1.0.0
|
|
18
|
+
* @category constructors
|
|
19
|
+
*/
|
|
20
|
+
export const make = Effect.flatMap(
|
|
21
|
+
IAMServiceConfig.toIAMClientConfig,
|
|
22
|
+
(config) =>
|
|
23
|
+
Effect.acquireRelease(
|
|
24
|
+
Effect.sync(() => new IAMClient(config)),
|
|
25
|
+
(client) => Effect.sync(() => client.destroy()),
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @since 1.0.0
|
|
31
|
+
* @category layers
|
|
32
|
+
*/
|
|
33
|
+
export const layer = Layer.scoped(IAMClientInstance, make);
|