aws-sdk-deadline 1.14.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c2dac36a5151dd05783d5785327060189e3b85c1f221ab74edfd33f41c6a602
4
- data.tar.gz: d585d3c55850483ef1b8fda4479f0aaed5fb4c057475f26feb2090542d7c820e
3
+ metadata.gz: b6380c1f49614dd71a5f72a9cc84075db2612da737b4ad4a8658ff8674ce8e53
4
+ data.tar.gz: 5a0abd61dc20036002c3cf0f874324a3d4ee054b28deb9e2febcdd8045d4cd41
5
5
  SHA512:
6
- metadata.gz: bf8ac53e64423efc6cb928ef3231a8418fc9d70e6615439c963c0d0d29a34082c8d10f41c6601d0be70d01d0eefebd5b616be89506c7d0fed6feb5e1638e8607
7
- data.tar.gz: 9adf2017d57b30a4b2337e0062cf7b52ac74e95b0d3fc25d181738a1ee035c6c048b7675c325213c5ecb5e8e1030f3d85503acb592878d67ac46421c5d8b2dcd
6
+ metadata.gz: 7fc4893319aeb4e9e37504b43277aacce165eafedbda6e54345e1e1972ee3a43bc8a520efde7d95f8b6a13cf3fdb2307d058b12e54470a06c48e2e9c7b898fce
7
+ data.tar.gz: 5882f2f9b752f84d2657d8a70de4368f2222f31de90ced5d4baa96e06d9ffe6e9908acf2fda858b46feb0a00fd465ca0dffa9be52c7eafaf722a27cdfe3e0b13
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.16.0 (2024-10-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.15.0 (2024-10-07)
10
+ ------------------
11
+
12
+ * Feature - Add support for using the template from a previous job during job creation and listing parameter definitions for a job.
13
+
4
14
  1.14.0 (2024-09-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.14.0
1
+ 1.16.0
@@ -1285,10 +1285,10 @@ module Aws::Deadline
1285
1285
  # **A suitable default value is auto-generated.** You should normally
1286
1286
  # not need to pass this option.**
1287
1287
  #
1288
- # @option params [required, String] :template
1288
+ # @option params [String] :template
1289
1289
  # The job template to use for this job.
1290
1290
  #
1291
- # @option params [required, String] :template_type
1291
+ # @option params [String] :template_type
1292
1292
  # The file type for the job template.
1293
1293
  #
1294
1294
  # @option params [required, Integer] :priority
@@ -1317,6 +1317,9 @@ module Aws::Deadline
1317
1317
  # @option params [Integer] :max_retries_per_task
1318
1318
  # The maximum number of retries for each task.
1319
1319
  #
1320
+ # @option params [String] :source_job_id
1321
+ # The job ID for the source job.
1322
+ #
1320
1323
  # @return [Types::CreateJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1321
1324
  #
1322
1325
  # * {Types::CreateJobResponse#job_id #job_id} => String
@@ -1327,8 +1330,8 @@ module Aws::Deadline
1327
1330
  # farm_id: "FarmId", # required
1328
1331
  # queue_id: "QueueId", # required
1329
1332
  # client_token: "ClientToken",
1330
- # template: "JobTemplate", # required
1331
- # template_type: "JSON", # required, accepts JSON, YAML
1333
+ # template: "JobTemplate",
1334
+ # template_type: "JSON", # accepts JSON, YAML
1332
1335
  # priority: 1, # required
1333
1336
  # parameters: {
1334
1337
  # "String" => {
@@ -1355,6 +1358,7 @@ module Aws::Deadline
1355
1358
  # target_task_run_status: "READY", # accepts READY, SUSPENDED
1356
1359
  # max_failed_tasks_count: 1,
1357
1360
  # max_retries_per_task: 1,
1361
+ # source_job_id: "JobId",
1358
1362
  # })
1359
1363
  #
1360
1364
  # @example Response structure
@@ -2462,6 +2466,7 @@ module Aws::Deadline
2462
2466
  # * {Types::GetJobResponse#parameters #parameters} => Hash<String,Types::JobParameter>
2463
2467
  # * {Types::GetJobResponse#attachments #attachments} => Types::Attachments
2464
2468
  # * {Types::GetJobResponse#description #description} => String
2469
+ # * {Types::GetJobResponse#source_job_id #source_job_id} => String
2465
2470
  #
2466
2471
  # @example Request syntax with placeholder values
2467
2472
  #
@@ -2506,6 +2511,7 @@ module Aws::Deadline
2506
2511
  # resp.attachments.manifests[0].input_manifest_hash #=> String
2507
2512
  # resp.attachments.file_system #=> String, one of "COPIED", "VIRTUAL"
2508
2513
  # resp.description #=> String
2514
+ # resp.source_job_id #=> String
2509
2515
  #
2510
2516
  #
2511
2517
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -3756,6 +3762,56 @@ module Aws::Deadline
3756
3762
  req.send_request(options)
3757
3763
  end
3758
3764
 
3765
+ # Lists parameter definitions of a job.
3766
+ #
3767
+ # @option params [required, String] :farm_id
3768
+ # The farm ID of the job to list.
3769
+ #
3770
+ # @option params [required, String] :job_id
3771
+ # The job ID to include on the list.
3772
+ #
3773
+ # @option params [required, String] :queue_id
3774
+ # The queue ID to include on the list.
3775
+ #
3776
+ # @option params [String] :next_token
3777
+ # The token for the next set of results, or `null` to start from the
3778
+ # beginning.
3779
+ #
3780
+ # @option params [Integer] :max_results
3781
+ # The maximum number of results to return. Use this parameter with
3782
+ # `NextToken` to get results as a set of sequential pages.
3783
+ #
3784
+ # @return [Types::ListJobParameterDefinitionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3785
+ #
3786
+ # * {Types::ListJobParameterDefinitionsResponse#job_parameter_definitions #job_parameter_definitions} => Array<Hash,Array,String,Numeric,Boolean>
3787
+ # * {Types::ListJobParameterDefinitionsResponse#next_token #next_token} => String
3788
+ #
3789
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3790
+ #
3791
+ # @example Request syntax with placeholder values
3792
+ #
3793
+ # resp = client.list_job_parameter_definitions({
3794
+ # farm_id: "FarmId", # required
3795
+ # job_id: "JobId", # required
3796
+ # queue_id: "QueueId", # required
3797
+ # next_token: "String",
3798
+ # max_results: 1,
3799
+ # })
3800
+ #
3801
+ # @example Response structure
3802
+ #
3803
+ # resp.job_parameter_definitions #=> Array
3804
+ # resp.next_token #=> String
3805
+ #
3806
+ # @see http://docs.aws.amazon.com/goto/WebAPI/deadline-2023-10-12/ListJobParameterDefinitions AWS API Documentation
3807
+ #
3808
+ # @overload list_job_parameter_definitions(params = {})
3809
+ # @param [Hash] params ({})
3810
+ def list_job_parameter_definitions(params = {}, options = {})
3811
+ req = build_request(:list_job_parameter_definitions, params)
3812
+ req.send_request(options)
3813
+ end
3814
+
3759
3815
  # Lists jobs.
3760
3816
  #
3761
3817
  # @option params [required, String] :farm_id
@@ -3812,6 +3868,7 @@ module Aws::Deadline
3812
3868
  # resp.jobs[0].task_run_status_counts["TaskRunStatus"] #=> Integer
3813
3869
  # resp.jobs[0].max_failed_tasks_count #=> Integer
3814
3870
  # resp.jobs[0].max_retries_per_task #=> Integer
3871
+ # resp.jobs[0].source_job_id #=> String
3815
3872
  # resp.next_token #=> String
3816
3873
  #
3817
3874
  # @see http://docs.aws.amazon.com/goto/WebAPI/deadline-2023-10-12/ListJobs AWS API Documentation
@@ -4941,6 +4998,7 @@ module Aws::Deadline
4941
4998
  # resp.jobs[0].job_parameters["String"].float #=> String
4942
4999
  # resp.jobs[0].job_parameters["String"].string #=> String
4943
5000
  # resp.jobs[0].job_parameters["String"].path #=> String
5001
+ # resp.jobs[0].source_job_id #=> String
4944
5002
  # resp.next_item_offset #=> Integer
4945
5003
  # resp.total_results #=> Integer
4946
5004
  #
@@ -6354,7 +6412,7 @@ module Aws::Deadline
6354
6412
  tracer: tracer
6355
6413
  )
6356
6414
  context[:gem_name] = 'aws-sdk-deadline'
6357
- context[:gem_version] = '1.14.0'
6415
+ context[:gem_version] = '1.16.0'
6358
6416
  Seahorse::Client::Request.new(handlers, context)
6359
6417
  end
6360
6418
 
@@ -273,6 +273,8 @@ module Aws::Deadline
273
273
  JobMembers = Shapes::ListShape.new(name: 'JobMembers')
274
274
  JobName = Shapes::StringShape.new(name: 'JobName')
275
275
  JobParameter = Shapes::UnionShape.new(name: 'JobParameter')
276
+ JobParameterDefinition = Shapes::DocumentShape.new(name: 'JobParameterDefinition', document: true)
277
+ JobParameterDefinitions = Shapes::ListShape.new(name: 'JobParameterDefinitions')
276
278
  JobParameters = Shapes::MapShape.new(name: 'JobParameters')
277
279
  JobPriority = Shapes::IntegerShape.new(name: 'JobPriority')
278
280
  JobRunAsUser = Shapes::StructureShape.new(name: 'JobRunAsUser')
@@ -304,6 +306,8 @@ module Aws::Deadline
304
306
  ListFleetsResponse = Shapes::StructureShape.new(name: 'ListFleetsResponse')
305
307
  ListJobMembersRequest = Shapes::StructureShape.new(name: 'ListJobMembersRequest')
306
308
  ListJobMembersResponse = Shapes::StructureShape.new(name: 'ListJobMembersResponse')
309
+ ListJobParameterDefinitionsRequest = Shapes::StructureShape.new(name: 'ListJobParameterDefinitionsRequest')
310
+ ListJobParameterDefinitionsResponse = Shapes::StructureShape.new(name: 'ListJobParameterDefinitionsResponse')
307
311
  ListJobsRequest = Shapes::StructureShape.new(name: 'ListJobsRequest')
308
312
  ListJobsResponse = Shapes::StructureShape.new(name: 'ListJobsResponse')
309
313
  ListLicenseEndpointsRequest = Shapes::StructureShape.new(name: 'ListLicenseEndpointsRequest')
@@ -863,8 +867,8 @@ module Aws::Deadline
863
867
  CreateJobRequest.add_member(:farm_id, Shapes::ShapeRef.new(shape: FarmId, required: true, location: "uri", location_name: "farmId"))
864
868
  CreateJobRequest.add_member(:queue_id, Shapes::ShapeRef.new(shape: QueueId, required: true, location: "uri", location_name: "queueId"))
865
869
  CreateJobRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location: "header", location_name: "X-Amz-Client-Token", metadata: {"idempotencyToken"=>true}))
