aws-sdk-deadline 1.18.0 → 1.19.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.
@@ -74,6 +74,7 @@ module Aws::Deadline
74
74
  # | license_endpoint_deleted | {Client#get_license_endpoint} | 10 | 234 |
75
75
  # | license_endpoint_valid | {Client#get_license_endpoint} | 10 | 114 |
76
76
  # | queue_fleet_association_stopped | {Client#get_queue_fleet_association} | 10 | 60 |
77
+ # | queue_limit_association_stopped | {Client#get_queue_limit_association} | 10 | 60 |
77
78
  # | queue_scheduling | {Client#get_queue} | 10 | 70 |
78
79
  # | queue_scheduling_blocked | {Client#get_queue} | 10 | 30 |
79
80
  #
@@ -325,6 +326,43 @@ module Aws::Deadline
325
326
 
326
327
  end
327
328
 
329
+ # Wait until a QueueLimitAssociation is stopped. Use this after setting the status to STOP_LIMIT_USAGE_AND_COMPLETE_TASKS or STOP_LIMIT_USAGE_AND_CANCEL_TASKS to wait for a QueueLimitAssociation to reach STOPPED
330
+ class QueueLimitAssociationStopped
331
+
332
+ # @param [Hash] options
333
+ # @option options [required, Client] :client
334
+ # @option options [Integer] :max_attempts (60)
335
+ # @option options [Integer] :delay (10)
336
+ # @option options [Proc] :before_attempt
337
+ # @option options [Proc] :before_wait
338
+ def initialize(options)
339
+ @client = options.fetch(:client)
340
+ @waiter = Aws::Waiters::Waiter.new({
341
+ max_attempts: 60,
342
+ delay: 10,
343
+ poller: Aws::Waiters::Poller.new(
344
+ operation_name: :get_queue_limit_association,
345
+ acceptors: [{
346
+ "matcher" => "path",
347
+ "argument" => "status",
348
+ "state" => "success",
349
+ "expected" => "STOPPED"
350
+ }]
351
+ )
352
+ }.merge(options))
353
+ end
354
+
355
+ # @option (see Client#get_queue_limit_association)
356
+ # @return (see Client#get_queue_limit_association)
357
+ def wait(params = {})
358
+ @waiter.wait(client: @client, params: params)
359
+ end
360
+
361
+ # @api private
362
+ attr_reader :waiter
363
+
364
+ end
365
+
328
366
  class QueueScheduling
329
367
 
330
368
  # @param [Hash] options
@@ -55,7 +55,7 @@ module Aws::Deadline
55
55
  autoload :EndpointProvider, 'aws-sdk-deadline/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-deadline/endpoints'
57
57
 
58
- GEM_VERSION = '1.18.0'
58
+ GEM_VERSION = '1.19.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -423,6 +423,7 @@ module Aws
423
423
  ?target_task_run_status: ("READY" | "SUSPENDED"),
424
424
  ?max_failed_tasks_count: ::Integer,
425
425
  ?max_retries_per_task: ::Integer,
426
+ ?max_worker_count: ::Integer,
426
427
  ?source_job_id: ::String
427
428
  ) -> _CreateJobResponseSuccess
428
429
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateJobResponseSuccess
@@ -441,6 +442,21 @@ module Aws
441
442
  ) -> _CreateLicenseEndpointResponseSuccess
442
443
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateLicenseEndpointResponseSuccess
443
444
 
445
+ interface _CreateLimitResponseSuccess
446
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateLimitResponse]
447
+ def limit_id: () -> ::String
448
+ end
449
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#create_limit-instance_method
450
+ def create_limit: (
451
+ ?client_token: ::String,
452
+ display_name: ::String,
453
+ amount_requirement_name: ::String,
454
+ max_count: ::Integer,
455
+ farm_id: ::String,
456
+ ?description: ::String
457
+ ) -> _CreateLimitResponseSuccess
458
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateLimitResponseSuccess
459
+
444
460
  interface _CreateMonitorResponseSuccess
