@aws-sdk/client-iot 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.
Files changed (32) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/IoTServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +308 -6
  5. package/dist-cjs/models/models_1.js +32 -5
  6. package/dist-cjs/models/models_2.js +82 -3
  7. package/dist-cjs/protocols/Aws_restJson1.js +2544 -9978
  8. package/dist-es/index.js +1 -0
  9. package/dist-es/models/IoTServiceException.js +12 -0
  10. package/dist-es/models/models_0.js +280 -1
  11. package/dist-es/models/models_1.js +26 -1
  12. package/dist-es/models/models_2.js +74 -1
  13. package/dist-es/protocols/Aws_restJson1.js +5589 -10955
  14. package/dist-types/IoTClient.d.ts +2 -2
  15. package/dist-types/index.d.ts +1 -0
  16. package/dist-types/models/IoTServiceException.d.ts +10 -0
  17. package/dist-types/models/models_0.d.ts +123 -116
  18. package/dist-types/models/models_1.d.ts +14 -10
  19. package/dist-types/models/models_2.d.ts +34 -30
  20. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  21. package/dist-types/runtimeConfig.d.ts +1 -1
  22. package/dist-types/runtimeConfig.native.d.ts +1 -1
  23. package/dist-types/ts3.4/IoTClient.d.ts +2 -2
  24. package/dist-types/ts3.4/index.d.ts +1 -0
  25. package/dist-types/ts3.4/models/IoTServiceException.d.ts +6 -0
  26. package/dist-types/ts3.4/models/models_0.d.ts +97 -94
  27. package/dist-types/ts3.4/models/models_1.d.ts +11 -9
  28. package/dist-types/ts3.4/models/models_2.d.ts +27 -25
  29. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  30. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  31. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  32. package/package.json +27 -27
@@ -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 { AcceptCertificateTransferCommandInput, AcceptCertificateTransferCommandOutput } from "./commands/AcceptCertificateTransferCommand";
10
10
  import { AddThingToBillingGroupCommandInput, AddThingToBillingGroupCommandOutput } from "./commands/AddThingToBillingGroupCommand";
11
11
  import { AddThingToThingGroupCommandInput, AddThingToThingGroupCommandOutput } from "./commands/AddThingToThingGroupCommand";
@@ -264,7 +264,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
264
264
  * A function that can calculate the length of a request body.
265
265
  * @internal
266
266
  */
267
- bodyLengthChecker?: (body: any) => number | undefined;
267
+ bodyLengthChecker?: __BodyLengthCalculator;
268
268
  /**
269
269
  * A function that converts a stream into an array of bytes.
270
270
  * @internal
@@ -3,3 +3,4 @@ export * from "./IoTClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { IoTServiceException } from "./models/IoTServiceException";
@@ -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 IoT service.
4
+ */
5
+ export declare class IoTServiceException 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 { IoTServiceException as __BaseException } from "./IoTServiceException";
2
3
  export declare enum AbortAction {
3
4
  CANCEL = "CANCEL"
4
5
  }
