CloudWatchEvidently / Client / create_project

create_project#

CloudWatchEvidently.Client.create_project(**kwargs)#

Creates a project, which is the logical object in Evidently that can contain features, launches, and experiments. Use projects to group similar features together.

To update an existing project, use UpdateProject.

See also: AWS API Documentation

Request Syntax

response = client.create_project(
    appConfigResource={
        'applicationId': 'string',
        'environmentId': 'string'
    },
    dataDelivery={
        'cloudWatchLogs': {
            'logGroup': 'string'
        },
        's3Destination': {
            'bucket': 'string',
            'prefix': 'string'
        }
    },
    description='string',
    name='string',
    tags={
        'string': 'string'
    }
)
Parameters:
  • appConfigResource (dict) –

    Use this parameter if the project will use client-side evaluation powered by AppConfig. Client-side evaluation allows your application to assign variations to user sessions locally instead of by calling the EvaluateFeature operation. This mitigates the latency and availability risks that come with an API call. For more information, see Client-side evaluation - powered by AppConfig.

    This parameter is a structure that contains information about the AppConfig application and environment that will be used as for client-side evaluation.

    To create a project that uses client-side evaluation, you must have the evidently:ExportProjectAsConfiguration permission.

    • applicationId (string) –

      The ID of the AppConfig application to use for client-side evaluation.

    • environmentId (string) –

      The ID of the AppConfig environment to use for client-side evaluation. This must be an environment that is within the application that you specify for applicationId.

  • dataDelivery (dict) –

    A structure that contains information about where Evidently is to store evaluation events for longer term storage, if you choose to do so. If you choose not to store these events, Evidently deletes them after using them to produce metrics and other experiment results that you can view.

    • cloudWatchLogs (dict) –

      If the project stores evaluation events in CloudWatch Logs, this structure stores the log group name.

      • logGroup (string) –

        The name of the log group where the project stores evaluation events.

    • s3Destination (dict) –

      If the project stores evaluation events in an Amazon S3 bucket, this structure stores the bucket name and bucket prefix.

      • bucket (string) –

        The name of the bucket in which Evidently stores evaluation events.

      • prefix (string) –

        The bucket prefix in which Evidently stores evaluation events.

  • description (string) – An optional description of the project.

  • name (string) –

    [REQUIRED]

    The name for the project.

  • tags (dict) –

    Assigns one or more tags (key-value pairs) to the project.

    Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

    Tags don’t have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.

    You can associate as many as 50 tags with a project.

    For more information, see Tagging Amazon Web Services resources.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'project': {
        'activeExperimentCount': 123,
        'activeLaunchCount': 123,
        'appConfigResource': {
            'applicationId': 'string',
            'configurationProfileId': 'string',
            'environmentId': 'string'
        },
        'arn': 'string',
        'createdTime': datetime(2015, 1, 1),
        'dataDelivery': {
            'cloudWatchLogs': {
                'logGroup': 'string'
            },
            's3Destination': {
                'bucket': 'string',
                'prefix': 'string'
            }
        },
        'description': 'string',
        'experimentCount': 123,
        'featureCount': 123,
        'lastUpdatedTime': datetime(2015, 1, 1),
        'launchCount': 123,
        'name': 'string',
        'status': 'AVAILABLE'|'UPDATING',
        'tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • project (dict) –

      A structure that contains information about the created project.

      • activeExperimentCount (integer) –

        The number of ongoing experiments currently in the project.

      • activeLaunchCount (integer) –

        The number of ongoing launches currently in the project.

      • appConfigResource (dict) –

        This structure defines the configuration of how your application integrates with AppConfig to run client-side evaluation.

        • applicationId (string) –

          The ID of the AppConfig application to use for client-side evaluation.

        • configurationProfileId (string) –

          The ID of the AppConfig profile to use for client-side evaluation.

        • environmentId (string) –

          The ID of the AppConfig environment to use for client-side evaluation. This must be an environment that is within the application that you specify for applicationId.

      • arn (string) –

        The name or ARN of the project.

      • createdTime (datetime) –

        The date and time that the project is created.

      • dataDelivery (dict) –

        A structure that contains information about where Evidently is to store evaluation events for longer term storage.

        • cloudWatchLogs (dict) –

          If the project stores evaluation events in CloudWatch Logs, this structure stores the log group name.

          • logGroup (string) –

            The name of the log group where the project stores evaluation events.

        • s3Destination (dict) –

          If the project stores evaluation events in an Amazon S3 bucket, this structure stores the bucket name and bucket prefix.

          • bucket (string) –

            The name of the bucket in which Evidently stores evaluation events.

          • prefix (string) –

            The bucket prefix in which Evidently stores evaluation events.

      • description (string) –

        The user-entered description of the project.

      • experimentCount (integer) –

        The number of experiments currently in the project. This includes all experiments that have been created and not deleted, whether they are ongoing or not.

      • featureCount (integer) –

        The number of features currently in the project.

      • lastUpdatedTime (datetime) –

        The date and time that the project was most recently updated.

      • launchCount (integer) –

        The number of launches currently in the project. This includes all launches that have been created and not deleted, whether they are ongoing or not.

      • name (string) –

        The name of the project.

      • status (string) –

        The current state of the project.

      • tags (dict) –

        The list of tag keys and values associated with this project.

        • (string) –

          • (string) –

Exceptions