#[non_exhaustive]pub struct CreateBatchInferenceJobInput { /* private fields */ }
Implementations§
source§impl CreateBatchInferenceJobInput
impl CreateBatchInferenceJobInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateBatchInferenceJob, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateBatchInferenceJob, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateBatchInferenceJob
>
Examples found in repository?
844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateBatchInferenceJob,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateBatchInferenceJobError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateBatchInferenceJobOutput,
aws_smithy_http::result::SdkError<crate::error::CreateBatchInferenceJobError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateBatchInferenceJobInput
.
source§impl CreateBatchInferenceJobInput
impl CreateBatchInferenceJobInput
sourcepub fn solution_version_arn(&self) -> Option<&str>
pub fn solution_version_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the solution version that will be used to generate the batch inference recommendations.
sourcepub fn filter_arn(&self) -> Option<&str>
pub fn filter_arn(&self) -> Option<&str>
The ARN of the filter to apply to the batch inference job. For more information on using filters, see Filtering batch recommendations.
sourcepub fn num_results(&self) -> Option<i32>
pub fn num_results(&self) -> Option<i32>
The number of recommendations to retrieve.
sourcepub fn job_input(&self) -> Option<&BatchInferenceJobInput>
pub fn job_input(&self) -> Option<&BatchInferenceJobInput>
The Amazon S3 path that leads to the input file to base your recommendations on. The input material must be in JSON format.
sourcepub fn job_output(&self) -> Option<&BatchInferenceJobOutput>
pub fn job_output(&self) -> Option<&BatchInferenceJobOutput>
The path to the Amazon S3 bucket where the job's output will be stored.
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The ARN of the Amazon Identity and Access Management role that has permissions to read and write to your input and output Amazon S3 buckets respectively.
sourcepub fn batch_inference_job_config(&self) -> Option<&BatchInferenceJobConfig>
pub fn batch_inference_job_config(&self) -> Option<&BatchInferenceJobConfig>
The configuration details of a batch inference job.
A list of tags to apply to the batch inference job.
Trait Implementations§
source§impl Clone for CreateBatchInferenceJobInput
impl Clone for CreateBatchInferenceJobInput
source§fn clone(&self) -> CreateBatchInferenceJobInput
fn clone(&self) -> CreateBatchInferenceJobInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more