Struct aws_sdk_eventbridge::model::batch_parameters::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for BatchParameters.
Implementations§
source§impl Builder
impl Builder
sourcepub fn job_definition(self, input: impl Into<String>) -> Self
pub fn job_definition(self, input: impl Into<String>) -> Self
The ARN or name of the job definition to use if the event target is an Batch job. This job definition must already exist.
sourcepub fn set_job_definition(self, input: Option<String>) -> Self
pub fn set_job_definition(self, input: Option<String>) -> Self
The ARN or name of the job definition to use if the event target is an Batch job. This job definition must already exist.
sourcepub fn job_name(self, input: impl Into<String>) -> Self
pub fn job_name(self, input: impl Into<String>) -> Self
The name to use for this execution of the job, if the target is an Batch job.
sourcepub fn set_job_name(self, input: Option<String>) -> Self
pub fn set_job_name(self, input: Option<String>) -> Self
The name to use for this execution of the job, if the target is an Batch job.
sourcepub fn array_properties(self, input: BatchArrayProperties) -> Self
pub fn array_properties(self, input: BatchArrayProperties) -> Self
The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an Batch job.
sourcepub fn set_array_properties(self, input: Option<BatchArrayProperties>) -> Self
pub fn set_array_properties(self, input: Option<BatchArrayProperties>) -> Self
The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an Batch job.
sourcepub fn retry_strategy(self, input: BatchRetryStrategy) -> Self
pub fn retry_strategy(self, input: BatchRetryStrategy) -> Self
The retry strategy to use for failed jobs, if the target is an Batch job. The retry strategy is the number of times to retry the failed job execution. Valid values are 1–10. When you specify a retry strategy here, it overrides the retry strategy defined in the job definition.
sourcepub fn set_retry_strategy(self, input: Option<BatchRetryStrategy>) -> Self
pub fn set_retry_strategy(self, input: Option<BatchRetryStrategy>) -> Self
The retry strategy to use for failed jobs, if the target is an Batch job. The retry strategy is the number of times to retry the failed job execution. Valid values are 1–10. When you specify a retry strategy here, it overrides the retry strategy defined in the job definition.
sourcepub fn build(self) -> BatchParameters
pub fn build(self) -> BatchParameters
Consumes the builder and constructs a BatchParameters.