create_data_provider
¶
create_data_provider(
engine: String,
settings: DataProviderSettings,
*,
config_overrides: Optional[DatabaseMigrationServiceClientConfig] = None,
data_provider_name: Optional[String] = None,
description: Optional[String] = None,
virtual: Optional[BooleanOptional] = None,
tags: Optional[TagList] = None,
) -> CreateDataProviderResponse
Creates a data provider using the provided settings. A data provider stores a data store type and location information about your database.
Required permissions: dms:CreateDataProvider. For more information, see Actions, resources, and condition keys for Database Migration Service.
Parameters:
-
data_provider_name(Optional[String], default:None) –A user-friendly name for the data provider.
-
description(Optional[String], default:None) –A user-friendly description of the data provider.
-
engine(String) –The type of database engine for the data provider.
Valid values:
aurora,aurora-postgresql,db2,db2-zos,docdb,mariadb,mongodb,mysql,oracle,postgres,redshift,sqlserver, andsybase. A value ofaurorarepresents Amazon Aurora MySQL-Compatible Edition. -
virtual(Optional[BooleanOptional], default:None) –Indicates whether the data provider is virtual.
-
settings(DataProviderSettings) –The settings in JSON format for a data provider.
-
tags(Optional[TagList], default:None) –One or more tags to be assigned to the data provider.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
FailedDependencyFault–A dependency threw an exception.
-
ResourceAlreadyExistsFault–The resource you are attempting to create already exists.
-
ResourceQuotaExceededFault–The quota for this resource quota has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Create a Microsoft SQL Server data provider The following example creates a Microsoft SQL Server data provider.
>>> client.create_data_provider(data_provider_name='example-data-provider', engine='sqlserver', description='Example data provider for documentation', settings={'MicrosoftSqlServerSettings': {'ServerName': 'example-source-server.us-east-1.rds.amazonaws.com', 'Port': 1433, 'DatabaseName': 'ExampleDatabase', 'SslMode': 'verify-full', 'CertificateArn': 'arn:aws:dms:us-east-1:111122223333:cert:EXAMPLEABCDEFGHIJKLMNOPQRS'}})
Source code in docs_src/capo_database_migration_service/_services/database_migration_service.py
875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 | |