@effect-aws/client-iam 1.4.1 → 1.5.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/CHANGELOG.md +6 -0
- package/README.md +13 -40
- package/lib/IAMService.d.ts +18 -5
- package/lib/IAMService.js +24 -10
- package/lib/esm/IAMService.js +23 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @effect-aws/client-iam
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#80](https://github.com/floydspace/effect-aws/pull/80) [`4b16fbe`](https://github.com/floydspace/effect-aws/commit/4b16fbebce8131df7798ee92f43cf6b7df3e907c) Thanks [@floydspace](https://github.com/floydspace)! - simplify layers configuration (closes #78)
|
|
8
|
+
|
|
3
9
|
## 1.4.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -14,13 +14,13 @@ npm install --save @effect-aws/client-iam
|
|
|
14
14
|
With default IAMClient instance:
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
import {
|
|
17
|
+
import { IAM } from "@effect-aws/client-iam";
|
|
18
18
|
|
|
19
|
-
const program =
|
|
19
|
+
const program = IAM.createRole(args);
|
|
20
20
|
|
|
21
21
|
const result = pipe(
|
|
22
22
|
program,
|
|
23
|
-
Effect.provide(
|
|
23
|
+
Effect.provide(IAM.defaultLayer),
|
|
24
24
|
Effect.runPromise,
|
|
25
25
|
);
|
|
26
26
|
```
|
|
@@ -28,23 +28,15 @@ const result = pipe(
|
|
|
28
28
|
With custom IAMClient instance:
|
|
29
29
|
|
|
30
30
|
```typescript
|
|
31
|
-
import {
|
|
32
|
-
IAMService,
|
|
33
|
-
BaseIAMServiceLayer,
|
|
34
|
-
IAMClientInstance,
|
|
35
|
-
} from "@effect-aws/client-iam";
|
|
31
|
+
import { IAM } from "@effect-aws/client-iam";
|
|
36
32
|
|
|
37
|
-
const program =
|
|
38
|
-
|
|
39
|
-
const IAMClientInstanceLayer = Layer.succeed(
|
|
40
|
-
IAMClientInstance,
|
|
41
|
-
new IAMClient({ region: "eu-central-1" }),
|
|
42
|
-
);
|
|
33
|
+
const program = IAM.createRole(args);
|
|
43
34
|
|
|
44
35
|
const result = await pipe(
|
|
45
36
|
program,
|
|
46
|
-
Effect.provide(
|
|
47
|
-
|
|
37
|
+
Effect.provide(
|
|
38
|
+
IAM.baseLayer(() => new IAMClient({ region: "eu-central-1" })),
|
|
39
|
+
),
|
|
48
40
|
Effect.runPromise,
|
|
49
41
|
);
|
|
50
42
|
```
|
|
@@ -52,34 +44,15 @@ const result = await pipe(
|
|
|
52
44
|
With custom IAMClient configuration:
|
|
53
45
|
|
|
54
46
|
```typescript
|
|
55
|
-
import {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
DefaultIAMClientConfigLayer,
|
|
59
|
-
IAMClientInstance,
|
|
60
|
-
IAMClientInstanceConfig,
|
|
61
|
-
} from "@effect-aws/client-iam";
|
|
62
|
-
|
|
63
|
-
const program = IAMService.createRole(args);
|
|
64
|
-
|
|
65
|
-
const IAMClientInstanceLayer = Layer.provide(
|
|
66
|
-
Layer.effect(
|
|
67
|
-
IAMClientInstance,
|
|
68
|
-
IAMClientInstanceConfig.pipe(
|
|
69
|
-
Effect.map(
|
|
70
|
-
(config) => new IAMClient({ ...config, region: "eu-central-1" }),
|
|
71
|
-
),
|
|
72
|
-
),
|
|
73
|
-
),
|
|
74
|
-
DefaultIAMClientConfigLayer,
|
|
75
|
-
);
|
|
47
|
+
import { IAM } from "@effect-aws/client-iam";
|
|
48
|
+
|
|
49
|
+
const program = IAM.createRole(args);
|
|
76
50
|
|
|
77
51
|
const result = await pipe(
|
|
78
52
|
program,
|
|
79
|
-
Effect.provide(
|
|
80
|
-
Effect.provide(IAMClientInstanceLayer),
|
|
53
|
+
Effect.provide(IAM.layer({ region: "eu-central-1" })),
|
|
81
54
|
Effect.runPromiseExit,
|
|
82
55
|
);
|
|
83
56
|
```
|
|
84
57
|
|
|
85
|
-
or
|
|
58
|
+
or use `IAM.baseLayer((default) => new IAMClient({ ...default, region: "eu-central-1" }))`
|
package/lib/IAMService.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import { type AddClientIDToOpenIDConnectProviderCommandInput, type AddClientIDToOpenIDConnectProviderCommandOutput, type AddRoleToInstanceProfileCommandInput, type AddRoleToInstanceProfileCommandOutput, type AddUserToGroupCommandInput, type AddUserToGroupCommandOutput, type AttachGroupPolicyCommandInput, type AttachGroupPolicyCommandOutput, type AttachRolePolicyCommandInput, type AttachRolePolicyCommandOutput, type AttachUserPolicyCommandInput, type AttachUserPolicyCommandOutput, type ChangePasswordCommandInput, type ChangePasswordCommandOutput, type CreateAccessKeyCommandInput, type CreateAccessKeyCommandOutput, type CreateAccountAliasCommandInput, type CreateAccountAliasCommandOutput, type CreateGroupCommandInput, type CreateGroupCommandOutput, type CreateInstanceProfileCommandInput, type CreateInstanceProfileCommandOutput, type CreateLoginProfileCommandInput, type CreateLoginProfileCommandOutput, type CreateOpenIDConnectProviderCommandInput, type CreateOpenIDConnectProviderCommandOutput, type CreatePolicyCommandInput, type CreatePolicyCommandOutput, type CreatePolicyVersionCommandInput, type CreatePolicyVersionCommandOutput, type CreateRoleCommandInput, type CreateRoleCommandOutput, type CreateSAMLProviderCommandInput, type CreateSAMLProviderCommandOutput, type CreateServiceLinkedRoleCommandInput, type CreateServiceLinkedRoleCommandOutput, type CreateServiceSpecificCredentialCommandInput, type CreateServiceSpecificCredentialCommandOutput, type CreateUserCommandInput, type CreateUserCommandOutput, type CreateVirtualMFADeviceCommandInput, type CreateVirtualMFADeviceCommandOutput, type DeactivateMFADeviceCommandInput, type DeactivateMFADeviceCommandOutput, type DeleteAccessKeyCommandInput, type DeleteAccessKeyCommandOutput, type DeleteAccountAliasCommandInput, type DeleteAccountAliasCommandOutput, type DeleteAccountPasswordPolicyCommandInput, type DeleteAccountPasswordPolicyCommandOutput, type DeleteGroupCommandInput, type DeleteGroupCommandOutput, type DeleteGroupPolicyCommandInput, type DeleteGroupPolicyCommandOutput, type DeleteInstanceProfileCommandInput, type DeleteInstanceProfileCommandOutput, type DeleteLoginProfileCommandInput, type DeleteLoginProfileCommandOutput, type DeleteOpenIDConnectProviderCommandInput, type DeleteOpenIDConnectProviderCommandOutput, type DeletePolicyCommandInput, type DeletePolicyCommandOutput, type DeletePolicyVersionCommandInput, type DeletePolicyVersionCommandOutput, type DeleteRoleCommandInput, type DeleteRoleCommandOutput, type DeleteRolePermissionsBoundaryCommandInput, type DeleteRolePermissionsBoundaryCommandOutput, type DeleteRolePolicyCommandInput, type DeleteRolePolicyCommandOutput, type DeleteSAMLProviderCommandInput, type DeleteSAMLProviderCommandOutput, type DeleteSSHPublicKeyCommandInput, type DeleteSSHPublicKeyCommandOutput, type DeleteServerCertificateCommandInput, type DeleteServerCertificateCommandOutput, type DeleteServiceLinkedRoleCommandInput, type DeleteServiceLinkedRoleCommandOutput, type DeleteServiceSpecificCredentialCommandInput, type DeleteServiceSpecificCredentialCommandOutput, type DeleteSigningCertificateCommandInput, type DeleteSigningCertificateCommandOutput, type DeleteUserCommandInput, type DeleteUserCommandOutput, type DeleteUserPermissionsBoundaryCommandInput, type DeleteUserPermissionsBoundaryCommandOutput, type DeleteUserPolicyCommandInput, type DeleteUserPolicyCommandOutput, type DeleteVirtualMFADeviceCommandInput, type DeleteVirtualMFADeviceCommandOutput, type DetachGroupPolicyCommandInput, type DetachGroupPolicyCommandOutput, type DetachRolePolicyCommandInput, type DetachRolePolicyCommandOutput, type DetachUserPolicyCommandInput, type DetachUserPolicyCommandOutput, type EnableMFADeviceCommandInput, type EnableMFADeviceCommandOutput, type GenerateCredentialReportCommandInput, type GenerateCredentialReportCommandOutput, type GenerateOrganizationsAccessReportCommandInput, type GenerateOrganizationsAccessReportCommandOutput, type GenerateServiceLastAccessedDetailsCommandInput, type GenerateServiceLastAccessedDetailsCommandOutput, type GetAccessKeyLastUsedCommandInput, type GetAccessKeyLastUsedCommandOutput, type GetAccountAuthorizationDetailsCommandInput, type GetAccountAuthorizationDetailsCommandOutput, type GetAccountPasswordPolicyCommandInput, type GetAccountPasswordPolicyCommandOutput, type GetAccountSummaryCommandInput, type GetAccountSummaryCommandOutput, type GetContextKeysForCustomPolicyCommandInput, type GetContextKeysForCustomPolicyCommandOutput, type GetContextKeysForPrincipalPolicyCommandInput, type GetContextKeysForPrincipalPolicyCommandOutput, type GetCredentialReportCommandInput, type GetCredentialReportCommandOutput, type GetGroupCommandInput, type GetGroupCommandOutput, type GetGroupPolicyCommandInput, type GetGroupPolicyCommandOutput, type GetInstanceProfileCommandInput, type GetInstanceProfileCommandOutput, type GetLoginProfileCommandInput, type GetLoginProfileCommandOutput, type GetMFADeviceCommandInput, type GetMFADeviceCommandOutput, type GetOpenIDConnectProviderCommandInput, type GetOpenIDConnectProviderCommandOutput, type GetOrganizationsAccessReportCommandInput, type GetOrganizationsAccessReportCommandOutput, type GetPolicyCommandInput, type GetPolicyCommandOutput, type GetPolicyVersionCommandInput, type GetPolicyVersionCommandOutput, type GetRoleCommandInput, type GetRoleCommandOutput, type GetRolePolicyCommandInput, type GetRolePolicyCommandOutput, type GetSAMLProviderCommandInput, type GetSAMLProviderCommandOutput, type GetSSHPublicKeyCommandInput, type GetSSHPublicKeyCommandOutput, type GetServerCertificateCommandInput, type GetServerCertificateCommandOutput, type GetServiceLastAccessedDetailsCommandInput, type GetServiceLastAccessedDetailsCommandOutput, type GetServiceLastAccessedDetailsWithEntitiesCommandInput, type GetServiceLastAccessedDetailsWithEntitiesCommandOutput, type GetServiceLinkedRoleDeletionStatusCommandInput, type GetServiceLinkedRoleDeletionStatusCommandOutput, type GetUserCommandInput, type GetUserCommandOutput, type GetUserPolicyCommandInput, type GetUserPolicyCommandOutput, type ListAccessKeysCommandInput, type ListAccessKeysCommandOutput, type ListAccountAliasesCommandInput, type ListAccountAliasesCommandOutput, type ListAttachedGroupPoliciesCommandInput, type ListAttachedGroupPoliciesCommandOutput, type ListAttachedRolePoliciesCommandInput, type ListAttachedRolePoliciesCommandOutput, type ListAttachedUserPoliciesCommandInput, type ListAttachedUserPoliciesCommandOutput, type ListEntitiesForPolicyCommandInput, type ListEntitiesForPolicyCommandOutput, type ListGroupPoliciesCommandInput, type ListGroupPoliciesCommandOutput, type ListGroupsCommandInput, type ListGroupsCommandOutput, type ListGroupsForUserCommandInput, type ListGroupsForUserCommandOutput, type ListInstanceProfileTagsCommandInput, type ListInstanceProfileTagsCommandOutput, type ListInstanceProfilesCommandInput, type ListInstanceProfilesCommandOutput, type ListInstanceProfilesForRoleCommandInput, type ListInstanceProfilesForRoleCommandOutput, type ListMFADeviceTagsCommandInput, type ListMFADeviceTagsCommandOutput, type ListMFADevicesCommandInput, type ListMFADevicesCommandOutput, type ListOpenIDConnectProviderTagsCommandInput, type ListOpenIDConnectProviderTagsCommandOutput, type ListOpenIDConnectProvidersCommandInput, type ListOpenIDConnectProvidersCommandOutput, type ListPoliciesCommandInput, type ListPoliciesCommandOutput, type ListPoliciesGrantingServiceAccessCommandInput, type ListPoliciesGrantingServiceAccessCommandOutput, type ListPolicyTagsCommandInput, type ListPolicyTagsCommandOutput, type ListPolicyVersionsCommandInput, type ListPolicyVersionsCommandOutput, type ListRolePoliciesCommandInput, type ListRolePoliciesCommandOutput, type ListRoleTagsCommandInput, type ListRoleTagsCommandOutput, type ListRolesCommandInput, type ListRolesCommandOutput, type ListSAMLProviderTagsCommandInput, type ListSAMLProviderTagsCommandOutput, type ListSAMLProvidersCommandInput, type ListSAMLProvidersCommandOutput, type ListSSHPublicKeysCommandInput, type ListSSHPublicKeysCommandOutput, type ListServerCertificateTagsCommandInput, type ListServerCertificateTagsCommandOutput, type ListServerCertificatesCommandInput, type ListServerCertificatesCommandOutput, type ListServiceSpecificCredentialsCommandInput, type ListServiceSpecificCredentialsCommandOutput, type ListSigningCertificatesCommandInput, type ListSigningCertificatesCommandOutput, type ListUserPoliciesCommandInput, type ListUserPoliciesCommandOutput, type ListUserTagsCommandInput, type ListUserTagsCommandOutput, type ListUsersCommandInput, type ListUsersCommandOutput, type ListVirtualMFADevicesCommandInput, type ListVirtualMFADevicesCommandOutput, type PutGroupPolicyCommandInput, type PutGroupPolicyCommandOutput, type PutRolePermissionsBoundaryCommandInput, type PutRolePermissionsBoundaryCommandOutput, type PutRolePolicyCommandInput, type PutRolePolicyCommandOutput, type PutUserPermissionsBoundaryCommandInput, type PutUserPermissionsBoundaryCommandOutput, type PutUserPolicyCommandInput, type PutUserPolicyCommandOutput, type RemoveClientIDFromOpenIDConnectProviderCommandInput, type RemoveClientIDFromOpenIDConnectProviderCommandOutput, type RemoveRoleFromInstanceProfileCommandInput, type RemoveRoleFromInstanceProfileCommandOutput, type RemoveUserFromGroupCommandInput, type RemoveUserFromGroupCommandOutput, type ResetServiceSpecificCredentialCommandInput, type ResetServiceSpecificCredentialCommandOutput, type ResyncMFADeviceCommandInput, type ResyncMFADeviceCommandOutput, type SetDefaultPolicyVersionCommandInput, type SetDefaultPolicyVersionCommandOutput, type SetSecurityTokenServicePreferencesCommandInput, type SetSecurityTokenServicePreferencesCommandOutput, type SimulateCustomPolicyCommandInput, type SimulateCustomPolicyCommandOutput, type SimulatePrincipalPolicyCommandInput, type SimulatePrincipalPolicyCommandOutput, type TagInstanceProfileCommandInput, type TagInstanceProfileCommandOutput, type TagMFADeviceCommandInput, type TagMFADeviceCommandOutput, type TagOpenIDConnectProviderCommandInput, type TagOpenIDConnectProviderCommandOutput, type TagPolicyCommandInput, type TagPolicyCommandOutput, type TagRoleCommandInput, type TagRoleCommandOutput, type TagSAMLProviderCommandInput, type TagSAMLProviderCommandOutput, type TagServerCertificateCommandInput, type TagServerCertificateCommandOutput, type TagUserCommandInput, type TagUserCommandOutput, type UntagInstanceProfileCommandInput, type UntagInstanceProfileCommandOutput, type UntagMFADeviceCommandInput, type UntagMFADeviceCommandOutput, type UntagOpenIDConnectProviderCommandInput, type UntagOpenIDConnectProviderCommandOutput, type UntagPolicyCommandInput, type UntagPolicyCommandOutput, type UntagRoleCommandInput, type UntagRoleCommandOutput, type UntagSAMLProviderCommandInput, type UntagSAMLProviderCommandOutput, type UntagServerCertificateCommandInput, type UntagServerCertificateCommandOutput, type UntagUserCommandInput, type UntagUserCommandOutput, type UpdateAccessKeyCommandInput, type UpdateAccessKeyCommandOutput, type UpdateAccountPasswordPolicyCommandInput, type UpdateAccountPasswordPolicyCommandOutput, type UpdateAssumeRolePolicyCommandInput, type UpdateAssumeRolePolicyCommandOutput, type UpdateGroupCommandInput, type UpdateGroupCommandOutput, type UpdateLoginProfileCommandInput, type UpdateLoginProfileCommandOutput, type UpdateOpenIDConnectProviderThumbprintCommandInput, type UpdateOpenIDConnectProviderThumbprintCommandOutput, type UpdateRoleCommandInput, type UpdateRoleCommandOutput, type UpdateRoleDescriptionCommandInput, type UpdateRoleDescriptionCommandOutput, type UpdateSAMLProviderCommandInput, type UpdateSAMLProviderCommandOutput, type UpdateSSHPublicKeyCommandInput, type UpdateSSHPublicKeyCommandOutput, type UpdateServerCertificateCommandInput, type UpdateServerCertificateCommandOutput, type UpdateServiceSpecificCredentialCommandInput, type UpdateServiceSpecificCredentialCommandOutput, type UpdateSigningCertificateCommandInput, type UpdateSigningCertificateCommandOutput, type UpdateUserCommandInput, type UpdateUserCommandOutput, type UploadSSHPublicKeyCommandInput, type UploadSSHPublicKeyCommandOutput, type UploadServerCertificateCommandInput, type UploadServerCertificateCommandOutput, type UploadSigningCertificateCommandInput, type UploadSigningCertificateCommandOutput } from "@aws-sdk/client-iam";
|
|
4
|
+
import { type IAMClient, type IAMClientConfig, type AddClientIDToOpenIDConnectProviderCommandInput, type AddClientIDToOpenIDConnectProviderCommandOutput, type AddRoleToInstanceProfileCommandInput, type AddRoleToInstanceProfileCommandOutput, type AddUserToGroupCommandInput, type AddUserToGroupCommandOutput, type AttachGroupPolicyCommandInput, type AttachGroupPolicyCommandOutput, type AttachRolePolicyCommandInput, type AttachRolePolicyCommandOutput, type AttachUserPolicyCommandInput, type AttachUserPolicyCommandOutput, type ChangePasswordCommandInput, type ChangePasswordCommandOutput, type CreateAccessKeyCommandInput, type CreateAccessKeyCommandOutput, type CreateAccountAliasCommandInput, type CreateAccountAliasCommandOutput, type CreateGroupCommandInput, type CreateGroupCommandOutput, type CreateInstanceProfileCommandInput, type CreateInstanceProfileCommandOutput, type CreateLoginProfileCommandInput, type CreateLoginProfileCommandOutput, type CreateOpenIDConnectProviderCommandInput, type CreateOpenIDConnectProviderCommandOutput, type CreatePolicyCommandInput, type CreatePolicyCommandOutput, type CreatePolicyVersionCommandInput, type CreatePolicyVersionCommandOutput, type CreateRoleCommandInput, type CreateRoleCommandOutput, type CreateSAMLProviderCommandInput, type CreateSAMLProviderCommandOutput, type CreateServiceLinkedRoleCommandInput, type CreateServiceLinkedRoleCommandOutput, type CreateServiceSpecificCredentialCommandInput, type CreateServiceSpecificCredentialCommandOutput, type CreateUserCommandInput, type CreateUserCommandOutput, type CreateVirtualMFADeviceCommandInput, type CreateVirtualMFADeviceCommandOutput, type DeactivateMFADeviceCommandInput, type DeactivateMFADeviceCommandOutput, type DeleteAccessKeyCommandInput, type DeleteAccessKeyCommandOutput, type DeleteAccountAliasCommandInput, type DeleteAccountAliasCommandOutput, type DeleteAccountPasswordPolicyCommandInput, type DeleteAccountPasswordPolicyCommandOutput, type DeleteGroupCommandInput, type DeleteGroupCommandOutput, type DeleteGroupPolicyCommandInput, type DeleteGroupPolicyCommandOutput, type DeleteInstanceProfileCommandInput, type DeleteInstanceProfileCommandOutput, type DeleteLoginProfileCommandInput, type DeleteLoginProfileCommandOutput, type DeleteOpenIDConnectProviderCommandInput, type DeleteOpenIDConnectProviderCommandOutput, type DeletePolicyCommandInput, type DeletePolicyCommandOutput, type DeletePolicyVersionCommandInput, type DeletePolicyVersionCommandOutput, type DeleteRoleCommandInput, type DeleteRoleCommandOutput, type DeleteRolePermissionsBoundaryCommandInput, type DeleteRolePermissionsBoundaryCommandOutput, type DeleteRolePolicyCommandInput, type DeleteRolePolicyCommandOutput, type DeleteSAMLProviderCommandInput, type DeleteSAMLProviderCommandOutput, type DeleteSSHPublicKeyCommandInput, type DeleteSSHPublicKeyCommandOutput, type DeleteServerCertificateCommandInput, type DeleteServerCertificateCommandOutput, type DeleteServiceLinkedRoleCommandInput, type DeleteServiceLinkedRoleCommandOutput, type DeleteServiceSpecificCredentialCommandInput, type DeleteServiceSpecificCredentialCommandOutput, type DeleteSigningCertificateCommandInput, type DeleteSigningCertificateCommandOutput, type DeleteUserCommandInput, type DeleteUserCommandOutput, type DeleteUserPermissionsBoundaryCommandInput, type DeleteUserPermissionsBoundaryCommandOutput, type DeleteUserPolicyCommandInput, type DeleteUserPolicyCommandOutput, type DeleteVirtualMFADeviceCommandInput, type DeleteVirtualMFADeviceCommandOutput, type DetachGroupPolicyCommandInput, type DetachGroupPolicyCommandOutput, type DetachRolePolicyCommandInput, type DetachRolePolicyCommandOutput, type DetachUserPolicyCommandInput, type DetachUserPolicyCommandOutput, type EnableMFADeviceCommandInput, type EnableMFADeviceCommandOutput, type GenerateCredentialReportCommandInput, type GenerateCredentialReportCommandOutput, type GenerateOrganizationsAccessReportCommandInput, type GenerateOrganizationsAccessReportCommandOutput, type GenerateServiceLastAccessedDetailsCommandInput, type GenerateServiceLastAccessedDetailsCommandOutput, type GetAccessKeyLastUsedCommandInput, type GetAccessKeyLastUsedCommandOutput, type GetAccountAuthorizationDetailsCommandInput, type GetAccountAuthorizationDetailsCommandOutput, type GetAccountPasswordPolicyCommandInput, type GetAccountPasswordPolicyCommandOutput, type GetAccountSummaryCommandInput, type GetAccountSummaryCommandOutput, type GetContextKeysForCustomPolicyCommandInput, type GetContextKeysForCustomPolicyCommandOutput, type GetContextKeysForPrincipalPolicyCommandInput, type GetContextKeysForPrincipalPolicyCommandOutput, type GetCredentialReportCommandInput, type GetCredentialReportCommandOutput, type GetGroupCommandInput, type GetGroupCommandOutput, type GetGroupPolicyCommandInput, type GetGroupPolicyCommandOutput, type GetInstanceProfileCommandInput, type GetInstanceProfileCommandOutput, type GetLoginProfileCommandInput, type GetLoginProfileCommandOutput, type GetMFADeviceCommandInput, type GetMFADeviceCommandOutput, type GetOpenIDConnectProviderCommandInput, type GetOpenIDConnectProviderCommandOutput, type GetOrganizationsAccessReportCommandInput, type GetOrganizationsAccessReportCommandOutput, type GetPolicyCommandInput, type GetPolicyCommandOutput, type GetPolicyVersionCommandInput, type GetPolicyVersionCommandOutput, type GetRoleCommandInput, type GetRoleCommandOutput, type GetRolePolicyCommandInput, type GetRolePolicyCommandOutput, type GetSAMLProviderCommandInput, type GetSAMLProviderCommandOutput, type GetSSHPublicKeyCommandInput, type GetSSHPublicKeyCommandOutput, type GetServerCertificateCommandInput, type GetServerCertificateCommandOutput, type GetServiceLastAccessedDetailsCommandInput, type GetServiceLastAccessedDetailsCommandOutput, type GetServiceLastAccessedDetailsWithEntitiesCommandInput, type GetServiceLastAccessedDetailsWithEntitiesCommandOutput, type GetServiceLinkedRoleDeletionStatusCommandInput, type GetServiceLinkedRoleDeletionStatusCommandOutput, type GetUserCommandInput, type GetUserCommandOutput, type GetUserPolicyCommandInput, type GetUserPolicyCommandOutput, type ListAccessKeysCommandInput, type ListAccessKeysCommandOutput, type ListAccountAliasesCommandInput, type ListAccountAliasesCommandOutput, type ListAttachedGroupPoliciesCommandInput, type ListAttachedGroupPoliciesCommandOutput, type ListAttachedRolePoliciesCommandInput, type ListAttachedRolePoliciesCommandOutput, type ListAttachedUserPoliciesCommandInput, type ListAttachedUserPoliciesCommandOutput, type ListEntitiesForPolicyCommandInput, type ListEntitiesForPolicyCommandOutput, type ListGroupPoliciesCommandInput, type ListGroupPoliciesCommandOutput, type ListGroupsCommandInput, type ListGroupsCommandOutput, type ListGroupsForUserCommandInput, type ListGroupsForUserCommandOutput, type ListInstanceProfileTagsCommandInput, type ListInstanceProfileTagsCommandOutput, type ListInstanceProfilesCommandInput, type ListInstanceProfilesCommandOutput, type ListInstanceProfilesForRoleCommandInput, type ListInstanceProfilesForRoleCommandOutput, type ListMFADeviceTagsCommandInput, type ListMFADeviceTagsCommandOutput, type ListMFADevicesCommandInput, type ListMFADevicesCommandOutput, type ListOpenIDConnectProviderTagsCommandInput, type ListOpenIDConnectProviderTagsCommandOutput, type ListOpenIDConnectProvidersCommandInput, type ListOpenIDConnectProvidersCommandOutput, type ListPoliciesCommandInput, type ListPoliciesCommandOutput, type ListPoliciesGrantingServiceAccessCommandInput, type ListPoliciesGrantingServiceAccessCommandOutput, type ListPolicyTagsCommandInput, type ListPolicyTagsCommandOutput, type ListPolicyVersionsCommandInput, type ListPolicyVersionsCommandOutput, type ListRolePoliciesCommandInput, type ListRolePoliciesCommandOutput, type ListRoleTagsCommandInput, type ListRoleTagsCommandOutput, type ListRolesCommandInput, type ListRolesCommandOutput, type ListSAMLProviderTagsCommandInput, type ListSAMLProviderTagsCommandOutput, type ListSAMLProvidersCommandInput, type ListSAMLProvidersCommandOutput, type ListSSHPublicKeysCommandInput, type ListSSHPublicKeysCommandOutput, type ListServerCertificateTagsCommandInput, type ListServerCertificateTagsCommandOutput, type ListServerCertificatesCommandInput, type ListServerCertificatesCommandOutput, type ListServiceSpecificCredentialsCommandInput, type ListServiceSpecificCredentialsCommandOutput, type ListSigningCertificatesCommandInput, type ListSigningCertificatesCommandOutput, type ListUserPoliciesCommandInput, type ListUserPoliciesCommandOutput, type ListUserTagsCommandInput, type ListUserTagsCommandOutput, type ListUsersCommandInput, type ListUsersCommandOutput, type ListVirtualMFADevicesCommandInput, type ListVirtualMFADevicesCommandOutput, type PutGroupPolicyCommandInput, type PutGroupPolicyCommandOutput, type PutRolePermissionsBoundaryCommandInput, type PutRolePermissionsBoundaryCommandOutput, type PutRolePolicyCommandInput, type PutRolePolicyCommandOutput, type PutUserPermissionsBoundaryCommandInput, type PutUserPermissionsBoundaryCommandOutput, type PutUserPolicyCommandInput, type PutUserPolicyCommandOutput, type RemoveClientIDFromOpenIDConnectProviderCommandInput, type RemoveClientIDFromOpenIDConnectProviderCommandOutput, type RemoveRoleFromInstanceProfileCommandInput, type RemoveRoleFromInstanceProfileCommandOutput, type RemoveUserFromGroupCommandInput, type RemoveUserFromGroupCommandOutput, type ResetServiceSpecificCredentialCommandInput, type ResetServiceSpecificCredentialCommandOutput, type ResyncMFADeviceCommandInput, type ResyncMFADeviceCommandOutput, type SetDefaultPolicyVersionCommandInput, type SetDefaultPolicyVersionCommandOutput, type SetSecurityTokenServicePreferencesCommandInput, type SetSecurityTokenServicePreferencesCommandOutput, type SimulateCustomPolicyCommandInput, type SimulateCustomPolicyCommandOutput, type SimulatePrincipalPolicyCommandInput, type SimulatePrincipalPolicyCommandOutput, type TagInstanceProfileCommandInput, type TagInstanceProfileCommandOutput, type TagMFADeviceCommandInput, type TagMFADeviceCommandOutput, type TagOpenIDConnectProviderCommandInput, type TagOpenIDConnectProviderCommandOutput, type TagPolicyCommandInput, type TagPolicyCommandOutput, type TagRoleCommandInput, type TagRoleCommandOutput, type TagSAMLProviderCommandInput, type TagSAMLProviderCommandOutput, type TagServerCertificateCommandInput, type TagServerCertificateCommandOutput, type TagUserCommandInput, type TagUserCommandOutput, type UntagInstanceProfileCommandInput, type UntagInstanceProfileCommandOutput, type UntagMFADeviceCommandInput, type UntagMFADeviceCommandOutput, type UntagOpenIDConnectProviderCommandInput, type UntagOpenIDConnectProviderCommandOutput, type UntagPolicyCommandInput, type UntagPolicyCommandOutput, type UntagRoleCommandInput, type UntagRoleCommandOutput, type UntagSAMLProviderCommandInput, type UntagSAMLProviderCommandOutput, type UntagServerCertificateCommandInput, type UntagServerCertificateCommandOutput, type UntagUserCommandInput, type UntagUserCommandOutput, type UpdateAccessKeyCommandInput, type UpdateAccessKeyCommandOutput, type UpdateAccountPasswordPolicyCommandInput, type UpdateAccountPasswordPolicyCommandOutput, type UpdateAssumeRolePolicyCommandInput, type UpdateAssumeRolePolicyCommandOutput, type UpdateGroupCommandInput, type UpdateGroupCommandOutput, type UpdateLoginProfileCommandInput, type UpdateLoginProfileCommandOutput, type UpdateOpenIDConnectProviderThumbprintCommandInput, type UpdateOpenIDConnectProviderThumbprintCommandOutput, type UpdateRoleCommandInput, type UpdateRoleCommandOutput, type UpdateRoleDescriptionCommandInput, type UpdateRoleDescriptionCommandOutput, type UpdateSAMLProviderCommandInput, type UpdateSAMLProviderCommandOutput, type UpdateSSHPublicKeyCommandInput, type UpdateSSHPublicKeyCommandOutput, type UpdateServerCertificateCommandInput, type UpdateServerCertificateCommandOutput, type UpdateServiceSpecificCredentialCommandInput, type UpdateServiceSpecificCredentialCommandOutput, type UpdateSigningCertificateCommandInput, type UpdateSigningCertificateCommandOutput, type UpdateUserCommandInput, type UpdateUserCommandOutput, type UploadSSHPublicKeyCommandInput, type UploadSSHPublicKeyCommandOutput, type UploadServerCertificateCommandInput, type UploadServerCertificateCommandOutput, type UploadSigningCertificateCommandInput, type UploadSigningCertificateCommandOutput } from "@aws-sdk/client-iam";
|
|
5
5
|
import { Effect, Layer } from "effect";
|
|
6
6
|
import { ConcurrentModificationError, CredentialReportExpiredError, CredentialReportNotPresentError, CredentialReportNotReadyError, DeleteConflictError, DuplicateCertificateError, DuplicateSSHPublicKeyError, EntityAlreadyExistsError, EntityTemporarilyUnmodifiableError, InvalidAuthenticationCodeError, InvalidCertificateError, InvalidInputError, InvalidPublicKeyError, InvalidUserTypeError, KeyPairMismatchError, LimitExceededError, MalformedCertificateError, MalformedPolicyDocumentError, NoSuchEntityError, OpenIdIdpCommunicationError, PasswordPolicyViolationError, PolicyEvaluationError, PolicyNotAttachableError, ReportGenerationLimitExceededError, ServiceFailureError, ServiceNotSupportedError, UnmodifiableEntityError, UnrecognizedPublicKeyEncodingError, SdkError } from "./Errors";
|
|
7
7
|
import { IAMClientInstance } from "./IAMClientInstance";
|
|
8
|
+
import { IAMClientInstanceConfig } from "./IAMClientInstanceConfig";
|
|
8
9
|
/**
|
|
9
|
-
* @since 1.
|
|
10
|
+
* @since 1.0.0
|
|
10
11
|
*/
|
|
11
12
|
export interface HttpHandlerOptions {
|
|
12
13
|
/**
|
|
@@ -654,6 +655,11 @@ interface IAMService$ {
|
|
|
654
655
|
*/
|
|
655
656
|
uploadSigningCertificate(args: UploadSigningCertificateCommandInput, options?: HttpHandlerOptions): Effect.Effect<UploadSigningCertificateCommandOutput, SdkError | ConcurrentModificationError | DuplicateCertificateError | EntityAlreadyExistsError | InvalidCertificateError | LimitExceededError | MalformedCertificateError | NoSuchEntityError | ServiceFailureError>;
|
|
656
657
|
}
|
|
658
|
+
/**
|
|
659
|
+
* @since 1.0.0
|
|
660
|
+
* @category constructors
|
|
661
|
+
*/
|
|
662
|
+
export declare const makeIAMService: Effect.Effect<IAMService$, never, IAMClientInstance>;
|
|
657
663
|
declare const IAMService_base: import("effect/Context").TagClass<IAMService, "@effect-aws/client-iam/IAMService", IAMService$> & {
|
|
658
664
|
readonly _: Effect.Effect<IAMService$["_"], never, IAMService>;
|
|
659
665
|
addClientIDToOpenIDConnectProvider: (args: AddClientIDToOpenIDConnectProviderCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AddClientIDToOpenIDConnectProviderCommandOutput, InvalidInputError | LimitExceededError | NoSuchEntityError | ServiceFailureError | SdkError, IAMService>;
|
|
@@ -823,25 +829,32 @@ declare const IAMService_base: import("effect/Context").TagClass<IAMService, "@e
|
|
|
823
829
|
* @category models
|
|
824
830
|
*/
|
|
825
831
|
export declare class IAMService extends IAMService_base {
|
|
832
|
+
static readonly defaultLayer: Layer.Layer<IAMService, never, never>;
|
|
833
|
+
static readonly layer: (config: IAMClientConfig) => Layer.Layer<IAMService, never, never>;
|
|
834
|
+
static readonly baseLayer: (evaluate: (defaultConfig: IAMClientConfig) => IAMClient) => Layer.Layer<IAMService, never, never>;
|
|
826
835
|
}
|
|
827
836
|
/**
|
|
828
837
|
* @since 1.0.0
|
|
829
|
-
* @category
|
|
838
|
+
* @category models
|
|
839
|
+
* @alias IAMService
|
|
830
840
|
*/
|
|
831
|
-
export declare const
|
|
841
|
+
export declare const IAM: typeof IAMService;
|
|
832
842
|
/**
|
|
833
843
|
* @since 1.0.0
|
|
834
844
|
* @category layers
|
|
845
|
+
* @deprecated use IAM.baseLayer instead
|
|
835
846
|
*/
|
|
836
847
|
export declare const BaseIAMServiceLayer: Layer.Layer<IAMService, never, IAMClientInstance>;
|
|
837
848
|
/**
|
|
838
849
|
* @since 1.0.0
|
|
839
850
|
* @category layers
|
|
851
|
+
* @deprecated use IAM.layer instead
|
|
840
852
|
*/
|
|
841
|
-
export declare const IAMServiceLayer: Layer.Layer<IAMService, never,
|
|
853
|
+
export declare const IAMServiceLayer: Layer.Layer<IAMService, never, IAMClientInstanceConfig>;
|
|
842
854
|
/**
|
|
843
855
|
* @since 1.0.0
|
|
844
856
|
* @category layers
|
|
857
|
+
* @deprecated use IAM.defaultLayer instead
|
|
845
858
|
*/
|
|
846
859
|
export declare const DefaultIAMServiceLayer: Layer.Layer<IAMService, never, never>;
|
|
847
860
|
export {};
|