aws-sdk-scheduler 1.6.0 → 1.8.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: 64a7c1c7e536923aeb0c01d6315b26d63617580bb4dee4402d277f7de74fb381
4
- data.tar.gz: f5de119631bc2e66fc4eb125c40a377e4d5b949cdd1787e1dfed4641d367843f
3
+ metadata.gz: e54299792fc5219eeec4290953c2c6b0e3f76730cd1d1e60d7a7478be7bca687
4
+ data.tar.gz: 436b01b8eb55b06962badac97168e3c0e36c95e33bfdaed2ceff54c39c0a504f
5
5
  SHA512:
6
- metadata.gz: 0c7531eb33c728e5a9e7e114381e9015199817a3e9940becfe1a9595dabf704d6ab3af5aed2775ea523f24bc18295a88851b6d35af91826ecfc824c4903e50af
7
- data.tar.gz: 5c9ae6cc670e72d77cbcb74e31028e7635c63eafb4628d4a512433395bb930568b64ccf5f65a1a432124d1bf95c46922b2a703f908e71e41f96c47643a083667
6
+ metadata.gz: e37ae4c98f8272f5a150a9eeb8e71dcf55dfc5340b40cc2116bb12152303a1f0c504e99522ba289c92498cdd127f07a2b91add8b06d0284f6c104dc610ff0726
7
+ data.tar.gz: cfb889031a7acc839c4cd275377b3901c1778fc41d4c55d5f34ee0229f9a0f13078a4f0fb4906a8cf092b0c185179d7c6a1e8740f7433c4fa63320914693059e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.8.0 (2023-07-31)
5
+ ------------------
6
+
7
+ * Feature - This release introduces automatic deletion of schedules in EventBridge Scheduler. If configured, EventBridge Scheduler automatically deletes a schedule after the schedule has completed its last invocation.
8
+
9
+ 1.7.0 (2023-07-11)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.6.0 (2023-07-06)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.8.0
@@ -216,6 +216,10 @@ module Aws::Scheduler
216
216
  # @option options [Boolean] :endpoint_discovery (false)
217
217
  # When set to `true`, endpoint discovery will be enabled for operations when available.
218
218
  #
219
+ # @option options [Boolean] :ignore_configured_endpoint_urls
220
+ # Setting to true disables use of endpoint URLs provided via environment
221
+ # variables and the shared configuration file.
222
+ #
219
223
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
220
224
  # The log formatter.
221
225
  #
@@ -386,6 +390,10 @@ module Aws::Scheduler
386
390
 
387
391
  # Creates the specified schedule.
388
392
  #
393
+ # @option params [String] :action_after_completion
394
+ # Specifies the action that EventBridge Scheduler applies to the
395
+ # schedule after the schedule completes invoking the target.
396
+ #
389
397
  # @option params [String] :client_token
390
398
  # Unique, case-sensitive identifier you provide to ensure the
391
399
  # idempotency of the request. If you do not specify a client token,
@@ -425,7 +433,7 @@ module Aws::Scheduler
425
433
  #
426
434
  # * `at` expression - `at(yyyy-mm-ddThh:mm:ss)`
427
435
  #
428
- # * `rate` expression - `rate(unit value)`
436
+ # * `rate` expression - `rate(value unit)`
429
437
  #
430
438
  # * `cron` expression - `cron(fields)`
431
439
  #
@@ -474,6 +482,7 @@ module Aws::Scheduler
474
482
  # @example Request syntax with placeholder values
475
483
  #
476
484
  # resp = client.create_schedule({
485
+ # action_after_completion: "NONE", # accepts NONE, DELETE
477
486
  # client_token: "ClientToken",
478
487
  # description: "Description",
479
488
  # end_date: Time.now,
@@ -714,6 +723,7 @@ module Aws::Scheduler
714
723
  #
715
724
  # @return [Types::GetScheduleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
716
725
  #
726
+ # * {Types::GetScheduleOutput#action_after_completion #action_after_completion} => String
717
727
  # * {Types::GetScheduleOutput#arn #arn} => String
718
728
  # * {Types::GetScheduleOutput#creation_date #creation_date} => Time
719
729
  # * {Types::GetScheduleOutput#description #description} => String
@@ -738,6 +748,7 @@ module Aws::Scheduler
738
748
  #
739
749
  # @example Response structure
740
750
  #
751
+ # resp.action_after_completion #=> String, one of "NONE", "DELETE"
741
752
  # resp.arn #=> String
742
753
  # resp.creation_date #=> Time
743
754
  # resp.description #=> String
@@ -1051,6 +1062,10 @@ module Aws::Scheduler
1051
1062
  # `GetSchedule` API operation and make a note of all optional parameters
