DeviceFarm / Client / update_instance_profile

update_instance_profile#

DeviceFarm.Client.update_instance_profile(**kwargs)#

Updates information about an existing private device instance profile.

See also: AWS API Documentation

Request Syntax

response = client.update_instance_profile(
    arn='string',
    name='string',
    description='string',
    packageCleanup=True|False,
    excludeAppPackagesFromCleanup=[
        'string',
    ],
    rebootAfterUse=True|False
)
Parameters:
  • arn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the instance profile.

  • name (string) – The updated name for your instance profile.

  • description (string) – The updated description for your instance profile.

  • packageCleanup (boolean) – The updated choice for whether you want to specify package cleanup. The default value is false for private devices.

  • excludeAppPackagesFromCleanup (list) –

    An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run is over.

    The list of packages is only considered if you set packageCleanup to true.

    • (string) –

  • rebootAfterUse (boolean) – The updated choice for whether you want to reboot the device after use. The default value is true.

Return type:

dict

Returns:

Response Syntax

{
    'instanceProfile': {
        'arn': 'string',
        'packageCleanup': True|False,
        'excludeAppPackagesFromCleanup': [
            'string',
        ],
        'rebootAfterUse': True|False,
        'name': 'string',
        'description': 'string'
    }
}

Response Structure

  • (dict) –

    • instanceProfile (dict) –

      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 true, Device Farm removes app packages after a test run. The default value is false for private devices.

      • excludeAppPackagesFromCleanup (list) –

        An 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.

        • (string) –

      • rebootAfterUse (boolean) –

        When set to true, Device Farm reboots the instance after a test run. The default value is true.

      • name (string) –

        The name of the instance profile.

      • description (string) –

        The description of the instance profile.

Exceptions

  • DeviceFarm.Client.exceptions.ArgumentException

  • DeviceFarm.Client.exceptions.NotFoundException

  • DeviceFarm.Client.exceptions.LimitExceededException

  • DeviceFarm.Client.exceptions.ServiceAccountException