866
- CreateJobRequest.add_member(:template, Shapes::ShapeRef.new(shape: JobTemplate, required: true, location_name: "template"))
867
- CreateJobRequest.add_member(:template_type, Shapes::ShapeRef.new(shape: JobTemplateType, required: true, location_name: "templateType"))
870
+ CreateJobRequest.add_member(:template, Shapes::ShapeRef.new(shape: JobTemplate, location_name: "template"))
871
+ CreateJobRequest.add_member(:template_type, Shapes::ShapeRef.new(shape: JobTemplateType, location_name: "templateType"))
868
872
  CreateJobRequest.add_member(:priority, Shapes::ShapeRef.new(shape: JobPriority, required: true, location_name: "priority"))
869
873
  CreateJobRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: JobParameters, location_name: "parameters"))
870
874
  CreateJobRequest.add_member(:attachments, Shapes::ShapeRef.new(shape: Attachments, location_name: "attachments"))
@@ -872,6 +876,7 @@ module Aws::Deadline
872
876
  CreateJobRequest.add_member(:target_task_run_status, Shapes::ShapeRef.new(shape: CreateJobTargetTaskRunStatus, location_name: "targetTaskRunStatus"))
873
877
  CreateJobRequest.add_member(:max_failed_tasks_count, Shapes::ShapeRef.new(shape: MaxFailedTasksCount, location_name: "maxFailedTasksCount"))