1052
1063
  # for your `UpdateSchedule` call.
1053
1064
  #
1065
+ # @option params [String] :action_after_completion
1066
+ # Specifies the action that EventBridge Scheduler applies to the
1067
+ # schedule after the schedule completes invoking the target.
1068
+ #
1054
1069
  # @option params [String] :client_token
1055
1070
  # Unique, case-sensitive identifier you provide to ensure the
1056
1071
  # idempotency of the request. If you do not specify a client token,
@@ -1092,7 +1107,7 @@ module Aws::Scheduler
1092
1107
  #
1093
1108
  # * `at` expression - `at(yyyy-mm-ddThh:mm:ss)`
1094
1109
  #
1095
- # * `rate` expression - `rate(unit value)`
1110
+ # * `rate` expression - `rate(value unit)`
1096
1111
  #
1097
1112
  # * `cron` expression - `cron(fields)`
1098
1113
  #
@@ -1142,6 +1157,7 @@ module Aws::Scheduler
1142
1157
  # @example Request syntax with placeholder values
1143
1158
  #
1144
1159
  # resp = client.update_schedule({
1160
+ # action_after_completion: "NONE", # accepts NONE, DELETE
1145
1161
  # client_token: "ClientToken",
1146
1162
  # description: "Description",
1147
1163
  # end_date: Time.now,
@@ -1256,7 +1272,7 @@ module Aws::Scheduler
1256
1272
  params: params,
1257
1273
  config: config)
1258
1274
  context[:gem_name] = 'aws-sdk-scheduler'
1259
- context[:gem_version] = '1.6.0'
1275
+ context[:gem_version] = '1.8.0'
1260
1276
  Seahorse::Client::Request.new(handlers, context)
1261
1277
  end
1262
1278
 
@@ -13,6 +13,7 @@ module Aws::Scheduler
13
13
 
14
14
  include Seahorse::Model
15
15
 
16
+ ActionAfterCompletion = Shapes::StringShape.new(name: 'ActionAfterCompletion')
16
17
  AssignPublicIp = Shapes::StringShape.new(name: 'AssignPublicIp')
17
18
  AwsVpcConfiguration = Shapes::StructureShape.new(name: 'AwsVpcConfiguration')
18
19
  CapacityProvider = Shapes::StringShape.new(name: 'CapacityProvider')
@@ -154,6 +155,7 @@ module Aws::Scheduler
154
155
  CreateScheduleGroupOutput.add_member(:schedule_group_arn, Shapes::ShapeRef.new(shape: ScheduleGroupArn, required: true, location_name: "ScheduleGroupArn"))
155
156
  CreateScheduleGroupOutput.struct_class = Types::CreateScheduleGroupOutput
156
157
 
158
+ CreateScheduleInput.add_member(:action_after_completion, Shapes::ShapeRef.new(shape: ActionAfterCompletion, location_name: "ActionAfterCompletion"))
157
159
  CreateScheduleInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
158
160
  CreateScheduleInput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
159
161
  CreateScheduleInput.add_member(:end_date, Shapes::ShapeRef.new(shape: EndDate, location_name: "EndDate"))
@@ -225,6 +227,7 @@ module Aws::Scheduler
225
227
  GetScheduleInput.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "Name"))
226
228
  GetScheduleInput.struct_class = Types::GetScheduleInput
227
229
 
230
+ GetScheduleOutput.add_member(:action_after_completion, Shapes::ShapeRef.new(shape: ActionAfterCompletion, location_name: "ActionAfterCompletion"))
228
231
  GetScheduleOutput.add_member(:arn, Shapes::ShapeRef.new(shape: ScheduleArn, location_name: "Arn"))
229
232
  GetScheduleOutput.add_member(:creation_date, Shapes::ShapeRef.new(shape: CreationDate, location_name: "CreationDate"))
230
233
  GetScheduleOutput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
@@ -377,6 +380,7 @@ module Aws::Scheduler
377
380
 
378
381
  UntagResourceOutput.struct_class = Types::UntagResourceOutput
379
382
 
383
+ UpdateScheduleInput.add_member(:action_after_completion, Shapes::ShapeRef.new(shape: ActionAfterCompletion, location_name: "ActionAfterCompletion"))
380
384
  UpdateScheduleInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
381
385
  UpdateScheduleInput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
382
386
  UpdateScheduleInput.add_member(:end_date, Shapes::ShapeRef.new(shape: EndDate, location_name: "EndDate"))
