@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.
@@ -1,15 +1,13 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
2
  import { IAMServiceException as __BaseException } from "./IAMServiceException";
3
- export var AccessAdvisorUsageGranularityType;
4
- (function (AccessAdvisorUsageGranularityType) {
5
- AccessAdvisorUsageGranularityType["ACTION_LEVEL"] = "ACTION_LEVEL";
6
- AccessAdvisorUsageGranularityType["SERVICE_LEVEL"] = "SERVICE_LEVEL";
7
- })(AccessAdvisorUsageGranularityType || (AccessAdvisorUsageGranularityType = {}));
8
- export var StatusType;
9
- (function (StatusType) {
10
- StatusType["Active"] = "Active";
11
- StatusType["Inactive"] = "Inactive";
12
- })(StatusType || (StatusType = {}));
3
+ export const AccessAdvisorUsageGranularityType = {
4
+ ACTION_LEVEL: "ACTION_LEVEL",
5
+ SERVICE_LEVEL: "SERVICE_LEVEL",
6
+ };
7
+ export const StatusType = {
8
+ Active: "Active",
9
+ Inactive: "Inactive",
10
+ };
13
11
  export class InvalidInputException extends __BaseException {
14
12
  constructor(opts) {
15
13
  super({
@@ -82,16 +80,14 @@ export class UnmodifiableEntityException extends __BaseException {
82
80
  Object.setPrototypeOf(this, UnmodifiableEntityException.prototype);
83
81
  }
84
82
  }
85
- export var AssignmentStatusType;
86
- (function (AssignmentStatusType) {
87
- AssignmentStatusType["Any"] = "Any";
88
- AssignmentStatusType["Assigned"] = "Assigned";
89
- AssignmentStatusType["Unassigned"] = "Unassigned";
90
- })(AssignmentStatusType || (AssignmentStatusType = {}));
91
- export var PermissionsBoundaryAttachmentType;
92
- (function (PermissionsBoundaryAttachmentType) {
93
- PermissionsBoundaryAttachmentType["Policy"] = "PermissionsBoundaryPolicy";
94
- })(PermissionsBoundaryAttachmentType || (PermissionsBoundaryAttachmentType = {}));
83
+ export const AssignmentStatusType = {
84
+ Any: "Any",
85
+ Assigned: "Assigned",
86
+ Unassigned: "Unassigned",
87
+ };
88
+ export const PermissionsBoundaryAttachmentType = {
89
+ Policy: "PermissionsBoundaryPolicy",
90
+ };
95
91
  export class PolicyNotAttachableException extends __BaseException {
96
92
  constructor(opts) {
97
93
  super({
@@ -200,12 +196,11 @@ export class InvalidAuthenticationCodeException extends __BaseException {
200
196
  Object.setPrototypeOf(this, InvalidAuthenticationCodeException.prototype);
201
197
  }
202
198
  }
203
- export var ReportStateType;
204
- (function (ReportStateType) {
205
- ReportStateType["COMPLETE"] = "COMPLETE";
206
- ReportStateType["INPROGRESS"] = "INPROGRESS";
207
- ReportStateType["STARTED"] = "STARTED";
208
- })(ReportStateType || (ReportStateType = {}));
199
+ export const ReportStateType = {
200
+ COMPLETE: "COMPLETE",
201
+ INPROGRESS: "INPROGRESS",
202
+ STARTED: "STARTED",
203
+ };
209
204
  export class ReportGenerationLimitExceededException extends __BaseException {
210
205
  constructor(opts) {
211
206
  super({
@@ -218,43 +213,41 @@ export class ReportGenerationLimitExceededException extends __BaseException {
218
213
  Object.setPrototypeOf(this, ReportGenerationLimitExceededException.prototype);
219
214
  }
220
215
  }
221
- export var EntityType;
222
- (function (EntityType) {
223
- EntityType["AWSManagedPolicy"] = "AWSManagedPolicy";
224
- EntityType["Group"] = "Group";
225
- EntityType["LocalManagedPolicy"] = "LocalManagedPolicy";
226
- EntityType["Role"] = "Role";
227
- EntityType["User"] = "User";
228
- })(EntityType || (EntityType = {}));
229
- export var SummaryKeyType;
230
- (function (SummaryKeyType) {
231
- SummaryKeyType["AccessKeysPerUserQuota"] = "AccessKeysPerUserQuota";
232
- SummaryKeyType["AccountAccessKeysPresent"] = "AccountAccessKeysPresent";
233
- SummaryKeyType["AccountMFAEnabled"] = "AccountMFAEnabled";
234
- SummaryKeyType["AccountSigningCertificatesPresent"] = "AccountSigningCertificatesPresent";
235
- SummaryKeyType["AttachedPoliciesPerGroupQuota"] = "AttachedPoliciesPerGroupQuota";
236
- SummaryKeyType["AttachedPoliciesPerRoleQuota"] = "AttachedPoliciesPerRoleQuota";
237
- SummaryKeyType["AttachedPoliciesPerUserQuota"] = "AttachedPoliciesPerUserQuota";
238
- SummaryKeyType["GlobalEndpointTokenVersion"] = "GlobalEndpointTokenVersion";
239
- SummaryKeyType["GroupPolicySizeQuota"] = "GroupPolicySizeQuota";
240
- SummaryKeyType["Groups"] = "Groups";
241
- SummaryKeyType["GroupsPerUserQuota"] = "GroupsPerUserQuota";
242
- SummaryKeyType["GroupsQuota"] = "GroupsQuota";
243
- SummaryKeyType["MFADevices"] = "MFADevices";
244
- SummaryKeyType["MFADevicesInUse"] = "MFADevicesInUse";
245
- SummaryKeyType["Policies"] = "Policies";
246
- SummaryKeyType["PoliciesQuota"] = "PoliciesQuota";
247
- SummaryKeyType["PolicySizeQuota"] = "PolicySizeQuota";
248
- SummaryKeyType["PolicyVersionsInUse"] = "PolicyVersionsInUse";
249
- SummaryKeyType["PolicyVersionsInUseQuota"] = "PolicyVersionsInUseQuota";
250
- SummaryKeyType["ServerCertificates"] = "ServerCertificates";
251
- SummaryKeyType["ServerCertificatesQuota"] = "ServerCertificatesQuota";
252
- SummaryKeyType["SigningCertificatesPerUserQuota"] = "SigningCertificatesPerUserQuota";
253
- SummaryKeyType["UserPolicySizeQuota"] = "UserPolicySizeQuota";
254
- SummaryKeyType["Users"] = "Users";
255
- SummaryKeyType["UsersQuota"] = "UsersQuota";
256
- SummaryKeyType["VersionsPerPolicyQuota"] = "VersionsPerPolicyQuota";
257
- })(SummaryKeyType || (SummaryKeyType = {}));
216
+ export const EntityType = {
217
+ AWSManagedPolicy: "AWSManagedPolicy",
218
+ Group: "Group",
219
+ LocalManagedPolicy: "LocalManagedPolicy",
220
+ Role: "Role",
221
+ User: "User",
222
+ };
223
+ export const SummaryKeyType = {
224
+ AccessKeysPerUserQuota: "AccessKeysPerUserQuota",
225
+ AccountAccessKeysPresent: "AccountAccessKeysPresent",
226
+ AccountMFAEnabled: "AccountMFAEnabled",
227
+ AccountSigningCertificatesPresent: "AccountSigningCertificatesPresent",
228
+ AttachedPoliciesPerGroupQuota: "AttachedPoliciesPerGroupQuota",
229
+ AttachedPoliciesPerRoleQuota: "AttachedPoliciesPerRoleQuota",
230
+ AttachedPoliciesPerUserQuota: "AttachedPoliciesPerUserQuota",
231
+ GlobalEndpointTokenVersion: "GlobalEndpointTokenVersion",
232
+ GroupPolicySizeQuota: "GroupPolicySizeQuota",
233
+ Groups: "Groups",
234
+ GroupsPerUserQuota: "GroupsPerUserQuota",
235
+ GroupsQuota: "GroupsQuota",
236
+ MFADevices: "MFADevices",
237
+ MFADevicesInUse: "MFADevicesInUse",
238
+ Policies: "Policies",
239
+ PoliciesQuota: "PoliciesQuota",
240
+ PolicySizeQuota: "PolicySizeQuota",
241
+ PolicyVersionsInUse: "PolicyVersionsInUse",
242
+ PolicyVersionsInUseQuota: "PolicyVersionsInUseQuota",
243
+ ServerCertificates: "ServerCertificates",
244
+ ServerCertificatesQuota: "ServerCertificatesQuota",
245
+ SigningCertificatesPerUserQuota: "SigningCertificatesPerUserQuota",
246
+ UserPolicySizeQuota: "UserPolicySizeQuota",
247
+ Users: "Users",
248
+ UsersQuota: "UsersQuota",
249
+ VersionsPerPolicyQuota: "VersionsPerPolicyQuota",
250
+ };
258
251
  export class CredentialReportExpiredException extends __BaseException {
259
252
  constructor(opts) {
260
253
  super({
@@ -291,41 +284,35 @@ export class CredentialReportNotReadyException extends __BaseException {
291
284
  Object.setPrototypeOf(this, CredentialReportNotReadyException.prototype);
292
285
  }
293
286
  }
294
- export var ReportFormatType;
295
- (function (ReportFormatType) {
296
- ReportFormatType["text_csv"] = "text/csv";
297
- })(ReportFormatType || (ReportFormatType = {}));
298
- export var SortKeyType;
299
- (function (SortKeyType) {
300
- SortKeyType["LAST_AUTHENTICATED_TIME_ASCENDING"] = "LAST_AUTHENTICATED_TIME_ASCENDING";
301
- SortKeyType["LAST_AUTHENTICATED_TIME_DESCENDING"] = "LAST_AUTHENTICATED_TIME_DESCENDING";
302
- SortKeyType["SERVICE_NAMESPACE_ASCENDING"] = "SERVICE_NAMESPACE_ASCENDING";
303
- SortKeyType["SERVICE_NAMESPACE_DESCENDING"] = "SERVICE_NAMESPACE_DESCENDING";
304
- })(SortKeyType || (SortKeyType = {}));
305
- export var JobStatusType;
306
- (function (JobStatusType) {
307
- JobStatusType["COMPLETED"] = "COMPLETED";
308
- JobStatusType["FAILED"] = "FAILED";
309
- JobStatusType["IN_PROGRESS"] = "IN_PROGRESS";
310
- })(JobStatusType || (JobStatusType = {}));
311
- export var PolicyOwnerEntityType;
312
- (function (PolicyOwnerEntityType) {
313
- PolicyOwnerEntityType["GROUP"] = "GROUP";
314
- PolicyOwnerEntityType["ROLE"] = "ROLE";
315
- PolicyOwnerEntityType["USER"] = "USER";
316
- })(PolicyOwnerEntityType || (PolicyOwnerEntityType = {}));
317
- export var DeletionTaskStatusType;
318
- (function (DeletionTaskStatusType) {
319
- DeletionTaskStatusType["FAILED"] = "FAILED";
320
- DeletionTaskStatusType["IN_PROGRESS"] = "IN_PROGRESS";
321
- DeletionTaskStatusType["NOT_STARTED"] = "NOT_STARTED";
322
- DeletionTaskStatusType["SUCCEEDED"] = "SUCCEEDED";
323
- })(DeletionTaskStatusType || (DeletionTaskStatusType = {}));
324
- export var EncodingType;
325
- (function (EncodingType) {
326
- EncodingType["PEM"] = "PEM";
327
- EncodingType["SSH"] = "SSH";
328
- })(EncodingType || (EncodingType = {}));
287
+ export const ReportFormatType = {
288
+ text_csv: "text/csv",
289
+ };
290
+ export const SortKeyType = {
291
+ LAST_AUTHENTICATED_TIME_ASCENDING: "LAST_AUTHENTICATED_TIME_ASCENDING",
292
+ LAST_AUTHENTICATED_TIME_DESCENDING: "LAST_AUTHENTICATED_TIME_DESCENDING",
293
+ SERVICE_NAMESPACE_ASCENDING: "SERVICE_NAMESPACE_ASCENDING",
294
+ SERVICE_NAMESPACE_DESCENDING: "SERVICE_NAMESPACE_DESCENDING",
295
+ };
296
+ export const JobStatusType = {
297
+ COMPLETED: "COMPLETED",
298
+ FAILED: "FAILED",
299
+ IN_PROGRESS: "IN_PROGRESS",
300
+ };
301
+ export const PolicyOwnerEntityType = {
302
+ GROUP: "GROUP",
303
+ ROLE: "ROLE",
304
+ USER: "USER",
305
+ };
306
+ export const DeletionTaskStatusType = {
307
+ FAILED: "FAILED",
308
+ IN_PROGRESS: "IN_PROGRESS",
309
+ NOT_STARTED: "NOT_STARTED",
310
+ SUCCEEDED: "SUCCEEDED",
311
+ };
312
+ export const EncodingType = {
313
+ PEM: "PEM",
314
+ SSH: "SSH",
315
+ };
329
316
  export class UnrecognizedPublicKeyEncodingException extends __BaseException {
330
317
  constructor(opts) {
331
318
  super({
@@ -338,27 +325,23 @@ export class UnrecognizedPublicKeyEncodingException extends __BaseException {
338
325
  Object.setPrototypeOf(this, UnrecognizedPublicKeyEncodingException.prototype);
339
326
  }
340
327
  }
341
- export var PolicyUsageType;
342
- (function (PolicyUsageType) {
343
- PolicyUsageType["PermissionsBoundary"] = "PermissionsBoundary";
344
- PolicyUsageType["PermissionsPolicy"] = "PermissionsPolicy";
345
- })(PolicyUsageType || (PolicyUsageType = {}));
346
- export var PolicyScopeType;
347
- (function (PolicyScopeType) {
348
- PolicyScopeType["AWS"] = "AWS";
349
- PolicyScopeType["All"] = "All";
350
- PolicyScopeType["Local"] = "Local";
351
- })(PolicyScopeType || (PolicyScopeType = {}));
352
- export var PolicyType;
353
- (function (PolicyType) {
354
- PolicyType["INLINE"] = "INLINE";
355
- PolicyType["MANAGED"] = "MANAGED";
356
- })(PolicyType || (PolicyType = {}));
357
- export var GlobalEndpointTokenVersion;
358
- (function (GlobalEndpointTokenVersion) {
359
- GlobalEndpointTokenVersion["v1Token"] = "v1Token";
360
- GlobalEndpointTokenVersion["v2Token"] = "v2Token";
361
- })(GlobalEndpointTokenVersion || (GlobalEndpointTokenVersion = {}));
328
+ export const PolicyUsageType = {
329
+ PermissionsBoundary: "PermissionsBoundary",
330
+ PermissionsPolicy: "PermissionsPolicy",
331
+ };
332
+ export const PolicyScopeType = {
333
+ AWS: "AWS",
334
+ All: "All",
335
+ Local: "Local",
336
+ };
337
+ export const PolicyType = {
338
+ INLINE: "INLINE",
339
+ MANAGED: "MANAGED",
340
+ };
341
+ export const GlobalEndpointTokenVersion = {
342
+ v1Token: "v1Token",
343
+ v2Token: "v2Token",
344
+ };
362
345
  export class PolicyEvaluationException extends __BaseException {
363
346
  constructor(opts) {
364
347
  super({
@@ -371,37 +354,34 @@ export class PolicyEvaluationException extends __BaseException {
371
354
  Object.setPrototypeOf(this, PolicyEvaluationException.prototype);
372
355
  }
373
356
  }
374
- export var ContextKeyTypeEnum;
375
- (function (ContextKeyTypeEnum) {
376
- ContextKeyTypeEnum["BINARY"] = "binary";
377
- ContextKeyTypeEnum["BINARY_LIST"] = "binaryList";
378
- ContextKeyTypeEnum["BOOLEAN"] = "boolean";
379
- ContextKeyTypeEnum["BOOLEAN_LIST"] = "booleanList";
380
- ContextKeyTypeEnum["DATE"] = "date";
381
- ContextKeyTypeEnum["DATE_LIST"] = "dateList";
382
- ContextKeyTypeEnum["IP"] = "ip";
383
- ContextKeyTypeEnum["IP_LIST"] = "ipList";
384
- ContextKeyTypeEnum["NUMERIC"] = "numeric";
385
- ContextKeyTypeEnum["NUMERIC_LIST"] = "numericList";
386
- ContextKeyTypeEnum["STRING"] = "string";
387
- ContextKeyTypeEnum["STRING_LIST"] = "stringList";
388
- })(ContextKeyTypeEnum || (ContextKeyTypeEnum = {}));
389
- export var PolicyEvaluationDecisionType;
390
- (function (PolicyEvaluationDecisionType) {
391
- PolicyEvaluationDecisionType["ALLOWED"] = "allowed";
392
- PolicyEvaluationDecisionType["EXPLICIT_DENY"] = "explicitDeny";
393
- PolicyEvaluationDecisionType["IMPLICIT_DENY"] = "implicitDeny";
394
- })(PolicyEvaluationDecisionType || (PolicyEvaluationDecisionType = {}));
395
- export var PolicySourceType;
396
- (function (PolicySourceType) {
397
- PolicySourceType["AWS_MANAGED"] = "aws-managed";
398
- PolicySourceType["GROUP"] = "group";
399
- PolicySourceType["NONE"] = "none";
400
- PolicySourceType["RESOURCE"] = "resource";
401
- PolicySourceType["ROLE"] = "role";
402
- PolicySourceType["USER"] = "user";
403
- PolicySourceType["USER_MANAGED"] = "user-managed";
404
- })(PolicySourceType || (PolicySourceType = {}));
357
+ export const ContextKeyTypeEnum = {
358
+ BINARY: "binary",
359
+ BINARY_LIST: "binaryList",
360
+ BOOLEAN: "boolean",
361
+ BOOLEAN_LIST: "booleanList",
362
+ DATE: "date",
363
+ DATE_LIST: "dateList",
364
+ IP: "ip",
365
+ IP_LIST: "ipList",
366
+ NUMERIC: "numeric",
367
+ NUMERIC_LIST: "numericList",
368
+ STRING: "string",
369
+ STRING_LIST: "stringList",
370
+ };
371
+ export const PolicyEvaluationDecisionType = {
372
+ ALLOWED: "allowed",
373
+ EXPLICIT_DENY: "explicitDeny",
374
+ IMPLICIT_DENY: "implicitDeny",
375
+ };
376
+ export const PolicySourceType = {
377
+ AWS_MANAGED: "aws-managed",
378
+ GROUP: "group",
379
+ NONE: "none",
380
+ RESOURCE: "resource",
381
+ ROLE: "role",
382
+ USER: "user",
383
+ USER_MANAGED: "user-managed",
384
+ };
405
385
  export const AccessKeyFilterSensitiveLog = (obj) => ({
406
386
  ...obj,
407
387
  ...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }),