DatabaseMigrationService / Client / get_target_selection_rules

get_target_selection_rules

DatabaseMigrationService.Client.get_target_selection_rules(**kwargs)

Converts source selection rules into their target counterparts for schema conversion operations.

Required permissions: dms:GetTargetSelectionRules. For more information, see Actions, resources, and condition keys for Database Migration Service.

See also: AWS API Documentation

Request Syntax

response = client.get_target_selection_rules(
    MigrationProjectIdentifier='string',
    SelectionRules='string'
)
Parameters:
  • MigrationProjectIdentifier (string) –

    [REQUIRED]

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

  • SelectionRules (string) –

    [REQUIRED]

    A JSON string that contains the source selection rules to convert into their target counterparts. For the selection rule format and examples, see Selection rules in DMS Schema Conversion.

    Usage:

    • Accepts only source selection rules, where server-name in the object locator matches the source data provider.

    • Supports only explicit rule actions.

    • Does not support category-name in the object locator.

    • Up to 10 rules are allowed.

Return type:

dict

Returns:

Response Syntax

{
    'TargetSelectionRules': 'string'
}

Response Structure

  • (dict) –

    • TargetSelectionRules (string) –

      The JSON string representing the counterpart selection rules in the target.

Exceptions