Class: Aws::Scheduler::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Scheduler::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb
Overview
An API client for Scheduler. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::Scheduler::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_schedule(params = {}) ⇒ Types::CreateScheduleOutput
Creates the specified schedule.
-
#create_schedule_group(params = {}) ⇒ Types::CreateScheduleGroupOutput
Creates the specified schedule group.
-
#delete_schedule(params = {}) ⇒ Struct
Deletes the specified schedule.
-
#delete_schedule_group(params = {}) ⇒ Struct
Deletes the specified schedule group.
-
#get_schedule(params = {}) ⇒ Types::GetScheduleOutput
Retrieves the specified schedule.
-
#get_schedule_group(params = {}) ⇒ Types::GetScheduleGroupOutput
Retrieves the specified schedule group.
-
#list_schedule_groups(params = {}) ⇒ Types::ListScheduleGroupsOutput
Returns a paginated list of your schedule groups.
-
#list_schedules(params = {}) ⇒ Types::ListSchedulesOutput
Returns a paginated list of your EventBridge Scheduler schedules.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Lists the tags associated with the Scheduler resource.
-
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified EventBridge Scheduler resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from the specified EventBridge Scheduler schedule group.
-
#update_schedule(params = {}) ⇒ Types::UpdateScheduleOutput
Updates the specified schedule.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
440 441 442 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 440 def initialize(*args) super end |
Instance Method Details
#create_schedule(params = {}) ⇒ Types::CreateScheduleOutput
Creates the specified schedule.
637 638 639 640 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 637 def create_schedule(params = {}, = {}) req = build_request(:create_schedule, params) req.send_request() end |
#create_schedule_group(params = {}) ⇒ Types::CreateScheduleGroupOutput
Creates the specified schedule group.
684 685 686 687 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 684 def create_schedule_group(params = {}, = {}) req = build_request(:create_schedule_group, params) req.send_request() end |
#delete_schedule(params = {}) ⇒ Struct
Deletes the specified schedule.
721 722 723 724 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 721 def delete_schedule(params = {}, = {}) req = build_request(:delete_schedule, params) req.send_request() end |
#delete_schedule_group(params = {}) ⇒ Struct
Deletes the specified schedule group. Deleting a schedule group
results in EventBridge Scheduler deleting all schedules associated
with the group. When you delete a group, it remains in a DELETING
state until all of its associated schedules are deleted. Schedules
associated with the group that are set to run while the schedule group
is in the process of being deleted might continue to invoke their
targets until the schedule group and its associated schedules are
deleted.
764 765 766 767 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 764 def delete_schedule_group(params = {}, = {}) req = build_request(:delete_schedule_group, params) req.send_request() end |
#get_schedule(params = {}) ⇒ Types::GetScheduleOutput
Retrieves the specified schedule.
866 867 868 869 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 866 def get_schedule(params = {}, = {}) req = build_request(:get_schedule, params) req.send_request() end |
#get_schedule_group(params = {}) ⇒ Types::GetScheduleGroupOutput
Retrieves the specified schedule group.
902 903 904 905 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 902 def get_schedule_group(params = {}, = {}) req = build_request(:get_schedule_group, params) req.send_request() end |
#list_schedule_groups(params = {}) ⇒ Types::ListScheduleGroupsOutput
Returns a paginated list of your schedule groups.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
951 952 953 954 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 951 def list_schedule_groups(params = {}, = {}) req = build_request(:list_schedule_groups, params) req.send_request() end |
#list_schedules(params = {}) ⇒ Types::ListSchedulesOutput
Returns a paginated list of your EventBridge Scheduler schedules.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1011 1012 1013 1014 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 1011 def list_schedules(params = {}, = {}) req = build_request(:list_schedules, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Lists the tags associated with the Scheduler resource.
1042 1043 1044 1045 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 1042 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified EventBridge Scheduler resource. You can only assign tags to schedule groups.
1076 1077 1078 1079 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 1076 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from the specified EventBridge Scheduler schedule group.
1104 1105 1106 1107 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 1104 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_schedule(params = {}) ⇒ Types::UpdateScheduleOutput
Updates the specified schedule. When you call UpdateSchedule
,
EventBridge Scheduler uses all values, including empty values,
specified in the request and overrides the existing schedule. This is
by design. This means that if you do not set an optional field in your
request, that field will be set to its system-default value after the
update.
Before calling this operation, we recommend that you call the
GetSchedule
API operation and make a note of all optional parameters
for your UpdateSchedule
call.
1312 1313 1314 1315 |
# File 'gems/aws-sdk-scheduler/lib/aws-sdk-scheduler/client.rb', line 1312 def update_schedule(params = {}, = {}) req = build_request(:update_schedule, params) req.send_request() end |