update_scheduled_action
async
¶
update_scheduled_action(
scheduled_action_name: ScheduledActionName,
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
target_action: Optional[TargetAction] = None,
schedule: Optional[Schedule] = None,
role_arn: Optional[IamRoleArn] = None,
enabled: Optional[bool] = None,
scheduled_action_description: Optional[str] = None,
start_time: Optional[datetime] = None,
end_time: Optional[datetime] = None,
) -> UpdateScheduledActionResponse
Updates a scheduled action.
Parameters:
-
scheduled_action_name(ScheduledActionName) –The name of the scheduled action to update to.
-
schedule(Optional[Schedule], default:None) –The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour. Times are in UTC.
-
Format of at timestamp is
yyyy-mm-ddThh:mm:ss. For example,2016-03-04T17:27:00. -
Format of cron expression is
(Minutes Hours Day-of-month Month Day-of-week Year). For example,"(0 10 ? * MON *)". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.
-
-
role_arn(Optional[IamRoleArn], default:None) –The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler to schedule creating snapshots (Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Management Guide
-
enabled(Optional[bool], default:None) –Specifies whether to enable the scheduled action.
-
scheduled_action_description(Optional[str], default:None) –The descripion of the scheduled action to update to.
-
start_time(Optional[datetime], default:None) –The start time in UTC of the scheduled action to update to.
-
end_time(Optional[datetime], default:None) –The end time in UTC of the scheduled action to update.
Raises:
-
ConflictException–The submitted action has conflicts.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ValidationException–The input failed to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift_serverless/_services/async_redshift_serverless.py
3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 | |