aws-sdk-iot 1.5.0 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 505840f950de611d60fa52dc7ac0b76bb7dcd8f5
4
- data.tar.gz: 98edfb5b9008fe06fb4c53c43ea3e14749135eca
3
+ metadata.gz: a15892d49b176a973a2bf096231fb637b5c6c1b2
4
+ data.tar.gz: 6f38739efe839e9f90557645e37adcc9e21f11c0
5
5
  SHA512:
6
- metadata.gz: 3a2b99328b4173081b830e1438dac89dc738c3d9d9210fb660f9b93e01e43e51188658327903c75db92fee85b4fdb26a034292d6e83807dee379bb94444287b7
7
- data.tar.gz: 68ccd3d23d42faef623e399fb52427fd4a0d64d126e50d918103b04e89e2864f9ec1c26c92fe1b5041e1c7e46fa276b6e07958e9ad78b8b5f070d8c1158e075b
6
+ metadata.gz: d927334f4db1b30d2ebf7e3386b48f18a8d58f7fad75a7b7e99f4a344ce5f97e3167e8aa27924498f708eaf1be7d6a38fa00fbc59ddfb480f330a0d70e4dc4ba
7
+ data.tar.gz: 1e8ca3dcc557746c13c89ac83a4bc8a41874e5b19ca8315840c547c5c871f1d7300eb6f237cf0f9d72e6a6022450ef9870ecca9a152975999e9a6305322278ce
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-iot/customizations'
42
42
  # @service
43
43
  module Aws::IoT
44
44
 
45
- GEM_VERSION = '1.5.0'
45
+ GEM_VERSION = '1.6.0'
46
46
 
47
47
  end
@@ -1342,6 +1342,102 @@ module Aws::IoT
1342
1342
  req.send_request(options)
1343
1343
  end
1344
1344
 
1345
+ # Deletes a job and its related job executions.
1346
+ #
1347
+ # Deleting a job may take time, depending on the number of job
1348
+ # executions created for the job and various other factors. While the
1349
+ # job is being deleted, the status of the job will be shown as
1350
+ # "DELETION\_IN\_PROGRESS". Attempting to delete or cancel a job whose
1351
+ # status is already "DELETION\_IN\_PROGRESS" will result in an error.
1352
+ #
1353
+ # Only 10 jobs may have status "DELETION\_IN\_PROGRESS" at the same
1354
+ # time, or a LimitExceededException will occur.
1355
+ #
1356
+ # @option params [required, String] :job_id
1357
+ # The ID of the job to be deleted.
1358
+ #
1359
+ # After a job deletion is completed, you may reuse this jobId when you
1360
+ # create a new job. However, this is not recommended, and you must
1361
+ # ensure that your devices are not using the jobId to refer to the
1362
+ # deleted job.
1363
+ #
1364
+ # @option params [Boolean] :force
1365
+ # (Optional) When true, you can delete a job which is "IN\_PROGRESS".
1366
+ # Otherwise, you can only delete a job which is in a terminal state
1367
+ # ("COMPLETED" or "CANCELED") or an exception will occur. The
1368
+ # default is false.
1369
+ #
1370
+ # <note markdown="1"> Deleting a job which is "IN\_PROGRESS", will cause a device which is
1371
+ # executing the job to be unable to access job information or update the
1372
+ # job execution status. Use caution and ensure that each device
1373
+ # executing a job which is deleted is able to recover to a valid state.
1374
+ #
1375
+ # </note>
1376
+ #
1377
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1378
+ #
1379
+ # @example Request syntax with placeholder values
1380
+ #
1381
+ # resp = client.delete_job({
1382
+ # job_id: "JobId", # required
1383
+ # force: false,
1384
+ # })
1385
+ #
1386
+ # @overload delete_job(params = {})
1387
+ # @param [Hash] params ({})
1388
+ def delete_job(params = {}, options = {})
1389
+ req = build_request(:delete_job, params)
1390
+ req.send_request(options)
1391
+ end
1392
+
1393
+ # Deletes a job execution.
1394
+ #
1395
+ # @option params [required, String] :job_id
1396
+ # The ID of the job whose execution on a particular device will be
1397
+ # deleted.
1398
+ #
1399
+ # @option params [required, String] :thing_name
1400
+ # The name of the thing whose job execution will be deleted.
1401
+ #
1402
+ # @option params [required, Integer] :execution_number
1403
+ # The ID of the job execution to be deleted. The `executionNumber`
1404
+ # refers to the execution of a particular job on a particular device.
1405
+ #
1406
+ # Note that once a job execution is deleted, the `executionNumber` may
1407
+ # be reused by IoT, so be sure you get and use the correct value here.
1408
+ #
1409
+ # @option params [Boolean] :force
1410
+ # (Optional) When true, you can delete a job execution which is
1411
+ # "IN\_PROGRESS". Otherwise, you can only delete a job execution which
1412
+ # is in a terminal state ("SUCCEEDED", "FAILED", "REJECTED",
1413
+ # "REMOVED" or "CANCELED") or an exception will occur. The default
1414
+ # is false.
1415
+ #
1416
+ # <note markdown="1"> Deleting a job execution which is "IN\_PROGRESS", will cause the
1417
+ # device to be unable to access job information or update the job
1418
+ # execution status. Use caution and ensure that the device is able to
1419
+ # recover to a valid state.
1420
+ #
1421
+ # </note>
1422
+ #
1423
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1424
+ #
1425
+ # @example Request syntax with placeholder values
1426
+ #
1427
+ # resp = client.delete_job_execution({
1428
+ # job_id: "JobId", # required
1429
+ # thing_name: "ThingName", # required
1430
+ # execution_number: 1, # required
1431
+ # force: false,
1432
+ # })
1433
+ #
1434
+ # @overload delete_job_execution(params = {})
1435
+ # @param [Hash] params ({})
1436
+ def delete_job_execution(params = {}, options = {})
1437
+ req = build_request(:delete_job_execution, params)
1438
+ req.send_request(options)
1439
+ end
1440
+
1345
1441
  # Delete an OTA update.