445
461
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateMonitorResponse]
446
462
  def monitor_id: () -> ::String
@@ -515,6 +531,17 @@ module Aws
515
531
  ) -> _CreateQueueFleetAssociationResponseSuccess
516
532
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateQueueFleetAssociationResponseSuccess
517
533
 
534
+ interface _CreateQueueLimitAssociationResponseSuccess
535
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateQueueLimitAssociationResponse]
536
+ end
537
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#create_queue_limit_association-instance_method
538
+ def create_queue_limit_association: (
539
+ farm_id: ::String,
540
+ queue_id: ::String,
541
+ limit_id: ::String
542
+ ) -> _CreateQueueLimitAssociationResponseSuccess
543
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateQueueLimitAssociationResponseSuccess
544
+
518
545
  interface _CreateStorageProfileResponseSuccess
519
546
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateStorageProfileResponse]
520
547
  def storage_profile_id: () -> ::String
@@ -593,6 +620,16 @@ module Aws
593
620
  ) -> _DeleteLicenseEndpointResponseSuccess
594
621
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteLicenseEndpointResponseSuccess
595
622
 
623
+ interface _DeleteLimitResponseSuccess
624
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteLimitResponse]
625
+ end
626
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#delete_limit-instance_method
627
+ def delete_limit: (
628
+ farm_id: ::String,
629
+ limit_id: ::String
630
+ ) -> _DeleteLimitResponseSuccess
631
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteLimitResponseSuccess
632
+
596
633
  interface _DeleteMeteredProductResponseSuccess
597
634
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteMeteredProductResponse]
598
635
  end
@@ -644,6 +681,17 @@ module Aws
644
681
  ) -> _DeleteQueueFleetAssociationResponseSuccess
645
682
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteQueueFleetAssociationResponseSuccess
646
683
 
684
+ interface _DeleteQueueLimitAssociationResponseSuccess
685
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteQueueLimitAssociationResponse]
686
+ end
687
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#delete_queue_limit_association-instance_method
688
+ def delete_queue_limit_association: (
689
+ farm_id: ::String,
690
+ queue_id: ::String,
691
+ limit_id: ::String
692
+ ) -> _DeleteQueueLimitAssociationResponseSuccess
693
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteQueueLimitAssociationResponseSuccess
694
+
647
695
  interface _DeleteStorageProfileResponseSuccess
648
696
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteStorageProfileResponse]
649
697
  end
@@ -799,13 +847,14 @@ module Aws
799
847
  def parameters: () -> ::Hash[::String, Types::JobParameter]
800
848
  def attachments: () -> Types::Attachments
801
849
  def description: () -> ::String
850
+ def max_worker_count: () -> ::Integer
802
851
  def source_job_id: () -> ::String
803
852
  end
804
853
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#get_job-instance_method
805
854
  def get_job: (
806
855
  farm_id: ::String,
807
- job_id: ::String,
808
- queue_id: ::String
856
+ queue_id: ::String,
857
+ job_id: ::String
809
858
  ) -> _GetJobResponseSuccess
810
859
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetJobResponseSuccess
811
860
 
@@ -825,6 +874,27 @@ module Aws
825
874
  ) -> _GetLicenseEndpointResponseSuccess
826
875
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLicenseEndpointResponseSuccess
827
876
 
877
+ interface _GetLimitResponseSuccess
878
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetLimitResponse]
879
+ def display_name: () -> ::String
880
+ def amount_requirement_name: () -> ::String
881
+ def max_count: () -> ::Integer
882
+ def created_at: () -> ::Time
883
+ def created_by: () -> ::String
884
+ def updated_at: () -> ::Time
885
+ def updated_by: () -> ::String
886
+ def farm_id: () -> ::String
887
+ def limit_id: () -> ::String
888
+ def current_count: () -> ::Integer
889
+ def description: () -> ::String
890
+ end
891
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#get_limit-instance_method
892
+ def get_limit: (
893
+ farm_id: ::String,
894
+ limit_id: ::String
895
+ ) -> _GetLimitResponseSuccess
896
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLimitResponseSuccess
897
+
828
898
  interface _GetMonitorResponseSuccess
