describe_metadata_model_children
async
¶
describe_metadata_model_children(
selection_rules: String,
migration_project_identifier: MigrationProjectIdentifier,
origin: OriginTypeValue,
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
marker: Optional[String] = None,
max_records: Optional[IntegerOptional] = None,
) -> DescribeMetadataModelChildrenResponse
Gets a list of child metadata models for the specified metadata model in the database hierarchy.
Required permissions: dms:DescribeMetadataModelChildren. For more information, see Actions, resources, and condition keys for Database Migration Service.
Parameters:
-
selection_rules(String) –A JSON string that identifies the metadata model whose children to retrieve. For the selection rule format and examples, see Selection rules in DMS Schema Conversion.
Usage:
-
Accepts source or target selection rules depending on the
Originparameter. Theserver-namein the object locator must match the corresponding data provider. -
Supports only
explicitrule actions. -
Exactly one rule is allowed.
-
-
migration_project_identifier(MigrationProjectIdentifier) –The migration project name or Amazon Resource Name (ARN).
-
origin(OriginTypeValue) –Specifies whether to retrieve metadata from the source or target tree. Valid values: SOURCE | TARGET
-
marker(Optional[String], default:None) –Specifies the unique pagination token that indicates where the next page should start. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
max_records(Optional[IntegerOptional], default:None) –The maximum number of metadata model children to include in the response. If more items exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
ResourceNotFoundFault–The resource could not be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Retrieve children of a schema The following example retrieves the child metadata models of the ExampleSchema schema from the source metadata tree.
>>> await client.describe_metadata_model_children(migration_project_identifier='arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS', selection_rules='{"rules": [{"rule-type": "selection", "rule-id": "1", "rule-name": "1", "object-locator": {"server-name": "example-source-server.us-east-1.rds.amazonaws.com", "schema-name": "ExampleSchema"}, "rule-action": "explicit"}]}', origin='SOURCE')
Source code in docs_src/capo_database_migration_service/_services/async_database_migration_service.py
4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 | |