aws-sdk-iot 1.82.0 → 1.83.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iot/client.rb +48 -2
- data/lib/aws-sdk-iot/client_api.rb +22 -0
- data/lib/aws-sdk-iot/types.rb +120 -6
- data/lib/aws-sdk-iot.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c81ec32e3e42ff5139d120e8929097fcbecf5980ee11c6b8db9851c36d60f22
|
4
|
+
data.tar.gz: 2647e57947df0a81db9fc4acf6c251009d560dad30d66a739e4d56dbe99603d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dff787c128c0f62922f125ce574cd1336613b7f9e4b2edcda41b7eeab5a07f9739c0ff7984fb9047b371f76a0462e0a28e0c8068cc9035ef4c908942cd7d8f8b
|
7
|
+
data.tar.gz: 1eb4c21485d5c130c9eec0d2ba480cc57f3325f892e2f99de89f32d994d02559adcd8df53ebd711c7c2eaa554c1327d80e8235d8de81d4e069f11ee01851bfc1
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.83.0 (2022-01-05)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds an automatic retry mechanism for AWS IoT Jobs. You can now define a maximum number of retries for each Job rollout, along with the criteria to trigger the retry for FAILED/TIMED_OUT/ALL(both FAILED an TIMED_OUT) job.
|
8
|
+
|
4
9
|
1.82.0 (2021-12-21)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.83.0
|
data/lib/aws-sdk-iot/client.rb
CHANGED
@@ -1712,7 +1712,7 @@ module Aws::IoT
|
|
1712
1712
|
# Allows you to create a staged rollout of the job.
|
1713
1713
|
#
|
1714
1714
|
# @option params [Types::AbortConfig] :abort_config
|
1715
|
-
# Allows you to create criteria to abort a job.
|
1715
|
+
# Allows you to create the criteria to abort a job.
|
1716
1716
|
#
|
1717
1717
|
# @option params [Types::TimeoutConfig] :timeout_config
|
1718
1718
|
# Specifies the amount of time each device has to finish its execution
|
@@ -1740,6 +1740,9 @@ module Aws::IoT
|
|
1740
1740
|
# @option params [String] :job_template_arn
|
1741
1741
|
# The ARN of the job template used to create the job.
|
1742
1742
|
#
|
1743
|
+
# @option params [Types::JobExecutionsRetryConfig] :job_executions_retry_config
|
1744
|
+
# Allows you to create the criteria to retry a job.
|
1745
|
+
#
|
1743
1746
|
# @option params [Hash<String,String>] :document_parameters
|
1744
1747
|
# Parameters of a managed template that you can specify to create the
|
1745
1748
|
# job document.
|
@@ -1795,6 +1798,14 @@ module Aws::IoT
|
|
1795
1798
|
# ],
|
1796
1799
|
# namespace_id: "NamespaceId",
|
1797
1800
|
# job_template_arn: "JobTemplateArn",
|
1801
|
+
# job_executions_retry_config: {
|
1802
|
+
# criteria_list: [ # required
|
1803
|
+
# {
|
1804
|
+
# failure_type: "FAILED", # required, accepts FAILED, TIMED_OUT, ALL
|
1805
|
+
# number_of_retries: 1, # required
|
1806
|
+
# },
|
1807
|
+
# ],
|
1808
|
+
# },
|
1798
1809
|
# document_parameters: {
|
1799
1810
|
# "ParameterKey" => "ParameterValue",
|
1800
1811
|
# },
|
@@ -1870,6 +1881,9 @@ module Aws::IoT
|
|
1870
1881
|
# @option params [Array<Types::Tag>] :tags
|
1871
1882
|
# Metadata that can be used to manage the job template.
|
1872
1883
|
#
|
1884
|
+
# @option params [Types::JobExecutionsRetryConfig] :job_executions_retry_config
|
1885
|
+
# Allows you to create the criteria to retry a job.
|
1886
|
+
#
|
1873
1887
|
# @return [Types::CreateJobTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1874
1888
|
#
|
1875
1889
|
# * {Types::CreateJobTemplateResponse#job_template_arn #job_template_arn} => String
|
@@ -1917,6 +1931,14 @@ module Aws::IoT
|
|
1917
1931
|
# value: "TagValue",
|
1918
1932
|
# },
|
1919
1933
|
# ],
|
1934
|
+
# job_executions_retry_config: {
|
1935
|
+
# criteria_list: [ # required
|
1936
|
+
# {
|
1937
|
+
# failure_type: "FAILED", # required, accepts FAILED, TIMED_OUT, ALL
|
1938
|
+
# number_of_retries: 1, # required
|
1939
|
+
# },
|
1940
|
+
# ],
|
1941
|
+
# },
|
1920
1942
|
# })
|
1921
1943
|
#
|
1922
1944
|
# @example Response structure
|
@@ -5488,6 +5510,9 @@ module Aws::IoT
|
|
5488
5510
|
# resp.job.timeout_config.in_progress_timeout_in_minutes #=> Integer
|
5489
5511
|
# resp.job.namespace_id #=> String
|
5490
5512
|
# resp.job.job_template_arn #=> String
|
5513
|
+
# resp.job.job_executions_retry_config.criteria_list #=> Array
|
5514
|
+
# resp.job.job_executions_retry_config.criteria_list[0].failure_type #=> String, one of "FAILED", "TIMED_OUT", "ALL"
|
5515
|
+
# resp.job.job_executions_retry_config.criteria_list[0].number_of_retries #=> Integer
|
5491
5516
|
# resp.job.document_parameters #=> Hash
|
5492
5517
|
# resp.job.document_parameters["ParameterKey"] #=> String
|
5493
5518
|
#
|
@@ -5567,6 +5592,7 @@ module Aws::IoT
|
|
5567
5592
|
# * {Types::DescribeJobTemplateResponse#job_executions_rollout_config #job_executions_rollout_config} => Types::JobExecutionsRolloutConfig
|
5568
5593
|
# * {Types::DescribeJobTemplateResponse#abort_config #abort_config} => Types::AbortConfig
|
5569
5594
|
# * {Types::DescribeJobTemplateResponse#timeout_config #timeout_config} => Types::TimeoutConfig
|
5595
|
+
# * {Types::DescribeJobTemplateResponse#job_executions_retry_config #job_executions_retry_config} => Types::JobExecutionsRetryConfig
|
5570
5596
|
#
|
5571
5597
|
# @example Request syntax with placeholder values
|
5572
5598
|
#
|
@@ -5595,6 +5621,9 @@ module Aws::IoT
|
|
5595
5621
|
# resp.abort_config.criteria_list[0].threshold_percentage #=> Float
|
5596
5622
|
# resp.abort_config.criteria_list[0].min_number_of_executed_things #=> Integer
|
5597
5623
|
# resp.timeout_config.in_progress_timeout_in_minutes #=> Integer
|
5624
|
+
# resp.job_executions_retry_config.criteria_list #=> Array
|
5625
|
+
# resp.job_executions_retry_config.criteria_list[0].failure_type #=> String, one of "FAILED", "TIMED_OUT", "ALL"
|
5626
|
+
# resp.job_executions_retry_config.criteria_list[0].number_of_retries #=> Integer
|
5598
5627
|
#
|
5599
5628
|
# @overload describe_job_template(params = {})
|
5600
5629
|
# @param [Hash] params ({})
|
@@ -8580,6 +8609,7 @@ module Aws::IoT
|
|
8580
8609
|
# resp.execution_summaries[0].job_execution_summary.started_at #=> Time
|
8581
8610
|
# resp.execution_summaries[0].job_execution_summary.last_updated_at #=> Time
|
8582
8611
|
# resp.execution_summaries[0].job_execution_summary.execution_number #=> Integer
|
8612
|
+
# resp.execution_summaries[0].job_execution_summary.retry_attempt #=> Integer
|
8583
8613
|
# resp.next_token #=> String
|
8584
8614
|
#
|
8585
8615
|
# @overload list_job_executions_for_job(params = {})
|
@@ -8624,6 +8654,9 @@ module Aws::IoT
|
|
8624
8654
|
# @option params [String] :next_token
|
8625
8655
|
# The token to retrieve the next set of results.
|
8626
8656
|
#
|
8657
|
+
# @option params [String] :job_id
|
8658
|
+
# The unique identifier you assigned to this job when it was created.
|
8659
|
+
#
|
8627
8660
|
# @return [Types::ListJobExecutionsForThingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
8628
8661
|
#
|
8629
8662
|
# * {Types::ListJobExecutionsForThingResponse#execution_summaries #execution_summaries} => Array<Types::JobExecutionSummaryForThing>
|
@@ -8639,6 +8672,7 @@ module Aws::IoT
|
|
8639
8672
|
# namespace_id: "NamespaceId",
|
8640
8673
|
# max_results: 1,
|
8641
8674
|
# next_token: "NextToken",
|
8675
|
+
# job_id: "JobId",
|
8642
8676
|
# })
|
8643
8677
|
#
|
8644
8678
|
# @example Response structure
|
@@ -8650,6 +8684,7 @@ module Aws::IoT
|
|
8650
8684
|
# resp.execution_summaries[0].job_execution_summary.started_at #=> Time
|
8651
8685
|
# resp.execution_summaries[0].job_execution_summary.last_updated_at #=> Time
|
8652
8686
|
# resp.execution_summaries[0].job_execution_summary.execution_number #=> Integer
|
8687
|
+
# resp.execution_summaries[0].job_execution_summary.retry_attempt #=> Integer
|
8653
8688
|
# resp.next_token #=> String
|
8654
8689
|
#
|
8655
8690
|
# @overload list_job_executions_for_thing(params = {})
|
@@ -12739,6 +12774,9 @@ module Aws::IoT
|
|
12739
12774
|
#
|
12740
12775
|
# </note>
|
12741
12776
|
#
|
12777
|
+
# @option params [Types::JobExecutionsRetryConfig] :job_executions_retry_config
|
12778
|
+
# Allows you to create the criteria to retry a job.
|
12779
|
+
#
|
12742
12780
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
12743
12781
|
#
|
12744
12782
|
# @example Request syntax with placeholder values
|
@@ -12775,6 +12813,14 @@ module Aws::IoT
|
|
12775
12813
|
# in_progress_timeout_in_minutes: 1,
|
12776
12814
|
# },
|
12777
12815
|
# namespace_id: "NamespaceId",
|
12816
|
+
# job_executions_retry_config: {
|
12817
|
+
# criteria_list: [ # required
|
12818
|
+
# {
|
12819
|
+
# failure_type: "FAILED", # required, accepts FAILED, TIMED_OUT, ALL
|
12820
|
+
# number_of_retries: 1, # required
|
12821
|
+
# },
|
12822
|
+
# ],
|
12823
|
+
# },
|
12778
12824
|
# })
|
12779
12825
|
#
|
12780
12826
|
# @overload update_job(params = {})
|
@@ -13535,7 +13581,7 @@ module Aws::IoT
|
|
13535
13581
|
params: params,
|
13536
13582
|
config: config)
|
13537
13583
|
context[:gem_name] = 'aws-sdk-iot'
|
13538
|
-
context[:gem_version] = '1.
|
13584
|
+
context[:gem_version] = '1.83.0'
|
13539
13585
|
Seahorse::Client::Request.new(handlers, context)
|
13540
13586
|
end
|
13541
13587
|
|
@@ -628,6 +628,7 @@ module Aws::IoT
|
|
628
628
|
JobExecutionSummaryForJobList = Shapes::ListShape.new(name: 'JobExecutionSummaryForJobList')
|
629
629
|
JobExecutionSummaryForThing = Shapes::StructureShape.new(name: 'JobExecutionSummaryForThing')
|
630
630
|
JobExecutionSummaryForThingList = Shapes::ListShape.new(name: 'JobExecutionSummaryForThingList')
|
631
|
+
JobExecutionsRetryConfig = Shapes::StructureShape.new(name: 'JobExecutionsRetryConfig')
|
631
632
|
JobExecutionsRolloutConfig = Shapes::StructureShape.new(name: 'JobExecutionsRolloutConfig')
|
632
633
|
JobId = Shapes::StringShape.new(name: 'JobId')
|
633
634
|
JobProcessDetails = Shapes::StructureShape.new(name: 'JobProcessDetails')
|
@@ -821,6 +822,7 @@ module Aws::IoT
|
|
821
822
|
NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
|
822
823
|
Number = Shapes::FloatShape.new(name: 'Number')
|
823
824
|
NumberList = Shapes::ListShape.new(name: 'NumberList')
|
825
|
+
NumberOfRetries = Shapes::IntegerShape.new(name: 'NumberOfRetries')
|
824
826
|
NumberOfThings = Shapes::IntegerShape.new(name: 'NumberOfThings')
|
825
827
|
OTAUpdateArn = Shapes::StringShape.new(name: 'OTAUpdateArn')
|
826
828
|
OTAUpdateDescription = Shapes::StringShape.new(name: 'OTAUpdateDescription')
|
@@ -954,6 +956,10 @@ module Aws::IoT
|
|
954
956
|
ResourceRegistrationFailureException = Shapes::StructureShape.new(name: 'ResourceRegistrationFailureException')
|
955
957
|
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
956
958
|
Resources = Shapes::ListShape.new(name: 'Resources')
|
959
|
+
RetryAttempt = Shapes::IntegerShape.new(name: 'RetryAttempt')
|
960
|
+
RetryCriteria = Shapes::StructureShape.new(name: 'RetryCriteria')
|
961
|
+
RetryCriteriaList = Shapes::ListShape.new(name: 'RetryCriteriaList')
|
962
|
+
RetryableFailureType = Shapes::StringShape.new(name: 'RetryableFailureType')
|
957
963
|
RoleAlias = Shapes::StringShape.new(name: 'RoleAlias')
|
958
964
|
RoleAliasArn = Shapes::StringShape.new(name: 'RoleAliasArn')
|
959
965
|
RoleAliasDescription = Shapes::StructureShape.new(name: 'RoleAliasDescription')
|
@@ -1884,6 +1890,7 @@ module Aws::IoT
|
|
1884
1890
|
CreateJobRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
1885
1891
|
CreateJobRequest.add_member(:namespace_id, Shapes::ShapeRef.new(shape: NamespaceId, location_name: "namespaceId"))
|
1886
1892
|
CreateJobRequest.add_member(:job_template_arn, Shapes::ShapeRef.new(shape: JobTemplateArn, location_name: "jobTemplateArn"))
|
1893
|
+
CreateJobRequest.add_member(:job_executions_retry_config, Shapes::ShapeRef.new(shape: JobExecutionsRetryConfig, location_name: "jobExecutionsRetryConfig"))
|
1887
1894
|
CreateJobRequest.add_member(:document_parameters, Shapes::ShapeRef.new(shape: ParameterMap, location_name: "documentParameters"))
|
1888
1895
|
CreateJobRequest.struct_class = Types::CreateJobRequest
|
1889
1896
|
|
@@ -1902,6 +1909,7 @@ module Aws::IoT
|
|
1902
1909
|
CreateJobTemplateRequest.add_member(:abort_config, Shapes::ShapeRef.new(shape: AbortConfig, location_name: "abortConfig"))
|
1903
1910
|
CreateJobTemplateRequest.add_member(:timeout_config, Shapes::ShapeRef.new(shape: TimeoutConfig, location_name: "timeoutConfig"))
|
1904
1911
|
CreateJobTemplateRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
1912
|
+
CreateJobTemplateRequest.add_member(:job_executions_retry_config, Shapes::ShapeRef.new(shape: JobExecutionsRetryConfig, location_name: "jobExecutionsRetryConfig"))
|
1905
1913
|
CreateJobTemplateRequest.struct_class = Types::CreateJobTemplateRequest
|
1906
1914
|
|
1907
1915
|
CreateJobTemplateResponse.add_member(:job_template_arn, Shapes::ShapeRef.new(shape: JobTemplateArn, location_name: "jobTemplateArn"))
|
@@ -2462,6 +2470,7 @@ module Aws::IoT
|
|
2462
2470
|
DescribeJobTemplateResponse.add_member(:job_executions_rollout_config, Shapes::ShapeRef.new(shape: JobExecutionsRolloutConfig, location_name: "jobExecutionsRolloutConfig"))
|
2463
2471
|
DescribeJobTemplateResponse.add_member(:abort_config, Shapes::ShapeRef.new(shape: AbortConfig, location_name: "abortConfig"))
|
2464
2472
|
DescribeJobTemplateResponse.add_member(:timeout_config, Shapes::ShapeRef.new(shape: TimeoutConfig, location_name: "timeoutConfig"))
|
2473
|
+
DescribeJobTemplateResponse.add_member(:job_executions_retry_config, Shapes::ShapeRef.new(shape: JobExecutionsRetryConfig, location_name: "jobExecutionsRetryConfig"))
|
2465
2474
|
DescribeJobTemplateResponse.struct_class = Types::DescribeJobTemplateResponse
|
2466
2475
|
|
2467
2476
|
DescribeManagedJobTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: ManagedJobTemplateName, required: true, location: "uri", location_name: "templateName"))
|
@@ -3007,6 +3016,7 @@ module Aws::IoT
|
|
3007
3016
|
Job.add_member(:timeout_config, Shapes::ShapeRef.new(shape: TimeoutConfig, location_name: "timeoutConfig"))
|
3008
3017
|
Job.add_member(:namespace_id, Shapes::ShapeRef.new(shape: NamespaceId, location_name: "namespaceId"))
|
3009
3018
|
Job.add_member(:job_template_arn, Shapes::ShapeRef.new(shape: JobTemplateArn, location_name: "jobTemplateArn"))
|
3019
|
+
Job.add_member(:job_executions_retry_config, Shapes::ShapeRef.new(shape: JobExecutionsRetryConfig, location_name: "jobExecutionsRetryConfig"))
|
3010
3020
|
Job.add_member(:document_parameters, Shapes::ShapeRef.new(shape: ParameterMap, location_name: "documentParameters"))
|
3011
3021
|
Job.struct_class = Types::Job
|
3012
3022
|
|
@@ -3031,6 +3041,7 @@ module Aws::IoT
|
|
3031
3041
|
JobExecutionSummary.add_member(:started_at, Shapes::ShapeRef.new(shape: DateType, location_name: "startedAt"))
|
3032
3042
|
JobExecutionSummary.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: DateType, location_name: "lastUpdatedAt"))
|
3033
3043
|
JobExecutionSummary.add_member(:execution_number, Shapes::ShapeRef.new(shape: ExecutionNumber, location_name: "executionNumber"))
|
3044
|
+
JobExecutionSummary.add_member(:retry_attempt, Shapes::ShapeRef.new(shape: RetryAttempt, location_name: "retryAttempt"))
|
3034
3045
|
JobExecutionSummary.struct_class = Types::JobExecutionSummary
|
3035
3046
|
|
3036
3047
|
JobExecutionSummaryForJob.add_member(:thing_arn, Shapes::ShapeRef.new(shape: ThingArn, location_name: "thingArn"))
|
@@ -3045,6 +3056,9 @@ module Aws::IoT
|
|
3045
3056
|
|
3046
3057
|
JobExecutionSummaryForThingList.member = Shapes::ShapeRef.new(shape: JobExecutionSummaryForThing)
|
3047
3058
|
|
3059
|
+
JobExecutionsRetryConfig.add_member(:criteria_list, Shapes::ShapeRef.new(shape: RetryCriteriaList, required: true, location_name: "criteriaList"))
|
3060
|
+
JobExecutionsRetryConfig.struct_class = Types::JobExecutionsRetryConfig
|
3061
|
+
|
3048
3062
|
JobExecutionsRolloutConfig.add_member(:maximum_per_minute, Shapes::ShapeRef.new(shape: MaxJobExecutionsPerMin, location_name: "maximumPerMinute"))
|
3049
3063
|
JobExecutionsRolloutConfig.add_member(:exponential_rate, Shapes::ShapeRef.new(shape: ExponentialRolloutRate, location_name: "exponentialRate"))
|
3050
3064
|
JobExecutionsRolloutConfig.struct_class = Types::JobExecutionsRolloutConfig
|
@@ -3314,6 +3328,7 @@ module Aws::IoT
|
|
3314
3328
|
ListJobExecutionsForThingRequest.add_member(:namespace_id, Shapes::ShapeRef.new(shape: NamespaceId, location: "querystring", location_name: "namespaceId"))
|
3315
3329
|
ListJobExecutionsForThingRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: LaserMaxResults, location: "querystring", location_name: "maxResults"))
|
3316
3330
|
ListJobExecutionsForThingRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
3331
|
+
ListJobExecutionsForThingRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location: "querystring", location_name: "jobId"))
|
3317
3332
|
ListJobExecutionsForThingRequest.struct_class = Types::ListJobExecutionsForThingRequest
|
3318
3333
|
|
3319
3334
|
ListJobExecutionsForThingResponse.add_member(:execution_summaries, Shapes::ShapeRef.new(shape: JobExecutionSummaryForThingList, location_name: "executionSummaries"))
|
@@ -3995,6 +4010,12 @@ module Aws::IoT
|
|
3995
4010
|
|
3996
4011
|
Resources.member = Shapes::ShapeRef.new(shape: Resource)
|
3997
4012
|
|
4013
|
+
RetryCriteria.add_member(:failure_type, Shapes::ShapeRef.new(shape: RetryableFailureType, required: true, location_name: "failureType"))
|
4014
|
+
RetryCriteria.add_member(:number_of_retries, Shapes::ShapeRef.new(shape: NumberOfRetries, required: true, location_name: "numberOfRetries"))
|
4015
|
+
RetryCriteria.struct_class = Types::RetryCriteria
|
4016
|
+
|
4017
|
+
RetryCriteriaList.member = Shapes::ShapeRef.new(shape: RetryCriteria)
|
4018
|
+
|
3998
4019
|
RoleAliasDescription.add_member(:role_alias, Shapes::ShapeRef.new(shape: RoleAlias, location_name: "roleAlias"))
|
3999
4020
|
RoleAliasDescription.add_member(:role_alias_arn, Shapes::ShapeRef.new(shape: RoleAliasArn, location_name: "roleAliasArn"))
|
4000
4021
|
RoleAliasDescription.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "roleArn"))
|
@@ -4617,6 +4638,7 @@ module Aws::IoT
|
|
4617
4638
|
UpdateJobRequest.add_member(:abort_config, Shapes::ShapeRef.new(shape: AbortConfig, location_name: "abortConfig"))
|
4618
4639
|
UpdateJobRequest.add_member(:timeout_config, Shapes::ShapeRef.new(shape: TimeoutConfig, location_name: "timeoutConfig"))
|
4619
4640
|
UpdateJobRequest.add_member(:namespace_id, Shapes::ShapeRef.new(shape: NamespaceId, location: "querystring", location_name: "namespaceId"))
|
4641
|
+
UpdateJobRequest.add_member(:job_executions_retry_config, Shapes::ShapeRef.new(shape: JobExecutionsRetryConfig, location_name: "jobExecutionsRetryConfig"))
|
4620
4642
|
UpdateJobRequest.struct_class = Types::UpdateJobRequest
|
4621
4643
|
|
4622
4644
|
UpdateMitigationActionRequest.add_member(:action_name, Shapes::ShapeRef.new(shape: MitigationActionName, required: true, location: "uri", location_name: "actionName"))
|
data/lib/aws-sdk-iot/types.rb
CHANGED
@@ -3525,6 +3525,14 @@ module Aws::IoT
|
|
3525
3525
|
# ],
|
3526
3526
|
# namespace_id: "NamespaceId",
|
3527
3527
|
# job_template_arn: "JobTemplateArn",
|
3528
|
+
# job_executions_retry_config: {
|
3529
|
+
# criteria_list: [ # required
|
3530
|
+
# {
|
3531
|
+
# failure_type: "FAILED", # required, accepts FAILED, TIMED_OUT, ALL
|
3532
|
+
# number_of_retries: 1, # required
|
3533
|
+
# },
|
3534
|
+
# ],
|
3535
|
+
# },
|
3528
3536
|
# document_parameters: {
|
3529
3537
|
# "ParameterKey" => "ParameterValue",
|
3530
3538
|
# },
|
@@ -3584,7 +3592,7 @@ module Aws::IoT
|
|
3584
3592
|
# @return [Types::JobExecutionsRolloutConfig]
|
3585
3593
|
#
|
3586
3594
|
# @!attribute [rw] abort_config
|
3587
|
-
# Allows you to create criteria to abort a job.
|
3595
|
+
# Allows you to create the criteria to abort a job.
|
3588
3596
|
# @return [Types::AbortConfig]
|
3589
3597
|
#
|
3590
3598
|
# @!attribute [rw] timeout_config
|
@@ -3617,6 +3625,10 @@ module Aws::IoT
|
|
3617
3625
|
# The ARN of the job template used to create the job.
|
3618
3626
|
# @return [String]
|
3619
3627
|
#
|
3628
|
+
# @!attribute [rw] job_executions_retry_config
|
3629
|
+
# Allows you to create the criteria to retry a job.
|
3630
|
+
# @return [Types::JobExecutionsRetryConfig]
|
3631
|
+
#
|
3620
3632
|
# @!attribute [rw] document_parameters
|
3621
3633
|
# Parameters of a managed template that you can specify to create the
|
3622
3634
|
# job document.
|
@@ -3636,6 +3648,7 @@ module Aws::IoT
|
|
3636
3648
|
:tags,
|
3637
3649
|
:namespace_id,
|
3638
3650
|
:job_template_arn,
|
3651
|
+
:job_executions_retry_config,
|
3639
3652
|
:document_parameters)
|
3640
3653
|
SENSITIVE = []
|
3641
3654
|
include Aws::Structure
|
@@ -3704,6 +3717,14 @@ module Aws::IoT
|
|
3704
3717
|
# value: "TagValue",
|
3705
3718
|
# },
|
3706
3719
|
# ],
|
3720
|
+
# job_executions_retry_config: {
|
3721
|
+
# criteria_list: [ # required
|
3722
|
+
# {
|
3723
|
+
# failure_type: "FAILED", # required, accepts FAILED, TIMED_OUT, ALL
|
3724
|
+
# number_of_retries: 1, # required
|
3725
|
+
# },
|
3726
|
+
# ],
|
3727
|
+
# },
|
3707
3728
|
# }
|
3708
3729
|
#
|
3709
3730
|
# @!attribute [rw] job_template_id
|
@@ -3765,6 +3786,10 @@ module Aws::IoT
|
|
3765
3786
|
# Metadata that can be used to manage the job template.
|
3766
3787
|
# @return [Array<Types::Tag>]
|
3767
3788
|
#
|
3789
|
+
# @!attribute [rw] job_executions_retry_config
|
3790
|
+
# Allows you to create the criteria to retry a job.
|
3791
|
+
# @return [Types::JobExecutionsRetryConfig]
|
3792
|
+
#
|
3768
3793
|
class CreateJobTemplateRequest < Struct.new(
|
3769
3794
|
:job_template_id,
|
3770
3795
|
:job_arn,
|
@@ -3775,7 +3800,8 @@ module Aws::IoT
|
|
3775
3800
|
:job_executions_rollout_config,
|
3776
3801
|
:abort_config,
|
3777
3802
|
:timeout_config,
|
3778
|
-
:tags
|
3803
|
+
:tags,
|
3804
|
+
:job_executions_retry_config)
|
3779
3805
|
SENSITIVE = []
|
3780
3806
|
include Aws::Structure
|
3781
3807
|
end
|
@@ -7325,6 +7351,11 @@ module Aws::IoT
|
|
7325
7351
|
# set to `TIMED_OUT`.
|
7326
7352
|
# @return [Types::TimeoutConfig]
|
7327
7353
|
#
|
7354
|
+
# @!attribute [rw] job_executions_retry_config
|
7355
|
+
# The configuration that determines how many retries are allowed for
|
7356
|
+
# each failure type for a job.
|
7357
|
+
# @return [Types::JobExecutionsRetryConfig]
|
7358
|
+
#
|
7328
7359
|
class DescribeJobTemplateResponse < Struct.new(
|
7329
7360
|
:job_template_arn,
|
7330
7361
|
:job_template_id,
|
@@ -7335,7 +7366,8 @@ module Aws::IoT
|
|
7335
7366
|
:presigned_url_config,
|
7336
7367
|
:job_executions_rollout_config,
|
7337
7368
|
:abort_config,
|
7338
|
-
:timeout_config
|
7369
|
+
:timeout_config,
|
7370
|
+
:job_executions_retry_config)
|
7339
7371
|
SENSITIVE = []
|
7340
7372
|
include Aws::Structure
|
7341
7373
|
end
|
@@ -10137,6 +10169,10 @@ module Aws::IoT
|
|
10137
10169
|
# The ARN of the job template used to create the job.
|
10138
10170
|
# @return [String]
|
10139
10171
|
#
|
10172
|
+
# @!attribute [rw] job_executions_retry_config
|
10173
|
+
# The configuration for the criteria to retry the job.
|
10174
|
+
# @return [Types::JobExecutionsRetryConfig]
|
10175
|
+
#
|
10140
10176
|
# @!attribute [rw] document_parameters
|
10141
10177
|
# A key-value map that pairs the patterns that need to be replaced in
|
10142
10178
|
# a managed template job document schema. You can use the description
|
@@ -10164,6 +10200,7 @@ module Aws::IoT
|
|
10164
10200
|
:timeout_config,
|
10165
10201
|
:namespace_id,
|
10166
10202
|
:job_template_arn,
|
10203
|
+
:job_executions_retry_config,
|
10167
10204
|
:document_parameters)
|
10168
10205
|
SENSITIVE = []
|
10169
10206
|
include Aws::Structure
|
@@ -10287,12 +10324,18 @@ module Aws::IoT
|
|
10287
10324
|
# execution information.
|
10288
10325
|
# @return [Integer]
|
10289
10326
|
#
|
10327
|
+
# @!attribute [rw] retry_attempt
|
10328
|
+
# The number that indicates how many retry attempts have been
|
10329
|
+
# completed for this job on this device.
|
10330
|
+
# @return [Integer]
|
10331
|
+
#
|
10290
10332
|
class JobExecutionSummary < Struct.new(
|
10291
10333
|
:status,
|
10292
10334
|
:queued_at,
|
10293
10335
|
:started_at,
|
10294
10336
|
:last_updated_at,
|
10295
|
-
:execution_number
|
10337
|
+
:execution_number,
|
10338
|
+
:retry_attempt)
|
10296
10339
|
SENSITIVE = []
|
10297
10340
|
include Aws::Structure
|
10298
10341
|
end
|
@@ -10332,6 +10375,32 @@ module Aws::IoT
|
|
10332
10375
|
include Aws::Structure
|
10333
10376
|
end
|
10334
10377
|
|
10378
|
+
# The configuration that determines how many retries are allowed for
|
10379
|
+
# each failure type for a job.
|
10380
|
+
#
|
10381
|
+
# @note When making an API call, you may pass JobExecutionsRetryConfig
|
10382
|
+
# data as a hash:
|
10383
|
+
#
|
10384
|
+
# {
|
10385
|
+
# criteria_list: [ # required
|
10386
|
+
# {
|
10387
|
+
# failure_type: "FAILED", # required, accepts FAILED, TIMED_OUT, ALL
|
10388
|
+
# number_of_retries: 1, # required
|
10389
|
+
# },
|
10390
|
+
# ],
|
10391
|
+
# }
|
10392
|
+
#
|
10393
|
+
# @!attribute [rw] criteria_list
|
10394
|
+
# The list of criteria that determines how many retries are allowed
|
10395
|
+
# for each failure type for a job.
|
10396
|
+
# @return [Array<Types::RetryCriteria>]
|
10397
|
+
#
|
10398
|
+
class JobExecutionsRetryConfig < Struct.new(
|
10399
|
+
:criteria_list)
|
10400
|
+
SENSITIVE = []
|
10401
|
+
include Aws::Structure
|
10402
|
+
end
|
10403
|
+
|
10335
10404
|
# Allows you to create a staged rollout of a job.
|
10336
10405
|
#
|
10337
10406
|
# @note When making an API call, you may pass JobExecutionsRolloutConfig
|
@@ -11783,6 +11852,7 @@ module Aws::IoT
|
|
11783
11852
|
# namespace_id: "NamespaceId",
|
11784
11853
|
# max_results: 1,
|
11785
11854
|
# next_token: "NextToken",
|
11855
|
+
# job_id: "JobId",
|
11786
11856
|
# }
|
11787
11857
|
#
|
11788
11858
|
# @!attribute [rw] thing_name
|
@@ -11816,12 +11886,17 @@ module Aws::IoT
|
|
11816
11886
|
# The token to retrieve the next set of results.
|
11817
11887
|
# @return [String]
|
11818
11888
|
#
|
11889
|
+
# @!attribute [rw] job_id
|
11890
|
+
# The unique identifier you assigned to this job when it was created.
|
11891
|
+
# @return [String]
|
11892
|
+
#
|
11819
11893
|
class ListJobExecutionsForThingRequest < Struct.new(
|
11820
11894
|
:thing_name,
|
11821
11895
|
:status,
|
11822
11896
|
:namespace_id,
|
11823
11897
|
:max_results,
|
11824
|
-
:next_token
|
11898
|
+
:next_token,
|
11899
|
+
:job_id)
|
11825
11900
|
SENSITIVE = []
|
11826
11901
|
include Aws::Structure
|
11827
11902
|
end
|
@@ -15591,6 +15666,32 @@ module Aws::IoT
|
|
15591
15666
|
include Aws::Structure
|
15592
15667
|
end
|
15593
15668
|
|
15669
|
+
# The criteria that determines how many retries are allowed for each
|
15670
|
+
# failure type for a job.
|
15671
|
+
#
|
15672
|
+
# @note When making an API call, you may pass RetryCriteria
|
15673
|
+
# data as a hash:
|
15674
|
+
#
|
15675
|
+
# {
|
15676
|
+
# failure_type: "FAILED", # required, accepts FAILED, TIMED_OUT, ALL
|
15677
|
+
# number_of_retries: 1, # required
|
15678
|
+
# }
|
15679
|
+
#
|
15680
|
+
# @!attribute [rw] failure_type
|
15681
|
+
# The type of job execution failures that can initiate a job retry.
|
15682
|
+
# @return [String]
|
15683
|
+
#
|
15684
|
+
# @!attribute [rw] number_of_retries
|
15685
|
+
# The number of retries allowed for a failure type for the job.
|
15686
|
+
# @return [Integer]
|
15687
|
+
#
|
15688
|
+
class RetryCriteria < Struct.new(
|
15689
|
+
:failure_type,
|
15690
|
+
:number_of_retries)
|
15691
|
+
SENSITIVE = []
|
15692
|
+
include Aws::Structure
|
15693
|
+
end
|
15694
|
+
|
15594
15695
|
# Role alias description.
|
15595
15696
|
#
|
15596
15697
|
# @!attribute [rw] role_alias
|
@@ -19319,6 +19420,14 @@ module Aws::IoT
|
|
19319
19420
|
# in_progress_timeout_in_minutes: 1,
|
19320
19421
|
# },
|
19321
19422
|
# namespace_id: "NamespaceId",
|
19423
|
+
# job_executions_retry_config: {
|
19424
|
+
# criteria_list: [ # required
|
19425
|
+
# {
|
19426
|
+
# failure_type: "FAILED", # required, accepts FAILED, TIMED_OUT, ALL
|
19427
|
+
# number_of_retries: 1, # required
|
19428
|
+
# },
|
19429
|
+
# ],
|
19430
|
+
# },
|
19322
19431
|
# }
|
19323
19432
|
#
|
19324
19433
|
# @!attribute [rw] job_id
|
@@ -19363,6 +19472,10 @@ module Aws::IoT
|
|
19363
19472
|
# </note>
|
19364
19473
|
# @return [String]
|
19365
19474
|
#
|
19475
|
+
# @!attribute [rw] job_executions_retry_config
|
19476
|
+
# Allows you to create the criteria to retry a job.
|
19477
|
+
# @return [Types::JobExecutionsRetryConfig]
|
19478
|
+
#
|
19366
19479
|
class UpdateJobRequest < Struct.new(
|
19367
19480
|
:job_id,
|
19368
19481
|
:description,
|
@@ -19370,7 +19483,8 @@ module Aws::IoT
|
|
19370
19483
|
:job_executions_rollout_config,
|
19371
19484
|
:abort_config,
|
19372
19485
|
:timeout_config,
|
19373
|
-
:namespace_id
|
19486
|
+
:namespace_id,
|
19487
|
+
:job_executions_retry_config)
|
19374
19488
|
SENSITIVE = []
|
19375
19489
|
include Aws::Structure
|
19376
19490
|
end
|
data/lib/aws-sdk-iot.rb
CHANGED
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.83.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:
|
11
|
+
date: 2022-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|