EventBridgeSchedulerClient
Index > EventBridgeScheduler > EventBridgeSchedulerClient
Auto-generated documentation for EventBridgeScheduler type annotations stubs module mypy-boto3-scheduler.
EventBridgeSchedulerClient
Type annotations and code completion for boto3.client("scheduler")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_scheduler.client import EventBridgeSchedulerClient
def get_scheduler_client() -> EventBridgeSchedulerClient:
return Session().client("scheduler")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("scheduler").exceptions
structure.
client = boto3.client("scheduler")
try:
do_something(client)
except (
client.ClientError,
client.ConflictException,
client.InternalServerException,
client.ResourceNotFoundException,
client.ServiceQuotaExceededException,
client.ThrottlingException,
client.ValidationException,
) as e:
print(e)
from mypy_boto3_scheduler.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("scheduler").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("scheduler").close
method.
boto3 documentation
create_schedule
Creates the specified schedule.
Type annotations and code completion for boto3.client("scheduler").create_schedule
method.
boto3 documentation
def create_schedule(
self,
*,
FlexibleTimeWindow: FlexibleTimeWindowTypeDef, # (1)
Name: str,
ScheduleExpression: str,
Target: TargetTypeDef, # (2)
ClientToken: str = ...,
Description: str = ...,
EndDate: Union[datetime, str] = ...,
GroupName: str = ...,
KmsKeyArn: str = ...,
ScheduleExpressionTimezone: str = ...,
StartDate: Union[datetime, str] = ...,
State: ScheduleStateType = ..., # (3)
) -> CreateScheduleOutputTypeDef: # (4)
...
- See FlexibleTimeWindowTypeDef
- See TargetTypeDef
- See ScheduleStateType
- See CreateScheduleOutputTypeDef
kwargs: CreateScheduleInputRequestTypeDef = { # (1)
"FlexibleTimeWindow": ...,
"Name": ...,
"ScheduleExpression": ...,
"Target": ...,
}
parent.create_schedule(**kwargs)
create_schedule_group
Creates the specified schedule group.
Type annotations and code completion for boto3.client("scheduler").create_schedule_group
method.
boto3 documentation
def create_schedule_group(
self,
*,
Name: str,
ClientToken: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateScheduleGroupOutputTypeDef: # (2)
...
kwargs: CreateScheduleGroupInputRequestTypeDef = { # (1)
"Name": ...,
}
parent.create_schedule_group(**kwargs)
delete_schedule
Deletes the specified schedule.
Type annotations and code completion for boto3.client("scheduler").delete_schedule
method.
boto3 documentation
def delete_schedule(
self,
*,
Name: str,
ClientToken: str = ...,
GroupName: str = ...,
) -> Dict[str, Any]:
...
kwargs: DeleteScheduleInputRequestTypeDef = { # (1)
"Name": ...,
}
parent.delete_schedule(**kwargs)
delete_schedule_group
Deletes the specified schedule group.
Type annotations and code completion for boto3.client("scheduler").delete_schedule_group
method.
boto3 documentation
def delete_schedule_group(
self,
*,
Name: str,
ClientToken: str = ...,
) -> Dict[str, Any]:
...
kwargs: DeleteScheduleGroupInputRequestTypeDef = { # (1)
"Name": ...,
}
parent.delete_schedule_group(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("scheduler").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_schedule
Retrieves the specified schedule.
Type annotations and code completion for boto3.client("scheduler").get_schedule
method.
boto3 documentation
def get_schedule(
self,
*,
Name: str,
GroupName: str = ...,
) -> GetScheduleOutputTypeDef: # (1)
...
kwargs: GetScheduleInputRequestTypeDef = { # (1)
"Name": ...,
}
parent.get_schedule(**kwargs)
get_schedule_group
Retrieves the specified schedule group.
Type annotations and code completion for boto3.client("scheduler").get_schedule_group
method.
boto3 documentation
def get_schedule_group(
self,
*,
Name: str,
) -> GetScheduleGroupOutputTypeDef: # (1)
...
kwargs: GetScheduleGroupInputRequestTypeDef = { # (1)
"Name": ...,
}
parent.get_schedule_group(**kwargs)
list_schedule_groups
Returns a paginated list of your schedule groups.
Type annotations and code completion for boto3.client("scheduler").list_schedule_groups
method.
boto3 documentation
def list_schedule_groups(
self,
*,
MaxResults: int = ...,
NamePrefix: str = ...,
NextToken: str = ...,
) -> ListScheduleGroupsOutputTypeDef: # (1)
...
kwargs: ListScheduleGroupsInputRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_schedule_groups(**kwargs)
list_schedules
Returns a paginated list of your EventBridge Scheduler schedules.
Type annotations and code completion for boto3.client("scheduler").list_schedules
method.
boto3 documentation
def list_schedules(
self,
*,
GroupName: str = ...,
MaxResults: int = ...,
NamePrefix: str = ...,
NextToken: str = ...,
State: ScheduleStateType = ..., # (1)
) -> ListSchedulesOutputTypeDef: # (2)
...
kwargs: ListSchedulesInputRequestTypeDef = { # (1)
"GroupName": ...,
}
parent.list_schedules(**kwargs)
list_tags_for_resource
Lists the tags associated with the Scheduler resource.
Type annotations and code completion for boto3.client("scheduler").list_tags_for_resource
method.
boto3 documentation
def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceOutputTypeDef: # (1)
...
kwargs: ListTagsForResourceInputRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
tag_resource
Assigns one or more tags (key-value pairs) to the specified EventBridge Scheduler resource.
Type annotations and code completion for boto3.client("scheduler").tag_resource
method.
boto3 documentation
def tag_resource(
self,
*,
ResourceArn: str,
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
kwargs: TagResourceInputRequestTypeDef = { # (1)
"ResourceArn": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource
Removes one or more tags from the specified EventBridge Scheduler schedule group.
Type annotations and code completion for boto3.client("scheduler").untag_resource
method.
boto3 documentation
def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: UntagResourceInputRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_schedule
Updates the specified schedule.
Type annotations and code completion for boto3.client("scheduler").update_schedule
method.
boto3 documentation
def update_schedule(
self,
*,
FlexibleTimeWindow: FlexibleTimeWindowTypeDef, # (1)
Name: str,
ScheduleExpression: str,
Target: TargetTypeDef, # (2)
ClientToken: str = ...,
Description: str = ...,
EndDate: Union[datetime, str] = ...,
GroupName: str = ...,
KmsKeyArn: str = ...,
ScheduleExpressionTimezone: str = ...,
StartDate: Union[datetime, str] = ...,
State: ScheduleStateType = ..., # (3)
) -> UpdateScheduleOutputTypeDef: # (4)
...
- See FlexibleTimeWindowTypeDef
- See TargetTypeDef
- See ScheduleStateType
- See UpdateScheduleOutputTypeDef
kwargs: UpdateScheduleInputRequestTypeDef = { # (1)
"FlexibleTimeWindow": ...,
"Name": ...,
"ScheduleExpression": ...,
"Target": ...,
}
parent.update_schedule(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("scheduler").get_paginator
method with overloads.
client.get_paginator("list_schedule_groups")
-> ListScheduleGroupsPaginatorclient.get_paginator("list_schedules")
-> ListSchedulesPaginator