Skip to main content

data_providers

Creates, updates, deletes or gets a data_provider resource or lists data_providers in a region

Overview

Namedata_providers
TypeResource
DescriptionResource schema for AWS::DMS::DataProvider
Idawscc.dms.data_providers

Fields

NameDatatypeDescription
data_provider_namestringThe property describes a name to identify the data provider.
data_provider_identifierstringThe property describes an identifier for the data provider. It is used for describing/deleting/modifying can be name/arn
data_provider_arnstringThe data provider ARN.
data_provider_creation_timestringThe data provider creation time.
descriptionstringThe optional description of the data provider.
enginestringThe property describes a data engine for the data provider.
exact_settingsbooleanThe property describes the exact settings which can be modified
settingsobjectThe property identifies the exact type of settings for the data provider.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::DMS::DataProvider.

Methods

NameResourceAccessible byRequired Params
create_resourcedata_providersINSERTEngine, region
delete_resourcedata_providersDELETEIdentifier, region
update_resourcedata_providersUPDATEIdentifier, PatchDocument, region
list_resourcesdata_providers_list_onlySELECTregion
get_resourcedata_providersSELECTIdentifier, region

SELECT examples

Gets all properties from an individual data_provider.

SELECT
region,
data_provider_name,
data_provider_identifier,
data_provider_arn,
data_provider_creation_time,
description,
engine,
exact_settings,
settings,
tags
FROM awscc.dms.data_providers
WHERE
region = '{{ region }}' AND
Identifier = '{{ data_provider_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new data_provider resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.dms.data_providers (
Engine,
region
)
SELECT
'{{ engine }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a data_provider resource, using stack-deploy.

/*+ update */
UPDATE awscc.dms.data_providers
SET PatchDocument = string('{{ {
"DataProviderName": data_provider_name,
"DataProviderIdentifier": data_provider_identifier,
"Description": description,
"Engine": engine,
"ExactSettings": exact_settings,
"Settings": settings,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ data_provider_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.dms.data_providers
WHERE
Identifier = '{{ data_provider_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the data_providers resource, the following permissions are required:

dms:CreateDataProvider,
dms:ListDataProviders,
dms:DescribeDataProviders,
dms:AddTagsToResource,
dms:ListTagsForResource,
iam:GetRole,
iam:PassRole