create_instance_profile
async
¶
create_instance_profile(
name: Name,
*,
config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
description: Optional[Message] = None,
package_cleanup: Optional[Boolean] = None,
exclude_app_packages_from_cleanup: Optional[PackageIds] = None,
reboot_after_use: Optional[Boolean] = None,
) -> CreateInstanceProfileResult
Creates a profile that can be applied to one or more private fleet device instances.
Parameters:
-
name(Name) –The name of your instance profile.
-
description(Optional[Message], default:None) –The description of your instance profile.
-
package_cleanup(Optional[Boolean], default:None) –When set to
true, Device Farm removes app packages after a test run. The default value isfalsefor private devices. -
exclude_app_packages_from_cleanup(Optional[PackageIds], default:None) –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
packageCleanuptotrue. -
reboot_after_use(Optional[Boolean], default:None) –When set to
true, Device Farm reboots the instance after a test run. The default value istrue.
Raises:
-
ArgumentException–An invalid argument was specified.
-
LimitExceededException–A limit was exceeded.
-
NotFoundException–The specified entity was not found.
-
ServiceAccountException–There was a problem with the service account.
-
UnknownServiceError–The service returned an error code this client does not model.