@aws-sdk/client-iot 3.43.0 → 3.47.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist-cjs/commands/DeleteScheduledAuditCommand.js +3 -3
  3. package/dist-cjs/commands/DeleteSecurityProfileCommand.js +1 -2
  4. package/dist-cjs/commands/ListThingRegistrationTaskReportsCommand.js +3 -3
  5. package/dist-cjs/commands/ListThingRegistrationTasksCommand.js +3 -3
  6. package/dist-cjs/commands/ListThingsCommand.js +1 -2
  7. package/dist-cjs/endpoints.js +1 -28
  8. package/dist-cjs/models/models_0.js +20 -158
  9. package/dist-cjs/models/models_1.js +34 -48
  10. package/dist-cjs/models/models_2.js +33 -39
  11. package/dist-cjs/protocols/Aws_restJson1.js +81 -0
  12. package/dist-cjs/runtimeConfig.browser.js +7 -2
  13. package/dist-cjs/runtimeConfig.js +9 -3
  14. package/dist-es/commands/DeleteScheduledAuditCommand.js +1 -1
  15. package/dist-es/commands/DeleteSecurityProfileCommand.js +1 -2
  16. package/dist-es/commands/ListThingRegistrationTaskReportsCommand.js +1 -1
  17. package/dist-es/commands/ListThingRegistrationTasksCommand.js +1 -1
  18. package/dist-es/commands/ListThingsCommand.js +1 -2
  19. package/dist-es/endpoints.js +1 -28
  20. package/dist-es/models/models_0.js +14 -104
  21. package/dist-es/models/models_1.js +22 -28
  22. package/dist-es/models/models_2.js +20 -24
  23. package/dist-es/protocols/Aws_restJson1.js +82 -14
  24. package/dist-es/runtimeConfig.browser.js +12 -3
  25. package/dist-es/runtimeConfig.js +13 -6
  26. package/dist-types/IoTClient.d.ts +5 -1
  27. package/dist-types/commands/DeleteScheduledAuditCommand.d.ts +1 -1
  28. package/dist-types/commands/DeleteSecurityProfileCommand.d.ts +1 -2
  29. package/dist-types/commands/ListThingRegistrationTaskReportsCommand.d.ts +1 -1
  30. package/dist-types/commands/ListThingRegistrationTasksCommand.d.ts +1 -1
  31. package/dist-types/commands/ListThingsCommand.d.ts +1 -2
  32. package/dist-types/models/models_0.d.ts +61 -173
  33. package/dist-types/models/models_1.d.ts +101 -138
  34. package/dist-types/models/models_2.d.ts +146 -40
  35. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  36. package/dist-types/runtimeConfig.d.ts +4 -3
  37. package/dist-types/runtimeConfig.native.d.ts +1 -0
  38. package/dist-types/ts3.4/IoTClient.d.ts +3 -1
  39. package/dist-types/ts3.4/commands/DeleteScheduledAuditCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/DeleteSecurityProfileCommand.d.ts +1 -2
  41. package/dist-types/ts3.4/commands/ListThingRegistrationTaskReportsCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/ListThingRegistrationTasksCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/ListThingsCommand.d.ts +1 -2
  44. package/dist-types/ts3.4/models/models_0.d.ts +31 -114
  45. package/dist-types/ts3.4/models/models_1.d.ts +45 -76
  46. package/dist-types/ts3.4/models/models_2.d.ts +75 -26
  47. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  48. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  49. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  50. package/package.json +38 -45
@@ -83,12 +83,6 @@ export interface InternalFailureException extends __SmithyException, $MetadataBe
83
83
  */
84
84
  message?: string;
85
85
  }
86
- export declare namespace InternalFailureException {
87
- /**
88
- * @internal
89
- */
90
- const filterSensitiveLog: (obj: InternalFailureException) => any;
91
- }
92
86
  /**
93
87
  * <p>The request is not valid.</p>
94
88
  */
@@ -100,12 +94,6 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
100
94
  */
101
95
  message?: string;
102
96
  }
103
- export declare namespace InvalidRequestException {
104
- /**
105
- * @internal
106
- */
107
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
108
- }
109
97
  /**
110
98
  * <p>The specified resource does not exist.</p>
111
99
  */
