def batch(self, job): self.resource('arn:aws:states:::batch:submitJob.sync') \ .parameter('JobDefinition', job.payload['jobDefinition']) \ .parameter('JobName', job.payload['jobName']) \ .parameter('JobQueue', job.payload['jobQueue']) \ .parameter('Parameters', job.payload['parameters']) \ .parameter('ContainerOverrides', to_pascalcase(job.payload['containerOverrides'])) \ .parameter('RetryStrategy', to_pascalcase(job.payload['retryStrategy'])) \ .parameter('Timeout', to_pascalcase(job.payload['timeout'])) return self
def batch(self, job): self.resource('arn:%s:states:::batch:submitJob.sync' % self._partition()) \ .parameter('JobDefinition', job.payload['jobDefinition']) \ .parameter('JobName', job.payload['jobName']) \ .parameter('JobQueue', job.payload['jobQueue']) \ .parameter('Parameters', job.payload['parameters']) \ .parameter('ContainerOverrides', to_pascalcase(job.payload['containerOverrides'])) \ .parameter('RetryStrategy', to_pascalcase(job.payload['retryStrategy'])) \ .parameter('Timeout', to_pascalcase(job.payload['timeout'])) # tags may not be present in all scenarios if 'tags' in job.payload: self.parameter('Tags', job.payload['tags']) return self
def batch(self, job): self.resource( "arn:%s:states:::batch:submitJob.sync" % self._partition() ).parameter("JobDefinition", job.payload["jobDefinition"]).parameter( "JobName", job.payload["jobName"]).parameter( "JobQueue", job.payload["jobQueue"]).parameter( "Parameters", job.payload["parameters"]).parameter( "ContainerOverrides", to_pascalcase( job.payload["containerOverrides"])).parameter( "RetryStrategy", to_pascalcase( job.payload["retryStrategy"])).parameter( "Timeout", to_pascalcase(job.payload["timeout"])) # tags may not be present in all scenarios if "tags" in job.payload: self.parameter("Tags", job.payload["tags"]) return self