874
878
  CreateJobRequest.add_member(:max_retries_per_task, Shapes::ShapeRef.new(shape: MaxRetriesPerTask, location_name: "maxRetriesPerTask"))
879
+ CreateJobRequest.add_member(:source_job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "sourceJobId"))
875
880
  CreateJobRequest.struct_class = Types::CreateJobRequest
876
881
 
877
882
  CreateJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "jobId"))
@@ -1300,6 +1305,7 @@ module Aws::Deadline
1300
1305
  GetJobResponse.add_member(:parameters, Shapes::ShapeRef.new(shape: JobParameters, location_name: "parameters"))
1301
1306
  GetJobResponse.add_member(:attachments, Shapes::ShapeRef.new(shape: Attachments, location_name: "attachments"))
1302
1307
  GetJobResponse.add_member(:description, Shapes::ShapeRef.new(shape: JobDescription, location_name: "description"))
1308
+ GetJobResponse.add_member(:source_job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "sourceJobId"))
1303
1309
  GetJobResponse.struct_class = Types::GetJobResponse
1304
1310
 
1305
1311
  GetLicenseEndpointRequest.add_member(:license_endpoint_id, Shapes::ShapeRef.new(shape: LicenseEndpointId, required: true, location: "uri", location_name: "licenseEndpointId"))
