aws-sdk-scheduler 1.7.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: 0ab1541ce78e7e00734e9e48440dc889b7126500faa3503bef0c66b2db31f27a
4
- data.tar.gz: 8f6d1370297e4dd6526d7e5cfdb0b47b9f4a96d595790c6a254122f86fa5ef6a
3
+ metadata.gz: e54299792fc5219eeec4290953c2c6b0e3f76730cd1d1e60d7a7478be7bca687
4
+ data.tar.gz: 436b01b8eb55b06962badac97168e3c0e36c95e33bfdaed2ceff54c39c0a504f
5
5
  SHA512:
6
- metadata.gz: f9faffb1e5cb57e290072fc83382de4ed391af80ae26b09030e40f10f864e68fac1b07aef1ba6918c9126ed605fae7721cd594ba2a722e0da12728128cb8bb4a
7
- data.tar.gz: 88f3e83089abf920350b814eee350ff9a88dd86fd321b50fbb1ded41f0741376166a62fdad07f3c7eefaa8f9b744dcc09d496d75e9149daf597087079493c8a9
6
+ metadata.gz: e37ae4c98f8272f5a150a9eeb8e71dcf55dfc5340b40cc2116bb12152303a1f0c504e99522ba289c92498cdd127f07a2b91add8b06d0284f6c104dc610ff0726
7
+ data.tar.gz: cfb889031a7acc839c4cd275377b3901c1778fc41d4c55d5f34ee0229f9a0f13078a4f0fb4906a8cf092b0c185179d7c6a1e8740f7433c4fa63320914693059e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.7.0 (2023-07-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 1.8.0
@@ -390,6 +390,10 @@ module Aws::Scheduler
390
390
 
391
391
  # Creates the specified schedule.
392
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
+ #
393
397
  # @option params [String] :client_token
394
398
  # Unique, case-sensitive identifier you provide to ensure the
395
399
  # idempotency of the request. If you do not specify a client token,
@@ -429,7 +433,7 @@ module Aws::Scheduler
429
433
  #
430
434
  # * `at` expression - `at(yyyy-mm-ddThh:mm:ss)`
431
435
  #
432
- # * `rate` expression - `rate(unit value)`
436
+ # * `rate` expression - `rate(value unit)`
433
437
  #
434
438
  # * `cron` expression - `cron(fields)`
435
439
  #
@@ -478,6 +482,7 @@ module Aws::Scheduler
478
482
  # @example Request syntax with placeholder values
479
483
  #
480
484
  # resp = client.create_schedule({
485
+ # action_after_completion: "NONE", # accepts NONE, DELETE
481
486
  # client_token: "ClientToken",
482
487
  # description: "Description",
483
488
  # end_date: Time.now,
@@ -718,6 +723,7 @@ module Aws::Scheduler
718
723
  #
719
724
  # @return [Types::GetScheduleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
720
725
  #
726
+ # * {Types::GetScheduleOutput#action_after_completion #action_after_completion} => String
721
727
  # * {Types::GetScheduleOutput#arn #arn} => String
722
728
  # * {Types::GetScheduleOutput#creation_date #creation_date} => Time
723
729
  # * {Types::GetScheduleOutput#description #description} => String
@@ -742,6 +748,7 @@ module Aws::Scheduler
742
748
  #
743
749
  # @example Response structure
744
750
  #
751
+ # resp.action_after_completion #=> String, one of "NONE", "DELETE"
745
752
  # resp.arn #=> String
746
753
  # resp.creation_date #=> Time
747
754
  # resp.description #=> String
@@ -1055,6 +1062,10 @@ module Aws::Scheduler
1055
1062
  # `GetSchedule` API operation and make a note of all optional parameters
1056
1063
  # for your `UpdateSchedule` call.
1057
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
+ #
1058
1069
  # @option params [String] :client_token
1059
1070
  # Unique, case-sensitive identifier you provide to ensure the
1060
1071
  # idempotency of the request. If you do not specify a client token,
@@ -1096,7 +1107,7 @@ module Aws::Scheduler
1096
1107
  #
1097
1108
  # * `at` expression - `at(yyyy-mm-ddThh:mm:ss)`
1098
1109
  #
1099
- # * `rate` expression - `rate(unit value)`
1110
+ # * `rate` expression - `rate(value unit)`
1100
1111
  #
1101
1112
  # * `cron` expression - `cron(fields)`
1102
1113
  #
@@ -1146,6 +1157,7 @@ module Aws::Scheduler
1146
1157
  # @example Request syntax with placeholder values
1147
1158
  #
1148
1159
  # resp = client.update_schedule({
1160
+ # action_after_completion: "NONE", # accepts NONE, DELETE
1149
1161
  # client_token: "ClientToken",
1150
1162
  # description: "Description",
1151
1163
  # end_date: Time.now,
@@ -1260,7 +1272,7 @@ module Aws::Scheduler
1260
1272
  params: params,
1261
1273
  config: config)
1262
1274
  context[:gem_name] = 'aws-sdk-scheduler'
1263
- context[:gem_version] = '1.7.0'
1275
+ context[:gem_version] = '1.8.0'
1264
1276
  Seahorse::Client::Request.new(handlers, context)
1265
1277
  end
1266
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.7.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.7.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-11 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