@aws-sdk/client-iam 3.301.0 → 3.306.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.
@@ -4,16 +4,14 @@ exports.ListVirtualMFADevicesResponseFilterSensitiveLog = exports.CreateVirtualM
4
4
  exports.ResetServiceSpecificCredentialResponseFilterSensitiveLog = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const IAMServiceException_1 = require("./IAMServiceException");
7
- var AccessAdvisorUsageGranularityType;
8
- (function (AccessAdvisorUsageGranularityType) {
9
- AccessAdvisorUsageGranularityType["ACTION_LEVEL"] = "ACTION_LEVEL";
10
- AccessAdvisorUsageGranularityType["SERVICE_LEVEL"] = "SERVICE_LEVEL";
11
- })(AccessAdvisorUsageGranularityType = exports.AccessAdvisorUsageGranularityType || (exports.AccessAdvisorUsageGranularityType = {}));
12
- var StatusType;
13
- (function (StatusType) {
14
- StatusType["Active"] = "Active";
15
- StatusType["Inactive"] = "Inactive";
16
- })(StatusType = exports.StatusType || (exports.StatusType = {}));
7
+ exports.AccessAdvisorUsageGranularityType = {
8
+ ACTION_LEVEL: "ACTION_LEVEL",
9
+ SERVICE_LEVEL: "SERVICE_LEVEL",
10
+ };
11
+ exports.StatusType = {
12
+ Active: "Active",
13
+ Inactive: "Inactive",
14
+ };
17
15
  class InvalidInputException extends IAMServiceException_1.IAMServiceException {
18
16
  constructor(opts) {
19
17
  super({
@@ -92,16 +90,14 @@ class UnmodifiableEntityException extends IAMServiceException_1.IAMServiceExcept
92
90
  }
93
91
  }
94
92
  exports.UnmodifiableEntityException = UnmodifiableEntityException;
95
- var AssignmentStatusType;
96
- (function (AssignmentStatusType) {
97
- AssignmentStatusType["Any"] = "Any";
98
- AssignmentStatusType["Assigned"] = "Assigned";
99
- AssignmentStatusType["Unassigned"] = "Unassigned";
100
- })(AssignmentStatusType = exports.AssignmentStatusType || (exports.AssignmentStatusType = {}));
101
- var PermissionsBoundaryAttachmentType;
102
- (function (PermissionsBoundaryAttachmentType) {
103
- PermissionsBoundaryAttachmentType["Policy"] = "PermissionsBoundaryPolicy";
104
- })(PermissionsBoundaryAttachmentType = exports.PermissionsBoundaryAttachmentType || (exports.PermissionsBoundaryAttachmentType = {}));
93
+ exports.AssignmentStatusType = {
94
+ Any: "Any",
95
+ Assigned: "Assigned",
96
+ Unassigned: "Unassigned",
97
+ };
98
+ exports.PermissionsBoundaryAttachmentType = {
99
+ Policy: "PermissionsBoundaryPolicy",
100
+ };
105
101
  class PolicyNotAttachableException extends IAMServiceException_1.IAMServiceException {
106
102
  constructor(opts) {
107
103
  super({
@@ -219,12 +215,11 @@ class InvalidAuthenticationCodeException extends IAMServiceException_1.IAMServic
219
215
  }
220
216
  }
221
217
  exports.InvalidAuthenticationCodeException = InvalidAuthenticationCodeException;
222
- var ReportStateType;
223
- (function (ReportStateType) {
224
- ReportStateType["COMPLETE"] = "COMPLETE";
225
- ReportStateType["INPROGRESS"] = "INPROGRESS";
226
- ReportStateType["STARTED"] = "STARTED";
227
- })(ReportStateType = exports.ReportStateType || (exports.ReportStateType = {}));
218
+ exports.ReportStateType = {
219
+ COMPLETE: "COMPLETE",
220
+ INPROGRESS: "INPROGRESS",
221
+ STARTED: "STARTED",
222
+ };
228
223
  class ReportGenerationLimitExceededException extends IAMServiceException_1.IAMServiceException {
229
224
  constructor(opts) {
230
225
  super({
@@ -238,43 +233,41 @@ class ReportGenerationLimitExceededException extends IAMServiceException_1.IAMSe
238
233
  }
239
234
  }
240
235
  exports.ReportGenerationLimitExceededException = ReportGenerationLimitExceededException;
241
- var EntityType;
242
- (function (EntityType) {
243
- EntityType["AWSManagedPolicy"] = "AWSManagedPolicy";
244
- EntityType["Group"] = "Group";
245
- EntityType["LocalManagedPolicy"] = "LocalManagedPolicy";
246
- EntityType["Role"] = "Role";
247
- EntityType["User"] = "User";
248
- })(EntityType = exports.EntityType || (exports.EntityType = {}));
249
- var SummaryKeyType;
250
- (function (SummaryKeyType) {
251
- SummaryKeyType["AccessKeysPerUserQuota"] = "AccessKeysPerUserQuota";
252
- SummaryKeyType["AccountAccessKeysPresent"] = "AccountAccessKeysPresent";
253
- SummaryKeyType["AccountMFAEnabled"] = "AccountMFAEnabled";
254
- SummaryKeyType["AccountSigningCertificatesPresent"] = "AccountSigningCertificatesPresent";
255
- SummaryKeyType["AttachedPoliciesPerGroupQuota"] = "AttachedPoliciesPerGroupQuota";
256
- SummaryKeyType["AttachedPoliciesPerRoleQuota"] = "AttachedPoliciesPerRoleQuota";
257
- SummaryKeyType["AttachedPoliciesPerUserQuota"] = "AttachedPoliciesPerUserQuota";
258
- SummaryKeyType["GlobalEndpointTokenVersion"] = "GlobalEndpointTokenVersion";
259
- SummaryKeyType["GroupPolicySizeQuota"] = "GroupPolicySizeQuota";
260
- SummaryKeyType["Groups"] = "Groups";
261
- SummaryKeyType["GroupsPerUserQuota"] = "GroupsPerUserQuota";
262
- SummaryKeyType["GroupsQuota"] = "GroupsQuota";
263
- SummaryKeyType["MFADevices"] = "MFADevices";
264
- SummaryKeyType["MFADevicesInUse"] = "MFADevicesInUse";
265
- SummaryKeyType["Policies"] = "Policies";
266
- SummaryKeyType["PoliciesQuota"] = "PoliciesQuota";
267
- SummaryKeyType["PolicySizeQuota"] = "PolicySizeQuota";
268
- SummaryKeyType["PolicyVersionsInUse"] = "PolicyVersionsInUse";
269
- SummaryKeyType["PolicyVersionsInUseQuota"] = "PolicyVersionsInUseQuota";
270
- SummaryKeyType["ServerCertificates"] = "ServerCertificates";
271
- SummaryKeyType["ServerCertificatesQuota"] = "ServerCertificatesQuota";
272
- SummaryKeyType["SigningCertificatesPerUserQuota"] = "SigningCertificatesPerUserQuota";
273
- SummaryKeyType["UserPolicySizeQuota"] = "UserPolicySizeQuota";
274
- SummaryKeyType["Users"] = "Users";
275
- SummaryKeyType["UsersQuota"] = "UsersQuota";
276
- SummaryKeyType["VersionsPerPolicyQuota"] = "VersionsPerPolicyQuota";
277
- })(SummaryKeyType = exports.SummaryKeyType || (exports.SummaryKeyType = {}));
236
+ exports.EntityType = {
237
+ AWSManagedPolicy: "AWSManagedPolicy",
238
+ Group: "Group",
239
+ LocalManagedPolicy: "LocalManagedPolicy",
240
+ Role: "Role",
241
+ User: "User",
242
+ };
243
+ exports.SummaryKeyType = {
244
+ AccessKeysPerUserQuota: "AccessKeysPerUserQuota",
245
+ AccountAccessKeysPresent: "AccountAccessKeysPresent",
246
+ AccountMFAEnabled: "AccountMFAEnabled",
247
+ AccountSigningCertificatesPresent: "AccountSigningCertificatesPresent",
248
+ AttachedPoliciesPerGroupQuota: "AttachedPoliciesPerGroupQuota",
249
+ AttachedPoliciesPerRoleQuota: "AttachedPoliciesPerRoleQuota",
250
+ AttachedPoliciesPerUserQuota: "AttachedPoliciesPerUserQuota",
251
+ GlobalEndpointTokenVersion: "GlobalEndpointTokenVersion",
252
+ GroupPolicySizeQuota: "GroupPolicySizeQuota",
253
+ Groups: "Groups",
254
+ GroupsPerUserQuota: "GroupsPerUserQuota",
255
+ GroupsQuota: "GroupsQuota",
256
+ MFADevices: "MFADevices",
257
+ MFADevicesInUse: "MFADevicesInUse",
258
+ Policies: "Policies",
259
+ PoliciesQuota: "PoliciesQuota",
260
+ PolicySizeQuota: "PolicySizeQuota",
261
+ PolicyVersionsInUse: "PolicyVersionsInUse",
262
+ PolicyVersionsInUseQuota: "PolicyVersionsInUseQuota",
263
+ ServerCertificates: "ServerCertificates",
264
+ ServerCertificatesQuota: "ServerCertificatesQuota",
265
+ SigningCertificatesPerUserQuota: "SigningCertificatesPerUserQuota",
266
+ UserPolicySizeQuota: "UserPolicySizeQuota",
267
+ Users: "Users",
268
+ UsersQuota: "UsersQuota",
269
+ VersionsPerPolicyQuota: "VersionsPerPolicyQuota",
270
+ };
278
271
  class CredentialReportExpiredException extends IAMServiceException_1.IAMServiceException {
279
272
  constructor(opts) {
280
273
  super({
@@ -314,41 +307,35 @@ class CredentialReportNotReadyException extends IAMServiceException_1.IAMService
314
307
  }
315
308
  }
316
309
  exports.CredentialReportNotReadyException = CredentialReportNotReadyException;
317
- var ReportFormatType;
318
- (function (ReportFormatType) {
319
- ReportFormatType["text_csv"] = "text/csv";
320
- })(ReportFormatType = exports.ReportFormatType || (exports.ReportFormatType = {}));
321
- var SortKeyType;
322
- (function (SortKeyType) {
323
- SortKeyType["LAST_AUTHENTICATED_TIME_ASCENDING"] = "LAST_AUTHENTICATED_TIME_ASCENDING";
324
- SortKeyType["LAST_AUTHENTICATED_TIME_DESCENDING"] = "LAST_AUTHENTICATED_TIME_DESCENDING";
325
- SortKeyType["SERVICE_NAMESPACE_ASCENDING"] = "SERVICE_NAMESPACE_ASCENDING";
326
- SortKeyType["SERVICE_NAMESPACE_DESCENDING"] = "SERVICE_NAMESPACE_DESCENDING";
327
- })(SortKeyType = exports.SortKeyType || (exports.SortKeyType = {}));
328
- var JobStatusType;
329
- (function (JobStatusType) {
330
- JobStatusType["COMPLETED"] = "COMPLETED";
331
- JobStatusType["FAILED"] = "FAILED";
332
- JobStatusType["IN_PROGRESS"] = "IN_PROGRESS";
333
- })(JobStatusType = exports.JobStatusType || (exports.JobStatusType = {}));
334
- var PolicyOwnerEntityType;
335
- (function (PolicyOwnerEntityType) {
336
- PolicyOwnerEntityType["GROUP"] = "GROUP";
337
- PolicyOwnerEntityType["ROLE"] = "ROLE";
338
- PolicyOwnerEntityType["USER"] = "USER";
339
- })(PolicyOwnerEntityType = exports.PolicyOwnerEntityType || (exports.PolicyOwnerEntityType = {}));
340
- var DeletionTaskStatusType;
341
- (function (DeletionTaskStatusType) {
342
- DeletionTaskStatusType["FAILED"] = "FAILED";
343
- DeletionTaskStatusType["IN_PROGRESS"] = "IN_PROGRESS";
344
- DeletionTaskStatusType["NOT_STARTED"] = "NOT_STARTED";
345
- DeletionTaskStatusType["SUCCEEDED"] = "SUCCEEDED";
346
- })(DeletionTaskStatusType = exports.DeletionTaskStatusType || (exports.DeletionTaskStatusType = {}));
347
- var EncodingType;
348
- (function (EncodingType) {
349
- EncodingType["PEM"] = "PEM";
350
- EncodingType["SSH"] = "SSH";
351
- })(EncodingType = exports.EncodingType || (exports.EncodingType = {}));
310
+ exports.ReportFormatType = {
311
+ text_csv: "text/csv",
312
+ };
313
+ exports.SortKeyType = {
314
+ LAST_AUTHENTICATED_TIME_ASCENDING: "LAST_AUTHENTICATED_TIME_ASCENDING",
315
+ LAST_AUTHENTICATED_TIME_DESCENDING: "LAST_AUTHENTICATED_TIME_DESCENDING",
316
+ SERVICE_NAMESPACE_ASCENDING: "SERVICE_NAMESPACE_ASCENDING",
317
+ SERVICE_NAMESPACE_DESCENDING: "SERVICE_NAMESPACE_DESCENDING",
318
+ };
319
+ exports.JobStatusType = {
320
+ COMPLETED: "COMPLETED",
321
+ FAILED: "FAILED",
322
+ IN_PROGRESS: "IN_PROGRESS",
323
+ };
324
+ exports.PolicyOwnerEntityType = {
325
+ GROUP: "GROUP",
326
+ ROLE: "ROLE",
327
+ USER: "USER",
328
+ };
329
+ exports.DeletionTaskStatusType = {
330
+ FAILED: "FAILED",
331
+ IN_PROGRESS: "IN_PROGRESS",
332
+ NOT_STARTED: "NOT_STARTED",
333
+ SUCCEEDED: "SUCCEEDED",
334
+ };
335
+ exports.EncodingType = {
336
+ PEM: "PEM",
337
+ SSH: "SSH",
338
+ };
352
339
  class UnrecognizedPublicKeyEncodingException extends IAMServiceException_1.IAMServiceException {
353
340
  constructor(opts) {
354
341
  super({
@@ -362,27 +349,23 @@ class UnrecognizedPublicKeyEncodingException extends IAMServiceException_1.IAMSe
362
349
  }
363
350
  }
364
351
  exports.UnrecognizedPublicKeyEncodingException = UnrecognizedPublicKeyEncodingException;
365
- var PolicyUsageType;
366
- (function (PolicyUsageType) {
367
- PolicyUsageType["PermissionsBoundary"] = "PermissionsBoundary";
368
- PolicyUsageType["PermissionsPolicy"] = "PermissionsPolicy";
369
- })(PolicyUsageType = exports.PolicyUsageType || (exports.PolicyUsageType = {}));
370
- var PolicyScopeType;
371
- (function (PolicyScopeType) {
372
- PolicyScopeType["AWS"] = "AWS";
373
- PolicyScopeType["All"] = "All";
374
- PolicyScopeType["Local"] = "Local";
375
- })(PolicyScopeType = exports.PolicyScopeType || (exports.PolicyScopeType = {}));
376
- var PolicyType;
377
- (function (PolicyType) {
378
- PolicyType["INLINE"] = "INLINE";
379
- PolicyType["MANAGED"] = "MANAGED";
380
- })(PolicyType = exports.PolicyType || (exports.PolicyType = {}));
381
- var GlobalEndpointTokenVersion;
382
- (function (GlobalEndpointTokenVersion) {
383
- GlobalEndpointTokenVersion["v1Token"] = "v1Token";
384
- GlobalEndpointTokenVersion["v2Token"] = "v2Token";
385
- })(GlobalEndpointTokenVersion = exports.GlobalEndpointTokenVersion || (exports.GlobalEndpointTokenVersion = {}));
352
+ exports.PolicyUsageType = {
353
+ PermissionsBoundary: "PermissionsBoundary",
354
+ PermissionsPolicy: "PermissionsPolicy",
355
+ };
356
+ exports.PolicyScopeType = {
357
+ AWS: "AWS",
358
+ All: "All",
359
+ Local: "Local",
360
+ };
361
+ exports.PolicyType = {
362
+ INLINE: "INLINE",
363
+ MANAGED: "MANAGED",
364
+ };
365
+ exports.GlobalEndpointTokenVersion = {
366
+ v1Token: "v1Token",
367
+ v2Token: "v2Token",
368
+ };
386
369
  class PolicyEvaluationException extends IAMServiceException_1.IAMServiceException {
387
370
  constructor(opts) {
388
371
  super({
@@ -396,37 +379,34 @@ class PolicyEvaluationException extends IAMServiceException_1.IAMServiceExceptio
396
379
  }
397
380
  }
398
381
  exports.PolicyEvaluationException = PolicyEvaluationException;
399
- var ContextKeyTypeEnum;
400
- (function (ContextKeyTypeEnum) {
401
- ContextKeyTypeEnum["BINARY"] = "binary";
402
- ContextKeyTypeEnum["BINARY_LIST"] = "binaryList";
403
- ContextKeyTypeEnum["BOOLEAN"] = "boolean";
404
- ContextKeyTypeEnum["BOOLEAN_LIST"] = "booleanList";
405
- ContextKeyTypeEnum["DATE"] = "date";
406
- ContextKeyTypeEnum["DATE_LIST"] = "dateList";
407
- ContextKeyTypeEnum["IP"] = "ip";
408
- ContextKeyTypeEnum["IP_LIST"] = "ipList";
409
- ContextKeyTypeEnum["NUMERIC"] = "numeric";
410
- ContextKeyTypeEnum["NUMERIC_LIST"] = "numericList";
411
- ContextKeyTypeEnum["STRING"] = "string";
412
- ContextKeyTypeEnum["STRING_LIST"] = "stringList";
413
- })(ContextKeyTypeEnum = exports.ContextKeyTypeEnum || (exports.ContextKeyTypeEnum = {}));
414
- var PolicyEvaluationDecisionType;
415
- (function (PolicyEvaluationDecisionType) {
416
- PolicyEvaluationDecisionType["ALLOWED"] = "allowed";
417
- PolicyEvaluationDecisionType["EXPLICIT_DENY"] = "explicitDeny";
418
- PolicyEvaluationDecisionType["IMPLICIT_DENY"] = "implicitDeny";
419
- })(PolicyEvaluationDecisionType = exports.PolicyEvaluationDecisionType || (exports.PolicyEvaluationDecisionType = {}));
420
- var PolicySourceType;
421
- (function (PolicySourceType) {
422
- PolicySourceType["AWS_MANAGED"] = "aws-managed";
423
- PolicySourceType["GROUP"] = "group";
424
- PolicySourceType["NONE"] = "none";
425
- PolicySourceType["RESOURCE"] = "resource";
426
- PolicySourceType["ROLE"] = "role";
427
- PolicySourceType["USER"] = "user";
428
- PolicySourceType["USER_MANAGED"] = "user-managed";
429
- })(PolicySourceType = exports.PolicySourceType || (exports.PolicySourceType = {}));
382
+ exports.ContextKeyTypeEnum = {
383
+ BINARY: "binary",
384
+ BINARY_LIST: "binaryList",
385
+ BOOLEAN: "boolean",
386
+ BOOLEAN_LIST: "booleanList",
387
+ DATE: "date",
388
+ DATE_LIST: "dateList",
389
+ IP: "ip",
390
+ IP_LIST: "ipList",
391
+ NUMERIC: "numeric",
392
+ NUMERIC_LIST: "numericList",
393
+ STRING: "string",
394
+ STRING_LIST: "stringList",
395
+ };
396
+ exports.PolicyEvaluationDecisionType = {
397
+ ALLOWED: "allowed",
398
+ EXPLICIT_DENY: "explicitDeny",
399
+ IMPLICIT_DENY: "implicitDeny",
400
+ };
401
+ exports.PolicySourceType = {
402
+ AWS_MANAGED: "aws-managed",
403
+ GROUP: "group",
404
+ NONE: "none",
405
+ RESOURCE: "resource",
406
+ ROLE: "role",
407
+ USER: "user",
408
+ USER_MANAGED: "user-managed",
409
+ };
430
410
  const AccessKeyFilterSensitiveLog = (obj) => ({
431
411
  ...obj,
432
412
  ...(obj.SecretAccessKey && { SecretAccessKey: smithy_client_1.SENSITIVE_STRING }),