@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface SchedulerClient extends SdkClient
builder()
method.
Amazon EventBridge Scheduler is a serverless scheduler that allows you to create, run, and manage tasks from one central, managed service. EventBridge Scheduler delivers your tasks reliably, with built-in mechanisms that adjust your schedules based on the availability of downstream targets. The following reference lists the available API actions, and data types for EventBridge Scheduler.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static SchedulerClientBuilder |
builder()
Create a builder that can be used to configure and create a
SchedulerClient. |
static SchedulerClient |
create()
Create a
SchedulerClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateScheduleResponse |
createSchedule(Consumer<CreateScheduleRequest.Builder> createScheduleRequest)
Creates the specified schedule.
|
default CreateScheduleResponse |
createSchedule(CreateScheduleRequest createScheduleRequest)
Creates the specified schedule.
|
default CreateScheduleGroupResponse |
createScheduleGroup(Consumer<CreateScheduleGroupRequest.Builder> createScheduleGroupRequest)
Creates the specified schedule group.
|
default CreateScheduleGroupResponse |
createScheduleGroup(CreateScheduleGroupRequest createScheduleGroupRequest)
Creates the specified schedule group.
|
default DeleteScheduleResponse |
deleteSchedule(Consumer<DeleteScheduleRequest.Builder> deleteScheduleRequest)
Deletes the specified schedule.
|
default DeleteScheduleResponse |
deleteSchedule(DeleteScheduleRequest deleteScheduleRequest)
Deletes the specified schedule.
|
default DeleteScheduleGroupResponse |
deleteScheduleGroup(Consumer<DeleteScheduleGroupRequest.Builder> deleteScheduleGroupRequest)
Deletes the specified schedule group.
|
default DeleteScheduleGroupResponse |
deleteScheduleGroup(DeleteScheduleGroupRequest deleteScheduleGroupRequest)
Deletes the specified schedule group.
|
default GetScheduleResponse |
getSchedule(Consumer<GetScheduleRequest.Builder> getScheduleRequest)
Retrieves the specified schedule.
|
default GetScheduleResponse |
getSchedule(GetScheduleRequest getScheduleRequest)
Retrieves the specified schedule.
|
default GetScheduleGroupResponse |
getScheduleGroup(Consumer<GetScheduleGroupRequest.Builder> getScheduleGroupRequest)
Retrieves the specified schedule group.
|
default GetScheduleGroupResponse |
getScheduleGroup(GetScheduleGroupRequest getScheduleGroupRequest)
Retrieves the specified schedule group.
|
default ListScheduleGroupsResponse |
listScheduleGroups(Consumer<ListScheduleGroupsRequest.Builder> listScheduleGroupsRequest)
Returns a paginated list of your schedule groups.
|
default ListScheduleGroupsResponse |
listScheduleGroups(ListScheduleGroupsRequest listScheduleGroupsRequest)
Returns a paginated list of your schedule groups.
|
default ListScheduleGroupsIterable |
listScheduleGroupsPaginator(Consumer<ListScheduleGroupsRequest.Builder> listScheduleGroupsRequest)
Returns a paginated list of your schedule groups.
|
default ListScheduleGroupsIterable |
listScheduleGroupsPaginator(ListScheduleGroupsRequest listScheduleGroupsRequest)
Returns a paginated list of your schedule groups.
|
default ListSchedulesResponse |
listSchedules(Consumer<ListSchedulesRequest.Builder> listSchedulesRequest)
Returns a paginated list of your EventBridge Scheduler schedules.
|
default ListSchedulesResponse |
listSchedules(ListSchedulesRequest listSchedulesRequest)
Returns a paginated list of your EventBridge Scheduler schedules.
|
default ListSchedulesIterable |
listSchedulesPaginator(Consumer<ListSchedulesRequest.Builder> listSchedulesRequest)
Returns a paginated list of your EventBridge Scheduler schedules.
|
default ListSchedulesIterable |
listSchedulesPaginator(ListSchedulesRequest listSchedulesRequest)
Returns a paginated list of your EventBridge Scheduler schedules.
|
default ListTagsForResourceResponse |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Lists the tags associated with the Scheduler resource.
|
default ListTagsForResourceResponse |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags associated with the Scheduler resource.
|
static ServiceMetadata |
serviceMetadata() |
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Assigns one or more tags (key-value pairs) to the specified EventBridge Scheduler resource.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Assigns one or more tags (key-value pairs) to the specified EventBridge Scheduler resource.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes one or more tags from the specified EventBridge Scheduler schedule group.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Removes one or more tags from the specified EventBridge Scheduler schedule group.
|
default UpdateScheduleResponse |
updateSchedule(Consumer<UpdateScheduleRequest.Builder> updateScheduleRequest)
Updates the specified schedule.
|
default UpdateScheduleResponse |
updateSchedule(UpdateScheduleRequest updateScheduleRequest)
Updates the specified schedule.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static SchedulerClient create()
SchedulerClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static SchedulerClientBuilder builder()
SchedulerClient.default CreateScheduleResponse createSchedule(CreateScheduleRequest createScheduleRequest) throws ServiceQuotaExceededException, ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Creates the specified schedule.
createScheduleRequest - ServiceQuotaExceededException - The request exceeds a service quota.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateScheduleResponse createSchedule(Consumer<CreateScheduleRequest.Builder> createScheduleRequest) throws ServiceQuotaExceededException, ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Creates the specified schedule.
This is a convenience which creates an instance of the CreateScheduleRequest.Builder avoiding the need to
create one manually via CreateScheduleRequest.builder()
createScheduleRequest - A Consumer that will call methods on CreateScheduleInput.Builder to create a request.ServiceQuotaExceededException - The request exceeds a service quota.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateScheduleGroupResponse createScheduleGroup(CreateScheduleGroupRequest createScheduleGroupRequest) throws ServiceQuotaExceededException, ValidationException, InternalServerException, ConflictException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Creates the specified schedule group.
createScheduleGroupRequest - ServiceQuotaExceededException - The request exceeds a service quota.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateScheduleGroupResponse createScheduleGroup(Consumer<CreateScheduleGroupRequest.Builder> createScheduleGroupRequest) throws ServiceQuotaExceededException, ValidationException, InternalServerException, ConflictException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Creates the specified schedule group.
This is a convenience which creates an instance of the CreateScheduleGroupRequest.Builder avoiding the
need to create one manually via CreateScheduleGroupRequest.builder()
createScheduleGroupRequest - A Consumer that will call methods on CreateScheduleGroupInput.Builder to create a request.ServiceQuotaExceededException - The request exceeds a service quota.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteScheduleResponse deleteSchedule(DeleteScheduleRequest deleteScheduleRequest) throws ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Deletes the specified schedule.
deleteScheduleRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteScheduleResponse deleteSchedule(Consumer<DeleteScheduleRequest.Builder> deleteScheduleRequest) throws ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Deletes the specified schedule.
This is a convenience which creates an instance of the DeleteScheduleRequest.Builder avoiding the need to
create one manually via DeleteScheduleRequest.builder()
deleteScheduleRequest - A Consumer that will call methods on DeleteScheduleInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteScheduleGroupResponse deleteScheduleGroup(DeleteScheduleGroupRequest deleteScheduleGroupRequest) throws ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
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.
This operation is eventually consistent.
deleteScheduleGroupRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteScheduleGroupResponse deleteScheduleGroup(Consumer<DeleteScheduleGroupRequest.Builder> deleteScheduleGroupRequest) throws ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
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.
This operation is eventually consistent.
This is a convenience which creates an instance of the DeleteScheduleGroupRequest.Builder avoiding the
need to create one manually via DeleteScheduleGroupRequest.builder()
deleteScheduleGroupRequest - A Consumer that will call methods on DeleteScheduleGroupInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetScheduleResponse getSchedule(GetScheduleRequest getScheduleRequest) throws ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Retrieves the specified schedule.
getScheduleRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetScheduleResponse getSchedule(Consumer<GetScheduleRequest.Builder> getScheduleRequest) throws ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Retrieves the specified schedule.
This is a convenience which creates an instance of the GetScheduleRequest.Builder avoiding the need to
create one manually via GetScheduleRequest.builder()
getScheduleRequest - A Consumer that will call methods on GetScheduleInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetScheduleGroupResponse getScheduleGroup(GetScheduleGroupRequest getScheduleGroupRequest) throws ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Retrieves the specified schedule group.
getScheduleGroupRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetScheduleGroupResponse getScheduleGroup(Consumer<GetScheduleGroupRequest.Builder> getScheduleGroupRequest) throws ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Retrieves the specified schedule group.
This is a convenience which creates an instance of the GetScheduleGroupRequest.Builder avoiding the need
to create one manually via GetScheduleGroupRequest.builder()
getScheduleGroupRequest - A Consumer that will call methods on GetScheduleGroupInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListScheduleGroupsResponse listScheduleGroups(ListScheduleGroupsRequest listScheduleGroupsRequest) throws ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Returns a paginated list of your schedule groups.
listScheduleGroupsRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListScheduleGroupsResponse listScheduleGroups(Consumer<ListScheduleGroupsRequest.Builder> listScheduleGroupsRequest) throws ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Returns a paginated list of your schedule groups.
This is a convenience which creates an instance of the ListScheduleGroupsRequest.Builder avoiding the
need to create one manually via ListScheduleGroupsRequest.builder()
listScheduleGroupsRequest - A Consumer that will call methods on ListScheduleGroupsInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListScheduleGroupsIterable listScheduleGroupsPaginator(ListScheduleGroupsRequest listScheduleGroupsRequest) throws ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Returns a paginated list of your schedule groups.
This is a variant of
listScheduleGroups(software.amazon.awssdk.services.scheduler.model.ListScheduleGroupsRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.scheduler.paginators.ListScheduleGroupsIterable responses = client.listScheduleGroupsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.scheduler.paginators.ListScheduleGroupsIterable responses = client
.listScheduleGroupsPaginator(request);
for (software.amazon.awssdk.services.scheduler.model.ListScheduleGroupsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.scheduler.paginators.ListScheduleGroupsIterable responses = client.listScheduleGroupsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listScheduleGroups(software.amazon.awssdk.services.scheduler.model.ListScheduleGroupsRequest)
operation.
listScheduleGroupsRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListScheduleGroupsIterable listScheduleGroupsPaginator(Consumer<ListScheduleGroupsRequest.Builder> listScheduleGroupsRequest) throws ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Returns a paginated list of your schedule groups.
This is a variant of
listScheduleGroups(software.amazon.awssdk.services.scheduler.model.ListScheduleGroupsRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.scheduler.paginators.ListScheduleGroupsIterable responses = client.listScheduleGroupsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.scheduler.paginators.ListScheduleGroupsIterable responses = client
.listScheduleGroupsPaginator(request);
for (software.amazon.awssdk.services.scheduler.model.ListScheduleGroupsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.scheduler.paginators.ListScheduleGroupsIterable responses = client.listScheduleGroupsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listScheduleGroups(software.amazon.awssdk.services.scheduler.model.ListScheduleGroupsRequest)
operation.
This is a convenience which creates an instance of the ListScheduleGroupsRequest.Builder avoiding the
need to create one manually via ListScheduleGroupsRequest.builder()
listScheduleGroupsRequest - A Consumer that will call methods on ListScheduleGroupsInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListSchedulesResponse listSchedules(ListSchedulesRequest listSchedulesRequest) throws ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Returns a paginated list of your EventBridge Scheduler schedules.
listSchedulesRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListSchedulesResponse listSchedules(Consumer<ListSchedulesRequest.Builder> listSchedulesRequest) throws ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Returns a paginated list of your EventBridge Scheduler schedules.
This is a convenience which creates an instance of the ListSchedulesRequest.Builder avoiding the need to
create one manually via ListSchedulesRequest.builder()
listSchedulesRequest - A Consumer that will call methods on ListSchedulesInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListSchedulesIterable listSchedulesPaginator(ListSchedulesRequest listSchedulesRequest) throws ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Returns a paginated list of your EventBridge Scheduler schedules.
This is a variant of listSchedules(software.amazon.awssdk.services.scheduler.model.ListSchedulesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.scheduler.paginators.ListSchedulesIterable responses = client.listSchedulesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.scheduler.paginators.ListSchedulesIterable responses = client.listSchedulesPaginator(request);
for (software.amazon.awssdk.services.scheduler.model.ListSchedulesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.scheduler.paginators.ListSchedulesIterable responses = client.listSchedulesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSchedules(software.amazon.awssdk.services.scheduler.model.ListSchedulesRequest) operation.
listSchedulesRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListSchedulesIterable listSchedulesPaginator(Consumer<ListSchedulesRequest.Builder> listSchedulesRequest) throws ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Returns a paginated list of your EventBridge Scheduler schedules.
This is a variant of listSchedules(software.amazon.awssdk.services.scheduler.model.ListSchedulesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.scheduler.paginators.ListSchedulesIterable responses = client.listSchedulesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.scheduler.paginators.ListSchedulesIterable responses = client.listSchedulesPaginator(request);
for (software.amazon.awssdk.services.scheduler.model.ListSchedulesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.scheduler.paginators.ListSchedulesIterable responses = client.listSchedulesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSchedules(software.amazon.awssdk.services.scheduler.model.ListSchedulesRequest) operation.
This is a convenience which creates an instance of the ListSchedulesRequest.Builder avoiding the need to
create one manually via ListSchedulesRequest.builder()
listSchedulesRequest - A Consumer that will call methods on ListSchedulesInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Lists the tags associated with the Scheduler resource.
listTagsForResourceRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Lists the tags associated with the Scheduler resource.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Assigns one or more tags (key-value pairs) to the specified EventBridge Scheduler resource. You can only assign tags to schedule groups.
tagResourceRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Assigns one or more tags (key-value pairs) to the specified EventBridge Scheduler resource. You can only assign tags to schedule groups.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Removes one or more tags from the specified EventBridge Scheduler schedule group.
untagResourceRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
Removes one or more tags from the specified EventBridge Scheduler schedule group.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateScheduleResponse updateSchedule(UpdateScheduleRequest updateScheduleRequest) throws ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
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.
updateScheduleRequest - ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateScheduleResponse updateSchedule(Consumer<UpdateScheduleRequest.Builder> updateScheduleRequest) throws ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, SchedulerException
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.
This is a convenience which creates an instance of the UpdateScheduleRequest.Builder avoiding the need to
create one manually via UpdateScheduleRequest.builder()
updateScheduleRequest - A Consumer that will call methods on UpdateScheduleInput.Builder to create a request.ValidationException - The input fails to satisfy the constraints specified by an AWS service.InternalServerException - Unexpected error encountered while processing the request.ConflictException - Updating or deleting the resource can cause an inconsistent state.ResourceNotFoundException - The request references a resource which does not exist.ThrottlingException - The request was denied due to request throttling.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchedulerException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2022. All rights reserved.