#[non_exhaustive]pub struct CreateInstanceProfileInput { /* private fields */ }Implementations§
source§impl CreateInstanceProfileInput
impl CreateInstanceProfileInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateInstanceProfile, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateInstanceProfile, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateInstanceProfile>
Examples found in repository?
src/client.rs (line 1206)
1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateInstanceProfile,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateInstanceProfileError>,
> {
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::CreateInstanceProfileOutput,
aws_smithy_http::result::SdkError<crate::error::CreateInstanceProfileError>,
> {
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 CreateInstanceProfileInput.
source§impl CreateInstanceProfileInput
impl CreateInstanceProfileInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of your instance profile.
sourcepub fn package_cleanup(&self) -> Option<bool>
pub fn package_cleanup(&self) -> Option<bool>
When set to true, Device Farm removes app packages after a test run. The default value is false for private devices.
sourcepub fn exclude_app_packages_from_cleanup(&self) -> Option<&[String]>
pub fn exclude_app_packages_from_cleanup(&self) -> Option<&[String]>
An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.
The list of packages is considered only if you set packageCleanup to true.
sourcepub fn reboot_after_use(&self) -> Option<bool>
pub fn reboot_after_use(&self) -> Option<bool>
When set to true, Device Farm reboots the instance after a test run. The default value is true.
Trait Implementations§
source§impl Clone for CreateInstanceProfileInput
impl Clone for CreateInstanceProfileInput
source§fn clone(&self) -> CreateInstanceProfileInput
fn clone(&self) -> CreateInstanceProfileInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more