aws_sdk_devicefarm/client/create_instance_profile.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateInstanceProfile`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::set_name):<br>required: **true**<br><p>The name of your instance profile.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::set_description):<br>required: **false**<br><p>The description of your instance profile.</p><br>
/// - [`package_cleanup(bool)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::package_cleanup) / [`set_package_cleanup(Option<bool>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::set_package_cleanup):<br>required: **false**<br><p>When set to <code>true</code>, Device Farm removes app packages after a test run. The default value is <code>false</code> for private devices.</p><br>
/// - [`exclude_app_packages_from_cleanup(impl Into<String>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::exclude_app_packages_from_cleanup) / [`set_exclude_app_packages_from_cleanup(Option<Vec::<String>>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::set_exclude_app_packages_from_cleanup):<br>required: **false**<br><p>An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.</p> <p>The list of packages is considered only if you set <code>packageCleanup</code> to <code>true</code>.</p><br>
/// - [`reboot_after_use(bool)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::reboot_after_use) / [`set_reboot_after_use(Option<bool>)`](crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::set_reboot_after_use):<br>required: **false**<br><p>When set to <code>true</code>, Device Farm reboots the instance after a test run. The default value is <code>true</code>.</p><br>
/// - On success, responds with [`CreateInstanceProfileOutput`](crate::operation::create_instance_profile::CreateInstanceProfileOutput) with field(s):
/// - [`instance_profile(Option<InstanceProfile>)`](crate::operation::create_instance_profile::CreateInstanceProfileOutput::instance_profile): <p>An object that contains information about your instance profile.</p>
/// - On failure, responds with [`SdkError<CreateInstanceProfileError>`](crate::operation::create_instance_profile::CreateInstanceProfileError)
pub fn create_instance_profile(&self) -> crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder {
crate::operation::create_instance_profile::builders::CreateInstanceProfileFluentBuilder::new(self.handle.clone())
}
}