1346
1442
  #
1347
1443
  # @option params [required, String] :ota_update_id
@@ -5151,7 +5247,7 @@ module Aws::IoT
5151
5247
  params: params,
5152
5248
  config: config)
5153
5249
  context[:gem_name] = 'aws-sdk-iot'
5154
- context[:gem_version] = '1.5.0'
5250
+ context[:gem_version] = '1.6.0'
5155
5251
  Seahorse::Client::Request.new(handlers, context)
5156
5252
  end
5157
5253
 
@@ -126,6 +126,8 @@ module Aws::IoT
126
126
  DeleteCACertificateResponse = Shapes::StructureShape.new(name: 'DeleteCACertificateResponse')
127
127
  DeleteCertificateRequest = Shapes::StructureShape.new(name: 'DeleteCertificateRequest')
128
128
  DeleteConflictException = Shapes::StructureShape.new(name: 'DeleteConflictException')
129
+ DeleteJobExecutionRequest = Shapes::StructureShape.new(name: 'DeleteJobExecutionRequest')
130
+ DeleteJobRequest = Shapes::StructureShape.new(name: 'DeleteJobRequest')
129
131
  DeleteOTAUpdateRequest = Shapes::StructureShape.new(name: 'DeleteOTAUpdateRequest')
130
132
  DeleteOTAUpdateResponse = Shapes::StructureShape.new(name: 'DeleteOTAUpdateResponse')
131
133
  DeletePolicyRequest = Shapes::StructureShape.new(name: 'DeletePolicyRequest')
@@ -218,6 +220,7 @@ module Aws::IoT
218
220
  FirehoseSeparator = Shapes::StringShape.new(name: 'FirehoseSeparator')
219
221
  Flag = Shapes::BooleanShape.new(name: 'Flag')
220
222
  ForceDelete = Shapes::BooleanShape.new(name: 'ForceDelete')
223
+ ForceFlag = Shapes::BooleanShape.new(name: 'ForceFlag')
221
224
  FunctionArn = Shapes::StringShape.new(name: 'FunctionArn')
222
225
  GEMaxResults = Shapes::IntegerShape.new(name: 'GEMaxResults')
223
226
  GenerationId = Shapes::StringShape.new(name: 'GenerationId')
@@ -258,6 +261,7 @@ module Aws::IoT
258
261
  InvalidQueryException = Shapes::StructureShape.new(name: 'InvalidQueryException')
259
262
  InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
260
263
  InvalidResponseException = Shapes::StructureShape.new(name: 'InvalidResponseException')
264
+ InvalidStateTransitionException = Shapes::StructureShape.new(name: 'InvalidStateTransitionException')
261
265
  IotAnalyticsAction = Shapes::StructureShape.new(name: 'IotAnalyticsAction')
