DatabaseMigrationService / Client / start_metadata_model_creation

start_metadata_model_creation

DatabaseMigrationService.Client.start_metadata_model_creation(**kwargs)

Creates source metadata model of the given type with the specified properties for schema conversion operations.

Note

This action supports only these directions: from SQL Server to Aurora PostgreSQL, or from SQL Server to RDS for PostgreSQL.

See also: AWS API Documentation

Request Syntax

response = client.start_metadata_model_creation(
    MigrationProjectIdentifier='string',
    SelectionRules='string',
    MetadataModelName='string',
    Properties={
        'StatementProperties': {
            'Definition': 'string'
        }
    }
)
Parameters:
  • MigrationProjectIdentifier (string) –

    [REQUIRED]

    The migration project name or Amazon Resource Name (ARN).

  • SelectionRules (string) –

    [REQUIRED]

    The JSON string that specifies the location where the metadata model will be created. Selection rules must specify a single schema. For more information, see Selection Rules in the DMS User Guide.

  • MetadataModelName (string) –

    [REQUIRED]

    The name of the metadata model.

  • Properties (dict) –

    [REQUIRED]

    The properties of metadata model in JSON format. This object is a Union. Only one member of this object can be specified or returned.

    Note

    This is a Tagged Union structure. Only one of the following top level keys can be set: StatementProperties.

    • StatementProperties (dict) –

      The properties of the statement.

      • Definition (string) – [REQUIRED]

        The SQL text of the statement.

Return type:

dict

Returns:

Response Syntax

{
    'RequestIdentifier': 'string'
}

Response Structure

  • (dict) –

    • RequestIdentifier (string) –

      The identifier for the metadata model creation operation.

Exceptions

  • DatabaseMigrationService.Client.exceptions.ResourceAlreadyExistsFault

  • DatabaseMigrationService.Client.exceptions.ResourceNotFoundFault

  • DatabaseMigrationService.Client.exceptions.ResourceQuotaExceededFault

  • DatabaseMigrationService.Client.exceptions.AccessDeniedFault