Struct aws_sdk_devicefarm::input::ScheduleRunInput
source · #[non_exhaustive]pub struct ScheduleRunInput { /* private fields */ }Expand description
Represents a request to the schedule run operation.
Implementations§
source§impl ScheduleRunInput
impl ScheduleRunInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ScheduleRun, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ScheduleRun, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ScheduleRun>
Examples found in repository?
7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ScheduleRun,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ScheduleRunError>,
> {
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::ScheduleRunOutput,
aws_smithy_http::result::SdkError<crate::error::ScheduleRunError>,
> {
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 ScheduleRunInput.
source§impl ScheduleRunInput
impl ScheduleRunInput
sourcepub fn project_arn(&self) -> Option<&str>
pub fn project_arn(&self) -> Option<&str>
The ARN of the project for the run to be scheduled.
sourcepub fn app_arn(&self) -> Option<&str>
pub fn app_arn(&self) -> Option<&str>
The ARN of an application package to run tests against, created with CreateUpload. See ListUploads.
sourcepub fn device_pool_arn(&self) -> Option<&str>
pub fn device_pool_arn(&self) -> Option<&str>
The ARN of the device pool for the run to be scheduled.
sourcepub fn device_selection_configuration(
&self
) -> Option<&DeviceSelectionConfiguration>
pub fn device_selection_configuration(
&self
) -> Option<&DeviceSelectionConfiguration>
The filter criteria used to dynamically select a set of devices for a test run and the maximum number of devices to be included in the run.
Either devicePoolArn or deviceSelectionConfiguration is required in a request.
sourcepub fn test(&self) -> Option<&ScheduleRunTest>
pub fn test(&self) -> Option<&ScheduleRunTest>
Information about the test for the run to be scheduled.
sourcepub fn configuration(&self) -> Option<&ScheduleRunConfiguration>
pub fn configuration(&self) -> Option<&ScheduleRunConfiguration>
Information about the settings for the run to be scheduled.
sourcepub fn execution_configuration(&self) -> Option<&ExecutionConfiguration>
pub fn execution_configuration(&self) -> Option<&ExecutionConfiguration>
Specifies configuration information about a test run, such as the execution timeout (in minutes).
Trait Implementations§
source§impl Clone for ScheduleRunInput
impl Clone for ScheduleRunInput
source§fn clone(&self) -> ScheduleRunInput
fn clone(&self) -> ScheduleRunInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more