@@ -50,9 +50,6 @@ module Aws::Scheduler
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,39 @@ module Aws::Scheduler
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://scheduler-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://scheduler-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://scheduler.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://scheduler-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://scheduler-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://scheduler.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://scheduler.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://scheduler.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -125,6 +125,11 @@ module Aws::Scheduler
125
125
  include Aws::Structure
126
126
  end
127
127
 
128
+ # @!attribute [rw] action_after_completion
129
+ # Specifies the action that EventBridge Scheduler applies to the
130
+ # schedule after the schedule completes invoking the target.
131
+ # @return [String]
132
+ #
128
133
  # @!attribute [rw] client_token
129
134
  # Unique, case-sensitive identifier you provide to ensure the
130
135
  # idempotency of the request. If you do not specify a client token,
@@ -171,7 +176,7 @@ module Aws::Scheduler
171
176
  #
172
177
  # * `at` expression - `at(yyyy-mm-ddThh:mm:ss)`
173
178
  #
174
- # * `rate` expression - `rate(unit value)`
179
+ # * `rate` expression - `rate(value unit)`
175
180
  #
176
181
  # * `cron` expression - `cron(fields)`
177
182
  #
@@ -221,6 +226,7 @@ module Aws::Scheduler
221
226
  # @see http://docs.aws.amazon.com/goto/WebAPI/scheduler-2021-06-30/CreateScheduleInput AWS API Documentation
222
227
  #
223
228
  class CreateScheduleInput < Struct.new(
229
+ :action_after_completion,
224
230
  :client_token,
225
231
  :description,
226
232
  :end_date,
@@ -558,6 +564,11 @@ module Aws::Scheduler
558
564
  include Aws::Structure
559
565
  end
560
566
 
567
+ # @!attribute [rw] action_after_completion
568
+ # Indicates the action that EventBridge Scheduler applies to the
569
+ # schedule after the schedule completes invoking the target.
570
+ # @return [String]
571
+ #
561
572
  # @!attribute [rw] arn
562
573
  # The Amazon Resource Name (ARN) of the schedule.
563
574
  # @return [String]
@@ -605,7 +616,7 @@ module Aws::Scheduler
605
616
  #
606
617
  # * `at` expression - `at(yyyy-mm-ddThh:mm:ss)`
607
618
  #
608
- # * `rate` expression - `rate(unit value)`
619
+ # * `rate` expression - `rate(value unit)`
609
620
  #
610
621
  # * `cron` expression - `cron(fields)`
611
622
  #
@@ -655,6 +666,7 @@ module Aws::Scheduler
655
666
  # @see http://docs.aws.amazon.com/goto/WebAPI/scheduler-2021-06-30/GetScheduleOutput AWS API Documentation
656
667
  #
657
668
  class GetScheduleOutput < Struct.new(
669
+ :action_after_completion,
658
670
  :arn,
659
671
  :creation_date,
660
672
  :description,
@@ -1295,6 +1307,11 @@ module Aws::Scheduler
1295
1307
  #
1296
1308
  class UntagResourceOutput < Aws::EmptyStructure; end
1297
1309
 
1310
+ # @!attribute [rw] action_after_completion
1311
+ # Specifies the action that EventBridge Scheduler applies to the
1312
+ # schedule after the schedule completes invoking the target.
1313
+ # @return [String]
1314
+ #
1298
1315
  # @!attribute [rw] client_token
1299
1316
  # Unique, case-sensitive identifier you provide to ensure the
1300
1317
  # idempotency of the request. If you do not specify a client token,
@@ -1344,7 +1361,7 @@ module Aws::Scheduler
1344
1361
  #
1345
1362
  # * `at` expression - `at(yyyy-mm-ddThh:mm:ss)`
1346
1363
  #
1347
- # * `rate` expression - `rate(unit value)`
1364
+ # * `rate` expression - `rate(value unit)`
1348
1365
  #
1349
1366
  # * `cron` expression - `cron(fields)`
1350
1367
  #
@@ -1395,6 +1412,7 @@ module Aws::Scheduler
1395
1412
  # @see http://docs.aws.amazon.com/goto/WebAPI/scheduler-2021-06-30/UpdateScheduleInput AWS API Documentation
1396
1413
  #
1397
1414
  class UpdateScheduleInput < Struct.new(
1415
+ :action_after_completion,
1398
1416
  :client_token,
1399
1417
  :description,
1400
1418
  :end_date,
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-scheduler/customizations'
52
52
  # @!group service
53
53
  module Aws::Scheduler
54
54
 
55
- GEM_VERSION = '1.6.0'
55
+ GEM_VERSION = '1.8.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.8.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: 2023-07-06 00:00:00.000000000 Z
11
+ date: 2023-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core