aws-sdk-iot 1.105.0 → 1.106.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2111,8 +2111,13 @@ module Aws::IoT
2111
2111
  # @!attribute [rw] message
2112
2112
  # @return [String]
2113
2113
  #
2114
+ # @!attribute [rw] resource_id
2115
+ # A resource with the same name already exists.
2116
+ # @return [String]
2117
+ #
2114
2118
  class ConflictException < Struct.new(
2115
- :message)
2119
+ :message,
2120
+ :resource_id)
2116
2121
  SENSITIVE = []
2117
2122
  include Aws::Structure
2118
2123
  end
@@ -2717,7 +2722,7 @@ module Aws::IoT
2717
2722
  # for `document`.
2718
2723
  #
2719
2724
  # For example, `--document-source
2720
- # https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0`.
2725
+ # https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0`
2721
2726
  #
2722
2727
  # For more information, see [Methods for accessing a bucket][1].
2723
2728
  #
@@ -2814,6 +2819,14 @@ module Aws::IoT
2814
2819
  # job execution.
2815
2820
  # @return [Types::SchedulingConfig]
2816
2821
  #
2822
+ # @!attribute [rw] destination_package_versions
2823
+ # The package version Amazon Resource Names (ARNs) that are installed
2824
+ # on the device when the job successfully completes.
2825
+ #
2826
+ # **Note:**The following Length Constraints relates to a single
2827
+ # string. Up to five strings are allowed.
2828
+ # @return [Array<String>]
2829
+ #
2817
2830
  class CreateJobRequest < Struct.new(
2818
2831
  :job_id,
2819
2832
  :targets,
@@ -2830,7 +2843,8 @@ module Aws::IoT
2830
2843
  :job_template_arn,
2831
2844
  :job_executions_retry_config,
2832
2845
  :document_parameters,
2833
- :scheduling_config)
2846
+ :scheduling_config,
2847
+ :destination_package_versions)
2834
2848
  SENSITIVE = []
2835
2849
  include Aws::Structure
2836
2850
  end
@@ -2924,6 +2938,14 @@ module Aws::IoT
2924
2938
  # job.
2925
2939
  # @return [Array<Types::MaintenanceWindow>]
2926
2940
  #
2941
+ # @!attribute [rw] destination_package_versions
2942
+ # The package version Amazon Resource Names (ARNs) that are installed
2943
+ # on the device when the job successfully completes.
2944
+ #
2945
+ # **Note:**The following Length Constraints relates to a single
2946
+ # string. Up to five strings are allowed.
2947
+ # @return [Array<String>]
2948
+ #
2927
2949
  class CreateJobTemplateRequest < Struct.new(
2928
2950
  :job_template_id,
2929
2951
  :job_arn,
@@ -2936,7 +2958,8 @@ module Aws::IoT
2936
2958
  :timeout_config,
2937
2959
  :tags,
2938
2960
  :job_executions_retry_config,
2939
- :maintenance_windows)
2961
+ :maintenance_windows,
2962
+ :destination_package_versions)
2940
2963
  SENSITIVE = []
2941
2964
  include Aws::Structure
2942
2965
  end
@@ -3160,6 +3183,150 @@ module Aws::IoT
3160
3183
  include Aws::Structure
3161
3184
  end
3162
3185
 
