@aws-sdk/client-iot 3.713.0 → 3.715.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 (35) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +80 -7
  3. package/dist-cjs/runtimeConfig.js +8 -6
  4. package/dist-es/IoT.js +2 -0
  5. package/dist-es/commands/GetThingConnectivityDataCommand.js +23 -0
  6. package/dist-es/commands/index.js +1 -0
  7. package/dist-es/models/models_1.js +24 -6
  8. package/dist-es/models/models_2.js +6 -0
  9. package/dist-es/protocols/Aws_restJson1.js +26 -0
  10. package/dist-es/runtimeConfig.js +8 -6
  11. package/dist-types/IoT.d.ts +7 -0
  12. package/dist-types/IoTClient.d.ts +21 -2
  13. package/dist-types/commands/GetThingConnectivityDataCommand.d.ts +95 -0
  14. package/dist-types/commands/ListCommandExecutionsCommand.d.ts +18 -5
  15. package/dist-types/commands/ListDetectMitigationActionsExecutionsCommand.d.ts +1 -2
  16. package/dist-types/commands/index.d.ts +1 -0
  17. package/dist-types/models/models_0.d.ts +4 -1
  18. package/dist-types/models/models_1.d.ts +69 -140
  19. package/dist-types/models/models_2.d.ts +141 -1
  20. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  21. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  22. package/dist-types/runtimeConfig.d.ts +1 -0
  23. package/dist-types/runtimeConfig.native.d.ts +1 -0
  24. package/dist-types/ts3.4/IoT.d.ts +17 -0
  25. package/dist-types/ts3.4/IoTClient.d.ts +7 -0
  26. package/dist-types/ts3.4/commands/GetThingConnectivityDataCommand.d.ts +51 -0
  27. package/dist-types/ts3.4/commands/ListDetectMitigationActionsExecutionsCommand.d.ts +4 -2
  28. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  29. package/dist-types/ts3.4/models/models_1.d.ts +33 -28
  30. package/dist-types/ts3.4/models/models_2.d.ts +28 -1
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  35. package/package.json +14 -14
@@ -0,0 +1,95 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
4
+ import { GetThingConnectivityDataRequest, GetThingConnectivityDataResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetThingConnectivityDataCommand}.
14
+ */
15
+ export interface GetThingConnectivityDataCommandInput extends GetThingConnectivityDataRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetThingConnectivityDataCommand}.
21
+ */
22
+ export interface GetThingConnectivityDataCommandOutput extends GetThingConnectivityDataResponse, __MetadataBearer {
23
+ }
24
+ declare const GetThingConnectivityDataCommand_base: {
25
+ new (input: GetThingConnectivityDataCommandInput): import("@smithy/smithy-client").CommandImpl<GetThingConnectivityDataCommandInput, GetThingConnectivityDataCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetThingConnectivityDataCommandInput): import("@smithy/smithy-client").CommandImpl<GetThingConnectivityDataCommandInput, GetThingConnectivityDataCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves the live connectivity status per device.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { IoTClient, GetThingConnectivityDataCommand } from "@aws-sdk/client-iot"; // ES Modules import
35
+ * // const { IoTClient, GetThingConnectivityDataCommand } = require("@aws-sdk/client-iot"); // CommonJS import
36
+ * const client = new IoTClient(config);
37
+ * const input = { // GetThingConnectivityDataRequest
38
+ * thingName: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetThingConnectivityDataCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetThingConnectivityDataResponse
43
+ * // thingName: "STRING_VALUE",
44
+ * // connected: true || false,
45
+ * // timestamp: new Date("TIMESTAMP"),
46
+ * // disconnectReason: "AUTH_ERROR" || "CLIENT_INITIATED_DISCONNECT" || "CLIENT_ERROR" || "CONNECTION_LOST" || "DUPLICATE_CLIENTID" || "FORBIDDEN_ACCESS" || "MQTT_KEEP_ALIVE_TIMEOUT" || "SERVER_ERROR" || "SERVER_INITIATED_DISCONNECT" || "THROTTLED" || "WEBSOCKET_TTL_EXPIRATION" || "CUSTOMAUTH_TTL_EXPIRATION" || "UNKNOWN" || "NONE",
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param GetThingConnectivityDataCommandInput - {@link GetThingConnectivityDataCommandInput}
52
+ * @returns {@link GetThingConnectivityDataCommandOutput}
53
+ * @see {@link GetThingConnectivityDataCommandInput} for command's `input` shape.
54
+ * @see {@link GetThingConnectivityDataCommandOutput} for command's `response` shape.
55
+ * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape.
56
+ *
57
+ * @throws {@link IndexNotReadyException} (client fault)
58
+ * <p>The index is not ready.</p>
59
+ *
60
+ * @throws {@link InternalFailureException} (server fault)
61
+ * <p>An unexpected error has occurred.</p>
62
+ *
63
+ * @throws {@link InvalidRequestException} (client fault)
64
+ * <p>The request is not valid.</p>
65
+ *
66
+ * @throws {@link ResourceNotFoundException} (client fault)
67
+ * <p>The specified resource does not exist.</p>
68
+ *
69
+ * @throws {@link ServiceUnavailableException} (server fault)
70
+ * <p>The service is temporarily unavailable.</p>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p>The rate exceeds the limit.</p>
74
+ *
75
+ * @throws {@link UnauthorizedException} (client fault)
76
+ * <p>You are not authorized to perform this operation.</p>
77
+ *
78
+ * @throws {@link IoTServiceException}
79
+ * <p>Base exception class for all service exceptions from IoT service.</p>
80
+ *
81
+ * @public
82
+ */
83
+ export declare class GetThingConnectivityDataCommand extends GetThingConnectivityDataCommand_base {
84
+ /** @internal type navigation helper, not in runtime. */
85
+ protected static __types: {
86
+ api: {
87
+ input: GetThingConnectivityDataRequest;
88
+ output: GetThingConnectivityDataResponse;
89
+ };
90
+ sdk: {
91
+ input: GetThingConnectivityDataCommandInput;
92
+ output: GetThingConnectivityDataCommandOutput;
93
+ };
94
+ };
95
+ }
@@ -29,11 +29,24 @@ declare const ListCommandExecutionsCommand_base: {
29
29
  /**
30
30
  * <p>List all command executions.</p>
31
31
  * <important>
32
- * <p>You must provide only the
33
- * <code>startedTimeFilter</code> or the <code>completedTimeFilter</code> information. If you
34
- * provide both time filters, the API will generate an error.
35
- * You can use this information to find command executions that started within
36
- * a specific timeframe.</p>
32
+ * <ul>
33
+ * <li>
34
+ * <p>You must provide only the <code>startedTimeFilter</code> or
35
+ * the <code>completedTimeFilter</code> information. If you provide
36
+ * both time filters, the API will generate an error. You can use
37
+ * this information to retrieve a list of command executions
38
+ * within a specific timeframe.</p>
39
+ * </li>
40
+ * <li>
41
+ * <p>You must provide only the <code>commandArn</code> or
42
+ * the <code>thingArn</code> information depending on whether you want
43
+ * to list executions for a specific command or an IoT thing. If you provide
44
+ * both fields, the API will generate an error.</p>
45
+ * </li>
46
+ * </ul>
47
+ * <p>For more information about considerations for using this API, see
48
+ * <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-remote-command-execution-start-monitor.html#iot-remote-command-execution-list-cli">List
49
+ * command executions in your account (CLI)</a>.</p>
37
50
  * </important>
38
51
  * @example
39
52
  * Use a bare-bones client and the command you need to make an API call.
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
4
- import { ListDetectMitigationActionsExecutionsRequest } from "../models/models_1";
5
- import { ListDetectMitigationActionsExecutionsResponse } from "../models/models_2";
4
+ import { ListDetectMitigationActionsExecutionsRequest, ListDetectMitigationActionsExecutionsResponse } from "../models/models_2";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -143,6 +143,7 @@ export * from "./GetPolicyCommand";
143
143
  export * from "./GetPolicyVersionCommand";
144
144
  export * from "./GetRegistrationCodeCommand";
145
145
  export * from "./GetStatisticsCommand";
146
+ export * from "./GetThingConnectivityDataCommand";
146
147
  export * from "./GetTopicRuleCommand";
147
148
  export * from "./GetTopicRuleDestinationCommand";
148
149
  export * from "./GetV2LoggingOptionsCommand";
@@ -3885,7 +3885,10 @@ export interface CreateCommandRequest {
3885
3885
  */
3886
3886
  mandatoryParameters?: CommandParameter[] | undefined;
3887
3887
  /**
3888
- * <p>The IAM role that allows access to create the command.</p>
3888
+ * <p>The IAM role that you must provide when using the <code>AWS-IoT-FleetWise</code> namespace.
3889
+ * The role grants IoT Device Management the permission to access IoT FleetWise resources
3890
+ * for generating the payload for the command. This field is not required when you use the
3891
+ * <code>AWS-IoT</code> namespace.</p>
3889
3892
  * @public
3890
3893
  */
3891
3894
  roleArn?: string | undefined;
@@ -4149,7 +4149,8 @@ export interface GetCommandResponse {
4149
4149
  */
4150
4150
  payload?: CommandPayload | undefined;
4151
4151
  /**
4152
- * <p>The IAM role that allows access to retrieve information about the command.</p>
4152
+ * <p>The IAM role that you provided when creating the command with <code>AWS-IoT-FleetWise</code>
4153
+ * as the namespace.</p>
4153
4154
  * @public
4154
4155
  */
4155
4156
  roleArn?: string | undefined;
@@ -4348,7 +4349,8 @@ export interface GetCommandExecutionResponse {
4348
4349
  */
4349
4350
  completedAt?: Date | undefined;
4350
4351
  /**
4351
- * <p>The time to live (TTL) parameter for the <code>GetCommandExecution</code> API.</p>
4352
+ * <p>The time to live (TTL) parameter that indicates the duration for which executions will
4353
+ * be retained in your account. The default value is six months.</p>
4352
4354
  * @public
4353
4355
  */
4354
4356
  timeToLive?: Date | undefined;
@@ -5332,6 +5334,65 @@ export interface GetStatisticsResponse {
5332
5334
  */
5333
5335
  statistics?: Statistics | undefined;
5334
5336
  }
5337
+ /**
5338
+ * @public
5339
+ */
5340
+ export interface GetThingConnectivityDataRequest {
5341
+ /**
5342
+ * <p>The name of your IoT thing.</p>
5343
+ * @public
5344
+ */
5345
+ thingName: string | undefined;
5346
+ }
5347
+ /**
5348
+ * @public
5349
+ * @enum
5350
+ */
5351
+ export declare const DisconnectReasonValue: {
5352
+ readonly AUTH_ERROR: "AUTH_ERROR";
5353
+ readonly CLIENT_ERROR: "CLIENT_ERROR";
5354
+ readonly CLIENT_INITIATED_DISCONNECT: "CLIENT_INITIATED_DISCONNECT";
5355
+ readonly CONNECTION_LOST: "CONNECTION_LOST";
5356
+ readonly CUSTOMAUTH_TTL_EXPIRATION: "CUSTOMAUTH_TTL_EXPIRATION";
5357
+ readonly DUPLICATE_CLIENTID: "DUPLICATE_CLIENTID";
5358
+ readonly FORBIDDEN_ACCESS: "FORBIDDEN_ACCESS";
5359
+ readonly MQTT_KEEP_ALIVE_TIMEOUT: "MQTT_KEEP_ALIVE_TIMEOUT";
5360
+ readonly NONE: "NONE";
5361
+ readonly SERVER_ERROR: "SERVER_ERROR";
5362
+ readonly SERVER_INITIATED_DISCONNECT: "SERVER_INITIATED_DISCONNECT";
5363
+ readonly THROTTLED: "THROTTLED";
5364
+ readonly UNKNOWN: "UNKNOWN";
5365
+ readonly WEBSOCKET_TTL_EXPIRATION: "WEBSOCKET_TTL_EXPIRATION";
5366
+ };
5367
+ /**
5368
+ * @public
5369
+ */
5370
+ export type DisconnectReasonValue = (typeof DisconnectReasonValue)[keyof typeof DisconnectReasonValue];
5371
+ /**
5372
+ * @public
5373
+ */
5374
+ export interface GetThingConnectivityDataResponse {
5375
+ /**
5376
+ * <p>The name of your IoT thing.</p>
5377
+ * @public
5378
+ */
5379
+ thingName?: string | undefined;
5380
+ /**
5381
+ * <p>A Boolean that indicates the connectivity status.</p>
5382
+ * @public
5383
+ */
5384
+ connected?: boolean | undefined;
5385
+ /**
5386
+ * <p>The timestamp of when the event occurred.</p>
5387
+ * @public
5388
+ */
5389
+ timestamp?: Date | undefined;
5390
+ /**
5391
+ * <p>The reason why the client is disconnecting.</p>
5392
+ * @public
5393
+ */
5394
+ disconnectReason?: DisconnectReasonValue | undefined;
5395
+ }
5335
5396
  /**
5336
5397
  * <p>The input for the GetTopicRule operation.</p>
5337
5398
  * @public
@@ -6464,150 +6525,18 @@ export interface ListCustomMetricsResponse {
6464
6525
  nextToken?: string | undefined;
6465
6526
  }
6466
6527
  /**
6467
- * @public
6468
- */
6469
- export interface ListDetectMitigationActionsExecutionsRequest {
6470
- /**
6471
- * <p>
6472
- * The unique identifier of the task.
6473
- * </p>
6474
- * @public
6475
- */
6476
- taskId?: string | undefined;
6477
- /**
6478
- * <p>
6479
- * The unique identifier of the violation.
6480
- * </p>
6481
- * @public
6482
- */
6483
- violationId?: string | undefined;
6484
- /**
6485
- * <p>
6486
- * The name of the thing whose mitigation actions are listed.
6487
- * </p>
6488
- * @public
6489
- */
6490
- thingName?: string | undefined;
6491
- /**
6492
- * <p>
6493
- * A filter to limit results to those found after the specified time. You must
6494
- * specify either the startTime and endTime or the taskId, but not both.
6495
- * </p>
6496
- * @public
6497
- */
6498
- startTime?: Date | undefined;
6499
- /**
6500
- * <p>
6501
- * The end of the time period for which ML Detect mitigation actions executions are returned.
6502
- * </p>
6503
- * @public
6504
- */
6505
- endTime?: Date | undefined;
6506
- /**
6507
- * <p>
6508
- * The maximum number of results to return at one time. The default is 25.
6509
- * </p>
6510
- * @public
6511
- */
6512
- maxResults?: number | undefined;
6513
- /**
6514
- * <p>
6515
- * The token for the next set of results.
6516
- * </p>
6517
- * @public
6518
- */
6519
- nextToken?: string | undefined;
6520
- }
6521
- /**
6522
- * @public
6523
- * @enum
6524
- */
6525
- export declare const DetectMitigationActionExecutionStatus: {
6526
- readonly FAILED: "FAILED";
6527
- readonly IN_PROGRESS: "IN_PROGRESS";
6528
- readonly SKIPPED: "SKIPPED";
6529
- readonly SUCCESSFUL: "SUCCESSFUL";
6530
- };
6531
- /**
6532
- * @public
6528
+ * @internal
6533
6529
  */
6534
- export type DetectMitigationActionExecutionStatus = (typeof DetectMitigationActionExecutionStatus)[keyof typeof DetectMitigationActionExecutionStatus];
6530
+ export declare const GetPackageResponseFilterSensitiveLog: (obj: GetPackageResponse) => any;
6535
6531
  /**
6536
- * <p>
6537
- * Describes which mitigation actions should be executed.
6538
- * </p>
6539
- * @public
6532
+ * @internal
6540
6533
  */
6541
- export interface DetectMitigationActionExecution {
6542
- /**
6543
- * <p>
6544
- * The unique identifier of the task.
6545
- * </p>
6546
- * @public
6547
- */
6548
- taskId?: string | undefined;
6549
- /**
6550
- * <p>
6551
- * The unique identifier of the violation.
6552
- * </p>
6553
- * @public
6554
- */
6555
- violationId?: string | undefined;
6556
- /**
6557
- * <p>
6558
- * The friendly name that uniquely identifies the mitigation action.
6559
- * </p>
6560
- * @public
6561
- */
6562
- actionName?: string | undefined;
6563
- /**
6564
- * <p>
6565
- * The name of the thing.
6566
- * </p>
6567
- * @public
6568
- */
6569
- thingName?: string | undefined;
6570
- /**
6571
- * <p>
6572
- * The date a mitigation action was started.
6573
- * </p>
6574
- * @public
6575
- */
6576
- executionStartDate?: Date | undefined;
6577
- /**
6578
- * <p>
6579
- * The date a mitigation action ended.
6580
- * </p>
6581
- * @public
6582
- */
6583
- executionEndDate?: Date | undefined;
6584
- /**
6585
- * <p>
6586
- * The status of a mitigation action.
6587
- * </p>
6588
- * @public
6589
- */
6590
- status?: DetectMitigationActionExecutionStatus | undefined;
6591
- /**
6592
- * <p>
6593
- * The error code of a mitigation action.
6594
- * </p>
6595
- * @public
6596
- */
6597
- errorCode?: string | undefined;
6598
- /**
6599
- * <p>
6600
- * The message of a mitigation action.
6601
- * </p>
6602
- * @public
6603
- */
6604
- message?: string | undefined;
6605
- }
6534
+ export declare const GetPackageVersionResponseFilterSensitiveLog: (obj: GetPackageVersionResponse) => any;
6606
6535
  /**
6607
6536
  * @internal
6608
6537
  */
6609
- export declare const GetPackageResponseFilterSensitiveLog: (obj: GetPackageResponse) => any;
6538
+ export declare const GetThingConnectivityDataRequestFilterSensitiveLog: (obj: GetThingConnectivityDataRequest) => any;
6610
6539
  /**
6611
6540
  * @internal
6612
6541
  */
6613
- export declare const GetPackageVersionResponseFilterSensitiveLog: (obj: GetPackageVersionResponse) => any;
6542
+ export declare const GetThingConnectivityDataResponseFilterSensitiveLog: (obj: GetThingConnectivityDataResponse) => any;
@@ -1,7 +1,147 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { IoTServiceException as __BaseException } from "./IoTServiceException";
3
3
  import { AbortConfig, AggregationType, AlertTarget, AlertTargetType, ApplicationProtocol, AttributePayload, AuditCheckConfiguration, AuditFrequency, AuditMitigationActionsTaskTarget, AuditNotificationTarget, AuditNotificationType, AuthenticationType, AuthInfo, AuthorizerConfig, AuthorizerStatus, AuthResult, AutoRegistrationStatus, Behavior, BillingGroupProperties, CertificateProviderOperation, ClientCertificateConfig, CustomMetricType, DayOfWeek, DimensionType, DimensionValueOperator, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MetricsExportConfig, MetricToRetain, MetricValue, MitigationActionParams, OTAUpdateStatus, PackageVersionArtifact, PackageVersionStatus, Policy, PresignedUrlConfig, ProvisioningHook, RelatedResource, ResourceIdentifier, ServerCertificateConfig, ServiceType, StreamFile, Tag, TargetSelection, TemplateType, ThingGroupProperties, ThingPrincipalType, ThingTypeProperties, TimeoutConfig, TlsConfig, TopicRuleDestinationStatus, TopicRulePayload, VerificationState, ViolationEventAdditionalInfo } from "./models_0";
4
- import { BehaviorCriteriaType, CACertificateStatus, CertificateMode, CertificateStatus, Configuration, DetectMitigationActionExecution, DetectMitigationActionsTaskSummary, DetectMitigationActionsTaskTarget, DomainConfigurationStatus, EventType, GroupNameAndArn, JobExecutionStatus, JobStatus, LogTargetType, MitigationActionType, RegistrationConfig, Status, ThingGroupIndexingConfiguration, ThingIndexingConfiguration, ThingTypeMetadata, VersionUpdateByJobsConfig, ViolationEventOccurrenceRange } from "./models_1";
4
+ import { BehaviorCriteriaType, CACertificateStatus, CertificateMode, CertificateStatus, Configuration, DetectMitigationActionsTaskSummary, DetectMitigationActionsTaskTarget, DomainConfigurationStatus, EventType, GroupNameAndArn, JobExecutionStatus, JobStatus, LogTargetType, MitigationActionType, RegistrationConfig, Status, ThingGroupIndexingConfiguration, ThingIndexingConfiguration, ThingTypeMetadata, VersionUpdateByJobsConfig, ViolationEventOccurrenceRange } from "./models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export interface ListDetectMitigationActionsExecutionsRequest {
9
+ /**
10
+ * <p>
11
+ * The unique identifier of the task.
12
+ * </p>
13
+ * @public
14
+ */
15
+ taskId?: string | undefined;
16
+ /**
17
+ * <p>
18
+ * The unique identifier of the violation.
19
+ * </p>
20
+ * @public
21
+ */
22
+ violationId?: string | undefined;
23
+ /**
24
+ * <p>
25
+ * The name of the thing whose mitigation actions are listed.
26
+ * </p>
27
+ * @public
28
+ */
29
+ thingName?: string | undefined;
30
+ /**
31
+ * <p>
32
+ * A filter to limit results to those found after the specified time. You must
33
+ * specify either the startTime and endTime or the taskId, but not both.
34
+ * </p>
35
+ * @public
36
+ */
37
+ startTime?: Date | undefined;
38
+ /**
39
+ * <p>
40
+ * The end of the time period for which ML Detect mitigation actions executions are returned.
41
+ * </p>
42
+ * @public
43
+ */
44
+ endTime?: Date | undefined;
45
+ /**
46
+ * <p>
47
+ * The maximum number of results to return at one time. The default is 25.
48
+ * </p>
49
+ * @public
50
+ */
51
+ maxResults?: number | undefined;
52
+ /**
53
+ * <p>
54
+ * The token for the next set of results.
55
+ * </p>
56
+ * @public
57
+ */
58
+ nextToken?: string | undefined;
59
+ }
60
+ /**
61
+ * @public
62
+ * @enum
63
+ */
64
+ export declare const DetectMitigationActionExecutionStatus: {
65
+ readonly FAILED: "FAILED";
66
+ readonly IN_PROGRESS: "IN_PROGRESS";
67
+ readonly SKIPPED: "SKIPPED";
68
+ readonly SUCCESSFUL: "SUCCESSFUL";
69
+ };
70
+ /**
71
+ * @public
72
+ */
73
+ export type DetectMitigationActionExecutionStatus = (typeof DetectMitigationActionExecutionStatus)[keyof typeof DetectMitigationActionExecutionStatus];
74
+ /**
75
+ * <p>
76
+ * Describes which mitigation actions should be executed.
77
+ * </p>
78
+ * @public
79
+ */
80
+ export interface DetectMitigationActionExecution {
81
+ /**
82
+ * <p>
83
+ * The unique identifier of the task.
84
+ * </p>
85
+ * @public
86
+ */
87
+ taskId?: string | undefined;
88
+ /**
89
+ * <p>
90
+ * The unique identifier of the violation.
91
+ * </p>
92
+ * @public
93
+ */
94
+ violationId?: string | undefined;
95
+ /**
96
+ * <p>
97
+ * The friendly name that uniquely identifies the mitigation action.
98
+ * </p>
99
+ * @public
100
+ */
101
+ actionName?: string | undefined;
102
+ /**
103
+ * <p>
104
+ * The name of the thing.
105
+ * </p>
106
+ * @public
107
+ */
108
+ thingName?: string | undefined;
109
+ /**
110
+ * <p>
111
+ * The date a mitigation action was started.
112
+ * </p>
113
+ * @public
114
+ */
115
+ executionStartDate?: Date | undefined;
116
+ /**
117
+ * <p>
118
+ * The date a mitigation action ended.
119
+ * </p>
120
+ * @public
121
+ */
122
+ executionEndDate?: Date | undefined;
123
+ /**
124
+ * <p>
125
+ * The status of a mitigation action.
126
+ * </p>
127
+ * @public
128
+ */
129
+ status?: DetectMitigationActionExecutionStatus | undefined;
130
+ /**
131
+ * <p>
132
+ * The error code of a mitigation action.
133
+ * </p>
134
+ * @public
135
+ */
136
+ errorCode?: string | undefined;
137
+ /**
138
+ * <p>
139
+ * The message of a mitigation action.
140
+ * </p>
141
+ * @public
142
+ */
143
+ message?: string | undefined;
144
+ }
5
145
  /**
6
146
  * @public
7
147
  */
@@ -145,6 +145,7 @@ import { GetPolicyCommandInput, GetPolicyCommandOutput } from "../commands/GetPo
145
145
  import { GetPolicyVersionCommandInput, GetPolicyVersionCommandOutput } from "../commands/GetPolicyVersionCommand";
146
146
  import { GetRegistrationCodeCommandInput, GetRegistrationCodeCommandOutput } from "../commands/GetRegistrationCodeCommand";
147
147
  import { GetStatisticsCommandInput, GetStatisticsCommandOutput } from "../commands/GetStatisticsCommand";
148
+ import { GetThingConnectivityDataCommandInput, GetThingConnectivityDataCommandOutput } from "../commands/GetThingConnectivityDataCommand";
148
149
  import { GetTopicRuleCommandInput, GetTopicRuleCommandOutput } from "../commands/GetTopicRuleCommand";
149
150
  import { GetTopicRuleDestinationCommandInput, GetTopicRuleDestinationCommandOutput } from "../commands/GetTopicRuleDestinationCommand";
150
151
  import { GetV2LoggingOptionsCommandInput, GetV2LoggingOptionsCommandOutput } from "../commands/GetV2LoggingOptionsCommand";
@@ -849,6 +850,10 @@ export declare const se_GetRegistrationCodeCommand: (input: GetRegistrationCodeC
849
850
  * serializeAws_restJson1GetStatisticsCommand
850
851
  */
851
852
  export declare const se_GetStatisticsCommand: (input: GetStatisticsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
853
+ /**
854
+ * serializeAws_restJson1GetThingConnectivityDataCommand
855
+ */
856
+ export declare const se_GetThingConnectivityDataCommand: (input: GetThingConnectivityDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
852
857
  /**
853
858
  * serializeAws_restJson1GetTopicRuleCommand
854
859
  */
@@ -1925,6 +1930,10 @@ export declare const de_GetRegistrationCodeCommand: (output: __HttpResponse, con
1925
1930
  * deserializeAws_restJson1GetStatisticsCommand
1926
1931
  */
1927
1932
  export declare const de_GetStatisticsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetStatisticsCommandOutput>;
1933
+ /**
1934
+ * deserializeAws_restJson1GetThingConnectivityDataCommand
1935
+ */
1936
+ export declare const de_GetThingConnectivityDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetThingConnectivityDataCommandOutput>;
1928
1937
  /**
1929
1938
  * deserializeAws_restJson1GetTopicRuleCommand
1930
1939
  */
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
26
26
  utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  serviceId: string;
29
+ profile?: string | undefined;
29
30
  logger: import("@smithy/types").Logger;
30
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
27
27
  utf8Encoder: (input: string | Uint8Array) => string;
28
28
  disableHostPrefix: boolean;
29
29
  serviceId: string;
30
+ profile?: string | undefined;
30
31
  logger: import("@smithy/types").Logger;
31
32
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  region: string | import("@smithy/types").Provider<any>;
23
+ profile?: string | undefined;
23
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
24
25
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
@@ -579,6 +579,10 @@ import {
579
579
  GetStatisticsCommandInput,
580
580
  GetStatisticsCommandOutput,
581
581
  } from "./commands/GetStatisticsCommand";
582
+ import {
583
+ GetThingConnectivityDataCommandInput,
584
+ GetThingConnectivityDataCommandOutput,
585
+ } from "./commands/GetThingConnectivityDataCommand";
582
586
  import {
583
587
  GetTopicRuleCommandInput,
584
588
  GetTopicRuleCommandOutput,
@@ -3032,6 +3036,19 @@ export interface IoT {
3032
3036
  options: __HttpHandlerOptions,
3033
3037
  cb: (err: any, data?: GetStatisticsCommandOutput) => void
3034
3038
  ): void;
3039
+ getThingConnectivityData(
3040
+ args: GetThingConnectivityDataCommandInput,
3041
+ options?: __HttpHandlerOptions
3042
+ ): Promise<GetThingConnectivityDataCommandOutput>;
3043
+ getThingConnectivityData(
3044
+ args: GetThingConnectivityDataCommandInput,
3045
+ cb: (err: any, data?: GetThingConnectivityDataCommandOutput) => void
3046
+ ): void;
3047
+ getThingConnectivityData(
3048
+ args: GetThingConnectivityDataCommandInput,
3049
+ options: __HttpHandlerOptions,
3050
+ cb: (err: any, data?: GetThingConnectivityDataCommandOutput) => void
3051
+ ): void;
3035
3052
  getTopicRule(
3036
3053
  args: GetTopicRuleCommandInput,
3037
3054
  options?: __HttpHandlerOptions
@@ -625,6 +625,10 @@ import {
625
625
  GetStatisticsCommandInput,
626
626
  GetStatisticsCommandOutput,
627
627
  } from "./commands/GetStatisticsCommand";
628
+ import {
629
+ GetThingConnectivityDataCommandInput,
630
+ GetThingConnectivityDataCommandOutput,
631
+ } from "./commands/GetThingConnectivityDataCommand";
628
632
  import {
629
633
  GetTopicRuleCommandInput,
630
634
  GetTopicRuleCommandOutput,
@@ -1274,6 +1278,7 @@ export type ServiceInputTypes =
1274
1278
  | GetPolicyVersionCommandInput
1275
1279
  | GetRegistrationCodeCommandInput
1276
1280
  | GetStatisticsCommandInput
1281
+ | GetThingConnectivityDataCommandInput
1277
1282
  | GetTopicRuleCommandInput
1278
1283
  | GetTopicRuleDestinationCommandInput
1279
1284
  | GetV2LoggingOptionsCommandInput
@@ -1544,6 +1549,7 @@ export type ServiceOutputTypes =
1544
1549
  | GetPolicyVersionCommandOutput
1545
1550
  | GetRegistrationCodeCommandOutput
1546
1551
  | GetStatisticsCommandOutput
1552
+ | GetThingConnectivityDataCommandOutput
1547
1553
  | GetTopicRuleCommandOutput
1548
1554
  | GetTopicRuleDestinationCommandOutput
1549
1555
  | GetV2LoggingOptionsCommandOutput
@@ -1685,6 +1691,7 @@ export interface ClientDefaults
1685
1691
  useDualstackEndpoint?: boolean | __Provider<boolean>;
1686
1692
  useFipsEndpoint?: boolean | __Provider<boolean>;
1687
1693
  region?: string | __Provider<string>;
1694
+ profile?: string;
1688
1695
  defaultUserAgentProvider?: Provider<__UserAgent>;
1689
1696
  credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
1690
1697
  maxAttempts?: number | __Provider<number>;