Struct aws_sdk_eventbridge::types::BatchParameters
source · #[non_exhaustive]pub struct BatchParameters {
pub job_definition: String,
pub job_name: String,
pub array_properties: Option<BatchArrayProperties>,
pub retry_strategy: Option<BatchRetryStrategy>,
}
Expand description
The custom parameters to be used when the target is an Batch job.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.job_definition: String
The ARN or name of the job definition to use if the event target is an Batch job. This job definition must already exist.
job_name: String
The name to use for this execution of the job, if the target is an Batch job.
array_properties: Option<BatchArrayProperties>
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.
retry_strategy: Option<BatchRetryStrategy>
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.
Implementations§
source§impl BatchParameters
impl BatchParameters
sourcepub fn job_definition(&self) -> &str
pub fn job_definition(&self) -> &str
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) -> &str
pub fn job_name(&self) -> &str
The name to use for this execution of the job, if the target is an Batch job.
sourcepub fn array_properties(&self) -> Option<&BatchArrayProperties>
pub fn array_properties(&self) -> Option<&BatchArrayProperties>
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) -> Option<&BatchRetryStrategy>
pub fn retry_strategy(&self) -> Option<&BatchRetryStrategy>
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.
source§impl BatchParameters
impl BatchParameters
sourcepub fn builder() -> BatchParametersBuilder
pub fn builder() -> BatchParametersBuilder
Creates a new builder-style object to manufacture BatchParameters
.
Trait Implementations§
source§impl Clone for BatchParameters
impl Clone for BatchParameters
source§fn clone(&self) -> BatchParameters
fn clone(&self) -> BatchParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BatchParameters
impl Debug for BatchParameters
source§impl PartialEq for BatchParameters
impl PartialEq for BatchParameters
source§fn eq(&self, other: &BatchParameters) -> bool
fn eq(&self, other: &BatchParameters) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BatchParameters
Auto Trait Implementations§
impl Freeze for BatchParameters
impl RefUnwindSafe for BatchParameters
impl Send for BatchParameters
impl Sync for BatchParameters
impl Unpin for BatchParameters
impl UnwindSafe for BatchParameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more