3186
+ # @!attribute [rw] package_name
3187
+ # The name of the new package.
3188
+ # @return [String]
3189
+ #
3190
+ # @!attribute [rw] description
3191
+ # A summary of the package being created. This can be used to outline
3192
+ # the package's contents or purpose.
3193
+ # @return [String]
3194
+ #
3195
+ # @!attribute [rw] tags
3196
+ # Metadata that can be used to manage the package.
3197
+ # @return [Hash<String,String>]
3198
+ #
3199
+ # @!attribute [rw] client_token
3200
+ # A unique case-sensitive identifier that you can provide to ensure
3201
+ # the idempotency of the request. Don't reuse this client token if a
3202
+ # new idempotent request is required.
3203
+ #
3204
+ # **A suitable default value is auto-generated.** You should normally
3205
+ # not need to pass this option.
3206
+ # @return [String]
3207
+ #
3208
+ class CreatePackageRequest < Struct.new(
3209
+ :package_name,
3210
+ :description,
3211
+ :tags,
3212
+ :client_token)
3213
+ SENSITIVE = [:description]
3214
+ include Aws::Structure
3215
+ end
3216
+
3217
+ # @!attribute [rw] package_name
3218
+ # The name of the package.
3219
+ # @return [String]
3220
+ #
3221
+ # @!attribute [rw] package_arn
3222
+ # The Amazon Resource Name (ARN) for the package.
3223
+ # @return [String]
3224
+ #
3225
+ # @!attribute [rw] description
3226
+ # The package description.
3227
+ # @return [String]
3228
+ #
3229
+ class CreatePackageResponse < Struct.new(
3230
+ :package_name,
3231
+ :package_arn,
3232
+ :description)
3233
+ SENSITIVE = [:description]
3234
+ include Aws::Structure
3235
+ end
3236
+
3237
+ # @!attribute [rw] package_name
3238
+ # The name of the associated package.
3239
+ # @return [String]
3240
+ #
3241
+ # @!attribute [rw] version_name
3242
+ # The name of the new package version.
3243
+ # @return [String]
3244
+ #
3245
+ # @!attribute [rw] description
3246
+ # A summary of the package version being created. This can be used to
3247
+ # outline the package's contents or purpose.
3248
+ # @return [String]
3249
+ #
3250
+ # @!attribute [rw] attributes
3251
+ # Metadata that can be used to define a package version’s
3252
+ # configuration. For example, the S3 file location, configuration
3253
+ # options that are being sent to the device or fleet.
3254
+ #
3255
+ # The combined size of all the attributes on a package version is
3256
+ # limited to 3KB.
3257
+ # @return [Hash<String,String>]
3258
+ #
3259
+ # @!attribute [rw] tags
3260
+ # Metadata that can be used to manage the package version.
3261
+ # @return [Hash<String,String>]
3262
+ #
3263
+ # @!attribute [rw] client_token
3264
+ # A unique case-sensitive identifier that you can provide to ensure
3265
+ # the idempotency of the request. Don't reuse this client token if a
3266
+ # new idempotent request is required.
3267
+ #
3268
+ # **A suitable default value is auto-generated.** You should normally
3269
+ # not need to pass this option.
3270
+ # @return [String]
3271
+ #
3272
+ class CreatePackageVersionRequest < Struct.new(
3273
+ :package_name,
3274
+ :version_name,
3275
+ :description,
3276
+ :attributes,
3277
+ :tags,
3278
+ :client_token)
3279
+ SENSITIVE = [:description, :attributes]
3280
+ include Aws::Structure
3281
+ end
3282
+
3283
+ # @!attribute [rw] package_version_arn
3284
+ # The Amazon Resource Name (ARN) for the package.
3285
+ # @return [String]
3286
+ #
3287
+ # @!attribute [rw] package_name
3288
+ # The name of the associated package.
3289
+ # @return [String]
3290
+ #
3291
+ # @!attribute [rw] version_name
3292
+ # The name of the new package version.
3293
+ # @return [String]
3294
+ #
3295
+ # @!attribute [rw] description
3296
+ # The package version description.
3297
+ # @return [String]
3298
+ #
3299
+ # @!attribute [rw] attributes
3300
+ # Metadata that were added to the package version that can be used to
3301
+ # define a package version’s configuration.
3302
+ # @return [Hash<String,String>]
3303
+ #
3304
+ # @!attribute [rw] status
3305
+ # The status of the package version. For more information, see
3306
+ # [Package version lifecycle][1].
3307
+ #
3308
+ #
3309
+ #
3310
+ # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle
3311
+ # @return [String]
3312
+ #
3313
+ # @!attribute [rw] error_reason
3314
+ # Error reason for a package version failure during creation or
3315
+ # update.
3316
+ # @return [String]
3317
+ #
3318
+ class CreatePackageVersionResponse < Struct.new(
3319
+ :package_version_arn,
3320
+ :package_name,
3321
+ :version_name,
3322
+ :description,
3323
+ :attributes,
3324
+ :status,
3325
+ :error_reason)
3326
+ SENSITIVE = [:description, :attributes]
3327
+ include Aws::Structure
3328
+ end
3329
+
3163
3330
  # The input for the CreatePolicy operation.
3164
3331
  #
3165
3332
  # @!attribute [rw] policy_name
@@ -4255,6 +4422,55 @@ module Aws::IoT
4255
4422
 
4256
4423
  class DeleteOTAUpdateResponse < Aws::EmptyStructure; end
