---
title: "POST /#X-Amz-Target=DeviceFarm_20150623.CreateInstanceProfile"
method: POST
path: "/#X-Amz-Target=DeviceFarm_20150623.CreateInstanceProfile"
---

# POST /#X-Amz-Target=DeviceFarm_20150623.CreateInstanceProfile

`POST /#X-Amz-Target=DeviceFarm_20150623.CreateInstanceProfile`

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

## Headers

- `X-Amz-Target` 'DeviceFarm_20150623.CreateInstanceProfile', required

## Request body

- CreateInstanceProfileRequest
  - `name` string, required — The name of your instance profile.
  - `description` string — The description of your instance profile.
  - `packageCleanup` boolean — 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.
  - `excludeAppPackagesFromCleanup` String[] — <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>
  - `rebootAfterUse` boolean — When set to <code>true</code>, Device Farm reboots the instance after a test run. The default value is <code>true</code>.

## Response `200`

Success

- CreateInstanceProfileResult
  - `instanceProfile` object — An object that contains information about your instance profile.
    - `arn` string — The Amazon Resource Name (ARN) of the instance profile.
    - `packageCleanup` boolean — 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.
    - `excludeAppPackagesFromCleanup` String[] — <p>An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.</p> <p>The list of packages is considered only if you set <code>packageCleanup</code> to <code>true</code>.</p>
    - `rebootAfterUse` boolean — When set to <code>true</code>, Device Farm reboots the instance after a test run. The default value is <code>true</code>.
    - `name` string — The name of the instance profile.
    - `description` string — The description of the instance profile.

## Other responses

- `480` — ArgumentException
- `481` — NotFoundException
- `482` — LimitExceededException
- `483` — ServiceAccountException

---

[API](https://skmtc.net/aws/apis/devicefarm.md) · [All operations](https://skmtc.net/aws/apis/devicefarm/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/devicefarm/versions/a20834382f29/schema)
