Skip to main content

schemas

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

Overview​

Nameschemas
TypeResource
Idaws.dms.schemas

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
schemastringThe described schema.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_schemasselectregionReturns information about the schema for the specified endpoint.
refresh_schemasexecregion, EndpointArn, ReplicationInstanceArnPopulates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation.

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 information about the schema for the specified endpoint.

SELECT
schema
FROM aws.dms.schemas
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods​

Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation.

EXEC aws.dms.schemas.refresh_schemas
@region='{{ region }}' --required
@@json=
'{
"EndpointArn": "{{ EndpointArn }}",
"ReplicationInstanceArn": "{{ ReplicationInstanceArn }}"
}'
;