@aws-sdk/client-iam 3.1108.0 → 3.1110.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/README.md +28 -0
- package/dist-cjs/index.js +285 -27
- package/dist-es/IAM.js +8 -0
- package/dist-es/commands/AcquireRoleCommand.js +4 -0
- package/dist-es/commands/GetAccountPropertiesCommand.js +4 -0
- package/dist-es/commands/GetRoleTemplateVersionCommand.js +4 -0
- package/dist-es/commands/PutAccountPropertiesCommand.js +4 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/enums.js +14 -3
- package/dist-es/models/errors.js +52 -16
- package/dist-es/schemas/schemas_0.js +176 -8
- package/dist-types/IAM.d.ts +29 -0
- package/dist-types/IAMClient.d.ts +6 -2
- package/dist-types/commands/AcquireRoleCommand.d.ts +154 -0
- package/dist-types/commands/CreateInstanceProfileCommand.d.ts +4 -0
- package/dist-types/commands/CreateRoleCommand.d.ts +4 -0
- package/dist-types/commands/CreateServiceLinkedRoleCommand.d.ts +4 -0
- package/dist-types/commands/GetAccountAuthorizationDetailsCommand.d.ts +4 -0
- package/dist-types/commands/GetAccountPropertiesCommand.d.ts +84 -0
- package/dist-types/commands/GetInstanceProfileCommand.d.ts +4 -0
- package/dist-types/commands/GetRoleCommand.d.ts +4 -0
- package/dist-types/commands/GetRoleTemplateVersionCommand.d.ts +135 -0
- package/dist-types/commands/ListInstanceProfilesCommand.d.ts +4 -0
- package/dist-types/commands/ListInstanceProfilesForRoleCommand.d.ts +4 -0
- package/dist-types/commands/ListRolesCommand.d.ts +4 -0
- package/dist-types/commands/PutAccountPropertiesCommand.d.ts +88 -0
- package/dist-types/commands/TagSAMLProviderCommand.d.ts +1 -1
- package/dist-types/commands/TagServerCertificateCommand.d.ts +1 -1
- package/dist-types/commands/TagUserCommand.d.ts +1 -1
- package/dist-types/commands/UntagInstanceProfileCommand.d.ts +1 -1
- package/dist-types/commands/UntagMFADeviceCommand.d.ts +1 -1
- package/dist-types/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
- package/dist-types/commands/UntagPolicyCommand.d.ts +1 -1
- package/dist-types/commands/UntagRoleCommand.d.ts +1 -1
- package/dist-types/commands/UntagSAMLProviderCommand.d.ts +1 -1
- package/dist-types/commands/UntagServerCertificateCommand.d.ts +1 -1
- package/dist-types/commands/UntagUserCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAccessKeyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAccountPasswordPolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssumeRolePolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoleDescriptionCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/enums.d.ts +38 -11
- package/dist-types/models/errors.d.ts +58 -18
- package/dist-types/models/models_0.d.ts +508 -511
- package/dist-types/models/models_1.d.ts +358 -0
- package/dist-types/schemas/schemas_0.d.ts +21 -0
- package/dist-types/ts3.4/IAM.d.ts +66 -0
- package/dist-types/ts3.4/IAMClient.d.ts +21 -0
- package/dist-types/ts3.4/commands/AcquireRoleCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetAccountPropertiesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetRoleTemplateVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutAccountPropertiesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagSAMLProviderCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagServerCertificateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagInstanceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagMFADeviceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagRoleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagSAMLProviderCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagServerCertificateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAccessKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAccountPasswordPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAssumeRolePolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/enums.d.ts +18 -5
- package/dist-types/ts3.4/models/errors.d.ts +23 -8
- package/dist-types/ts3.4/models/models_0.d.ts +100 -89
- package/dist-types/ts3.4/models/models_1.d.ts +64 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
- package/package.json +1 -1
package/dist-es/IAM.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { AcceptDelegationRequestCommand, } from "./commands/AcceptDelegationRequestCommand";
|
|
3
|
+
import { AcquireRoleCommand, } from "./commands/AcquireRoleCommand";
|
|
3
4
|
import { AddClientIDToOpenIDConnectProviderCommand, } from "./commands/AddClientIDToOpenIDConnectProviderCommand";
|
|
4
5
|
import { AddRoleToInstanceProfileCommand, } from "./commands/AddRoleToInstanceProfileCommand";
|
|
5
6
|
import { AddUserToGroupCommand, } from "./commands/AddUserToGroupCommand";
|
|
@@ -63,6 +64,7 @@ import { GenerateServiceLastAccessedDetailsCommand, } from "./commands/GenerateS
|
|
|
63
64
|
import { GetAccessKeyLastUsedCommand, } from "./commands/GetAccessKeyLastUsedCommand";
|
|
64
65
|
import { GetAccountAuthorizationDetailsCommand, } from "./commands/GetAccountAuthorizationDetailsCommand";
|
|
65
66
|
import { GetAccountPasswordPolicyCommand, } from "./commands/GetAccountPasswordPolicyCommand";
|
|
67
|
+
import { GetAccountPropertiesCommand, } from "./commands/GetAccountPropertiesCommand";
|
|
66
68
|
import { GetAccountSummaryCommand, } from "./commands/GetAccountSummaryCommand";
|
|
67
69
|
import { GetContextKeysForCustomPolicyCommand, } from "./commands/GetContextKeysForCustomPolicyCommand";
|
|
68
70
|
import { GetContextKeysForPrincipalPolicyCommand, } from "./commands/GetContextKeysForPrincipalPolicyCommand";
|
|
@@ -81,6 +83,7 @@ import { GetPolicyCommand } from "./commands/GetPolicyCommand";
|
|
|
81
83
|
import { GetPolicyVersionCommand, } from "./commands/GetPolicyVersionCommand";
|
|
82
84
|
import { GetRoleCommand } from "./commands/GetRoleCommand";
|
|
83
85
|
import { GetRolePolicyCommand, } from "./commands/GetRolePolicyCommand";
|
|
86
|
+
import { GetRoleTemplateVersionCommand, } from "./commands/GetRoleTemplateVersionCommand";
|
|
84
87
|
import { GetSAMLProviderCommand, } from "./commands/GetSAMLProviderCommand";
|
|
85
88
|
import { GetServerCertificateCommand, } from "./commands/GetServerCertificateCommand";
|
|
86
89
|
import { GetServiceLastAccessedDetailsCommand, } from "./commands/GetServiceLastAccessedDetailsCommand";
|
|
@@ -125,6 +128,7 @@ import { ListUserPoliciesCommand, } from "./commands/ListUserPoliciesCommand";
|
|
|
125
128
|
import { ListUsersCommand } from "./commands/ListUsersCommand";
|
|
126
129
|
import { ListUserTagsCommand, } from "./commands/ListUserTagsCommand";
|
|
127
130
|
import { ListVirtualMFADevicesCommand, } from "./commands/ListVirtualMFADevicesCommand";
|
|
131
|
+
import { PutAccountPropertiesCommand, } from "./commands/PutAccountPropertiesCommand";
|
|
128
132
|
import { PutGroupPolicyCommand, } from "./commands/PutGroupPolicyCommand";
|
|
129
133
|
import { PutRolePermissionsBoundaryCommand, } from "./commands/PutRolePermissionsBoundaryCommand";
|
|
130
134
|
import { PutRolePolicyCommand, } from "./commands/PutRolePolicyCommand";
|
|
@@ -216,6 +220,7 @@ import { waitUntilRoleExists } from "./waiters/waitForRoleExists";
|
|
|
216
220
|
import { waitUntilUserExists } from "./waiters/waitForUserExists";
|
|
217
221
|
const commands = {
|
|
218
222
|
AcceptDelegationRequestCommand,
|
|
223
|
+
AcquireRoleCommand,
|
|
219
224
|
AddClientIDToOpenIDConnectProviderCommand,
|
|
220
225
|
AddRoleToInstanceProfileCommand,
|
|
221
226
|
AddUserToGroupCommand,
|
|
@@ -279,6 +284,7 @@ const commands = {
|
|
|
279
284
|
GetAccessKeyLastUsedCommand,
|
|
280
285
|
GetAccountAuthorizationDetailsCommand,
|
|
281
286
|
GetAccountPasswordPolicyCommand,
|
|
287
|
+
GetAccountPropertiesCommand,
|
|
282
288
|
GetAccountSummaryCommand,
|
|
283
289
|
GetContextKeysForCustomPolicyCommand,
|
|
284
290
|
GetContextKeysForPrincipalPolicyCommand,
|
|
@@ -297,6 +303,7 @@ const commands = {
|
|
|
297
303
|
GetPolicyVersionCommand,
|
|
298
304
|
GetRoleCommand,
|
|
299
305
|
GetRolePolicyCommand,
|
|
306
|
+
GetRoleTemplateVersionCommand,
|
|
300
307
|
GetSAMLProviderCommand,
|
|
301
308
|
GetServerCertificateCommand,
|
|
302
309
|
GetServiceLastAccessedDetailsCommand,
|
|
@@ -341,6 +348,7 @@ const commands = {
|
|
|
341
348
|
ListUsersCommand,
|
|
342
349
|
ListUserTagsCommand,
|
|
343
350
|
ListVirtualMFADevicesCommand,
|
|
351
|
+
PutAccountPropertiesCommand,
|
|
344
352
|
PutGroupPolicyCommand,
|
|
345
353
|
PutRolePermissionsBoundaryCommand,
|
|
346
354
|
PutRolePolicyCommand,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./AcceptDelegationRequestCommand";
|
|
2
|
+
export * from "./AcquireRoleCommand";
|
|
2
3
|
export * from "./AddClientIDToOpenIDConnectProviderCommand";
|
|
3
4
|
export * from "./AddRoleToInstanceProfileCommand";
|
|
4
5
|
export * from "./AddUserToGroupCommand";
|
|
@@ -62,6 +63,7 @@ export * from "./GenerateServiceLastAccessedDetailsCommand";
|
|
|
62
63
|
export * from "./GetAccessKeyLastUsedCommand";
|
|
63
64
|
export * from "./GetAccountAuthorizationDetailsCommand";
|
|
64
65
|
export * from "./GetAccountPasswordPolicyCommand";
|
|
66
|
+
export * from "./GetAccountPropertiesCommand";
|
|
65
67
|
export * from "./GetAccountSummaryCommand";
|
|
66
68
|
export * from "./GetContextKeysForCustomPolicyCommand";
|
|
67
69
|
export * from "./GetContextKeysForPrincipalPolicyCommand";
|
|
@@ -80,6 +82,7 @@ export * from "./GetPolicyCommand";
|
|
|
80
82
|
export * from "./GetPolicyVersionCommand";
|
|
81
83
|
export * from "./GetRoleCommand";
|
|
82
84
|
export * from "./GetRolePolicyCommand";
|
|
85
|
+
export * from "./GetRoleTemplateVersionCommand";
|
|
83
86
|
export * from "./GetSAMLProviderCommand";
|
|
84
87
|
export * from "./GetSSHPublicKeyCommand";
|
|
85
88
|
export * from "./GetServerCertificateCommand";
|
|
@@ -124,6 +127,7 @@ export * from "./ListUserPoliciesCommand";
|
|
|
124
127
|
export * from "./ListUserTagsCommand";
|
|
125
128
|
export * from "./ListUsersCommand";
|
|
126
129
|
export * from "./ListVirtualMFADevicesCommand";
|
|
130
|
+
export * from "./PutAccountPropertiesCommand";
|
|
127
131
|
export * from "./PutGroupPolicyCommand";
|
|
128
132
|
export * from "./PutRolePermissionsBoundaryCommand";
|
|
129
133
|
export * from "./PutRolePolicyCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -7,6 +7,9 @@ export const StatusType = {
|
|
|
7
7
|
Expired: "Expired",
|
|
8
8
|
Inactive: "Inactive",
|
|
9
9
|
};
|
|
10
|
+
export const PermissionsBoundaryAttachmentType = {
|
|
11
|
+
Policy: "PermissionsBoundaryPolicy",
|
|
12
|
+
};
|
|
10
13
|
export const AssertionEncryptionModeType = {
|
|
11
14
|
Allowed: "Allowed",
|
|
12
15
|
Required: "Required",
|
|
@@ -16,9 +19,6 @@ export const AssignmentStatusType = {
|
|
|
16
19
|
Assigned: "Assigned",
|
|
17
20
|
Unassigned: "Unassigned",
|
|
18
21
|
};
|
|
19
|
-
export const PermissionsBoundaryAttachmentType = {
|
|
20
|
-
Policy: "PermissionsBoundaryPolicy",
|
|
21
|
-
};
|
|
22
22
|
export const AttachmentType = {
|
|
23
23
|
GROUP: "group",
|
|
24
24
|
ROLE: "role",
|
|
@@ -119,6 +119,17 @@ export const JobStatusType = {
|
|
|
119
119
|
FAILED: "FAILED",
|
|
120
120
|
IN_PROGRESS: "IN_PROGRESS",
|
|
121
121
|
};
|
|
122
|
+
export const ManagedByTypeType = {
|
|
123
|
+
Service: "Service",
|
|
124
|
+
};
|
|
125
|
+
export const ParameterTypeType = {
|
|
126
|
+
Arn: "Arn",
|
|
127
|
+
ArnList: "ArnList",
|
|
128
|
+
Number: "Number",
|
|
129
|
+
NumberList: "NumberList",
|
|
130
|
+
String: "String",
|
|
131
|
+
StringList: "StringList",
|
|
132
|
+
};
|
|
122
133
|
export const PolicyOwnerEntityType = {
|
|
123
134
|
GROUP: "GROUP",
|
|
124
135
|
ROLE: "ROLE",
|
package/dist-es/models/errors.js
CHANGED
|
@@ -49,6 +49,18 @@ export class AccountNotManagementOrDelegatedAdministratorException extends __Bas
|
|
|
49
49
|
this.Message = opts.Message;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
+
export class EntityAlreadyExistsException extends __BaseException {
|
|
53
|
+
name = "EntityAlreadyExistsException";
|
|
54
|
+
$fault = "client";
|
|
55
|
+
constructor(opts) {
|
|
56
|
+
super({
|
|
57
|
+
name: "EntityAlreadyExistsException",
|
|
58
|
+
$fault: "client",
|
|
59
|
+
...opts,
|
|
60
|
+
});
|
|
61
|
+
Object.setPrototypeOf(this, EntityAlreadyExistsException.prototype);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
52
64
|
export class InvalidInputException extends __BaseException {
|
|
53
65
|
name = "InvalidInputException";
|
|
54
66
|
$fault = "client";
|
|
@@ -73,16 +85,52 @@ export class LimitExceededException extends __BaseException {
|
|
|
73
85
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
74
86
|
}
|
|
75
87
|
}
|
|
76
|
-
export class
|
|
77
|
-
name = "
|
|
88
|
+
export class MalformedPolicyDocumentException extends __BaseException {
|
|
89
|
+
name = "MalformedPolicyDocumentException";
|
|
78
90
|
$fault = "client";
|
|
79
91
|
constructor(opts) {
|
|
80
92
|
super({
|
|
81
|
-
name: "
|
|
93
|
+
name: "MalformedPolicyDocumentException",
|
|
82
94
|
$fault: "client",
|
|
83
95
|
...opts,
|
|
84
96
|
});
|
|
85
|
-
Object.setPrototypeOf(this,
|
|
97
|
+
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export class NameConflictException extends __BaseException {
|
|
101
|
+
name = "NameConflictException";
|
|
102
|
+
$fault = "client";
|
|
103
|
+
constructor(opts) {
|
|
104
|
+
super({
|
|
105
|
+
name: "NameConflictException",
|
|
106
|
+
$fault: "client",
|
|
107
|
+
...opts,
|
|
108
|
+
});
|
|
109
|
+
Object.setPrototypeOf(this, NameConflictException.prototype);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export class RoleModifiedException extends __BaseException {
|
|
113
|
+
name = "RoleModifiedException";
|
|
114
|
+
$fault = "client";
|
|
115
|
+
constructor(opts) {
|
|
116
|
+
super({
|
|
117
|
+
name: "RoleModifiedException",
|
|
118
|
+
$fault: "client",
|
|
119
|
+
...opts,
|
|
120
|
+
});
|
|
121
|
+
Object.setPrototypeOf(this, RoleModifiedException.prototype);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
export class RoleTemplateDisabledException extends __BaseException {
|
|
125
|
+
name = "RoleTemplateDisabledException";
|
|
126
|
+
$fault = "client";
|
|
127
|
+
constructor(opts) {
|
|
128
|
+
super({
|
|
129
|
+
name: "RoleTemplateDisabledException",
|
|
130
|
+
$fault: "client",
|
|
131
|
+
...opts,
|
|
132
|
+
});
|
|
133
|
+
Object.setPrototypeOf(this, RoleTemplateDisabledException.prototype);
|
|
86
134
|
}
|
|
87
135
|
}
|
|
88
136
|
export class UnmodifiableEntityException extends __BaseException {
|
|
@@ -157,18 +205,6 @@ export class OpenIdIdpCommunicationErrorException extends __BaseException {
|
|
|
157
205
|
Object.setPrototypeOf(this, OpenIdIdpCommunicationErrorException.prototype);
|
|
158
206
|
}
|
|
159
207
|
}
|
|
160
|
-
export class MalformedPolicyDocumentException extends __BaseException {
|
|
161
|
-
name = "MalformedPolicyDocumentException";
|
|
162
|
-
$fault = "client";
|
|
163
|
-
constructor(opts) {
|
|
164
|
-
super({
|
|
165
|
-
name: "MalformedPolicyDocumentException",
|
|
166
|
-
$fault: "client",
|
|
167
|
-
...opts,
|
|
168
|
-
});
|
|
169
|
-
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
208
|
export class ServiceNotSupportedException extends __BaseException {
|
|
173
209
|
name = "ServiceNotSupportedException";
|
|
174
210
|
$fault = "client";
|