update_project

Mobile.Client.update_project(**kwargs)

Update an existing project.

See also: AWS API Documentation

Request Syntax

response = client.update_project(
    contents=b'bytes'|file,
    projectId='string'
)
Parameters
  • contents (bytes or seekable file-like object) -- ZIP or YAML file which contains project configuration to be updated. This should be the contents of the file downloaded from the URL provided in an export project operation.
  • projectId (string) --

    [REQUIRED]

    Unique project identifier.

Return type

dict

Returns

Response Syntax

{
    'details': {
        'name': 'string',
        'projectId': 'string',
        'region': 'string',
        'state': 'NORMAL'|'SYNCING'|'IMPORTING',
        'createdDate': datetime(2015, 1, 1),
        'lastUpdatedDate': datetime(2015, 1, 1),
        'consoleUrl': 'string',
        'resources': [
            {
                'type': 'string',
                'name': 'string',
                'arn': 'string',
                'feature': 'string',
                'attributes': {
                    'string': 'string'
                }
            },
        ]
    }
}

Response Structure

  • (dict) --

    Result structure used for requests to updated project configuration.

    • details (dict) --

      Detailed information about the updated AWS Mobile Hub project.

      • name (string) --

        Name of the project.

      • projectId (string) --

        Unique project identifier.

      • region (string) --

        Default region to use for AWS resource creation in the AWS Mobile Hub project.

      • state (string) --

        Synchronization state for a project.

      • createdDate (datetime) --

        Date the project was created.

      • lastUpdatedDate (datetime) --

        Date of the last modification of the project.

      • consoleUrl (string) --

        Website URL for this project in the AWS Mobile Hub console.

      • resources (list) --

        List of AWS resources associated with a project.

        • (dict) --

          Information about an instance of an AWS resource associated with a project.

          • type (string) --

            Simplified name for type of AWS resource (e.g., bucket is an Amazon S3 bucket).

          • name (string) --

            Name of the AWS resource (e.g., for an Amazon S3 bucket this is the name of the bucket).

          • arn (string) --

            AWS resource name which uniquely identifies the resource in AWS systems.

          • feature (string) --

            Identifies which feature in AWS Mobile Hub is associated with this AWS resource.

          • attributes (dict) --

            Key-value attribute pairs.

            • (string) --

              Key part of key-value attribute pairs.

              • (string) --

                Value part of key-value attribute pairs.

Exceptions

  • Mobile.Client.exceptions.InternalFailureException
  • Mobile.Client.exceptions.ServiceUnavailableException
  • Mobile.Client.exceptions.UnauthorizedException
  • Mobile.Client.exceptions.TooManyRequestsException
  • Mobile.Client.exceptions.BadRequestException
  • Mobile.Client.exceptions.NotFoundException
  • Mobile.Client.exceptions.AccountActionRequiredException
  • Mobile.Client.exceptions.LimitExceededException