LookoutforVision / Client / create_project

create_project#

LookoutforVision.Client.create_project(**kwargs)#

Creates an empty Amazon Lookout for Vision project. After you create the project, add a dataset by calling CreateDataset.

This operation requires permissions to perform the lookoutvision:CreateProject operation.

See also: AWS API Documentation

Request Syntax

response = client.create_project(
    ProjectName='string',
    ClientToken='string'
)
Parameters:
  • ProjectName (string) –

    [REQUIRED]

    The name for the project.

  • ClientToken (string) –

    ClientToken is an idempotency token that ensures a call to CreateProject completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from CreateProject. In this case, safely retry your call to CreateProject by using the same ClientToken parameter value.

    If you don’t supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple project creation requests. You’ll need to provide your own value for other use cases.

    An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to CreateProject. An idempotency token is active for 8 hours.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'ProjectMetadata': {
        'ProjectArn': 'string',
        'ProjectName': 'string',
        'CreationTimestamp': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) –

    • ProjectMetadata (dict) –

      Information about the project.

      • ProjectArn (string) –

        The Amazon Resource Name (ARN) of the project.

      • ProjectName (string) –

        The name of the project.

      • CreationTimestamp (datetime) –

        The unix timestamp for the date and time that the project was created.

Exceptions

  • LookoutforVision.Client.exceptions.AccessDeniedException

  • LookoutforVision.Client.exceptions.InternalServerException

  • LookoutforVision.Client.exceptions.ValidationException

  • LookoutforVision.Client.exceptions.ConflictException

  • LookoutforVision.Client.exceptions.ResourceNotFoundException

  • LookoutforVision.Client.exceptions.ThrottlingException

  • LookoutforVision.Client.exceptions.ServiceQuotaExceededException