@@ -117,12 +105,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
117
105
  */
118
106
  message?: string;
119
107
  }
120
- export declare namespace ResourceNotFoundException {
121
- /**
122
- * @internal
123
- */
124
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
125
- }
126
108
  /**
127
109
  * <p>The service is temporarily unavailable.</p>
128
110
  */
@@ -134,12 +116,6 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
134
116
  */
135
117
  message?: string;
136
118
  }
137
- export declare namespace ServiceUnavailableException {
138
- /**
139
- * @internal
140
- */
141
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
142
- }
143
119
  /**
144
120
  * <p>The rate exceeds the limit.</p>
145
121
  */
@@ -151,12 +127,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
151
127
  */
152
128
  message?: string;
153
129
  }
154
- export declare namespace ThrottlingException {
155
- /**
156
- * @internal
157
- */
158
- const filterSensitiveLog: (obj: ThrottlingException) => any;
159
- }
160
130
  /**
161
131
  * <p>You can't revert the certificate transfer because the transfer is already
162
132
  * complete.</p>
@@ -169,12 +139,6 @@ export interface TransferAlreadyCompletedException extends __SmithyException, $M
169
139
  */
170
140
  message?: string;
171
141
  }
172
- export declare namespace TransferAlreadyCompletedException {
173
- /**
174
- * @internal
175
- */
176
- const filterSensitiveLog: (obj: TransferAlreadyCompletedException) => any;
177
- }
178
142
  /**
179
143
  * <p>You are not authorized to perform this operation.</p>
180
144
  */
@@ -186,12 +150,6 @@ export interface UnauthorizedException extends __SmithyException, $MetadataBeare
186
150
  */
187
151
  message?: string;
188
152
  }
189
- export declare namespace UnauthorizedException {
190
- /**
191
- * @internal
192
- */
193
- const filterSensitiveLog: (obj: UnauthorizedException) => any;
194
- }
195
153
  /**
196
154
  * <p>Describes an action that updates a CloudWatch alarm.</p>
197
155
  */
@@ -1851,12 +1809,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
1851
1809
  */
1852
1810
  message?: string;
1853
1811
  }
1854
- export declare namespace LimitExceededException {
1855
- /**
1856
- * @internal
1857
- */
1858
- const filterSensitiveLog: (obj: LimitExceededException) => any;
1859
- }
1860
1812
  export interface AttachPolicyRequest {
1861
1813
  /**
1862
1814
  * <p>The name of the policy to attach.</p>
@@ -1930,12 +1882,6 @@ export interface VersionConflictException extends __SmithyException, $MetadataBe
1930
1882
  */
1931
1883
  message?: string;
1932
1884
  }
1933
- export declare namespace VersionConflictException {
1934
- /**
1935
- * @internal
1936
- */
1937
- const filterSensitiveLog: (obj: VersionConflictException) => any;
1938
- }
1939
1885
  /**
1940
1886
  * <p>The input for the AttachThingPrincipal operation.</p>
1941
1887
  */
@@ -2586,6 +2532,12 @@ export interface AuthorizerDescription {
2586
2532
  * <p>Specifies whether IoT validates the token signature in an authorization request.</p>
2587
2533
  */
2588
2534
  signingDisabled?: boolean;
2535
+ /**
2536
+ * <p>When <code>true</code>, the result from the authorizer’s Lambda function is
2537
+ * cached for the time specified in <code>refreshAfterInSeconds</code>. The cached
2538
+ * result is used while the device reuses the same HTTP connection.</p>
2539
+ */
2540
+ enableCachingForHttp?: boolean;
2589
2541
  }
2590
2542
  export declare namespace AuthorizerDescription {
2591
2543
  /**
@@ -2886,12 +2838,6 @@ export interface InvalidStateTransitionException extends __SmithyException, $Met
2886
2838
  */
2887
2839
  message?: string;
2888
2840
  }
2889
- export declare namespace InvalidStateTransitionException {
2890
- /**
2891
- * @internal
2892
- */
2893
- const filterSensitiveLog: (obj: InvalidStateTransitionException) => any;
2894
- }
2895
2841
  export interface ClearDefaultAuthorizerRequest {
2896
2842
  }