@@ -1631,6 +1637,8 @@ module Aws::Deadline
1631
1637
  JobParameter.add_member_subclass(:unknown, Types::JobParameter::Unknown)
1632
1638
  JobParameter.struct_class = Types::JobParameter
1633
1639
 
1640
+ JobParameterDefinitions.member = Shapes::ShapeRef.new(shape: JobParameterDefinition)
1641
+
1634
1642
  JobParameters.key = Shapes::ShapeRef.new(shape: String)
1635
1643
  JobParameters.value = Shapes::ShapeRef.new(shape: JobParameter)
1636
1644
 
@@ -1657,6 +1665,7 @@ module Aws::Deadline
1657
1665
  JobSearchSummary.add_member(:ended_at, Shapes::ShapeRef.new(shape: EndedAt, location_name: "endedAt"))
1658
1666
  JobSearchSummary.add_member(:started_at, Shapes::ShapeRef.new(shape: StartedAt, location_name: "startedAt"))
1659
1667
  JobSearchSummary.add_member(:job_parameters, Shapes::ShapeRef.new(shape: JobParameters, location_name: "jobParameters"))
1668
+ JobSearchSummary.add_member(:source_job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "sourceJobId"))
1660
1669
  JobSearchSummary.struct_class = Types::JobSearchSummary
1661
1670
 
1662
1671
  JobSummaries.member = Shapes::ShapeRef.new(shape: JobSummary)
@@ -1677,6 +1686,7 @@ module Aws::Deadline
1677
1686
  JobSummary.add_member(:task_run_status_counts, Shapes::ShapeRef.new(shape: TaskRunStatusCounts, location_name: "taskRunStatusCounts"))