829
899
  include ::Seahorse::Client::_ResponseSuccess[Types::GetMonitorResponse]
830
900
  def monitor_id: () -> ::String
@@ -909,6 +979,24 @@ module Aws
909
979
  ) -> _GetQueueFleetAssociationResponseSuccess
910
980
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueueFleetAssociationResponseSuccess
911
981
 
982
+ interface _GetQueueLimitAssociationResponseSuccess
983
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetQueueLimitAssociationResponse]
984
+ def created_at: () -> ::Time
985
+ def created_by: () -> ::String
986
+ def updated_at: () -> ::Time
987
+ def updated_by: () -> ::String
988
+ def queue_id: () -> ::String
989
+ def limit_id: () -> ::String
990
+ def status: () -> ("ACTIVE" | "STOP_LIMIT_USAGE_AND_COMPLETE_TASKS" | "STOP_LIMIT_USAGE_AND_CANCEL_TASKS" | "STOPPED")
991
+ end
992
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#get_queue_limit_association-instance_method
993
+ def get_queue_limit_association: (
994
+ farm_id: ::String,
995
+ queue_id: ::String,
996
+ limit_id: ::String
997
+ ) -> _GetQueueLimitAssociationResponseSuccess
998
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueueLimitAssociationResponseSuccess
999
+
912
1000
  interface _GetSessionResponseSuccess
913
1001
  include ::Seahorse::Client::_ResponseSuccess[Types::GetSessionResponse]
914
1002
  def session_id: () -> ::String
@@ -945,6 +1033,7 @@ module Aws
945
1033
  def process_exit_code: () -> ::Integer
946
1034
  def progress_message: () -> ::String
947
1035
  def definition: () -> Types::SessionActionDefinition
1036
+ def acquired_limits: () -> ::Array[Types::AcquiredLimit]
948
1037
  end
949
1038
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#get_session_action-instance_method
950
1039
  def get_session_action: (
@@ -1060,9 +1149,9 @@ module Aws
1060
1149
 
1061
1150
  interface _GetWorkerResponseSuccess
1062
1151
  include ::Seahorse::Client::_ResponseSuccess[Types::GetWorkerResponse]
1063
- def worker_id: () -> ::String
1064
1152
  def farm_id: () -> ::String
1065
1153
  def fleet_id: () -> ::String
1154
+ def worker_id: () -> ::String
1066
1155
  def host_properties: () -> Types::HostPropertiesResponse
1067
1156
  def status: () -> ("CREATED" | "STARTED" | "STOPPING" | "STOPPED" | "NOT_RESPONDING" | "NOT_COMPATIBLE" | "RUNNING" | "IDLE")
1068
1157
  def log: () -> Types::LogConfiguration
@@ -1218,6 +1307,19 @@ module Aws
1218
1307
  ) -> _ListLicenseEndpointsResponseSuccess
1219
1308
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListLicenseEndpointsResponseSuccess
1220
1309
 
1310
+ interface _ListLimitsResponseSuccess
1311
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListLimitsResponse]
1312
+ def limits: () -> ::Array[Types::LimitSummary]
1313
+ def next_token: () -> ::String
1314
+ end
1315
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#list_limits-instance_method
1316
+ def list_limits: (
1317
+ farm_id: ::String,
1318
+ ?next_token: ::String,
1319
+ ?max_results: ::Integer
1320
+ ) -> _ListLimitsResponseSuccess
1321
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListLimitsResponseSuccess
1322
+
1221
1323
  interface _ListMeteredProductsResponseSuccess
