#[non_exhaustive]pub struct JobExecutionSettingsBuilder { /* private fields */ }
Expand description
A builder for JobExecutionSettings
.
Implementations§
source§impl JobExecutionSettingsBuilder
impl JobExecutionSettingsBuilder
sourcepub fn allow_deferred_execution(self, input: bool) -> Self
pub fn allow_deferred_execution(self, input: bool) -> Self
Makes it possible to enable job queuing when your concurrent request limit is exceeded. When AllowDeferredExecution
is set to true
, transcription job requests are placed in a queue until the number of jobs falls below the concurrent request limit. If AllowDeferredExecution
is set to false
and the number of transcription job requests exceed the concurrent request limit, you get a LimitExceededException
error.
If you include AllowDeferredExecution
in your request, you must also include DataAccessRoleArn
.
sourcepub fn set_allow_deferred_execution(self, input: Option<bool>) -> Self
pub fn set_allow_deferred_execution(self, input: Option<bool>) -> Self
Makes it possible to enable job queuing when your concurrent request limit is exceeded. When AllowDeferredExecution
is set to true
, transcription job requests are placed in a queue until the number of jobs falls below the concurrent request limit. If AllowDeferredExecution
is set to false
and the number of transcription job requests exceed the concurrent request limit, you get a LimitExceededException
error.
If you include AllowDeferredExecution
in your request, you must also include DataAccessRoleArn
.
sourcepub fn get_allow_deferred_execution(&self) -> &Option<bool>
pub fn get_allow_deferred_execution(&self) -> &Option<bool>
Makes it possible to enable job queuing when your concurrent request limit is exceeded. When AllowDeferredExecution
is set to true
, transcription job requests are placed in a queue until the number of jobs falls below the concurrent request limit. If AllowDeferredExecution
is set to false
and the number of transcription job requests exceed the concurrent request limit, you get a LimitExceededException
error.
If you include AllowDeferredExecution
in your request, you must also include DataAccessRoleArn
.
sourcepub fn data_access_role_arn(self, input: impl Into<String>) -> Self
pub fn data_access_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input files. If the role that you specify doesn’t have the appropriate permissions to access the specified Amazon S3 location, your request fails.
IAM role ARNs have the format arn:partition:iam::account:role/role-name-with-path
. For example: arn:aws:iam::111122223333:role/Admin
. For more information, see IAM ARNs.
Note that if you include DataAccessRoleArn
in your request, you must also include AllowDeferredExecution
.
sourcepub fn set_data_access_role_arn(self, input: Option<String>) -> Self
pub fn set_data_access_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input files. If the role that you specify doesn’t have the appropriate permissions to access the specified Amazon S3 location, your request fails.
IAM role ARNs have the format arn:partition:iam::account:role/role-name-with-path
. For example: arn:aws:iam::111122223333:role/Admin
. For more information, see IAM ARNs.
Note that if you include DataAccessRoleArn
in your request, you must also include AllowDeferredExecution
.
sourcepub fn get_data_access_role_arn(&self) -> &Option<String>
pub fn get_data_access_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input files. If the role that you specify doesn’t have the appropriate permissions to access the specified Amazon S3 location, your request fails.
IAM role ARNs have the format arn:partition:iam::account:role/role-name-with-path
. For example: arn:aws:iam::111122223333:role/Admin
. For more information, see IAM ARNs.
Note that if you include DataAccessRoleArn
in your request, you must also include AllowDeferredExecution
.
sourcepub fn build(self) -> JobExecutionSettings
pub fn build(self) -> JobExecutionSettings
Consumes the builder and constructs a JobExecutionSettings
.
Trait Implementations§
source§impl Clone for JobExecutionSettingsBuilder
impl Clone for JobExecutionSettingsBuilder
source§fn clone(&self) -> JobExecutionSettingsBuilder
fn clone(&self) -> JobExecutionSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JobExecutionSettingsBuilder
impl Debug for JobExecutionSettingsBuilder
source§impl Default for JobExecutionSettingsBuilder
impl Default for JobExecutionSettingsBuilder
source§fn default() -> JobExecutionSettingsBuilder
fn default() -> JobExecutionSettingsBuilder
source§impl PartialEq for JobExecutionSettingsBuilder
impl PartialEq for JobExecutionSettingsBuilder
source§fn eq(&self, other: &JobExecutionSettingsBuilder) -> bool
fn eq(&self, other: &JobExecutionSettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.