Struct aws_sdk_eventbridge::model::BatchParameters
source · [−]#[non_exhaustive]pub struct BatchParameters {
pub job_definition: Option<String>,
pub job_name: Option<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: Option<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: Option<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
sourceimpl BatchParameters
impl BatchParameters
sourcepub fn job_definition(&self) -> Option<&str>
pub fn job_definition(&self) -> Option<&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) -> Option<&str>
pub fn job_name(&self) -> Option<&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.
sourceimpl BatchParameters
impl BatchParameters
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture BatchParameters
Trait Implementations
sourceimpl Clone for BatchParameters
impl Clone for BatchParameters
sourcefn clone(&self) -> BatchParameters
fn clone(&self) -> BatchParameters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BatchParameters
impl Debug for BatchParameters
sourceimpl PartialEq<BatchParameters> for BatchParameters
impl PartialEq<BatchParameters> for BatchParameters
sourcefn eq(&self, other: &BatchParameters) -> bool
fn eq(&self, other: &BatchParameters) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BatchParameters) -> bool
fn ne(&self, other: &BatchParameters) -> bool
This method tests for !=.
impl StructuralPartialEq for BatchParameters
Auto Trait Implementations
impl RefUnwindSafe for BatchParameters
impl Send for BatchParameters
impl Sync for BatchParameters
impl Unpin for BatchParameters
impl UnwindSafe for BatchParameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more