4257
4424
 
4425
+ # @!attribute [rw] package_name
4426
+ # The name of the target package.
4427
+ # @return [String]
4428
+ #
4429
+ # @!attribute [rw] client_token
4430
+ # A unique case-sensitive identifier that you can provide to ensure
4431
+ # the idempotency of the request. Don't reuse this client token if a
4432
+ # new idempotent request is required.
4433
+ #
4434
+ # **A suitable default value is auto-generated.** You should normally
4435
+ # not need to pass this option.
4436
+ # @return [String]
4437
+ #
4438
+ class DeletePackageRequest < Struct.new(
4439
+ :package_name,
4440
+ :client_token)
4441
+ SENSITIVE = []
4442
+ include Aws::Structure
4443
+ end
4444
+
4445
+ class DeletePackageResponse < Aws::EmptyStructure; end
4446
+
4447
+ # @!attribute [rw] package_name
4448
+ # The name of the associated package.
4449
+ # @return [String]
4450
+ #
4451
+ # @!attribute [rw] version_name
4452
+ # The name of the target package version.
4453
+ # @return [String]
4454
+ #
4455
+ # @!attribute [rw] client_token
4456
+ # A unique case-sensitive identifier that you can provide to ensure
4457
+ # the idempotency of the request. Don't reuse this client token if a
4458
+ # new idempotent request is required.
4459
+ #
4460
+ # **A suitable default value is auto-generated.** You should normally
4461
+ # not need to pass this option.
4462
+ # @return [String]
4463
+ #
4464
+ class DeletePackageVersionRequest < Struct.new(
4465
+ :package_name,
4466
+ :version_name,
4467
+ :client_token)
4468
+ SENSITIVE = []
4469
+ include Aws::Structure
4470
+ end
4471
+
4472
+ class DeletePackageVersionResponse < Aws::EmptyStructure; end
4473
+
4258
4474
  # The input for the DeletePolicy operation.
4259
4475
  #
4260
4476
  # @!attribute [rw] policy_name
@@ -5375,6 +5591,14 @@ module Aws::IoT
5375
5591
  # job.
5376
5592
  # @return [Array<Types::MaintenanceWindow>]
5377
5593
  #
5594
+ # @!attribute [rw] destination_package_versions
5595
+ # The package version Amazon Resource Names (ARNs) that are installed
5596
+ # on the device when the job successfully completes.
5597
+ #
5598
+ # **Note:**The following Length Constraints relates to a single
5599
+ # string. Up to five strings are allowed.
5600
+ # @return [Array<String>]
5601
+ #
5378
5602
  class DescribeJobTemplateResponse < Struct.new(
5379
5603
  :job_template_arn,
5380
5604
  :job_template_id,
@@ -5387,7 +5611,8 @@ module Aws::IoT
5387
5611
  :abort_config,
5388
5612
  :timeout_config,
5389
5613
  :job_executions_retry_config,
5390
- :maintenance_windows)
5614
+ :maintenance_windows,
5615
+ :destination_package_versions)
5391
5616
  SENSITIVE = []
5392
5617
  include Aws::Structure
5393
5618
  end
@@ -6992,6 +7217,137 @@ module Aws::IoT
6992
7217
  include Aws::Structure
6993
7218
  end
6994
7219
 