2897
2843
  export declare namespace ClearDefaultAuthorizerRequest {
@@ -2940,12 +2886,6 @@ export interface ConflictingResourceUpdateException extends __SmithyException, $
2940
2886
  */
2941
2887
  message?: string;
2942
2888
  }
2943
- export declare namespace ConflictingResourceUpdateException {
2944
- /**
2945
- * @internal
2946
- */
2947
- const filterSensitiveLog: (obj: ConflictingResourceUpdateException) => any;
2948
- }
2949
2889
  /**
2950
2890
  * <p>An unexpected error has occurred.</p>
2951
2891
  */
@@ -2957,12 +2897,6 @@ export interface InternalException extends __SmithyException, $MetadataBearer {
2957
2897
  */
2958
2898
  message?: string;
2959
2899
  }
2960
- export declare namespace InternalException {
2961
- /**
2962
- * @internal
2963
- */
2964
- const filterSensitiveLog: (obj: InternalException) => any;
2965
- }
2966
2900
  export interface CreateAuditSuppressionRequest {
2967
2901
  /**
2968
2902
  * <p>An audit check name. Checks must be enabled
@@ -3034,12 +2968,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
3034
2968
  */
3035
2969
  resourceArn?: string;
3036
2970
  }
3037
- export declare namespace ResourceAlreadyExistsException {
3038
- /**
3039
- * @internal
3040
- */
3041
- const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
3042
- }
3043
2971
  /**
3044
2972
  * <p>A set of key/value pairs that are used to manage the resource.</p>
3045
2973
  */
@@ -3098,6 +3026,14 @@ export interface CreateAuthorizerRequest {
3098
3026
  * <p>Specifies whether IoT validates the token signature in an authorization request.</p>
3099
3027
  */
3100
3028
  signingDisabled?: boolean;
3029
+ /**
3030
+ * <p>When <code>true</code>, the result from the authorizer’s Lambda function is
3031
+ * cached for clients that use persistent HTTP connections. The results are cached for the time
3032
+ * specified by the Lambda function in <code>refreshAfterInSeconds</code>. This value
3033
+ * does not affect authorization of clients that use MQTT connections.</p>
3034
+ * <p>The default value is <code>false</code>.</p>
3035
+ */
3036
+ enableCachingForHttp?: boolean;
3101
3037
  }
3102
3038
  export declare namespace CreateAuthorizerRequest {
3103
3039
  /**
@@ -3353,12 +3289,6 @@ export interface CertificateValidationException extends __SmithyException, $Meta
3353
3289
  */
3354
3290
  message?: string;
3355
3291
  }
3356
- export declare namespace CertificateValidationException {
3357
- /**
3358
- * @internal
3359
- */
3360
- const filterSensitiveLog: (obj: CertificateValidationException) => any;
3361
- }
3362
3292
  export declare enum ServiceType {
3363
3293
  CREDENTIAL_PROVIDER = "CREDENTIAL_PROVIDER",
3364
3294
  DATA = "DATA",
@@ -3530,12 +3460,6 @@ export interface InvalidQueryException extends __SmithyException, $MetadataBeare
3530
3460
  */
3531
3461
  message?: string;
3532
3462
  }
3533
- export declare namespace InvalidQueryException {
3534
- /**
3535
- * @internal
3536
- */
3537
- const filterSensitiveLog: (obj: InvalidQueryException) => any;
3538
- }
3539
3463
  export declare enum FleetMetricUnit {
3540
3464
  Bits = "Bits",
3541
3465
  BitsSecond = "Bits/Second",
@@ -3641,12 +3565,6 @@ export interface IndexNotReadyException extends __SmithyException, $MetadataBear
3641
3565
  */
3642
3566
  message?: string;
3643
3567
  }
3644
- export declare namespace IndexNotReadyException {
3645
- /**
3646
- * @internal
3647
- */
3648
- const filterSensitiveLog: (obj: IndexNotReadyException) => any;
3649
- }
3650
3568
  /**
3651
3569
  * <p>The aggregation is invalid.</p>
3652
3570
  */
@@ -3655,11 +3573,47 @@ export interface InvalidAggregationException extends __SmithyException, $Metadat
3655
3573
  $fault: "client";
3656
3574
  message?: string;
3657
3575
  }
