aws-sdk 2.1391.0 → 2.1392.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/clients/iot.d.ts CHANGED
@@ -164,11 +164,11 @@ declare class Iot extends Service {
164
164
  */
165
165
  createBillingGroup(callback?: (err: AWSError, data: Iot.Types.CreateBillingGroupResponse) => void): Request<Iot.Types.CreateBillingGroupResponse, AWSError>;
166
166
  /**
167
- * Creates an X.509 certificate using the specified certificate signing request. Requires permission to access the CreateCertificateFromCsr action. The CSR must include a public key that is either an RSA key with a length of at least 2048 bits or an ECC key from NIST P-25 or NIST P-384 curves. For supported certificates, consult Certificate signing algorithms supported by IoT. Reusing the same certificate signing request (CSR) results in a distinct certificate. You can create multiple certificates in a batch by creating a directory, copying multiple .csr files into that directory, and then specifying that directory on the command line. The following commands show how to create a batch of certificates given a batch of CSRs. In the following commands, we assume that a set of CSRs are located inside of the directory my-csr-directory: On Linux and OS X, the command is: $ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{} This command lists all of the CSRs in my-csr-directory and pipes each CSR file name to the aws iot create-certificate-from-csr Amazon Web Services CLI command to create a certificate for the corresponding CSR. You can also run the aws iot create-certificate-from-csr part of the command in parallel to speed up the certificate creation process: $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{} On Windows PowerShell, the command to create certificates for all CSRs in my-csr-directory is: &gt; ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/$_} On a Windows command prompt, the command to create certificates for all CSRs in my-csr-directory is: &gt; forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr --certificate-signing-request file://@path"
167
+ * Creates an X.509 certificate using the specified certificate signing request. Requires permission to access the CreateCertificateFromCsr action. The CSR must include a public key that is either an RSA key with a length of at least 2048 bits or an ECC key from NIST P-256 or NIST P-384 curves. For supported certificates, consult Certificate signing algorithms supported by IoT. Reusing the same certificate signing request (CSR) results in a distinct certificate. You can create multiple certificates in a batch by creating a directory, copying multiple .csr files into that directory, and then specifying that directory on the command line. The following commands show how to create a batch of certificates given a batch of CSRs. In the following commands, we assume that a set of CSRs are located inside of the directory my-csr-directory: On Linux and OS X, the command is: $ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{} This command lists all of the CSRs in my-csr-directory and pipes each CSR file name to the aws iot create-certificate-from-csr Amazon Web Services CLI command to create a certificate for the corresponding CSR. You can also run the aws iot create-certificate-from-csr part of the command in parallel to speed up the certificate creation process: $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{} On Windows PowerShell, the command to create certificates for all CSRs in my-csr-directory is: &gt; ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/$_} On a Windows command prompt, the command to create certificates for all CSRs in my-csr-directory is: &gt; forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr --certificate-signing-request file://@path"
168
168
  */
169
169
  createCertificateFromCsr(params: Iot.Types.CreateCertificateFromCsrRequest, callback?: (err: AWSError, data: Iot.Types.CreateCertificateFromCsrResponse) => void): Request<Iot.Types.CreateCertificateFromCsrResponse, AWSError>;
170
170
  /**
171
- * Creates an X.509 certificate using the specified certificate signing request. Requires permission to access the CreateCertificateFromCsr action. The CSR must include a public key that is either an RSA key with a length of at least 2048 bits or an ECC key from NIST P-25 or NIST P-384 curves. For supported certificates, consult Certificate signing algorithms supported by IoT. Reusing the same certificate signing request (CSR) results in a distinct certificate. You can create multiple certificates in a batch by creating a directory, copying multiple .csr files into that directory, and then specifying that directory on the command line. The following commands show how to create a batch of certificates given a batch of CSRs. In the following commands, we assume that a set of CSRs are located inside of the directory my-csr-directory: On Linux and OS X, the command is: $ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{} This command lists all of the CSRs in my-csr-directory and pipes each CSR file name to the aws iot create-certificate-from-csr Amazon Web Services CLI command to create a certificate for the corresponding CSR. You can also run the aws iot create-certificate-from-csr part of the command in parallel to speed up the certificate creation process: $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{} On Windows PowerShell, the command to create certificates for all CSRs in my-csr-directory is: &gt; ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/$_} On a Windows command prompt, the command to create certificates for all CSRs in my-csr-directory is: &gt; forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr --certificate-signing-request file://@path"
171
+ * Creates an X.509 certificate using the specified certificate signing request. Requires permission to access the CreateCertificateFromCsr action. The CSR must include a public key that is either an RSA key with a length of at least 2048 bits or an ECC key from NIST P-256 or NIST P-384 curves. For supported certificates, consult Certificate signing algorithms supported by IoT. Reusing the same certificate signing request (CSR) results in a distinct certificate. You can create multiple certificates in a batch by creating a directory, copying multiple .csr files into that directory, and then specifying that directory on the command line. The following commands show how to create a batch of certificates given a batch of CSRs. In the following commands, we assume that a set of CSRs are located inside of the directory my-csr-directory: On Linux and OS X, the command is: $ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{} This command lists all of the CSRs in my-csr-directory and pipes each CSR file name to the aws iot create-certificate-from-csr Amazon Web Services CLI command to create a certificate for the corresponding CSR. You can also run the aws iot create-certificate-from-csr part of the command in parallel to speed up the certificate creation process: $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{} On Windows PowerShell, the command to create certificates for all CSRs in my-csr-directory is: &gt; ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/$_} On a Windows command prompt, the command to create certificates for all CSRs in my-csr-directory is: &gt; forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr --certificate-signing-request file://@path"
172
172
  */
173
173
  createCertificateFromCsr(callback?: (err: AWSError, data: Iot.Types.CreateCertificateFromCsrResponse) => void): Request<Iot.Types.CreateCertificateFromCsrResponse, AWSError>;
174
174
  /**
@@ -251,6 +251,22 @@ declare class Iot extends Service {
251
251
  * Creates an IoT OTA update on a target group of things or groups. Requires permission to access the CreateOTAUpdate action.
252
252
  */
253
253
  createOTAUpdate(callback?: (err: AWSError, data: Iot.Types.CreateOTAUpdateResponse) => void): Request<Iot.Types.CreateOTAUpdateResponse, AWSError>;
254
+ /**
255
+ * Creates an IoT software package that can be deployed to your fleet. Requires permission to access the CreatePackage and GetIndexingConfiguration actions.
256
+ */
257
+ createPackage(params: Iot.Types.CreatePackageRequest, callback?: (err: AWSError, data: Iot.Types.CreatePackageResponse) => void): Request<Iot.Types.CreatePackageResponse, AWSError>;
258
+ /**
259
+ * Creates an IoT software package that can be deployed to your fleet. Requires permission to access the CreatePackage and GetIndexingConfiguration actions.
260
+ */
261
+ createPackage(callback?: (err: AWSError, data: Iot.Types.CreatePackageResponse) => void): Request<Iot.Types.CreatePackageResponse, AWSError>;
262
+ /**
263
+ * Creates a new version for an existing IoT software package. Requires permission to access the CreatePackageVersion and GetIndexingConfiguration actions.
264
+ */
265
+ createPackageVersion(params: Iot.Types.CreatePackageVersionRequest, callback?: (err: AWSError, data: Iot.Types.CreatePackageVersionResponse) => void): Request<Iot.Types.CreatePackageVersionResponse, AWSError>;
266
+ /**
267
+ * Creates a new version for an existing IoT software package. Requires permission to access the CreatePackageVersion and GetIndexingConfiguration actions.
268
+ */
269
+ createPackageVersion(callback?: (err: AWSError, data: Iot.Types.CreatePackageVersionResponse) => void): Request<Iot.Types.CreatePackageVersionResponse, AWSError>;
254
270
  /**
255
271
  * Creates an IoT policy. The created policy is the default version for the policy. This operation creates a policy version with a version identifier of 1 and sets 1 as the policy's default version. Requires permission to access the CreatePolicy action.
256
272
  */
@@ -491,6 +507,22 @@ declare class Iot extends Service {
491
507
  * Delete an OTA update. Requires permission to access the DeleteOTAUpdate action.
492
508
  */
493
509
  deleteOTAUpdate(callback?: (err: AWSError, data: Iot.Types.DeleteOTAUpdateResponse) => void): Request<Iot.Types.DeleteOTAUpdateResponse, AWSError>;
510
+ /**
511
+ * Deletes a specific version from a software package. Note: All package versions must be deleted before deleting the software package. Requires permission to access the DeletePackageVersion action.
512
+ */
513
+ deletePackage(params: Iot.Types.DeletePackageRequest, callback?: (err: AWSError, data: Iot.Types.DeletePackageResponse) => void): Request<Iot.Types.DeletePackageResponse, AWSError>;
514
+ /**
515
+ * Deletes a specific version from a software package. Note: All package versions must be deleted before deleting the software package. Requires permission to access the DeletePackageVersion action.
516
+ */
517
+ deletePackage(callback?: (err: AWSError, data: Iot.Types.DeletePackageResponse) => void): Request<Iot.Types.DeletePackageResponse, AWSError>;
518
+ /**
519
+ * Deletes a specific version from a software package. Note: If a package version is designated as default, you must remove the designation from the package using the UpdatePackage action.
520
+ */
521
+ deletePackageVersion(params: Iot.Types.DeletePackageVersionRequest, callback?: (err: AWSError, data: Iot.Types.DeletePackageVersionResponse) => void): Request<Iot.Types.DeletePackageVersionResponse, AWSError>;
522
+ /**
523
+ * Deletes a specific version from a software package. Note: If a package version is designated as default, you must remove the designation from the package using the UpdatePackage action.
524
+ */
525
+ deletePackageVersion(callback?: (err: AWSError, data: Iot.Types.DeletePackageVersionResponse) => void): Request<Iot.Types.DeletePackageVersionResponse, AWSError>;
494
526
  /**
495
527
  * Deletes the specified policy. A policy cannot be deleted if it has non-default versions or it is attached to any certificate. To delete a policy, use the DeletePolicyVersion action to delete all non-default versions of the policy; use the DetachPolicy action to detach the policy from any certificate; and then use the DeletePolicy action to delete the policy. When a policy is deleted using DeletePolicy, its default version is deleted with it. Because of the distributed nature of Amazon Web Services, it can take up to five minutes after a policy is detached before it's ready to be deleted. Requires permission to access the DeletePolicy action.
496
528
  */
@@ -995,6 +1027,30 @@ declare class Iot extends Service {
995
1027
  * Gets an OTA update. Requires permission to access the GetOTAUpdate action.
996
1028
  */
997
1029
  getOTAUpdate(callback?: (err: AWSError, data: Iot.Types.GetOTAUpdateResponse) => void): Request<Iot.Types.GetOTAUpdateResponse, AWSError>;
1030
+ /**
1031
+ * Gets information about the specified software package. Requires permission to access the GetPackage action.
1032
+ */
1033
+ getPackage(params: Iot.Types.GetPackageRequest, callback?: (err: AWSError, data: Iot.Types.GetPackageResponse) => void): Request<Iot.Types.GetPackageResponse, AWSError>;
1034
+ /**
1035
+ * Gets information about the specified software package. Requires permission to access the GetPackage action.
1036
+ */
1037
+ getPackage(callback?: (err: AWSError, data: Iot.Types.GetPackageResponse) => void): Request<Iot.Types.GetPackageResponse, AWSError>;
1038
+ /**
1039
+ * Gets information about the specified software package's configuration. Requires permission to access the GetPackageConfiguration action.
1040
+ */
1041
+ getPackageConfiguration(params: Iot.Types.GetPackageConfigurationRequest, callback?: (err: AWSError, data: Iot.Types.GetPackageConfigurationResponse) => void): Request<Iot.Types.GetPackageConfigurationResponse, AWSError>;
1042
+ /**
1043
+ * Gets information about the specified software package's configuration. Requires permission to access the GetPackageConfiguration action.
1044
+ */
1045
+ getPackageConfiguration(callback?: (err: AWSError, data: Iot.Types.GetPackageConfigurationResponse) => void): Request<Iot.Types.GetPackageConfigurationResponse, AWSError>;
1046
+ /**
1047
+ * Gets information about the specified package version. Requires permission to access the GetPackageVersion action.
1048
+ */
1049
+ getPackageVersion(params: Iot.Types.GetPackageVersionRequest, callback?: (err: AWSError, data: Iot.Types.GetPackageVersionResponse) => void): Request<Iot.Types.GetPackageVersionResponse, AWSError>;
1050
+ /**
1051
+ * Gets information about the specified package version. Requires permission to access the GetPackageVersion action.
1052
+ */
1053
+ getPackageVersion(callback?: (err: AWSError, data: Iot.Types.GetPackageVersionResponse) => void): Request<Iot.Types.GetPackageVersionResponse, AWSError>;
998
1054
  /**
999
1055
  * Groups the aggregated values that match the query into percentile groupings. The default percentile groupings are: 1,5,25,50,75,95,99, although you can specify your own when you call GetPercentiles. This function returns a value for each percentile group specified (or the default percentile groupings). The percentile group "1" contains the aggregated field value that occurs in approximately one percent of the values that match the query. The percentile group "5" contains the aggregated field value that occurs in approximately five percent of the values that match the query, and so on. The result is an approximation, the more values that match the query, the more accurate the percentile values. Requires permission to access the GetPercentiles action.
1000
1056
  */
@@ -1283,6 +1339,22 @@ declare class Iot extends Service {
1283
1339
  * Lists certificates that are being transferred but not yet accepted. Requires permission to access the ListOutgoingCertificates action.
1284
1340
  */
1285
1341
  listOutgoingCertificates(callback?: (err: AWSError, data: Iot.Types.ListOutgoingCertificatesResponse) => void): Request<Iot.Types.ListOutgoingCertificatesResponse, AWSError>;
1342
+ /**
1343
+ * Lists the software package versions associated to the account. Requires permission to access the ListPackageVersions action.
1344
+ */
1345
+ listPackageVersions(params: Iot.Types.ListPackageVersionsRequest, callback?: (err: AWSError, data: Iot.Types.ListPackageVersionsResponse) => void): Request<Iot.Types.ListPackageVersionsResponse, AWSError>;
1346
+ /**
1347
+ * Lists the software package versions associated to the account. Requires permission to access the ListPackageVersions action.
1348
+ */
1349
+ listPackageVersions(callback?: (err: AWSError, data: Iot.Types.ListPackageVersionsResponse) => void): Request<Iot.Types.ListPackageVersionsResponse, AWSError>;
1350
+ /**
1351
+ * Lists the software packages associated to the account. Requires permission to access the ListPackages action.
1352
+ */
1353
+ listPackages(params: Iot.Types.ListPackagesRequest, callback?: (err: AWSError, data: Iot.Types.ListPackagesResponse) => void): Request<Iot.Types.ListPackagesResponse, AWSError>;
1354
+ /**
1355
+ * Lists the software packages associated to the account. Requires permission to access the ListPackages action.
1356
+ */
1357
+ listPackages(callback?: (err: AWSError, data: Iot.Types.ListPackagesResponse) => void): Request<Iot.Types.ListPackagesResponse, AWSError>;
1286
1358
  /**
1287
1359
  * Lists your policies. Requires permission to access the ListPolicies action.
1288
1360
  */
@@ -1835,6 +1907,30 @@ declare class Iot extends Service {
1835
1907
  * Updates the definition for the specified mitigation action. Requires permission to access the UpdateMitigationAction action.
1836
1908
  */
1837
1909
  updateMitigationAction(callback?: (err: AWSError, data: Iot.Types.UpdateMitigationActionResponse) => void): Request<Iot.Types.UpdateMitigationActionResponse, AWSError>;
1910
+ /**
1911
+ * Updates the supported fields for a specific package. Requires permission to access the UpdatePackage and GetIndexingConfiguration actions.
1912
+ */
1913
+ updatePackage(params: Iot.Types.UpdatePackageRequest, callback?: (err: AWSError, data: Iot.Types.UpdatePackageResponse) => void): Request<Iot.Types.UpdatePackageResponse, AWSError>;
1914
+ /**
1915
+ * Updates the supported fields for a specific package. Requires permission to access the UpdatePackage and GetIndexingConfiguration actions.
1916
+ */
1917
+ updatePackage(callback?: (err: AWSError, data: Iot.Types.UpdatePackageResponse) => void): Request<Iot.Types.UpdatePackageResponse, AWSError>;
1918
+ /**
1919
+ * Updates the package configuration. Requires permission to access the UpdatePackageConfiguration and iam:PassRole actions.
1920
+ */
1921
+ updatePackageConfiguration(params: Iot.Types.UpdatePackageConfigurationRequest, callback?: (err: AWSError, data: Iot.Types.UpdatePackageConfigurationResponse) => void): Request<Iot.Types.UpdatePackageConfigurationResponse, AWSError>;
1922
+ /**
1923
+ * Updates the package configuration. Requires permission to access the UpdatePackageConfiguration and iam:PassRole actions.
1924
+ */
1925
+ updatePackageConfiguration(callback?: (err: AWSError, data: Iot.Types.UpdatePackageConfigurationResponse) => void): Request<Iot.Types.UpdatePackageConfigurationResponse, AWSError>;
1926
+ /**
1927
+ * Updates the supported fields for a specific package version. Requires permission to access the UpdatePackageVersion and GetIndexingConfiguration actions.
1928
+ */
1929
+ updatePackageVersion(params: Iot.Types.UpdatePackageVersionRequest, callback?: (err: AWSError, data: Iot.Types.UpdatePackageVersionResponse) => void): Request<Iot.Types.UpdatePackageVersionResponse, AWSError>;
1930
+ /**
1931
+ * Updates the supported fields for a specific package version. Requires permission to access the UpdatePackageVersion and GetIndexingConfiguration actions.
1932
+ */
1933
+ updatePackageVersion(callback?: (err: AWSError, data: Iot.Types.UpdatePackageVersionResponse) => void): Request<Iot.Types.UpdatePackageVersionResponse, AWSError>;
1838
1934
  /**
1839
1935
  * Updates a provisioning template. Requires permission to access the UpdateProvisioningTemplate action.
1840
1936
  */
@@ -3128,6 +3224,7 @@ declare namespace Iot {
3128
3224
  export type ClientId = string;
3129
3225
  export type ClientProperties = {[key: string]: String};
3130
3226
  export type ClientRequestToken = string;
3227
+ export type ClientToken = string;
3131
3228
  export interface CloudwatchAlarmAction {
3132
3229
  /**
3133
3230
  * The IAM role that allows access to the CloudWatch alarm.
@@ -3583,7 +3680,7 @@ declare namespace Iot {
3583
3680
  */
3584
3681
  targets: JobTargets;
3585
3682
  /**
3586
- * An S3 link, or S3 object URL, to the job document. The link is an Amazon S3 object URL and is required if you don't specify a value for document. For example, --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0. For more information, see Methods for accessing a bucket.
3683
+ * An S3 link, or S3 object URL, to the job document. The link is an Amazon S3 object URL and is required if you don't specify a value for document. For example, --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0 For more information, see Methods for accessing a bucket.
3587
3684
  */
3588
3685
  documentSource?: JobDocumentSource;
3589
3686
  /**
@@ -3638,6 +3735,10 @@ declare namespace Iot {
3638
3735
  * The configuration that allows you to schedule a job for a future date and time in addition to specifying the end behavior for each job execution.
3639
3736
  */
3640
3737
  schedulingConfig?: SchedulingConfig;
3738
+ /**
3739
+ * The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. Note:The following Length Constraints relates to a single string. Up to five strings are allowed.
3740
+ */
3741
+ destinationPackageVersions?: DestinationPackageVersions;
3641
3742
  }
3642
3743
  export interface CreateJobResponse {
3643
3744
  /**
@@ -3690,6 +3791,10 @@ declare namespace Iot {
3690
3791
  * 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.
3691
3792
  */
3692
3793
  maintenanceWindows?: MaintenanceWindows;
3794
+ /**
3795
+ * The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. Note:The following Length Constraints relates to a single string. Up to five strings are allowed.
3796
+ */
3797
+ destinationPackageVersions?: DestinationPackageVersions;
3693
3798
  }
3694
3799
  export interface CreateJobTemplateResponse {
3695
3800
  /**
@@ -3829,6 +3934,94 @@ declare namespace Iot {
3829
3934
  */
3830
3935
  otaUpdateStatus?: OTAUpdateStatus;
3831
3936
  }
3937
+ export interface CreatePackageRequest {
3938
+ /**
3939
+ * The name of the new package.
3940
+ */
3941
+ packageName: PackageName;
3942
+ /**
3943
+ * A summary of the package being created. This can be used to outline the package's contents or purpose.
3944
+ */
3945
+ description?: ResourceDescription;
3946
+ /**
3947
+ * Metadata that can be used to manage the package.
3948
+ */
3949
+ tags?: TagMap;
3950
+ /**
3951
+ * A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
3952
+ */
3953
+ clientToken?: ClientToken;
3954
+ }
3955
+ export interface CreatePackageResponse {
3956
+ /**
3957
+ * The name of the package.
3958
+ */
3959
+ packageName?: PackageName;
3960
+ /**
3961
+ * The Amazon Resource Name (ARN) for the package.
3962
+ */
3963
+ packageArn?: PackageArn;
3964
+ /**
3965
+ * The package description.
3966
+ */
3967
+ description?: ResourceDescription;
3968
+ }
3969
+ export interface CreatePackageVersionRequest {
3970
+ /**
3971
+ * The name of the associated package.
3972
+ */
3973
+ packageName: PackageName;
3974
+ /**
3975
+ * The name of the new package version.
3976
+ */
3977
+ versionName: VersionName;
3978
+ /**
3979
+ * A summary of the package version being created. This can be used to outline the package's contents or purpose.
3980
+ */
3981
+ description?: ResourceDescription;
3982
+ /**
3983
+ * Metadata that can be used to define a package version’s configuration. For example, the S3 file location, configuration options that are being sent to the device or fleet. The combined size of all the attributes on a package version is limited to 3KB.
3984
+ */
3985
+ attributes?: ResourceAttributes;
3986
+ /**
3987
+ * Metadata that can be used to manage the package version.
3988
+ */
3989
+ tags?: TagMap;
3990
+ /**
3991
+ * A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
3992
+ */
3993
+ clientToken?: ClientToken;
3994
+ }
3995
+ export interface CreatePackageVersionResponse {
3996
+ /**
3997
+ * The Amazon Resource Name (ARN) for the package.
3998
+ */
3999
+ packageVersionArn?: PackageVersionArn;
4000
+ /**
4001
+ * The name of the associated package.
4002
+ */
4003
+ packageName?: PackageName;
4004
+ /**
4005
+ * The name of the new package version.
4006
+ */
4007
+ versionName?: VersionName;
4008
+ /**
4009
+ * The package version description.
4010
+ */
4011
+ description?: ResourceDescription;
4012
+ /**
4013
+ * Metadata that were added to the package version that can be used to define a package version’s configuration.
4014
+ */
4015
+ attributes?: ResourceAttributes;
4016
+ /**
4017
+ * The status of the package version. For more information, see Package version lifecycle.
4018
+ */
4019
+ status?: PackageVersionStatus;
4020
+ /**
4021
+ * Error reason for a package version failure during creation or update.
4022
+ */
4023
+ errorReason?: PackageVersionErrorReason;
4024
+ }
3832
4025
  export interface CreatePolicyRequest {
3833
4026
  /**
3834
4027
  * The policy name.
@@ -4452,6 +4645,34 @@ declare namespace Iot {
4452
4645
  }
4453
4646
  export interface DeleteOTAUpdateResponse {
4454
4647
  }
4648
+ export interface DeletePackageRequest {
4649
+ /**
4650
+ * The name of the target package.
4651
+ */
4652
+ packageName: PackageName;
4653
+ /**
4654
+ * A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
4655
+ */
4656
+ clientToken?: ClientToken;
4657
+ }
4658
+ export interface DeletePackageResponse {
4659
+ }
4660
+ export interface DeletePackageVersionRequest {
4661
+ /**
4662
+ * The name of the associated package.
4663
+ */
4664
+ packageName: PackageName;
4665
+ /**
4666
+ * The name of the target package version.
4667
+ */
4668
+ versionName: VersionName;
4669
+ /**
4670
+ * A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
4671
+ */
4672
+ clientToken?: ClientToken;
4673
+ }
4674
+ export interface DeletePackageVersionResponse {
4675
+ }
4455
4676
  export interface DeletePolicyRequest {
4456
4677
  /**
4457
4678
  * The name of the policy to delete.
@@ -5114,6 +5335,10 @@ declare namespace Iot {
5114
5335
  * 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.
5115
5336
  */
5116
5337
  maintenanceWindows?: MaintenanceWindows;
5338
+ /**
5339
+ * The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. Note:The following Length Constraints relates to a single string. Up to five strings are allowed.
5340
+ */
5341
+ destinationPackageVersions?: DestinationPackageVersions;
5117
5342
  }
5118
5343
  export interface DescribeManagedJobTemplateRequest {
5119
5344
  /**
@@ -5558,6 +5783,7 @@ declare namespace Iot {
5558
5783
  */
5559
5784
  s3Destination?: S3Destination;
5560
5785
  }
5786
+ export type DestinationPackageVersions = PackageVersionArn[];
5561
5787
  export interface DetachPolicyRequest {
5562
5788
  /**
5563
5789
  * The policy to detach.
@@ -5896,6 +6122,7 @@ declare namespace Iot {
5896
6122
  ruleName: RuleName;
5897
6123
  }
5898
6124
  export type Enabled = boolean;
6125
+ export type EnabledBoolean = boolean;
5899
6126
  export type EndpointAddress = string;
5900
6127
  export type EndpointType = string;
5901
6128
  export type Environment = string;
@@ -6163,6 +6390,94 @@ declare namespace Iot {
6163
6390
  */
6164
6391
  otaUpdateInfo?: OTAUpdateInfo;
6165
6392
  }
6393
+ export interface GetPackageConfigurationRequest {
6394
+ }
6395
+ export interface GetPackageConfigurationResponse {
6396
+ /**
6397
+ * The version that is associated to a specific job.
6398
+ */
6399
+ versionUpdateByJobsConfig?: VersionUpdateByJobsConfig;
6400
+ }
6401
+ export interface GetPackageRequest {
6402
+ /**
6403
+ * The name of the target package.
6404
+ */
6405
+ packageName: PackageName;
6406
+ }
6407
+ export interface GetPackageResponse {
6408
+ /**
6409
+ * The name of the package.
6410
+ */
6411
+ packageName?: PackageName;
6412
+ /**
6413
+ * The ARN for the package.
6414
+ */
6415
+ packageArn?: PackageArn;
6416
+ /**
6417
+ * The package description.
6418
+ */
6419
+ description?: ResourceDescription;
6420
+ /**
6421
+ * The name of the default package version.
6422
+ */
6423
+ defaultVersionName?: VersionName;
6424
+ /**
6425
+ * The date the package was created.
6426
+ */
6427
+ creationDate?: CreationDate;
6428
+ /**
6429
+ * The date when the package was last updated.
6430
+ */
6431
+ lastModifiedDate?: LastModifiedDate;
6432
+ }
6433
+ export interface GetPackageVersionRequest {
6434
+ /**
6435
+ * The name of the associated package.
6436
+ */
6437
+ packageName: PackageName;
6438
+ /**
6439
+ * The name of the target package version.
6440
+ */
6441
+ versionName: VersionName;
6442
+ }
6443
+ export interface GetPackageVersionResponse {
6444
+ /**
6445
+ * The ARN for the package version.
6446
+ */
6447
+ packageVersionArn?: PackageVersionArn;
6448
+ /**
6449
+ * The name of the package.
6450
+ */
6451
+ packageName?: PackageName;
6452
+ /**
6453
+ * The name of the package version.
6454
+ */
6455
+ versionName?: VersionName;
6456
+ /**
6457
+ * The package version description.
6458
+ */
6459
+ description?: ResourceDescription;
6460
+ /**
6461
+ * Metadata that were added to the package version that can be used to define a package version’s configuration.
6462
+ */
6463
+ attributes?: ResourceAttributes;
6464
+ /**
6465
+ * The status associated to the package version. For more information, see Package version lifecycle.
6466
+ */
6467
+ status?: PackageVersionStatus;
6468
+ /**
6469
+ * Error reason for a package version failure during creation or update.
6470
+ */
6471
+ errorReason?: PackageVersionErrorReason;
6472
+ /**
6473
+ * The date when the package version was created.
6474
+ */
6475
+ creationDate?: CreationDate;
6476
+ /**
6477
+ * The date when the package version was last updated.
6478
+ */
6479
+ lastModifiedDate?: LastModifiedDate;
6480
+ }
6166
6481
  export interface GetPercentilesRequest {
6167
6482
  /**
6168
6483
  * The name of the index to search.
@@ -6615,6 +6930,10 @@ declare namespace Iot {
6615
6930
  * Displays the next seven maintenance window occurrences and their start times.
6616
6931
  */
6617
6932
  scheduledJobRollouts?: ScheduledJobRolloutList;
6933
+ /**
6934
+ * The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully completes. Note:The following Length Constraints relates to a single string. Up to five strings are allowed.
6935
+ */
6936
+ destinationPackageVersions?: DestinationPackageVersions;
6618
6937
  }
6619
6938
  export type JobArn = string;
6620
6939
  export type JobDescription = string;
@@ -7713,6 +8032,54 @@ declare namespace Iot {
7713
8032
  */
7714
8033
  nextMarker?: Marker;
7715
8034
  }
8035
+ export interface ListPackageVersionsRequest {
8036
+ /**
8037
+ * The name of the target package.
8038
+ */
8039
+ packageName: PackageName;
8040
+ /**
8041
+ * The status of the package version. For more information, see Package version lifecycle.
8042
+ */
8043
+ status?: PackageVersionStatus;
8044
+ /**
8045
+ * The maximum number of results to return at one time.
8046
+ */
8047
+ maxResults?: PackageCatalogMaxResults;
8048
+ /**
8049
+ * The token for the next set of results.
8050
+ */
8051
+ nextToken?: NextToken;
8052
+ }
8053
+ export interface ListPackageVersionsResponse {
8054
+ /**
8055
+ * Lists the package versions associated to the package.
8056
+ */
8057
+ packageVersionSummaries?: PackageVersionSummaryList;
8058
+ /**
8059
+ * The token for the next set of results.
8060
+ */
8061
+ nextToken?: NextToken;
8062
+ }
8063
+ export interface ListPackagesRequest {
8064
+ /**
8065
+ * The maximum number of results returned at one time.
8066
+ */
8067
+ maxResults?: PackageCatalogMaxResults;
8068
+ /**
8069
+ * The token for the next set of results.
8070
+ */
8071
+ nextToken?: NextToken;
8072
+ }
8073
+ export interface ListPackagesResponse {
8074
+ /**
8075
+ * The software package summary.
8076
+ */
8077
+ packageSummaries?: PackageSummaryList;
8078
+ /**
8079
+ * The token for the next set of results.
8080
+ */
8081
+ nextToken?: NextToken;
8082
+ }
7716
8083
  export interface ListPoliciesRequest {
7717
8084
  /**
7718
8085
  * The marker for the next set of results.
@@ -8946,6 +9313,55 @@ declare namespace Iot {
8946
9313
  }
8947
9314
  export type OutgoingCertificates = OutgoingCertificate[];
8948
9315
  export type OverrideDynamicGroups = boolean;
9316
+ export type PackageArn = string;
9317
+ export type PackageCatalogMaxResults = number;
9318
+ export type PackageName = string;
9319
+ export interface PackageSummary {
9320
+ /**
9321
+ * The name for the target package.
9322
+ */
9323
+ packageName?: PackageName;
9324
+ /**
9325
+ * The name of the default package version.
9326
+ */
9327
+ defaultVersionName?: VersionName;
9328
+ /**
9329
+ * The date that the package was created.
9330
+ */
9331
+ creationDate?: CreationDate;
9332
+ /**
9333
+ * The date that the package was last updated.
9334
+ */
9335
+ lastModifiedDate?: LastModifiedDate;
9336
+ }
9337
+ export type PackageSummaryList = PackageSummary[];
9338
+ export type PackageVersionAction = "PUBLISH"|"DEPRECATE"|string;
9339
+ export type PackageVersionArn = string;
9340
+ export type PackageVersionErrorReason = string;
9341
+ export type PackageVersionStatus = "DRAFT"|"PUBLISHED"|"DEPRECATED"|string;
9342
+ export interface PackageVersionSummary {
9343
+ /**
9344
+ * The name of the associated software package.
9345
+ */
9346
+ packageName?: PackageName;
9347
+ /**
9348
+ * The name of the target package version.
9349
+ */
9350
+ versionName?: VersionName;
9351
+ /**
9352
+ * The status of the package version. For more information, see Package version lifecycle.
9353
+ */
9354
+ status?: PackageVersionStatus;
9355
+ /**
9356
+ * The date that the package version was created.
9357
+ */
9358
+ creationDate?: CreationDate;
9359
+ /**
9360
+ * The date that the package version was last updated.
9361
+ */
9362
+ lastModifiedDate?: LastModifiedDate;
9363
+ }
9364
+ export type PackageVersionSummaryList = PackageVersionSummary[];
8949
9365
  export type PageSize = number;
8950
9366
  export type Parameter = string;
8951
9367
  export type ParameterKey = string;
@@ -9410,6 +9826,10 @@ declare namespace Iot {
9410
9826
  export type Resource = string;
9411
9827
  export type ResourceArn = string;
9412
9828
  export type ResourceArns = {[key: string]: ResourceArn};
9829
+ export type ResourceAttributeKey = string;
9830
+ export type ResourceAttributeValue = string;
9831
+ export type ResourceAttributes = {[key: string]: ResourceAttributeValue};
9832
+ export type ResourceDescription = string;
9413
9833
  export interface ResourceIdentifier {
9414
9834
  /**
9415
9835
  * The ID of the certificate attached to the resource.
@@ -10118,6 +10538,7 @@ declare namespace Iot {
10118
10538
  export type TagKey = string;
10119
10539
  export type TagKeyList = TagKey[];
10120
10540
  export type TagList = Tag[];
10541
+ export type TagMap = {[key: string]: TagValue};
10121
10542
  export interface TagResourceRequest {
10122
10543
  /**
10123
10544
  * The ARN of the resource.
@@ -10786,6 +11207,7 @@ declare namespace Iot {
10786
11207
  rejectDate?: DateType;
10787
11208
  }
10788
11209
  export type UndoDeprecate = boolean;
11210
+ export type UnsetDefaultVersion = boolean;
10789
11211
  export type UnsignedLong = number;
10790
11212
  export interface UntagResourceRequest {
10791
11213
  /**
@@ -11189,6 +11611,70 @@ declare namespace Iot {
11189
11611
  */
11190
11612
  actionId?: MitigationActionId;
11191
11613
  }
11614
+ export interface UpdatePackageConfigurationRequest {
11615
+ /**
11616
+ * Configuration to manage job's package version reporting. This updates the thing's reserved named shadow that the job targets.
11617
+ */
11618
+ versionUpdateByJobsConfig?: VersionUpdateByJobsConfig;
11619
+ /**
11620
+ * A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
11621
+ */
11622
+ clientToken?: ClientToken;
11623
+ }
11624
+ export interface UpdatePackageConfigurationResponse {
11625
+ }
11626
+ export interface UpdatePackageRequest {
11627
+ /**
11628
+ * The name of the target package.
11629
+ */
11630
+ packageName: PackageName;
11631
+ /**
11632
+ * The package description.
11633
+ */
11634
+ description?: ResourceDescription;
11635
+ /**
11636
+ * The name of the default package version. Note: You cannot name a defaultVersion and set unsetDefaultVersion equal to true at the same time.
11637
+ */
11638
+ defaultVersionName?: VersionName;
11639
+ /**
11640
+ * Indicates whether you want to remove the named default package version from the software package. Set as true to remove the default package version. Note: You cannot name a defaultVersion and set unsetDefaultVersion equal to true at the same time.
11641
+ */
11642
+ unsetDefaultVersion?: UnsetDefaultVersion;
11643
+ /**
11644
+ * A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
11645
+ */
11646
+ clientToken?: ClientToken;
11647
+ }
11648
+ export interface UpdatePackageResponse {
11649
+ }
11650
+ export interface UpdatePackageVersionRequest {
11651
+ /**
11652
+ * The name of the associated software package.
11653
+ */
11654
+ packageName: PackageName;
11655
+ /**
11656
+ * The name of the target package version.
11657
+ */
11658
+ versionName: VersionName;
11659
+ /**
11660
+ * The package version description.
11661
+ */
11662
+ description?: ResourceDescription;
11663
+ /**
11664
+ * Metadata that can be used to define a package version’s configuration. For example, the S3 file location, configuration options that are being sent to the device or fleet. Note: Attributes can be updated only when the package version is in a draft state. The combined size of all the attributes on a package version is limited to 3KB.
11665
+ */
11666
+ attributes?: ResourceAttributes;
11667
+ /**
11668
+ * The status that the package version should be assigned. For more information, see Package version lifecycle.
11669
+ */
11670
+ action?: PackageVersionAction;
11671
+ /**
11672
+ * A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
11673
+ */
11674
+ clientToken?: ClientToken;
11675
+ }
11676
+ export interface UpdatePackageVersionResponse {
11677
+ }
11192
11678
  export interface UpdateProvisioningTemplateRequest {
11193
11679
  /**
11194
11680
  * The name of the provisioning template.
@@ -11513,7 +11999,18 @@ declare namespace Iot {
11513
11999
  export type VerificationState = "FALSE_POSITIVE"|"BENIGN_POSITIVE"|"TRUE_POSITIVE"|"UNKNOWN"|string;
11514
12000
  export type VerificationStateDescription = string;
11515
12001
  export type Version = number;
12002
+ export type VersionName = string;
11516
12003
  export type VersionNumber = number;
12004
+ export interface VersionUpdateByJobsConfig {
12005
+ /**
12006
+ * Indicates whether the Job is enabled or not.
12007
+ */
12008
+ enabled?: EnabledBoolean;
12009
+ /**
12010
+ * The Amazon Resource Name (ARN) of the role that grants permission to the IoT jobs service to update the reserved named shadow when the job successfully completes.
12011
+ */
12012
+ roleArn?: RoleArn;
12013
+ }
11517
12014
  export interface ViolationEvent {
11518
12015
  /**
11519
12016
  * The ID of the violation event.