262
266
  IsAuthenticated = Shapes::BooleanShape.new(name: 'IsAuthenticated')
263
267
  IsDefaultVersion = Shapes::BooleanShape.new(name: 'IsDefaultVersion')
@@ -945,6 +949,16 @@ module Aws::IoT
945
949
  DeleteCertificateRequest.add_member(:force_delete, Shapes::ShapeRef.new(shape: ForceDelete, location: "querystring", location_name: "forceDelete"))
946
950
  DeleteCertificateRequest.struct_class = Types::DeleteCertificateRequest
947
951
 
952
+ DeleteJobExecutionRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location: "uri", location_name: "jobId"))
953
+ DeleteJobExecutionRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: ThingName, required: true, location: "uri", location_name: "thingName"))
954
+ DeleteJobExecutionRequest.add_member(:execution_number, Shapes::ShapeRef.new(shape: ExecutionNumber, required: true, location: "uri", location_name: "executionNumber"))
955
+ DeleteJobExecutionRequest.add_member(:force, Shapes::ShapeRef.new(shape: ForceFlag, location: "querystring", location_name: "force"))
956
+ DeleteJobExecutionRequest.struct_class = Types::DeleteJobExecutionRequest
957
+
958
+ DeleteJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location: "uri", location_name: "jobId"))
959
+ DeleteJobRequest.add_member(:force, Shapes::ShapeRef.new(shape: ForceFlag, location: "querystring", location_name: "force"))
960
+ DeleteJobRequest.struct_class = Types::DeleteJobRequest
961
+
948
962
  DeleteOTAUpdateRequest.add_member(:ota_update_id, Shapes::ShapeRef.new(shape: OTAUpdateId, required: true, location: "uri", location_name: "otaUpdateId"))
949
963
  DeleteOTAUpdateRequest.struct_class = Types::DeleteOTAUpdateRequest
950
964
 
@@ -2491,6 +2505,33 @@ module Aws::IoT
2491
2505
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2492
2506
  end)
2493
2507
 