3658
- export declare namespace InvalidAggregationException {
3576
+ export declare enum RetryableFailureType {
3577
+ ALL = "ALL",
3578
+ FAILED = "FAILED",
3579
+ TIMED_OUT = "TIMED_OUT"
3580
+ }
3581
+ /**
3582
+ * <p>The criteria that determines how many retries are allowed for each failure
3583
+ * type for a job.</p>
3584
+ */
3585
+ export interface RetryCriteria {
3586
+ /**
3587
+ * <p>The type of job execution failures that can initiate a job retry.</p>
3588
+ */
3589
+ failureType: RetryableFailureType | string | undefined;
3590
+ /**
3591
+ * <p>The number of retries allowed for a failure type for the job.</p>
3592
+ */
3593
+ numberOfRetries: number | undefined;
3594
+ }
3595
+ export declare namespace RetryCriteria {
3596
+ /**
3597
+ * @internal
3598
+ */
3599
+ const filterSensitiveLog: (obj: RetryCriteria) => any;
3600
+ }
3601
+ /**
3602
+ * <p>The configuration that determines how many retries are allowed for each failure
3603
+ * type for a job.</p>
3604
+ */
3605
+ export interface JobExecutionsRetryConfig {
3606
+ /**
3607
+ * <p>The list of criteria that determines how many retries are allowed for each failure
3608
+ * type for a job.</p>
3609
+ */
3610
+ criteriaList: RetryCriteria[] | undefined;
3611
+ }
3612
+ export declare namespace JobExecutionsRetryConfig {
3659
3613
  /**
3660
3614
  * @internal
3661
3615
  */
3662
- const filterSensitiveLog: (obj: InvalidAggregationException) => any;
3616
+ const filterSensitiveLog: (obj: JobExecutionsRetryConfig) => any;
3663
3617
  }
3664
3618
  /**
3665
3619
  * <p>Allows you to define a criteria to initiate the increase in rate of rollout for a job.</p>
@@ -3819,7 +3773,7 @@ export interface CreateJobRequest {
3819
3773
  */
3820
3774
  jobExecutionsRolloutConfig?: JobExecutionsRolloutConfig;
3821
3775
  /**
3822
- * <p>Allows you to create criteria to abort a job.</p>
3776
+ * <p>Allows you to create the criteria to abort a job.</p>
3823
3777
  */
3824
3778
  abortConfig?: AbortConfig;
3825
3779
  /**
@@ -3849,6 +3803,10 @@ export interface CreateJobRequest {
3849
3803
  * <p>The ARN of the job template used to create the job.</p>
3850
3804
  */
3851
3805
  jobTemplateArn?: string;
3806
+ /**
3807
+ * <p>Allows you to create the criteria to retry a job.</p>
3808
+ */
3809
+ jobExecutionsRetryConfig?: JobExecutionsRetryConfig;
3852
3810
  /**
3853
3811
  * <p>Parameters of a managed template that you can specify to create the job document.</p>
3854
3812
  */
@@ -3890,12 +3848,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
3890
3848
  $fault: "client";
3891
3849
  message?: string;
3892
3850
  }
3893
- export declare namespace ConflictException {
3894
- /**
3895
- * @internal
3896
- */
3897
- const filterSensitiveLog: (obj: ConflictException) => any;
3898
- }
3899
3851
  export interface CreateJobTemplateRequest {
3900
3852
  /**
3901
3853
  * <p>A unique identifier for the job template. We recommend using a UUID. Alpha-numeric
@@ -3949,6 +3901,10 @@ export interface CreateJobTemplateRequest {
3949
3901
  * <p>Metadata that can be used to manage the job template.</p>
3950
3902
  */
3951
3903
  tags?: Tag[];
3904
+ /**
3905
+ * <p>Allows you to create the criteria to retry a job.</p>
3906
+ */
3907
+ jobExecutionsRetryConfig?: JobExecutionsRetryConfig;
3952
3908
  }
3953
3909
  export declare namespace CreateJobTemplateRequest {
3954
3910
  /**
@@ -4806,12 +4762,6 @@ export interface MalformedPolicyException extends __SmithyException, $MetadataBe
4806
4762
  */
4807
4763
  message?: string;
4808
4764
  }
