Skip to main content

instance_profiles

Creates, updates, deletes, gets or lists an instance_profiles resource.

Overview

Nameinstance_profiles
TypeResource
Idaws.devicefarm.instance_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the instance profile.
arnstringThe Amazon Resource Name (ARN) of the instance profile. (pattern: <code>^arn:aws:devicefarm:.+</code>)
descriptionstringThe description of the instance profile.
exclude_app_packages_from_cleanuparrayAn array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes. The list of packages is considered only if you set packageCleanup to true.
package_cleanupbooleanWhen set to true, Device Farm removes app packages after a test run. The default value is false for private devices.
reboot_after_usebooleanWhen set to true, Device Farm reboots the instance after a test run. The default value is true.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_instance_profileselectregionReturns information about the specified instance profile.
list_instance_profilesselectregionReturns information about all the instance profiles in an AWS account.
create_instance_profileinsertregion, nameCreates a profile that can be applied to one or more private fleet device instances.
update_instance_profileupdateregion, arnUpdates information about an existing private device instance profile.
delete_instance_profiledeleteregionDeletes a profile that can be applied to one or more private device instances.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about the specified instance profile.

SELECT
name,
arn,
description,
exclude_app_packages_from_cleanup,
package_cleanup,
reboot_after_use
FROM aws.devicefarm.instance_profiles
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a profile that can be applied to one or more private fleet device instances.

INSERT INTO aws.devicefarm.instance_profiles (
name,
description,
packageCleanup,
excludeAppPackagesFromCleanup,
rebootAfterUse,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
{{ packageCleanup }},
'{{ excludeAppPackagesFromCleanup }}',
{{ rebootAfterUse }},
'{{ region }}'
RETURNING
instance_profile
;

UPDATE examples

Updates information about an existing private device instance profile.

UPDATE aws.devicefarm.instance_profiles
SET
arn = '{{ arn }}',
name = '{{ name }}',
description = '{{ description }}',
packageCleanup = {{ packageCleanup }},
excludeAppPackagesFromCleanup = '{{ excludeAppPackagesFromCleanup }}',
rebootAfterUse = {{ rebootAfterUse }}
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required
RETURNING
instance_profile;

DELETE examples

Deletes a profile that can be applied to one or more private device instances.

DELETE FROM aws.devicefarm.instance_profiles
WHERE region = '{{ region }}' --required
;