2508
+ api.add_operation(:delete_job, Seahorse::Model::Operation.new.tap do |o|
2509
+ o.name = "DeleteJob"
2510
+ o.http_method = "DELETE"
2511
+ o.http_request_uri = "/jobs/{jobId}"
2512
+ o.input = Shapes::ShapeRef.new(shape: DeleteJobRequest)
2513
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2514
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
2515
+ o.errors << Shapes::ShapeRef.new(shape: InvalidStateTransitionException)
2516
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2517
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2518
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2519
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
2520
+ end)
2521
+
2522
+ api.add_operation(:delete_job_execution, Seahorse::Model::Operation.new.tap do |o|
2523
+ o.name = "DeleteJobExecution"
2524
+ o.http_method = "DELETE"
2525
+ o.http_request_uri = "/things/{thingName}/jobs/{jobId}/executionNumber/{executionNumber}"
2526
+ o.input = Shapes::ShapeRef.new(shape: DeleteJobExecutionRequest)
2527
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2528
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
2529
+ o.errors << Shapes::ShapeRef.new(shape: InvalidStateTransitionException)
2530
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2531
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2532
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
2533
+ end)
2534
+
2494
2535
  api.add_operation(:delete_ota_update, Seahorse::Model::Operation.new.tap do |o|
2495
2536
  o.name = "DeleteOTAUpdate"
2496
2537
  o.http_method = "DELETE"
@@ -2062,6 +2062,94 @@ module Aws::IoT
2062
2062
  include Aws::Structure
2063
2063
  end
2064
2064
 
2065
+ # @note When making an API call, you may pass DeleteJobExecutionRequest
2066
+ # data as a hash:
2067
+ #
2068
+ # {
2069
+ # job_id: "JobId", # required
2070
+ # thing_name: "ThingName", # required
2071
+ # execution_number: 1, # required
2072
+ # force: false,
2073
+ # }
2074
+ #
2075
+ # @!attribute [rw] job_id
2076
+ # The ID of the job whose execution on a particular device will be
2077
+ # deleted.
2078
+ # @return [String]
2079
+ #
2080
+ # @!attribute [rw] thing_name
2081
+ # The name of the thing whose job execution will be deleted.
2082
+ # @return [String]
2083
+ #
2084
+ # @!attribute [rw] execution_number
2085
+ # The ID of the job execution to be deleted. The `executionNumber`
2086
+ # refers to the execution of a particular job on a particular device.
2087
+ #
2088
+ # Note that once a job execution is deleted, the `executionNumber` may
2089
+ # be reused by IoT, so be sure you get and use the correct value here.
2090
+ # @return [Integer]
2091
+ #
2092
+ # @!attribute [rw] force
2093
+ # (Optional) When true, you can delete a job execution which is
2094
+ # "IN\_PROGRESS". Otherwise, you can only delete a job execution
2095
+ # which is in a terminal state ("SUCCEEDED", "FAILED",
2096
+ # "REJECTED", "REMOVED" or "CANCELED") or an exception will
2097
+ # occur. The default is false.
2098
+ #
2099
+ # <note markdown="1"> Deleting a job execution which is "IN\_PROGRESS", will cause the
2100
+ # device to be unable to access job information or update the job
2101
+ # execution status. Use caution and ensure that the device is able to
2102
+ # recover to a valid state.
2103
+ #
2104
+ # </note>
2105
+ # @return [Boolean]
2106
+ #
2107
+ class DeleteJobExecutionRequest < Struct.new(
2108
+ :job_id,
2109
+ :thing_name,
2110
+ :execution_number,
2111
+ :force)
2112
+ include Aws::Structure
2113
+ end
2114
+
2115
+ # @note When making an API call, you may pass DeleteJobRequest
2116
+ # data as a hash:
2117
+ #
2118
+ # {
2119
+ # job_id: "JobId", # required
2120
+ # force: false,
2121
+ # }
2122
+ #
2123
+ # @!attribute [rw] job_id
2124
+ # The ID of the job to be deleted.
2125
+ #
2126
+ # After a job deletion is completed, you may reuse this jobId when you
2127
+ # create a new job. However, this is not recommended, and you must
2128
+ # ensure that your devices are not using the jobId to refer to the
2129
+ # deleted job.
2130
+ # @return [String]
2131
+ #
2132
+ # @!attribute [rw] force
2133
+ # (Optional) When true, you can delete a job which is
2134
+ # "IN\_PROGRESS". Otherwise, you can only delete a job which is in a
2135
+ # terminal state ("COMPLETED" or "CANCELED") or an exception will
2136
+ # occur. The default is false.
2137
+ #
2138
+ # <note markdown="1"> Deleting a job which is "IN\_PROGRESS", will cause a device which
2139
+ # is executing the job to be unable to access job information or
2140
+ # update the job execution status. Use caution and ensure that each
2141
+ # device executing a job which is deleted is able to recover to a
2142
+ # valid state.
2143
+ #
2144
+ # </note>
2145
+ # @return [Boolean]
2146
+ #
2147
+ class DeleteJobRequest < Struct.new(
2148
+ :job_id,
2149
+ :force)
2150
+ include Aws::Structure
2151
+ end
2152
+
2065
2153
  # @note When making an API call, you may pass DeleteOTAUpdateRequest
2066
2154
  # data as a hash:
2067
2155
  #
@@ -3621,7 +3709,7 @@ module Aws::IoT
3621
3709
  include Aws::Structure
3622
3710
  end
3623
3711
 
3624
- # Sends message data to an AWS IoT Analytics channel.
3712
+ # Sends messge data to an AWS IoT Analytics channel.
3625
3713
  #
3626
3714
  # @note When making an API call, you may pass IotAnalyticsAction
3627
3715
  # data as a hash:
@@ -3643,8 +3731,9 @@ module Aws::IoT
3643
3731
  # @return [String]
3644
3732
  #
3645
3733
  # @!attribute [rw] role_arn
3646
- # The ARN of the role which has a policy that grants IoT permission to
3647
- # send message data via IoT Analytics (iotanalytics:BatchPutMessage).
3734
+ # The ARN of the role which has a policy that grants IoT Analytics
3735
+ # permission to send message data via IoT Analytics
3736
+ # (iotanalytics:BatchPutMessage).
3648
3737
  # @return [String]
3649
3738
  #
3650
3739
  class IotAnalyticsAction < Struct.new(
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.5.0
4
+ version: 1.6.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-04-23 00:00:00.000000000 Z
11
+ date: 2018-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.5.2.2
78
+ rubygems_version: 2.5.2.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: AWS SDK for Ruby - AWS IoT