Skip to main content

data_providers

Creates, updates, deletes, gets or lists a data_providers resource.

Overview

Namedata_providers
TypeResource
Idaws.dms.data_providers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
data_providersarrayA description of data providers.
markerstringSpecifies the unique pagination token that makes it possible to display the next page of results. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. If Marker is returned by a previous response, there are more results available. The value of Marker is a unique pagination token for each page. To retrieve the next page, make the call again using the returned token and keeping all other arguments unchanged.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_data_providersselectregionReturns a paginated list of data providers for your account in the current region. Required permissions: dms:ListDataProviders. For more information, see Actions, resources, and condition keys for Database Migration Service.
create_data_providerinsertregion, Engine, SettingsCreates 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.
modify_data_providerupdateregion, DataProviderIdentifierModifies the specified data provider using the provided settings. Required permissions: dms:UpdateDataProvider. For more information, see Actions, resources, and condition keys for Database Migration Service. You must remove the data provider from all migration projects before you can modify it.
delete_data_providerdeleteregionDeletes the specified data provider. Required permissions: dms:DeleteDataProvider. For more information, see Actions, resources, and condition keys for Database Migration Service. All migration projects associated with the data provider must be deleted or modified before you can delete the data provider.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a paginated list of data providers for your account in the current region. Required permissions: dms:ListDataProviders. For more information, see Actions, resources, and condition keys for Database Migration Service.

SELECT
data_providers,
marker
FROM aws.dms.data_providers
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.dms.data_providers (
DataProviderName,
Description,
Engine,
Virtual,
Settings,
Tags,
region
)
SELECT
'{{ DataProviderName }}',
'{{ Description }}',
'{{ Engine }}' /* required */,
{{ Virtual }},
'{{ Settings }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
data_provider
;

UPDATE examples

Modifies the specified data provider using the provided settings. Required permissions: dms:UpdateDataProvider. For more information, see Actions, resources, and condition keys for Database Migration Service. You must remove the data provider from all migration projects before you can modify it.

UPDATE aws.dms.data_providers
SET
DataProviderIdentifier = '{{ DataProviderIdentifier }}',
DataProviderName = '{{ DataProviderName }}',
Description = '{{ Description }}',
Engine = '{{ Engine }}',
Virtual = {{ Virtual }},
ExactSettings = {{ ExactSettings }},
Settings = '{{ Settings }}'
WHERE
region = '{{ region }}' --required
AND DataProviderIdentifier = '{{ DataProviderIdentifier }}' --required
RETURNING
data_provider;

DELETE examples

Deletes the specified data provider. Required permissions: dms:DeleteDataProvider. For more information, see Actions, resources, and condition keys for Database Migration Service. All migration projects associated with the data provider must be deleted or modified before you can delete the data provider.

DELETE FROM aws.dms.data_providers
WHERE region = '{{ region }}' --required
;