7220
+ # @api private
7221
+ #
7222
+ class GetPackageConfigurationRequest < Aws::EmptyStructure; end
7223
+
7224
+ # @!attribute [rw] version_update_by_jobs_config
7225
+ # The version that is associated to a specific job.
7226
+ # @return [Types::VersionUpdateByJobsConfig]
7227
+ #
7228
+ class GetPackageConfigurationResponse < Struct.new(
7229
+ :version_update_by_jobs_config)
7230
+ SENSITIVE = []
7231
+ include Aws::Structure
7232
+ end
7233
+
7234
+ # @!attribute [rw] package_name
7235
+ # The name of the target package.
7236
+ # @return [String]
7237
+ #
7238
+ class GetPackageRequest < Struct.new(
7239
+ :package_name)
7240
+ SENSITIVE = []
7241
+ include Aws::Structure
7242
+ end
7243
+
7244
+ # @!attribute [rw] package_name
7245
+ # The name of the package.
7246
+ # @return [String]
7247
+ #
7248
+ # @!attribute [rw] package_arn
7249
+ # The ARN for the package.
7250
+ # @return [String]
7251
+ #
7252
+ # @!attribute [rw] description
7253
+ # The package description.
7254
+ # @return [String]
7255
+ #
7256
+ # @!attribute [rw] default_version_name
7257
+ # The name of the default package version.
7258
+ # @return [String]
7259
+ #
7260
+ # @!attribute [rw] creation_date
7261
+ # The date the package was created.
7262
+ # @return [Time]
7263
+ #
7264
+ # @!attribute [rw] last_modified_date
7265
+ # The date when the package was last updated.
7266
+ # @return [Time]
7267
+ #
7268
+ class GetPackageResponse < Struct.new(
7269
+ :package_name,
7270
+ :package_arn,
7271
+ :description,
7272
+ :default_version_name,
7273
+ :creation_date,
7274
+ :last_modified_date)
7275
+ SENSITIVE = [:description]
7276
+ include Aws::Structure
7277
+ end
7278
+
7279
+ # @!attribute [rw] package_name
7280
+ # The name of the associated package.
7281
+ # @return [String]
7282
+ #
7283
+ # @!attribute [rw] version_name
7284
+ # The name of the target package version.
7285
+ # @return [String]
7286
+ #
7287
+ class GetPackageVersionRequest < Struct.new(
7288
+ :package_name,
7289
+ :version_name)
7290
+ SENSITIVE = []
7291
+ include Aws::Structure
7292
+ end
7293
+
7294
+ # @!attribute [rw] package_version_arn
7295
+ # The ARN for the package version.
7296
+ # @return [String]
7297
+ #
7298
+ # @!attribute [rw] package_name
7299
+ # The name of the package.
7300
+ # @return [String]
7301
+ #
7302
+ # @!attribute [rw] version_name
7303
+ # The name of the package version.
7304
+ # @return [String]
7305
+ #
7306
+ # @!attribute [rw] description
7307
+ # The package version description.
7308
+ # @return [String]
7309
+ #
7310
+ # @!attribute [rw] attributes
7311
+ # Metadata that were added to the package version that can be used to
7312
+ # define a package version’s configuration.
7313
+ # @return [Hash<String,String>]
7314
+ #
7315
+ # @!attribute [rw] status
7316
+ # The status associated to the package version. For more information,
7317
+ # see [Package version lifecycle][1].
7318
+ #
7319
+ #
7320
+ #
7321
+ # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle
7322
+ # @return [String]
7323
+ #
7324
+ # @!attribute [rw] error_reason
7325
+ # Error reason for a package version failure during creation or
7326
+ # update.
7327
+ # @return [String]
7328
+ #
7329
+ # @!attribute [rw] creation_date
7330
+ # The date when the package version was created.
7331
+ # @return [Time]
7332
+ #
7333
+ # @!attribute [rw] last_modified_date
7334
+ # The date when the package version was last updated.
7335
+ # @return [Time]
7336
+ #
7337
+ class GetPackageVersionResponse < Struct.new(
7338
+ :package_version_arn,
7339
+ :package_name,
7340
+ :version_name,
7341
+ :description,
7342
+ :attributes,
7343
+ :status,
7344
+ :error_reason,
7345
+ :creation_date,
7346
+ :last_modified_date)
7347
+ SENSITIVE = [:description, :attributes]
7348
+ include Aws::Structure
7349
+ end
7350
+
6995
7351
  # @!attribute [rw] index_name
6996
7352
  # The name of the index to search.
6997
7353
  # @return [String]
@@ -7843,6 +8199,14 @@ module Aws::IoT
7843
8199
  # start times.
7844
8200
  # @return [Array<Types::ScheduledJobRollout>]
7845
8201
  #
8202
+ # @!attribute [rw] destination_package_versions
8203
+ # The package version Amazon Resource Names (ARNs) that are installed
8204
+ # on the device when the job successfully completes.
8205
+ #
8206
+ # **Note:**The following Length Constraints relates to a single
8207
+ # string. Up to five strings are allowed.
8208
+ # @return [Array<String>]
8209
+ #
7846
8210
  class Job < Struct.new(
7847
8211
  :job_arn,
7848
8212
  :job_id,
@@ -7867,7 +8231,8 @@ module Aws::IoT
7867
8231
  :document_parameters,
7868
8232
  :is_concurrent,
7869
8233
  :scheduling_config,
7870
- :scheduled_job_rollouts)
8234
+ :scheduled_job_rollouts,
8235
+ :destination_package_versions)
7871
8236
  SENSITIVE = []
