create_schedule_action
async
¶
create_schedule_action(
id: FeedId,
action_name: ResourceName,
start_configuration: ScheduleActionStartConfiguration,
operations: ScheduleActionOperations,
*,
config_overrides: Optional[AsyncElementalInferenceClientConfig] = None,
) -> CreateScheduleActionResponse
Creates a schedule action on a feed. A schedule action applies configuration changes to the feed at a time that you specify, in the same way as an UpdateFeed request.
Elemental Inference validates the targets of the action when you create it.
Parameters:
-
id(FeedId) –Specifies the ID of the feed that you want to add the schedule action to.
-
action_name(ResourceName) –A name for the schedule action. The name must be unique within the feed. You can reuse the name of an action that you deleted.
-
start_configuration(ScheduleActionStartConfiguration) –Specifies when the action runs.
-
operations(ScheduleActionOperations) –Specifies the list of configuration changes that you want to make to the feed. Elemental Inference applies all the operations in an action together, in the order that you specify them. If any operation fails, Elemental Inference doesn't apply any of them.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be completed due to a conflict.
-
InternalServerErrorException–An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
-
ResourceNotFoundException–The resource specified in the action doesn't exist.
-
ServiceQuotaExceededException–The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.
-
TooManyRequestException–The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
-
ValidationException–The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
-
UnknownServiceError–The service returned an error code this client does not model.