@aws-sdk/client-iot 3.282.0 → 3.283.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.
- package/dist-cjs/commands/DeletePolicyVersionCommand.js +2 -2
- package/dist-cjs/commands/ListStreamsCommand.js +1 -2
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +8 -8
- package/dist-cjs/models/models_1.js +14 -14
- package/dist-cjs/models/models_2.js +11 -3
- package/dist-cjs/protocols/Aws_restJson1.js +61 -0
- package/dist-es/commands/DeletePolicyVersionCommand.js +1 -1
- package/dist-es/commands/ListStreamsCommand.js +1 -2
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +3 -3
- package/dist-es/models/models_1.js +6 -6
- package/dist-es/models/models_2.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +61 -0
- package/dist-types/IoT.d.ts +42 -27
- package/dist-types/commands/CreateCertificateFromCsrCommand.d.ts +42 -27
- package/dist-types/commands/DeletePolicyVersionCommand.d.ts +1 -1
- package/dist-types/commands/ListStreamsCommand.d.ts +1 -2
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +31 -20
- package/dist-types/models/models_1.d.ts +38 -43
- package/dist-types/models/models_2.d.ts +44 -1
- package/dist-types/ts3.4/commands/DeletePolicyVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +1 -2
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +9 -7
- package/dist-types/ts3.4/models/models_1.d.ts +16 -17
- package/dist-types/ts3.4/models/models_2.d.ts +17 -1
- package/package.json +1 -1
|
@@ -643,6 +643,9 @@ export const serializeAws_restJson1CreateJobTemplateCommand = async (input, cont
|
|
|
643
643
|
...(input.jobExecutionsRolloutConfig != null && {
|
|
644
644
|
jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
|
|
645
645
|
}),
|
|
646
|
+
...(input.maintenanceWindows != null && {
|
|
647
|
+
maintenanceWindows: serializeAws_restJson1MaintenanceWindows(input.maintenanceWindows, context),
|
|
648
|
+
}),
|
|
646
649
|
...(input.presignedUrlConfig != null && {
|
|
647
650
|
presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
|
|
648
651
|
}),
|
|
@@ -9866,6 +9869,9 @@ export const deserializeAws_restJson1DescribeJobTemplateCommand = async (output,
|
|
|
9866
9869
|
if (data.jobTemplateId != null) {
|
|
9867
9870
|
contents.jobTemplateId = __expectString(data.jobTemplateId);
|
|
9868
9871
|
}
|
|
9872
|
+
if (data.maintenanceWindows != null) {
|
|
9873
|
+
contents.maintenanceWindows = deserializeAws_restJson1MaintenanceWindows(data.maintenanceWindows, context);
|
|
9874
|
+
}
|
|
9869
9875
|
if (data.presignedUrlConfig != null) {
|
|
9870
9876
|
contents.presignedUrlConfig = deserializeAws_restJson1PresignedUrlConfig(data.presignedUrlConfig, context);
|
|
9871
9877
|
}
|
|
@@ -17818,6 +17824,19 @@ const serializeAws_restJson1MachineLearningDetectionConfig = (input, context) =>
|
|
|
17818
17824
|
...(input.confidenceLevel != null && { confidenceLevel: input.confidenceLevel }),
|
|
17819
17825
|
};
|
|
17820
17826
|
};
|
|
17827
|
+
const serializeAws_restJson1MaintenanceWindow = (input, context) => {
|
|
17828
|
+
return {
|
|
17829
|
+
...(input.durationInMinutes != null && { durationInMinutes: input.durationInMinutes }),
|
|
17830
|
+
...(input.startTime != null && { startTime: input.startTime }),
|
|
17831
|
+
};
|
|
17832
|
+
};
|
|
17833
|
+
const serializeAws_restJson1MaintenanceWindows = (input, context) => {
|
|
17834
|
+
return input
|
|
17835
|
+
.filter((e) => e != null)
|
|
17836
|
+
.map((entry) => {
|
|
17837
|
+
return serializeAws_restJson1MaintenanceWindow(entry, context);
|
|
17838
|
+
});
|
|
17839
|
+
};
|
|
17821
17840
|
const serializeAws_restJson1MetricDimension = (input, context) => {
|
|
17822
17841
|
return {
|
|
17823
17842
|
...(input.dimensionName != null && { dimensionName: input.dimensionName }),
|
|
@@ -18135,6 +18154,9 @@ const serializeAws_restJson1SchedulingConfig = (input, context) => {
|
|
|
18135
18154
|
return {
|
|
18136
18155
|
...(input.endBehavior != null && { endBehavior: input.endBehavior }),
|
|
18137
18156
|
...(input.endTime != null && { endTime: input.endTime }),
|
|
18157
|
+
...(input.maintenanceWindows != null && {
|
|
18158
|
+
maintenanceWindows: serializeAws_restJson1MaintenanceWindows(input.maintenanceWindows, context),
|
|
18159
|
+
}),
|
|
18138
18160
|
...(input.startTime != null && { startTime: input.startTime }),
|
|
18139
18161
|
};
|
|
18140
18162
|
};
|
|
@@ -19709,6 +19731,9 @@ const deserializeAws_restJson1Job = (output, context) => {
|
|
|
19709
19731
|
? deserializeAws_restJson1PresignedUrlConfig(output.presignedUrlConfig, context)
|
|
19710
19732
|
: undefined,
|
|
19711
19733
|
reasonCode: __expectString(output.reasonCode),
|
|
19734
|
+
scheduledJobRollouts: output.scheduledJobRollouts != null
|
|
19735
|
+
? deserializeAws_restJson1ScheduledJobRolloutList(output.scheduledJobRollouts, context)
|
|
19736
|
+
: undefined,
|
|
19712
19737
|
schedulingConfig: output.schedulingConfig != null
|
|
19713
19738
|
? deserializeAws_restJson1SchedulingConfig(output.schedulingConfig, context)
|
|
19714
19739
|
: undefined,
|
|
@@ -19951,6 +19976,23 @@ const deserializeAws_restJson1MachineLearningDetectionConfig = (output, context)
|
|
|
19951
19976
|
confidenceLevel: __expectString(output.confidenceLevel),
|
|
19952
19977
|
};
|
|
19953
19978
|
};
|
|
19979
|
+
const deserializeAws_restJson1MaintenanceWindow = (output, context) => {
|
|
19980
|
+
return {
|
|
19981
|
+
durationInMinutes: __expectInt32(output.durationInMinutes),
|
|
19982
|
+
startTime: __expectString(output.startTime),
|
|
19983
|
+
};
|
|
19984
|
+
};
|
|
19985
|
+
const deserializeAws_restJson1MaintenanceWindows = (output, context) => {
|
|
19986
|
+
const retVal = (output || [])
|
|
19987
|
+
.filter((e) => e != null)
|
|
19988
|
+
.map((entry) => {
|
|
19989
|
+
if (entry === null) {
|
|
19990
|
+
return null;
|
|
19991
|
+
}
|
|
19992
|
+
return deserializeAws_restJson1MaintenanceWindow(entry, context);
|
|
19993
|
+
});
|
|
19994
|
+
return retVal;
|
|
19995
|
+
};
|
|
19954
19996
|
const deserializeAws_restJson1ManagedJobTemplatesSummaryList = (output, context) => {
|
|
19955
19997
|
const retVal = (output || [])
|
|
19956
19998
|
.filter((e) => e != null)
|
|
@@ -20686,10 +20728,29 @@ const deserializeAws_restJson1ScheduledAuditMetadataList = (output, context) =>
|
|
|
20686
20728
|
});
|
|
20687
20729
|
return retVal;
|
|
20688
20730
|
};
|
|
20731
|
+
const deserializeAws_restJson1ScheduledJobRollout = (output, context) => {
|
|
20732
|
+
return {
|
|
20733
|
+
startTime: __expectString(output.startTime),
|
|
20734
|
+
};
|
|
20735
|
+
};
|
|
20736
|
+
const deserializeAws_restJson1ScheduledJobRolloutList = (output, context) => {
|
|
20737
|
+
const retVal = (output || [])
|
|
20738
|
+
.filter((e) => e != null)
|
|
20739
|
+
.map((entry) => {
|
|
20740
|
+
if (entry === null) {
|
|
20741
|
+
return null;
|
|
20742
|
+
}
|
|
20743
|
+
return deserializeAws_restJson1ScheduledJobRollout(entry, context);
|
|
20744
|
+
});
|
|
20745
|
+
return retVal;
|
|
20746
|
+
};
|
|
20689
20747
|
const deserializeAws_restJson1SchedulingConfig = (output, context) => {
|
|
20690
20748
|
return {
|
|
20691
20749
|
endBehavior: __expectString(output.endBehavior),
|
|
20692
20750
|
endTime: __expectString(output.endTime),
|
|
20751
|
+
maintenanceWindows: output.maintenanceWindows != null
|
|
20752
|
+
? deserializeAws_restJson1MaintenanceWindows(output.maintenanceWindows, context)
|
|
20753
|
+
: undefined,
|
|
20693
20754
|
startTime: __expectString(output.startTime),
|
|
20694
20755
|
};
|
|
20695
20756
|
};
|
package/dist-types/IoT.d.ts
CHANGED
|
@@ -432,40 +432,55 @@ export declare class IoT extends IoTClient {
|
|
|
432
432
|
createBillingGroup(args: CreateBillingGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBillingGroupCommandOutput) => void): void;
|
|
433
433
|
/**
|
|
434
434
|
* <p>Creates an X.509 certificate using the specified certificate signing
|
|
435
|
-
* request
|
|
436
|
-
*
|
|
437
|
-
*
|
|
438
|
-
*
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
*
|
|
443
|
-
*
|
|
444
|
-
*
|
|
435
|
+
* request.
|
|
436
|
+
* </p>
|
|
437
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CreateCertificateFromCsr</a> action.
|
|
438
|
+
* </p>
|
|
439
|
+
* <note>
|
|
440
|
+
* <p>The CSR must include a public key that is either an
|
|
441
|
+
* RSA key with a length of at least 2048 bits or an ECC key from NIST P-25 or NIST P-384 curves.
|
|
442
|
+
* For supported certificates, consult <a href="https://docs.aws.amazon.com/iot/latest/developerguide/x509-client-certs.html#x509-cert-algorithms">
|
|
443
|
+
* Certificate signing algorithms supported by IoT</a>.
|
|
444
|
+
* </p>
|
|
445
|
+
* </note>
|
|
446
|
+
* <note>
|
|
447
|
+
* <p>Reusing the same certificate signing request (CSR)
|
|
448
|
+
* results in a distinct certificate.</p>
|
|
449
|
+
* </note>
|
|
445
450
|
* <p>You can create multiple certificates in a batch by creating a directory, copying
|
|
446
|
-
* multiple
|
|
451
|
+
* multiple <code>.csr</code> files into that directory, and then specifying that directory on the command
|
|
447
452
|
* line. The following commands show how to create a batch of certificates given a batch of
|
|
448
|
-
* CSRs
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
* <p>
|
|
452
|
-
*
|
|
453
|
-
*
|
|
453
|
+
* CSRs. In the following commands, we assume that a set of CSRs are located inside of the
|
|
454
|
+
* directory my-csr-directory:</p>
|
|
455
|
+
* <p>On Linux and OS X, the command is: </p>
|
|
456
|
+
* <p>
|
|
457
|
+
* <code>$ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr
|
|
458
|
+
* --certificate-signing-request file://my-csr-directory/{}</code>
|
|
459
|
+
* </p>
|
|
454
460
|
* <p>This command lists all of the CSRs in my-csr-directory and pipes each CSR file name
|
|
455
|
-
* to the aws iot create-certificate-from-csr Amazon Web Services CLI command to create a certificate for
|
|
456
|
-
* corresponding CSR
|
|
457
|
-
* <p>
|
|
458
|
-
* parallel to speed up the certificate creation process:</p>
|
|
459
|
-
* <p
|
|
460
|
-
*
|
|
461
|
+
* to the <code>aws iot create-certificate-from-csr</code> Amazon Web Services CLI command to create a certificate for
|
|
462
|
+
* the corresponding CSR. </p>
|
|
463
|
+
* <p>You can also run the <code>aws iot create-certificate-from-csr</code> part of the
|
|
464
|
+
* command in parallel to speed up the certificate creation process:</p>
|
|
465
|
+
* <p>
|
|
466
|
+
* <code>$ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr
|
|
467
|
+
* --certificate-signing-request file://my-csr-directory/{}
|
|
468
|
+
* </code>
|
|
469
|
+
* </p>
|
|
461
470
|
* <p>On Windows PowerShell, the command to create certificates for all CSRs in
|
|
462
471
|
* my-csr-directory is:</p>
|
|
463
|
-
* <p
|
|
464
|
-
*
|
|
472
|
+
* <p>
|
|
473
|
+
* <code>> ls -Name my-csr-directory | %{aws iot create-certificate-from-csr
|
|
474
|
+
* --certificate-signing-request file://my-csr-directory/$_}
|
|
475
|
+
* </code>
|
|
476
|
+
* </p>
|
|
465
477
|
* <p>On a Windows command prompt, the command to create certificates for all CSRs in
|
|
466
478
|
* my-csr-directory is:</p>
|
|
467
|
-
* <p
|
|
468
|
-
*
|
|
479
|
+
* <p>
|
|
480
|
+
* <code>> forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr
|
|
481
|
+
* --certificate-signing-request file://@path"
|
|
482
|
+
* </code>
|
|
483
|
+
* </p>
|
|
469
484
|
*/
|
|
470
485
|
createCertificateFromCsr(args: CreateCertificateFromCsrCommandInput, options?: __HttpHandlerOptions): Promise<CreateCertificateFromCsrCommandOutput>;
|
|
471
486
|
createCertificateFromCsr(args: CreateCertificateFromCsrCommandInput, cb: (err: any, data?: CreateCertificateFromCsrCommandOutput) => void): void;
|
|
@@ -15,40 +15,55 @@ export interface CreateCertificateFromCsrCommandOutput extends CreateCertificate
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* <p>Creates an X.509 certificate using the specified certificate signing
|
|
18
|
-
* request
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
18
|
+
* request.
|
|
19
|
+
* </p>
|
|
20
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CreateCertificateFromCsr</a> action.
|
|
21
|
+
* </p>
|
|
22
|
+
* <note>
|
|
23
|
+
* <p>The CSR must include a public key that is either an
|
|
24
|
+
* RSA key with a length of at least 2048 bits or an ECC key from NIST P-25 or NIST P-384 curves.
|
|
25
|
+
* For supported certificates, consult <a href="https://docs.aws.amazon.com/iot/latest/developerguide/x509-client-certs.html#x509-cert-algorithms">
|
|
26
|
+
* Certificate signing algorithms supported by IoT</a>.
|
|
27
|
+
* </p>
|
|
28
|
+
* </note>
|
|
29
|
+
* <note>
|
|
30
|
+
* <p>Reusing the same certificate signing request (CSR)
|
|
31
|
+
* results in a distinct certificate.</p>
|
|
32
|
+
* </note>
|
|
28
33
|
* <p>You can create multiple certificates in a batch by creating a directory, copying
|
|
29
|
-
* multiple
|
|
34
|
+
* multiple <code>.csr</code> files into that directory, and then specifying that directory on the command
|
|
30
35
|
* line. The following commands show how to create a batch of certificates given a batch of
|
|
31
|
-
* CSRs
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* <p>
|
|
35
|
-
*
|
|
36
|
-
*
|
|
36
|
+
* CSRs. In the following commands, we assume that a set of CSRs are located inside of the
|
|
37
|
+
* directory my-csr-directory:</p>
|
|
38
|
+
* <p>On Linux and OS X, the command is: </p>
|
|
39
|
+
* <p>
|
|
40
|
+
* <code>$ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr
|
|
41
|
+
* --certificate-signing-request file://my-csr-directory/{}</code>
|
|
42
|
+
* </p>
|
|
37
43
|
* <p>This command lists all of the CSRs in my-csr-directory and pipes each CSR file name
|
|
38
|
-
* to the aws iot create-certificate-from-csr Amazon Web Services CLI command to create a certificate for
|
|
39
|
-
* corresponding CSR
|
|
40
|
-
* <p>
|
|
41
|
-
* parallel to speed up the certificate creation process:</p>
|
|
42
|
-
* <p
|
|
43
|
-
*
|
|
44
|
+
* to the <code>aws iot create-certificate-from-csr</code> Amazon Web Services CLI command to create a certificate for
|
|
45
|
+
* the corresponding CSR. </p>
|
|
46
|
+
* <p>You can also run the <code>aws iot create-certificate-from-csr</code> part of the
|
|
47
|
+
* command in parallel to speed up the certificate creation process:</p>
|
|
48
|
+
* <p>
|
|
49
|
+
* <code>$ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr
|
|
50
|
+
* --certificate-signing-request file://my-csr-directory/{}
|
|
51
|
+
* </code>
|
|
52
|
+
* </p>
|
|
44
53
|
* <p>On Windows PowerShell, the command to create certificates for all CSRs in
|
|
45
54
|
* my-csr-directory is:</p>
|
|
46
|
-
* <p
|
|
47
|
-
*
|
|
55
|
+
* <p>
|
|
56
|
+
* <code>> ls -Name my-csr-directory | %{aws iot create-certificate-from-csr
|
|
57
|
+
* --certificate-signing-request file://my-csr-directory/$_}
|
|
58
|
+
* </code>
|
|
59
|
+
* </p>
|
|
48
60
|
* <p>On a Windows command prompt, the command to create certificates for all CSRs in
|
|
49
61
|
* my-csr-directory is:</p>
|
|
50
|
-
* <p
|
|
51
|
-
*
|
|
62
|
+
* <p>
|
|
63
|
+
* <code>> forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr
|
|
64
|
+
* --certificate-signing-request file://@path"
|
|
65
|
+
* </code>
|
|
66
|
+
* </p>
|
|
52
67
|
* @example
|
|
53
68
|
* Use a bare-bones client and the command you need to make an API call.
|
|
54
69
|
* ```javascript
|
|
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
|
|
5
|
-
import { DeletePolicyVersionRequest } from "../models/
|
|
5
|
+
import { DeletePolicyVersionRequest } from "../models/models_1";
|
|
6
6
|
/**
|
|
7
7
|
* The input for {@link DeletePolicyVersionCommand}.
|
|
8
8
|
*/
|
|
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
|
|
5
|
-
import { ListStreamsRequest } from "../models/
|
|
6
|
-
import { ListStreamsResponse } from "../models/models_2";
|
|
5
|
+
import { ListStreamsRequest, ListStreamsResponse } from "../models/models_2";
|
|
7
6
|
/**
|
|
8
7
|
* The input for {@link ListStreamsCommand}.
|
|
9
8
|
*/
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region?: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -2972,7 +2972,7 @@ export interface CreateFleetMetricRequest {
|
|
|
2972
2972
|
indexName?: string;
|
|
2973
2973
|
/**
|
|
2974
2974
|
* <p>Used to support unit transformation such as milliseconds to seconds. The unit must be
|
|
2975
|
-
* supported by <a href="https://docs.aws.amazon.com/
|
|
2975
|
+
* supported by <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">CW metric</a>. Default to null.</p>
|
|
2976
2976
|
*/
|
|
2977
2977
|
unit?: FleetMetricUnit | string;
|
|
2978
2978
|
/**
|
|
@@ -3113,6 +3113,19 @@ export declare enum JobEndBehavior {
|
|
|
3113
3113
|
FORCE_CANCEL = "FORCE_CANCEL",
|
|
3114
3114
|
STOP_ROLLOUT = "STOP_ROLLOUT"
|
|
3115
3115
|
}
|
|
3116
|
+
/**
|
|
3117
|
+
* <p>An optional configuration within the <code>SchedulingConfig</code> to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.</p>
|
|
3118
|
+
*/
|
|
3119
|
+
export interface MaintenanceWindow {
|
|
3120
|
+
/**
|
|
3121
|
+
* <p>Displays the start time of the next maintenance window.</p>
|
|
3122
|
+
*/
|
|
3123
|
+
startTime: string | undefined;
|
|
3124
|
+
/**
|
|
3125
|
+
* <p>Displays the duration of the next maintenance window.</p>
|
|
3126
|
+
*/
|
|
3127
|
+
durationInMinutes: number | undefined;
|
|
3128
|
+
}
|
|
3116
3129
|
/**
|
|
3117
3130
|
* <p>Specifies the date and time that a job will begin the rollout of the job document to all devices in the target group. Additionally, you can specify the end behavior for each job execution when it reaches the scheduled end time.</p>
|
|
3118
3131
|
*/
|
|
@@ -3120,7 +3133,9 @@ export interface SchedulingConfig {
|
|
|
3120
3133
|
/**
|
|
3121
3134
|
* <p>The time a job will begin rollout of the job document to all devices in the target
|
|
3122
3135
|
* group for a job. The <code>startTime</code> can be scheduled up to a year in advance and
|
|
3123
|
-
* must be scheduled a minimum of thirty minutes from the current time
|
|
3136
|
+
* must be scheduled a minimum of thirty minutes from the current time. The date and time
|
|
3137
|
+
* format for the <code>startTime</code> is YYYY-MM-DD for the date and HH:MM for the
|
|
3138
|
+
* time.</p>
|
|
3124
3139
|
*/
|
|
3125
3140
|
startTime?: string;
|
|
3126
3141
|
/**
|
|
@@ -3129,7 +3144,8 @@ export interface SchedulingConfig {
|
|
|
3129
3144
|
* the current time and be scheduled a minimum of thirty minutes from the current time. The
|
|
3130
3145
|
* minimum duration between <code>startTime</code> and <code>endTime</code> is thirty
|
|
3131
3146
|
* minutes. The maximum duration between <code>startTime</code> and <code>endTime</code> is
|
|
3132
|
-
* two years. </
|
|
3147
|
+
* two years. The date and time format for the <code>endTime</code> is YYYY-MM-DD for the
|
|
3148
|
+
* date and HH:MM for the time.</p>
|
|
3133
3149
|
*/
|
|
3134
3150
|
endTime?: string;
|
|
3135
3151
|
/**
|
|
@@ -3138,6 +3154,10 @@ export interface SchedulingConfig {
|
|
|
3138
3154
|
* then <code>endBehavior</code> does not apply.</p>
|
|
3139
3155
|
*/
|
|
3140
3156
|
endBehavior?: JobEndBehavior | string;
|
|
3157
|
+
/**
|
|
3158
|
+
* <p>An optional configuration within the <code>SchedulingConfig</code> to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.</p>
|
|
3159
|
+
*/
|
|
3160
|
+
maintenanceWindows?: MaintenanceWindow[];
|
|
3141
3161
|
}
|
|
3142
3162
|
export declare enum TargetSelection {
|
|
3143
3163
|
CONTINUOUS = "CONTINUOUS",
|
|
@@ -3342,6 +3362,10 @@ export interface CreateJobTemplateRequest {
|
|
|
3342
3362
|
* <p>Allows you to create the criteria to retry a job.</p>
|
|
3343
3363
|
*/
|
|
3344
3364
|
jobExecutionsRetryConfig?: JobExecutionsRetryConfig;
|
|
3365
|
+
/**
|
|
3366
|
+
* <p>Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.</p>
|
|
3367
|
+
*/
|
|
3368
|
+
maintenanceWindows?: MaintenanceWindow[];
|
|
3345
3369
|
}
|
|
3346
3370
|
export interface CreateJobTemplateResponse {
|
|
3347
3371
|
/**
|
|
@@ -4980,19 +5004,6 @@ export interface DeletePolicyRequest {
|
|
|
4980
5004
|
*/
|
|
4981
5005
|
policyName: string | undefined;
|
|
4982
5006
|
}
|
|
4983
|
-
/**
|
|
4984
|
-
* <p>The input for the DeletePolicyVersion operation.</p>
|
|
4985
|
-
*/
|
|
4986
|
-
export interface DeletePolicyVersionRequest {
|
|
4987
|
-
/**
|
|
4988
|
-
* <p>The name of the policy.</p>
|
|
4989
|
-
*/
|
|
4990
|
-
policyName: string | undefined;
|
|
4991
|
-
/**
|
|
4992
|
-
* <p>The policy version ID.</p>
|
|
4993
|
-
*/
|
|
4994
|
-
policyVersionId: string | undefined;
|
|
4995
|
-
}
|
|
4996
5007
|
/**
|
|
4997
5008
|
* @internal
|
|
4998
5009
|
*/
|
|
@@ -5517,6 +5528,10 @@ export declare const JobExecutionsRolloutConfigFilterSensitiveLog: (obj: JobExec
|
|
|
5517
5528
|
* @internal
|
|
5518
5529
|
*/
|
|
5519
5530
|
export declare const PresignedUrlConfigFilterSensitiveLog: (obj: PresignedUrlConfig) => any;
|
|
5531
|
+
/**
|
|
5532
|
+
* @internal
|
|
5533
|
+
*/
|
|
5534
|
+
export declare const MaintenanceWindowFilterSensitiveLog: (obj: MaintenanceWindow) => any;
|
|
5520
5535
|
/**
|
|
5521
5536
|
* @internal
|
|
5522
5537
|
*/
|
|
@@ -5929,7 +5944,3 @@ export declare const DeleteOTAUpdateResponseFilterSensitiveLog: (obj: DeleteOTAU
|
|
|
5929
5944
|
* @internal
|
|
5930
5945
|
*/
|
|
5931
5946
|
export declare const DeletePolicyRequestFilterSensitiveLog: (obj: DeletePolicyRequest) => any;
|
|
5932
|
-
/**
|
|
5933
|
-
* @internal
|
|
5934
|
-
*/
|
|
5935
|
-
export declare const DeletePolicyVersionRequestFilterSensitiveLog: (obj: DeletePolicyVersionRequest) => any;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { IoTServiceException as __BaseException } from "./IoTServiceException";
|
|
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, DimensionValueOperator, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MetricToRetain, MetricValue, MitigationActionParams, OTAUpdateFile, OTAUpdateStatus, Policy, PresignedUrlConfig, Protocol, ProvisioningHook, RelatedResource, ResourceIdentifier, SchedulingConfig, ServiceType, StreamFile, TargetSelection, TaskStatisticsForAuditCheck, TemplateType, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TopicRuleDestination, VerificationState } from "./models_0";
|
|
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, DimensionValueOperator, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MaintenanceWindow, MetricToRetain, MetricValue, MitigationActionParams, OTAUpdateFile, OTAUpdateStatus, Policy, PresignedUrlConfig, Protocol, ProvisioningHook, RelatedResource, ResourceIdentifier, SchedulingConfig, ServiceType, StreamFile, TargetSelection, TaskStatisticsForAuditCheck, TemplateType, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TopicRuleDestination, VerificationState } from "./models_0";
|
|
4
|
+
/**
|
|
5
|
+
* <p>The input for the DeletePolicyVersion operation.</p>
|
|
6
|
+
*/
|
|
7
|
+
export interface DeletePolicyVersionRequest {
|
|
8
|
+
/**
|
|
9
|
+
* <p>The name of the policy.</p>
|
|
10
|
+
*/
|
|
11
|
+
policyName: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* <p>The policy version ID.</p>
|
|
14
|
+
*/
|
|
15
|
+
policyVersionId: string | undefined;
|
|
16
|
+
}
|
|
4
17
|
export interface DeleteProvisioningTemplateRequest {
|
|
5
18
|
/**
|
|
6
19
|
* <p>The name of the fleet provision template to delete.</p>
|
|
@@ -1119,7 +1132,7 @@ export interface DescribeFleetMetricResponse {
|
|
|
1119
1132
|
lastModifiedDate?: Date;
|
|
1120
1133
|
/**
|
|
1121
1134
|
* <p>Used to support unit transformation such as milliseconds to seconds. The unit must be
|
|
1122
|
-
* supported by <a href="https://docs.aws.amazon.com/
|
|
1135
|
+
* supported by <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">CW metric</a>.</p>
|
|
1123
1136
|
*/
|
|
1124
1137
|
unit?: FleetMetricUnit | string;
|
|
1125
1138
|
/**
|
|
@@ -1225,6 +1238,15 @@ export interface JobProcessDetails {
|
|
|
1225
1238
|
*/
|
|
1226
1239
|
numberOfTimedOutThings?: number;
|
|
1227
1240
|
}
|
|
1241
|
+
/**
|
|
1242
|
+
* <p>Displays the next seven maintenance window occurrences and their start times.</p>
|
|
1243
|
+
*/
|
|
1244
|
+
export interface ScheduledJobRollout {
|
|
1245
|
+
/**
|
|
1246
|
+
* <p>Displays the start times of the next seven maintenance window occurrences.</p>
|
|
1247
|
+
*/
|
|
1248
|
+
startTime?: string;
|
|
1249
|
+
}
|
|
1228
1250
|
export declare enum JobStatus {
|
|
1229
1251
|
CANCELED = "CANCELED",
|
|
1230
1252
|
COMPLETED = "COMPLETED",
|
|
@@ -1361,6 +1383,10 @@ export interface Job {
|
|
|
1361
1383
|
* addition to specifying the end behavior for each job execution.</p>
|
|
1362
1384
|
*/
|
|
1363
1385
|
schedulingConfig?: SchedulingConfig;
|
|
1386
|
+
/**
|
|
1387
|
+
* <p>Displays the next seven maintenance window occurrences and their start times.</p>
|
|
1388
|
+
*/
|
|
1389
|
+
scheduledJobRollouts?: ScheduledJobRollout[];
|
|
1364
1390
|
}
|
|
1365
1391
|
export interface DescribeJobResponse {
|
|
1366
1392
|
/**
|
|
@@ -1524,6 +1550,10 @@ export interface DescribeJobTemplateResponse {
|
|
|
1524
1550
|
* for a job.</p>
|
|
1525
1551
|
*/
|
|
1526
1552
|
jobExecutionsRetryConfig?: JobExecutionsRetryConfig;
|
|
1553
|
+
/**
|
|
1554
|
+
* <p>Allows you to configure an optional maintenance window for the rollout of a job document to all devices in the target group for a job.</p>
|
|
1555
|
+
*/
|
|
1556
|
+
maintenanceWindows?: MaintenanceWindow[];
|
|
1527
1557
|
}
|
|
1528
1558
|
export interface DescribeManagedJobTemplateRequest {
|
|
1529
1559
|
/**
|
|
@@ -4937,41 +4967,10 @@ export interface ListSecurityProfilesForTargetResponse {
|
|
|
4937
4967
|
*/
|
|
4938
4968
|
nextToken?: string;
|
|
4939
4969
|
}
|
|
4940
|
-
export interface ListStreamsRequest {
|
|
4941
|
-
/**
|
|
4942
|
-
* <p>The maximum number of results to return at a time.</p>
|
|
4943
|
-
*/
|
|
4944
|
-
maxResults?: number;
|
|
4945
|
-
/**
|
|
4946
|
-
* <p>A token used to get the next set of results.</p>
|
|
4947
|
-
*/
|
|
4948
|
-
nextToken?: string;
|
|
4949
|
-
/**
|
|
4950
|
-
* <p>Set to true to return the list of streams in ascending order.</p>
|
|
4951
|
-
*/
|
|
4952
|
-
ascendingOrder?: boolean;
|
|
4953
|
-
}
|
|
4954
4970
|
/**
|
|
4955
|
-
*
|
|
4971
|
+
* @internal
|
|
4956
4972
|
*/
|
|
4957
|
-
export
|
|
4958
|
-
/**
|
|
4959
|
-
* <p>The stream ID.</p>
|
|
4960
|
-
*/
|
|
4961
|
-
streamId?: string;
|
|
4962
|
-
/**
|
|
4963
|
-
* <p>The stream ARN.</p>
|
|
4964
|
-
*/
|
|
4965
|
-
streamArn?: string;
|
|
4966
|
-
/**
|
|
4967
|
-
* <p>The stream version.</p>
|
|
4968
|
-
*/
|
|
4969
|
-
streamVersion?: number;
|
|
4970
|
-
/**
|
|
4971
|
-
* <p>A description of the stream.</p>
|
|
4972
|
-
*/
|
|
4973
|
-
description?: string;
|
|
4974
|
-
}
|
|
4973
|
+
export declare const DeletePolicyVersionRequestFilterSensitiveLog: (obj: DeletePolicyVersionRequest) => any;
|
|
4975
4974
|
/**
|
|
4976
4975
|
* @internal
|
|
4977
4976
|
*/
|
|
@@ -5284,6 +5283,10 @@ export declare const DescribeJobRequestFilterSensitiveLog: (obj: DescribeJobRequ
|
|
|
5284
5283
|
* @internal
|
|
5285
5284
|
*/
|
|
5286
5285
|
export declare const JobProcessDetailsFilterSensitiveLog: (obj: JobProcessDetails) => any;
|
|
5286
|
+
/**
|
|
5287
|
+
* @internal
|
|
5288
|
+
*/
|
|
5289
|
+
export declare const ScheduledJobRolloutFilterSensitiveLog: (obj: ScheduledJobRollout) => any;
|
|
5287
5290
|
/**
|
|
5288
5291
|
* @internal
|
|
5289
5292
|
*/
|
|
@@ -6060,11 +6063,3 @@ export declare const SecurityProfileTargetMappingFilterSensitiveLog: (obj: Secur
|
|
|
6060
6063
|
* @internal
|
|
6061
6064
|
*/
|
|
6062
6065
|
export declare const ListSecurityProfilesForTargetResponseFilterSensitiveLog: (obj: ListSecurityProfilesForTargetResponse) => any;
|
|
6063
|
-
/**
|
|
6064
|
-
* @internal
|
|
6065
|
-
*/
|
|
6066
|
-
export declare const ListStreamsRequestFilterSensitiveLog: (obj: ListStreamsRequest) => any;
|
|
6067
|
-
/**
|
|
6068
|
-
* @internal
|
|
6069
|
-
*/
|
|
6070
|
-
export declare const StreamSummaryFilterSensitiveLog: (obj: StreamSummary) => any;
|
|
@@ -1,7 +1,42 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { IoTServiceException as __BaseException } from "./IoTServiceException";
|
|
3
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";
|
|
4
|
-
import { BehaviorCriteriaType, CACertificateStatus, CertificateMode, CertificateStatus, Configuration, DetectMitigationActionsTaskTarget, DomainConfigurationStatus, GroupNameAndArn, LogTargetType, RegistrationConfig, SecurityProfileTarget, Status,
|
|
4
|
+
import { BehaviorCriteriaType, CACertificateStatus, CertificateMode, CertificateStatus, Configuration, DetectMitigationActionsTaskTarget, DomainConfigurationStatus, GroupNameAndArn, LogTargetType, RegistrationConfig, SecurityProfileTarget, Status, ThingGroupIndexingConfiguration, ThingIndexingConfiguration, ThingTypeMetadata, ViolationEventOccurrenceRange } from "./models_1";
|
|
5
|
+
export interface ListStreamsRequest {
|
|
6
|
+
/**
|
|
7
|
+
* <p>The maximum number of results to return at a time.</p>
|
|
8
|
+
*/
|
|
9
|
+
maxResults?: number;
|
|
10
|
+
/**
|
|
11
|
+
* <p>A token used to get the next set of results.</p>
|
|
12
|
+
*/
|
|
13
|
+
nextToken?: string;
|
|
14
|
+
/**
|
|
15
|
+
* <p>Set to true to return the list of streams in ascending order.</p>
|
|
16
|
+
*/
|
|
17
|
+
ascendingOrder?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* <p>A summary of a stream.</p>
|
|
21
|
+
*/
|
|
22
|
+
export interface StreamSummary {
|
|
23
|
+
/**
|
|
24
|
+
* <p>The stream ID.</p>
|
|
25
|
+
*/
|
|
26
|
+
streamId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* <p>The stream ARN.</p>
|
|
29
|
+
*/
|
|
30
|
+
streamArn?: string;
|
|
31
|
+
/**
|
|
32
|
+
* <p>The stream version.</p>
|
|
33
|
+
*/
|
|
34
|
+
streamVersion?: number;
|
|
35
|
+
/**
|
|
36
|
+
* <p>A description of the stream.</p>
|
|
37
|
+
*/
|
|
38
|
+
description?: string;
|
|
39
|
+
}
|
|
5
40
|
export interface ListStreamsResponse {
|
|
6
41
|
/**
|
|
7
42
|
* <p>A list of streams.</p>
|
|
@@ -2443,6 +2478,14 @@ export interface ValidateSecurityProfileBehaviorsResponse {
|
|
|
2443
2478
|
*/
|
|
2444
2479
|
validationErrors?: ValidationError[];
|
|
2445
2480
|
}
|
|
2481
|
+
/**
|
|
2482
|
+
* @internal
|
|
2483
|
+
*/
|
|
2484
|
+
export declare const ListStreamsRequestFilterSensitiveLog: (obj: ListStreamsRequest) => any;
|
|
2485
|
+
/**
|
|
2486
|
+
* @internal
|
|
2487
|
+
*/
|
|
2488
|
+
export declare const StreamSummaryFilterSensitiveLog: (obj: StreamSummary) => any;
|
|
2446
2489
|
/**
|
|
2447
2490
|
* @internal
|
|
2448
2491
|
*/
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
ServiceInputTypes,
|
|
12
12
|
ServiceOutputTypes,
|
|
13
13
|
} from "../IoTClient";
|
|
14
|
-
import { DeletePolicyVersionRequest } from "../models/
|
|
14
|
+
import { DeletePolicyVersionRequest } from "../models/models_1";
|
|
15
15
|
export interface DeletePolicyVersionCommandInput
|
|
16
16
|
extends DeletePolicyVersionRequest {}
|
|
17
17
|
export interface DeletePolicyVersionCommandOutput extends __MetadataBearer {}
|
|
@@ -11,8 +11,7 @@ import {
|
|
|
11
11
|
ServiceInputTypes,
|
|
12
12
|
ServiceOutputTypes,
|
|
13
13
|
} from "../IoTClient";
|
|
14
|
-
import { ListStreamsRequest } from "../models/
|
|
15
|
-
import { ListStreamsResponse } from "../models/models_2";
|
|
14
|
+
import { ListStreamsRequest, ListStreamsResponse } from "../models/models_2";
|
|
16
15
|
export interface ListStreamsCommandInput extends ListStreamsRequest {}
|
|
17
16
|
export interface ListStreamsCommandOutput
|
|
18
17
|
extends ListStreamsResponse,
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region?: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|