Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

get_project

get_project(**kwargs)

Gets information about a project.

See also: AWS API Documentation

Request Syntax

response = client.get_project(
    arn='string'
)
Parameters
arn (string) --

[REQUIRED]

The project's ARN.

Return type
dict
Returns
Response Syntax
{
    'project': {
        'arn': 'string',
        'name': 'string',
        'defaultJobTimeoutMinutes': 123,
        'created': datetime(2015, 1, 1),
        'vpcConfig': {
            'securityGroupIds': [
                'string',
            ],
            'subnetIds': [
                'string',
            ],
            'vpcId': 'string'
        }
    }
}

Response Structure

  • (dict) --

    Represents the result of a get project request.

    • project (dict) --

      The project to get information about.

      • arn (string) --

        The project's ARN.

      • name (string) --

        The project's name.

      • defaultJobTimeoutMinutes (integer) --

        The default number of minutes (at the project level) a test run executes before it times out. The default value is 150 minutes.

      • created (datetime) --

        When the project was created.

      • vpcConfig (dict) --

        The VPC security groups and subnets that are attached to a project.

        • securityGroupIds (list) --

          An array of one or more security groups IDs in your Amazon VPC.

          • (string) --
        • subnetIds (list) --

          An array of one or more subnet IDs in your Amazon VPC.

          • (string) --
        • vpcId (string) --

          The ID of the Amazon VPC.

Exceptions

  • DeviceFarm.Client.exceptions.ArgumentException
  • DeviceFarm.Client.exceptions.NotFoundException
  • DeviceFarm.Client.exceptions.LimitExceededException
  • DeviceFarm.Client.exceptions.ServiceAccountException

Examples

The following example gets information about a specific project.

response = client.get_project(
    # You can get the project ARN by using the list-projects CLI command.
    arn='arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE',
)

print(response)

Expected Output:

{
    'project': {
        'name': 'My Project',
        'arn': 'arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE',
        'created': datetime(2016, 8, 31, 16, 28, 59, 2, 244, 0),
    },
    'ResponseMetadata': {
        '...': '...',
    },
}