4809
- export declare namespace MalformedPolicyException {
4810
- /**
4811
- * @internal
4812
- */
4813
- const filterSensitiveLog: (obj: MalformedPolicyException) => any;
4814
- }
4815
4765
  /**
4816
4766
  * <p>The input for the CreatePolicyVersion operation.</p>
4817
4767
  */
@@ -4876,12 +4826,6 @@ export interface VersionsLimitExceededException extends __SmithyException, $Meta
4876
4826
  */
4877
4827
  message?: string;
4878
4828
  }
4879
- export declare namespace VersionsLimitExceededException {
4880
- /**
4881
- * @internal
4882
- */
4883
- const filterSensitiveLog: (obj: VersionsLimitExceededException) => any;
4884
- }
4885
4829
  export interface CreateProvisioningClaimRequest {
4886
4830
  /**
4887
4831
  * <p>The name of the provisioning template to use.</p>
@@ -5549,12 +5493,6 @@ export interface SqlParseException extends __SmithyException, $MetadataBearer {
5549
5493
  */
5550
5494
  message?: string;
5551
5495
  }
5552
- export declare namespace SqlParseException {
5553
- /**
5554
- * @internal
5555
- */
5556
- const filterSensitiveLog: (obj: SqlParseException) => any;
5557
- }
5558
5496
  /**
5559
5497
  * <p>HTTP URL destination configuration used by the topic rule's HTTP action.</p>
5560
5498
  */
@@ -5840,12 +5778,6 @@ export interface DeleteConflictException extends __SmithyException, $MetadataBea
5840
5778
  */
5841
5779
  message?: string;
5842
5780
  }
5843
- export declare namespace DeleteConflictException {
5844
- /**
5845
- * @internal
5846
- */
5847
- const filterSensitiveLog: (obj: DeleteConflictException) => any;
5848
- }
5849
5781
  export interface DeleteBillingGroupRequest {
5850
5782
  /**
5851
5783
  * <p>The name of the billing group.</p>
@@ -5884,12 +5816,6 @@ export interface CertificateStateException extends __SmithyException, $MetadataB
5884
5816
  */
5885
5817
  message?: string;
5886
5818
  }
5887
- export declare namespace CertificateStateException {
5888
- /**
5889
- * @internal
5890
- */
5891
- const filterSensitiveLog: (obj: CertificateStateException) => any;
5892
- }
5893
5819
  /**
5894
5820
  * <p>Input for the DeleteCACertificate operation.</p>
5895
5821
  */
@@ -6307,41 +6233,3 @@ export declare namespace DeleteRoleAliasResponse {
6307
6233
  */
6308
6234
  const filterSensitiveLog: (obj: DeleteRoleAliasResponse) => any;
6309
6235
  }
6310
- export interface DeleteScheduledAuditRequest {
6311
- /**
6312
- * <p>The name of the scheduled audit you want to delete.</p>
6313
- */
6314
- scheduledAuditName: string | undefined;
6315
- }
6316
- export declare namespace DeleteScheduledAuditRequest {
6317
- /**
6318
- * @internal
6319
- */
6320
- const filterSensitiveLog: (obj: DeleteScheduledAuditRequest) => any;
6321
- }
6322
- export interface DeleteScheduledAuditResponse {
6323
- }
6324
- export declare namespace DeleteScheduledAuditResponse {
6325
- /**
6326
- * @internal
6327
- */
6328
- const filterSensitiveLog: (obj: DeleteScheduledAuditResponse) => any;
6329
- }
6330
- export interface DeleteSecurityProfileRequest {
6331
- /**
6332
- * <p>The name of the security profile to be deleted.</p>
6333
- */
6334
- securityProfileName: string | undefined;
6335
- /**
6336
- * <p>The expected version of the security profile. A new version is generated whenever
6337
- * the security profile is updated. If you specify a value that is different from the actual
6338
- * version, a <code>VersionConflictException</code> is thrown.</p>
6339
- */
6340
- expectedVersion?: number;
6341
- }
6342
- export declare namespace DeleteSecurityProfileRequest {
6343
- /**
6344
- * @internal
6345
- */
6346
- const filterSensitiveLog: (obj: DeleteSecurityProfileRequest) => any;
6347
- }