1222
1324
  include ::Seahorse::Client::_ResponseSuccess[Types::ListMeteredProductsResponse]
1223
1325
  def metered_products: () -> ::Array[Types::MeteredProductSummary]
@@ -1272,6 +1374,21 @@ module Aws
1272
1374
  ) -> _ListQueueFleetAssociationsResponseSuccess
1273
1375
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListQueueFleetAssociationsResponseSuccess
1274
1376
 
1377
+ interface _ListQueueLimitAssociationsResponseSuccess
1378
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListQueueLimitAssociationsResponse]
1379
+ def queue_limit_associations: () -> ::Array[Types::QueueLimitAssociationSummary]
1380
+ def next_token: () -> ::String
1381
+ end
1382
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#list_queue_limit_associations-instance_method
1383
+ def list_queue_limit_associations: (
1384
+ farm_id: ::String,
1385
+ ?queue_id: ::String,
1386
+ ?limit_id: ::String,
1387
+ ?next_token: ::String,
1388
+ ?max_results: ::Integer
1389
+ ) -> _ListQueueLimitAssociationsResponseSuccess
1390
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListQueueLimitAssociationsResponseSuccess
1391
+
1275
1392
  interface _ListQueueMembersResponseSuccess
1276
1393
  include ::Seahorse::Client::_ResponseSuccess[Types::ListQueueMembersResponse]
1277
1394
  def members: () -> ::Array[Types::QueueMember]
@@ -1894,17 +2011,31 @@ module Aws
1894
2011
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#update_job-instance_method
1895
2012
  def update_job: (
1896
2013
  ?client_token: ::String,
1897
- farm_id: ::String,
1898
- queue_id: ::String,
1899
- job_id: ::String,
1900
2014
  ?target_task_run_status: ("READY" | "FAILED" | "SUCCEEDED" | "CANCELED" | "SUSPENDED" | "PENDING"),
1901
2015
  ?priority: ::Integer,
1902
2016
  ?max_failed_tasks_count: ::Integer,
1903
2017
  ?max_retries_per_task: ::Integer,
1904
- ?lifecycle_status: ("ARCHIVED")
2018
+ ?lifecycle_status: ("ARCHIVED"),
2019
+ ?max_worker_count: ::Integer,
2020
+ farm_id: ::String,
2021
+ queue_id: ::String,
2022
+ job_id: ::String
1905
2023
  ) -> _UpdateJobResponseSuccess
1906
2024
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateJobResponseSuccess
1907
2025
 
2026
+ interface _UpdateLimitResponseSuccess
2027
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateLimitResponse]
2028
+ end
2029
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#update_limit-instance_method
2030
+ def update_limit: (
2031
+ farm_id: ::String,
2032
+ limit_id: ::String,
2033
+ ?display_name: ::String,
2034
+ ?description: ::String,
2035
+ ?max_count: ::Integer
2036
+ ) -> _UpdateLimitResponseSuccess
2037
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateLimitResponseSuccess
2038
+
1908
2039
  interface _UpdateMonitorResponseSuccess
1909
2040
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateMonitorResponse]
1910
2041
  end
@@ -1978,17 +2109,29 @@ module Aws
1978
2109
  ) -> _UpdateQueueFleetAssociationResponseSuccess
1979
2110
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateQueueFleetAssociationResponseSuccess
1980
2111
 
2112
+ interface _UpdateQueueLimitAssociationResponseSuccess
2113
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateQueueLimitAssociationResponse]
2114
+ end
2115
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#update_queue_limit_association-instance_method
2116
+ def update_queue_limit_association: (
2117
+ farm_id: ::String,
2118
+ queue_id: ::String,
2119
+ limit_id: ::String,
2120
+ status: ("ACTIVE" | "STOP_LIMIT_USAGE_AND_COMPLETE_TASKS" | "STOP_LIMIT_USAGE_AND_CANCEL_TASKS")
2121
+ ) -> _UpdateQueueLimitAssociationResponseSuccess
2122
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateQueueLimitAssociationResponseSuccess
2123
+
1981
2124
  interface _UpdateSessionResponseSuccess