7872
8237
  include Aws::Structure
7873
8238
  end
@@ -9630,6 +9995,81 @@ module Aws::IoT
9630
9995
  include Aws::Structure
9631
9996
  end
9632
9997
 
9998
+ # @!attribute [rw] package_name
9999
+ # The name of the target package.
10000
+ # @return [String]
10001
+ #
10002
+ # @!attribute [rw] status
10003
+ # The status of the package version. For more information, see
10004
+ # [Package version lifecycle][1].
10005
+ #
10006
+ #
10007
+ #
10008
+ # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle
10009
+ # @return [String]
10010
+ #
10011
+ # @!attribute [rw] max_results
10012
+ # The maximum number of results to return at one time.
10013
+ # @return [Integer]
10014
+ #
10015
+ # @!attribute [rw] next_token
10016
+ # The token for the next set of results.
10017
+ # @return [String]
10018
+ #
10019
+ class ListPackageVersionsRequest < Struct.new(
10020
+ :package_name,
10021
+ :status,
10022
+ :max_results,
10023
+ :next_token)
10024
+ SENSITIVE = []
10025
+ include Aws::Structure
10026
+ end
10027
+
10028
+ # @!attribute [rw] package_version_summaries
10029
+ # Lists the package versions associated to the package.
10030
+ # @return [Array<Types::PackageVersionSummary>]
10031
+ #
10032
+ # @!attribute [rw] next_token
10033
+ # The token for the next set of results.
10034
+ # @return [String]
10035
+ #
10036
+ class ListPackageVersionsResponse < Struct.new(
10037
+ :package_version_summaries,
10038
+ :next_token)
10039
+ SENSITIVE = []
10040
+ include Aws::Structure
10041
+ end
10042
+
10043
+ # @!attribute [rw] max_results
10044
+ # The maximum number of results returned at one time.
10045
+ # @return [Integer]
10046
+ #
10047
+ # @!attribute [rw] next_token
10048
+ # The token for the next set of results.
10049
+ # @return [String]
10050
+ #
10051
+ class ListPackagesRequest < Struct.new(
10052
+ :max_results,
10053
+ :next_token)
10054
+ SENSITIVE = []
10055
+ include Aws::Structure
10056
+ end
10057
+
10058
+ # @!attribute [rw] package_summaries
10059
+ # The software package summary.
10060
+ # @return [Array<Types::PackageSummary>]
10061
+ #
10062
+ # @!attribute [rw] next_token
10063
+ # The token for the next set of results.
10064
+ # @return [String]
10065
+ #
10066
+ class ListPackagesResponse < Struct.new(
10067
+ :package_summaries,
10068
+ :next_token)
10069
+ SENSITIVE = []
10070
+ include Aws::Structure
10071
+ end
10072
+
9633
10073
  # The input for the ListPolicies operation.
9634
10074
  #
9635
10075
  # @!attribute [rw] marker
@@ -11598,6 +12038,70 @@ module Aws::IoT
11598
12038
  include Aws::Structure
11599
12039
  end
11600
12040
 
12041
+ # A summary of information about a software package.
12042
+ #
12043
+ # @!attribute [rw] package_name
12044
+ # The name for the target package.
12045
+ # @return [String]
12046
+ #
12047
+ # @!attribute [rw] default_version_name
12048
+ # The name of the default package version.
12049
+ # @return [String]
12050
+ #
12051
+ # @!attribute [rw] creation_date
12052
+ # The date that the package was created.
12053
+ # @return [Time]
12054
+ #
12055
+ # @!attribute [rw] last_modified_date
12056
+ # The date that the package was last updated.
12057
+ # @return [Time]
12058
+ #
12059
+ class PackageSummary < Struct.new(
12060
+ :package_name,
12061
+ :default_version_name,
12062
+ :creation_date,
12063
+ :last_modified_date)
12064
+ SENSITIVE = []
12065
+ include Aws::Structure
12066
+ end
12067
+
12068
+ # A summary of information about a package version.
12069
+ #
12070
+ # @!attribute [rw] package_name
12071
+ # The name of the associated software package.
12072
+ # @return [String]
12073
+ #
12074
+ # @!attribute [rw] version_name
12075
+ # The name of the target package version.
12076
+ # @return [String]
12077
+ #
12078
+ # @!attribute [rw] status
12079
+ # The status of the package version. For more information, see
12080
+ # [Package version lifecycle][1].
12081
+ #
12082
+ #
12083
+ #
12084
+ # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle
12085
+ # @return [String]
12086
+ #
12087
+ # @!attribute [rw] creation_date
12088
+ # The date that the package version was created.
12089
+ # @return [Time]
12090
+ #
12091
+ # @!attribute [rw] last_modified_date
12092
+ # The date that the package version was last updated.
12093
+ # @return [Time]
12094
+ #
12095
+ class PackageVersionSummary < Struct.new(
12096
+ :package_name,
12097
+ :version_name,
12098
+ :status,
12099
+ :creation_date,
12100
+ :last_modified_date)
12101
+ SENSITIVE = []
12102
+ include Aws::Structure
12103
+ end
12104
+
11601
12105
  # Describes the percentile and percentile value.
11602
12106
  #
11603
12107
  # @!attribute [rw] percent
@@ -12792,6 +13296,17 @@ module Aws::IoT
12792
13296
  include Aws::Structure
12793
13297
  end
12794
13298
 
13299
+ # A limit has been exceeded.
13300
+ #
13301
+ # @!attribute [rw] message
13302
+ # @return [String]
13303
+ #
13304
+ class ServiceQuotaExceededException < Struct.new(
13305
+ :message)
13306
+ SENSITIVE = []
13307
+ include Aws::Structure
13308
+ end
13309
+
12795
13310
  # The service is temporarily unavailable.
12796
13311
  #
12797
13312
  # @!attribute [rw] message
@@ -15285,6 +15800,129 @@ module Aws::IoT
15285
15800
  include Aws::Structure
15286
15801
  end
15287
15802
 
15803
+ # @!attribute [rw] version_update_by_jobs_config
15804
+ # Configuration to manage job's package version reporting. This
15805
+ # updates the thing's reserved named shadow that the job targets.
15806
+ # @return [Types::VersionUpdateByJobsConfig]
15807
+ #
15808
+ # @!attribute [rw] client_token
15809
+ # A unique case-sensitive identifier that you can provide to ensure
15810
+ # the idempotency of the request. Don't reuse this client token if a
15811
+ # new idempotent request is required.
15812
+ #
15813
+ # **A suitable default value is auto-generated.** You should normally
15814
+ # not need to pass this option.
15815
+ # @return [String]
15816
+ #
15817
+ class UpdatePackageConfigurationRequest < Struct.new(
15818
+ :version_update_by_jobs_config,
15819
+ :client_token)
15820
+ SENSITIVE = []
15821
+ include Aws::Structure
15822
+ end
15823
+
15824
+ class UpdatePackageConfigurationResponse < Aws::EmptyStructure; end
15825
+
15826
+ # @!attribute [rw] package_name
15827
+ # The name of the target package.
15828
+ # @return [String]
15829
+ #
15830
+ # @!attribute [rw] description
15831
+ # The package description.
15832
+ # @return [String]
15833
+ #
15834
+ # @!attribute [rw] default_version_name
15835
+ # The name of the default package version.
15836
+ #
15837
+ # **Note:** You cannot name a `defaultVersion` and set
15838
+ # `unsetDefaultVersion` equal to `true` at the same time.
15839
+ # @return [String]
15840
+ #
15841
+ # @!attribute [rw] unset_default_version
15842
+ # Indicates whether you want to remove the named default package
15843
+ # version from the software package. Set as `true` to remove the
15844
+ # default package version.
15845
+ #
15846
+ # **Note:** You cannot name a `defaultVersion` and set
15847
+ # `unsetDefaultVersion` equal to `true` at the same time.
15848
+ # @return [Boolean]
15849
+ #
15850
+ # @!attribute [rw] client_token
15851
+ # A unique case-sensitive identifier that you can provide to ensure
15852
+ # the idempotency of the request. Don't reuse this client token if a
15853
+ # new idempotent request is required.
15854
+ #
15855
+ # **A suitable default value is auto-generated.** You should normally
15856
+ # not need to pass this option.
15857
+ # @return [String]
15858
+ #
15859
+ class UpdatePackageRequest < Struct.new(
15860
+ :package_name,
15861
+ :description,
15862
+ :default_version_name,
15863
+ :unset_default_version,
15864
+ :client_token)
15865
+ SENSITIVE = [:description]
15866
+ include Aws::Structure
15867
+ end
15868
+
15869
+ class UpdatePackageResponse < Aws::EmptyStructure; end
15870
+
15871
+ # @!attribute [rw] package_name
15872
+ # The name of the associated software package.
15873
+ # @return [String]
15874
+ #
15875
+ # @!attribute [rw] version_name
15876
+ # The name of the target package version.
15877
+ # @return [String]
15878
+ #
15879
+ # @!attribute [rw] description
15880
+ # The package version description.
15881
+ # @return [String]
15882
+ #
15883
+ # @!attribute [rw] attributes
15884
+ # Metadata that can be used to define a package version’s
15885
+ # configuration. For example, the S3 file location, configuration
15886
+ # options that are being sent to the device or fleet.
15887
+ #
15888
+ # **Note:** Attributes can be updated only when the package version is
15889
+ # in a draft state.
15890
+ #
15891
+ # The combined size of all the attributes on a package version is
15892
+ # limited to 3KB.
15893
+ # @return [Hash<String,String>]
15894
+ #
15895
+ # @!attribute [rw] action
15896
+ # The status that the package version should be assigned. For more
15897
+ # information, see [Package version lifecycle][1].
15898
+ #
15899
+ #
15900
+ #
15901
+ # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle
15902
+ # @return [String]
15903
+ #
15904
+ # @!attribute [rw] client_token
15905
+ # A unique case-sensitive identifier that you can provide to ensure
15906
+ # the idempotency of the request. Don't reuse this client token if a
15907
+ # new idempotent request is required.
15908
+ #
15909
+ # **A suitable default value is auto-generated.** You should normally
15910
+ # not need to pass this option.
15911
+ # @return [String]
15912
+ #
15913
+ class UpdatePackageVersionRequest < Struct.new(
15914
+ :package_name,
15915
+ :version_name,
15916
+ :description,
15917
+ :attributes,
15918
+ :action,
15919
+ :client_token)
15920
+ SENSITIVE = [:description, :attributes]
15921
+ include Aws::Structure
15922
+ end
15923
+
15924
+ class UpdatePackageVersionResponse < Aws::EmptyStructure; end
15925
+
15288
15926
  # @!attribute [rw] template_name
