aws-sdk-iot 1.7.0 → 1.8.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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-iot.rb +1 -1
- data/lib/aws-sdk-iot/client.rb +80 -4
- data/lib/aws-sdk-iot/client_api.rb +29 -0
- data/lib/aws-sdk-iot/types.rb +97 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d294a2122b65e53494589c67acc23f7e742737f7
|
4
|
+
data.tar.gz: '0283d18cf275fc8632327f604f9f754796d898db'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7192ed9f2897494232bbd9bacc036d4188322ffbc16bd5209c5bb50fcd10aae829bb12d9b344d0b16d2de89365256d9774fd75ec5035d830974b67923de72c9b
|
7
|
+
data.tar.gz: b5330f636d223da58ca3c2d15a3c0fafa45a94f129451a16e01f85698feb049760a068cad3eba64583e2213578692ef267f439702183201cb1dd84f1fd183efe
|
data/lib/aws-sdk-iot.rb
CHANGED
data/lib/aws-sdk-iot/client.rb
CHANGED
@@ -369,6 +369,16 @@ module Aws::IoT
|
|
369
369
|
# @option params [String] :comment
|
370
370
|
# An optional comment string describing why the job was canceled.
|
371
371
|
#
|
372
|
+
# @option params [Boolean] :force
|
373
|
+
# (Optional) If `true` job executions with status "IN\_PROGRESS" and
|
374
|
+
# "QUEUED" are canceled, otherwise only job executions with status
|
375
|
+
# "QUEUED" are canceled. The default is `false`.
|
376
|
+
#
|
377
|
+
# Canceling a job which is "IN\_PROGRESS", will cause a device which
|
378
|
+
# is executing the job to be unable to update the job execution status.
|
379
|
+
# Use caution and ensure that each device executing a job which is
|
380
|
+
# canceled is able to recover to a valid state.
|
381
|
+
#
|
372
382
|
# @return [Types::CancelJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
373
383
|
#
|
374
384
|
# * {Types::CancelJobResponse#job_arn #job_arn} => String
|
@@ -380,6 +390,7 @@ module Aws::IoT
|
|
380
390
|
# resp = client.cancel_job({
|
381
391
|
# job_id: "JobId", # required
|
382
392
|
# comment: "Comment",
|
393
|
+
# force: false,
|
383
394
|
# })
|
384
395
|
#
|
385
396
|
# @example Response structure
|
@@ -395,6 +406,61 @@ module Aws::IoT
|
|
395
406
|
req.send_request(options)
|
396
407
|
end
|
397
408
|
|
409
|
+
# Cancels the execution of a job for a given thing.
|
410
|
+
#
|
411
|
+
# @option params [required, String] :job_id
|
412
|
+
# The ID of the job to be canceled.
|
413
|
+
#
|
414
|
+
# @option params [required, String] :thing_name
|
415
|
+
# The name of the thing whose execution of the job will be canceled.
|
416
|
+
#
|
417
|
+
# @option params [Boolean] :force
|
418
|
+
# (Optional) If `true` the job execution will be canceled if it has
|
419
|
+
# status IN\_PROGRESS or QUEUED, otherwise the job execution will be
|
420
|
+
# canceled only if it has status QUEUED. If you attempt to cancel a job
|
421
|
+
# execution that is IN\_PROGRESS, and you do not set `force` to `true`,
|
422
|
+
# then an `InvalidStateTransitionException` will be thrown. The default
|
423
|
+
# is `false`.
|
424
|
+
#
|
425
|
+
# Canceling a job execution which is "IN\_PROGRESS", will cause the
|
426
|
+
# device to be unable to update the job execution status. Use caution
|
427
|
+
# and ensure that the device is able to recover to a valid state.
|
428
|
+
#
|
429
|
+
# @option params [Integer] :expected_version
|
430
|
+
# (Optional) The expected current version of the job execution. Each
|
431
|
+
# time you update the job execution, its version is incremented. If the
|
432
|
+
# version of the job execution stored in Jobs does not match, the update
|
433
|
+
# is rejected with a VersionMismatch error, and an ErrorResponse that
|
434
|
+
# contains the current job execution status data is returned. (This
|
435
|
+
# makes it unnecessary to perform a separate DescribeJobExecution
|
436
|
+
# request in order to obtain the job execution status data.)
|
437
|
+
#
|
438
|
+
# @option params [Hash<String,String>] :status_details
|
439
|
+
# A collection of name/value pairs that describe the status of the job
|
440
|
+
# execution. If not specified, the statusDetails are unchanged. You can
|
441
|
+
# specify at most 10 name/value pairs.
|
442
|
+
#
|
443
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
444
|
+
#
|
445
|
+
# @example Request syntax with placeholder values
|
446
|
+
#
|
447
|
+
# resp = client.cancel_job_execution({
|
448
|
+
# job_id: "JobId", # required
|
449
|
+
# thing_name: "ThingName", # required
|
450
|
+
# force: false,
|
451
|
+
# expected_version: 1,
|
452
|
+
# status_details: {
|
453
|
+
# "DetailsKey" => "DetailsValue",
|
454
|
+
# },
|
455
|
+
# })
|
456
|
+
#
|
457
|
+
# @overload cancel_job_execution(params = {})
|
458
|
+
# @param [Hash] params ({})
|
459
|
+
def cancel_job_execution(params = {}, options = {})
|
460
|
+
req = build_request(:cancel_job_execution, params)
|
461
|
+
req.send_request(options)
|
462
|
+
end
|
463
|
+
|
398
464
|
# Clears the default authorizer.
|
399
465
|
#
|
400
466
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
@@ -1956,6 +2022,7 @@ module Aws::IoT
|
|
1956
2022
|
# resp.job.job_id #=> String
|
1957
2023
|
# resp.job.target_selection #=> String, one of "CONTINUOUS", "SNAPSHOT"
|
1958
2024
|
# resp.job.status #=> String, one of "IN_PROGRESS", "CANCELED", "COMPLETED", "DELETION_IN_PROGRESS"
|
2025
|
+
# resp.job.force_canceled #=> Boolean
|
1959
2026
|
# resp.job.comment #=> String
|
1960
2027
|
# resp.job.targets #=> Array
|
1961
2028
|
# resp.job.targets[0] #=> String
|
@@ -2013,6 +2080,7 @@ module Aws::IoT
|
|
2013
2080
|
#
|
2014
2081
|
# resp.execution.job_id #=> String
|
2015
2082
|
# resp.execution.status #=> String, one of "QUEUED", "IN_PROGRESS", "SUCCEEDED", "FAILED", "REJECTED", "REMOVED", "CANCELED"
|
2083
|
+
# resp.execution.force_canceled #=> Boolean
|
2016
2084
|
# resp.execution.status_details.details_map #=> Hash
|
2017
2085
|
# resp.execution.status_details.details_map["DetailsKey"] #=> String
|
2018
2086
|
# resp.execution.thing_arn #=> String
|
@@ -2020,6 +2088,7 @@ module Aws::IoT
|
|
2020
2088
|
# resp.execution.started_at #=> Time
|
2021
2089
|
# resp.execution.last_updated_at #=> Time
|
2022
2090
|
# resp.execution.execution_number #=> Integer
|
2091
|
+
# resp.execution.version_number #=> Integer
|
2023
2092
|
#
|
2024
2093
|
# @overload describe_job_execution(params = {})
|
2025
2094
|
# @param [Hash] params ({})
|
@@ -2384,7 +2453,9 @@ module Aws::IoT
|
|
2384
2453
|
req.send_request(options)
|
2385
2454
|
end
|
2386
2455
|
|
2387
|
-
# Gets
|
2456
|
+
# Gets a list of the policies that have an effect on the authorization
|
2457
|
+
# behavior of the specified device when it connects to the AWS IoT
|
2458
|
+
# device gateway.
|
2388
2459
|
#
|
2389
2460
|
# @option params [String] :principal
|
2390
2461
|
# The principal.
|
@@ -4688,7 +4759,10 @@ module Aws::IoT
|
|
4688
4759
|
req.send_request(options)
|
4689
4760
|
end
|
4690
4761
|
|
4691
|
-
#
|
4762
|
+
# Tests if a specified principal is authorized to perform an AWS IoT
|
4763
|
+
# action on a specified resource. Use this to test and debug the
|
4764
|
+
# authorization behavior of devices that connect to the AWS IoT device
|
4765
|
+
# gateway.
|
4692
4766
|
#
|
4693
4767
|
# @option params [String] :principal
|
4694
4768
|
# The principal.
|
@@ -4757,7 +4831,9 @@ module Aws::IoT
|
|
4757
4831
|
req.send_request(options)
|
4758
4832
|
end
|
4759
4833
|
|
4760
|
-
#
|
4834
|
+
# Tests a custom authorization behavior by invoking a specified custom
|
4835
|
+
# authorizer. Use this to test and debug the custom authorization
|
4836
|
+
# behavior of devices that connect to the AWS IoT device gateway.
|
4761
4837
|
#
|
4762
4838
|
# @option params [required, String] :authorizer_name
|
4763
4839
|
# The custom authorizer name.
|
@@ -5247,7 +5323,7 @@ module Aws::IoT
|
|
5247
5323
|
params: params,
|
5248
5324
|
config: config)
|
5249
5325
|
context[:gem_name] = 'aws-sdk-iot'
|
5250
|
-
context[:gem_version] = '1.
|
5326
|
+
context[:gem_version] = '1.8.0'
|
5251
5327
|
Seahorse::Client::Request.new(handlers, context)
|
5252
5328
|
end
|
5253
5329
|
|
@@ -58,6 +58,7 @@ module Aws::IoT
|
|
58
58
|
CACertificateStatus = Shapes::StringShape.new(name: 'CACertificateStatus')
|
59
59
|
CACertificates = Shapes::ListShape.new(name: 'CACertificates')
|
60
60
|
CancelCertificateTransferRequest = Shapes::StructureShape.new(name: 'CancelCertificateTransferRequest')
|
61
|
+
CancelJobExecutionRequest = Shapes::StructureShape.new(name: 'CancelJobExecutionRequest')
|
61
62
|
CancelJobRequest = Shapes::StructureShape.new(name: 'CancelJobRequest')
|
62
63
|
CancelJobResponse = Shapes::StructureShape.new(name: 'CancelJobResponse')
|
63
64
|
CanceledThings = Shapes::IntegerShape.new(name: 'CanceledThings')
|
@@ -211,6 +212,7 @@ module Aws::IoT
|
|
211
212
|
EventConfigurations = Shapes::MapShape.new(name: 'EventConfigurations')
|
212
213
|
EventType = Shapes::StringShape.new(name: 'EventType')
|
213
214
|
ExecutionNumber = Shapes::IntegerShape.new(name: 'ExecutionNumber')
|
215
|
+
ExpectedVersion = Shapes::IntegerShape.new(name: 'ExpectedVersion')
|
214
216
|
ExpiresInSec = Shapes::IntegerShape.new(name: 'ExpiresInSec')
|
215
217
|
ExplicitDeny = Shapes::StructureShape.new(name: 'ExplicitDeny')
|
216
218
|
FailedThings = Shapes::IntegerShape.new(name: 'FailedThings')
|
@@ -221,6 +223,7 @@ module Aws::IoT
|
|
221
223
|
Flag = Shapes::BooleanShape.new(name: 'Flag')
|
222
224
|
ForceDelete = Shapes::BooleanShape.new(name: 'ForceDelete')
|
223
225
|
ForceFlag = Shapes::BooleanShape.new(name: 'ForceFlag')
|
226
|
+
Forced = Shapes::BooleanShape.new(name: 'Forced')
|
224
227
|
FunctionArn = Shapes::StringShape.new(name: 'FunctionArn')
|
225
228
|
GEMaxResults = Shapes::IntegerShape.new(name: 'GEMaxResults')
|
226
229
|
GenerationId = Shapes::StringShape.new(name: 'GenerationId')
|
@@ -597,6 +600,7 @@ module Aws::IoT
|
|
597
600
|
Value = Shapes::StringShape.new(name: 'Value')
|
598
601
|
Version = Shapes::IntegerShape.new(name: 'Version')
|
599
602
|
VersionConflictException = Shapes::StructureShape.new(name: 'VersionConflictException')
|
603
|
+
VersionNumber = Shapes::IntegerShape.new(name: 'VersionNumber')
|
600
604
|
VersionsLimitExceededException = Shapes::StructureShape.new(name: 'VersionsLimitExceededException')
|
601
605
|
errorMessage = Shapes::StringShape.new(name: 'errorMessage')
|
602
606
|
resourceArn = Shapes::StringShape.new(name: 'resourceArn')
|
@@ -726,8 +730,16 @@ module Aws::IoT
|
|
726
730
|
CancelCertificateTransferRequest.add_member(:certificate_id, Shapes::ShapeRef.new(shape: CertificateId, required: true, location: "uri", location_name: "certificateId"))
|
727
731
|
CancelCertificateTransferRequest.struct_class = Types::CancelCertificateTransferRequest
|
728
732
|
|
733
|
+
CancelJobExecutionRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location: "uri", location_name: "jobId"))
|
734
|
+
CancelJobExecutionRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: ThingName, required: true, location: "uri", location_name: "thingName"))
|
735
|
+
CancelJobExecutionRequest.add_member(:force, Shapes::ShapeRef.new(shape: ForceFlag, location: "querystring", location_name: "force"))
|
736
|
+
CancelJobExecutionRequest.add_member(:expected_version, Shapes::ShapeRef.new(shape: ExpectedVersion, location_name: "expectedVersion"))
|
737
|
+
CancelJobExecutionRequest.add_member(:status_details, Shapes::ShapeRef.new(shape: DetailsMap, location_name: "statusDetails"))
|
738
|
+
CancelJobExecutionRequest.struct_class = Types::CancelJobExecutionRequest
|
739
|
+
|
729
740
|
CancelJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location: "uri", location_name: "jobId"))
|
730
741
|
CancelJobRequest.add_member(:comment, Shapes::ShapeRef.new(shape: Comment, location_name: "comment"))
|
742
|
+
CancelJobRequest.add_member(:force, Shapes::ShapeRef.new(shape: ForceFlag, location: "querystring", location_name: "force"))
|
731
743
|
CancelJobRequest.struct_class = Types::CancelJobRequest
|
732
744
|
|
733
745
|
CancelJobResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: JobArn, location_name: "jobArn"))
|
@@ -1303,6 +1315,7 @@ module Aws::IoT
|
|
1303
1315
|
Job.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "jobId"))
|
1304
1316
|
Job.add_member(:target_selection, Shapes::ShapeRef.new(shape: TargetSelection, location_name: "targetSelection"))
|
1305
1317
|
Job.add_member(:status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "status"))
|
1318
|
+
Job.add_member(:force_canceled, Shapes::ShapeRef.new(shape: Forced, location_name: "forceCanceled"))
|
1306
1319
|
Job.add_member(:comment, Shapes::ShapeRef.new(shape: Comment, location_name: "comment"))
|
1307
1320
|
Job.add_member(:targets, Shapes::ShapeRef.new(shape: JobTargets, location_name: "targets"))
|
1308
1321
|
Job.add_member(:description, Shapes::ShapeRef.new(shape: JobDescription, location_name: "description"))
|
@@ -1320,12 +1333,14 @@ module Aws::IoT
|
|
1320
1333
|
|
1321
1334
|
JobExecution.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "jobId"))
|
1322
1335
|
JobExecution.add_member(:status, Shapes::ShapeRef.new(shape: JobExecutionStatus, location_name: "status"))
|
1336
|
+
JobExecution.add_member(:force_canceled, Shapes::ShapeRef.new(shape: Forced, location_name: "forceCanceled"))
|
1323
1337
|
JobExecution.add_member(:status_details, Shapes::ShapeRef.new(shape: JobExecutionStatusDetails, location_name: "statusDetails"))
|
1324
1338
|
JobExecution.add_member(:thing_arn, Shapes::ShapeRef.new(shape: ThingArn, location_name: "thingArn"))
|
1325
1339
|
JobExecution.add_member(:queued_at, Shapes::ShapeRef.new(shape: DateType, location_name: "queuedAt"))
|
1326
1340
|
JobExecution.add_member(:started_at, Shapes::ShapeRef.new(shape: DateType, location_name: "startedAt"))
|
1327
1341
|
JobExecution.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: DateType, location_name: "lastUpdatedAt"))
|
1328
1342
|
JobExecution.add_member(:execution_number, Shapes::ShapeRef.new(shape: ExecutionNumber, location_name: "executionNumber"))
|
1343
|
+
JobExecution.add_member(:version_number, Shapes::ShapeRef.new(shape: VersionNumber, location_name: "versionNumber"))
|
1329
1344
|
JobExecution.struct_class = Types::JobExecution
|
1330
1345
|
|
1331
1346
|
JobExecutionStatusDetails.add_member(:details_map, Shapes::ShapeRef.new(shape: DetailsMap, location_name: "detailsMap"))
|
@@ -2260,6 +2275,20 @@ module Aws::IoT
|
|
2260
2275
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
2261
2276
|
end)
|
2262
2277
|
|
2278
|
+
api.add_operation(:cancel_job_execution, Seahorse::Model::Operation.new.tap do |o|
|
2279
|
+
o.name = "CancelJobExecution"
|
2280
|
+
o.http_method = "PUT"
|
2281
|
+
o.http_request_uri = "/things/{thingName}/jobs/{jobId}/cancel"
|
2282
|
+
o.input = Shapes::ShapeRef.new(shape: CancelJobExecutionRequest)
|
2283
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2284
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
2285
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidStateTransitionException)
|
2286
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2287
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
2288
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
2289
|
+
o.errors << Shapes::ShapeRef.new(shape: VersionConflictException)
|
2290
|
+
end)
|
2291
|
+
|
2263
2292
|
api.add_operation(:clear_default_authorizer, Seahorse::Model::Operation.new.tap do |o|
|
2264
2293
|
o.name = "ClearDefaultAuthorizer"
|
2265
2294
|
o.http_method = "DELETE"
|
data/lib/aws-sdk-iot/types.rb
CHANGED
@@ -633,12 +633,73 @@ module Aws::IoT
|
|
633
633
|
include Aws::Structure
|
634
634
|
end
|
635
635
|
|
636
|
+
# @note When making an API call, you may pass CancelJobExecutionRequest
|
637
|
+
# data as a hash:
|
638
|
+
#
|
639
|
+
# {
|
640
|
+
# job_id: "JobId", # required
|
641
|
+
# thing_name: "ThingName", # required
|
642
|
+
# force: false,
|
643
|
+
# expected_version: 1,
|
644
|
+
# status_details: {
|
645
|
+
# "DetailsKey" => "DetailsValue",
|
646
|
+
# },
|
647
|
+
# }
|
648
|
+
#
|
649
|
+
# @!attribute [rw] job_id
|
650
|
+
# The ID of the job to be canceled.
|
651
|
+
# @return [String]
|
652
|
+
#
|
653
|
+
# @!attribute [rw] thing_name
|
654
|
+
# The name of the thing whose execution of the job will be canceled.
|
655
|
+
# @return [String]
|
656
|
+
#
|
657
|
+
# @!attribute [rw] force
|
658
|
+
# (Optional) If `true` the job execution will be canceled if it has
|
659
|
+
# status IN\_PROGRESS or QUEUED, otherwise the job execution will be
|
660
|
+
# canceled only if it has status QUEUED. If you attempt to cancel a
|
661
|
+
# job execution that is IN\_PROGRESS, and you do not set `force` to
|
662
|
+
# `true`, then an `InvalidStateTransitionException` will be thrown.
|
663
|
+
# The default is `false`.
|
664
|
+
#
|
665
|
+
# Canceling a job execution which is "IN\_PROGRESS", will cause the
|
666
|
+
# device to be unable to update the job execution status. Use caution
|
667
|
+
# and ensure that the device is able to recover to a valid state.
|
668
|
+
# @return [Boolean]
|
669
|
+
#
|
670
|
+
# @!attribute [rw] expected_version
|
671
|
+
# (Optional) The expected current version of the job execution. Each
|
672
|
+
# time you update the job execution, its version is incremented. If
|
673
|
+
# the version of the job execution stored in Jobs does not match, the
|
674
|
+
# update is rejected with a VersionMismatch error, and an
|
675
|
+
# ErrorResponse that contains the current job execution status data is
|
676
|
+
# returned. (This makes it unnecessary to perform a separate
|
677
|
+
# DescribeJobExecution request in order to obtain the job execution
|
678
|
+
# status data.)
|
679
|
+
# @return [Integer]
|
680
|
+
#
|
681
|
+
# @!attribute [rw] status_details
|
682
|
+
# A collection of name/value pairs that describe the status of the job
|
683
|
+
# execution. If not specified, the statusDetails are unchanged. You
|
684
|
+
# can specify at most 10 name/value pairs.
|
685
|
+
# @return [Hash<String,String>]
|
686
|
+
#
|
687
|
+
class CancelJobExecutionRequest < Struct.new(
|
688
|
+
:job_id,
|
689
|
+
:thing_name,
|
690
|
+
:force,
|
691
|
+
:expected_version,
|
692
|
+
:status_details)
|
693
|
+
include Aws::Structure
|
694
|
+
end
|
695
|
+
|
636
696
|
# @note When making an API call, you may pass CancelJobRequest
|
637
697
|
# data as a hash:
|
638
698
|
#
|
639
699
|
# {
|
640
700
|
# job_id: "JobId", # required
|
641
701
|
# comment: "Comment",
|
702
|
+
# force: false,
|
642
703
|
# }
|
643
704
|
#
|
644
705
|
# @!attribute [rw] job_id
|
@@ -649,9 +710,21 @@ module Aws::IoT
|
|
649
710
|
# An optional comment string describing why the job was canceled.
|
650
711
|
# @return [String]
|
651
712
|
#
|
713
|
+
# @!attribute [rw] force
|
714
|
+
# (Optional) If `true` job executions with status "IN\_PROGRESS" and
|
715
|
+
# "QUEUED" are canceled, otherwise only job executions with status
|
716
|
+
# "QUEUED" are canceled. The default is `false`.
|
717
|
+
#
|
718
|
+
# Canceling a job which is "IN\_PROGRESS", will cause a device which
|
719
|
+
# is executing the job to be unable to update the job execution
|
720
|
+
# status. Use caution and ensure that each device executing a job
|
721
|
+
# which is canceled is able to recover to a valid state.
|
722
|
+
# @return [Boolean]
|
723
|
+
#
|
652
724
|
class CancelJobRequest < Struct.new(
|
653
725
|
:job_id,
|
654
|
-
:comment
|
726
|
+
:comment,
|
727
|
+
:force)
|
655
728
|
include Aws::Structure
|
656
729
|
end
|
657
730
|
|
@@ -3769,6 +3842,11 @@ module Aws::IoT
|
|
3769
3842
|
# `COMPLETED`.
|
3770
3843
|
# @return [String]
|
3771
3844
|
#
|
3845
|
+
# @!attribute [rw] force_canceled
|
3846
|
+
# Will be `true` if the job was canceled with the optional `force`
|
3847
|
+
# parameter set to `true`.
|
3848
|
+
# @return [Boolean]
|
3849
|
+
#
|
3772
3850
|
# @!attribute [rw] comment
|
3773
3851
|
# If the job was updated, describes the reason for the update.
|
3774
3852
|
# @return [String]
|
@@ -3817,6 +3895,7 @@ module Aws::IoT
|
|
3817
3895
|
:job_id,
|
3818
3896
|
:target_selection,
|
3819
3897
|
:status,
|
3898
|
+
:force_canceled,
|
3820
3899
|
:comment,
|
3821
3900
|
:targets,
|
3822
3901
|
:description,
|
@@ -3842,6 +3921,11 @@ module Aws::IoT
|
|
3842
3921
|
# SUCCESS, CANCELED, or REJECTED).
|
3843
3922
|
# @return [String]
|
3844
3923
|
#
|
3924
|
+
# @!attribute [rw] force_canceled
|
3925
|
+
# Will be `true` if the job execution was canceled with the optional
|
3926
|
+
# `force` parameter set to `true`.
|
3927
|
+
# @return [Boolean]
|
3928
|
+
#
|
3845
3929
|
# @!attribute [rw] status_details
|
3846
3930
|
# A collection of name/value pairs that describe the status of the job
|
3847
3931
|
# execution.
|
@@ -3873,15 +3957,22 @@ module Aws::IoT
|
|
3873
3957
|
# information.
|
3874
3958
|
# @return [Integer]
|
3875
3959
|
#
|
3960
|
+
# @!attribute [rw] version_number
|
3961
|
+
# The version of the job execution. Job execution versions are
|
3962
|
+
# incremented each time they are updated by a device.
|
3963
|
+
# @return [Integer]
|
3964
|
+
#
|
3876
3965
|
class JobExecution < Struct.new(
|
3877
3966
|
:job_id,
|
3878
3967
|
:status,
|
3968
|
+
:force_canceled,
|
3879
3969
|
:status_details,
|
3880
3970
|
:thing_arn,
|
3881
3971
|
:queued_at,
|
3882
3972
|
:started_at,
|
3883
3973
|
:last_updated_at,
|
3884
|
-
:execution_number
|
3974
|
+
:execution_number,
|
3975
|
+
:version_number)
|
3885
3976
|
include Aws::Structure
|
3886
3977
|
end
|
3887
3978
|
|
@@ -3988,7 +4079,9 @@ module Aws::IoT
|
|
3988
4079
|
# The job process details.
|
3989
4080
|
#
|
3990
4081
|
# @!attribute [rw] processing_targets
|
3991
|
-
# The devices
|
4082
|
+
# The target devices to which the job execution is being rolled out.
|
4083
|
+
# This value will be null after the job execution has finished rolling
|
4084
|
+
# out to all the target devices.
|
3992
4085
|
# @return [Array<String>]
|
3993
4086
|
#
|
3994
4087
|
# @!attribute [rw] number_of_canceled_things
|
@@ -6702,7 +6795,7 @@ module Aws::IoT
|
|
6702
6795
|
# @return [String]
|
6703
6796
|
#
|
6704
6797
|
# @!attribute [rw] message_format
|
6705
|
-
# The message format of the message to publish.
|
6798
|
+
# (Optional) The message format of the message to publish. Accepted
|
6706
6799
|
# values are "JSON" and "RAW". The default value of the attribute
|
6707
6800
|
# is "RAW". SNS uses this setting to determine if the payload should
|
6708
6801
|
# be parsed and relevant platform-specific bits of the payload should
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-iot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|