1982
2125
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateSessionResponse]
1983
2126
  end
1984
2127
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#update_session-instance_method
1985
2128
  def update_session: (
1986
2129
  ?client_token: ::String,
2130
+ target_lifecycle_status: ("ENDED"),
1987
2131
  farm_id: ::String,
1988
2132
  queue_id: ::String,
1989
2133
  job_id: ::String,
1990
- session_id: ::String,
1991
- target_lifecycle_status: ("ENDED")
2134
+ session_id: ::String
1992
2135
  ) -> _UpdateSessionResponseSuccess
1993
2136
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSessionResponseSuccess
1994
2137
 
@@ -1997,12 +2140,12 @@ module Aws
1997
2140
  end
1998
2141
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#update_step-instance_method
1999
2142
  def update_step: (
2143
+ target_task_run_status: ("READY" | "FAILED" | "SUCCEEDED" | "CANCELED" | "SUSPENDED" | "PENDING"),
2000
2144
  ?client_token: ::String,
2001
2145
  farm_id: ::String,
2002
2146
  queue_id: ::String,
2003
2147
  job_id: ::String,
2004
- step_id: ::String,
2005
- target_task_run_status: ("READY" | "FAILED" | "SUCCEEDED" | "CANCELED" | "SUSPENDED" | "PENDING")
2148
+ step_id: ::String
2006
2149
  ) -> _UpdateStepResponseSuccess
2007
2150
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateStepResponseSuccess
2008
2151
 
@@ -2039,12 +2182,12 @@ module Aws
2039
2182
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Deadline/Client.html#update_task-instance_method
2040
2183
  def update_task: (
2041
2184
  ?client_token: ::String,
2185
+ target_run_status: ("READY" | "FAILED" | "SUCCEEDED" | "CANCELED" | "SUSPENDED" | "PENDING"),
2042
2186
  farm_id: ::String,
2043
2187
  queue_id: ::String,
2044
2188
  job_id: ::String,
2045
2189
  step_id: ::String,
2046
- task_id: ::String,
2047
- target_run_status: ("READY" | "FAILED" | "SUCCEEDED" | "CANCELED" | "SUSPENDED" | "PENDING")
2190
+ task_id: ::String
2048
2191
  ) -> _UpdateTaskResponseSuccess
2049
2192
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateTaskResponseSuccess
2050
2193
 
@@ -2114,8 +2257,8 @@ module Aws
2114
2257
  | (:fleet_active waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetFleetResponseSuccess
2115
2258
  | (:job_create_complete waiter_name,
2116
2259
  farm_id: ::String,
2117
- job_id: ::String,
2118
- queue_id: ::String
2260
+ queue_id: ::String,
2261
+ job_id: ::String
2119
2262
  ) -> Client::_GetJobResponseSuccess
2120
2263
  | (:job_create_complete waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetJobResponseSuccess
2121
2264
  | (:license_endpoint_deleted waiter_name,
@@ -2132,6 +2275,12 @@ module Aws
2132
2275
  fleet_id: ::String
2133
2276
  ) -> Client::_GetQueueFleetAssociationResponseSuccess
2134
2277
  | (:queue_fleet_association_stopped waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetQueueFleetAssociationResponseSuccess
2278
+ | (:queue_limit_association_stopped waiter_name,
2279
+ farm_id: ::String,
2280
+ queue_id: ::String,
2281
+ limit_id: ::String
2282
+ ) -> Client::_GetQueueLimitAssociationResponseSuccess
2283
+ | (:queue_limit_association_stopped waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetQueueLimitAssociationResponseSuccess
2135
2284
  | (:queue_scheduling waiter_name,
2136
2285
  farm_id: ::String,
2137
2286
  queue_id: ::String