15289
15927
  # The name of the provisioning template.
15290
15928
  # @return [String]
@@ -15832,6 +16470,17 @@ module Aws::IoT
15832
16470
  include Aws::Structure
15833
16471
  end
15834
16472
 
16473
+ # The request is not valid.
16474
+ #
16475
+ # @!attribute [rw] message
16476
+ # @return [String]
16477
+ #
16478
+ class ValidationException < Struct.new(
16479
+ :message)
16480
+ SENSITIVE = []
16481
+ include Aws::Structure
16482
+ end
16483
+
15835
16484
  # An exception thrown when the version of an entity specified with the
15836
16485
  # `expectedVersion` parameter does not match the latest version in the
15837
16486
  # system.
@@ -15846,6 +16495,31 @@ module Aws::IoT
15846
16495
  include Aws::Structure
15847
16496
  end
15848
16497
 
16498
+ # Configuration to manage IoT Job's package version reporting. If
16499
+ # configured, Jobs updates the thing's reserved named shadow with the
16500
+ # package version information up on successful job completion.
16501
+ #
16502
+ # **Note:** For each job, the destinationPackageVersions attribute has
16503
+ # to be set with the correct data for Jobs to report to the thing
16504
+ # shadow.
16505
+ #
16506
+ # @!attribute [rw] enabled
16507
+ # Indicates whether the Job is enabled or not.
16508
+ # @return [Boolean]
16509
+ #
16510
+ # @!attribute [rw] role_arn
16511
+ # The Amazon Resource Name (ARN) of the role that grants permission to
16512
+ # the IoT jobs service to update the reserved named shadow when the
16513
+ # job successfully completes.
16514
+ # @return [String]
16515
+ #
16516
+ class VersionUpdateByJobsConfig < Struct.new(
16517
+ :enabled,
16518
+ :role_arn)
16519
+ SENSITIVE = []
16520
+ include Aws::Structure
16521
+ end
16522
+
15849
16523
  # The number of policy versions exceeds the limit.
15850
16524
  #
15851
16525
  # @!attribute [rw] message