@aws-sdk/client-iot 3.428.0 → 3.430.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,11 +4,13 @@ import {
4
4
  AbortConfig,
5
5
  AggregationType,
6
6
  AlertTarget,
7
+ AlertTargetType,
7
8
  AttributePayload,
8
9
  AuditCheckConfiguration,
9
10
  AuditFrequency,
10
11
  AuditMitigationActionsTaskTarget,
11
12
  AuditNotificationTarget,
13
+ AuditNotificationType,
12
14
  AuthInfo,
13
15
  AuthorizerConfig,
14
16
  AuthorizerStatus,
@@ -51,6 +53,7 @@ import {
51
53
  Configuration,
52
54
  DetectMitigationActionsTaskTarget,
53
55
  DomainConfigurationStatus,
56
+ EventType,
54
57
  GroupNameAndArn,
55
58
  LogTargetType,
56
59
  RegistrationConfig,
@@ -99,7 +102,7 @@ export interface ProvisioningTemplateSummary {
99
102
  creationDate?: Date;
100
103
  lastModifiedDate?: Date;
101
104
  enabled?: boolean;
102
- type?: TemplateType | string;
105
+ type?: TemplateType;
103
106
  }
104
107
  export interface ListProvisioningTemplatesResponse {
105
108
  templates?: ProvisioningTemplateSummary[];
@@ -144,9 +147,9 @@ export interface ListScheduledAuditsRequest {
144
147
  export interface ScheduledAuditMetadata {
145
148
  scheduledAuditName?: string;
146
149
  scheduledAuditArn?: string;
147
- frequency?: AuditFrequency | string;
150
+ frequency?: AuditFrequency;
148
151
  dayOfMonth?: string;
149
- dayOfWeek?: DayOfWeek | string;
152
+ dayOfWeek?: DayOfWeek;
150
153
  }
151
154
  export interface ListScheduledAuditsResponse {
152
155
  scheduledAudits?: ScheduledAuditMetadata[];
@@ -260,19 +263,19 @@ export declare const ReportType: {
260
263
  export type ReportType = (typeof ReportType)[keyof typeof ReportType];
261
264
  export interface ListThingRegistrationTaskReportsRequest {
262
265
  taskId: string | undefined;
263
- reportType: ReportType | string | undefined;
266
+ reportType: ReportType | undefined;
264
267
  nextToken?: string;
265
268
  maxResults?: number;
266
269
  }
267
270
  export interface ListThingRegistrationTaskReportsResponse {
268
271
  resourceLinks?: string[];
269
- reportType?: ReportType | string;
272
+ reportType?: ReportType;
270
273
  nextToken?: string;
271
274
  }
272
275
  export interface ListThingRegistrationTasksRequest {
273
276
  nextToken?: string;
274
277
  maxResults?: number;
275
- status?: Status | string;
278
+ status?: Status;
276
279
  }
277
280
  export interface ListThingRegistrationTasksResponse {
278
281
  taskIds?: string[];
@@ -346,7 +349,7 @@ export interface VpcDestinationSummary {
346
349
  }
347
350
  export interface TopicRuleDestinationSummary {
348
351
  arn?: string;
349
- status?: TopicRuleDestinationStatus | string;
352
+ status?: TopicRuleDestinationStatus;
350
353
  createdAt?: Date;
351
354
  lastUpdatedAt?: Date;
352
355
  statusReason?: string;
@@ -375,17 +378,17 @@ export interface ListTopicRulesResponse {
375
378
  nextToken?: string;
376
379
  }
377
380
  export interface ListV2LoggingLevelsRequest {
378
- targetType?: LogTargetType | string;
381
+ targetType?: LogTargetType;
379
382
  nextToken?: string;
380
383
  maxResults?: number;
381
384
  }
382
385
  export interface LogTarget {
383
- targetType: LogTargetType | string | undefined;
386
+ targetType: LogTargetType | undefined;
384
387
  targetName?: string;
385
388
  }
386
389
  export interface LogTargetConfiguration {
387
390
  logTarget?: LogTarget;
388
- logLevel?: LogLevel | string;
391
+ logLevel?: LogLevel;
389
392
  }
390
393
  export interface ListV2LoggingLevelsResponse {
391
394
  logTargetConfigurations?: LogTargetConfiguration[];
@@ -396,9 +399,9 @@ export interface ListViolationEventsRequest {
396
399
  endTime: Date | undefined;
397
400
  thingName?: string;
398
401
  securityProfileName?: string;
399
- behaviorCriteriaType?: BehaviorCriteriaType | string;
402
+ behaviorCriteriaType?: BehaviorCriteriaType;
400
403
  listSuppressedAlerts?: boolean;
401
- verificationState?: VerificationState | string;
404
+ verificationState?: VerificationState;
402
405
  nextToken?: string;
403
406
  maxResults?: number;
404
407
  }
@@ -416,8 +419,8 @@ export interface ViolationEvent {
416
419
  behavior?: Behavior;
417
420
  metricValue?: MetricValue;
418
421
  violationEventAdditionalInfo?: ViolationEventAdditionalInfo;
419
- violationEventType?: ViolationEventType | string;
420
- verificationState?: VerificationState | string;
422
+ violationEventType?: ViolationEventType;
423
+ verificationState?: VerificationState;
421
424
  verificationStateDescription?: string;
422
425
  violationEventTime?: Date;
423
426
  }
@@ -427,7 +430,7 @@ export interface ListViolationEventsResponse {
427
430
  }
428
431
  export interface PutVerificationStateOnViolationRequest {
429
432
  violationId: string | undefined;
430
- verificationState: VerificationState | string | undefined;
433
+ verificationState: VerificationState | undefined;
431
434
  verificationStateDescription?: string;
432
435
  }
433
436
  export interface PutVerificationStateOnViolationResponse {}
@@ -438,7 +441,7 @@ export interface RegisterCACertificateRequest {
438
441
  allowAutoRegistration?: boolean;
439
442
  registrationConfig?: RegistrationConfig;
440
443
  tags?: Tag[];
441
- certificateMode?: CertificateMode | string;
444
+ certificateMode?: CertificateMode;
442
445
  }
443
446
  export interface RegisterCACertificateResponse {
444
447
  certificateArn?: string;
@@ -465,7 +468,7 @@ export interface RegisterCertificateRequest {
465
468
  certificatePem: string | undefined;
466
469
  caCertificatePem?: string;
467
470
  setAsActive?: boolean;
468
- status?: CertificateStatus | string;
471
+ status?: CertificateStatus;
469
472
  }
470
473
  export interface RegisterCertificateResponse {
471
474
  certificateArn?: string;
@@ -473,7 +476,7 @@ export interface RegisterCertificateResponse {
473
476
  }
474
477
  export interface RegisterCertificateWithoutCARequest {
475
478
  certificatePem: string | undefined;
476
- status?: CertificateStatus | string;
479
+ status?: CertificateStatus;
477
480
  }
478
481
  export interface RegisterCertificateWithoutCAResponse {
479
482
  certificateArn?: string;
@@ -566,18 +569,18 @@ export interface SetDefaultPolicyVersionRequest {
566
569
  }
567
570
  export interface LoggingOptionsPayload {
568
571
  roleArn: string | undefined;
569
- logLevel?: LogLevel | string;
572
+ logLevel?: LogLevel;
570
573
  }
571
574
  export interface SetLoggingOptionsRequest {
572
575
  loggingOptionsPayload: LoggingOptionsPayload | undefined;
573
576
  }
574
577
  export interface SetV2LoggingLevelRequest {
575
578
  logTarget: LogTarget | undefined;
576
- logLevel: LogLevel | string | undefined;
579
+ logLevel: LogLevel | undefined;
577
580
  }
578
581
  export interface SetV2LoggingOptionsRequest {
579
582
  roleArn?: string;
580
- defaultLogLevel?: LogLevel | string;
583
+ defaultLogLevel?: LogLevel;
581
584
  disableAllLogs?: boolean;
582
585
  }
583
586
  export interface StartAuditMitigationActionsTaskRequest {
@@ -700,7 +703,7 @@ export interface UntagResourceResponse {}
700
703
  export interface UpdateAccountAuditConfigurationRequest {
701
704
  roleArn?: string;
702
705
  auditNotificationTargetConfigurations?: Record<
703
- string,
706
+ AuditNotificationType,
704
707
  AuditNotificationTarget
705
708
  >;
706
709
  auditCheckConfigurations?: Record<string, AuditCheckConfiguration>;
@@ -719,7 +722,7 @@ export interface UpdateAuthorizerRequest {
719
722
  authorizerFunctionArn?: string;
720
723
  tokenKeyName?: string;
721
724
  tokenSigningPublicKeys?: Record<string, string>;
722
- status?: AuthorizerStatus | string;
725
+ status?: AuthorizerStatus;
723
726
  enableCachingForHttp?: boolean;
724
727
  }
725
728
  export interface UpdateAuthorizerResponse {
@@ -736,14 +739,14 @@ export interface UpdateBillingGroupResponse {
736
739
  }
737
740
  export interface UpdateCACertificateRequest {
738
741
  certificateId: string | undefined;
739
- newStatus?: CACertificateStatus | string;
740
- newAutoRegistrationStatus?: AutoRegistrationStatus | string;
742
+ newStatus?: CACertificateStatus;
743
+ newAutoRegistrationStatus?: AutoRegistrationStatus;
741
744
  registrationConfig?: RegistrationConfig;
742
745
  removeAutoRegistration?: boolean;
743
746
  }
744
747
  export interface UpdateCertificateRequest {
745
748
  certificateId: string | undefined;
746
- newStatus: CertificateStatus | string | undefined;
749
+ newStatus: CertificateStatus | undefined;
747
750
  }
748
751
  export interface UpdateCustomMetricRequest {
749
752
  metricName: string | undefined;
@@ -752,7 +755,7 @@ export interface UpdateCustomMetricRequest {
752
755
  export interface UpdateCustomMetricResponse {
753
756
  metricName?: string;
754
757
  metricArn?: string;
755
- metricType?: CustomMetricType | string;
758
+ metricType?: CustomMetricType;
756
759
  displayName?: string;
757
760
  creationDate?: Date;
758
761
  lastModifiedDate?: Date;
@@ -764,7 +767,7 @@ export interface UpdateDimensionRequest {
764
767
  export interface UpdateDimensionResponse {
765
768
  name?: string;
766
769
  arn?: string;
767
- type?: DimensionType | string;
770
+ type?: DimensionType;
768
771
  stringValues?: string[];
769
772
  creationDate?: Date;
770
773
  lastModifiedDate?: Date;
@@ -772,7 +775,7 @@ export interface UpdateDimensionResponse {
772
775
  export interface UpdateDomainConfigurationRequest {
773
776
  domainConfigurationName: string | undefined;
774
777
  authorizerConfig?: AuthorizerConfig;
775
- domainConfigurationStatus?: DomainConfigurationStatus | string;
778
+ domainConfigurationStatus?: DomainConfigurationStatus;
776
779
  removeAuthorizerConfig?: boolean;
777
780
  tlsConfig?: TlsConfig;
778
781
  }
@@ -792,7 +795,7 @@ export interface UpdateDynamicThingGroupResponse {
792
795
  version?: number;
793
796
  }
794
797
  export interface UpdateEventConfigurationsRequest {
795
- eventConfigurations?: Record<string, Configuration>;
798
+ eventConfigurations?: Record<EventType, Configuration>;
796
799
  }
797
800
  export interface UpdateEventConfigurationsResponse {}
798
801
  export interface UpdateFleetMetricRequest {
@@ -804,7 +807,7 @@ export interface UpdateFleetMetricRequest {
804
807
  description?: string;
805
808
  queryVersion?: string;
806
809
  indexName: string | undefined;
807
- unit?: FleetMetricUnit | string;
810
+ unit?: FleetMetricUnit;
808
811
  expectedVersion?: number;
809
812
  }
810
813
  export interface UpdateIndexingConfigurationRequest {
@@ -855,7 +858,7 @@ export interface UpdatePackageVersionRequest {
855
858
  versionName: string | undefined;
856
859
  description?: string;
857
860
  attributes?: Record<string, string>;
858
- action?: PackageVersionAction | string;
861
+ action?: PackageVersionAction;
859
862
  clientToken?: string;
860
863
  }
861
864
  export interface UpdatePackageVersionResponse {}
@@ -879,9 +882,9 @@ export interface UpdateRoleAliasResponse {
879
882
  roleAliasArn?: string;
880
883
  }
881
884
  export interface UpdateScheduledAuditRequest {
882
- frequency?: AuditFrequency | string;
885
+ frequency?: AuditFrequency;
883
886
  dayOfMonth?: string;
884
- dayOfWeek?: DayOfWeek | string;
887
+ dayOfWeek?: DayOfWeek;
885
888
  targetCheckNames?: string[];
886
889
  scheduledAuditName: string | undefined;
887
890
  }
@@ -892,7 +895,7 @@ export interface UpdateSecurityProfileRequest {
892
895
  securityProfileName: string | undefined;
893
896
  securityProfileDescription?: string;
894
897
  behaviors?: Behavior[];
895
- alertTargets?: Record<string, AlertTarget>;
898
+ alertTargets?: Record<AlertTargetType, AlertTarget>;
896
899
  additionalMetricsToRetain?: string[];
897
900
  additionalMetricsToRetainV2?: MetricToRetain[];
898
901
  deleteBehaviors?: boolean;
@@ -905,7 +908,7 @@ export interface UpdateSecurityProfileResponse {
905
908
  securityProfileArn?: string;
906
909
  securityProfileDescription?: string;
907
910
  behaviors?: Behavior[];
908
- alertTargets?: Record<string, AlertTarget>;
911
+ alertTargets?: Record<AlertTargetType, AlertTarget>;
909
912
  additionalMetricsToRetain?: string[];
910
913
  additionalMetricsToRetainV2?: MetricToRetain[];
911
914
  version?: number;
@@ -949,7 +952,7 @@ export interface UpdateThingGroupsForThingRequest {
949
952
  export interface UpdateThingGroupsForThingResponse {}
950
953
  export interface UpdateTopicRuleDestinationRequest {
951
954
  arn: string | undefined;
952
- status: TopicRuleDestinationStatus | string | undefined;
955
+ status: TopicRuleDestinationStatus | undefined;
953
956
  }
954
957
  export interface UpdateTopicRuleDestinationResponse {}
955
958
  export interface ValidateSecurityProfileBehaviorsRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot",
3
3
  "description": "AWS SDK for JavaScript Iot Client for Node.js, Browser and React Native",
4
- "version": "3.428.0",
4
+ "version": "3.430.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,28 +21,28 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.428.0",
25
- "@aws-sdk/credential-provider-node": "3.428.0",
26
- "@aws-sdk/middleware-host-header": "3.428.0",
24
+ "@aws-sdk/client-sts": "3.430.0",
25
+ "@aws-sdk/credential-provider-node": "3.430.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
27
  "@aws-sdk/middleware-logger": "3.428.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
29
  "@aws-sdk/middleware-signing": "3.428.0",
30
30
  "@aws-sdk/middleware-user-agent": "3.428.0",
31
- "@aws-sdk/region-config-resolver": "3.428.0",
31
+ "@aws-sdk/region-config-resolver": "3.430.0",
32
32
  "@aws-sdk/types": "3.428.0",
33
33
  "@aws-sdk/util-endpoints": "3.428.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.428.0",
35
- "@aws-sdk/util-user-agent-node": "3.428.0",
36
- "@smithy/config-resolver": "^2.0.14",
35
+ "@aws-sdk/util-user-agent-node": "3.430.0",
36
+ "@smithy/config-resolver": "^2.0.15",
37
37
  "@smithy/fetch-http-handler": "^2.2.3",
38
38
  "@smithy/hash-node": "^2.0.11",
39
39
  "@smithy/invalid-dependency": "^2.0.11",
40
40
  "@smithy/middleware-content-length": "^2.0.13",
41
- "@smithy/middleware-endpoint": "^2.1.0",
42
- "@smithy/middleware-retry": "^2.0.16",
41
+ "@smithy/middleware-endpoint": "^2.1.2",
42
+ "@smithy/middleware-retry": "^2.0.17",
43
43
  "@smithy/middleware-serde": "^2.0.11",
44
44
  "@smithy/middleware-stack": "^2.0.5",
45
- "@smithy/node-config-provider": "^2.1.1",
45
+ "@smithy/node-config-provider": "^2.1.2",
46
46
  "@smithy/node-http-handler": "^2.1.7",
47
47
  "@smithy/protocol-http": "^3.0.7",
48
48
  "@smithy/smithy-client": "^2.1.11",
@@ -52,7 +52,7 @@
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
54
  "@smithy/util-defaults-mode-browser": "^2.0.15",
55
- "@smithy/util-defaults-mode-node": "^2.0.19",
55
+ "@smithy/util-defaults-mode-node": "^2.0.20",
56
56
  "@smithy/util-retry": "^2.0.4",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0",