@@ -75,80 +76,80 @@ export declare namespace AcceptCertificateTransferRequest {
75
76
  /**
76
77
  * <p>An unexpected error has occurred.</p>
77
78
  */
78
- export interface InternalFailureException extends __SmithyException, $MetadataBearer {
79
- name: "InternalFailureException";
80
- $fault: "server";
79
+ export declare class InternalFailureException extends __BaseException {
80
+ readonly name: "InternalFailureException";
81
+ readonly $fault: "server";
81
82
  /**
82
- * <p>The message for the exception.</p>
83
+ * @internal
83
84
  */
84
- message?: string;
85
+ constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
85
86
  }
86
87
  /**
87
88
  * <p>The request is not valid.</p>
88
89
  */
89
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
90
- name: "InvalidRequestException";
91
- $fault: "client";
90
+ export declare class InvalidRequestException extends __BaseException {
91
+ readonly name: "InvalidRequestException";
92
+ readonly $fault: "client";
92
93
  /**
93
- * <p>The message for the exception.</p>
94
+ * @internal
94
95
  */
95
- message?: string;
96
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
96
97
  }
97
98
  /**
98
99
  * <p>The specified resource does not exist.</p>
99
100
  */
100
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
101
- name: "ResourceNotFoundException";
102
- $fault: "client";
101
+ export declare class ResourceNotFoundException extends __BaseException {
102
+ readonly name: "ResourceNotFoundException";
103
+ readonly $fault: "client";
103
104
  /**
104
- * <p>The message for the exception.</p>
105
+ * @internal
105
106
  */
106
- message?: string;
107
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
107
108
  }
108
109
  /**
109
110
  * <p>The service is temporarily unavailable.</p>
110
111
  */
111
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
112
- name: "ServiceUnavailableException";
113
- $fault: "server";
112
+ export declare class ServiceUnavailableException extends __BaseException {
113
+ readonly name: "ServiceUnavailableException";
114
+ readonly $fault: "server";
114
115
  /**
115
- * <p>The message for the exception.</p>
116
+ * @internal
116
117
  */
117
- message?: string;
118
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
118
119
  }
119
120
  /**
120
121
  * <p>The rate exceeds the limit.</p>
121
122
  */
122
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
123
- name: "ThrottlingException";
124
- $fault: "client";
123
+ export declare class ThrottlingException extends __BaseException {
124
+ readonly name: "ThrottlingException";
125
+ readonly $fault: "client";
125
126
  /**
126
- * <p>The message for the exception.</p>
127
+ * @internal
127
128
  */
128
- message?: string;
129
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
129
130
  }
130
131
  /**
131
132
  * <p>You can't revert the certificate transfer because the transfer is already
132
133
  * complete.</p>
133
134
  */
134
- export interface TransferAlreadyCompletedException extends __SmithyException, $MetadataBearer {
135
- name: "TransferAlreadyCompletedException";
136
- $fault: "client";
135
+ export declare class TransferAlreadyCompletedException extends __BaseException {
136
+ readonly name: "TransferAlreadyCompletedException";
137
+ readonly $fault: "client";
137
138
  /**
138
- * <p>The message for the exception.</p>
139
+ * @internal
139
140
  */
140
- message?: string;
141
+ constructor(opts: __ExceptionOptionType<TransferAlreadyCompletedException, __BaseException>);
141
142
  }
142
143
  /**
143
144
  * <p>You are not authorized to perform this operation.</p>
144
145
  */
145
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
146
- name: "UnauthorizedException";
147
- $fault: "client";
146
+ export declare class UnauthorizedException extends __BaseException {
147
+ readonly name: "UnauthorizedException";
148
+ readonly $fault: "client";
148
149
  /**
149
- * <p>The message for the exception.</p>
150
+ * @internal
150
151
  */
151
- message?: string;
152
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
152
153
  }
153
154
  /**
154
155
  * <p>Describes an action that updates a CloudWatch alarm.</p>
@@ -1801,13 +1802,13 @@ export declare namespace AssociateTargetsWithJobResponse {
1801
1802
  /**
1802
1803
  * <p>A limit has been exceeded.</p>
1803
1804
  */
1804
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
1805
- name: "LimitExceededException";
1806
- $fault: "client";
1805
+ export declare class LimitExceededException extends __BaseException {
1806
+ readonly name: "LimitExceededException";
1807
+ readonly $fault: "client";
1807
1808
  /**
1808
- * <p>The message for the exception.</p>
1809
+ * @internal
1809
1810
  */
1810
- message?: string;
1811
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
1811
1812
  }
1812
1813
  export interface AttachPolicyRequest {
1813
1814
  /**
@@ -1874,13 +1875,13 @@ export declare namespace AttachSecurityProfileResponse {
1874
1875
  * <code>expectedVersion</code> parameter does not match the latest version in the
1875
1876
  * system.</p>
1876
1877
  */
1877
- export interface VersionConflictException extends __SmithyException, $MetadataBearer {
1878
- name: "VersionConflictException";
1879
- $fault: "client";
1878
+ export declare class VersionConflictException extends __BaseException {
1879
+ readonly name: "VersionConflictException";
1880
+ readonly $fault: "client";
1880
1881
  /**
1881
- * <p>The message for the exception.</p>
1882
+ * @internal
1882
1883
  */
1883
- message?: string;
1884
+ constructor(opts: __ExceptionOptionType<VersionConflictException, __BaseException>);
1884
1885
  }
1885
1886
  /**
1886
1887
  * <p>The input for the AttachThingPrincipal operation.</p>
@@ -2830,13 +2831,13 @@ export declare namespace CancelJobExecutionRequest {
2830
2831
  * job execution which is "IN_PROGRESS" without setting the <code>force</code>
2831
2832
  * parameter.</p>
2832
2833
  */
2833
- export interface InvalidStateTransitionException extends __SmithyException, $MetadataBearer {
2834
- name: "InvalidStateTransitionException";
2835
- $fault: "client";
2834
+ export declare class InvalidStateTransitionException extends __BaseException {
2835
+ readonly name: "InvalidStateTransitionException";
2836
+ readonly $fault: "client";
2836
2837
  /**
2837
- * <p>The message for the exception.</p>
2838
+ * @internal
2838
2839
  */
2839
- message?: string;
2840
+ constructor(opts: __ExceptionOptionType<InvalidStateTransitionException, __BaseException>);
2840
2841
  }
2841
2842
  export interface ClearDefaultAuthorizerRequest {
2842
2843
  }
@@ -2878,24 +2879,24 @@ export declare namespace ConfirmTopicRuleDestinationResponse {
2878
2879
  * <p>A conflicting resource update exception. This exception is thrown when two pending
2879
2880
  * updates cause a conflict.</p>
2880
2881
  */
2881
- export interface ConflictingResourceUpdateException extends __SmithyException, $MetadataBearer {
2882
- name: "ConflictingResourceUpdateException";
2883
- $fault: "client";
2882
+ export declare class ConflictingResourceUpdateException extends __BaseException {
2883
+ readonly name: "ConflictingResourceUpdateException";
2884
+ readonly $fault: "client";
2884
2885
  /**
2885
- * <p>The message for the exception.</p>
2886
+ * @internal
2886
2887
  */
2887
- message?: string;
2888
+ constructor(opts: __ExceptionOptionType<ConflictingResourceUpdateException, __BaseException>);
2888
2889
  }
2889
2890
  /**
2890
2891
  * <p>An unexpected error has occurred.</p>
2891
2892
  */
2892
- export interface InternalException extends __SmithyException, $MetadataBearer {
2893
- name: "InternalException";
2894
- $fault: "server";
2893
+ export declare class InternalException extends __BaseException {
2894
+ readonly name: "InternalException";
2895
+ readonly $fault: "server";
2895
2896
  /**
2896
- * <p>The message for the exception.</p>
2897
+ * @internal
2897
2898
  */
2898
- message?: string;
2899
+ constructor(opts: __ExceptionOptionType<InternalException, __BaseException>);
2899
2900
  }
2900
2901
  export interface CreateAuditSuppressionRequest {
2901
2902
  /**
@@ -2952,13 +2953,9 @@ export declare namespace CreateAuditSuppressionResponse {
2952
2953
  /**
2953
2954
  * <p>The resource already exists.</p>
2954
2955
  */
2955
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
2956
- name: "ResourceAlreadyExistsException";
2957
- $fault: "client";
2958
- /**
2959
- * <p>The message for the exception.</p>
2960
- */
2961
- message?: string;
2956
+ export declare class ResourceAlreadyExistsException extends __BaseException {
2957
+ readonly name: "ResourceAlreadyExistsException";
2958
+ readonly $fault: "client";
2962
2959
  /**
2963
2960
  * <p>The ID of the resource that caused the exception.</p>
2964
2961
  */
@@ -2967,6 +2964,10 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
2967
2964
  * <p>The ARN of the resource that caused the exception.</p>
2968
2965
  */
2969
2966
  resourceArn?: string;
2967
+ /**
2968
+ * @internal
2969
+ */
2970
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
2970
2971
  }
2971
2972
  /**
2972
2973
  * <p>A set of key/value pairs that are used to manage the resource.</p>
@@ -3281,13 +3282,13 @@ export declare namespace CreateDimensionResponse {
3281
3282
  /**
3282
3283
  * <p>The certificate is invalid.</p>
3283
3284
  */
3284
- export interface CertificateValidationException extends __SmithyException, $MetadataBearer {
3285
- name: "CertificateValidationException";
3286
- $fault: "client";
3285
+ export declare class CertificateValidationException extends __BaseException {
3286
+ readonly name: "CertificateValidationException";
3287
+ readonly $fault: "client";
3287
3288
  /**
3288
- * <p>Additional information about the exception.</p>
3289
+ * @internal
3289
3290
  */
3290
- message?: string;
3291
+ constructor(opts: __ExceptionOptionType<CertificateValidationException, __BaseException>);
3291
3292
  }
3292
3293
  export declare enum ServiceType {
3293
3294
  CREDENTIAL_PROVIDER = "CREDENTIAL_PROVIDER",
@@ -3452,13 +3453,13 @@ export declare namespace CreateDynamicThingGroupResponse {
3452
3453
  /**
3453
3454
  * <p>The query is invalid.</p>
3454
3455
  */
3455
- export interface InvalidQueryException extends __SmithyException, $MetadataBearer {
3456
- name: "InvalidQueryException";
3457
- $fault: "client";
3456
+ export declare class InvalidQueryException extends __BaseException {
3457
+ readonly name: "InvalidQueryException";
3458
+ readonly $fault: "client";
3458
3459
  /**
3459
- * <p>The message for the exception.</p>
3460
+ * @internal
3460
3461
  */
3461
- message?: string;
3462
+ constructor(opts: __ExceptionOptionType<InvalidQueryException, __BaseException>);
3462
3463
  }
3463
3464
  export declare enum FleetMetricUnit {
3464
3465
  Bits = "Bits",
@@ -3557,21 +3558,24 @@ export declare namespace CreateFleetMetricResponse {
3557
3558
  /**
3558
3559
  * <p>The index is not ready.</p>
3559
3560
  */
3560
- export interface IndexNotReadyException extends __SmithyException, $MetadataBearer {
3561
- name: "IndexNotReadyException";
3562
- $fault: "client";
3561
+ export declare class IndexNotReadyException extends __BaseException {
3562
+ readonly name: "IndexNotReadyException";
3563
+ readonly $fault: "client";
3563
3564
  /**
3564
- * <p>The message for the exception.</p>
3565
+ * @internal
3565
3566
  */
3566
- message?: string;
3567
+ constructor(opts: __ExceptionOptionType<IndexNotReadyException, __BaseException>);
3567
3568
  }
3568
3569
  /**
3569
3570
  * <p>The aggregation is invalid.</p>
3570
3571
  */
3571
- export interface InvalidAggregationException extends __SmithyException, $MetadataBearer {
3572
- name: "InvalidAggregationException";
3573
- $fault: "client";
3574
- message?: string;
3572
+ export declare class InvalidAggregationException extends __BaseException {
3573
+ readonly name: "InvalidAggregationException";
3574
+ readonly $fault: "client";
3575
+ /**
3576
+ * @internal
3577
+ */
3578
+ constructor(opts: __ExceptionOptionType<InvalidAggregationException, __BaseException>);
3575
3579
  }
3576
3580
  export declare enum RetryableFailureType {
3577
3581
  ALL = "ALL",
@@ -3843,10 +3847,13 @@ export declare namespace CreateJobResponse {
3843
3847
  /**
3844
3848
  * <p>A resource with the same name already exists.</p>
3845
3849
  */
3846
- export interface ConflictException extends __SmithyException, $MetadataBearer {
3847
- name: "ConflictException";
3848
- $fault: "client";
3849
- message?: string;
3850
+ export declare class ConflictException extends __BaseException {
3851
+ readonly name: "ConflictException";
3852
+ readonly $fault: "client";
3853
+ /**
3854
+ * @internal
3855
+ */
3856
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
3850
3857
  }
3851
3858
  export interface CreateJobTemplateRequest {
3852
3859
  /**
@@ -4754,13 +4761,13 @@ export declare namespace CreatePolicyResponse {
4754
4761
  /**
4755
4762
  * <p>The policy documentation is not valid.</p>
4756
4763
  */
4757
- export interface MalformedPolicyException extends __SmithyException, $MetadataBearer {
4758
- name: "MalformedPolicyException";
4759
- $fault: "client";
4764
+ export declare class MalformedPolicyException extends __BaseException {
4765
+ readonly name: "MalformedPolicyException";
4766
+ readonly $fault: "client";
4760
4767
  /**
4761
- * <p>The message for the exception.</p>
4768
+ * @internal
4762
4769
  */
4763
- message?: string;
4770
+ constructor(opts: __ExceptionOptionType<MalformedPolicyException, __BaseException>);
4764
4771
  }
4765
4772
  /**
4766
4773
  * <p>The input for the CreatePolicyVersion operation.</p>
@@ -4818,13 +4825,13 @@ export declare namespace CreatePolicyVersionResponse {
4818
4825
  /**
4819
4826
  * <p>The number of policy versions exceeds the limit.</p>
4820
4827
  */
4821
- export interface VersionsLimitExceededException extends __SmithyException, $MetadataBearer {
4822
- name: "VersionsLimitExceededException";
4823
- $fault: "client";
4828
+ export declare class VersionsLimitExceededException extends __BaseException {
4829
+ readonly name: "VersionsLimitExceededException";
4830
+ readonly $fault: "client";
4824
4831
  /**
4825
- * <p>The message for the exception.</p>
4832
+ * @internal
4826
4833
  */
4827
- message?: string;
4834
+ constructor(opts: __ExceptionOptionType<VersionsLimitExceededException, __BaseException>);
4828
4835
  }
4829
4836
  export interface CreateProvisioningClaimRequest {
4830
4837
  /**
@@ -5485,13 +5492,13 @@ export declare namespace CreateTopicRuleRequest {
5485
5492
  /**
5486
5493
  * <p>The Rule-SQL expression can't be parsed correctly.</p>
5487
5494
  */
5488
- export interface SqlParseException extends __SmithyException, $MetadataBearer {
5489
- name: "SqlParseException";
5490
- $fault: "client";
5495
+ export declare class SqlParseException extends __BaseException {
5496
+ readonly name: "SqlParseException";
5497
+ readonly $fault: "client";
5491
5498
  /**
5492
- * <p>The message for the exception.</p>
5499
+ * @internal
5493
5500
  */
5494
- message?: string;
5501
+ constructor(opts: __ExceptionOptionType<SqlParseException, __BaseException>);
5495
5502
  }
5496
5503
  /**
5497
5504
  * <p>HTTP URL destination configuration used by the topic rule's HTTP action.</p>
@@ -5770,13 +5777,13 @@ export declare namespace DeleteAuthorizerResponse {
5770
5777
  * <p>You can't delete the resource because it is attached to one or more
5771
5778
  * resources.</p>
5772
5779
  */
5773
- export interface DeleteConflictException extends __SmithyException, $MetadataBearer {
5774
- name: "DeleteConflictException";
5775
- $fault: "client";
5780
+ export declare class DeleteConflictException extends __BaseException {
5781
+ readonly name: "DeleteConflictException";
5782
+ readonly $fault: "client";
5776
5783
  /**
5777
- * <p>The message for the exception.</p>
5784
+ * @internal
5778
5785
  */
5779
- message?: string;
5786
+ constructor(opts: __ExceptionOptionType<DeleteConflictException, __BaseException>);
5780
5787
  }
5781
5788
  export interface DeleteBillingGroupRequest {
5782
5789
  /**
@@ -5808,13 +5815,13 @@ export declare namespace DeleteBillingGroupResponse {
5808
5815
  /**
5809
5816
  * <p>The certificate operation is not allowed.</p>
5810
5817
  */
5811
- export interface CertificateStateException extends __SmithyException, $MetadataBearer {
5812
- name: "CertificateStateException";
5813
- $fault: "client";
5818
+ export declare class CertificateStateException extends __BaseException {
5819
+ readonly name: "CertificateStateException";
5820
+ readonly $fault: "client";
5814
5821
  /**
5815
- * <p>The message for the exception.</p>
5822
+ * @internal
5816
5823
  */
5817
- message?: string;
5824
+ constructor(opts: __ExceptionOptionType<CertificateStateException, __BaseException>);
5818
5825
  }
5819
5826
  /**
5820
5827
  * <p>Input for the DeleteCACertificate operation.</p>
@@ -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 { IoTServiceException as __BaseException } from "./IoTServiceException";
2
3
  import { AbortConfig, Action, ActiveViolation, AggregationType, AlertTarget, AuditCheckConfiguration, AuditCheckDetails, AuditFinding, AuditFrequency, AuditMitigationActionExecutionMetadata, AuditMitigationActionsExecutionStatus, AuditMitigationActionsTaskMetadata, AuditMitigationActionsTaskStatus, AuditMitigationActionsTaskTarget, AuditNotificationTarget, AuditSuppression, AuditTaskMetadata, AuditTaskStatus, AuditTaskType, AuthorizerConfig, AuthorizerDescription, AuthorizerStatus, AuthorizerSummary, AutoRegistrationStatus, AwsJobExecutionsRolloutConfig, AwsJobPresignedUrlConfig, Behavior, BillingGroupProperties, CustomMetricType, DayOfWeek, DimensionType, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MetricToRetain, MitigationActionParams, OTAUpdateFile, OTAUpdateStatus, Policy, PresignedUrlConfig, Protocol, ProvisioningHook, ResourceIdentifier, ServiceType, StreamFile, Tag, TargetSelection, TaskStatisticsForAuditCheck, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TopicRuleDestination, VerificationState } from "./models_0";
3
4
  export interface DeleteScheduledAuditRequest {
4
5
  /**
@@ -2021,10 +2022,13 @@ export declare namespace DescribeManagedJobTemplateResponse {
2021
2022
  * <p>Internal error from the service that indicates an unexpected error or that the service
2022
2023
  * is unavailable.</p>
2023
2024
  */
2024
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
2025
- name: "InternalServerException";
2026
- $fault: "server";
2027
- message?: string;
2025
+ export declare class InternalServerException extends __BaseException {
2026
+ readonly name: "InternalServerException";
2027
+ readonly $fault: "server";
2028
+ /**
2029
+ * @internal
2030
+ */
2031
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
2028
2032
  }
2029
2033
  export interface DescribeMitigationActionRequest {
2030
2034
  /**
@@ -3965,13 +3969,13 @@ export declare namespace GetV2LoggingOptionsResponse {
3965
3969
  /**
3966
3970
  * <p>The resource is not configured.</p>
3967
3971
  */
3968
- export interface NotConfiguredException extends __SmithyException, $MetadataBearer {
3969
- name: "NotConfiguredException";
3970
- $fault: "client";
3972
+ export declare class NotConfiguredException extends __BaseException {
3973
+ readonly name: "NotConfiguredException";
3974
+ readonly $fault: "client";
3971
3975
  /**
3972
- * <p>The message for the exception.</p>
3976
+ * @internal
3973
3977
  */
3974
- message?: string;
3978
+ constructor(opts: __ExceptionOptionType<NotConfiguredException, __BaseException>);
3975
3979
  }
3976
3980
  export declare enum BehaviorCriteriaType {
3977
3981
  MACHINE_LEARNING = "MACHINE_LEARNING",
@@ -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 { IoTServiceException as __BaseException } from "./IoTServiceException";
2
3
  import { AbortConfig, AggregationType, AlertTarget, AttributePayload, AuditCheckConfiguration, AuditFrequency, AuditMitigationActionsTaskTarget, AuditNotificationTarget, AuthInfo, AuthorizerConfig, AuthorizerStatus, AuthResult, AutoRegistrationStatus, Behavior, BillingGroupProperties, CustomMetricType, DayOfWeek, DimensionType, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MetricToRetain, MetricValue, MitigationActionParams, PresignedUrlConfig, ProvisioningHook, ResourceIdentifier, StreamFile, Tag, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TopicRuleDestinationStatus, TopicRulePayload, VerificationState, ViolationEventAdditionalInfo } from "./models_0";
3
4
  import { BehaviorCriteriaType, CACertificateStatus, CertificateStatus, Configuration, DetectMitigationActionsTaskTarget, DomainConfigurationStatus, LogTargetType, RegistrationConfig, ReportType, Status, ThingGroupIndexingConfiguration, ThingIndexingConfiguration, ThingTypeMetadata, ViolationEventOccurrenceRange } from "./models_1";
4
5
  export interface ListThingRegistrationTaskReportsRequest {
@@ -853,26 +854,26 @@ export declare namespace RegisterCACertificateResponse {
853
854
  /**
854
855
  * <p>The registration code is invalid.</p>
855
856
  */
856
- export interface RegistrationCodeValidationException extends __SmithyException, $MetadataBearer {
857
- name: "RegistrationCodeValidationException";
858
- $fault: "client";
857
+ export declare class RegistrationCodeValidationException extends __BaseException {
858
+ readonly name: "RegistrationCodeValidationException";
859
+ readonly $fault: "client";
859
860
  /**
860
- * <p>Additional information about the exception.</p>
861
+ * @internal
861
862
  */
862
- message?: string;
863
+ constructor(opts: __ExceptionOptionType<RegistrationCodeValidationException, __BaseException>);
863
864
  }
864
865
  /**
865
866
  * <p>Unable to verify the CA certificate used to sign the device certificate you are
866
867
  * attempting to register. This is happens when you have registered more than one CA
867
868
  * certificate that has the same subject field and public key.</p>
868
869
  */
869
- export interface CertificateConflictException extends __SmithyException, $MetadataBearer {
870
- name: "CertificateConflictException";
871
- $fault: "client";
870
+ export declare class CertificateConflictException extends __BaseException {
871
+ readonly name: "CertificateConflictException";
872
+ readonly $fault: "client";
872
873
  /**
873
- * <p>The message for the exception.</p>
874
+ * @internal
874
875
  */
875
- message?: string;
876
+ constructor(opts: __ExceptionOptionType<CertificateConflictException, __BaseException>);
876
877
  }
877
878
  /**
878
879
  * <p>The input to the RegisterCertificate operation.</p>
@@ -994,13 +995,13 @@ export declare namespace RegisterThingResponse {
994
995
  /**
995
996
  * <p>The resource registration failed.</p>
996
997
  */
997
- export interface ResourceRegistrationFailureException extends __SmithyException, $MetadataBearer {
998
- name: "ResourceRegistrationFailureException";
999
- $fault: "client";
998
+ export declare class ResourceRegistrationFailureException extends __BaseException {
999
+ readonly name: "ResourceRegistrationFailureException";
1000
+ readonly $fault: "client";
1000
1001
  /**
1001
- * <p>The message for the exception.</p>
1002
+ * @internal
1002
1003
  */
1003
- message?: string;
1004
+ constructor(opts: __ExceptionOptionType<ResourceRegistrationFailureException, __BaseException>);
1004
1005
  }
1005
1006
  /**
1006
1007
  * <p>The input for the RejectCertificateTransfer operation.</p>
@@ -1424,10 +1425,13 @@ export declare namespace StartAuditMitigationActionsTaskResponse {
1424
1425
  * This exception occurs if you attempt to start a task with the same task-id as an existing task but with a different clientRequestToken.
1425
1426
  * </p>
1426
1427
  */
1427
- export interface TaskAlreadyExistsException extends __SmithyException, $MetadataBearer {
1428
- name: "TaskAlreadyExistsException";
1429
- $fault: "client";
1430
- message?: string;
1428
+ export declare class TaskAlreadyExistsException extends __BaseException {
1429
+ readonly name: "TaskAlreadyExistsException";
1430
+ readonly $fault: "client";
1431
+ /**
1432
+ * @internal
1433
+ */
1434
+ constructor(opts: __ExceptionOptionType<TaskAlreadyExistsException, __BaseException>);
1431
1435
  }
1432
1436
  export interface StartDetectMitigationActionsTaskRequest {
1433
1437
  /**
@@ -1652,13 +1656,13 @@ export declare namespace TestAuthorizationResponse {
1652
1656
  /**
1653
1657
  * <p>The response is invalid.</p>
1654
1658
  */
1655
- export interface InvalidResponseException extends __SmithyException, $MetadataBearer {
1656
- name: "InvalidResponseException";
1657
- $fault: "client";
1659
+ export declare class InvalidResponseException extends __BaseException {
1660
+ readonly name: "InvalidResponseException";
1661
+ readonly $fault: "client";
1658
1662
  /**
1659
- * <p>The message for the exception.</p>
1663
+ * @internal
1660
1664
  */
1661
- message?: string;
1665
+ constructor(opts: __ExceptionOptionType<InvalidResponseException, __BaseException>);
1662
1666
  }
1663
1667
  /**
1664
1668
  * <p>Specifies the HTTP context to use for the test authorizer request.</p>
@@ -1823,13 +1827,13 @@ export declare namespace TransferCertificateResponse {
1823
1827
  * <p>You can't transfer the certificate because authorization policies are still
1824
1828
  * attached.</p>
1825
1829
  */
1826
- export interface TransferConflictException extends __SmithyException, $MetadataBearer {
1827
- name: "TransferConflictException";
1828
- $fault: "client";
1830
+ export declare class TransferConflictException extends __BaseException {
1831
+ readonly name: "TransferConflictException";
1832
+ readonly $fault: "client";
1829
1833
  /**
1830
- * <p>The message for the exception.</p>
1834
+ * @internal
1831
1835
  */
1832
- message?: string;
1836
+ constructor(opts: __ExceptionOptionType<TransferConflictException, __BaseException>);
1833
1837
  }
1834
1838
  export interface UntagResourceRequest {
1835
1839
  /**
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
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: IoTClientConfig) => {
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>;