@aws-sdk/client-iam 3.52.0 → 3.54.1

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.
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AddClientIDToOpenIDConnectProviderCommandInput, AddClientIDToOpenIDConnectProviderCommandOutput } from "./commands/AddClientIDToOpenIDConnectProviderCommand";
10
10
  import { AddRoleToInstanceProfileCommandInput, AddRoleToInstanceProfileCommandOutput } from "./commands/AddRoleToInstanceProfileCommand";
11
11
  import { AddUserToGroupCommandInput, AddUserToGroupCommandOutput } from "./commands/AddUserToGroupCommand";
@@ -186,7 +186,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
186
186
  * A function that can calculate the length of a request body.
187
187
  * @internal
188
188
  */
189
- bodyLengthChecker?: (body: any) => number | undefined;
189
+ bodyLengthChecker?: __BodyLengthCalculator;
190
190
  /**
191
191
  * A function that converts a stream into an array of bytes.
192
192
  * @internal
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { IAMServiceException } from "./models/IAMServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from IAM service.
4
+ */
5
+ export declare class IAMServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { IAMServiceException as __BaseException } from "./IAMServiceException";
2
3
  export declare enum AccessAdvisorUsageGranularityType {
3
4
  ACTION_LEVEL = "ACTION_LEVEL",
4
5
  SERVICE_LEVEL = "SERVICE_LEVEL"
@@ -217,37 +218,49 @@ export declare namespace AddClientIDToOpenIDConnectProviderRequest {
217
218
  * <p>The request was rejected because an invalid or out-of-range value was supplied for an
218
219
  * input parameter.</p>
219
220
  */
220
- export interface InvalidInputException extends __SmithyException, $MetadataBearer {
221
- name: "InvalidInputException";
222
- $fault: "client";
223
- message?: string;
221
+ export declare class InvalidInputException extends __BaseException {
222
+ readonly name: "InvalidInputException";
223
+ readonly $fault: "client";
224
+ /**
225
+ * @internal
226
+ */
227
+ constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
224
228
  }
225
229
  /**
226
230
  * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
227
231
  * account limits. The error message describes the limit exceeded.</p>
228
232
  */
229
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
230
- name: "LimitExceededException";
231
- $fault: "client";
232
- message?: string;
233
+ export declare class LimitExceededException extends __BaseException {
234
+ readonly name: "LimitExceededException";
235
+ readonly $fault: "client";
236
+ /**
237
+ * @internal
238
+ */
239
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
233
240
  }
234
241
  /**
235
242
  * <p>The request was rejected because it referenced a resource entity that does not exist. The
236
243
  * error message describes the resource.</p>
237
244
  */
238
- export interface NoSuchEntityException extends __SmithyException, $MetadataBearer {
239
- name: "NoSuchEntityException";
240
- $fault: "client";
241
- message?: string;
245
+ export declare class NoSuchEntityException extends __BaseException {
246
+ readonly name: "NoSuchEntityException";
247
+ readonly $fault: "client";
248
+ /**
249
+ * @internal
250
+ */
251
+ constructor(opts: __ExceptionOptionType<NoSuchEntityException, __BaseException>);
242
252
  }
243
253
  /**
244
254
  * <p>The request processing has failed because of an unknown error, exception or
245
255
  * failure.</p>
246
256
  */
247
- export interface ServiceFailureException extends __SmithyException, $MetadataBearer {
248
- name: "ServiceFailureException";
249
- $fault: "server";
250
- message?: string;
257
+ export declare class ServiceFailureException extends __BaseException {
258
+ readonly name: "ServiceFailureException";
259
+ readonly $fault: "server";
260
+ /**
261
+ * @internal
262
+ */
263
+ constructor(opts: __ExceptionOptionType<ServiceFailureException, __BaseException>);
251
264
  }
252
265
  export interface AddRoleToInstanceProfileRequest {
253
266
  /**
@@ -273,10 +286,13 @@ export declare namespace AddRoleToInstanceProfileRequest {
273
286
  * <p>The request was rejected because it attempted to create a resource that already
274
287
  * exists.</p>
275
288
  */
276
- export interface EntityAlreadyExistsException extends __SmithyException, $MetadataBearer {
277
- name: "EntityAlreadyExistsException";
278
- $fault: "client";
279
- message?: string;
289
+ export declare class EntityAlreadyExistsException extends __BaseException {
290
+ readonly name: "EntityAlreadyExistsException";
291
+ readonly $fault: "client";
292
+ /**
293
+ * @internal
294
+ */
295
+ constructor(opts: __ExceptionOptionType<EntityAlreadyExistsException, __BaseException>);
280
296
  }
281
297
  /**
282
298
  * <p>The request was rejected because only the service that depends on the service-linked role
@@ -284,10 +300,13 @@ export interface EntityAlreadyExistsException extends __SmithyException, $Metada
284
300
  * service that depends on this service-linked role. You must request the change through that
285
301
  * service.</p>
286
302
  */
287
- export interface UnmodifiableEntityException extends __SmithyException, $MetadataBearer {
288
- name: "UnmodifiableEntityException";
289
- $fault: "client";
290
- message?: string;
303
+ export declare class UnmodifiableEntityException extends __BaseException {
304
+ readonly name: "UnmodifiableEntityException";
305
+ readonly $fault: "client";
306
+ /**
307
+ * @internal
308
+ */
309
+ constructor(opts: __ExceptionOptionType<UnmodifiableEntityException, __BaseException>);
291
310
  }
292
311
  export interface AddUserToGroupRequest {
293
312
  /**
@@ -386,10 +405,13 @@ export declare namespace AttachGroupPolicyRequest {
386
405
  * <p>The request failed because Amazon Web Services service role policies can only be attached to the
387
406
  * service-linked role for that service.</p>
388
407
  */
389
- export interface PolicyNotAttachableException extends __SmithyException, $MetadataBearer {
390
- name: "PolicyNotAttachableException";
391
- $fault: "client";
392
- message?: string;
408
+ export declare class PolicyNotAttachableException extends __BaseException {
409
+ readonly name: "PolicyNotAttachableException";
410
+ readonly $fault: "client";
411
+ /**
412
+ * @internal
413
+ */
414
+ constructor(opts: __ExceptionOptionType<PolicyNotAttachableException, __BaseException>);
393
415
  }
394
416
  export interface AttachRolePolicyRequest {
395
417
  /**
@@ -459,28 +481,37 @@ export declare namespace ChangePasswordRequest {
459
481
  * is likely to succeed if you try again after waiting several minutes. The error message
460
482
  * describes the entity.</p>
461
483
  */
462
- export interface EntityTemporarilyUnmodifiableException extends __SmithyException, $MetadataBearer {
463
- name: "EntityTemporarilyUnmodifiableException";
464
- $fault: "client";
465
- message?: string;
484
+ export declare class EntityTemporarilyUnmodifiableException extends __BaseException {
485
+ readonly name: "EntityTemporarilyUnmodifiableException";
486
+ readonly $fault: "client";
487
+ /**
488
+ * @internal
489
+ */
490
+ constructor(opts: __ExceptionOptionType<EntityTemporarilyUnmodifiableException, __BaseException>);
466
491
  }
467
492
  /**
468
493
  * <p>The request was rejected because the type of user for the transaction was
469
494
  * incorrect.</p>
470
495
  */
471
- export interface InvalidUserTypeException extends __SmithyException, $MetadataBearer {
472
- name: "InvalidUserTypeException";
473
- $fault: "client";
474
- message?: string;
496
+ export declare class InvalidUserTypeException extends __BaseException {
497
+ readonly name: "InvalidUserTypeException";
498
+ readonly $fault: "client";
499
+ /**
500
+ * @internal
501
+ */
502
+ constructor(opts: __ExceptionOptionType<InvalidUserTypeException, __BaseException>);
475
503
  }
476
504
  /**
477
505
  * <p>The request was rejected because the provided password did not meet the requirements
478
506
  * imposed by the account password policy.</p>
479
507
  */
480
- export interface PasswordPolicyViolationException extends __SmithyException, $MetadataBearer {
481
- name: "PasswordPolicyViolationException";
482
- $fault: "client";
483
- message?: string;
508
+ export declare class PasswordPolicyViolationException extends __BaseException {
509
+ readonly name: "PasswordPolicyViolationException";
510
+ readonly $fault: "client";
511
+ /**
512
+ * @internal
513
+ */
514
+ constructor(opts: __ExceptionOptionType<PasswordPolicyViolationException, __BaseException>);
484
515
  }
485
516
  export interface CreateAccessKeyRequest {
486
517
  /**
@@ -626,10 +657,13 @@ export declare namespace CreateGroupResponse {
626
657
  * <p>The request was rejected because multiple requests to change this object were submitted
627
658
  * simultaneously. Wait a few minutes and submit your request again.</p>
628
659
  */
629
- export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
630
- name: "ConcurrentModificationException";
631
- $fault: "client";
632
- message?: string;
660
+ export declare class ConcurrentModificationException extends __BaseException {
661
+ readonly name: "ConcurrentModificationException";
662
+ readonly $fault: "client";
663
+ /**
664
+ * @internal
665
+ */
666
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
633
667
  }
634
668
  /**
635
669
  * <p>A structure that represents user-provided metadata that can be associated with an IAM
@@ -1214,10 +1248,13 @@ export declare namespace CreatePolicyResponse {
1214
1248
  * <p>The request was rejected because the policy document was malformed. The error message
1215
1249
  * describes the specific error.</p>
1216
1250
  */
1217
- export interface MalformedPolicyDocumentException extends __SmithyException, $MetadataBearer {
1218
- name: "MalformedPolicyDocumentException";
1219
- $fault: "client";
1220
- message?: string;
1251
+ export declare class MalformedPolicyDocumentException extends __BaseException {
1252
+ readonly name: "MalformedPolicyDocumentException";
1253
+ readonly $fault: "client";
1254
+ /**
1255
+ * @internal
1256
+ */
1257
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
1221
1258
  }
1222
1259
  export interface CreatePolicyVersionRequest {
1223
1260
  /**
@@ -1614,10 +1651,13 @@ export declare namespace CreateServiceSpecificCredentialResponse {
1614
1651
  /**
1615
1652
  * <p>The specified service does not support service-specific credentials.</p>
1616
1653
  */
1617
- export interface ServiceNotSupportedException extends __SmithyException, $MetadataBearer {
1618
- name: "ServiceNotSupportedException";
1619
- $fault: "client";
1620
- message?: string;
1654
+ export declare class ServiceNotSupportedException extends __BaseException {
1655
+ readonly name: "ServiceNotSupportedException";
1656
+ readonly $fault: "client";
1657
+ /**
1658
+ * @internal
1659
+ */
1660
+ constructor(opts: __ExceptionOptionType<ServiceNotSupportedException, __BaseException>);
1621
1661
  }
1622
1662
  export interface CreateUserRequest {
1623
1663
  /**
@@ -1917,10 +1957,13 @@ export declare namespace DeleteAccountAliasRequest {
1917
1957
  * <p>The request was rejected because it attempted to delete a resource that has attached
1918
1958
  * subordinate entities. The error message describes these entities.</p>
1919
1959
  */
1920
- export interface DeleteConflictException extends __SmithyException, $MetadataBearer {
1921
- name: "DeleteConflictException";
1922
- $fault: "client";
1923
- message?: string;
1960
+ export declare class DeleteConflictException extends __BaseException {
1961
+ readonly name: "DeleteConflictException";
1962
+ readonly $fault: "client";
1963
+ /**
1964
+ * @internal
1965
+ */
1966
+ constructor(opts: __ExceptionOptionType<DeleteConflictException, __BaseException>);
1924
1967
  }
1925
1968
  export interface DeleteGroupRequest {
1926
1969
  /**
@@ -2370,10 +2413,13 @@ export declare namespace EnableMFADeviceRequest {
2370
2413
  * <p>The request was rejected because the authentication code was not recognized. The error
2371
2414
  * message describes the specific error.</p>
2372
2415
  */
2373
- export interface InvalidAuthenticationCodeException extends __SmithyException, $MetadataBearer {
2374
- name: "InvalidAuthenticationCodeException";
2375
- $fault: "client";
2376
- message?: string;
2416
+ export declare class InvalidAuthenticationCodeException extends __BaseException {
2417
+ readonly name: "InvalidAuthenticationCodeException";
2418
+ readonly $fault: "client";
2419
+ /**
2420
+ * @internal
2421
+ */
2422
+ constructor(opts: __ExceptionOptionType<InvalidAuthenticationCodeException, __BaseException>);
2377
2423
  }
2378
2424
  export declare enum ReportStateType {
2379
2425
  COMPLETE = "COMPLETE",
@@ -2440,10 +2486,13 @@ export declare namespace GenerateOrganizationsAccessReportResponse {
2440
2486
  * <p>The request failed because the maximum number of concurrent requests for this account are
2441
2487
  * already running.</p>
2442
2488
  */
2443
- export interface ReportGenerationLimitExceededException extends __SmithyException, $MetadataBearer {
2444
- name: "ReportGenerationLimitExceededException";
2445
- $fault: "client";
2446
- message?: string;
2489
+ export declare class ReportGenerationLimitExceededException extends __BaseException {
2490
+ readonly name: "ReportGenerationLimitExceededException";
2491
+ readonly $fault: "client";
2492
+ /**
2493
+ * @internal
2494
+ */
2495
+ constructor(opts: __ExceptionOptionType<ReportGenerationLimitExceededException, __BaseException>);
2447
2496
  }
2448
2497
  export interface GenerateServiceLastAccessedDetailsRequest {
2449
2498
  /**
@@ -3083,27 +3132,36 @@ export declare namespace GetContextKeysForPrincipalPolicyRequest {
3083
3132
  * information about credential report expiration, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html">Getting credential reports</a> in the
3084
3133
  * <i>IAM User Guide</i>.</p>
3085
3134
  */
3086
- export interface CredentialReportExpiredException extends __SmithyException, $MetadataBearer {
3087
- name: "CredentialReportExpiredException";
3088
- $fault: "client";
3089
- message?: string;
3135
+ export declare class CredentialReportExpiredException extends __BaseException {
3136
+ readonly name: "CredentialReportExpiredException";
3137
+ readonly $fault: "client";
3138
+ /**
3139
+ * @internal
3140
+ */
3141
+ constructor(opts: __ExceptionOptionType<CredentialReportExpiredException, __BaseException>);
3090
3142
  }
3091
3143
  /**
3092
3144
  * <p>The request was rejected because the credential report does not exist. To generate a
3093
3145
  * credential report, use <a>GenerateCredentialReport</a>.</p>
3094
3146
  */
3095
- export interface CredentialReportNotPresentException extends __SmithyException, $MetadataBearer {
3096
- name: "CredentialReportNotPresentException";
3097
- $fault: "client";
3098
- message?: string;
3147
+ export declare class CredentialReportNotPresentException extends __BaseException {
3148
+ readonly name: "CredentialReportNotPresentException";
3149
+ readonly $fault: "client";
3150
+ /**
3151
+ * @internal
3152
+ */
3153
+ constructor(opts: __ExceptionOptionType<CredentialReportNotPresentException, __BaseException>);
3099
3154
  }
3100
3155
  /**
3101
3156
  * <p>The request was rejected because the credential report is still being generated.</p>
3102
3157
  */
3103
- export interface CredentialReportNotReadyException extends __SmithyException, $MetadataBearer {
3104
- name: "CredentialReportNotReadyException";
3105
- $fault: "client";
3106
- message?: string;
3158
+ export declare class CredentialReportNotReadyException extends __BaseException {
3159
+ readonly name: "CredentialReportNotReadyException";
3160
+ readonly $fault: "client";
3161
+ /**
3162
+ * @internal
3163
+ */
3164
+ constructor(opts: __ExceptionOptionType<CredentialReportNotReadyException, __BaseException>);
3107
3165
  }
3108
3166
  export declare type ReportFormatType = "text/csv";
3109
3167
  /**
@@ -4281,10 +4339,13 @@ export declare namespace GetSSHPublicKeyResponse {
4281
4339
  * <p>The request was rejected because the public key encoding format is unsupported or
4282
4340
  * unrecognized.</p>
4283
4341
  */
4284
- export interface UnrecognizedPublicKeyEncodingException extends __SmithyException, $MetadataBearer {
4285
- name: "UnrecognizedPublicKeyEncodingException";
4286
- $fault: "client";
4287
- message?: string;
4342
+ export declare class UnrecognizedPublicKeyEncodingException extends __BaseException {
4343
+ readonly name: "UnrecognizedPublicKeyEncodingException";
4344
+ readonly $fault: "client";
4345
+ /**
4346
+ * @internal
4347
+ */
4348
+ constructor(opts: __ExceptionOptionType<UnrecognizedPublicKeyEncodingException, __BaseException>);
4288
4349
  }
4289
4350
  export interface GetUserRequest {
4290
4351
  /**
@@ -7164,10 +7225,13 @@ export declare namespace SetSecurityTokenServicePreferencesRequest {
7164
7225
  * <p>The request failed because a provided policy could not be successfully evaluated. An
7165
7226
  * additional detailed message indicates the source of the failure.</p>
7166
7227
  */
7167
- export interface PolicyEvaluationException extends __SmithyException, $MetadataBearer {
7168
- name: "PolicyEvaluationException";
7169
- $fault: "server";
7170
- message?: string;
7228
+ export declare class PolicyEvaluationException extends __BaseException {
7229
+ readonly name: "PolicyEvaluationException";
7230
+ readonly $fault: "server";
7231
+ /**
7232
+ * @internal
7233
+ */
7234
+ constructor(opts: __ExceptionOptionType<PolicyEvaluationException, __BaseException>);
7171
7235
  }
7172
7236
  export declare enum ContextKeyTypeEnum {
7173
7237
  BINARY = "binary",
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { IAMServiceException as __BaseException } from "./IAMServiceException";
2
3
  import { Role, ServerCertificateMetadata, SigningCertificate, SSHPublicKey, StatusType, Tag } from "./models_0";
3
4
  export interface UntagPolicyRequest {
4
5
  /**
@@ -590,19 +591,25 @@ export declare namespace UpdateUserRequest {
590
591
  * <p>The request was rejected because the public key certificate and the private key do not
591
592
  * match.</p>
592
593
  */
593
- export interface KeyPairMismatchException extends __SmithyException, $MetadataBearer {
594
- name: "KeyPairMismatchException";
595
- $fault: "client";
596
- message?: string;
594
+ export declare class KeyPairMismatchException extends __BaseException {
595
+ readonly name: "KeyPairMismatchException";
596
+ readonly $fault: "client";
597
+ /**
598
+ * @internal
599
+ */
600
+ constructor(opts: __ExceptionOptionType<KeyPairMismatchException, __BaseException>);
597
601
  }
598
602
  /**
599
603
  * <p>The request was rejected because the certificate was malformed or expired. The error
600
604
  * message describes the specific error.</p>
601
605
  */
602
- export interface MalformedCertificateException extends __SmithyException, $MetadataBearer {
603
- name: "MalformedCertificateException";
604
- $fault: "client";
605
- message?: string;
606
+ export declare class MalformedCertificateException extends __BaseException {
607
+ readonly name: "MalformedCertificateException";
608
+ readonly $fault: "client";
609
+ /**
610
+ * @internal
611
+ */
612
+ constructor(opts: __ExceptionOptionType<MalformedCertificateException, __BaseException>);
606
613
  }
607
614
  export interface UploadServerCertificateRequest {
608
615
  /**
@@ -733,18 +740,24 @@ export declare namespace UploadServerCertificateResponse {
733
740
  * <p>The request was rejected because the same certificate is associated with an IAM user in
734
741
  * the account.</p>
735
742
  */
736
- export interface DuplicateCertificateException extends __SmithyException, $MetadataBearer {
737
- name: "DuplicateCertificateException";
738
- $fault: "client";
739
- message?: string;
743
+ export declare class DuplicateCertificateException extends __BaseException {
744
+ readonly name: "DuplicateCertificateException";
745
+ readonly $fault: "client";
746
+ /**
747
+ * @internal
748
+ */
749
+ constructor(opts: __ExceptionOptionType<DuplicateCertificateException, __BaseException>);
740
750
  }
741
751
  /**
742
752
  * <p>The request was rejected because the certificate is invalid.</p>
743
753
  */
744
- export interface InvalidCertificateException extends __SmithyException, $MetadataBearer {
745
- name: "InvalidCertificateException";
746
- $fault: "client";
747
- message?: string;
754
+ export declare class InvalidCertificateException extends __BaseException {
755
+ readonly name: "InvalidCertificateException";
756
+ readonly $fault: "client";
757
+ /**
758
+ * @internal
759
+ */
760
+ constructor(opts: __ExceptionOptionType<InvalidCertificateException, __BaseException>);
748
761
  }
749
762
  export interface UploadSigningCertificateRequest {
750
763
  /**
@@ -800,18 +813,24 @@ export declare namespace UploadSigningCertificateResponse {
800
813
  * <p>The request was rejected because the SSH public key is already associated with the
801
814
  * specified IAM user.</p>
802
815
  */
803
- export interface DuplicateSSHPublicKeyException extends __SmithyException, $MetadataBearer {
804
- name: "DuplicateSSHPublicKeyException";
805
- $fault: "client";
806
- message?: string;
816
+ export declare class DuplicateSSHPublicKeyException extends __BaseException {
817
+ readonly name: "DuplicateSSHPublicKeyException";
818
+ readonly $fault: "client";
819
+ /**
820
+ * @internal
821
+ */
822
+ constructor(opts: __ExceptionOptionType<DuplicateSSHPublicKeyException, __BaseException>);
807
823
  }
808
824
  /**
809
825
  * <p>The request was rejected because the public key is malformed or otherwise invalid.</p>
810
826
  */
811
- export interface InvalidPublicKeyException extends __SmithyException, $MetadataBearer {
812
- name: "InvalidPublicKeyException";
813
- $fault: "client";
814
- message?: string;
827
+ export declare class InvalidPublicKeyException extends __BaseException {
828
+ readonly name: "InvalidPublicKeyException";
829
+ readonly $fault: "client";
830
+ /**
831
+ * @internal
832
+ */
833
+ constructor(opts: __ExceptionOptionType<InvalidPublicKeyException, __BaseException>);
815
834
  }
816
835
  export interface UploadSSHPublicKeyRequest {
817
836
  /**
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IAMClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IAMClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IAMClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AddClientIDToOpenIDConnectProviderCommandInput, AddClientIDToOpenIDConnectProviderCommandOutput } from "./commands/AddClientIDToOpenIDConnectProviderCommand";
10
10
  import { AddRoleToInstanceProfileCommandInput, AddRoleToInstanceProfileCommandOutput } from "./commands/AddRoleToInstanceProfileCommand";
11
11
  import { AddUserToGroupCommandInput, AddUserToGroupCommandOutput } from "./commands/AddUserToGroupCommand";
@@ -174,7 +174,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
174
174
 
175
175
  urlParser?: __UrlParser;
176
176
 
177
- bodyLengthChecker?: (body: any) => number | undefined;
177
+ bodyLengthChecker?: __BodyLengthCalculator;
178
178
 
179
179
  streamCollector?: __StreamCollector;
180
180
 
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { IAMServiceException } from "./models/IAMServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class IAMServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }