Struct aws_sdk_redshift::types::builders::ScheduledActionBuilder
source · #[non_exhaustive]pub struct ScheduledActionBuilder { /* private fields */ }
Expand description
A builder for ScheduledAction
.
Implementations§
source§impl ScheduledActionBuilder
impl ScheduledActionBuilder
sourcepub fn scheduled_action_name(self, input: impl Into<String>) -> Self
pub fn scheduled_action_name(self, input: impl Into<String>) -> Self
The name of the scheduled action.
sourcepub fn set_scheduled_action_name(self, input: Option<String>) -> Self
pub fn set_scheduled_action_name(self, input: Option<String>) -> Self
The name of the scheduled action.
sourcepub fn get_scheduled_action_name(&self) -> &Option<String>
pub fn get_scheduled_action_name(&self) -> &Option<String>
The name of the scheduled action.
sourcepub fn target_action(self, input: ScheduledActionType) -> Self
pub fn target_action(self, input: ScheduledActionType) -> Self
A JSON format string of the Amazon Redshift API operation with input parameters.
"{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}
".
sourcepub fn set_target_action(self, input: Option<ScheduledActionType>) -> Self
pub fn set_target_action(self, input: Option<ScheduledActionType>) -> Self
A JSON format string of the Amazon Redshift API operation with input parameters.
"{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}
".
sourcepub fn get_target_action(&self) -> &Option<ScheduledActionType>
pub fn get_target_action(&self) -> &Option<ScheduledActionType>
A JSON format string of the Amazon Redshift API operation with input parameters.
"{\"ResizeCluster\":{\"NodeType\":\"ds2.8xlarge\",\"ClusterIdentifier\":\"my-test-cluster\",\"NumberOfNodes\":3}}
".
sourcepub fn schedule(self, input: impl Into<String>) -> Self
pub fn schedule(self, input: impl Into<String>) -> Self
The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.
Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)
". For example, "at(2016-03-04T17:27:00)
".
Format of cron expressions is "cron(Minutes Hours Day-of-month Month Day-of-week Year)
". For example, "cron(0 10 ? * MON *)
". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.
sourcepub fn set_schedule(self, input: Option<String>) -> Self
pub fn set_schedule(self, input: Option<String>) -> Self
The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.
Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)
". For example, "at(2016-03-04T17:27:00)
".
Format of cron expressions is "cron(Minutes Hours Day-of-month Month Day-of-week Year)
". For example, "cron(0 10 ? * MON *)
". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.
sourcepub fn get_schedule(&self) -> &Option<String>
pub fn get_schedule(&self) -> &Option<String>
The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.
Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)
". For example, "at(2016-03-04T17:27:00)
".
Format of cron expressions is "cron(Minutes Hours Day-of-month Month Day-of-week Year)
". For example, "cron(0 10 ? * MON *)
". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.
sourcepub fn iam_role(self, input: impl Into<String>) -> Self
pub fn iam_role(self, input: impl Into<String>) -> Self
The IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler (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 Cluster Management Guide.
sourcepub fn set_iam_role(self, input: Option<String>) -> Self
pub fn set_iam_role(self, input: Option<String>) -> Self
The IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler (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 Cluster Management Guide.
sourcepub fn get_iam_role(&self) -> &Option<String>
pub fn get_iam_role(&self) -> &Option<String>
The IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler (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 Cluster Management Guide.
sourcepub fn scheduled_action_description(self, input: impl Into<String>) -> Self
pub fn scheduled_action_description(self, input: impl Into<String>) -> Self
The description of the scheduled action.
sourcepub fn set_scheduled_action_description(self, input: Option<String>) -> Self
pub fn set_scheduled_action_description(self, input: Option<String>) -> Self
The description of the scheduled action.
sourcepub fn get_scheduled_action_description(&self) -> &Option<String>
pub fn get_scheduled_action_description(&self) -> &Option<String>
The description of the scheduled action.
sourcepub fn state(self, input: ScheduledActionState) -> Self
pub fn state(self, input: ScheduledActionState) -> Self
The state of the scheduled action. For example, DISABLED
.
sourcepub fn set_state(self, input: Option<ScheduledActionState>) -> Self
pub fn set_state(self, input: Option<ScheduledActionState>) -> Self
The state of the scheduled action. For example, DISABLED
.
sourcepub fn get_state(&self) -> &Option<ScheduledActionState>
pub fn get_state(&self) -> &Option<ScheduledActionState>
The state of the scheduled action. For example, DISABLED
.
sourcepub fn next_invocations(self, input: DateTime) -> Self
pub fn next_invocations(self, input: DateTime) -> Self
Appends an item to next_invocations
.
To override the contents of this collection use set_next_invocations
.
List of times when the scheduled action will run.
sourcepub fn set_next_invocations(self, input: Option<Vec<DateTime>>) -> Self
pub fn set_next_invocations(self, input: Option<Vec<DateTime>>) -> Self
List of times when the scheduled action will run.
sourcepub fn get_next_invocations(&self) -> &Option<Vec<DateTime>>
pub fn get_next_invocations(&self) -> &Option<Vec<DateTime>>
List of times when the scheduled action will run.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The start time in UTC when the schedule is active. Before this time, the scheduled action does not trigger.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The start time in UTC when the schedule is active. Before this time, the scheduled action does not trigger.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The start time in UTC when the schedule is active. Before this time, the scheduled action does not trigger.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not trigger.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not trigger.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not trigger.
sourcepub fn build(self) -> ScheduledAction
pub fn build(self) -> ScheduledAction
Consumes the builder and constructs a ScheduledAction
.
Trait Implementations§
source§impl Clone for ScheduledActionBuilder
impl Clone for ScheduledActionBuilder
source§fn clone(&self) -> ScheduledActionBuilder
fn clone(&self) -> ScheduledActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScheduledActionBuilder
impl Debug for ScheduledActionBuilder
source§impl Default for ScheduledActionBuilder
impl Default for ScheduledActionBuilder
source§fn default() -> ScheduledActionBuilder
fn default() -> ScheduledActionBuilder
source§impl PartialEq for ScheduledActionBuilder
impl PartialEq for ScheduledActionBuilder
source§fn eq(&self, other: &ScheduledActionBuilder) -> bool
fn eq(&self, other: &ScheduledActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.