1678
1687
  JobSummary.add_member(:max_failed_tasks_count, Shapes::ShapeRef.new(shape: MaxFailedTasksCount, location_name: "maxFailedTasksCount"))
1679
1688
  JobSummary.add_member(:max_retries_per_task, Shapes::ShapeRef.new(shape: MaxRetriesPerTask, location_name: "maxRetriesPerTask"))
1689
+ JobSummary.add_member(:source_job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "sourceJobId"))
1680
1690
  JobSummary.struct_class = Types::JobSummary
1681
1691
 
1682
1692
  LicenseEndpointSummaries.member = Shapes::ShapeRef.new(shape: LicenseEndpointSummary)
@@ -1758,6 +1768,17 @@ module Aws::Deadline
1758
1768
  ListJobMembersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
1759
1769
  ListJobMembersResponse.struct_class = Types::ListJobMembersResponse
1760
1770
 
1771
+ ListJobParameterDefinitionsRequest.add_member(:farm_id, Shapes::ShapeRef.new(shape: FarmId, required: true, location: "uri", location_name: "farmId"))
1772
+ ListJobParameterDefinitionsRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location: "uri", location_name: "jobId"))
1773
+ ListJobParameterDefinitionsRequest.add_member(:queue_id, Shapes::ShapeRef.new(shape: QueueId, required: true, location: "uri", location_name: "queueId"))
1774
+ ListJobParameterDefinitionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
1775
+ ListJobParameterDefinitionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
1776
+ ListJobParameterDefinitionsRequest.struct_class = Types::ListJobParameterDefinitionsRequest
1777
+
1778
+ ListJobParameterDefinitionsResponse.add_member(:job_parameter_definitions, Shapes::ShapeRef.new(shape: JobParameterDefinitions, required: true, location_name: "jobParameterDefinitions"))
1779
+ ListJobParameterDefinitionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
1780
+ ListJobParameterDefinitionsResponse.struct_class = Types::ListJobParameterDefinitionsResponse
1781
+
1761
1782
  ListJobsRequest.add_member(:farm_id, Shapes::ShapeRef.new(shape: FarmId, required: true, location: "uri", location_name: "farmId"))
1762
1783
  ListJobsRequest.add_member(:principal_id, Shapes::ShapeRef.new(shape: IdentityCenterPrincipalId, location: "querystring", location_name: "principalId"))
1763
1784
  ListJobsRequest.add_member(:queue_id, Shapes::ShapeRef.new(shape: QueueId, required: true, location: "uri", location_name: "queueId"))
@@ -3818,6 +3839,28 @@ module Aws::Deadline
3818
3839
  )
3819
3840
  end)
3820
3841
 
3842
+ api.add_operation(:list_job_parameter_definitions, Seahorse::Model::Operation.new.tap do |o|
3843
+ o.name = "ListJobParameterDefinitions"
3844
+ o.http_method = "GET"
3845
+ o.http_request_uri = "/2023-10-12/farms/{farmId}/queues/{queueId}/jobs/{jobId}/parameter-definitions"
3846
+ o.endpoint_pattern = {
3847
+ "hostPrefix" => "management.",
3848
+ }
3849
+ o.input = Shapes::ShapeRef.new(shape: ListJobParameterDefinitionsRequest)
3850
+ o.output = Shapes::ShapeRef.new(shape: ListJobParameterDefinitionsResponse)
3851
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
3852
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
3853
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3854
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
3855
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
3856
+ o[:pager] = Aws::Pager.new(
3857
+ limit_key: "max_results",
3858
+ tokens: {
3859
+ "next_token" => "next_token"
3860
+ }
3861
+ )
3862
+ end)
3863
+
3821
3864
  api.add_operation(:list_jobs, Seahorse::Model::Operation.new.tap do |o|
3822
3865
  o.name = "ListJobs"
3823
3866
  o.http_method = "GET"
@@ -52,15 +52,18 @@ module Aws::Deadline
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end