Skip to content

Commit 7960682

Browse files
authored
Add missing parameter to UpdateJobExecution (#50)
1 parent 94457db commit 7960682

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

awsiot/iotjobs.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
# This file is generated
1515

16-
import awscrt.mqtt
1716
import awsiot
1817
import concurrent.futures
1918
import datetime
@@ -803,10 +802,10 @@ def __init__(self, thing_name=None):
803802
self.thing_name = thing_name # type: typing.Optional[str]
804803

805804
class UpdateJobExecutionRequest(awsiot.ModeledClass):
806-
__slots__ = ['client_token', 'execution_number', 'expected_version', 'include_job_document', 'include_job_execution_state', 'job_id', 'status', 'status_details', 'thing_name']
805+
__slots__ = ['client_token', 'execution_number', 'expected_version', 'include_job_document', 'include_job_execution_state', 'job_id', 'status', 'status_details', 'step_timeout_in_minutes', 'thing_name']
807806

808-
def __init__(self, client_token=None, execution_number=None, expected_version=None, include_job_document=None, include_job_execution_state=None, job_id=None, status=None, status_details=None, thing_name=None):
809-
# type: (typing.Optional[str], typing.Optional[int], typing.Optional[int], typing.Optional[bool], typing.Optional[bool], typing.Optional[str], typing.Optional[str], typing.Optional[typing.Dict[str, str]], typing.Optional[str]) -> None
807+
def __init__(self, client_token=None, execution_number=None, expected_version=None, include_job_document=None, include_job_execution_state=None, job_id=None, status=None, status_details=None, step_timeout_in_minutes=None, thing_name=None):
808+
# type: (typing.Optional[str], typing.Optional[int], typing.Optional[int], typing.Optional[bool], typing.Optional[bool], typing.Optional[str], typing.Optional[str], typing.Optional[typing.Dict[str, str]], typing.Optional[int], typing.Optional[str]) -> None
810809
self.client_token = client_token # type: typing.Optional[str]
811810
self.execution_number = execution_number # type: typing.Optional[int]
812811
self.expected_version = expected_version # type: typing.Optional[int]
@@ -815,6 +814,7 @@ def __init__(self, client_token=None, execution_number=None, expected_version=No
815814
self.job_id = job_id # type: typing.Optional[str]
816815
self.status = status # type: typing.Optional[str]
817816
self.status_details = status_details # type: typing.Optional[typing.Dict[str, str]]
817+
self.step_timeout_in_minutes = step_timeout_in_minutes # type: typing.Optional[int]
818818
self.thing_name = thing_name # type: typing.Optional[str]
819819

820820
def to_payload(self):
@@ -834,6 +834,8 @@ def to_payload(self):
834834
payload['status'] = self.status
835835
if self.status_details is not None:
836836
payload['statusDetails'] = self.status_details
837+
if self.step_timeout_in_minutes is not None:
838+
payload['stepTimeoutInMinutes'] = self.step_timeout_in_minutes
837839
return payload
838840

839841
class UpdateJobExecutionResponse(awsiot.ModeledClass):

0 commit comments

Comments
 (0)