Class: AWS.DMS
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.DMS
- Identifier:
- dms
- API Version:
- 2016-01-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
AWS Database Migration Service (AWS DMS) can migrate your data to and from the most widely used commercial and open-source databases such as Oracle, PostgreSQL, Microsoft SQL Server, Amazon Redshift, MariaDB, Amazon Aurora, MySQL, and SAP Adaptive Server Enterprise (ASE). The service supports homogeneous migrations such as Oracle to Oracle, as well as heterogeneous migrations between different database platforms, such as Oracle to MySQL or SQL Server to PostgreSQL.
For more information about AWS DMS, see What Is AWS Database Migration Service? in the AWS Database Migration User Guide.
Sending a Request Using DMS
var dms = new AWS.DMS();
dms.addTagsToResource(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the DMS object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var dms = new AWS.DMS({apiVersion: '2016-01-01'});
You can also set the API version globally in AWS.config.apiVersions
using
the dms service identifier:
AWS.config.apiVersions = {
dms: '2016-01-01',
// other service API versions
};
var dms = new AWS.DMS();
Version:
-
2016-01-01
Waiter Resource States
This service supports a list of resource states that can be polled using the waitFor() method. The resource states are:
testConnectionSucceeds, endpointDeleted, replicationInstanceAvailable, replicationInstanceDeleted, replicationTaskReady, replicationTaskStopped, replicationTaskRunning, replicationTaskDeleted
Constructor Summary collapse
-
new AWS.DMS(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
addTagsToResource(params = {}, callback) ⇒ AWS.Request
Adds metadata tags to an AWS DMS resource, including replication instance, endpoint, security group, and migration task.
-
applyPendingMaintenanceAction(params = {}, callback) ⇒ AWS.Request
Applies a pending maintenance action to a resource (for example, to a replication instance).
-
createEndpoint(params = {}, callback) ⇒ AWS.Request
Creates an endpoint using the provided settings.
-
createEventSubscription(params = {}, callback) ⇒ AWS.Request
Creates an AWS DMS event notification subscription.
-
createReplicationInstance(params = {}, callback) ⇒ AWS.Request
Creates the replication instance using the specified parameters.
-
createReplicationSubnetGroup(params = {}, callback) ⇒ AWS.Request
Creates a replication subnet group given a list of the subnet IDs in a VPC.
-
createReplicationTask(params = {}, callback) ⇒ AWS.Request
Creates a replication task using the specified parameters.
-
deleteCertificate(params = {}, callback) ⇒ AWS.Request
Deletes the specified certificate.
-
deleteConnection(params = {}, callback) ⇒ AWS.Request
Deletes the connection between a replication instance and an endpoint.
-
deleteEndpoint(params = {}, callback) ⇒ AWS.Request
Deletes the specified endpoint.
-
deleteEventSubscription(params = {}, callback) ⇒ AWS.Request
Deletes an AWS DMS event subscription.
-
deleteReplicationInstance(params = {}, callback) ⇒ AWS.Request
Deletes the specified replication instance.
-
deleteReplicationSubnetGroup(params = {}, callback) ⇒ AWS.Request
Deletes a subnet group.
-
deleteReplicationTask(params = {}, callback) ⇒ AWS.Request
Deletes the specified replication task.
-
describeAccountAttributes(params = {}, callback) ⇒ AWS.Request
Lists all of the AWS DMS attributes for a customer account.
-
describeCertificates(params = {}, callback) ⇒ AWS.Request
Provides a description of the certificate.
-
describeConnections(params = {}, callback) ⇒ AWS.Request
Describes the status of the connections that have been made between the replication instance and an endpoint.
-
describeEndpoints(params = {}, callback) ⇒ AWS.Request
Returns information about the endpoints for your account in the current region.
-
describeEndpointTypes(params = {}, callback) ⇒ AWS.Request
Returns information about the type of endpoints available.
-
describeEventCategories(params = {}, callback) ⇒ AWS.Request
Lists categories for all event source types, or, if specified, for a specified source type.
-
describeEvents(params = {}, callback) ⇒ AWS.Request
Lists events for a given source identifier and source type.
-
describeEventSubscriptions(params = {}, callback) ⇒ AWS.Request
Lists all the event subscriptions for a customer account.
-
describeOrderableReplicationInstances(params = {}, callback) ⇒ AWS.Request
Returns information about the replication instance types that can be created in the specified region.
-
describePendingMaintenanceActions(params = {}, callback) ⇒ AWS.Request
For internal use only.
-
describeRefreshSchemasStatus(params = {}, callback) ⇒ AWS.Request
Returns the status of the RefreshSchemas operation.
-
describeReplicationInstances(params = {}, callback) ⇒ AWS.Request
Returns information about replication instances for your account in the current region.
-
describeReplicationInstanceTaskLogs(params = {}, callback) ⇒ AWS.Request
Returns information about the task logs for the specified task.
-
describeReplicationSubnetGroups(params = {}, callback) ⇒ AWS.Request
Returns information about the replication subnet groups.
-
describeReplicationTaskAssessmentResults(params = {}, callback) ⇒ AWS.Request
Returns the task assessment results from Amazon S3.
-
describeReplicationTasks(params = {}, callback) ⇒ AWS.Request
Returns information about replication tasks for your account in the current region.
-
describeSchemas(params = {}, callback) ⇒ AWS.Request
Returns information about the schema for the specified endpoint.
-
describeTableStatistics(params = {}, callback) ⇒ AWS.Request
Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted.
-
importCertificate(params = {}, callback) ⇒ AWS.Request
Uploads the specified certificate.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists all tags for an AWS DMS resource.
-
modifyEndpoint(params = {}, callback) ⇒ AWS.Request
Modifies the specified endpoint.
-
modifyEventSubscription(params = {}, callback) ⇒ AWS.Request
Modifies an existing AWS DMS event notification subscription.
-
modifyReplicationInstance(params = {}, callback) ⇒ AWS.Request
Modifies the replication instance to apply new settings.
-
modifyReplicationSubnetGroup(params = {}, callback) ⇒ AWS.Request
Modifies the settings for the specified replication subnet group.
-
modifyReplicationTask(params = {}, callback) ⇒ AWS.Request
Modifies the specified replication task.
-
rebootReplicationInstance(params = {}, callback) ⇒ AWS.Request
Reboots a replication instance.
-
refreshSchemas(params = {}, callback) ⇒ AWS.Request
Populates the schema for the specified endpoint.
-
reloadTables(params = {}, callback) ⇒ AWS.Request
Reloads the target database table with the source data.
-
removeTagsFromResource(params = {}, callback) ⇒ AWS.Request
Removes metadata tags from a DMS resource.
-
startReplicationTask(params = {}, callback) ⇒ AWS.Request
Starts the replication task.
-
startReplicationTaskAssessment(params = {}, callback) ⇒ AWS.Request
Starts the replication task assessment for unsupported data types in the source database.
-
stopReplicationTask(params = {}, callback) ⇒ AWS.Request
Stops the replication task.
-
testConnection(params = {}, callback) ⇒ AWS.Request
Tests the connection between the replication instance and the endpoint.
-
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given DMS resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.DMS(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a DMS object
var dms = new AWS.DMS({apiVersion: '2016-01-01'});
Options Hash (options):
-
params
(map)
—
An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.
-
endpoint
(String)
—
The endpoint URI to send requests to. The default endpoint is built from the configured
region
. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'
. -
accessKeyId
(String)
—
your AWS access key ID.
-
secretAccessKey
(String)
—
your AWS secret access key.
-
sessionToken
(AWS.Credentials)
—
the optional AWS session token to sign requests with.
-
credentials
(AWS.Credentials)
—
the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.
-
credentialProvider
(AWS.CredentialProviderChain)
—
the provider chain used to resolve credentials if no static
credentials
property is set. -
region
(String)
—
the region to send service requests to. See AWS.DMS.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.DMS.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.DMS.maxRedirects for more information.
-
sslEnabled
(Boolean)
—
whether to enable SSL for requests.
-
paramValidation
(Boolean|map)
—
whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
true
. - max [Boolean] — Validates that a value meets the max constraint.
- pattern [Boolean] — Validates that a string value matches a regular expression.
- enum [Boolean] — Validates that a string value matches one of the allowable enum values.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
computeChecksums
(Boolean)
—
whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)
-
convertResponseTypes
(Boolean)
—
whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to
true
. -
correctClockSkew
(Boolean)
—
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to
false
. -
s3ForcePathStyle
(Boolean)
—
whether to force path style URLs for S3 objects.
-
s3BucketEndpoint
(Boolean)
—
whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an
endpoint
to be provided explicitly to the service constructor. -
s3DisableBodySigning
(Boolean)
—
whether S3 body signing should be disabled when using signature version
v4
. Body signing can only be disabled when using https. Defaults totrue
. -
s3UsEast1RegionalEndpoint
('legacy'|'regional')
—
when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to
legacy
-
s3UseArnRegion
(Boolean)
—
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to
true
-
retryDelayOptions
(map)
—
A set of options to configure the retry delay on retryable errors. Currently supported options are:
- base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
- customBackoff [function] — A custom function that accepts a
retry count and error and returns the amount of time to delay in
milliseconds. If the result is a non-zero negative value, no further
retry attempts will be made. The
base
option will be ignored if this option is supplied.
-
httpOptions
(map)
—
A set of options to pass to the low-level HTTP request. Currently supported options are:
- proxy [String] — the URL to proxy requests through
- agent [http.Agent, https.Agent] — the Agent object to perform
HTTP requests with. Used for connection pooling. Defaults to the global
agent (
http.globalAgent
) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment. - connectTimeout [Integer] — Sets the socket to timeout after
failing to establish a connection with the server after
connectTimeout
milliseconds. This timeout has no effect once a socket connection has been established. - timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
- xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
- xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
-
apiVersion
(String, Date)
—
a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by
apiVersions
). Specify 'latest' to use the latest possible version. -
apiVersions
(map<String, String|Date>)
—
a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.
-
logger
(#write, #log)
—
an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests
-
systemClockOffset
(Number)
—
an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global
AWS.config
object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds. -
signatureVersion
(String)
—
the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.
-
signatureCache
(Boolean)
—
whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to
true
. -
dynamoDbCrc32
(Boolean)
—
whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default:
true
. -
useAccelerateEndpoint
(Boolean)
—
Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default:
false
. -
clientSideMonitoring
(Boolean)
—
whether to collect and publish this client's performance metrics of all its API requests.
-
endpointDiscoveryEnabled
(Boolean)
—
whether to enable endpoint discovery for operations that allow optionally using an endpoint returned by the service. Defaults to 'false'
-
endpointCacheSize
(Number)
—
the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000
-
hostPrefixEnabled
(Boolean)
—
whether to marshal request parameters to the prefix of hostname. Defaults to
true
. -
stsRegionalEndpoints
('legacy'|'regional')
—
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.
Property Details
Method Details
addTagsToResource(params = {}, callback) ⇒ AWS.Request
Adds metadata tags to an AWS DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with DMS resources, or used in a Condition statement in an IAM policy for DMS.
Service Reference:
Examples:
Add tags to resource
/* Adds metadata tags to an AWS DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with AWS DMS resources, or used in a Condition statement in an IAM policy for AWS DMS. */
var params = {
ResourceArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E", // Required. Use the ARN of the resource you want to tag.
Tags: [
{
Key: "Acount",
Value: "1633456"
}
]// Required. Use the Key/Value pair format.
};
dms.addTagsToResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
}
*/
});
Calling the addTagsToResource operation
var params = {
ResourceArn: 'STRING_VALUE', /* required */
Tags: [ /* required */
{
Key: 'STRING_VALUE',
Value: 'STRING_VALUE'
},
/* more items */
]
};
dms.addTagsToResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)Identifies the AWS DMS resource to which tags should be added. The value for this parameter is an Amazon Resource Name (ARN).
For AWS DMS, you can tag a replication instance, an endpoint, or a replication task.
Tags
— (Array<map>
)One or more tags to be assigned to the resource.
Key
— (String
)A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").Value
— (String
)A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
applyPendingMaintenanceAction(params = {}, callback) ⇒ AWS.Request
Applies a pending maintenance action to a resource (for example, to a replication instance).
Service Reference:
Examples:
Calling the applyPendingMaintenanceAction operation
var params = {
ApplyAction: 'STRING_VALUE', /* required */
OptInType: 'STRING_VALUE', /* required */
ReplicationInstanceArn: 'STRING_VALUE' /* required */
};
dms.applyPendingMaintenanceAction(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the AWS DMS resource that the pending maintenance action applies to.
ApplyAction
— (String
)The pending maintenance action to apply to this resource.
OptInType
— (String
)A value that specifies the type of opt-in request, or undoes an opt-in request. You can't undo an opt-in request of type
immediate
.Valid values:
-
immediate
- Apply the maintenance action immediately. -
next-maintenance
- Apply the maintenance action during the next maintenance window for the resource. -
undo-opt-in
- Cancel any existingnext-maintenance
opt-in requests.
-
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ResourcePendingMaintenanceActions
— (map
)The AWS DMS resource that the pending maintenance action will be applied to.
ResourceIdentifier
— (String
)The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. For information about creating an ARN, see Constructing an Amazon Resource Name (ARN) for AWS DMS in the DMS documentation.
PendingMaintenanceActionDetails
— (Array<map>
)Detailed information about the pending maintenance action.
Action
— (String
)The type of pending maintenance action that is available for the resource.
AutoAppliedAfterDate
— (Date
)The date of the maintenance window when the action will be applied. The maintenance action will be applied to the resource during its first maintenance window after this date. If this date is specified, any
next-maintenance
opt-in requests are ignored.ForcedApplyDate
— (Date
)The date when the maintenance action will be automatically applied. The maintenance action will be applied to the resource on this date regardless of the maintenance window for the resource. If this date is specified, any
immediate
opt-in requests are ignored.OptInStatus
— (String
)Indicates the type of opt-in request that has been received for the resource.
CurrentApplyDate
— (Date
)The effective date when the pending maintenance action will be applied to the resource. This date takes into account opt-in requests received from the
ApplyPendingMaintenanceAction
API, theAutoAppliedAfterDate
, and theForcedApplyDate
. This value is blank if an opt-in request has not been received and nothing has been specified asAutoAppliedAfterDate
orForcedApplyDate
.Description
— (String
)A description providing more detail about the maintenance action.
-
(AWS.Response)
—
Returns:
createEndpoint(params = {}, callback) ⇒ AWS.Request
Creates an endpoint using the provided settings.
Service Reference:
Examples:
Create endpoint
/* Creates an endpoint using the provided settings. */
var params = {
CertificateArn: "",
DatabaseName: "testdb",
EndpointIdentifier: "test-endpoint-1",
EndpointType: "source",
EngineName: "mysql",
ExtraConnectionAttributes: "",
KmsKeyId: "arn:aws:kms:us-east-1:123456789012:key/4c1731d6-5435-ed4d-be13-d53411a7cfbd",
Password: "pasword",
Port: 3306,
ServerName: "mydb.cx1llnox7iyx.us-west-2.rds.amazonaws.com",
SslMode: "require",
Tags: [
{
Key: "Acount",
Value: "143327655"
}
],
Username: "username"
};
dms.createEndpoint(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Endpoint: {
EndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM",
EndpointIdentifier: "test-endpoint-1",
EndpointType: "source",
EngineName: "mysql",
KmsKeyId: "arn:aws:kms:us-east-1:123456789012:key/4c1731d6-5435-ed4d-be13-d53411a7cfbd",
Port: 3306,
ServerName: "mydb.cx1llnox7iyx.us-west-2.rds.amazonaws.com",
Status: "active",
Username: "username"
}
}
*/
});
Calling the createEndpoint operation
var params = {
EndpointIdentifier: 'STRING_VALUE', /* required */
EndpointType: source | target, /* required */
EngineName: 'STRING_VALUE', /* required */
CertificateArn: 'STRING_VALUE',
DatabaseName: 'STRING_VALUE',
DmsTransferSettings: {
BucketName: 'STRING_VALUE',
ServiceAccessRoleArn: 'STRING_VALUE'
},
DynamoDbSettings: {
ServiceAccessRoleArn: 'STRING_VALUE' /* required */
},
ElasticsearchSettings: {
EndpointUri: 'STRING_VALUE', /* required */
ServiceAccessRoleArn: 'STRING_VALUE', /* required */
ErrorRetryDuration: 'NUMBER_VALUE',
FullLoadErrorPercentage: 'NUMBER_VALUE'
},
ExternalTableDefinition: 'STRING_VALUE',
ExtraConnectionAttributes: 'STRING_VALUE',
KinesisSettings: {
MessageFormat: json,
ServiceAccessRoleArn: 'STRING_VALUE',
StreamArn: 'STRING_VALUE'
},
KmsKeyId: 'STRING_VALUE',
MongoDbSettings: {
AuthMechanism: default | mongodb_cr | scram_sha_1,
AuthSource: 'STRING_VALUE',
AuthType: no | password,
DatabaseName: 'STRING_VALUE',
DocsToInvestigate: 'STRING_VALUE',
ExtractDocId: 'STRING_VALUE',
KmsKeyId: 'STRING_VALUE',
NestingLevel: none | one,
Password: 'STRING_VALUE',
Port: 'NUMBER_VALUE',
ServerName: 'STRING_VALUE',
Username: 'STRING_VALUE'
},
Password: 'STRING_VALUE',
Port: 'NUMBER_VALUE',
RedshiftSettings: {
AcceptAnyDate: true || false,
AfterConnectScript: 'STRING_VALUE',
BucketFolder: 'STRING_VALUE',
BucketName: 'STRING_VALUE',
ConnectionTimeout: 'NUMBER_VALUE',
DatabaseName: 'STRING_VALUE',
DateFormat: 'STRING_VALUE',
EmptyAsNull: true || false,
EncryptionMode: sse-s3 | sse-kms,
FileTransferUploadStreams: 'NUMBER_VALUE',
LoadTimeout: 'NUMBER_VALUE',
MaxFileSize: 'NUMBER_VALUE',
Password: 'STRING_VALUE',
Port: 'NUMBER_VALUE',
RemoveQuotes: true || false,
ReplaceChars: 'STRING_VALUE',
ReplaceInvalidChars: 'STRING_VALUE',
ServerName: 'STRING_VALUE',
ServerSideEncryptionKmsKeyId: 'STRING_VALUE',
ServiceAccessRoleArn: 'STRING_VALUE',
TimeFormat: 'STRING_VALUE',
TrimBlanks: true || false,
TruncateColumns: true || false,
Username: 'STRING_VALUE',
WriteBufferSize: 'NUMBER_VALUE'
},
S3Settings: {
BucketFolder: 'STRING_VALUE',
BucketName: 'STRING_VALUE',
CdcInsertsOnly: true || false,
CompressionType: none | gzip,
CsvDelimiter: 'STRING_VALUE',
CsvRowDelimiter: 'STRING_VALUE',
DataFormat: csv | parquet,
DataPageSize: 'NUMBER_VALUE',
DictPageSizeLimit: 'NUMBER_VALUE',
EnableStatistics: true || false,
EncodingType: plain | plain-dictionary | rle-dictionary,
EncryptionMode: sse-s3 | sse-kms,
ExternalTableDefinition: 'STRING_VALUE',
IncludeOpForFullLoad: true || false,
ParquetTimestampInMillisecond: true || false,
ParquetVersion: parquet-1-0 | parquet-2-0,
RowGroupLength: 'NUMBER_VALUE',
ServerSideEncryptionKmsKeyId: 'STRING_VALUE',
ServiceAccessRoleArn: 'STRING_VALUE',
TimestampColumnName: 'STRING_VALUE'
},
ServerName: 'STRING_VALUE',
ServiceAccessRoleArn: 'STRING_VALUE',
SslMode: none | require | verify-ca | verify-full,
Tags: [
{
Key: 'STRING_VALUE',
Value: 'STRING_VALUE'
},
/* more items */
],
Username: 'STRING_VALUE'
};
dms.createEndpoint(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
EndpointIdentifier
— (String
)The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
EndpointType
— (String
)The type of endpoint. Valid values are
Possible values include:source
andtarget
."source"
"target"
EngineName
— (String
)The type of engine for the endpoint. Valid values, depending on the
EndpointType
value, includemysql
,oracle
,postgres
,mariadb
,aurora
,aurora-postgresql
,redshift
,s3
,db2
,azuredb
,sybase
,dynamodb
,mongodb
, andsqlserver
.Username
— (String
)The user name to be used to log in to the endpoint database.
Password
— (String
)The password to be used to log in to the endpoint database.
ServerName
— (String
)The name of the server where the endpoint database resides.
Port
— (Integer
)The port used by the endpoint database.
DatabaseName
— (String
)The name of the endpoint database.
ExtraConnectionAttributes
— (String
)Additional attributes associated with the connection. Each attribute is specified as a name-value pair associated by an equal sign (=). Multiple attributes are separated by a semicolon (;) with no additional white space. For information on the attributes available for connecting your source or target endpoint, see Working with AWS DMS Endpoints in the AWS Database Migration Service User Guide.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
Tags
— (Array<map>
)One or more tags to be assigned to the endpoint.
Key
— (String
)A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").Value
— (String
)A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").
CertificateArn
— (String
)The Amazon Resource Name (ARN) for the certificate.
SslMode
— (String
)The Secure Sockets Layer (SSL) mode to use for the SSL connection. The default is
Possible values include:none
"none"
"require"
"verify-ca"
"verify-full"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) for the service access role that you want to use to create the endpoint.
ExternalTableDefinition
— (String
)The external table definition.
DynamoDbSettings
— (map
)Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the available settings, see Using Object Mapping to Migrate Data to DynamoDB in the AWS Database Migration Service User Guide.
ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
S3Settings
— (map
)Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see Extra Connection Attributes When Using Amazon S3 as a Target for AWS DMS in the AWS Database Migration Service User Guide.
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
CsvRowDelimiter
— (String
)The delimiter used to separate rows in the source files. The default is a carriage return (
\n
).CsvDelimiter
— (String
)The delimiter used to separate columns in the source files. The default is a comma.
BucketFolder
— (String
)An optional parameter to set a folder name in the S3 bucket. If provided, tables are created in the path
bucketFolder/schema_name/table_name/
. If this parameter is not specified, then the path used isschema_name/table_name/
.BucketName
— (String
)The name of the S3 bucket.
CompressionType
— (String
)An optional parameter to use GZIP to compress the target files. Set to GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed. Applies to both .csv and .parquet file formats.
Possible values include:"none"
"gzip"
EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, you need an AWS Identity and Access Management (IAM) role with permission to allow"arn:aws:s3:::dms-*"
to use the following actions:-
s3:CreateBucket
-
s3:ListBucket
-
s3:DeleteBucket
-
s3:GetBucketLocation
-
s3:GetObject
-
s3:PutObject
-
s3:DeleteObject
-
s3:GetObjectVersion
-
s3:GetBucketPolicy
-
s3:PutBucketPolicy
-
s3:DeleteBucketPolicy
"sse-s3"
"sse-kms"
-
ServerSideEncryptionKmsKeyId
— (String
)If you are using
SSE_KMS
for theEncryptionMode
, provide the AWS KMS key ID. The key that you use needs an attached policy that enables AWS Identity and Access Management (IAM) user permissions and allows use of the key.Here is a CLI example:
aws dms create-endpoint --endpoint-identifier value --endpoint-type target --engine-name s3 --s3-settings ServiceAccessRoleArn=value,BucketFolder=value,BucketName=value,EncryptionMode=SSE_KMS,ServerSideEncryptionKmsKeyId=value
DataFormat
— (String
)The format of the data that you want to use for output. You can choose one of the following:
-
csv
: This is a row-based file format with comma-separated values (.csv). -
parquet
: Apache Parquet (.parquet) is a columnar storage file format that features efficient compression and provides faster query response.
"csv"
"parquet"
-
EncodingType
— (String
)The type of encoding you are using:
-
RLE_DICTIONARY
uses a combination of bit-packing and run-length encoding to store repeated values more efficiently. This is the default. -
PLAIN
doesn't use encoding at all. Values are stored as they are. -
PLAIN_DICTIONARY
builds a dictionary of the values encountered in a given column. The dictionary is stored in a dictionary page for each column chunk.
"plain"
"plain-dictionary"
"rle-dictionary"
-
DictPageSizeLimit
— (Integer
)The maximum size of an encoded dictionary page of a column. If the dictionary page exceeds this, this column is stored using an encoding type of
PLAIN
. This parameter defaults to 1024 * 1024 bytes (1 MiB), the maximum size of a dictionary page before it reverts toPLAIN
encoding. This size is used for .parquet file format only.RowGroupLength
— (Integer
)The number of rows in a row group. A smaller row group size provides faster reads. But as the number of row groups grows, the slower writes become. This parameter defaults to 10,000 rows. This number is used for .parquet file format only.
If you choose a value larger than the maximum,
RowGroupLength
is set to the max row group length in bytes (64 * 1024 * 1024).DataPageSize
— (Integer
)The size of one data page in bytes. This parameter defaults to 1024 * 1024 bytes (1 MiB). This number is used for .parquet file format only.
ParquetVersion
— (String
)The version of the Apache Parquet format that you want to use:
Possible values include:parquet_1_0
(the default) orparquet_2_0
."parquet-1-0"
"parquet-2-0"
EnableStatistics
— (Boolean
)A value that enables statistics for Parquet pages and row groups. Choose
true
to enable statistics,false
to disable. Statistics includeNULL
,DISTINCT
,MAX
, andMIN
values. This parameter defaults totrue
. This value is used for .parquet file format only.IncludeOpForFullLoad
— (Boolean
)A value that enables a full load to write INSERT operations to the comma-separated value (.csv) output files only to indicate how the rows were added to the source database.
Note: AWS DMS supports theIncludeOpForFullLoad
parameter in versions 3.1.4 and later.For full load, records can only be inserted. By default (the
false
setting), no information is recorded in these output files for a full load to indicate that the rows were inserted at the source database. IfIncludeOpForFullLoad
is set totrue
ory
, the INSERT is recorded as an I annotation in the first field of the .csv file. This allows the format of your target records from a full load to be consistent with the target records from a CDC load.Note: This setting works together with theCdcInsertsOnly
parameter for output to .csv files only. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..CdcInsertsOnly
— (Boolean
)A value that enables a change data capture (CDC) load to write only INSERT operations to .csv or columnar storage (.parquet) output files. By default (the
false
setting), the first field in a .csv or .parquet record contains the letter I (INSERT), U (UPDATE), or D (DELETE). These values indicate whether the row was inserted, updated, or deleted at the source database for a CDC load to the target.If
CdcInsertsOnly
is set totrue
ory
, only INSERTs from the source database are migrated to the .csv or .parquet file. For .csv format only, how these INSERTs are recorded depends on the value ofIncludeOpForFullLoad
. IfIncludeOpForFullLoad
is set totrue
, the first field of every CDC record is set to I to indicate the INSERT operation at the source. IfIncludeOpForFullLoad
is set tofalse
, every CDC record is written without a first field to indicate the INSERT operation at the source. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..Note: AWS DMS supports this interaction between theCdcInsertsOnly
andIncludeOpForFullLoad
parameters in versions 3.1.4 and later.TimestampColumnName
— (String
)A value that when nonblank causes AWS DMS to add a column with timestamp information to the endpoint data for an Amazon S3 target.
Note: AWS DMS supports theTimestampColumnName
parameter in versions 3.1.4 and later.DMS includes an additional
STRING
column in the .csv or .parquet object files of your migrated data when you setTimestampColumnName
to a nonblank value.For a full load, each row of this timestamp column contains a timestamp for when the data was transferred from the source to the target by DMS.
For a change data capture (CDC) load, each row of the timestamp column contains the timestamp for the commit of that row in the source database.
The string format for this timestamp column value is
yyyy-MM-dd HH:mm:ss.SSSSSS
. By default, the precision of this value is in microseconds. For a CDC load, the rounding of the precision depends on the commit timestamp supported by DMS for the source database.When the
AddColumnName
parameter is set totrue
, DMS also includes a name for the timestamp column that you set withTimestampColumnName
.ParquetTimestampInMillisecond
— (Boolean
)A value that specifies the precision of any
TIMESTAMP
column values that are written to an Amazon S3 object file in .parquet format.Note: AWS DMS supports theParquetTimestampInMillisecond
parameter in versions 3.1.4 and later.When
ParquetTimestampInMillisecond
is set totrue
ory
, AWS DMS writes allTIMESTAMP
columns in a .parquet formatted file with millisecond precision. Otherwise, DMS writes them with microsecond precision.Currently, Amazon Athena and AWS Glue can handle only millisecond precision for
TIMESTAMP
values. Set this parameter totrue
for S3 endpoint object files that are .parquet formatted only if you plan to query or process the data with Athena or AWS Glue.Note: AWS DMS writes anyTIMESTAMP
column values written to an S3 file in .csv format with microsecond precision. SettingParquetTimestampInMillisecond
has no effect on the string format of the timestamp column value that is inserted by setting theTimestampColumnName
parameter.
DmsTransferSettings
— (map
)The settings in JSON format for the DMS transfer type of source endpoint.
Possible settings include the following:
-
ServiceAccessRoleArn
- The IAM role that has permission to access the Amazon S3 bucket. -
BucketName
- The name of the S3 bucket to use. -
CompressionType
- An optional parameter to use GZIP to compress the target files. To use GZIP, set this value toNONE
(the default). To keep the files uncompressed, don't use this value.
Shorthand syntax for these settings is as follows:
ServiceAccessRoleArn=string,BucketName=string,CompressionType=string
JSON syntax for these settings is as follows:
{ "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" }
ServiceAccessRoleArn
— (String
)The IAM role that has permission to access the Amazon S3 bucket.
BucketName
— (String
)The name of the S3 bucket to use.
-
MongoDbSettings
— (map
)Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the configuration properties section in Using MongoDB as a Target for AWS Database Migration Service in the AWS Database Migration Service User Guide.
Username
— (String
)The user name you use to access the MongoDB source endpoint.
Password
— (String
)The password for the user account you use to access the MongoDB source endpoint.
ServerName
— (String
)The name of the server on the MongoDB source endpoint.
Port
— (Integer
)The port value for the MongoDB source endpoint.
DatabaseName
— (String
)The database name on the MongoDB source endpoint.
AuthType
— (String
)The authentication type you use to access the MongoDB source endpoint.
Valid values: NO, PASSWORD
When NO is selected, user name and password parameters are not used and can be empty.
Possible values include:"no"
"password"
AuthMechanism
— (String
)The authentication mechanism you use to access the MongoDB source endpoint.
Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1
DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This setting is not used when authType=No.
Possible values include:"default"
"mongodb_cr"
"scram_sha_1"
NestingLevel
— (String
)Specifies either document or table mode.
Valid values: NONE, ONE
Default value is NONE. Specify NONE to use document mode. Specify ONE to use table mode.
Possible values include:"none"
"one"
ExtractDocId
— (String
)Specifies the document ID. Use this setting when
NestingLevel
is set to NONE.Default value is false.
DocsToInvestigate
— (String
)Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel
is set to ONE.Must be a positive value greater than 0. Default value is 1000.
AuthSource
— (String
)The MongoDB database name. This setting is not used when
authType=NO
.The default is admin.
KmsKeyId
— (String
)The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
KinesisSettings
— (map
)Settings in JSON format for the target Amazon Kinesis Data Streams endpoint. For more information about the available settings, see Using Object Mapping to Migrate Data to a Kinesis Data Stream in the AWS Database Migration User Guide.
StreamArn
— (String
)The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint.
MessageFormat
— (String
)The output format for the records created on the endpoint. The message format is
Possible values include:JSON
."json"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to the Amazon Kinesis data stream.
ElasticsearchSettings
— (map
)Settings in JSON format for the target Elasticsearch endpoint. For more information about the available settings, see Extra Connection Attributes When Using Elasticsearch as a Target for AWS DMS in the AWS Database Migration User Guide.
ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by service to access the IAM role.
EndpointUri
— required — (String
)The endpoint for the Elasticsearch cluster.
FullLoadErrorPercentage
— (Integer
)The maximum percentage of records that can fail to be written before a full load operation stops.
ErrorRetryDuration
— (Integer
)The maximum number of seconds that DMS retries failed API requests to the Elasticsearch cluster.
RedshiftSettings
— (map
)AcceptAnyDate
— (Boolean
)A value that indicates to allow any date format, including invalid formats such as 00/00/00 00:00:00, to be loaded without generating an error. You can choose
true
orfalse
(the default).This parameter applies only to TIMESTAMP and DATE columns. Always use ACCEPTANYDATE with the DATEFORMAT parameter. If the date format for the data doesn't match the DATEFORMAT specification, Amazon Redshift inserts a NULL value into that field.
AfterConnectScript
— (String
)Code to run after connecting. This parameter should contain the code itself, not the name of a file containing the code.
BucketFolder
— (String
)The location where the comma-separated value (.csv) files are stored before being uploaded to the S3 bucket.
BucketName
— (String
)The name of the S3 bucket you want to use
ConnectionTimeout
— (Integer
)A value that sets the amount of time to wait (in milliseconds) before timing out, beginning from when you initially establish a connection.
DatabaseName
— (String
)The name of the Amazon Redshift data warehouse (service) that you are working with.
DateFormat
— (String
)The date format that you are using. Valid values are
auto
(case-sensitive), your date format string enclosed in quotes, or NULL. If this parameter is left unset (NULL), it defaults to a format of 'YYYY-MM-DD'. Usingauto
recognizes most strings, even some that aren't supported when you use a date format string.If your date and time values use formats different from each other, set this to
auto
.EmptyAsNull
— (Boolean
)A value that specifies whether AWS DMS should migrate empty CHAR and VARCHAR fields as NULL. A value of
true
sets empty CHAR and VARCHAR fields to null. The default isfalse
.EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
Possible values include:SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, create an AWS Identity and Access Management (IAM) role with a policy that allows"arn:aws:s3:::*"
to use the following actions:"s3:PutObject", "s3:ListBucket"
"sse-s3"
"sse-kms"
FileTransferUploadStreams
— (Integer
)The number of threads used to upload a single file. This parameter accepts a value from 1 through 64. It defaults to 10.
LoadTimeout
— (Integer
)The amount of time to wait (in milliseconds) before timing out, beginning from when you begin loading.
MaxFileSize
— (Integer
)The maximum size (in KB) of any .csv file used to transfer data to Amazon Redshift. This accepts a value from 1 through 1,048,576. It defaults to 32,768 KB (32 MB).
Password
— (String
)The password for the user named in the
username
property.Port
— (Integer
)The port number for Amazon Redshift. The default value is 5439.
RemoveQuotes
— (Boolean
)A value that specifies to remove surrounding quotation marks from strings in the incoming data. All characters within the quotation marks, including delimiters, are retained. Choose
true
to remove quotation marks. The default isfalse
.ReplaceInvalidChars
— (String
)A list of characters that you want to replace. Use with
ReplaceChars
.ReplaceChars
— (String
)A value that specifies to replaces the invalid characters specified in
ReplaceInvalidChars
, substituting the specified characters instead. The default is"?"
.ServerName
— (String
)The name of the Amazon Redshift cluster you are using.
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM role that has access to the Amazon Redshift service.
ServerSideEncryptionKmsKeyId
— (String
)The AWS KMS key ID. If you are using
SSE_KMS
for theEncryptionMode
, provide this key ID. The key that you use needs an attached policy that enables IAM user permissions and allows use of the key.TimeFormat
— (String
)The time format that you want to use. Valid values are
auto
(case-sensitive),'timeformat_string'
,'epochsecs'
, or'epochmillisecs'
. It defaults to 10. Usingauto
recognizes most strings, even some that aren't supported when you use a time format string.If your date and time values use formats different from each other, set this parameter to
auto
.TrimBlanks
— (Boolean
)A value that specifies to remove the trailing white space characters from a VARCHAR string. This parameter applies only to columns with a VARCHAR data type. Choose
true
to remove unneeded white space. The default isfalse
.TruncateColumns
— (Boolean
)A value that specifies to truncate data in columns to the appropriate number of characters, so that the data fits in the column. This parameter applies only to columns with a VARCHAR or CHAR data type, and rows with a size of 4 MB or less. Choose
true
to truncate data. The default isfalse
.Username
— (String
)An Amazon Redshift user name for a registered user.
WriteBufferSize
— (Integer
)The size of the write buffer to use in rows. Valid values range from 1 through 2,048. The default is 1,024. Use this setting to tune performance.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Endpoint
— (map
)The endpoint that was created.
EndpointIdentifier
— (String
)The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
EndpointType
— (String
)The type of endpoint. Valid values are
Possible values include:source
andtarget
."source"
"target"
EngineName
— (String
)The database engine name. Valid values, depending on the EndpointType, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver.
EngineDisplayName
— (String
)The expanded name for the engine name. For example, if the
EngineName
parameter is "aurora," this value would be "Amazon Aurora MySQL."Username
— (String
)The user name used to connect to the endpoint.
ServerName
— (String
)The name of the server at the endpoint.
Port
— (Integer
)The port value used to access the endpoint.
DatabaseName
— (String
)The name of the database at the endpoint.
ExtraConnectionAttributes
— (String
)Additional connection attributes used to connect to the endpoint.
Status
— (String
)The status of the endpoint.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
CertificateArn
— (String
)The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
SslMode
— (String
)The SSL mode used to connect to the endpoint. The default value is
Possible values include:none
."none"
"require"
"verify-ca"
"verify-full"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
ExternalId
— (String
)Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a subsequent call to CreateEndpoint to create the endpoint with a cross-account.
DynamoDbSettings
— (map
)The settings for the target DynamoDB database. For more information, see the
DynamoDBSettings
structure.ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
S3Settings
— (map
)The settings for the S3 target endpoint. For more information, see the
S3Settings
structure.ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
CsvRowDelimiter
— (String
)The delimiter used to separate rows in the source files. The default is a carriage return (
\n
).CsvDelimiter
— (String
)The delimiter used to separate columns in the source files. The default is a comma.
BucketFolder
— (String
)An optional parameter to set a folder name in the S3 bucket. If provided, tables are created in the path
bucketFolder/schema_name/table_name/
. If this parameter is not specified, then the path used isschema_name/table_name/
.BucketName
— (String
)The name of the S3 bucket.
CompressionType
— (String
)An optional parameter to use GZIP to compress the target files. Set to GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed. Applies to both .csv and .parquet file formats.
Possible values include:"none"
"gzip"
EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, you need an AWS Identity and Access Management (IAM) role with permission to allow"arn:aws:s3:::dms-*"
to use the following actions:-
s3:CreateBucket
-
s3:ListBucket
-
s3:DeleteBucket
-
s3:GetBucketLocation
-
s3:GetObject
-
s3:PutObject
-
s3:DeleteObject
-
s3:GetObjectVersion
-
s3:GetBucketPolicy
-
s3:PutBucketPolicy
-
s3:DeleteBucketPolicy
"sse-s3"
"sse-kms"
-
ServerSideEncryptionKmsKeyId
— (String
)If you are using
SSE_KMS
for theEncryptionMode
, provide the AWS KMS key ID. The key that you use needs an attached policy that enables AWS Identity and Access Management (IAM) user permissions and allows use of the key.Here is a CLI example:
aws dms create-endpoint --endpoint-identifier value --endpoint-type target --engine-name s3 --s3-settings ServiceAccessRoleArn=value,BucketFolder=value,BucketName=value,EncryptionMode=SSE_KMS,ServerSideEncryptionKmsKeyId=value
DataFormat
— (String
)The format of the data that you want to use for output. You can choose one of the following:
-
csv
: This is a row-based file format with comma-separated values (.csv). -
parquet
: Apache Parquet (.parquet) is a columnar storage file format that features efficient compression and provides faster query response.
"csv"
"parquet"
-
EncodingType
— (String
)The type of encoding you are using:
-
RLE_DICTIONARY
uses a combination of bit-packing and run-length encoding to store repeated values more efficiently. This is the default. -
PLAIN
doesn't use encoding at all. Values are stored as they are. -
PLAIN_DICTIONARY
builds a dictionary of the values encountered in a given column. The dictionary is stored in a dictionary page for each column chunk.
"plain"
"plain-dictionary"
"rle-dictionary"
-
DictPageSizeLimit
— (Integer
)The maximum size of an encoded dictionary page of a column. If the dictionary page exceeds this, this column is stored using an encoding type of
PLAIN
. This parameter defaults to 1024 * 1024 bytes (1 MiB), the maximum size of a dictionary page before it reverts toPLAIN
encoding. This size is used for .parquet file format only.RowGroupLength
— (Integer
)The number of rows in a row group. A smaller row group size provides faster reads. But as the number of row groups grows, the slower writes become. This parameter defaults to 10,000 rows. This number is used for .parquet file format only.
If you choose a value larger than the maximum,
RowGroupLength
is set to the max row group length in bytes (64 * 1024 * 1024).DataPageSize
— (Integer
)The size of one data page in bytes. This parameter defaults to 1024 * 1024 bytes (1 MiB). This number is used for .parquet file format only.
ParquetVersion
— (String
)The version of the Apache Parquet format that you want to use:
Possible values include:parquet_1_0
(the default) orparquet_2_0
."parquet-1-0"
"parquet-2-0"
EnableStatistics
— (Boolean
)A value that enables statistics for Parquet pages and row groups. Choose
true
to enable statistics,false
to disable. Statistics includeNULL
,DISTINCT
,MAX
, andMIN
values. This parameter defaults totrue
. This value is used for .parquet file format only.IncludeOpForFullLoad
— (Boolean
)A value that enables a full load to write INSERT operations to the comma-separated value (.csv) output files only to indicate how the rows were added to the source database.
Note: AWS DMS supports theIncludeOpForFullLoad
parameter in versions 3.1.4 and later.For full load, records can only be inserted. By default (the
false
setting), no information is recorded in these output files for a full load to indicate that the rows were inserted at the source database. IfIncludeOpForFullLoad
is set totrue
ory
, the INSERT is recorded as an I annotation in the first field of the .csv file. This allows the format of your target records from a full load to be consistent with the target records from a CDC load.Note: This setting works together with theCdcInsertsOnly
parameter for output to .csv files only. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..CdcInsertsOnly
— (Boolean
)A value that enables a change data capture (CDC) load to write only INSERT operations to .csv or columnar storage (.parquet) output files. By default (the
false
setting), the first field in a .csv or .parquet record contains the letter I (INSERT), U (UPDATE), or D (DELETE). These values indicate whether the row was inserted, updated, or deleted at the source database for a CDC load to the target.If
CdcInsertsOnly
is set totrue
ory
, only INSERTs from the source database are migrated to the .csv or .parquet file. For .csv format only, how these INSERTs are recorded depends on the value ofIncludeOpForFullLoad
. IfIncludeOpForFullLoad
is set totrue
, the first field of every CDC record is set to I to indicate the INSERT operation at the source. IfIncludeOpForFullLoad
is set tofalse
, every CDC record is written without a first field to indicate the INSERT operation at the source. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..Note: AWS DMS supports this interaction between theCdcInsertsOnly
andIncludeOpForFullLoad
parameters in versions 3.1.4 and later.TimestampColumnName
— (String
)A value that when nonblank causes AWS DMS to add a column with timestamp information to the endpoint data for an Amazon S3 target.
Note: AWS DMS supports theTimestampColumnName
parameter in versions 3.1.4 and later.DMS includes an additional
STRING
column in the .csv or .parquet object files of your migrated data when you setTimestampColumnName
to a nonblank value.For a full load, each row of this timestamp column contains a timestamp for when the data was transferred from the source to the target by DMS.
For a change data capture (CDC) load, each row of the timestamp column contains the timestamp for the commit of that row in the source database.
The string format for this timestamp column value is
yyyy-MM-dd HH:mm:ss.SSSSSS
. By default, the precision of this value is in microseconds. For a CDC load, the rounding of the precision depends on the commit timestamp supported by DMS for the source database.When the
AddColumnName
parameter is set totrue
, DMS also includes a name for the timestamp column that you set withTimestampColumnName
.ParquetTimestampInMillisecond
— (Boolean
)A value that specifies the precision of any
TIMESTAMP
column values that are written to an Amazon S3 object file in .parquet format.Note: AWS DMS supports theParquetTimestampInMillisecond
parameter in versions 3.1.4 and later.When
ParquetTimestampInMillisecond
is set totrue
ory
, AWS DMS writes allTIMESTAMP
columns in a .parquet formatted file with millisecond precision. Otherwise, DMS writes them with microsecond precision.Currently, Amazon Athena and AWS Glue can handle only millisecond precision for
TIMESTAMP
values. Set this parameter totrue
for S3 endpoint object files that are .parquet formatted only if you plan to query or process the data with Athena or AWS Glue.Note: AWS DMS writes anyTIMESTAMP
column values written to an S3 file in .csv format with microsecond precision. SettingParquetTimestampInMillisecond
has no effect on the string format of the timestamp column value that is inserted by setting theTimestampColumnName
parameter.
DmsTransferSettings
— (map
)The settings in JSON format for the DMS transfer type of source endpoint.
Possible settings include the following:
-
ServiceAccessRoleArn
- The IAM role that has permission to access the Amazon S3 bucket. -
BucketName
- The name of the S3 bucket to use. -
CompressionType
- An optional parameter to use GZIP to compress the target files. To use GZIP, set this value toNONE
(the default). To keep the files uncompressed, don't use this value.
Shorthand syntax for these settings is as follows:
ServiceAccessRoleArn=string,BucketName=string,CompressionType=string
JSON syntax for these settings is as follows:
{ "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" }
ServiceAccessRoleArn
— (String
)The IAM role that has permission to access the Amazon S3 bucket.
BucketName
— (String
)The name of the S3 bucket to use.
-
MongoDbSettings
— (map
)The settings for the MongoDB source endpoint. For more information, see the
MongoDbSettings
structure.Username
— (String
)The user name you use to access the MongoDB source endpoint.
Password
— (String
)The password for the user account you use to access the MongoDB source endpoint.
ServerName
— (String
)The name of the server on the MongoDB source endpoint.
Port
— (Integer
)The port value for the MongoDB source endpoint.
DatabaseName
— (String
)The database name on the MongoDB source endpoint.
AuthType
— (String
)The authentication type you use to access the MongoDB source endpoint.
Valid values: NO, PASSWORD
When NO is selected, user name and password parameters are not used and can be empty.
Possible values include:"no"
"password"
AuthMechanism
— (String
)The authentication mechanism you use to access the MongoDB source endpoint.
Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1
DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This setting is not used when authType=No.
Possible values include:"default"
"mongodb_cr"
"scram_sha_1"
NestingLevel
— (String
)Specifies either document or table mode.
Valid values: NONE, ONE
Default value is NONE. Specify NONE to use document mode. Specify ONE to use table mode.
Possible values include:"none"
"one"
ExtractDocId
— (String
)Specifies the document ID. Use this setting when
NestingLevel
is set to NONE.Default value is false.
DocsToInvestigate
— (String
)Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel
is set to ONE.Must be a positive value greater than 0. Default value is 1000.
AuthSource
— (String
)The MongoDB database name. This setting is not used when
authType=NO
.The default is admin.
KmsKeyId
— (String
)The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
KinesisSettings
— (map
)The settings for the Amazon Kinesis source endpoint. For more information, see the
KinesisSettings
structure.StreamArn
— (String
)The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint.
MessageFormat
— (String
)The output format for the records created on the endpoint. The message format is
Possible values include:JSON
."json"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to the Amazon Kinesis data stream.
ElasticsearchSettings
— (map
)The settings for the Elasticsearch source endpoint. For more information, see the
ElasticsearchSettings
structure.ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by service to access the IAM role.
EndpointUri
— required — (String
)The endpoint for the Elasticsearch cluster.
FullLoadErrorPercentage
— (Integer
)The maximum percentage of records that can fail to be written before a full load operation stops.
ErrorRetryDuration
— (Integer
)The maximum number of seconds that DMS retries failed API requests to the Elasticsearch cluster.
RedshiftSettings
— (map
)Settings for the Amazon Redshift endpoint.
AcceptAnyDate
— (Boolean
)A value that indicates to allow any date format, including invalid formats such as 00/00/00 00:00:00, to be loaded without generating an error. You can choose
true
orfalse
(the default).This parameter applies only to TIMESTAMP and DATE columns. Always use ACCEPTANYDATE with the DATEFORMAT parameter. If the date format for the data doesn't match the DATEFORMAT specification, Amazon Redshift inserts a NULL value into that field.
AfterConnectScript
— (String
)Code to run after connecting. This parameter should contain the code itself, not the name of a file containing the code.
BucketFolder
— (String
)The location where the comma-separated value (.csv) files are stored before being uploaded to the S3 bucket.
BucketName
— (String
)The name of the S3 bucket you want to use
ConnectionTimeout
— (Integer
)A value that sets the amount of time to wait (in milliseconds) before timing out, beginning from when you initially establish a connection.
DatabaseName
— (String
)The name of the Amazon Redshift data warehouse (service) that you are working with.
DateFormat
— (String
)The date format that you are using. Valid values are
auto
(case-sensitive), your date format string enclosed in quotes, or NULL. If this parameter is left unset (NULL), it defaults to a format of 'YYYY-MM-DD'. Usingauto
recognizes most strings, even some that aren't supported when you use a date format string.If your date and time values use formats different from each other, set this to
auto
.EmptyAsNull
— (Boolean
)A value that specifies whether AWS DMS should migrate empty CHAR and VARCHAR fields as NULL. A value of
true
sets empty CHAR and VARCHAR fields to null. The default isfalse
.EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
Possible values include:SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, create an AWS Identity and Access Management (IAM) role with a policy that allows"arn:aws:s3:::*"
to use the following actions:"s3:PutObject", "s3:ListBucket"
"sse-s3"
"sse-kms"
FileTransferUploadStreams
— (Integer
)The number of threads used to upload a single file. This parameter accepts a value from 1 through 64. It defaults to 10.
LoadTimeout
— (Integer
)The amount of time to wait (in milliseconds) before timing out, beginning from when you begin loading.
MaxFileSize
— (Integer
)The maximum size (in KB) of any .csv file used to transfer data to Amazon Redshift. This accepts a value from 1 through 1,048,576. It defaults to 32,768 KB (32 MB).
Password
— (String
)The password for the user named in the
username
property.Port
— (Integer
)The port number for Amazon Redshift. The default value is 5439.
RemoveQuotes
— (Boolean
)A value that specifies to remove surrounding quotation marks from strings in the incoming data. All characters within the quotation marks, including delimiters, are retained. Choose
true
to remove quotation marks. The default isfalse
.ReplaceInvalidChars
— (String
)A list of characters that you want to replace. Use with
ReplaceChars
.ReplaceChars
— (String
)A value that specifies to replaces the invalid characters specified in
ReplaceInvalidChars
, substituting the specified characters instead. The default is"?"
.ServerName
— (String
)The name of the Amazon Redshift cluster you are using.
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM role that has access to the Amazon Redshift service.
ServerSideEncryptionKmsKeyId
— (String
)The AWS KMS key ID. If you are using
SSE_KMS
for theEncryptionMode
, provide this key ID. The key that you use needs an attached policy that enables IAM user permissions and allows use of the key.TimeFormat
— (String
)The time format that you want to use. Valid values are
auto
(case-sensitive),'timeformat_string'
,'epochsecs'
, or'epochmillisecs'
. It defaults to 10. Usingauto
recognizes most strings, even some that aren't supported when you use a time format string.If your date and time values use formats different from each other, set this parameter to
auto
.TrimBlanks
— (Boolean
)A value that specifies to remove the trailing white space characters from a VARCHAR string. This parameter applies only to columns with a VARCHAR data type. Choose
true
to remove unneeded white space. The default isfalse
.TruncateColumns
— (Boolean
)A value that specifies to truncate data in columns to the appropriate number of characters, so that the data fits in the column. This parameter applies only to columns with a VARCHAR or CHAR data type, and rows with a size of 4 MB or less. Choose
true
to truncate data. The default isfalse
.Username
— (String
)An Amazon Redshift user name for a registered user.
WriteBufferSize
— (Integer
)The size of the write buffer to use in rows. Valid values range from 1 through 2,048. The default is 1,024. Use this setting to tune performance.
-
(AWS.Response)
—
Returns:
createEventSubscription(params = {}, callback) ⇒ AWS.Request
Creates an AWS DMS event notification subscription.
You can specify the type of source (SourceType
) you want to be notified of, provide a list of AWS DMS source IDs (SourceIds
) that triggers the events, and provide a list of event categories (EventCategories
) for events you want to be notified of. If you specify both the SourceType
and SourceIds
, such as SourceType = replication-instance
and SourceIdentifier = my-replinstance
, you will be notified of all the replication instance events for the specified source. If you specify a SourceType
but don't specify a SourceIdentifier
, you receive notice of the events for that source type for all your AWS DMS sources. If you don't specify either SourceType
nor SourceIdentifier
, you will be notified of events generated from all AWS DMS sources belonging to your customer account.
For more information about AWS DMS events, see Working with Events and Notifications in the AWS Database Migration Service User Guide.
Service Reference:
Examples:
Calling the createEventSubscription operation
var params = {
SnsTopicArn: 'STRING_VALUE', /* required */
SubscriptionName: 'STRING_VALUE', /* required */
Enabled: true || false,
EventCategories: [
'STRING_VALUE',
/* more items */
],
SourceIds: [
'STRING_VALUE',
/* more items */
],
SourceType: 'STRING_VALUE',
Tags: [
{
Key: 'STRING_VALUE',
Value: 'STRING_VALUE'
},
/* more items */
]
};
dms.createEventSubscription(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
SubscriptionName
— (String
)The name of the AWS DMS event notification subscription. This name must be less than 255 characters.
SnsTopicArn
— (String
)The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
SourceType
— (String
)The type of AWS DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter to
replication-instance
. If this value is not specified, all events are returned.Valid values:
replication-instance
|replication-task
EventCategories
— (Array<String>
)A list of event categories for a source type that you want to subscribe to. For more information, see Working with Events and Notifications in the AWS Database Migration Service User Guide.
SourceIds
— (Array<String>
)A list of identifiers for which AWS DMS provides notification events.
If you don't specify a value, notifications are provided for all sources.
If you specify multiple values, they must be of the same type. For example, if you specify a database instance ID, then all of the other values must be database instance IDs.
Enabled
— (Boolean
)A Boolean value; set to
true
to activate the subscription, or set tofalse
to create the subscription but not activate it.Tags
— (Array<map>
)One or more tags to be assigned to the event subscription.
Key
— (String
)A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").Value
— (String
)A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:EventSubscription
— (map
)The event subscription that was created.
CustomerAwsId
— (String
)The AWS customer account associated with the AWS DMS event notification subscription.
CustSubscriptionId
— (String
)The AWS DMS event notification subscription Id.
SnsTopicArn
— (String
)The topic ARN of the AWS DMS event notification subscription.
Status
— (String
)The status of the AWS DMS event notification subscription.
Constraints:
Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist
The status "no-permission" indicates that AWS DMS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
SubscriptionCreationTime
— (String
)The time the RDS event notification subscription was created.
SourceType
— (String
)The type of AWS DMS resource that generates events.
Valid values: replication-instance | replication-server | security-group | replication-task
SourceIdsList
— (Array<String>
)A list of source Ids for the event subscription.
EventCategoriesList
— (Array<String>
)A lists of event categories.
Enabled
— (Boolean
)Boolean value that indicates if the event subscription is enabled.
-
(AWS.Response)
—
Returns:
createReplicationInstance(params = {}, callback) ⇒ AWS.Request
Creates the replication instance using the specified parameters.
AWS DMS requires that your account have certain roles with appropriate permissions before you can create a replication instance. For information on the required roles, see Creating the IAM Roles to Use With the AWS CLI and AWS DMS API. For information on the required permissions, see IAM Permissions Needed to Use AWS DMS.
Service Reference:
Examples:
Create replication instance
/* Creates the replication instance using the specified parameters. */
var params = {
AllocatedStorage: 123,
AutoMinorVersionUpgrade: true,
AvailabilityZone: "",
EngineVersion: "",
KmsKeyId: "",
MultiAZ: true,
PreferredMaintenanceWindow: "",
PubliclyAccessible: true,
ReplicationInstanceClass: "",
ReplicationInstanceIdentifier: "",
ReplicationSubnetGroupIdentifier: "",
Tags: [
{
Key: "string",
Value: "string"
}
],
VpcSecurityGroupIds: [
]
};
dms.createReplicationInstance(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
ReplicationInstance: {
AllocatedStorage: 5,
AutoMinorVersionUpgrade: true,
EngineVersion: "1.5.0",
KmsKeyId: "arn:aws:kms:us-east-1:123456789012:key/4c1731d6-5435-ed4d-be13-d53411a7cfbd",
PendingModifiedValues: {
},
PreferredMaintenanceWindow: "sun:06:00-sun:14:00",
PubliclyAccessible: true,
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ",
ReplicationInstanceClass: "dms.t2.micro",
ReplicationInstanceIdentifier: "test-rep-1",
ReplicationInstanceStatus: "creating",
ReplicationSubnetGroup: {
ReplicationSubnetGroupDescription: "default",
ReplicationSubnetGroupIdentifier: "default",
SubnetGroupStatus: "Complete",
Subnets: [
{
SubnetAvailabilityZone: {
Name: "us-east-1d"
},
SubnetIdentifier: "subnet-f6dd91af",
SubnetStatus: "Active"
},
{
SubnetAvailabilityZone: {
Name: "us-east-1b"
},
SubnetIdentifier: "subnet-3605751d",
SubnetStatus: "Active"
},
{
SubnetAvailabilityZone: {
Name: "us-east-1c"
},
SubnetIdentifier: "subnet-c2daefb5",
SubnetStatus: "Active"
},
{
SubnetAvailabilityZone: {
Name: "us-east-1e"
},
SubnetIdentifier: "subnet-85e90cb8",
SubnetStatus: "Active"
}
],
VpcId: "vpc-6741a603"
}
}
}
*/
});
Calling the createReplicationInstance operation
var params = {
ReplicationInstanceClass: 'STRING_VALUE', /* required */
ReplicationInstanceIdentifier: 'STRING_VALUE', /* required */
AllocatedStorage: 'NUMBER_VALUE',
AutoMinorVersionUpgrade: true || false,
AvailabilityZone: 'STRING_VALUE',
DnsNameServers: 'STRING_VALUE',
EngineVersion: 'STRING_VALUE',
KmsKeyId: 'STRING_VALUE',
MultiAZ: true || false,
PreferredMaintenanceWindow: 'STRING_VALUE',
PubliclyAccessible: true || false,
ReplicationSubnetGroupIdentifier: 'STRING_VALUE',
Tags: [
{
Key: 'STRING_VALUE',
Value: 'STRING_VALUE'
},
/* more items */
],
VpcSecurityGroupIds: [
'STRING_VALUE',
/* more items */
]
};
dms.createReplicationInstance(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance
-
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) to be initially allocated for the replication instance.
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance as specified by the replication instance class.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
VpcSecurityGroupIds
— (Array<String>
)Specifies the VPC security group to be used with the replication instance. The VPC security group must work with the VPC containing the replication instance.
AvailabilityZone
— (String
)The AWS Availability Zone where the replication instance will be created. The default value is a random, system-chosen Availability Zone in the endpoint's AWS Region, for example:
us-east-1d
ReplicationSubnetGroupIdentifier
— (String
)A subnet group to associate with the replication instance.
PreferredMaintenanceWindow
— (String
)The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format:
ddd:hh24:mi-ddd:hh24:mi
Default: A 30-minute window selected at random from an 8-hour block of time per AWS Region, occurring on a random day of the week.
Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
AutoMinorVersionUpgrade
— (Boolean
)Indicates whether minor engine upgrades will be applied automatically to the replication instance during the maintenance window. This parameter defaults to
true
.Default:
true
Tags
— (Array<map>
)One or more tags to be assigned to the replication instance.
Key
— (String
)A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").Value
— (String
)A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
PubliclyAccessible
— (Boolean
)Specifies the accessibility options for the replication instance. A value of
true
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.DnsNameServers
— (String
)A list of DNS name servers supported for the replication instance.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationInstance
— (map
)The replication instance that was created.
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance
-
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
ReplicationInstanceStatus
— (String
)The status of the replication instance.
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
InstanceCreateTime
— (Date
)The time the replication instance was created.
VpcSecurityGroups
— (Array<map>
)The VPC security group for the instance.
VpcSecurityGroupId
— (String
)The VPC security group Id.
Status
— (String
)The status of the VPC security group.
AvailabilityZone
— (String
)The Availability Zone for the instance.
ReplicationSubnetGroup
— (map
)The subnet group for the replication instance.
ReplicationSubnetGroupIdentifier
— (String
)The identifier of the replication instance subnet group.
ReplicationSubnetGroupDescription
— (String
)A description for the replication subnet group.
VpcId
— (String
)The ID of the VPC.
SubnetGroupStatus
— (String
)The status of the subnet group.
Subnets
— (Array<map>
)The subnets that are in the subnet group.
SubnetIdentifier
— (String
)The subnet identifier.
SubnetAvailabilityZone
— (map
)The Availability Zone of the subnet.
Name
— (String
)The name of the availability zone.
SubnetStatus
— (String
)The status of the subnet.
PreferredMaintenanceWindow
— (String
)The maintenance window times for the replication instance.
PendingModifiedValues
— (map
)The pending modification values.
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
AutoMinorVersionUpgrade
— (Boolean
)Boolean value indicating if minor version upgrades will be automatically applied to the instance.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
ReplicationInstancePublicIpAddress
— (String
)The public IP address of the replication instance.
ReplicationInstancePrivateIpAddress
— (String
)The private IP address of the replication instance.
ReplicationInstancePublicIpAddresses
— (Array<String>
)One or more public IP addresses for the replication instance.
ReplicationInstancePrivateIpAddresses
— (Array<String>
)One or more private IP addresses for the replication instance.
PubliclyAccessible
— (Boolean
)Specifies the accessibility options for the replication instance. A value of
true
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.SecondaryAvailabilityZone
— (String
)The availability zone of the standby replication instance in a Multi-AZ deployment.
FreeUntil
— (Date
)The expiration date of the free replication instance that is part of the Free DMS program.
DnsNameServers
— (String
)The DNS name servers for the replication instance.
-
(AWS.Response)
—
Returns:
createReplicationSubnetGroup(params = {}, callback) ⇒ AWS.Request
Creates a replication subnet group given a list of the subnet IDs in a VPC.
Service Reference:
Examples:
Create replication subnet group
/* Creates a replication subnet group given a list of the subnet IDs in a VPC. */
var params = {
ReplicationSubnetGroupDescription: "US West subnet group",
ReplicationSubnetGroupIdentifier: "us-west-2ab-vpc-215ds366",
SubnetIds: [
"subnet-e145356n",
"subnet-58f79200"
],
Tags: [
{
Key: "Acount",
Value: "145235"
}
]
};
dms.createReplicationSubnetGroup(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
ReplicationSubnetGroup: {
}
}
*/
});
Calling the createReplicationSubnetGroup operation
var params = {
ReplicationSubnetGroupDescription: 'STRING_VALUE', /* required */
ReplicationSubnetGroupIdentifier: 'STRING_VALUE', /* required */
SubnetIds: [ /* required */
'STRING_VALUE',
/* more items */
],
Tags: [
{
Key: 'STRING_VALUE',
Value: 'STRING_VALUE'
},
/* more items */
]
};
dms.createReplicationSubnetGroup(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationSubnetGroupIdentifier
— (String
)The name for the replication subnet group. This value is stored as a lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens. Must not be "default".
Example:
mySubnetgroup
ReplicationSubnetGroupDescription
— (String
)The description for the subnet group.
SubnetIds
— (Array<String>
)One or more subnet IDs to be assigned to the subnet group.
Tags
— (Array<map>
)One or more tags to be assigned to the subnet group.
Key
— (String
)A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").Value
— (String
)A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationSubnetGroup
— (map
)The replication subnet group that was created.
ReplicationSubnetGroupIdentifier
— (String
)The identifier of the replication instance subnet group.
ReplicationSubnetGroupDescription
— (String
)A description for the replication subnet group.
VpcId
— (String
)The ID of the VPC.
SubnetGroupStatus
— (String
)The status of the subnet group.
Subnets
— (Array<map>
)The subnets that are in the subnet group.
SubnetIdentifier
— (String
)The subnet identifier.
SubnetAvailabilityZone
— (map
)The Availability Zone of the subnet.
Name
— (String
)The name of the availability zone.
SubnetStatus
— (String
)The status of the subnet.
-
(AWS.Response)
—
Returns:
createReplicationTask(params = {}, callback) ⇒ AWS.Request
Creates a replication task using the specified parameters.
Service Reference:
Examples:
Create replication task
/* Creates a replication task using the specified parameters. */
var params = {
CdcStartTime: <Date Representation>,
MigrationType: "full-load",
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ",
ReplicationTaskIdentifier: "task1",
ReplicationTaskSettings: "",
SourceEndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ZW5UAN6P4E77EC7YWHK4RZZ3BE",
TableMappings: "file://mappingfile.json",
Tags: [
{
Key: "Acount",
Value: "24352226"
}
],
TargetEndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E"
};
dms.createReplicationTask(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
ReplicationTask: {
MigrationType: "full-load",
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ",
ReplicationTaskArn: "arn:aws:dms:us-east-1:123456789012:task:OEAMB3NXSTZ6LFYZFEPPBBXPYM",
ReplicationTaskCreationDate: <Date Representation>,
ReplicationTaskIdentifier: "task1",
ReplicationTaskSettings: "{\"TargetMetadata\":{\"TargetSchema\":\"\",\"SupportLobs\":true,\"FullLobMode\":true,\"LobChunkSize\":64,\"LimitedSizeLobMode\":false,\"LobMaxSize\":0},\"FullLoadSettings\":{\"FullLoadEnabled\":true,\"ApplyChangesEnabled\":false,\"TargetTablePrepMode\":\"DROP_AND_CREATE\",\"CreatePkAfterFullLoad\":false,\"StopTaskCachedChangesApplied\":false,\"StopTaskCachedChangesNotApplied\":false,\"ResumeEnabled\":false,\"ResumeMinTableSize\":100000,\"ResumeOnlyClusteredPKTables\":true,\"MaxFullLoadSubTasks\":8,\"TransactionConsistencyTimeout\":600,\"CommitRate\":10000},\"Logging\":{\"EnableLogging\":false}}",
SourceEndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ZW5UAN6P4E77EC7YWHK4RZZ3BE",
Status: "creating",
TableMappings: "file://mappingfile.json",
TargetEndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E"
}
}
*/
});
Calling the createReplicationTask operation
var params = {
MigrationType: full-load | cdc | full-load-and-cdc, /* required */
ReplicationInstanceArn: 'STRING_VALUE', /* required */
ReplicationTaskIdentifier: 'STRING_VALUE', /* required */
SourceEndpointArn: 'STRING_VALUE', /* required */
TableMappings: 'STRING_VALUE', /* required */
TargetEndpointArn: 'STRING_VALUE', /* required */
CdcStartPosition: 'STRING_VALUE',
CdcStartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
CdcStopPosition: 'STRING_VALUE',
ReplicationTaskSettings: 'STRING_VALUE',
Tags: [
{
Key: 'STRING_VALUE',
Value: 'STRING_VALUE'
},
/* more items */
]
};
dms.createReplicationTask(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationTaskIdentifier
— (String
)An identifier for the replication task.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies the source endpoint.
TargetEndpointArn
— (String
)An Amazon Resource Name (ARN) that uniquely identifies the target endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of a replication instance.
MigrationType
— (String
)The migration type. Valid values:
Possible values include:full-load
|cdc
|full-load-and-cdc
"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)The table mappings for the task, in JSON format. For more information, see Table Mapping in the AWS Database Migration User Guide.
ReplicationTaskSettings
— (String
)Overall settings for the task, in JSON format. For more information, see Task Settings in the AWS Database Migration User Guide.
CdcStartTime
— (Date
)Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.
Timestamp Example: --cdc-start-time “2018-03-08T12:12:12”
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
Note: When you use this task setting with a source PostgreSQL database, a logical replication slot should already be created and associated with the source endpoint. You can verify this by setting theslotName
extra connection attribute to the name of this logical replication slot. For more information, see Extra Connection Attributes When Using PostgreSQL as a Source for AWS DMS.CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
Tags
— (Array<map>
)One or more tags to be assigned to the replication task.
Key
— (String
)A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").Value
— (String
)A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationTask
— (map
)The replication task that was created.
ReplicationTaskIdentifier
— (String
)The user-assigned replication task identifier or name.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MigrationType
— (String
)The type of migration.
Possible values include:"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)Table mappings specified in the task.
ReplicationTaskSettings
— (String
)The settings for the replication task.
Status
— (String
)The status of the replication task.
LastFailureMessage
— (String
)The last error (failure) message generated for the replication instance.
StopReason
— (String
)The reason the replication task was stopped.
ReplicationTaskCreationDate
— (Date
)The date the replication task was created.
ReplicationTaskStartDate
— (Date
)The date the replication task is scheduled to start.
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPosition
orCdcStartTime
to specify when you want the CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
RecoveryCheckpoint
— (String
)Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the
CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskStats
— (map
)The statistics for the task, including elapsed time, tables loaded, and table errors.
FullLoadProgressPercent
— (Integer
)The percent complete for the full load migration task.
ElapsedTimeMillis
— (Integer
)The elapsed time of the task, in milliseconds.
TablesLoaded
— (Integer
)The number of tables loaded for this task.
TablesLoading
— (Integer
)The number of tables currently loading for this task.
TablesQueued
— (Integer
)The number of tables queued for this task.
TablesErrored
— (Integer
)The number of errors that have occurred during this task.
FreshStartDate
— (Date
)The date the replication task was started either with a fresh start or a target reload.
StartDate
— (Date
)The date the replication task was started either with a fresh start or a resume. For more information, see StartReplicationTaskType.
StopDate
— (Date
)The date the replication task was stopped.
FullLoadStartDate
— (Date
)The date the the replication task full load was started.
FullLoadFinishDate
— (Date
)The date the replication task full load was completed.
-
(AWS.Response)
—
Returns:
deleteCertificate(params = {}, callback) ⇒ AWS.Request
Deletes the specified certificate.
Service Reference:
Examples:
Delete Certificate
/* Deletes the specified certificate. */
var params = {
CertificateArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUSM457DE6XFJCJQ"
};
dms.deleteCertificate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Certificate: {
}
}
*/
});
Calling the deleteCertificate operation
var params = {
CertificateArn: 'STRING_VALUE' /* required */
};
dms.deleteCertificate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
CertificateArn
— (String
)The Amazon Resource Name (ARN) of the deleted certificate.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Certificate
— (map
)The Secure Sockets Layer (SSL) certificate.
CertificateIdentifier
— (String
)A customer-assigned name for the certificate. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
CertificateCreationDate
— (Date
)The date that the certificate was created.
CertificatePem
— (String
)The contents of a
.pem
file, which contains an X.509 certificate.CertificateWallet
— (Buffer, Typed Array, Blob, String
)The location of an imported Oracle Wallet certificate for use with SSL.
CertificateArn
— (String
)The Amazon Resource Name (ARN) for the certificate.
CertificateOwner
— (String
)The owner of the certificate.
ValidFromDate
— (Date
)The beginning date that the certificate is valid.
ValidToDate
— (Date
)The final date that the certificate is valid.
SigningAlgorithm
— (String
)The signing algorithm for the certificate.
KeyLength
— (Integer
)The key length of the cryptographic algorithm being used.
-
(AWS.Response)
—
Returns:
deleteConnection(params = {}, callback) ⇒ AWS.Request
Deletes the connection between a replication instance and an endpoint.
Service Reference:
Examples:
Delete Connection
/* Deletes the connection between the replication instance and the endpoint. */
var params = {
EndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM",
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ"
};
dms.deleteConnection(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Connection: {
}
}
*/
});
Calling the deleteConnection operation
var params = {
EndpointArn: 'STRING_VALUE', /* required */
ReplicationInstanceArn: 'STRING_VALUE' /* required */
};
dms.deleteConnection(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Connection
— (map
)The connection that is being deleted.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
Status
— (String
)The connection status.
LastFailureMessage
— (String
)The error message when the connection last failed.
EndpointIdentifier
— (String
)The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
-
(AWS.Response)
—
Returns:
deleteEndpoint(params = {}, callback) ⇒ AWS.Request
Deletes the specified endpoint.
Service Reference:
Examples:
Delete Endpoint
/* Deletes the specified endpoint. All tasks associated with the endpoint must be deleted before you can delete the endpoint.
*/
var params = {
EndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM"
};
dms.deleteEndpoint(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Endpoint: {
EndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM",
EndpointIdentifier: "test-endpoint-1",
EndpointType: "source",
EngineName: "mysql",
KmsKeyId: "arn:aws:kms:us-east-1:123456789012:key/4c1731d6-5435-ed4d-be13-d53411a7cfbd",
Port: 3306,
ServerName: "mydb.cx1llnox7iyx.us-west-2.rds.amazonaws.com",
Status: "active",
Username: "username"
}
}
*/
});
Calling the deleteEndpoint operation
var params = {
EndpointArn: 'STRING_VALUE' /* required */
};
dms.deleteEndpoint(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Endpoint
— (map
)The endpoint that was deleted.
EndpointIdentifier
— (String
)The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
EndpointType
— (String
)The type of endpoint. Valid values are
Possible values include:source
andtarget
."source"
"target"
EngineName
— (String
)The database engine name. Valid values, depending on the EndpointType, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver.
EngineDisplayName
— (String
)The expanded name for the engine name. For example, if the
EngineName
parameter is "aurora," this value would be "Amazon Aurora MySQL."Username
— (String
)The user name used to connect to the endpoint.
ServerName
— (String
)The name of the server at the endpoint.
Port
— (Integer
)The port value used to access the endpoint.
DatabaseName
— (String
)The name of the database at the endpoint.
ExtraConnectionAttributes
— (String
)Additional connection attributes used to connect to the endpoint.
Status
— (String
)The status of the endpoint.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
CertificateArn
— (String
)The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
SslMode
— (String
)The SSL mode used to connect to the endpoint. The default value is
Possible values include:none
."none"
"require"
"verify-ca"
"verify-full"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
ExternalId
— (String
)Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a subsequent call to CreateEndpoint to create the endpoint with a cross-account.
DynamoDbSettings
— (map
)The settings for the target DynamoDB database. For more information, see the
DynamoDBSettings
structure.ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
S3Settings
— (map
)The settings for the S3 target endpoint. For more information, see the
S3Settings
structure.ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
CsvRowDelimiter
— (String
)The delimiter used to separate rows in the source files. The default is a carriage return (
\n
).CsvDelimiter
— (String
)The delimiter used to separate columns in the source files. The default is a comma.
BucketFolder
— (String
)An optional parameter to set a folder name in the S3 bucket. If provided, tables are created in the path
bucketFolder/schema_name/table_name/
. If this parameter is not specified, then the path used isschema_name/table_name/
.BucketName
— (String
)The name of the S3 bucket.
CompressionType
— (String
)An optional parameter to use GZIP to compress the target files. Set to GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed. Applies to both .csv and .parquet file formats.
Possible values include:"none"
"gzip"
EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, you need an AWS Identity and Access Management (IAM) role with permission to allow"arn:aws:s3:::dms-*"
to use the following actions:-
s3:CreateBucket
-
s3:ListBucket
-
s3:DeleteBucket
-
s3:GetBucketLocation
-
s3:GetObject
-
s3:PutObject
-
s3:DeleteObject
-
s3:GetObjectVersion
-
s3:GetBucketPolicy
-
s3:PutBucketPolicy
-
s3:DeleteBucketPolicy
"sse-s3"
"sse-kms"
-
ServerSideEncryptionKmsKeyId
— (String
)If you are using
SSE_KMS
for theEncryptionMode
, provide the AWS KMS key ID. The key that you use needs an attached policy that enables AWS Identity and Access Management (IAM) user permissions and allows use of the key.Here is a CLI example:
aws dms create-endpoint --endpoint-identifier value --endpoint-type target --engine-name s3 --s3-settings ServiceAccessRoleArn=value,BucketFolder=value,BucketName=value,EncryptionMode=SSE_KMS,ServerSideEncryptionKmsKeyId=value
DataFormat
— (String
)The format of the data that you want to use for output. You can choose one of the following:
-
csv
: This is a row-based file format with comma-separated values (.csv). -
parquet
: Apache Parquet (.parquet) is a columnar storage file format that features efficient compression and provides faster query response.
"csv"
"parquet"
-
EncodingType
— (String
)The type of encoding you are using:
-
RLE_DICTIONARY
uses a combination of bit-packing and run-length encoding to store repeated values more efficiently. This is the default. -
PLAIN
doesn't use encoding at all. Values are stored as they are. -
PLAIN_DICTIONARY
builds a dictionary of the values encountered in a given column. The dictionary is stored in a dictionary page for each column chunk.
"plain"
"plain-dictionary"
"rle-dictionary"
-
DictPageSizeLimit
— (Integer
)The maximum size of an encoded dictionary page of a column. If the dictionary page exceeds this, this column is stored using an encoding type of
PLAIN
. This parameter defaults to 1024 * 1024 bytes (1 MiB), the maximum size of a dictionary page before it reverts toPLAIN
encoding. This size is used for .parquet file format only.RowGroupLength
— (Integer
)The number of rows in a row group. A smaller row group size provides faster reads. But as the number of row groups grows, the slower writes become. This parameter defaults to 10,000 rows. This number is used for .parquet file format only.
If you choose a value larger than the maximum,
RowGroupLength
is set to the max row group length in bytes (64 * 1024 * 1024).DataPageSize
— (Integer
)The size of one data page in bytes. This parameter defaults to 1024 * 1024 bytes (1 MiB). This number is used for .parquet file format only.
ParquetVersion
— (String
)The version of the Apache Parquet format that you want to use:
Possible values include:parquet_1_0
(the default) orparquet_2_0
."parquet-1-0"
"parquet-2-0"
EnableStatistics
— (Boolean
)A value that enables statistics for Parquet pages and row groups. Choose
true
to enable statistics,false
to disable. Statistics includeNULL
,DISTINCT
,MAX
, andMIN
values. This parameter defaults totrue
. This value is used for .parquet file format only.IncludeOpForFullLoad
— (Boolean
)A value that enables a full load to write INSERT operations to the comma-separated value (.csv) output files only to indicate how the rows were added to the source database.
Note: AWS DMS supports theIncludeOpForFullLoad
parameter in versions 3.1.4 and later.For full load, records can only be inserted. By default (the
false
setting), no information is recorded in these output files for a full load to indicate that the rows were inserted at the source database. IfIncludeOpForFullLoad
is set totrue
ory
, the INSERT is recorded as an I annotation in the first field of the .csv file. This allows the format of your target records from a full load to be consistent with the target records from a CDC load.Note: This setting works together with theCdcInsertsOnly
parameter for output to .csv files only. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..CdcInsertsOnly
— (Boolean
)A value that enables a change data capture (CDC) load to write only INSERT operations to .csv or columnar storage (.parquet) output files. By default (the
false
setting), the first field in a .csv or .parquet record contains the letter I (INSERT), U (UPDATE), or D (DELETE). These values indicate whether the row was inserted, updated, or deleted at the source database for a CDC load to the target.If
CdcInsertsOnly
is set totrue
ory
, only INSERTs from the source database are migrated to the .csv or .parquet file. For .csv format only, how these INSERTs are recorded depends on the value ofIncludeOpForFullLoad
. IfIncludeOpForFullLoad
is set totrue
, the first field of every CDC record is set to I to indicate the INSERT operation at the source. IfIncludeOpForFullLoad
is set tofalse
, every CDC record is written without a first field to indicate the INSERT operation at the source. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..Note: AWS DMS supports this interaction between theCdcInsertsOnly
andIncludeOpForFullLoad
parameters in versions 3.1.4 and later.TimestampColumnName
— (String
)A value that when nonblank causes AWS DMS to add a column with timestamp information to the endpoint data for an Amazon S3 target.
Note: AWS DMS supports theTimestampColumnName
parameter in versions 3.1.4 and later.DMS includes an additional
STRING
column in the .csv or .parquet object files of your migrated data when you setTimestampColumnName
to a nonblank value.For a full load, each row of this timestamp column contains a timestamp for when the data was transferred from the source to the target by DMS.
For a change data capture (CDC) load, each row of the timestamp column contains the timestamp for the commit of that row in the source database.
The string format for this timestamp column value is
yyyy-MM-dd HH:mm:ss.SSSSSS
. By default, the precision of this value is in microseconds. For a CDC load, the rounding of the precision depends on the commit timestamp supported by DMS for the source database.When the
AddColumnName
parameter is set totrue
, DMS also includes a name for the timestamp column that you set withTimestampColumnName
.ParquetTimestampInMillisecond
— (Boolean
)A value that specifies the precision of any
TIMESTAMP
column values that are written to an Amazon S3 object file in .parquet format.Note: AWS DMS supports theParquetTimestampInMillisecond
parameter in versions 3.1.4 and later.When
ParquetTimestampInMillisecond
is set totrue
ory
, AWS DMS writes allTIMESTAMP
columns in a .parquet formatted file with millisecond precision. Otherwise, DMS writes them with microsecond precision.Currently, Amazon Athena and AWS Glue can handle only millisecond precision for
TIMESTAMP
values. Set this parameter totrue
for S3 endpoint object files that are .parquet formatted only if you plan to query or process the data with Athena or AWS Glue.Note: AWS DMS writes anyTIMESTAMP
column values written to an S3 file in .csv format with microsecond precision. SettingParquetTimestampInMillisecond
has no effect on the string format of the timestamp column value that is inserted by setting theTimestampColumnName
parameter.
DmsTransferSettings
— (map
)The settings in JSON format for the DMS transfer type of source endpoint.
Possible settings include the following:
-
ServiceAccessRoleArn
- The IAM role that has permission to access the Amazon S3 bucket. -
BucketName
- The name of the S3 bucket to use. -
CompressionType
- An optional parameter to use GZIP to compress the target files. To use GZIP, set this value toNONE
(the default). To keep the files uncompressed, don't use this value.
Shorthand syntax for these settings is as follows:
ServiceAccessRoleArn=string,BucketName=string,CompressionType=string
JSON syntax for these settings is as follows:
{ "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" }
ServiceAccessRoleArn
— (String
)The IAM role that has permission to access the Amazon S3 bucket.
BucketName
— (String
)The name of the S3 bucket to use.
-
MongoDbSettings
— (map
)The settings for the MongoDB source endpoint. For more information, see the
MongoDbSettings
structure.Username
— (String
)The user name you use to access the MongoDB source endpoint.
Password
— (String
)The password for the user account you use to access the MongoDB source endpoint.
ServerName
— (String
)The name of the server on the MongoDB source endpoint.
Port
— (Integer
)The port value for the MongoDB source endpoint.
DatabaseName
— (String
)The database name on the MongoDB source endpoint.
AuthType
— (String
)The authentication type you use to access the MongoDB source endpoint.
Valid values: NO, PASSWORD
When NO is selected, user name and password parameters are not used and can be empty.
Possible values include:"no"
"password"
AuthMechanism
— (String
)The authentication mechanism you use to access the MongoDB source endpoint.
Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1
DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This setting is not used when authType=No.
Possible values include:"default"
"mongodb_cr"
"scram_sha_1"
NestingLevel
— (String
)Specifies either document or table mode.
Valid values: NONE, ONE
Default value is NONE. Specify NONE to use document mode. Specify ONE to use table mode.
Possible values include:"none"
"one"
ExtractDocId
— (String
)Specifies the document ID. Use this setting when
NestingLevel
is set to NONE.Default value is false.
DocsToInvestigate
— (String
)Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel
is set to ONE.Must be a positive value greater than 0. Default value is 1000.
AuthSource
— (String
)The MongoDB database name. This setting is not used when
authType=NO
.The default is admin.
KmsKeyId
— (String
)The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
KinesisSettings
— (map
)The settings for the Amazon Kinesis source endpoint. For more information, see the
KinesisSettings
structure.StreamArn
— (String
)The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint.
MessageFormat
— (String
)The output format for the records created on the endpoint. The message format is
Possible values include:JSON
."json"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to the Amazon Kinesis data stream.
ElasticsearchSettings
— (map
)The settings for the Elasticsearch source endpoint. For more information, see the
ElasticsearchSettings
structure.ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by service to access the IAM role.
EndpointUri
— required — (String
)The endpoint for the Elasticsearch cluster.
FullLoadErrorPercentage
— (Integer
)The maximum percentage of records that can fail to be written before a full load operation stops.
ErrorRetryDuration
— (Integer
)The maximum number of seconds that DMS retries failed API requests to the Elasticsearch cluster.
RedshiftSettings
— (map
)Settings for the Amazon Redshift endpoint.
AcceptAnyDate
— (Boolean
)A value that indicates to allow any date format, including invalid formats such as 00/00/00 00:00:00, to be loaded without generating an error. You can choose
true
orfalse
(the default).This parameter applies only to TIMESTAMP and DATE columns. Always use ACCEPTANYDATE with the DATEFORMAT parameter. If the date format for the data doesn't match the DATEFORMAT specification, Amazon Redshift inserts a NULL value into that field.
AfterConnectScript
— (String
)Code to run after connecting. This parameter should contain the code itself, not the name of a file containing the code.
BucketFolder
— (String
)The location where the comma-separated value (.csv) files are stored before being uploaded to the S3 bucket.
BucketName
— (String
)The name of the S3 bucket you want to use
ConnectionTimeout
— (Integer
)A value that sets the amount of time to wait (in milliseconds) before timing out, beginning from when you initially establish a connection.
DatabaseName
— (String
)The name of the Amazon Redshift data warehouse (service) that you are working with.
DateFormat
— (String
)The date format that you are using. Valid values are
auto
(case-sensitive), your date format string enclosed in quotes, or NULL. If this parameter is left unset (NULL), it defaults to a format of 'YYYY-MM-DD'. Usingauto
recognizes most strings, even some that aren't supported when you use a date format string.If your date and time values use formats different from each other, set this to
auto
.EmptyAsNull
— (Boolean
)A value that specifies whether AWS DMS should migrate empty CHAR and VARCHAR fields as NULL. A value of
true
sets empty CHAR and VARCHAR fields to null. The default isfalse
.EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
Possible values include:SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, create an AWS Identity and Access Management (IAM) role with a policy that allows"arn:aws:s3:::*"
to use the following actions:"s3:PutObject", "s3:ListBucket"
"sse-s3"
"sse-kms"
FileTransferUploadStreams
— (Integer
)The number of threads used to upload a single file. This parameter accepts a value from 1 through 64. It defaults to 10.
LoadTimeout
— (Integer
)The amount of time to wait (in milliseconds) before timing out, beginning from when you begin loading.
MaxFileSize
— (Integer
)The maximum size (in KB) of any .csv file used to transfer data to Amazon Redshift. This accepts a value from 1 through 1,048,576. It defaults to 32,768 KB (32 MB).
Password
— (String
)The password for the user named in the
username
property.Port
— (Integer
)The port number for Amazon Redshift. The default value is 5439.
RemoveQuotes
— (Boolean
)A value that specifies to remove surrounding quotation marks from strings in the incoming data. All characters within the quotation marks, including delimiters, are retained. Choose
true
to remove quotation marks. The default isfalse
.ReplaceInvalidChars
— (String
)A list of characters that you want to replace. Use with
ReplaceChars
.ReplaceChars
— (String
)A value that specifies to replaces the invalid characters specified in
ReplaceInvalidChars
, substituting the specified characters instead. The default is"?"
.ServerName
— (String
)The name of the Amazon Redshift cluster you are using.
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM role that has access to the Amazon Redshift service.
ServerSideEncryptionKmsKeyId
— (String
)The AWS KMS key ID. If you are using
SSE_KMS
for theEncryptionMode
, provide this key ID. The key that you use needs an attached policy that enables IAM user permissions and allows use of the key.TimeFormat
— (String
)The time format that you want to use. Valid values are
auto
(case-sensitive),'timeformat_string'
,'epochsecs'
, or'epochmillisecs'
. It defaults to 10. Usingauto
recognizes most strings, even some that aren't supported when you use a time format string.If your date and time values use formats different from each other, set this parameter to
auto
.TrimBlanks
— (Boolean
)A value that specifies to remove the trailing white space characters from a VARCHAR string. This parameter applies only to columns with a VARCHAR data type. Choose
true
to remove unneeded white space. The default isfalse
.TruncateColumns
— (Boolean
)A value that specifies to truncate data in columns to the appropriate number of characters, so that the data fits in the column. This parameter applies only to columns with a VARCHAR or CHAR data type, and rows with a size of 4 MB or less. Choose
true
to truncate data. The default isfalse
.Username
— (String
)An Amazon Redshift user name for a registered user.
WriteBufferSize
— (Integer
)The size of the write buffer to use in rows. Valid values range from 1 through 2,048. The default is 1,024. Use this setting to tune performance.
-
(AWS.Response)
—
Returns:
deleteEventSubscription(params = {}, callback) ⇒ AWS.Request
Deletes an AWS DMS event subscription.
Service Reference:
Examples:
Calling the deleteEventSubscription operation
var params = {
SubscriptionName: 'STRING_VALUE' /* required */
};
dms.deleteEventSubscription(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
SubscriptionName
— (String
)The name of the DMS event notification subscription to be deleted.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:EventSubscription
— (map
)The event subscription that was deleted.
CustomerAwsId
— (String
)The AWS customer account associated with the AWS DMS event notification subscription.
CustSubscriptionId
— (String
)The AWS DMS event notification subscription Id.
SnsTopicArn
— (String
)The topic ARN of the AWS DMS event notification subscription.
Status
— (String
)The status of the AWS DMS event notification subscription.
Constraints:
Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist
The status "no-permission" indicates that AWS DMS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
SubscriptionCreationTime
— (String
)The time the RDS event notification subscription was created.
SourceType
— (String
)The type of AWS DMS resource that generates events.
Valid values: replication-instance | replication-server | security-group | replication-task
SourceIdsList
— (Array<String>
)A list of source Ids for the event subscription.
EventCategoriesList
— (Array<String>
)A lists of event categories.
Enabled
— (Boolean
)Boolean value that indicates if the event subscription is enabled.
-
(AWS.Response)
—
Returns:
deleteReplicationInstance(params = {}, callback) ⇒ AWS.Request
Deletes the specified replication instance.
Service Reference:
Examples:
Delete Replication Instance
/* Deletes the specified replication instance. You must delete any migration tasks that are associated with the replication instance before you can delete it.
*/
var params = {
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ"
};
dms.deleteReplicationInstance(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
ReplicationInstance: {
AllocatedStorage: 5,
AutoMinorVersionUpgrade: true,
EngineVersion: "1.5.0",
KmsKeyId: "arn:aws:kms:us-east-1:123456789012:key/4c1731d6-5435-ed4d-be13-d53411a7cfbd",
PendingModifiedValues: {
},
PreferredMaintenanceWindow: "sun:06:00-sun:14:00",
PubliclyAccessible: true,
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ",
ReplicationInstanceClass: "dms.t2.micro",
ReplicationInstanceIdentifier: "test-rep-1",
ReplicationInstanceStatus: "creating",
ReplicationSubnetGroup: {
ReplicationSubnetGroupDescription: "default",
ReplicationSubnetGroupIdentifier: "default",
SubnetGroupStatus: "Complete",
Subnets: [
{
SubnetAvailabilityZone: {
Name: "us-east-1d"
},
SubnetIdentifier: "subnet-f6dd91af",
SubnetStatus: "Active"
},
{
SubnetAvailabilityZone: {
Name: "us-east-1b"
},
SubnetIdentifier: "subnet-3605751d",
SubnetStatus: "Active"
},
{
SubnetAvailabilityZone: {
Name: "us-east-1c"
},
SubnetIdentifier: "subnet-c2daefb5",
SubnetStatus: "Active"
},
{
SubnetAvailabilityZone: {
Name: "us-east-1e"
},
SubnetIdentifier: "subnet-85e90cb8",
SubnetStatus: "Active"
}
],
VpcId: "vpc-6741a603"
}
}
}
*/
});
Calling the deleteReplicationInstance operation
var params = {
ReplicationInstanceArn: 'STRING_VALUE' /* required */
};
dms.deleteReplicationInstance(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance to be deleted.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationInstance
— (map
)The replication instance that was deleted.
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance
-
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
ReplicationInstanceStatus
— (String
)The status of the replication instance.
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
InstanceCreateTime
— (Date
)The time the replication instance was created.
VpcSecurityGroups
— (Array<map>
)The VPC security group for the instance.
VpcSecurityGroupId
— (String
)The VPC security group Id.
Status
— (String
)The status of the VPC security group.
AvailabilityZone
— (String
)The Availability Zone for the instance.
ReplicationSubnetGroup
— (map
)The subnet group for the replication instance.
ReplicationSubnetGroupIdentifier
— (String
)The identifier of the replication instance subnet group.
ReplicationSubnetGroupDescription
— (String
)A description for the replication subnet group.
VpcId
— (String
)The ID of the VPC.
SubnetGroupStatus
— (String
)The status of the subnet group.
Subnets
— (Array<map>
)The subnets that are in the subnet group.
SubnetIdentifier
— (String
)The subnet identifier.
SubnetAvailabilityZone
— (map
)The Availability Zone of the subnet.
Name
— (String
)The name of the availability zone.
SubnetStatus
— (String
)The status of the subnet.
PreferredMaintenanceWindow
— (String
)The maintenance window times for the replication instance.
PendingModifiedValues
— (map
)The pending modification values.
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
AutoMinorVersionUpgrade
— (Boolean
)Boolean value indicating if minor version upgrades will be automatically applied to the instance.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
ReplicationInstancePublicIpAddress
— (String
)The public IP address of the replication instance.
ReplicationInstancePrivateIpAddress
— (String
)The private IP address of the replication instance.
ReplicationInstancePublicIpAddresses
— (Array<String>
)One or more public IP addresses for the replication instance.
ReplicationInstancePrivateIpAddresses
— (Array<String>
)One or more private IP addresses for the replication instance.
PubliclyAccessible
— (Boolean
)Specifies the accessibility options for the replication instance. A value of
true
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.SecondaryAvailabilityZone
— (String
)The availability zone of the standby replication instance in a Multi-AZ deployment.
FreeUntil
— (Date
)The expiration date of the free replication instance that is part of the Free DMS program.
DnsNameServers
— (String
)The DNS name servers for the replication instance.
-
(AWS.Response)
—
Returns:
deleteReplicationSubnetGroup(params = {}, callback) ⇒ AWS.Request
Deletes a subnet group.
Service Reference:
Examples:
Delete Replication Subnet Group
/* Deletes a replication subnet group. */
var params = {
ReplicationSubnetGroupIdentifier: "us-west-2ab-vpc-215ds366"
};
dms.deleteReplicationSubnetGroup(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
}
*/
});
Calling the deleteReplicationSubnetGroup operation
var params = {
ReplicationSubnetGroupIdentifier: 'STRING_VALUE' /* required */
};
dms.deleteReplicationSubnetGroup(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationSubnetGroupIdentifier
— (String
)The subnet group name of the replication instance.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteReplicationTask(params = {}, callback) ⇒ AWS.Request
Deletes the specified replication task.
Service Reference:
Examples:
Delete Replication Task
/* Deletes the specified replication task. */
var params = {
ReplicationTaskArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ"
};
dms.deleteReplicationTask(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
ReplicationTask: {
MigrationType: "full-load",
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ",
ReplicationTaskArn: "arn:aws:dms:us-east-1:123456789012:task:OEAMB3NXSTZ6LFYZFEPPBBXPYM",
ReplicationTaskCreationDate: <Date Representation>,
ReplicationTaskIdentifier: "task1",
ReplicationTaskSettings: "{\"TargetMetadata\":{\"TargetSchema\":\"\",\"SupportLobs\":true,\"FullLobMode\":true,\"LobChunkSize\":64,\"LimitedSizeLobMode\":false,\"LobMaxSize\":0},\"FullLoadSettings\":{\"FullLoadEnabled\":true,\"ApplyChangesEnabled\":false,\"TargetTablePrepMode\":\"DROP_AND_CREATE\",\"CreatePkAfterFullLoad\":false,\"StopTaskCachedChangesApplied\":false,\"StopTaskCachedChangesNotApplied\":false,\"ResumeEnabled\":false,\"ResumeMinTableSize\":100000,\"ResumeOnlyClusteredPKTables\":true,\"MaxFullLoadSubTasks\":8,\"TransactionConsistencyTimeout\":600,\"CommitRate\":10000},\"Logging\":{\"EnableLogging\":false}}",
SourceEndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ZW5UAN6P4E77EC7YWHK4RZZ3BE",
Status: "creating",
TableMappings: "file://mappingfile.json",
TargetEndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E"
}
}
*/
});
Calling the deleteReplicationTask operation
var params = {
ReplicationTaskArn: 'STRING_VALUE' /* required */
};
dms.deleteReplicationTask(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task to be deleted.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationTask
— (map
)The deleted replication task.
ReplicationTaskIdentifier
— (String
)The user-assigned replication task identifier or name.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MigrationType
— (String
)The type of migration.
Possible values include:"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)Table mappings specified in the task.
ReplicationTaskSettings
— (String
)The settings for the replication task.
Status
— (String
)The status of the replication task.
LastFailureMessage
— (String
)The last error (failure) message generated for the replication instance.
StopReason
— (String
)The reason the replication task was stopped.
ReplicationTaskCreationDate
— (Date
)The date the replication task was created.
ReplicationTaskStartDate
— (Date
)The date the replication task is scheduled to start.
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPosition
orCdcStartTime
to specify when you want the CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
RecoveryCheckpoint
— (String
)Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the
CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskStats
— (map
)The statistics for the task, including elapsed time, tables loaded, and table errors.
FullLoadProgressPercent
— (Integer
)The percent complete for the full load migration task.
ElapsedTimeMillis
— (Integer
)The elapsed time of the task, in milliseconds.
TablesLoaded
— (Integer
)The number of tables loaded for this task.
TablesLoading
— (Integer
)The number of tables currently loading for this task.
TablesQueued
— (Integer
)The number of tables queued for this task.
TablesErrored
— (Integer
)The number of errors that have occurred during this task.
FreshStartDate
— (Date
)The date the replication task was started either with a fresh start or a target reload.
StartDate
— (Date
)The date the replication task was started either with a fresh start or a resume. For more information, see StartReplicationTaskType.
StopDate
— (Date
)The date the replication task was stopped.
FullLoadStartDate
— (Date
)The date the the replication task full load was started.
FullLoadFinishDate
— (Date
)The date the replication task full load was completed.
-
(AWS.Response)
—
Returns:
describeAccountAttributes(params = {}, callback) ⇒ AWS.Request
Lists all of the AWS DMS attributes for a customer account. These attributes include AWS DMS quotas for the account and a unique account identifier in a particular DMS region. DMS quotas include a list of resource quotas supported by the account, such as the number of replication instances allowed. The description for each resource quota, includes the quota name, current usage toward that quota, and the quota's maximum value. DMS uses the unique account identifier to name each artifact used by DMS in the given region.
This command does not take any parameters.
Service Reference:
Examples:
Describe acount attributes
/* Lists all of the AWS DMS attributes for a customer account. The attributes include AWS DMS quotas for the account, such as the number of replication instances allowed. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value. This operation does not take any parameters. */
var params = {
};
dms.describeAccountAttributes(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
AccountQuotas: [
{
AccountQuotaName: "ReplicationInstances",
Max: 20,
Used: 0
},
{
AccountQuotaName: "AllocatedStorage",
Max: 20,
Used: 0
},
{
AccountQuotaName: "Endpoints",
Max: 20,
Used: 0
}
]
}
*/
});
Calling the describeAccountAttributes operation
var params = {
};
dms.describeAccountAttributes(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
- params (Object) (defaults to: {})
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AccountQuotas
— (Array<map>
)Account quota information.
AccountQuotaName
— (String
)The name of the AWS DMS quota for this AWS account.
Used
— (Integer
)The amount currently used toward the quota maximum.
Max
— (Integer
)The maximum allowed value for the quota.
UniqueAccountIdentifier
— (String
)A unique AWS DMS identifier for an account in a particular AWS Region. The value of this identifier has the following format:
c99999999999
. DMS uses this identifier to name artifacts. For example, DMS uses this identifier to name the default Amazon S3 bucket for storing task assessment reports in a given AWS Region. The format of this S3 bucket name is the following:dms-AccountNumber-UniqueAccountIdentifier.
Here is an example name for this default S3 bucket:dms-111122223333-c44445555666
.Note: AWS DMS supports theUniqueAccountIdentifier
parameter in versions 3.1.4 and later.
-
(AWS.Response)
—
Returns:
describeCertificates(params = {}, callback) ⇒ AWS.Request
Provides a description of the certificate.
Service Reference:
Examples:
Describe certificates
/* Provides a description of the certificate. */
var params = {
Filters: [
{
Name: "string",
Values: [
"string",
"string"
]
}
],
Marker: "",
MaxRecords: 123
};
dms.describeCertificates(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Certificates: [
],
Marker: ""
}
*/
});
Calling the describeCertificates operation
var params = {
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE'
};
dms.describeCertificates(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Filters
— (Array<map>
)Filters applied to the certificate described in the form of key-value pairs.
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 10
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the vlue specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)The pagination token.
Certificates
— (Array<map>
)The Secure Sockets Layer (SSL) certificates associated with the replication instance.
CertificateIdentifier
— (String
)A customer-assigned name for the certificate. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
CertificateCreationDate
— (Date
)The date that the certificate was created.
CertificatePem
— (String
)The contents of a
.pem
file, which contains an X.509 certificate.CertificateWallet
— (Buffer, Typed Array, Blob, String
)The location of an imported Oracle Wallet certificate for use with SSL.
CertificateArn
— (String
)The Amazon Resource Name (ARN) for the certificate.
CertificateOwner
— (String
)The owner of the certificate.
ValidFromDate
— (Date
)The beginning date that the certificate is valid.
ValidToDate
— (Date
)The final date that the certificate is valid.
SigningAlgorithm
— (String
)The signing algorithm for the certificate.
KeyLength
— (Integer
)The key length of the cryptographic algorithm being used.
-
(AWS.Response)
—
Returns:
describeConnections(params = {}, callback) ⇒ AWS.Request
Describes the status of the connections that have been made between the replication instance and an endpoint. Connections are created when you test an endpoint.
Service Reference:
Examples:
Describe connections
/* Describes the status of the connections that have been made between the replication instance and an endpoint. Connections are created when you test an endpoint. */
var params = {
Filters: [
{
Name: "string",
Values: [
"string",
"string"
]
}
],
Marker: "",
MaxRecords: 123
};
dms.describeConnections(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Connections: [
{
EndpointArn: "arn:aws:dms:us-east-arn:aws:dms:us-east-1:123456789012:endpoint:ZW5UAN6P4E77EC7YWHK4RZZ3BE",
EndpointIdentifier: "testsrc1",
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ",
ReplicationInstanceIdentifier: "test",
Status: "successful"
}
],
Marker: ""
}
*/
});
Calling the describeConnections operation
var params = {
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE'
};
dms.describeConnections(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Filters
— (Array<map>
)The filters applied to the connection.
Valid filter names: endpoint-arn | replication-instance-arn
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.Connections
— (Array<map>
)A description of the connections.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
Status
— (String
)The connection status.
LastFailureMessage
— (String
)The error message when the connection last failed.
EndpointIdentifier
— (String
)The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
-
(AWS.Response)
—
Returns:
Waiter Resource States:
describeEndpoints(params = {}, callback) ⇒ AWS.Request
Returns information about the endpoints for your account in the current region.
Service Reference:
Examples:
Describe endpoints
/* Returns information about the endpoints for your account in the current region. */
var params = {
Filters: [
{
Name: "string",
Values: [
"string",
"string"
]
}
],
Marker: "",
MaxRecords: 123
};
dms.describeEndpoints(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Endpoints: [
],
Marker: ""
}
*/
});
Calling the describeEndpoints operation
var params = {
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE'
};
dms.describeEndpoints(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Filters
— (Array<map>
)Filters applied to the describe action.
Valid filter names: endpoint-arn | endpoint-type | endpoint-id | engine-name
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.Endpoints
— (Array<map>
)Endpoint description.
EndpointIdentifier
— (String
)The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
EndpointType
— (String
)The type of endpoint. Valid values are
Possible values include:source
andtarget
."source"
"target"
EngineName
— (String
)The database engine name. Valid values, depending on the EndpointType, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver.
EngineDisplayName
— (String
)The expanded name for the engine name. For example, if the
EngineName
parameter is "aurora," this value would be "Amazon Aurora MySQL."Username
— (String
)The user name used to connect to the endpoint.
ServerName
— (String
)The name of the server at the endpoint.
Port
— (Integer
)The port value used to access the endpoint.
DatabaseName
— (String
)The name of the database at the endpoint.
ExtraConnectionAttributes
— (String
)Additional connection attributes used to connect to the endpoint.
Status
— (String
)The status of the endpoint.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
CertificateArn
— (String
)The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
SslMode
— (String
)The SSL mode used to connect to the endpoint. The default value is
Possible values include:none
."none"
"require"
"verify-ca"
"verify-full"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
ExternalId
— (String
)Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a subsequent call to CreateEndpoint to create the endpoint with a cross-account.
DynamoDbSettings
— (map
)The settings for the target DynamoDB database. For more information, see the
DynamoDBSettings
structure.ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
S3Settings
— (map
)The settings for the S3 target endpoint. For more information, see the
S3Settings
structure.ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
CsvRowDelimiter
— (String
)The delimiter used to separate rows in the source files. The default is a carriage return (
\n
).CsvDelimiter
— (String
)The delimiter used to separate columns in the source files. The default is a comma.
BucketFolder
— (String
)An optional parameter to set a folder name in the S3 bucket. If provided, tables are created in the path
bucketFolder/schema_name/table_name/
. If this parameter is not specified, then the path used isschema_name/table_name/
.BucketName
— (String
)The name of the S3 bucket.
CompressionType
— (String
)An optional parameter to use GZIP to compress the target files. Set to GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed. Applies to both .csv and .parquet file formats.
Possible values include:"none"
"gzip"
EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, you need an AWS Identity and Access Management (IAM) role with permission to allow"arn:aws:s3:::dms-*"
to use the following actions:-
s3:CreateBucket
-
s3:ListBucket
-
s3:DeleteBucket
-
s3:GetBucketLocation
-
s3:GetObject
-
s3:PutObject
-
s3:DeleteObject
-
s3:GetObjectVersion
-
s3:GetBucketPolicy
-
s3:PutBucketPolicy
-
s3:DeleteBucketPolicy
"sse-s3"
"sse-kms"
-
ServerSideEncryptionKmsKeyId
— (String
)If you are using
SSE_KMS
for theEncryptionMode
, provide the AWS KMS key ID. The key that you use needs an attached policy that enables AWS Identity and Access Management (IAM) user permissions and allows use of the key.Here is a CLI example:
aws dms create-endpoint --endpoint-identifier value --endpoint-type target --engine-name s3 --s3-settings ServiceAccessRoleArn=value,BucketFolder=value,BucketName=value,EncryptionMode=SSE_KMS,ServerSideEncryptionKmsKeyId=value
DataFormat
— (String
)The format of the data that you want to use for output. You can choose one of the following:
-
csv
: This is a row-based file format with comma-separated values (.csv). -
parquet
: Apache Parquet (.parquet) is a columnar storage file format that features efficient compression and provides faster query response.
"csv"
"parquet"
-
EncodingType
— (String
)The type of encoding you are using:
-
RLE_DICTIONARY
uses a combination of bit-packing and run-length encoding to store repeated values more efficiently. This is the default. -
PLAIN
doesn't use encoding at all. Values are stored as they are. -
PLAIN_DICTIONARY
builds a dictionary of the values encountered in a given column. The dictionary is stored in a dictionary page for each column chunk.
"plain"
"plain-dictionary"
"rle-dictionary"
-
DictPageSizeLimit
— (Integer
)The maximum size of an encoded dictionary page of a column. If the dictionary page exceeds this, this column is stored using an encoding type of
PLAIN
. This parameter defaults to 1024 * 1024 bytes (1 MiB), the maximum size of a dictionary page before it reverts toPLAIN
encoding. This size is used for .parquet file format only.RowGroupLength
— (Integer
)The number of rows in a row group. A smaller row group size provides faster reads. But as the number of row groups grows, the slower writes become. This parameter defaults to 10,000 rows. This number is used for .parquet file format only.
If you choose a value larger than the maximum,
RowGroupLength
is set to the max row group length in bytes (64 * 1024 * 1024).DataPageSize
— (Integer
)The size of one data page in bytes. This parameter defaults to 1024 * 1024 bytes (1 MiB). This number is used for .parquet file format only.
ParquetVersion
— (String
)The version of the Apache Parquet format that you want to use:
Possible values include:parquet_1_0
(the default) orparquet_2_0
."parquet-1-0"
"parquet-2-0"
EnableStatistics
— (Boolean
)A value that enables statistics for Parquet pages and row groups. Choose
true
to enable statistics,false
to disable. Statistics includeNULL
,DISTINCT
,MAX
, andMIN
values. This parameter defaults totrue
. This value is used for .parquet file format only.IncludeOpForFullLoad
— (Boolean
)A value that enables a full load to write INSERT operations to the comma-separated value (.csv) output files only to indicate how the rows were added to the source database.
Note: AWS DMS supports theIncludeOpForFullLoad
parameter in versions 3.1.4 and later.For full load, records can only be inserted. By default (the
false
setting), no information is recorded in these output files for a full load to indicate that the rows were inserted at the source database. IfIncludeOpForFullLoad
is set totrue
ory
, the INSERT is recorded as an I annotation in the first field of the .csv file. This allows the format of your target records from a full load to be consistent with the target records from a CDC load.Note: This setting works together with theCdcInsertsOnly
parameter for output to .csv files only. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..CdcInsertsOnly
— (Boolean
)A value that enables a change data capture (CDC) load to write only INSERT operations to .csv or columnar storage (.parquet) output files. By default (the
false
setting), the first field in a .csv or .parquet record contains the letter I (INSERT), U (UPDATE), or D (DELETE). These values indicate whether the row was inserted, updated, or deleted at the source database for a CDC load to the target.If
CdcInsertsOnly
is set totrue
ory
, only INSERTs from the source database are migrated to the .csv or .parquet file. For .csv format only, how these INSERTs are recorded depends on the value ofIncludeOpForFullLoad
. IfIncludeOpForFullLoad
is set totrue
, the first field of every CDC record is set to I to indicate the INSERT operation at the source. IfIncludeOpForFullLoad
is set tofalse
, every CDC record is written without a first field to indicate the INSERT operation at the source. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..Note: AWS DMS supports this interaction between theCdcInsertsOnly
andIncludeOpForFullLoad
parameters in versions 3.1.4 and later.TimestampColumnName
— (String
)A value that when nonblank causes AWS DMS to add a column with timestamp information to the endpoint data for an Amazon S3 target.
Note: AWS DMS supports theTimestampColumnName
parameter in versions 3.1.4 and later.DMS includes an additional
STRING
column in the .csv or .parquet object files of your migrated data when you setTimestampColumnName
to a nonblank value.For a full load, each row of this timestamp column contains a timestamp for when the data was transferred from the source to the target by DMS.
For a change data capture (CDC) load, each row of the timestamp column contains the timestamp for the commit of that row in the source database.
The string format for this timestamp column value is
yyyy-MM-dd HH:mm:ss.SSSSSS
. By default, the precision of this value is in microseconds. For a CDC load, the rounding of the precision depends on the commit timestamp supported by DMS for the source database.When the
AddColumnName
parameter is set totrue
, DMS also includes a name for the timestamp column that you set withTimestampColumnName
.ParquetTimestampInMillisecond
— (Boolean
)A value that specifies the precision of any
TIMESTAMP
column values that are written to an Amazon S3 object file in .parquet format.Note: AWS DMS supports theParquetTimestampInMillisecond
parameter in versions 3.1.4 and later.When
ParquetTimestampInMillisecond
is set totrue
ory
, AWS DMS writes allTIMESTAMP
columns in a .parquet formatted file with millisecond precision. Otherwise, DMS writes them with microsecond precision.Currently, Amazon Athena and AWS Glue can handle only millisecond precision for
TIMESTAMP
values. Set this parameter totrue
for S3 endpoint object files that are .parquet formatted only if you plan to query or process the data with Athena or AWS Glue.Note: AWS DMS writes anyTIMESTAMP
column values written to an S3 file in .csv format with microsecond precision. SettingParquetTimestampInMillisecond
has no effect on the string format of the timestamp column value that is inserted by setting theTimestampColumnName
parameter.
DmsTransferSettings
— (map
)The settings in JSON format for the DMS transfer type of source endpoint.
Possible settings include the following:
-
ServiceAccessRoleArn
- The IAM role that has permission to access the Amazon S3 bucket. -
BucketName
- The name of the S3 bucket to use. -
CompressionType
- An optional parameter to use GZIP to compress the target files. To use GZIP, set this value toNONE
(the default). To keep the files uncompressed, don't use this value.
Shorthand syntax for these settings is as follows:
ServiceAccessRoleArn=string,BucketName=string,CompressionType=string
JSON syntax for these settings is as follows:
{ "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" }
ServiceAccessRoleArn
— (String
)The IAM role that has permission to access the Amazon S3 bucket.
BucketName
— (String
)The name of the S3 bucket to use.
-
MongoDbSettings
— (map
)The settings for the MongoDB source endpoint. For more information, see the
MongoDbSettings
structure.Username
— (String
)The user name you use to access the MongoDB source endpoint.
Password
— (String
)The password for the user account you use to access the MongoDB source endpoint.
ServerName
— (String
)The name of the server on the MongoDB source endpoint.
Port
— (Integer
)The port value for the MongoDB source endpoint.
DatabaseName
— (String
)The database name on the MongoDB source endpoint.
AuthType
— (String
)The authentication type you use to access the MongoDB source endpoint.
Valid values: NO, PASSWORD
When NO is selected, user name and password parameters are not used and can be empty.
Possible values include:"no"
"password"
AuthMechanism
— (String
)The authentication mechanism you use to access the MongoDB source endpoint.
Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1
DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This setting is not used when authType=No.
Possible values include:"default"
"mongodb_cr"
"scram_sha_1"
NestingLevel
— (String
)Specifies either document or table mode.
Valid values: NONE, ONE
Default value is NONE. Specify NONE to use document mode. Specify ONE to use table mode.
Possible values include:"none"
"one"
ExtractDocId
— (String
)Specifies the document ID. Use this setting when
NestingLevel
is set to NONE.Default value is false.
DocsToInvestigate
— (String
)Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel
is set to ONE.Must be a positive value greater than 0. Default value is 1000.
AuthSource
— (String
)The MongoDB database name. This setting is not used when
authType=NO
.The default is admin.
KmsKeyId
— (String
)The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
KinesisSettings
— (map
)The settings for the Amazon Kinesis source endpoint. For more information, see the
KinesisSettings
structure.StreamArn
— (String
)The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint.
MessageFormat
— (String
)The output format for the records created on the endpoint. The message format is
Possible values include:JSON
."json"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to the Amazon Kinesis data stream.
ElasticsearchSettings
— (map
)The settings for the Elasticsearch source endpoint. For more information, see the
ElasticsearchSettings
structure.ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by service to access the IAM role.
EndpointUri
— required — (String
)The endpoint for the Elasticsearch cluster.
FullLoadErrorPercentage
— (Integer
)The maximum percentage of records that can fail to be written before a full load operation stops.
ErrorRetryDuration
— (Integer
)The maximum number of seconds that DMS retries failed API requests to the Elasticsearch cluster.
RedshiftSettings
— (map
)Settings for the Amazon Redshift endpoint.
AcceptAnyDate
— (Boolean
)A value that indicates to allow any date format, including invalid formats such as 00/00/00 00:00:00, to be loaded without generating an error. You can choose
true
orfalse
(the default).This parameter applies only to TIMESTAMP and DATE columns. Always use ACCEPTANYDATE with the DATEFORMAT parameter. If the date format for the data doesn't match the DATEFORMAT specification, Amazon Redshift inserts a NULL value into that field.
AfterConnectScript
— (String
)Code to run after connecting. This parameter should contain the code itself, not the name of a file containing the code.
BucketFolder
— (String
)The location where the comma-separated value (.csv) files are stored before being uploaded to the S3 bucket.
BucketName
— (String
)The name of the S3 bucket you want to use
ConnectionTimeout
— (Integer
)A value that sets the amount of time to wait (in milliseconds) before timing out, beginning from when you initially establish a connection.
DatabaseName
— (String
)The name of the Amazon Redshift data warehouse (service) that you are working with.
DateFormat
— (String
)The date format that you are using. Valid values are
auto
(case-sensitive), your date format string enclosed in quotes, or NULL. If this parameter is left unset (NULL), it defaults to a format of 'YYYY-MM-DD'. Usingauto
recognizes most strings, even some that aren't supported when you use a date format string.If your date and time values use formats different from each other, set this to
auto
.EmptyAsNull
— (Boolean
)A value that specifies whether AWS DMS should migrate empty CHAR and VARCHAR fields as NULL. A value of
true
sets empty CHAR and VARCHAR fields to null. The default isfalse
.EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
Possible values include:SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, create an AWS Identity and Access Management (IAM) role with a policy that allows"arn:aws:s3:::*"
to use the following actions:"s3:PutObject", "s3:ListBucket"
"sse-s3"
"sse-kms"
FileTransferUploadStreams
— (Integer
)The number of threads used to upload a single file. This parameter accepts a value from 1 through 64. It defaults to 10.
LoadTimeout
— (Integer
)The amount of time to wait (in milliseconds) before timing out, beginning from when you begin loading.
MaxFileSize
— (Integer
)The maximum size (in KB) of any .csv file used to transfer data to Amazon Redshift. This accepts a value from 1 through 1,048,576. It defaults to 32,768 KB (32 MB).
Password
— (String
)The password for the user named in the
username
property.Port
— (Integer
)The port number for Amazon Redshift. The default value is 5439.
RemoveQuotes
— (Boolean
)A value that specifies to remove surrounding quotation marks from strings in the incoming data. All characters within the quotation marks, including delimiters, are retained. Choose
true
to remove quotation marks. The default isfalse
.ReplaceInvalidChars
— (String
)A list of characters that you want to replace. Use with
ReplaceChars
.ReplaceChars
— (String
)A value that specifies to replaces the invalid characters specified in
ReplaceInvalidChars
, substituting the specified characters instead. The default is"?"
.ServerName
— (String
)The name of the Amazon Redshift cluster you are using.
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM role that has access to the Amazon Redshift service.
ServerSideEncryptionKmsKeyId
— (String
)The AWS KMS key ID. If you are using
SSE_KMS
for theEncryptionMode
, provide this key ID. The key that you use needs an attached policy that enables IAM user permissions and allows use of the key.TimeFormat
— (String
)The time format that you want to use. Valid values are
auto
(case-sensitive),'timeformat_string'
,'epochsecs'
, or'epochmillisecs'
. It defaults to 10. Usingauto
recognizes most strings, even some that aren't supported when you use a time format string.If your date and time values use formats different from each other, set this parameter to
auto
.TrimBlanks
— (Boolean
)A value that specifies to remove the trailing white space characters from a VARCHAR string. This parameter applies only to columns with a VARCHAR data type. Choose
true
to remove unneeded white space. The default isfalse
.TruncateColumns
— (Boolean
)A value that specifies to truncate data in columns to the appropriate number of characters, so that the data fits in the column. This parameter applies only to columns with a VARCHAR or CHAR data type, and rows with a size of 4 MB or less. Choose
true
to truncate data. The default isfalse
.Username
— (String
)An Amazon Redshift user name for a registered user.
WriteBufferSize
— (Integer
)The size of the write buffer to use in rows. Valid values range from 1 through 2,048. The default is 1,024. Use this setting to tune performance.
-
(AWS.Response)
—
Returns:
Waiter Resource States:
describeEndpointTypes(params = {}, callback) ⇒ AWS.Request
Returns information about the type of endpoints available.
Service Reference:
Examples:
Describe endpoint types
/* Returns information about the type of endpoints available. */
var params = {
Filters: [
{
Name: "string",
Values: [
"string",
"string"
]
}
],
Marker: "",
MaxRecords: 123
};
dms.describeEndpointTypes(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Marker: "",
SupportedEndpointTypes: [
]
}
*/
});
Calling the describeEndpointTypes operation
var params = {
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE'
};
dms.describeEndpointTypes(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Filters
— (Array<map>
)Filters applied to the describe action.
Valid filter names: engine-name | endpoint-type
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.SupportedEndpointTypes
— (Array<map>
)The types of endpoints that are supported.
EngineName
— (String
)The database engine name. Valid values, depending on the EndpointType, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver.
SupportsCDC
— (Boolean
)Indicates if Change Data Capture (CDC) is supported.
EndpointType
— (String
)The type of endpoint. Valid values are
Possible values include:source
andtarget
."source"
"target"
EngineDisplayName
— (String
)The expanded name for the engine name. For example, if the
EngineName
parameter is "aurora," this value would be "Amazon Aurora MySQL."
-
(AWS.Response)
—
Returns:
describeEventCategories(params = {}, callback) ⇒ AWS.Request
Lists categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in Working with Events and Notifications in the AWS Database Migration Service User Guide.
Service Reference:
Examples:
Calling the describeEventCategories operation
var params = {
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
SourceType: 'STRING_VALUE'
};
dms.describeEventCategories(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
SourceType
— (String
)The type of AWS DMS resource that generates events.
Valid values: replication-instance | replication-task
Filters
— (Array<map>
)Filters applied to the action.
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:EventCategoryGroupList
— (Array<map>
)A list of event categories.
SourceType
— (String
)The type of AWS DMS resource that generates events.
Valid values: replication-instance | replication-server | security-group | replication-task
EventCategories
— (Array<String>
)A list of event categories from a source type that you've chosen.
-
(AWS.Response)
—
Returns:
describeEvents(params = {}, callback) ⇒ AWS.Request
Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS events, see Working with Events and Notifications in the AWS Database Migration User Guide.
Service Reference:
Examples:
Calling the describeEvents operation
var params = {
Duration: 'NUMBER_VALUE',
EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
EventCategories: [
'STRING_VALUE',
/* more items */
],
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE',
SourceIdentifier: 'STRING_VALUE',
SourceType: replication-instance,
StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
dms.describeEvents(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
SourceIdentifier
— (String
)The identifier of an event source.
SourceType
— (String
)The type of AWS DMS resource that generates events.
Valid values: replication-instance | replication-task
Possible values include:"replication-instance"
StartTime
— (Date
)The start time for the events to be listed.
EndTime
— (Date
)The end time for the events to be listed.
Duration
— (Integer
)The duration of the events to be listed.
EventCategories
— (Array<String>
)A list of event categories for the source type that you've chosen.
Filters
— (Array<map>
)Filters applied to the action.
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.Events
— (Array<map>
)The events described.
SourceIdentifier
— (String
)The identifier of an event source.
SourceType
— (String
)The type of AWS DMS resource that generates events.
Valid values: replication-instance | endpoint | replication-task
Possible values include:"replication-instance"
Message
— (String
)The event message.
EventCategories
— (Array<String>
)The event categories available for the specified source type.
Date
— (Date
)The date of the event.
-
(AWS.Response)
—
Returns:
describeEventSubscriptions(params = {}, callback) ⇒ AWS.Request
Lists all the event subscriptions for a customer account. The description of a subscription includes SubscriptionName
, SNSTopicARN
, CustomerID
, SourceType
, SourceID
, CreationTime
, and Status
.
If you specify SubscriptionName
, this action lists the description for that subscription.
Service Reference:
Examples:
Calling the describeEventSubscriptions operation
var params = {
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE',
SubscriptionName: 'STRING_VALUE'
};
dms.describeEventSubscriptions(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
SubscriptionName
— (String
)The name of the AWS DMS event subscription to be described.
Filters
— (Array<map>
)Filters applied to the action.
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.EventSubscriptionsList
— (Array<map>
)A list of event subscriptions.
CustomerAwsId
— (String
)The AWS customer account associated with the AWS DMS event notification subscription.
CustSubscriptionId
— (String
)The AWS DMS event notification subscription Id.
SnsTopicArn
— (String
)The topic ARN of the AWS DMS event notification subscription.
Status
— (String
)The status of the AWS DMS event notification subscription.
Constraints:
Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist
The status "no-permission" indicates that AWS DMS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
SubscriptionCreationTime
— (String
)The time the RDS event notification subscription was created.
SourceType
— (String
)The type of AWS DMS resource that generates events.
Valid values: replication-instance | replication-server | security-group | replication-task
SourceIdsList
— (Array<String>
)A list of source Ids for the event subscription.
EventCategoriesList
— (Array<String>
)A lists of event categories.
Enabled
— (Boolean
)Boolean value that indicates if the event subscription is enabled.
-
(AWS.Response)
—
Returns:
describeOrderableReplicationInstances(params = {}, callback) ⇒ AWS.Request
Returns information about the replication instance types that can be created in the specified region.
Service Reference:
Examples:
Describe orderable replication instances
/* Returns information about the replication instance types that can be created in the specified region. */
var params = {
Marker: "",
MaxRecords: 123
};
dms.describeOrderableReplicationInstances(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Marker: "",
OrderableReplicationInstances: [
]
}
*/
});
Calling the describeOrderableReplicationInstances operation
var params = {
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE'
};
dms.describeOrderableReplicationInstances(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:OrderableReplicationInstances
— (Array<map>
)The order-able replication instances available.
EngineVersion
— (String
)The version of the replication engine.
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
StorageType
— (String
)The type of storage used by the replication instance.
MinAllocatedStorage
— (Integer
)The minimum amount of storage (in gigabytes) that can be allocated for the replication instance.
MaxAllocatedStorage
— (Integer
)The minimum amount of storage (in gigabytes) that can be allocated for the replication instance.
DefaultAllocatedStorage
— (Integer
)The default amount of storage (in gigabytes) that is allocated for the replication instance.
IncludedAllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
AvailabilityZones
— (Array<String>
)List of Availability Zones for this replication instance.
ReleaseStatus
— (String
)The value returned when the specified
EngineVersion
of the replication instance is in Beta or test mode. This indicates some features might not work as expected.Note: AWS DMS supports thePossible values include:ReleaseStatus
parameter in versions 3.1.4 and later."beta"
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
-
(AWS.Response)
—
Returns:
describePendingMaintenanceActions(params = {}, callback) ⇒ AWS.Request
For internal use only
Service Reference:
Examples:
Calling the describePendingMaintenanceActions operation
var params = {
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE',
ReplicationInstanceArn: 'STRING_VALUE'
};
dms.describePendingMaintenanceActions(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
Filters
— (Array<map>
)Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:PendingMaintenanceActions
— (Array<map>
)The pending maintenance action.
ResourceIdentifier
— (String
)The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. For information about creating an ARN, see Constructing an Amazon Resource Name (ARN) for AWS DMS in the DMS documentation.
PendingMaintenanceActionDetails
— (Array<map>
)Detailed information about the pending maintenance action.
Action
— (String
)The type of pending maintenance action that is available for the resource.
AutoAppliedAfterDate
— (Date
)The date of the maintenance window when the action will be applied. The maintenance action will be applied to the resource during its first maintenance window after this date. If this date is specified, any
next-maintenance
opt-in requests are ignored.ForcedApplyDate
— (Date
)The date when the maintenance action will be automatically applied. The maintenance action will be applied to the resource on this date regardless of the maintenance window for the resource. If this date is specified, any
immediate
opt-in requests are ignored.OptInStatus
— (String
)Indicates the type of opt-in request that has been received for the resource.
CurrentApplyDate
— (Date
)The effective date when the pending maintenance action will be applied to the resource. This date takes into account opt-in requests received from the
ApplyPendingMaintenanceAction
API, theAutoAppliedAfterDate
, and theForcedApplyDate
. This value is blank if an opt-in request has not been received and nothing has been specified asAutoAppliedAfterDate
orForcedApplyDate
.Description
— (String
)A description providing more detail about the maintenance action.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
-
(AWS.Response)
—
Returns:
describeRefreshSchemasStatus(params = {}, callback) ⇒ AWS.Request
Returns the status of the RefreshSchemas operation.
Service Reference:
Examples:
Describe refresh schema status
/* Returns the status of the refresh-schemas operation. */
var params = {
EndpointArn: ""
};
dms.describeRefreshSchemasStatus(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
RefreshSchemasStatus: {
}
}
*/
});
Calling the describeRefreshSchemasStatus operation
var params = {
EndpointArn: 'STRING_VALUE' /* required */
};
dms.describeRefreshSchemasStatus(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RefreshSchemasStatus
— (map
)The status of the schema.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
Status
— (String
)The status of the schema.
Possible values include:"successful"
"failed"
"refreshing"
LastRefreshDate
— (Date
)The date the schema was last refreshed.
LastFailureMessage
— (String
)The last failure message for the schema.
-
(AWS.Response)
—
Returns:
describeReplicationInstances(params = {}, callback) ⇒ AWS.Request
Returns information about replication instances for your account in the current region.
Service Reference:
Examples:
Describe replication instances
/* Returns the status of the refresh-schemas operation. */
var params = {
Filters: [
{
Name: "string",
Values: [
"string",
"string"
]
}
],
Marker: "",
MaxRecords: 123
};
dms.describeReplicationInstances(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Marker: "",
ReplicationInstances: [
]
}
*/
});
Calling the describeReplicationInstances operation
var params = {
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE'
};
dms.describeReplicationInstances(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Filters
— (Array<map>
)Filters applied to the describe action.
Valid filter names: replication-instance-arn | replication-instance-id | replication-instance-class | engine-version
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.ReplicationInstances
— (Array<map>
)The replication instances described.
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance
-
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
ReplicationInstanceStatus
— (String
)The status of the replication instance.
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
InstanceCreateTime
— (Date
)The time the replication instance was created.
VpcSecurityGroups
— (Array<map>
)The VPC security group for the instance.
VpcSecurityGroupId
— (String
)The VPC security group Id.
Status
— (String
)The status of the VPC security group.
AvailabilityZone
— (String
)The Availability Zone for the instance.
ReplicationSubnetGroup
— (map
)The subnet group for the replication instance.
ReplicationSubnetGroupIdentifier
— (String
)The identifier of the replication instance subnet group.
ReplicationSubnetGroupDescription
— (String
)A description for the replication subnet group.
VpcId
— (String
)The ID of the VPC.
SubnetGroupStatus
— (String
)The status of the subnet group.
Subnets
— (Array<map>
)The subnets that are in the subnet group.
SubnetIdentifier
— (String
)The subnet identifier.
SubnetAvailabilityZone
— (map
)The Availability Zone of the subnet.
Name
— (String
)The name of the availability zone.
SubnetStatus
— (String
)The status of the subnet.
PreferredMaintenanceWindow
— (String
)The maintenance window times for the replication instance.
PendingModifiedValues
— (map
)The pending modification values.
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
AutoMinorVersionUpgrade
— (Boolean
)Boolean value indicating if minor version upgrades will be automatically applied to the instance.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
ReplicationInstancePublicIpAddress
— (String
)The public IP address of the replication instance.
ReplicationInstancePrivateIpAddress
— (String
)The private IP address of the replication instance.
ReplicationInstancePublicIpAddresses
— (Array<String>
)One or more public IP addresses for the replication instance.
ReplicationInstancePrivateIpAddresses
— (Array<String>
)One or more private IP addresses for the replication instance.
PubliclyAccessible
— (Boolean
)Specifies the accessibility options for the replication instance. A value of
true
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.SecondaryAvailabilityZone
— (String
)The availability zone of the standby replication instance in a Multi-AZ deployment.
FreeUntil
— (Date
)The expiration date of the free replication instance that is part of the Free DMS program.
DnsNameServers
— (String
)The DNS name servers for the replication instance.
-
(AWS.Response)
—
Returns:
Waiter Resource States:
describeReplicationInstanceTaskLogs(params = {}, callback) ⇒ AWS.Request
Returns information about the task logs for the specified task.
Service Reference:
Examples:
Calling the describeReplicationInstanceTaskLogs operation
var params = {
ReplicationInstanceArn: 'STRING_VALUE', /* required */
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE'
};
dms.describeReplicationInstanceTaskLogs(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
ReplicationInstanceTaskLogs
— (Array<map>
)An array of replication task log metadata. Each member of the array contains the replication task name, ARN, and task log size (in bytes).
ReplicationTaskName
— (String
)The name of the replication task.
ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationInstanceTaskLogSize
— (Integer
)The size, in bytes, of the replication task log.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
-
(AWS.Response)
—
Returns:
describeReplicationSubnetGroups(params = {}, callback) ⇒ AWS.Request
Returns information about the replication subnet groups.
Service Reference:
Examples:
Describe replication subnet groups
/* Returns information about the replication subnet groups. */
var params = {
Filters: [
{
Name: "string",
Values: [
"string",
"string"
]
}
],
Marker: "",
MaxRecords: 123
};
dms.describeReplicationSubnetGroups(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Marker: "",
ReplicationSubnetGroups: [
]
}
*/
});
Calling the describeReplicationSubnetGroups operation
var params = {
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE'
};
dms.describeReplicationSubnetGroups(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Filters
— (Array<map>
)Filters applied to the describe action.
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.ReplicationSubnetGroups
— (Array<map>
)A description of the replication subnet groups.
ReplicationSubnetGroupIdentifier
— (String
)The identifier of the replication instance subnet group.
ReplicationSubnetGroupDescription
— (String
)A description for the replication subnet group.
VpcId
— (String
)The ID of the VPC.
SubnetGroupStatus
— (String
)The status of the subnet group.
Subnets
— (Array<map>
)The subnets that are in the subnet group.
SubnetIdentifier
— (String
)The subnet identifier.
SubnetAvailabilityZone
— (map
)The Availability Zone of the subnet.
Name
— (String
)The name of the availability zone.
SubnetStatus
— (String
)The status of the subnet.
-
(AWS.Response)
—
Returns:
describeReplicationTaskAssessmentResults(params = {}, callback) ⇒ AWS.Request
Returns the task assessment results from Amazon S3. This action always returns the latest results.
Service Reference:
Examples:
Calling the describeReplicationTaskAssessmentResults operation
var params = {
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE',
ReplicationTaskArn: 'STRING_VALUE'
};
dms.describeReplicationTaskAssessmentResults(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationTaskArn
— (String
)- The Amazon Resource Name (ARN) string that uniquely identifies the task. When this input parameter is specified the API will return only one result and ignore the values of the max-records and marker parameters.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.BucketName
— (String
)- The Amazon S3 bucket where the task assessment report is located.
ReplicationTaskAssessmentResults
— (Array<map>
)The task assessment report.
ReplicationTaskIdentifier
— (String
)The replication task identifier of the task on which the task assessment was run.
ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskLastAssessmentDate
— (Date
)The date the task assessment was completed.
AssessmentStatus
— (String
)The status of the task assessment.
AssessmentResultsFile
— (String
)The file containing the results of the task assessment.
AssessmentResults
— (String
)The task assessment results in JSON format.
S3ObjectUrl
— (String
)The URL of the S3 object containing the task assessment results.
-
(AWS.Response)
—
Returns:
describeReplicationTasks(params = {}, callback) ⇒ AWS.Request
Returns information about replication tasks for your account in the current region.
Service Reference:
Examples:
Describe replication tasks
/* Returns information about replication tasks for your account in the current region. */
var params = {
Filters: [
{
Name: "string",
Values: [
"string",
"string"
]
}
],
Marker: "",
MaxRecords: 123
};
dms.describeReplicationTasks(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Marker: "",
ReplicationTasks: [
]
}
*/
});
Calling the describeReplicationTasks operation
var params = {
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE',
WithoutSettings: true || false
};
dms.describeReplicationTasks(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
Filters
— (Array<map>
)Filters applied to the describe action.
Valid filter names: replication-task-arn | replication-task-id | migration-type | endpoint-arn | replication-instance-arn
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.WithoutSettings
— (Boolean
)An option to set to avoid returning information about settings. Use this to reduce overhead when setting information is too large. To use this option, choose
true
; otherwise, choosefalse
(the default).
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.ReplicationTasks
— (Array<map>
)A description of the replication tasks.
ReplicationTaskIdentifier
— (String
)The user-assigned replication task identifier or name.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MigrationType
— (String
)The type of migration.
Possible values include:"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)Table mappings specified in the task.
ReplicationTaskSettings
— (String
)The settings for the replication task.
Status
— (String
)The status of the replication task.
LastFailureMessage
— (String
)The last error (failure) message generated for the replication instance.
StopReason
— (String
)The reason the replication task was stopped.
ReplicationTaskCreationDate
— (Date
)The date the replication task was created.
ReplicationTaskStartDate
— (Date
)The date the replication task is scheduled to start.
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPosition
orCdcStartTime
to specify when you want the CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
RecoveryCheckpoint
— (String
)Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the
CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskStats
— (map
)The statistics for the task, including elapsed time, tables loaded, and table errors.
FullLoadProgressPercent
— (Integer
)The percent complete for the full load migration task.
ElapsedTimeMillis
— (Integer
)The elapsed time of the task, in milliseconds.
TablesLoaded
— (Integer
)The number of tables loaded for this task.
TablesLoading
— (Integer
)The number of tables currently loading for this task.
TablesQueued
— (Integer
)The number of tables queued for this task.
TablesErrored
— (Integer
)The number of errors that have occurred during this task.
FreshStartDate
— (Date
)The date the replication task was started either with a fresh start or a target reload.
StartDate
— (Date
)The date the replication task was started either with a fresh start or a resume. For more information, see StartReplicationTaskType.
StopDate
— (Date
)The date the replication task was stopped.
FullLoadStartDate
— (Date
)The date the the replication task full load was started.
FullLoadFinishDate
— (Date
)The date the replication task full load was completed.
-
(AWS.Response)
—
Returns:
Waiter Resource States:
describeSchemas(params = {}, callback) ⇒ AWS.Request
Examples:
Describe schemas
/* Returns information about the schema for the specified endpoint. */
var params = {
EndpointArn: "",
Marker: "",
MaxRecords: 123
};
dms.describeSchemas(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Marker: "",
Schemas: [
]
}
*/
});
Calling the describeSchemas operation
var params = {
EndpointArn: 'STRING_VALUE', /* required */
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE'
};
dms.describeSchemas(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.Schemas
— (Array<String>
)The described schema.
-
(AWS.Response)
—
Returns:
describeTableStatistics(params = {}, callback) ⇒ AWS.Request
Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted.
Note that the "last updated" column the DMS console only indicates the time that AWS DMS last updated the table statistics record for a table. It does not indicate the time of the last update to the table.
Service Reference:
Examples:
Describe table statistics
/* Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted. */
var params = {
Marker: "",
MaxRecords: 123,
ReplicationTaskArn: ""
};
dms.describeTableStatistics(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Marker: "",
ReplicationTaskArn: "",
TableStatistics: [
]
}
*/
});
Calling the describeTableStatistics operation
var params = {
ReplicationTaskArn: 'STRING_VALUE', /* required */
Filters: [
{
Name: 'STRING_VALUE', /* required */
Values: [ /* required */
'STRING_VALUE',
/* more items */
]
},
/* more items */
],
Marker: 'STRING_VALUE',
MaxRecords: 'NUMBER_VALUE'
};
dms.describeTableStatistics(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 500.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.Filters
— (Array<map>
)Filters applied to the describe table statistics action.
Valid filter names: schema-name | table-name | table-state
A combination of filters creates an AND condition where each record matches all specified filters.
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
TableStatistics
— (Array<map>
)The table statistics.
SchemaName
— (String
)The schema name.
TableName
— (String
)The name of the table.
Inserts
— (Integer
)The number of insert actions performed on a table.
Deletes
— (Integer
)The number of delete actions performed on a table.
Updates
— (Integer
)The number of update actions performed on a table.
Ddls
— (Integer
)The Data Definition Language (DDL) used to build and modify the structure of your tables.
FullLoadRows
— (Integer
)The number of rows added during the Full Load operation.
FullLoadCondtnlChkFailedRows
— (Integer
)The number of rows that failed conditional checks during the Full Load operation (valid only for DynamoDB as a target migrations).
FullLoadErrorRows
— (Integer
)The number of rows that failed to load during the Full Load operation (valid only for DynamoDB as a target migrations).
LastUpdateTime
— (Date
)The last time the table was updated.
TableState
— (String
)The state of the tables described.
Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table error | Table all | Table updates | Table is being reloaded
ValidationPendingRecords
— (Integer
)The number of records that have yet to be validated.
ValidationFailedRecords
— (Integer
)The number of records that failed validation.
ValidationSuspendedRecords
— (Integer
)The number of records that could not be validated.
ValidationState
— (String
)The validation state of the table.
The parameter can have the following values
-
Not enabled—Validation is not enabled for the table in the migration task.
-
Pending records—Some records in the table are waiting for validation.
-
Mismatched records—Some records in the table do not match between the source and target.
-
Suspended records—Some records in the table could not be validated.
-
No primary key—The table could not be validated because it had no primary key.
-
Table error—The table was not validated because it was in an error state and some data was not migrated.
-
Validated—All rows in the table were validated. If the table is updated, the status can change from Validated.
-
Error—The table could not be validated because of an unexpected error.
-
ValidationStateDetails
— (String
)Additional details about the state of validation.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
-
(AWS.Response)
—
Returns:
importCertificate(params = {}, callback) ⇒ AWS.Request
Uploads the specified certificate.
Service Reference:
Examples:
Import certificate
/* Uploads the specified certificate. */
var params = {
CertificateIdentifier: "",
CertificatePem: ""
};
dms.importCertificate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Certificate: {
}
}
*/
});
Calling the importCertificate operation
var params = {
CertificateIdentifier: 'STRING_VALUE', /* required */
CertificatePem: 'STRING_VALUE',
CertificateWallet: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */,
Tags: [
{
Key: 'STRING_VALUE',
Value: 'STRING_VALUE'
},
/* more items */
]
};
dms.importCertificate(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
CertificateIdentifier
— (String
)A customer-assigned name for the certificate. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
CertificatePem
— (String
)The contents of a
.pem
file, which contains an X.509 certificate.CertificateWallet
— (Buffer, Typed Array, Blob, String
)The location of an imported Oracle Wallet certificate for use with SSL.
Tags
— (Array<map>
)The tags associated with the certificate.
Key
— (String
)A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").Value
— (String
)A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Certificate
— (map
)The certificate to be uploaded.
CertificateIdentifier
— (String
)A customer-assigned name for the certificate. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
CertificateCreationDate
— (Date
)The date that the certificate was created.
CertificatePem
— (String
)The contents of a
.pem
file, which contains an X.509 certificate.CertificateWallet
— (Buffer, Typed Array, Blob, String
)The location of an imported Oracle Wallet certificate for use with SSL.
CertificateArn
— (String
)The Amazon Resource Name (ARN) for the certificate.
CertificateOwner
— (String
)The owner of the certificate.
ValidFromDate
— (Date
)The beginning date that the certificate is valid.
ValidToDate
— (Date
)The final date that the certificate is valid.
SigningAlgorithm
— (String
)The signing algorithm for the certificate.
KeyLength
— (Integer
)The key length of the cryptographic algorithm being used.
-
(AWS.Response)
—
Returns:
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists all tags for an AWS DMS resource.
Service Reference:
Examples:
List tags for resource
/* Lists all tags for an AWS DMS resource. */
var params = {
ResourceArn: ""
};
dms.listTagsForResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
TagList: [
]
}
*/
});
Calling the listTagsForResource operation
var params = {
ResourceArn: 'STRING_VALUE' /* required */
};
dms.listTagsForResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the AWS DMS resource.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:TagList
— (Array<map>
)A list of tags for the resource.
Key
— (String
)A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").Value
— (String
)A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p
{L}\\p{Z}\\p{N}
.:/=+\-]*)$").
-
(AWS.Response)
—
Returns:
modifyEndpoint(params = {}, callback) ⇒ AWS.Request
Modifies the specified endpoint.
Service Reference:
Examples:
Modify endpoint
/* Modifies the specified endpoint. */
var params = {
CertificateArn: "",
DatabaseName: "",
EndpointArn: "",
EndpointIdentifier: "",
EndpointType: "source",
EngineName: "",
ExtraConnectionAttributes: "",
Password: "",
Port: 123,
ServerName: "",
SslMode: "require",
Username: ""
};
dms.modifyEndpoint(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Endpoint: {
}
}
*/
});
Calling the modifyEndpoint operation
var params = {
EndpointArn: 'STRING_VALUE', /* required */
CertificateArn: 'STRING_VALUE',
DatabaseName: 'STRING_VALUE',
DmsTransferSettings: {
BucketName: 'STRING_VALUE',
ServiceAccessRoleArn: 'STRING_VALUE'
},
DynamoDbSettings: {
ServiceAccessRoleArn: 'STRING_VALUE' /* required */
},
ElasticsearchSettings: {
EndpointUri: 'STRING_VALUE', /* required */
ServiceAccessRoleArn: 'STRING_VALUE', /* required */
ErrorRetryDuration: 'NUMBER_VALUE',
FullLoadErrorPercentage: 'NUMBER_VALUE'
},
EndpointIdentifier: 'STRING_VALUE',
EndpointType: source | target,
EngineName: 'STRING_VALUE',
ExternalTableDefinition: 'STRING_VALUE',
ExtraConnectionAttributes: 'STRING_VALUE',
KinesisSettings: {
MessageFormat: json,
ServiceAccessRoleArn: 'STRING_VALUE',
StreamArn: 'STRING_VALUE'
},
MongoDbSettings: {
AuthMechanism: default | mongodb_cr | scram_sha_1,
AuthSource: 'STRING_VALUE',
AuthType: no | password,
DatabaseName: 'STRING_VALUE',
DocsToInvestigate: 'STRING_VALUE',
ExtractDocId: 'STRING_VALUE',
KmsKeyId: 'STRING_VALUE',
NestingLevel: none | one,
Password: 'STRING_VALUE',
Port: 'NUMBER_VALUE',
ServerName: 'STRING_VALUE',
Username: 'STRING_VALUE'
},
Password: 'STRING_VALUE',
Port: 'NUMBER_VALUE',
RedshiftSettings: {
AcceptAnyDate: true || false,
AfterConnectScript: 'STRING_VALUE',
BucketFolder: 'STRING_VALUE',
BucketName: 'STRING_VALUE',
ConnectionTimeout: 'NUMBER_VALUE',
DatabaseName: 'STRING_VALUE',
DateFormat: 'STRING_VALUE',
EmptyAsNull: true || false,
EncryptionMode: sse-s3 | sse-kms,
FileTransferUploadStreams: 'NUMBER_VALUE',
LoadTimeout: 'NUMBER_VALUE',
MaxFileSize: 'NUMBER_VALUE',
Password: 'STRING_VALUE',
Port: 'NUMBER_VALUE',
RemoveQuotes: true || false,
ReplaceChars: 'STRING_VALUE',
ReplaceInvalidChars: 'STRING_VALUE',
ServerName: 'STRING_VALUE',
ServerSideEncryptionKmsKeyId: 'STRING_VALUE',
ServiceAccessRoleArn: 'STRING_VALUE',
TimeFormat: 'STRING_VALUE',
TrimBlanks: true || false,
TruncateColumns: true || false,
Username: 'STRING_VALUE',
WriteBufferSize: 'NUMBER_VALUE'
},
S3Settings: {
BucketFolder: 'STRING_VALUE',
BucketName: 'STRING_VALUE',
CdcInsertsOnly: true || false,
CompressionType: none | gzip,
CsvDelimiter: 'STRING_VALUE',
CsvRowDelimiter: 'STRING_VALUE',
DataFormat: csv | parquet,
DataPageSize: 'NUMBER_VALUE',
DictPageSizeLimit: 'NUMBER_VALUE',
EnableStatistics: true || false,
EncodingType: plain | plain-dictionary | rle-dictionary,
EncryptionMode: sse-s3 | sse-kms,
ExternalTableDefinition: 'STRING_VALUE',
IncludeOpForFullLoad: true || false,
ParquetTimestampInMillisecond: true || false,
ParquetVersion: parquet-1-0 | parquet-2-0,
RowGroupLength: 'NUMBER_VALUE',
ServerSideEncryptionKmsKeyId: 'STRING_VALUE',
ServiceAccessRoleArn: 'STRING_VALUE',
TimestampColumnName: 'STRING_VALUE'
},
ServerName: 'STRING_VALUE',
ServiceAccessRoleArn: 'STRING_VALUE',
SslMode: none | require | verify-ca | verify-full,
Username: 'STRING_VALUE'
};
dms.modifyEndpoint(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
EndpointIdentifier
— (String
)The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
EndpointType
— (String
)The type of endpoint. Valid values are
Possible values include:source
andtarget
."source"
"target"
EngineName
— (String
)The type of engine for the endpoint. Valid values, depending on the EndpointType, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver.
Username
— (String
)The user name to be used to login to the endpoint database.
Password
— (String
)The password to be used to login to the endpoint database.
ServerName
— (String
)The name of the server where the endpoint database resides.
Port
— (Integer
)The port used by the endpoint database.
DatabaseName
— (String
)The name of the endpoint database.
ExtraConnectionAttributes
— (String
)Additional attributes associated with the connection. To reset this parameter, pass the empty string ("") as an argument.
CertificateArn
— (String
)The Amazon Resource Name (ARN) of the certificate used for SSL connection.
SslMode
— (String
)The SSL mode used to connect to the endpoint. The default value is
Possible values include:none
."none"
"require"
"verify-ca"
"verify-full"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) for the service access role you want to use to modify the endpoint.
ExternalTableDefinition
— (String
)The external table definition.
DynamoDbSettings
— (map
)Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the available settings, see Using Object Mapping to Migrate Data to DynamoDB in the AWS Database Migration Service User Guide.
ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
S3Settings
— (map
)Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see Extra Connection Attributes When Using Amazon S3 as a Target for AWS DMS in the AWS Database Migration Service User Guide.
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
CsvRowDelimiter
— (String
)The delimiter used to separate rows in the source files. The default is a carriage return (
\n
).CsvDelimiter
— (String
)The delimiter used to separate columns in the source files. The default is a comma.
BucketFolder
— (String
)An optional parameter to set a folder name in the S3 bucket. If provided, tables are created in the path
bucketFolder/schema_name/table_name/
. If this parameter is not specified, then the path used isschema_name/table_name/
.BucketName
— (String
)The name of the S3 bucket.
CompressionType
— (String
)An optional parameter to use GZIP to compress the target files. Set to GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed. Applies to both .csv and .parquet file formats.
Possible values include:"none"
"gzip"
EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, you need an AWS Identity and Access Management (IAM) role with permission to allow"arn:aws:s3:::dms-*"
to use the following actions:-
s3:CreateBucket
-
s3:ListBucket
-
s3:DeleteBucket
-
s3:GetBucketLocation
-
s3:GetObject
-
s3:PutObject
-
s3:DeleteObject
-
s3:GetObjectVersion
-
s3:GetBucketPolicy
-
s3:PutBucketPolicy
-
s3:DeleteBucketPolicy
"sse-s3"
"sse-kms"
-
ServerSideEncryptionKmsKeyId
— (String
)If you are using
SSE_KMS
for theEncryptionMode
, provide the AWS KMS key ID. The key that you use needs an attached policy that enables AWS Identity and Access Management (IAM) user permissions and allows use of the key.Here is a CLI example:
aws dms create-endpoint --endpoint-identifier value --endpoint-type target --engine-name s3 --s3-settings ServiceAccessRoleArn=value,BucketFolder=value,BucketName=value,EncryptionMode=SSE_KMS,ServerSideEncryptionKmsKeyId=value
DataFormat
— (String
)The format of the data that you want to use for output. You can choose one of the following:
-
csv
: This is a row-based file format with comma-separated values (.csv). -
parquet
: Apache Parquet (.parquet) is a columnar storage file format that features efficient compression and provides faster query response.
"csv"
"parquet"
-
EncodingType
— (String
)The type of encoding you are using:
-
RLE_DICTIONARY
uses a combination of bit-packing and run-length encoding to store repeated values more efficiently. This is the default. -
PLAIN
doesn't use encoding at all. Values are stored as they are. -
PLAIN_DICTIONARY
builds a dictionary of the values encountered in a given column. The dictionary is stored in a dictionary page for each column chunk.
"plain"
"plain-dictionary"
"rle-dictionary"
-
DictPageSizeLimit
— (Integer
)The maximum size of an encoded dictionary page of a column. If the dictionary page exceeds this, this column is stored using an encoding type of
PLAIN
. This parameter defaults to 1024 * 1024 bytes (1 MiB), the maximum size of a dictionary page before it reverts toPLAIN
encoding. This size is used for .parquet file format only.RowGroupLength
— (Integer
)The number of rows in a row group. A smaller row group size provides faster reads. But as the number of row groups grows, the slower writes become. This parameter defaults to 10,000 rows. This number is used for .parquet file format only.
If you choose a value larger than the maximum,
RowGroupLength
is set to the max row group length in bytes (64 * 1024 * 1024).DataPageSize
— (Integer
)The size of one data page in bytes. This parameter defaults to 1024 * 1024 bytes (1 MiB). This number is used for .parquet file format only.
ParquetVersion
— (String
)The version of the Apache Parquet format that you want to use:
Possible values include:parquet_1_0
(the default) orparquet_2_0
."parquet-1-0"
"parquet-2-0"
EnableStatistics
— (Boolean
)A value that enables statistics for Parquet pages and row groups. Choose
true
to enable statistics,false
to disable. Statistics includeNULL
,DISTINCT
,MAX
, andMIN
values. This parameter defaults totrue
. This value is used for .parquet file format only.IncludeOpForFullLoad
— (Boolean
)A value that enables a full load to write INSERT operations to the comma-separated value (.csv) output files only to indicate how the rows were added to the source database.
Note: AWS DMS supports theIncludeOpForFullLoad
parameter in versions 3.1.4 and later.For full load, records can only be inserted. By default (the
false
setting), no information is recorded in these output files for a full load to indicate that the rows were inserted at the source database. IfIncludeOpForFullLoad
is set totrue
ory
, the INSERT is recorded as an I annotation in the first field of the .csv file. This allows the format of your target records from a full load to be consistent with the target records from a CDC load.Note: This setting works together with theCdcInsertsOnly
parameter for output to .csv files only. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..CdcInsertsOnly
— (Boolean
)A value that enables a change data capture (CDC) load to write only INSERT operations to .csv or columnar storage (.parquet) output files. By default (the
false
setting), the first field in a .csv or .parquet record contains the letter I (INSERT), U (UPDATE), or D (DELETE). These values indicate whether the row was inserted, updated, or deleted at the source database for a CDC load to the target.If
CdcInsertsOnly
is set totrue
ory
, only INSERTs from the source database are migrated to the .csv or .parquet file. For .csv format only, how these INSERTs are recorded depends on the value ofIncludeOpForFullLoad
. IfIncludeOpForFullLoad
is set totrue
, the first field of every CDC record is set to I to indicate the INSERT operation at the source. IfIncludeOpForFullLoad
is set tofalse
, every CDC record is written without a first field to indicate the INSERT operation at the source. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..Note: AWS DMS supports this interaction between theCdcInsertsOnly
andIncludeOpForFullLoad
parameters in versions 3.1.4 and later.TimestampColumnName
— (String
)A value that when nonblank causes AWS DMS to add a column with timestamp information to the endpoint data for an Amazon S3 target.
Note: AWS DMS supports theTimestampColumnName
parameter in versions 3.1.4 and later.DMS includes an additional
STRING
column in the .csv or .parquet object files of your migrated data when you setTimestampColumnName
to a nonblank value.For a full load, each row of this timestamp column contains a timestamp for when the data was transferred from the source to the target by DMS.
For a change data capture (CDC) load, each row of the timestamp column contains the timestamp for the commit of that row in the source database.
The string format for this timestamp column value is
yyyy-MM-dd HH:mm:ss.SSSSSS
. By default, the precision of this value is in microseconds. For a CDC load, the rounding of the precision depends on the commit timestamp supported by DMS for the source database.When the
AddColumnName
parameter is set totrue
, DMS also includes a name for the timestamp column that you set withTimestampColumnName
.ParquetTimestampInMillisecond
— (Boolean
)A value that specifies the precision of any
TIMESTAMP
column values that are written to an Amazon S3 object file in .parquet format.Note: AWS DMS supports theParquetTimestampInMillisecond
parameter in versions 3.1.4 and later.When
ParquetTimestampInMillisecond
is set totrue
ory
, AWS DMS writes allTIMESTAMP
columns in a .parquet formatted file with millisecond precision. Otherwise, DMS writes them with microsecond precision.Currently, Amazon Athena and AWS Glue can handle only millisecond precision for
TIMESTAMP
values. Set this parameter totrue
for S3 endpoint object files that are .parquet formatted only if you plan to query or process the data with Athena or AWS Glue.Note: AWS DMS writes anyTIMESTAMP
column values written to an S3 file in .csv format with microsecond precision. SettingParquetTimestampInMillisecond
has no effect on the string format of the timestamp column value that is inserted by setting theTimestampColumnName
parameter.
DmsTransferSettings
— (map
)The settings in JSON format for the DMS transfer type of source endpoint.
Attributes include the following:
-
serviceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket.
-
BucketName - The name of the S3 bucket to use.
-
compressionType - An optional parameter to use GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed.
Shorthand syntax: ServiceAccessRoleArn=string ,BucketName=string,CompressionType=string
JSON syntax:
{ "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" }
ServiceAccessRoleArn
— (String
)The IAM role that has permission to access the Amazon S3 bucket.
BucketName
— (String
)The name of the S3 bucket to use.
-
MongoDbSettings
— (map
)Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the configuration properties section in Using MongoDB as a Target for AWS Database Migration Service in the AWS Database Migration Service User Guide.
Username
— (String
)The user name you use to access the MongoDB source endpoint.
Password
— (String
)The password for the user account you use to access the MongoDB source endpoint.
ServerName
— (String
)The name of the server on the MongoDB source endpoint.
Port
— (Integer
)The port value for the MongoDB source endpoint.
DatabaseName
— (String
)The database name on the MongoDB source endpoint.
AuthType
— (String
)The authentication type you use to access the MongoDB source endpoint.
Valid values: NO, PASSWORD
When NO is selected, user name and password parameters are not used and can be empty.
Possible values include:"no"
"password"
AuthMechanism
— (String
)The authentication mechanism you use to access the MongoDB source endpoint.
Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1
DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This setting is not used when authType=No.
Possible values include:"default"
"mongodb_cr"
"scram_sha_1"
NestingLevel
— (String
)Specifies either document or table mode.
Valid values: NONE, ONE
Default value is NONE. Specify NONE to use document mode. Specify ONE to use table mode.
Possible values include:"none"
"one"
ExtractDocId
— (String
)Specifies the document ID. Use this setting when
NestingLevel
is set to NONE.Default value is false.
DocsToInvestigate
— (String
)Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel
is set to ONE.Must be a positive value greater than 0. Default value is 1000.
AuthSource
— (String
)The MongoDB database name. This setting is not used when
authType=NO
.The default is admin.
KmsKeyId
— (String
)The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
KinesisSettings
— (map
)Settings in JSON format for the target Amazon Kinesis Data Streams endpoint. For more information about the available settings, see Using Object Mapping to Migrate Data to a Kinesis Data Stream in the AWS Database Migration User Guide.
StreamArn
— (String
)The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint.
MessageFormat
— (String
)The output format for the records created on the endpoint. The message format is
Possible values include:JSON
."json"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to the Amazon Kinesis data stream.
ElasticsearchSettings
— (map
)Settings in JSON format for the target Elasticsearch endpoint. For more information about the available settings, see Extra Connection Attributes When Using Elasticsearch as a Target for AWS DMS in the AWS Database Migration User Guide.
ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by service to access the IAM role.
EndpointUri
— required — (String
)The endpoint for the Elasticsearch cluster.
FullLoadErrorPercentage
— (Integer
)The maximum percentage of records that can fail to be written before a full load operation stops.
ErrorRetryDuration
— (Integer
)The maximum number of seconds that DMS retries failed API requests to the Elasticsearch cluster.
RedshiftSettings
— (map
)AcceptAnyDate
— (Boolean
)A value that indicates to allow any date format, including invalid formats such as 00/00/00 00:00:00, to be loaded without generating an error. You can choose
true
orfalse
(the default).This parameter applies only to TIMESTAMP and DATE columns. Always use ACCEPTANYDATE with the DATEFORMAT parameter. If the date format for the data doesn't match the DATEFORMAT specification, Amazon Redshift inserts a NULL value into that field.
AfterConnectScript
— (String
)Code to run after connecting. This parameter should contain the code itself, not the name of a file containing the code.
BucketFolder
— (String
)The location where the comma-separated value (.csv) files are stored before being uploaded to the S3 bucket.
BucketName
— (String
)The name of the S3 bucket you want to use
ConnectionTimeout
— (Integer
)A value that sets the amount of time to wait (in milliseconds) before timing out, beginning from when you initially establish a connection.
DatabaseName
— (String
)The name of the Amazon Redshift data warehouse (service) that you are working with.
DateFormat
— (String
)The date format that you are using. Valid values are
auto
(case-sensitive), your date format string enclosed in quotes, or NULL. If this parameter is left unset (NULL), it defaults to a format of 'YYYY-MM-DD'. Usingauto
recognizes most strings, even some that aren't supported when you use a date format string.If your date and time values use formats different from each other, set this to
auto
.EmptyAsNull
— (Boolean
)A value that specifies whether AWS DMS should migrate empty CHAR and VARCHAR fields as NULL. A value of
true
sets empty CHAR and VARCHAR fields to null. The default isfalse
.EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
Possible values include:SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, create an AWS Identity and Access Management (IAM) role with a policy that allows"arn:aws:s3:::*"
to use the following actions:"s3:PutObject", "s3:ListBucket"
"sse-s3"
"sse-kms"
FileTransferUploadStreams
— (Integer
)The number of threads used to upload a single file. This parameter accepts a value from 1 through 64. It defaults to 10.
LoadTimeout
— (Integer
)The amount of time to wait (in milliseconds) before timing out, beginning from when you begin loading.
MaxFileSize
— (Integer
)The maximum size (in KB) of any .csv file used to transfer data to Amazon Redshift. This accepts a value from 1 through 1,048,576. It defaults to 32,768 KB (32 MB).
Password
— (String
)The password for the user named in the
username
property.Port
— (Integer
)The port number for Amazon Redshift. The default value is 5439.
RemoveQuotes
— (Boolean
)A value that specifies to remove surrounding quotation marks from strings in the incoming data. All characters within the quotation marks, including delimiters, are retained. Choose
true
to remove quotation marks. The default isfalse
.ReplaceInvalidChars
— (String
)A list of characters that you want to replace. Use with
ReplaceChars
.ReplaceChars
— (String
)A value that specifies to replaces the invalid characters specified in
ReplaceInvalidChars
, substituting the specified characters instead. The default is"?"
.ServerName
— (String
)The name of the Amazon Redshift cluster you are using.
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM role that has access to the Amazon Redshift service.
ServerSideEncryptionKmsKeyId
— (String
)The AWS KMS key ID. If you are using
SSE_KMS
for theEncryptionMode
, provide this key ID. The key that you use needs an attached policy that enables IAM user permissions and allows use of the key.TimeFormat
— (String
)The time format that you want to use. Valid values are
auto
(case-sensitive),'timeformat_string'
,'epochsecs'
, or'epochmillisecs'
. It defaults to 10. Usingauto
recognizes most strings, even some that aren't supported when you use a time format string.If your date and time values use formats different from each other, set this parameter to
auto
.TrimBlanks
— (Boolean
)A value that specifies to remove the trailing white space characters from a VARCHAR string. This parameter applies only to columns with a VARCHAR data type. Choose
true
to remove unneeded white space. The default isfalse
.TruncateColumns
— (Boolean
)A value that specifies to truncate data in columns to the appropriate number of characters, so that the data fits in the column. This parameter applies only to columns with a VARCHAR or CHAR data type, and rows with a size of 4 MB or less. Choose
true
to truncate data. The default isfalse
.Username
— (String
)An Amazon Redshift user name for a registered user.
WriteBufferSize
— (Integer
)The size of the write buffer to use in rows. Valid values range from 1 through 2,048. The default is 1,024. Use this setting to tune performance.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Endpoint
— (map
)The modified endpoint.
EndpointIdentifier
— (String
)The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
EndpointType
— (String
)The type of endpoint. Valid values are
Possible values include:source
andtarget
."source"
"target"
EngineName
— (String
)The database engine name. Valid values, depending on the EndpointType, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver.
EngineDisplayName
— (String
)The expanded name for the engine name. For example, if the
EngineName
parameter is "aurora," this value would be "Amazon Aurora MySQL."Username
— (String
)The user name used to connect to the endpoint.
ServerName
— (String
)The name of the server at the endpoint.
Port
— (Integer
)The port value used to access the endpoint.
DatabaseName
— (String
)The name of the database at the endpoint.
ExtraConnectionAttributes
— (String
)Additional connection attributes used to connect to the endpoint.
Status
— (String
)The status of the endpoint.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
CertificateArn
— (String
)The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
SslMode
— (String
)The SSL mode used to connect to the endpoint. The default value is
Possible values include:none
."none"
"require"
"verify-ca"
"verify-full"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
ExternalId
— (String
)Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a subsequent call to CreateEndpoint to create the endpoint with a cross-account.
DynamoDbSettings
— (map
)The settings for the target DynamoDB database. For more information, see the
DynamoDBSettings
structure.ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
S3Settings
— (map
)The settings for the S3 target endpoint. For more information, see the
S3Settings
structure.ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
CsvRowDelimiter
— (String
)The delimiter used to separate rows in the source files. The default is a carriage return (
\n
).CsvDelimiter
— (String
)The delimiter used to separate columns in the source files. The default is a comma.
BucketFolder
— (String
)An optional parameter to set a folder name in the S3 bucket. If provided, tables are created in the path
bucketFolder/schema_name/table_name/
. If this parameter is not specified, then the path used isschema_name/table_name/
.BucketName
— (String
)The name of the S3 bucket.
CompressionType
— (String
)An optional parameter to use GZIP to compress the target files. Set to GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed. Applies to both .csv and .parquet file formats.
Possible values include:"none"
"gzip"
EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, you need an AWS Identity and Access Management (IAM) role with permission to allow"arn:aws:s3:::dms-*"
to use the following actions:-
s3:CreateBucket
-
s3:ListBucket
-
s3:DeleteBucket
-
s3:GetBucketLocation
-
s3:GetObject
-
s3:PutObject
-
s3:DeleteObject
-
s3:GetObjectVersion
-
s3:GetBucketPolicy
-
s3:PutBucketPolicy
-
s3:DeleteBucketPolicy
"sse-s3"
"sse-kms"
-
ServerSideEncryptionKmsKeyId
— (String
)If you are using
SSE_KMS
for theEncryptionMode
, provide the AWS KMS key ID. The key that you use needs an attached policy that enables AWS Identity and Access Management (IAM) user permissions and allows use of the key.Here is a CLI example:
aws dms create-endpoint --endpoint-identifier value --endpoint-type target --engine-name s3 --s3-settings ServiceAccessRoleArn=value,BucketFolder=value,BucketName=value,EncryptionMode=SSE_KMS,ServerSideEncryptionKmsKeyId=value
DataFormat
— (String
)The format of the data that you want to use for output. You can choose one of the following:
-
csv
: This is a row-based file format with comma-separated values (.csv). -
parquet
: Apache Parquet (.parquet) is a columnar storage file format that features efficient compression and provides faster query response.
"csv"
"parquet"
-
EncodingType
— (String
)The type of encoding you are using:
-
RLE_DICTIONARY
uses a combination of bit-packing and run-length encoding to store repeated values more efficiently. This is the default. -
PLAIN
doesn't use encoding at all. Values are stored as they are. -
PLAIN_DICTIONARY
builds a dictionary of the values encountered in a given column. The dictionary is stored in a dictionary page for each column chunk.
"plain"
"plain-dictionary"
"rle-dictionary"
-
DictPageSizeLimit
— (Integer
)The maximum size of an encoded dictionary page of a column. If the dictionary page exceeds this, this column is stored using an encoding type of
PLAIN
. This parameter defaults to 1024 * 1024 bytes (1 MiB), the maximum size of a dictionary page before it reverts toPLAIN
encoding. This size is used for .parquet file format only.RowGroupLength
— (Integer
)The number of rows in a row group. A smaller row group size provides faster reads. But as the number of row groups grows, the slower writes become. This parameter defaults to 10,000 rows. This number is used for .parquet file format only.
If you choose a value larger than the maximum,
RowGroupLength
is set to the max row group length in bytes (64 * 1024 * 1024).DataPageSize
— (Integer
)The size of one data page in bytes. This parameter defaults to 1024 * 1024 bytes (1 MiB). This number is used for .parquet file format only.
ParquetVersion
— (String
)The version of the Apache Parquet format that you want to use:
Possible values include:parquet_1_0
(the default) orparquet_2_0
."parquet-1-0"
"parquet-2-0"
EnableStatistics
— (Boolean
)A value that enables statistics for Parquet pages and row groups. Choose
true
to enable statistics,false
to disable. Statistics includeNULL
,DISTINCT
,MAX
, andMIN
values. This parameter defaults totrue
. This value is used for .parquet file format only.IncludeOpForFullLoad
— (Boolean
)A value that enables a full load to write INSERT operations to the comma-separated value (.csv) output files only to indicate how the rows were added to the source database.
Note: AWS DMS supports theIncludeOpForFullLoad
parameter in versions 3.1.4 and later.For full load, records can only be inserted. By default (the
false
setting), no information is recorded in these output files for a full load to indicate that the rows were inserted at the source database. IfIncludeOpForFullLoad
is set totrue
ory
, the INSERT is recorded as an I annotation in the first field of the .csv file. This allows the format of your target records from a full load to be consistent with the target records from a CDC load.Note: This setting works together with theCdcInsertsOnly
parameter for output to .csv files only. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..CdcInsertsOnly
— (Boolean
)A value that enables a change data capture (CDC) load to write only INSERT operations to .csv or columnar storage (.parquet) output files. By default (the
false
setting), the first field in a .csv or .parquet record contains the letter I (INSERT), U (UPDATE), or D (DELETE). These values indicate whether the row was inserted, updated, or deleted at the source database for a CDC load to the target.If
CdcInsertsOnly
is set totrue
ory
, only INSERTs from the source database are migrated to the .csv or .parquet file. For .csv format only, how these INSERTs are recorded depends on the value ofIncludeOpForFullLoad
. IfIncludeOpForFullLoad
is set totrue
, the first field of every CDC record is set to I to indicate the INSERT operation at the source. IfIncludeOpForFullLoad
is set tofalse
, every CDC record is written without a first field to indicate the INSERT operation at the source. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..Note: AWS DMS supports this interaction between theCdcInsertsOnly
andIncludeOpForFullLoad
parameters in versions 3.1.4 and later.TimestampColumnName
— (String
)A value that when nonblank causes AWS DMS to add a column with timestamp information to the endpoint data for an Amazon S3 target.
Note: AWS DMS supports theTimestampColumnName
parameter in versions 3.1.4 and later.DMS includes an additional
STRING
column in the .csv or .parquet object files of your migrated data when you setTimestampColumnName
to a nonblank value.For a full load, each row of this timestamp column contains a timestamp for when the data was transferred from the source to the target by DMS.
For a change data capture (CDC) load, each row of the timestamp column contains the timestamp for the commit of that row in the source database.
The string format for this timestamp column value is
yyyy-MM-dd HH:mm:ss.SSSSSS
. By default, the precision of this value is in microseconds. For a CDC load, the rounding of the precision depends on the commit timestamp supported by DMS for the source database.When the
AddColumnName
parameter is set totrue
, DMS also includes a name for the timestamp column that you set withTimestampColumnName
.ParquetTimestampInMillisecond
— (Boolean
)A value that specifies the precision of any
TIMESTAMP
column values that are written to an Amazon S3 object file in .parquet format.Note: AWS DMS supports theParquetTimestampInMillisecond
parameter in versions 3.1.4 and later.When
ParquetTimestampInMillisecond
is set totrue
ory
, AWS DMS writes allTIMESTAMP
columns in a .parquet formatted file with millisecond precision. Otherwise, DMS writes them with microsecond precision.Currently, Amazon Athena and AWS Glue can handle only millisecond precision for
TIMESTAMP
values. Set this parameter totrue
for S3 endpoint object files that are .parquet formatted only if you plan to query or process the data with Athena or AWS Glue.Note: AWS DMS writes anyTIMESTAMP
column values written to an S3 file in .csv format with microsecond precision. SettingParquetTimestampInMillisecond
has no effect on the string format of the timestamp column value that is inserted by setting theTimestampColumnName
parameter.
DmsTransferSettings
— (map
)The settings in JSON format for the DMS transfer type of source endpoint.
Possible settings include the following:
-
ServiceAccessRoleArn
- The IAM role that has permission to access the Amazon S3 bucket. -
BucketName
- The name of the S3 bucket to use. -
CompressionType
- An optional parameter to use GZIP to compress the target files. To use GZIP, set this value toNONE
(the default). To keep the files uncompressed, don't use this value.
Shorthand syntax for these settings is as follows:
ServiceAccessRoleArn=string,BucketName=string,CompressionType=string
JSON syntax for these settings is as follows:
{ "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" }
ServiceAccessRoleArn
— (String
)The IAM role that has permission to access the Amazon S3 bucket.
BucketName
— (String
)The name of the S3 bucket to use.
-
MongoDbSettings
— (map
)The settings for the MongoDB source endpoint. For more information, see the
MongoDbSettings
structure.Username
— (String
)The user name you use to access the MongoDB source endpoint.
Password
— (String
)The password for the user account you use to access the MongoDB source endpoint.
ServerName
— (String
)The name of the server on the MongoDB source endpoint.
Port
— (Integer
)The port value for the MongoDB source endpoint.
DatabaseName
— (String
)The database name on the MongoDB source endpoint.
AuthType
— (String
)The authentication type you use to access the MongoDB source endpoint.
Valid values: NO, PASSWORD
When NO is selected, user name and password parameters are not used and can be empty.
Possible values include:"no"
"password"
AuthMechanism
— (String
)The authentication mechanism you use to access the MongoDB source endpoint.
Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1
DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This setting is not used when authType=No.
Possible values include:"default"
"mongodb_cr"
"scram_sha_1"
NestingLevel
— (String
)Specifies either document or table mode.
Valid values: NONE, ONE
Default value is NONE. Specify NONE to use document mode. Specify ONE to use table mode.
Possible values include:"none"
"one"
ExtractDocId
— (String
)Specifies the document ID. Use this setting when
NestingLevel
is set to NONE.Default value is false.
DocsToInvestigate
— (String
)Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel
is set to ONE.Must be a positive value greater than 0. Default value is 1000.
AuthSource
— (String
)The MongoDB database name. This setting is not used when
authType=NO
.The default is admin.
KmsKeyId
— (String
)The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
KinesisSettings
— (map
)The settings for the Amazon Kinesis source endpoint. For more information, see the
KinesisSettings
structure.StreamArn
— (String
)The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint.
MessageFormat
— (String
)The output format for the records created on the endpoint. The message format is
Possible values include:JSON
."json"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to the Amazon Kinesis data stream.
ElasticsearchSettings
— (map
)The settings for the Elasticsearch source endpoint. For more information, see the
ElasticsearchSettings
structure.ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by service to access the IAM role.
EndpointUri
— required — (String
)The endpoint for the Elasticsearch cluster.
FullLoadErrorPercentage
— (Integer
)The maximum percentage of records that can fail to be written before a full load operation stops.
ErrorRetryDuration
— (Integer
)The maximum number of seconds that DMS retries failed API requests to the Elasticsearch cluster.
RedshiftSettings
— (map
)Settings for the Amazon Redshift endpoint.
AcceptAnyDate
— (Boolean
)A value that indicates to allow any date format, including invalid formats such as 00/00/00 00:00:00, to be loaded without generating an error. You can choose
true
orfalse
(the default).This parameter applies only to TIMESTAMP and DATE columns. Always use ACCEPTANYDATE with the DATEFORMAT parameter. If the date format for the data doesn't match the DATEFORMAT specification, Amazon Redshift inserts a NULL value into that field.
AfterConnectScript
— (String
)Code to run after connecting. This parameter should contain the code itself, not the name of a file containing the code.
BucketFolder
— (String
)The location where the comma-separated value (.csv) files are stored before being uploaded to the S3 bucket.
BucketName
— (String
)The name of the S3 bucket you want to use
ConnectionTimeout
— (Integer
)A value that sets the amount of time to wait (in milliseconds) before timing out, beginning from when you initially establish a connection.
DatabaseName
— (String
)The name of the Amazon Redshift data warehouse (service) that you are working with.
DateFormat
— (String
)The date format that you are using. Valid values are
auto
(case-sensitive), your date format string enclosed in quotes, or NULL. If this parameter is left unset (NULL), it defaults to a format of 'YYYY-MM-DD'. Usingauto
recognizes most strings, even some that aren't supported when you use a date format string.If your date and time values use formats different from each other, set this to
auto
.EmptyAsNull
— (Boolean
)A value that specifies whether AWS DMS should migrate empty CHAR and VARCHAR fields as NULL. A value of
true
sets empty CHAR and VARCHAR fields to null. The default isfalse
.EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
Possible values include:SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, create an AWS Identity and Access Management (IAM) role with a policy that allows"arn:aws:s3:::*"
to use the following actions:"s3:PutObject", "s3:ListBucket"
"sse-s3"
"sse-kms"
FileTransferUploadStreams
— (Integer
)The number of threads used to upload a single file. This parameter accepts a value from 1 through 64. It defaults to 10.
LoadTimeout
— (Integer
)The amount of time to wait (in milliseconds) before timing out, beginning from when you begin loading.
MaxFileSize
— (Integer
)The maximum size (in KB) of any .csv file used to transfer data to Amazon Redshift. This accepts a value from 1 through 1,048,576. It defaults to 32,768 KB (32 MB).
Password
— (String
)The password for the user named in the
username
property.Port
— (Integer
)The port number for Amazon Redshift. The default value is 5439.
RemoveQuotes
— (Boolean
)A value that specifies to remove surrounding quotation marks from strings in the incoming data. All characters within the quotation marks, including delimiters, are retained. Choose
true
to remove quotation marks. The default isfalse
.ReplaceInvalidChars
— (String
)A list of characters that you want to replace. Use with
ReplaceChars
.ReplaceChars
— (String
)A value that specifies to replaces the invalid characters specified in
ReplaceInvalidChars
, substituting the specified characters instead. The default is"?"
.ServerName
— (String
)The name of the Amazon Redshift cluster you are using.
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM role that has access to the Amazon Redshift service.
ServerSideEncryptionKmsKeyId
— (String
)The AWS KMS key ID. If you are using
SSE_KMS
for theEncryptionMode
, provide this key ID. The key that you use needs an attached policy that enables IAM user permissions and allows use of the key.TimeFormat
— (String
)The time format that you want to use. Valid values are
auto
(case-sensitive),'timeformat_string'
,'epochsecs'
, or'epochmillisecs'
. It defaults to 10. Usingauto
recognizes most strings, even some that aren't supported when you use a time format string.If your date and time values use formats different from each other, set this parameter to
auto
.TrimBlanks
— (Boolean
)A value that specifies to remove the trailing white space characters from a VARCHAR string. This parameter applies only to columns with a VARCHAR data type. Choose
true
to remove unneeded white space. The default isfalse
.TruncateColumns
— (Boolean
)A value that specifies to truncate data in columns to the appropriate number of characters, so that the data fits in the column. This parameter applies only to columns with a VARCHAR or CHAR data type, and rows with a size of 4 MB or less. Choose
true
to truncate data. The default isfalse
.Username
— (String
)An Amazon Redshift user name for a registered user.
WriteBufferSize
— (Integer
)The size of the write buffer to use in rows. Valid values range from 1 through 2,048. The default is 1,024. Use this setting to tune performance.
-
(AWS.Response)
—
Returns:
modifyEventSubscription(params = {}, callback) ⇒ AWS.Request
Modifies an existing AWS DMS event notification subscription.
Service Reference:
Examples:
Calling the modifyEventSubscription operation
var params = {
SubscriptionName: 'STRING_VALUE', /* required */
Enabled: true || false,
EventCategories: [
'STRING_VALUE',
/* more items */
],
SnsTopicArn: 'STRING_VALUE',
SourceType: 'STRING_VALUE'
};
dms.modifyEventSubscription(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
SubscriptionName
— (String
)The name of the AWS DMS event notification subscription to be modified.
SnsTopicArn
— (String
)The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
SourceType
— (String
)The type of AWS DMS resource that generates the events you want to subscribe to.
Valid values: replication-instance | replication-task
EventCategories
— (Array<String>
)A list of event categories for a source type that you want to subscribe to. Use the
DescribeEventCategories
action to see a list of event categories.Enabled
— (Boolean
)A Boolean value; set to true to activate the subscription.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:EventSubscription
— (map
)The modified event subscription.
CustomerAwsId
— (String
)The AWS customer account associated with the AWS DMS event notification subscription.
CustSubscriptionId
— (String
)The AWS DMS event notification subscription Id.
SnsTopicArn
— (String
)The topic ARN of the AWS DMS event notification subscription.
Status
— (String
)The status of the AWS DMS event notification subscription.
Constraints:
Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist
The status "no-permission" indicates that AWS DMS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
SubscriptionCreationTime
— (String
)The time the RDS event notification subscription was created.
SourceType
— (String
)The type of AWS DMS resource that generates events.
Valid values: replication-instance | replication-server | security-group | replication-task
SourceIdsList
— (Array<String>
)A list of source Ids for the event subscription.
EventCategoriesList
— (Array<String>
)A lists of event categories.
Enabled
— (Boolean
)Boolean value that indicates if the event subscription is enabled.
-
(AWS.Response)
—
Returns:
modifyReplicationInstance(params = {}, callback) ⇒ AWS.Request
Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.
Some settings are applied during the maintenance window.
Service Reference:
Examples:
Modify replication instance
/* Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request. Some settings are applied during the maintenance window. */
var params = {
AllocatedStorage: 123,
AllowMajorVersionUpgrade: true,
ApplyImmediately: true,
AutoMinorVersionUpgrade: true,
EngineVersion: "1.5.0",
MultiAZ: true,
PreferredMaintenanceWindow: "sun:06:00-sun:14:00",
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ",
ReplicationInstanceClass: "dms.t2.micro",
ReplicationInstanceIdentifier: "test-rep-1",
VpcSecurityGroupIds: [
]
};
dms.modifyReplicationInstance(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
ReplicationInstance: {
AllocatedStorage: 5,
AutoMinorVersionUpgrade: true,
EngineVersion: "1.5.0",
KmsKeyId: "arn:aws:kms:us-east-1:123456789012:key/4c1731d6-5435-ed4d-be13-d53411a7cfbd",
PendingModifiedValues: {
},
PreferredMaintenanceWindow: "sun:06:00-sun:14:00",
PubliclyAccessible: true,
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ",
ReplicationInstanceClass: "dms.t2.micro",
ReplicationInstanceIdentifier: "test-rep-1",
ReplicationInstanceStatus: "available",
ReplicationSubnetGroup: {
ReplicationSubnetGroupDescription: "default",
ReplicationSubnetGroupIdentifier: "default",
SubnetGroupStatus: "Complete",
Subnets: [
{
SubnetAvailabilityZone: {
Name: "us-east-1d"
},
SubnetIdentifier: "subnet-f6dd91af",
SubnetStatus: "Active"
},
{
SubnetAvailabilityZone: {
Name: "us-east-1b"
},
SubnetIdentifier: "subnet-3605751d",
SubnetStatus: "Active"
},
{
SubnetAvailabilityZone: {
Name: "us-east-1c"
},
SubnetIdentifier: "subnet-c2daefb5",
SubnetStatus: "Active"
},
{
SubnetAvailabilityZone: {
Name: "us-east-1e"
},
SubnetIdentifier: "subnet-85e90cb8",
SubnetStatus: "Active"
}
],
VpcId: "vpc-6741a603"
}
}
}
*/
});
Calling the modifyReplicationInstance operation
var params = {
ReplicationInstanceArn: 'STRING_VALUE', /* required */
AllocatedStorage: 'NUMBER_VALUE',
AllowMajorVersionUpgrade: true || false,
ApplyImmediately: true || false,
AutoMinorVersionUpgrade: true || false,
EngineVersion: 'STRING_VALUE',
MultiAZ: true || false,
PreferredMaintenanceWindow: 'STRING_VALUE',
ReplicationInstanceClass: 'STRING_VALUE',
ReplicationInstanceIdentifier: 'STRING_VALUE',
VpcSecurityGroupIds: [
'STRING_VALUE',
/* more items */
]
};
dms.modifyReplicationInstance(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) to be allocated for the replication instance.
ApplyImmediately
— (Boolean
)Indicates whether the changes should be applied immediately or during the next maintenance window.
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
VpcSecurityGroupIds
— (Array<String>
)Specifies the VPC security group to be used with the replication instance. The VPC security group must work with the VPC containing the replication instance.
PreferredMaintenanceWindow
— (String
)The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.
Default: Uses existing setting
Format: ddd:hh24:mi-ddd:hh24:mi
Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
Constraints: Must be at least 30 minutes
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
AllowMajorVersionUpgrade
— (Boolean
)Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage, and the change is asynchronously applied as soon as possible.
This parameter must be set to
true
when specifying a value for theEngineVersion
parameter that is a different major version than the replication instance's current version.AutoMinorVersionUpgrade
— (Boolean
)Indicates that minor version upgrades will be applied automatically to the replication instance during the maintenance window. Changing this parameter does not result in an outage except in the following case and the change is asynchronously applied as soon as possible. An outage will result if this parameter is set to
true
during the maintenance window, and a newer minor version is available, and AWS DMS has enabled auto patching for that engine version.ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationInstance
— (map
)The modified replication instance.
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance
-
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
ReplicationInstanceStatus
— (String
)The status of the replication instance.
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
InstanceCreateTime
— (Date
)The time the replication instance was created.
VpcSecurityGroups
— (Array<map>
)The VPC security group for the instance.
VpcSecurityGroupId
— (String
)The VPC security group Id.
Status
— (String
)The status of the VPC security group.
AvailabilityZone
— (String
)The Availability Zone for the instance.
ReplicationSubnetGroup
— (map
)The subnet group for the replication instance.
ReplicationSubnetGroupIdentifier
— (String
)The identifier of the replication instance subnet group.
ReplicationSubnetGroupDescription
— (String
)A description for the replication subnet group.
VpcId
— (String
)The ID of the VPC.
SubnetGroupStatus
— (String
)The status of the subnet group.
Subnets
— (Array<map>
)The subnets that are in the subnet group.
SubnetIdentifier
— (String
)The subnet identifier.
SubnetAvailabilityZone
— (map
)The Availability Zone of the subnet.
Name
— (String
)The name of the availability zone.
SubnetStatus
— (String
)The status of the subnet.
PreferredMaintenanceWindow
— (String
)The maintenance window times for the replication instance.
PendingModifiedValues
— (map
)The pending modification values.
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
AutoMinorVersionUpgrade
— (Boolean
)Boolean value indicating if minor version upgrades will be automatically applied to the instance.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
ReplicationInstancePublicIpAddress
— (String
)The public IP address of the replication instance.
ReplicationInstancePrivateIpAddress
— (String
)The private IP address of the replication instance.
ReplicationInstancePublicIpAddresses
— (Array<String>
)One or more public IP addresses for the replication instance.
ReplicationInstancePrivateIpAddresses
— (Array<String>
)One or more private IP addresses for the replication instance.
PubliclyAccessible
— (Boolean
)Specifies the accessibility options for the replication instance. A value of
true
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.SecondaryAvailabilityZone
— (String
)The availability zone of the standby replication instance in a Multi-AZ deployment.
FreeUntil
— (Date
)The expiration date of the free replication instance that is part of the Free DMS program.
DnsNameServers
— (String
)The DNS name servers for the replication instance.
-
(AWS.Response)
—
Returns:
modifyReplicationSubnetGroup(params = {}, callback) ⇒ AWS.Request
Modifies the settings for the specified replication subnet group.
Service Reference:
Examples:
Modify replication subnet group
/* Modifies the settings for the specified replication subnet group. */
var params = {
ReplicationSubnetGroupDescription: "",
ReplicationSubnetGroupIdentifier: "",
SubnetIds: [
]
};
dms.modifyReplicationSubnetGroup(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
ReplicationSubnetGroup: {
}
}
*/
});
Calling the modifyReplicationSubnetGroup operation
var params = {
ReplicationSubnetGroupIdentifier: 'STRING_VALUE', /* required */
SubnetIds: [ /* required */
'STRING_VALUE',
/* more items */
],
ReplicationSubnetGroupDescription: 'STRING_VALUE'
};
dms.modifyReplicationSubnetGroup(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationSubnetGroupIdentifier
— (String
)The name of the replication instance subnet group.
ReplicationSubnetGroupDescription
— (String
)A description for the replication instance subnet group.
SubnetIds
— (Array<String>
)A list of subnet IDs.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationSubnetGroup
— (map
)The modified replication subnet group.
ReplicationSubnetGroupIdentifier
— (String
)The identifier of the replication instance subnet group.
ReplicationSubnetGroupDescription
— (String
)A description for the replication subnet group.
VpcId
— (String
)The ID of the VPC.
SubnetGroupStatus
— (String
)The status of the subnet group.
Subnets
— (Array<map>
)The subnets that are in the subnet group.
SubnetIdentifier
— (String
)The subnet identifier.
SubnetAvailabilityZone
— (map
)The Availability Zone of the subnet.
Name
— (String
)The name of the availability zone.
SubnetStatus
— (String
)The status of the subnet.
-
(AWS.Response)
—
Returns:
modifyReplicationTask(params = {}, callback) ⇒ AWS.Request
Modifies the specified replication task.
You can't modify the task endpoints. The task must be stopped before you can modify it.
For more information about AWS DMS tasks, see Working with Migration Tasks in the AWS Database Migration Service User Guide.
Service Reference:
Examples:
Calling the modifyReplicationTask operation
var params = {
ReplicationTaskArn: 'STRING_VALUE', /* required */
CdcStartPosition: 'STRING_VALUE',
CdcStartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
CdcStopPosition: 'STRING_VALUE',
MigrationType: full-load | cdc | full-load-and-cdc,
ReplicationTaskIdentifier: 'STRING_VALUE',
ReplicationTaskSettings: 'STRING_VALUE',
TableMappings: 'STRING_VALUE'
};
dms.modifyReplicationTask(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskIdentifier
— (String
)The replication task identifier.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
MigrationType
— (String
)The migration type. Valid values:
Possible values include:full-load
|cdc
|full-load-and-cdc
"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)When using the AWS CLI or boto3, provide the path of the JSON file that contains the table mappings. Precede the path with
file://
. When working with the DMS API, provide the JSON as the parameter value, for example:--table-mappings file://mappingfile.json
ReplicationTaskSettings
— (String
)JSON file that contains settings for the task, such as target metadata settings.
CdcStartTime
— (Date
)Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.
Timestamp Example: --cdc-start-time “2018-03-08T12:12:12”
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
Note: When you use this task setting with a source PostgreSQL database, a logical replication slot should already be created and associated with the source endpoint. You can verify this by setting theslotName
extra connection attribute to the name of this logical replication slot. For more information, see Extra Connection Attributes When Using PostgreSQL as a Source for AWS DMS.CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationTask
— (map
)The replication task that was modified.
ReplicationTaskIdentifier
— (String
)The user-assigned replication task identifier or name.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MigrationType
— (String
)The type of migration.
Possible values include:"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)Table mappings specified in the task.
ReplicationTaskSettings
— (String
)The settings for the replication task.
Status
— (String
)The status of the replication task.
LastFailureMessage
— (String
)The last error (failure) message generated for the replication instance.
StopReason
— (String
)The reason the replication task was stopped.
ReplicationTaskCreationDate
— (Date
)The date the replication task was created.
ReplicationTaskStartDate
— (Date
)The date the replication task is scheduled to start.
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPosition
orCdcStartTime
to specify when you want the CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
RecoveryCheckpoint
— (String
)Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the
CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskStats
— (map
)The statistics for the task, including elapsed time, tables loaded, and table errors.
FullLoadProgressPercent
— (Integer
)The percent complete for the full load migration task.
ElapsedTimeMillis
— (Integer
)The elapsed time of the task, in milliseconds.
TablesLoaded
— (Integer
)The number of tables loaded for this task.
TablesLoading
— (Integer
)The number of tables currently loading for this task.
TablesQueued
— (Integer
)The number of tables queued for this task.
TablesErrored
— (Integer
)The number of errors that have occurred during this task.
FreshStartDate
— (Date
)The date the replication task was started either with a fresh start or a target reload.
StartDate
— (Date
)The date the replication task was started either with a fresh start or a resume. For more information, see StartReplicationTaskType.
StopDate
— (Date
)The date the replication task was stopped.
FullLoadStartDate
— (Date
)The date the the replication task full load was started.
FullLoadFinishDate
— (Date
)The date the replication task full load was completed.
-
(AWS.Response)
—
Returns:
rebootReplicationInstance(params = {}, callback) ⇒ AWS.Request
Reboots a replication instance. Rebooting results in a momentary outage, until the replication instance becomes available again.
Service Reference:
Examples:
Calling the rebootReplicationInstance operation
var params = {
ReplicationInstanceArn: 'STRING_VALUE', /* required */
ForceFailover: true || false
};
dms.rebootReplicationInstance(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
ForceFailover
— (Boolean
)If this parameter is
true
, the reboot is conducted through a Multi-AZ failover. (If the instance isn't configured for Multi-AZ, then you can't specifytrue
.)
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationInstance
— (map
)The replication instance that is being rebooted.
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance
-
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
ReplicationInstanceStatus
— (String
)The status of the replication instance.
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
InstanceCreateTime
— (Date
)The time the replication instance was created.
VpcSecurityGroups
— (Array<map>
)The VPC security group for the instance.
VpcSecurityGroupId
— (String
)The VPC security group Id.
Status
— (String
)The status of the VPC security group.
AvailabilityZone
— (String
)The Availability Zone for the instance.
ReplicationSubnetGroup
— (map
)The subnet group for the replication instance.
ReplicationSubnetGroupIdentifier
— (String
)The identifier of the replication instance subnet group.
ReplicationSubnetGroupDescription
— (String
)A description for the replication subnet group.
VpcId
— (String
)The ID of the VPC.
SubnetGroupStatus
— (String
)The status of the subnet group.
Subnets
— (Array<map>
)The subnets that are in the subnet group.
SubnetIdentifier
— (String
)The subnet identifier.
SubnetAvailabilityZone
— (map
)The Availability Zone of the subnet.
Name
— (String
)The name of the availability zone.
SubnetStatus
— (String
)The status of the subnet.
PreferredMaintenanceWindow
— (String
)The maintenance window times for the replication instance.
PendingModifiedValues
— (map
)The pending modification values.
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
AutoMinorVersionUpgrade
— (Boolean
)Boolean value indicating if minor version upgrades will be automatically applied to the instance.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
ReplicationInstancePublicIpAddress
— (String
)The public IP address of the replication instance.
ReplicationInstancePrivateIpAddress
— (String
)The private IP address of the replication instance.
ReplicationInstancePublicIpAddresses
— (Array<String>
)One or more public IP addresses for the replication instance.
ReplicationInstancePrivateIpAddresses
— (Array<String>
)One or more private IP addresses for the replication instance.
PubliclyAccessible
— (Boolean
)Specifies the accessibility options for the replication instance. A value of
true
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.SecondaryAvailabilityZone
— (String
)The availability zone of the standby replication instance in a Multi-AZ deployment.
FreeUntil
— (Date
)The expiration date of the free replication instance that is part of the Free DMS program.
DnsNameServers
— (String
)The DNS name servers for the replication instance.
-
(AWS.Response)
—
Returns:
refreshSchemas(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Refresh schema
/* 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 describe-refresh-schemas-status operation. */
var params = {
EndpointArn: "",
ReplicationInstanceArn: ""
};
dms.refreshSchemas(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
RefreshSchemasStatus: {
}
}
*/
});
Calling the refreshSchemas operation
var params = {
EndpointArn: 'STRING_VALUE', /* required */
ReplicationInstanceArn: 'STRING_VALUE' /* required */
};
dms.refreshSchemas(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:RefreshSchemasStatus
— (map
)The status of the refreshed schema.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
Status
— (String
)The status of the schema.
Possible values include:"successful"
"failed"
"refreshing"
LastRefreshDate
— (Date
)The date the schema was last refreshed.
LastFailureMessage
— (String
)The last failure message for the schema.
-
(AWS.Response)
—
Returns:
reloadTables(params = {}, callback) ⇒ AWS.Request
Reloads the target database table with the source data.
Service Reference:
Examples:
Calling the reloadTables operation
var params = {
ReplicationTaskArn: 'STRING_VALUE', /* required */
TablesToReload: [ /* required */
{
SchemaName: 'STRING_VALUE',
TableName: 'STRING_VALUE'
},
/* more items */
],
ReloadOption: data-reload | validate-only
};
dms.reloadTables(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
TablesToReload
— (Array<map>
)The name and schema of the table to be reloaded.
SchemaName
— (String
)The schema name of the table to be reloaded.
TableName
— (String
)The table name of the table to be reloaded.
ReloadOption
— (String
)Options for reload. Specify
data-reload
to reload the data and re-validate it if validation is enabled. Specifyvalidate-only
to re-validate the table. This option applies only when validation is enabled for the task.Valid values: data-reload, validate-only
Default value is data-reload.
Possible values include:"data-reload"
"validate-only"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
-
(AWS.Response)
—
Returns:
removeTagsFromResource(params = {}, callback) ⇒ AWS.Request
Removes metadata tags from a DMS resource.
Service Reference:
Examples:
Remove tags from resource
/* Removes metadata tags from an AWS DMS resource. */
var params = {
ResourceArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E",
TagKeys: [
]
};
dms.removeTagsFromResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
}
*/
});
Calling the removeTagsFromResource operation
var params = {
ResourceArn: 'STRING_VALUE', /* required */
TagKeys: [ /* required */
'STRING_VALUE',
/* more items */
]
};
dms.removeTagsFromResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)An AWS DMS resource from which you want to remove tag(s). The value for this parameter is an Amazon Resource Name (ARN).
TagKeys
— (Array<String>
)The tag key (name) of the tag to be removed.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
startReplicationTask(params = {}, callback) ⇒ AWS.Request
Starts the replication task.
For more information about AWS DMS tasks, see Working with Migration Tasks in the AWS Database Migration Service User Guide.
Service Reference:
Examples:
Start replication task
/* Starts the replication task. */
var params = {
CdcStartTime: <Date Representation>,
ReplicationTaskArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ",
StartReplicationTaskType: "start-replication"
};
dms.startReplicationTask(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
ReplicationTask: {
MigrationType: "full-load",
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ",
ReplicationTaskArn: "arn:aws:dms:us-east-1:123456789012:task:OEAMB3NXSTZ6LFYZFEPPBBXPYM",
ReplicationTaskCreationDate: <Date Representation>,
ReplicationTaskIdentifier: "task1",
ReplicationTaskSettings: "{\"TargetMetadata\":{\"TargetSchema\":\"\",\"SupportLobs\":true,\"FullLobMode\":true,\"LobChunkSize\":64,\"LimitedSizeLobMode\":false,\"LobMaxSize\":0},\"FullLoadSettings\":{\"FullLoadEnabled\":true,\"ApplyChangesEnabled\":false,\"TargetTablePrepMode\":\"DROP_AND_CREATE\",\"CreatePkAfterFullLoad\":false,\"StopTaskCachedChangesApplied\":false,\"StopTaskCachedChangesNotApplied\":false,\"ResumeEnabled\":false,\"ResumeMinTableSize\":100000,\"ResumeOnlyClusteredPKTables\":true,\"MaxFullLoadSubTasks\":8,\"TransactionConsistencyTimeout\":600,\"CommitRate\":10000},\"Logging\":{\"EnableLogging\":false}}",
SourceEndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ZW5UAN6P4E77EC7YWHK4RZZ3BE",
Status: "creating",
TableMappings: "file://mappingfile.json",
TargetEndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E"
}
}
*/
});
Calling the startReplicationTask operation
var params = {
ReplicationTaskArn: 'STRING_VALUE', /* required */
StartReplicationTaskType: start-replication | resume-processing | reload-target, /* required */
CdcStartPosition: 'STRING_VALUE',
CdcStartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
CdcStopPosition: 'STRING_VALUE'
};
dms.startReplicationTask(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task to be started.
StartReplicationTaskType
— (String
)The type of replication task.
Possible values include:"start-replication"
"resume-processing"
"reload-target"
CdcStartTime
— (Date
)Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.
Timestamp Example: --cdc-start-time “2018-03-08T12:12:12”
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
Note: When you use this task setting with a source PostgreSQL database, a logical replication slot should already be created and associated with the source endpoint. You can verify this by setting theslotName
extra connection attribute to the name of this logical replication slot. For more information, see Extra Connection Attributes When Using PostgreSQL as a Source for AWS DMS.CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationTask
— (map
)The replication task started.
ReplicationTaskIdentifier
— (String
)The user-assigned replication task identifier or name.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MigrationType
— (String
)The type of migration.
Possible values include:"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)Table mappings specified in the task.
ReplicationTaskSettings
— (String
)The settings for the replication task.
Status
— (String
)The status of the replication task.
LastFailureMessage
— (String
)The last error (failure) message generated for the replication instance.
StopReason
— (String
)The reason the replication task was stopped.
ReplicationTaskCreationDate
— (Date
)The date the replication task was created.
ReplicationTaskStartDate
— (Date
)The date the replication task is scheduled to start.
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPosition
orCdcStartTime
to specify when you want the CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
RecoveryCheckpoint
— (String
)Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the
CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskStats
— (map
)The statistics for the task, including elapsed time, tables loaded, and table errors.
FullLoadProgressPercent
— (Integer
)The percent complete for the full load migration task.
ElapsedTimeMillis
— (Integer
)The elapsed time of the task, in milliseconds.
TablesLoaded
— (Integer
)The number of tables loaded for this task.
TablesLoading
— (Integer
)The number of tables currently loading for this task.
TablesQueued
— (Integer
)The number of tables queued for this task.
TablesErrored
— (Integer
)The number of errors that have occurred during this task.
FreshStartDate
— (Date
)The date the replication task was started either with a fresh start or a target reload.
StartDate
— (Date
)The date the replication task was started either with a fresh start or a resume. For more information, see StartReplicationTaskType.
StopDate
— (Date
)The date the replication task was stopped.
FullLoadStartDate
— (Date
)The date the the replication task full load was started.
FullLoadFinishDate
— (Date
)The date the replication task full load was completed.
-
(AWS.Response)
—
Returns:
startReplicationTaskAssessment(params = {}, callback) ⇒ AWS.Request
Starts the replication task assessment for unsupported data types in the source database.
Service Reference:
Examples:
Calling the startReplicationTaskAssessment operation
var params = {
ReplicationTaskArn: 'STRING_VALUE' /* required */
};
dms.startReplicationTaskAssessment(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationTask
— (map
)The assessed replication task.
ReplicationTaskIdentifier
— (String
)The user-assigned replication task identifier or name.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MigrationType
— (String
)The type of migration.
Possible values include:"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)Table mappings specified in the task.
ReplicationTaskSettings
— (String
)The settings for the replication task.
Status
— (String
)The status of the replication task.
LastFailureMessage
— (String
)The last error (failure) message generated for the replication instance.
StopReason
— (String
)The reason the replication task was stopped.
ReplicationTaskCreationDate
— (Date
)The date the replication task was created.
ReplicationTaskStartDate
— (Date
)The date the replication task is scheduled to start.
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPosition
orCdcStartTime
to specify when you want the CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
RecoveryCheckpoint
— (String
)Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the
CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskStats
— (map
)The statistics for the task, including elapsed time, tables loaded, and table errors.
FullLoadProgressPercent
— (Integer
)The percent complete for the full load migration task.
ElapsedTimeMillis
— (Integer
)The elapsed time of the task, in milliseconds.
TablesLoaded
— (Integer
)The number of tables loaded for this task.
TablesLoading
— (Integer
)The number of tables currently loading for this task.
TablesQueued
— (Integer
)The number of tables queued for this task.
TablesErrored
— (Integer
)The number of errors that have occurred during this task.
FreshStartDate
— (Date
)The date the replication task was started either with a fresh start or a target reload.
StartDate
— (Date
)The date the replication task was started either with a fresh start or a resume. For more information, see StartReplicationTaskType.
StopDate
— (Date
)The date the replication task was stopped.
FullLoadStartDate
— (Date
)The date the the replication task full load was started.
FullLoadFinishDate
— (Date
)The date the replication task full load was completed.
-
(AWS.Response)
—
Returns:
stopReplicationTask(params = {}, callback) ⇒ AWS.Request
Examples:
Stop replication task
/* Stops the replication task. */
var params = {
ReplicationTaskArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E"
};
dms.stopReplicationTask(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
ReplicationTask: {
MigrationType: "full-load",
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ",
ReplicationTaskArn: "arn:aws:dms:us-east-1:123456789012:task:OEAMB3NXSTZ6LFYZFEPPBBXPYM",
ReplicationTaskCreationDate: <Date Representation>,
ReplicationTaskIdentifier: "task1",
ReplicationTaskSettings: "{\"TargetMetadata\":{\"TargetSchema\":\"\",\"SupportLobs\":true,\"FullLobMode\":true,\"LobChunkSize\":64,\"LimitedSizeLobMode\":false,\"LobMaxSize\":0},\"FullLoadSettings\":{\"FullLoadEnabled\":true,\"ApplyChangesEnabled\":false,\"TargetTablePrepMode\":\"DROP_AND_CREATE\",\"CreatePkAfterFullLoad\":false,\"StopTaskCachedChangesApplied\":false,\"StopTaskCachedChangesNotApplied\":false,\"ResumeEnabled\":false,\"ResumeMinTableSize\":100000,\"ResumeOnlyClusteredPKTables\":true,\"MaxFullLoadSubTasks\":8,\"TransactionConsistencyTimeout\":600,\"CommitRate\":10000},\"Logging\":{\"EnableLogging\":false}}",
SourceEndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ZW5UAN6P4E77EC7YWHK4RZZ3BE",
Status: "creating",
TableMappings: "file://mappingfile.json",
TargetEndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:ASXWXJZLNWNT5HTWCGV2BUJQ7E"
}
}
*/
});
Calling the stopReplicationTask operation
var params = {
ReplicationTaskArn: 'STRING_VALUE' /* required */
};
dms.stopReplicationTask(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationTaskArn
— (String
)The Amazon Resource Name(ARN) of the replication task to be stopped.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ReplicationTask
— (map
)The replication task stopped.
ReplicationTaskIdentifier
— (String
)The user-assigned replication task identifier or name.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MigrationType
— (String
)The type of migration.
Possible values include:"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)Table mappings specified in the task.
ReplicationTaskSettings
— (String
)The settings for the replication task.
Status
— (String
)The status of the replication task.
LastFailureMessage
— (String
)The last error (failure) message generated for the replication instance.
StopReason
— (String
)The reason the replication task was stopped.
ReplicationTaskCreationDate
— (Date
)The date the replication task was created.
ReplicationTaskStartDate
— (Date
)The date the replication task is scheduled to start.
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPosition
orCdcStartTime
to specify when you want the CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
RecoveryCheckpoint
— (String
)Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the
CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskStats
— (map
)The statistics for the task, including elapsed time, tables loaded, and table errors.
FullLoadProgressPercent
— (Integer
)The percent complete for the full load migration task.
ElapsedTimeMillis
— (Integer
)The elapsed time of the task, in milliseconds.
TablesLoaded
— (Integer
)The number of tables loaded for this task.
TablesLoading
— (Integer
)The number of tables currently loading for this task.
TablesQueued
— (Integer
)The number of tables queued for this task.
TablesErrored
— (Integer
)The number of errors that have occurred during this task.
FreshStartDate
— (Date
)The date the replication task was started either with a fresh start or a target reload.
StartDate
— (Date
)The date the replication task was started either with a fresh start or a resume. For more information, see StartReplicationTaskType.
StopDate
— (Date
)The date the replication task was stopped.
FullLoadStartDate
— (Date
)The date the the replication task full load was started.
FullLoadFinishDate
— (Date
)The date the replication task full load was completed.
-
(AWS.Response)
—
Returns:
testConnection(params = {}, callback) ⇒ AWS.Request
Tests the connection between the replication instance and the endpoint.
Service Reference:
Examples:
Test conection
/* Tests the connection between the replication instance and the endpoint. */
var params = {
EndpointArn: "arn:aws:dms:us-east-1:123456789012:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM",
ReplicationInstanceArn: "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ"
};
dms.testConnection(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
/*
data = {
Connection: {
}
}
*/
});
Calling the testConnection operation
var params = {
EndpointArn: 'STRING_VALUE', /* required */
ReplicationInstanceArn: 'STRING_VALUE' /* required */
};
dms.testConnection(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Connection
— (map
)The connection tested.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
Status
— (String
)The connection status.
LastFailureMessage
— (String
)The error message when the connection last failed.
EndpointIdentifier
— (String
)The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
-
(AWS.Response)
—
Returns:
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given DMS resource. The final callback or 'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.
Examples:
Waiting for the testConnectionSucceeds state
var params = {
// ... input parameters ...
};
dms.waitFor('testConnectionSucceeds', params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
state
(String)
—
the resource state to wait for. Available states for this service are listed in "Waiter Resource States" below.
-
params
(map)
(defaults to: {})
—
a list of parameters for the given state. See each waiter resource state for required parameters.
Callback (callback):
-
function(err, data) { ... }
Callback containing error and data information. See the respective resource state for the expected error or data information.
If the waiter times out its requests, it will return a
ResourceNotReady
error.
Returns:
Waiter Resource States:
Waiter Resource Details
dms.waitFor('testConnectionSucceeds', params = {}, [callback]) ⇒ AWS.Request
Waits for the testConnectionSucceeds
state by periodically calling the underlying
DMS.describeConnections() operation every 5 seconds
(at most 60 times).
Examples:
Waiting for the testConnectionSucceeds state
var params = {
// ... input parameters ...
};
dms.waitFor('testConnectionSucceeds', params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
—
Filters
— (Array<map>
)The filters applied to the connection.
Valid filter names: endpoint-arn | replication-instance-arn
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.Connections
— (Array<map>
)A description of the connections.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
Status
— (String
)The connection status.
LastFailureMessage
— (String
)The error message when the connection last failed.
EndpointIdentifier
— (String
)The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
-
(AWS.Response)
—
Returns:
See Also:
dms.waitFor('endpointDeleted', params = {}, [callback]) ⇒ AWS.Request
Waits for the endpointDeleted
state by periodically calling the underlying
DMS.describeEndpoints() operation every 5 seconds
(at most 60 times).
Examples:
Waiting for the endpointDeleted state
var params = {
// ... input parameters ...
};
dms.waitFor('endpointDeleted', params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
—
Filters
— (Array<map>
)Filters applied to the describe action.
Valid filter names: endpoint-arn | endpoint-type | endpoint-id | engine-name
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.Endpoints
— (Array<map>
)Endpoint description.
EndpointIdentifier
— (String
)The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
EndpointType
— (String
)The type of endpoint. Valid values are
Possible values include:source
andtarget
."source"
"target"
EngineName
— (String
)The database engine name. Valid values, depending on the EndpointType, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver.
EngineDisplayName
— (String
)The expanded name for the engine name. For example, if the
EngineName
parameter is "aurora," this value would be "Amazon Aurora MySQL."Username
— (String
)The user name used to connect to the endpoint.
ServerName
— (String
)The name of the server at the endpoint.
Port
— (Integer
)The port value used to access the endpoint.
DatabaseName
— (String
)The name of the database at the endpoint.
ExtraConnectionAttributes
— (String
)Additional connection attributes used to connect to the endpoint.
Status
— (String
)The status of the endpoint.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
EndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
CertificateArn
— (String
)The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
SslMode
— (String
)The SSL mode used to connect to the endpoint. The default value is
Possible values include:none
."none"
"require"
"verify-ca"
"verify-full"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
ExternalId
— (String
)Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a subsequent call to CreateEndpoint to create the endpoint with a cross-account.
DynamoDbSettings
— (map
)The settings for the target DynamoDB database. For more information, see the
DynamoDBSettings
structure.ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
S3Settings
— (map
)The settings for the S3 target endpoint. For more information, see the
S3Settings
structure.ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) used by the service access IAM role.
ExternalTableDefinition
— (String
)The external table definition.
CsvRowDelimiter
— (String
)The delimiter used to separate rows in the source files. The default is a carriage return (
\n
).CsvDelimiter
— (String
)The delimiter used to separate columns in the source files. The default is a comma.
BucketFolder
— (String
)An optional parameter to set a folder name in the S3 bucket. If provided, tables are created in the path
bucketFolder/schema_name/table_name/
. If this parameter is not specified, then the path used isschema_name/table_name/
.BucketName
— (String
)The name of the S3 bucket.
CompressionType
— (String
)An optional parameter to use GZIP to compress the target files. Set to GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed. Applies to both .csv and .parquet file formats.
Possible values include:"none"
"gzip"
EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, you need an AWS Identity and Access Management (IAM) role with permission to allow"arn:aws:s3:::dms-*"
to use the following actions:-
s3:CreateBucket
-
s3:ListBucket
-
s3:DeleteBucket
-
s3:GetBucketLocation
-
s3:GetObject
-
s3:PutObject
-
s3:DeleteObject
-
s3:GetObjectVersion
-
s3:GetBucketPolicy
-
s3:PutBucketPolicy
-
s3:DeleteBucketPolicy
"sse-s3"
"sse-kms"
-
ServerSideEncryptionKmsKeyId
— (String
)If you are using
SSE_KMS
for theEncryptionMode
, provide the AWS KMS key ID. The key that you use needs an attached policy that enables AWS Identity and Access Management (IAM) user permissions and allows use of the key.Here is a CLI example:
aws dms create-endpoint --endpoint-identifier value --endpoint-type target --engine-name s3 --s3-settings ServiceAccessRoleArn=value,BucketFolder=value,BucketName=value,EncryptionMode=SSE_KMS,ServerSideEncryptionKmsKeyId=value
DataFormat
— (String
)The format of the data that you want to use for output. You can choose one of the following:
-
csv
: This is a row-based file format with comma-separated values (.csv). -
parquet
: Apache Parquet (.parquet) is a columnar storage file format that features efficient compression and provides faster query response.
"csv"
"parquet"
-
EncodingType
— (String
)The type of encoding you are using:
-
RLE_DICTIONARY
uses a combination of bit-packing and run-length encoding to store repeated values more efficiently. This is the default. -
PLAIN
doesn't use encoding at all. Values are stored as they are. -
PLAIN_DICTIONARY
builds a dictionary of the values encountered in a given column. The dictionary is stored in a dictionary page for each column chunk.
"plain"
"plain-dictionary"
"rle-dictionary"
-
DictPageSizeLimit
— (Integer
)The maximum size of an encoded dictionary page of a column. If the dictionary page exceeds this, this column is stored using an encoding type of
PLAIN
. This parameter defaults to 1024 * 1024 bytes (1 MiB), the maximum size of a dictionary page before it reverts toPLAIN
encoding. This size is used for .parquet file format only.RowGroupLength
— (Integer
)The number of rows in a row group. A smaller row group size provides faster reads. But as the number of row groups grows, the slower writes become. This parameter defaults to 10,000 rows. This number is used for .parquet file format only.
If you choose a value larger than the maximum,
RowGroupLength
is set to the max row group length in bytes (64 * 1024 * 1024).DataPageSize
— (Integer
)The size of one data page in bytes. This parameter defaults to 1024 * 1024 bytes (1 MiB). This number is used for .parquet file format only.
ParquetVersion
— (String
)The version of the Apache Parquet format that you want to use:
Possible values include:parquet_1_0
(the default) orparquet_2_0
."parquet-1-0"
"parquet-2-0"
EnableStatistics
— (Boolean
)A value that enables statistics for Parquet pages and row groups. Choose
true
to enable statistics,false
to disable. Statistics includeNULL
,DISTINCT
,MAX
, andMIN
values. This parameter defaults totrue
. This value is used for .parquet file format only.IncludeOpForFullLoad
— (Boolean
)A value that enables a full load to write INSERT operations to the comma-separated value (.csv) output files only to indicate how the rows were added to the source database.
Note: AWS DMS supports theIncludeOpForFullLoad
parameter in versions 3.1.4 and later.For full load, records can only be inserted. By default (the
false
setting), no information is recorded in these output files for a full load to indicate that the rows were inserted at the source database. IfIncludeOpForFullLoad
is set totrue
ory
, the INSERT is recorded as an I annotation in the first field of the .csv file. This allows the format of your target records from a full load to be consistent with the target records from a CDC load.Note: This setting works together with theCdcInsertsOnly
parameter for output to .csv files only. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..CdcInsertsOnly
— (Boolean
)A value that enables a change data capture (CDC) load to write only INSERT operations to .csv or columnar storage (.parquet) output files. By default (the
false
setting), the first field in a .csv or .parquet record contains the letter I (INSERT), U (UPDATE), or D (DELETE). These values indicate whether the row was inserted, updated, or deleted at the source database for a CDC load to the target.If
CdcInsertsOnly
is set totrue
ory
, only INSERTs from the source database are migrated to the .csv or .parquet file. For .csv format only, how these INSERTs are recorded depends on the value ofIncludeOpForFullLoad
. IfIncludeOpForFullLoad
is set totrue
, the first field of every CDC record is set to I to indicate the INSERT operation at the source. IfIncludeOpForFullLoad
is set tofalse
, every CDC record is written without a first field to indicate the INSERT operation at the source. For more information about how these settings work together, see Indicating Source DB Operations in Migrated S3 Data in the AWS Database Migration Service User Guide..Note: AWS DMS supports this interaction between theCdcInsertsOnly
andIncludeOpForFullLoad
parameters in versions 3.1.4 and later.TimestampColumnName
— (String
)A value that when nonblank causes AWS DMS to add a column with timestamp information to the endpoint data for an Amazon S3 target.
Note: AWS DMS supports theTimestampColumnName
parameter in versions 3.1.4 and later.DMS includes an additional
STRING
column in the .csv or .parquet object files of your migrated data when you setTimestampColumnName
to a nonblank value.For a full load, each row of this timestamp column contains a timestamp for when the data was transferred from the source to the target by DMS.
For a change data capture (CDC) load, each row of the timestamp column contains the timestamp for the commit of that row in the source database.
The string format for this timestamp column value is
yyyy-MM-dd HH:mm:ss.SSSSSS
. By default, the precision of this value is in microseconds. For a CDC load, the rounding of the precision depends on the commit timestamp supported by DMS for the source database.When the
AddColumnName
parameter is set totrue
, DMS also includes a name for the timestamp column that you set withTimestampColumnName
.ParquetTimestampInMillisecond
— (Boolean
)A value that specifies the precision of any
TIMESTAMP
column values that are written to an Amazon S3 object file in .parquet format.Note: AWS DMS supports theParquetTimestampInMillisecond
parameter in versions 3.1.4 and later.When
ParquetTimestampInMillisecond
is set totrue
ory
, AWS DMS writes allTIMESTAMP
columns in a .parquet formatted file with millisecond precision. Otherwise, DMS writes them with microsecond precision.Currently, Amazon Athena and AWS Glue can handle only millisecond precision for
TIMESTAMP
values. Set this parameter totrue
for S3 endpoint object files that are .parquet formatted only if you plan to query or process the data with Athena or AWS Glue.Note: AWS DMS writes anyTIMESTAMP
column values written to an S3 file in .csv format with microsecond precision. SettingParquetTimestampInMillisecond
has no effect on the string format of the timestamp column value that is inserted by setting theTimestampColumnName
parameter.
DmsTransferSettings
— (map
)The settings in JSON format for the DMS transfer type of source endpoint.
Possible settings include the following:
-
ServiceAccessRoleArn
- The IAM role that has permission to access the Amazon S3 bucket. -
BucketName
- The name of the S3 bucket to use. -
CompressionType
- An optional parameter to use GZIP to compress the target files. To use GZIP, set this value toNONE
(the default). To keep the files uncompressed, don't use this value.
Shorthand syntax for these settings is as follows:
ServiceAccessRoleArn=string,BucketName=string,CompressionType=string
JSON syntax for these settings is as follows:
{ "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" }
ServiceAccessRoleArn
— (String
)The IAM role that has permission to access the Amazon S3 bucket.
BucketName
— (String
)The name of the S3 bucket to use.
-
MongoDbSettings
— (map
)The settings for the MongoDB source endpoint. For more information, see the
MongoDbSettings
structure.Username
— (String
)The user name you use to access the MongoDB source endpoint.
Password
— (String
)The password for the user account you use to access the MongoDB source endpoint.
ServerName
— (String
)The name of the server on the MongoDB source endpoint.
Port
— (Integer
)The port value for the MongoDB source endpoint.
DatabaseName
— (String
)The database name on the MongoDB source endpoint.
AuthType
— (String
)The authentication type you use to access the MongoDB source endpoint.
Valid values: NO, PASSWORD
When NO is selected, user name and password parameters are not used and can be empty.
Possible values include:"no"
"password"
AuthMechanism
— (String
)The authentication mechanism you use to access the MongoDB source endpoint.
Valid values: DEFAULT, MONGODB_CR, SCRAM_SHA_1
DEFAULT – For MongoDB version 2.x, use MONGODB_CR. For MongoDB version 3.x, use SCRAM_SHA_1. This setting is not used when authType=No.
Possible values include:"default"
"mongodb_cr"
"scram_sha_1"
NestingLevel
— (String
)Specifies either document or table mode.
Valid values: NONE, ONE
Default value is NONE. Specify NONE to use document mode. Specify ONE to use table mode.
Possible values include:"none"
"one"
ExtractDocId
— (String
)Specifies the document ID. Use this setting when
NestingLevel
is set to NONE.Default value is false.
DocsToInvestigate
— (String
)Indicates the number of documents to preview to determine the document organization. Use this setting when
NestingLevel
is set to ONE.Must be a positive value greater than 0. Default value is 1000.
AuthSource
— (String
)The MongoDB database name. This setting is not used when
authType=NO
.The default is admin.
KmsKeyId
— (String
)The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
KinesisSettings
— (map
)The settings for the Amazon Kinesis source endpoint. For more information, see the
KinesisSettings
structure.StreamArn
— (String
)The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint.
MessageFormat
— (String
)The output format for the records created on the endpoint. The message format is
Possible values include:JSON
."json"
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to the Amazon Kinesis data stream.
ElasticsearchSettings
— (map
)The settings for the Elasticsearch source endpoint. For more information, see the
ElasticsearchSettings
structure.ServiceAccessRoleArn
— required — (String
)The Amazon Resource Name (ARN) used by service to access the IAM role.
EndpointUri
— required — (String
)The endpoint for the Elasticsearch cluster.
FullLoadErrorPercentage
— (Integer
)The maximum percentage of records that can fail to be written before a full load operation stops.
ErrorRetryDuration
— (Integer
)The maximum number of seconds that DMS retries failed API requests to the Elasticsearch cluster.
RedshiftSettings
— (map
)Settings for the Amazon Redshift endpoint.
AcceptAnyDate
— (Boolean
)A value that indicates to allow any date format, including invalid formats such as 00/00/00 00:00:00, to be loaded without generating an error. You can choose
true
orfalse
(the default).This parameter applies only to TIMESTAMP and DATE columns. Always use ACCEPTANYDATE with the DATEFORMAT parameter. If the date format for the data doesn't match the DATEFORMAT specification, Amazon Redshift inserts a NULL value into that field.
AfterConnectScript
— (String
)Code to run after connecting. This parameter should contain the code itself, not the name of a file containing the code.
BucketFolder
— (String
)The location where the comma-separated value (.csv) files are stored before being uploaded to the S3 bucket.
BucketName
— (String
)The name of the S3 bucket you want to use
ConnectionTimeout
— (Integer
)A value that sets the amount of time to wait (in milliseconds) before timing out, beginning from when you initially establish a connection.
DatabaseName
— (String
)The name of the Amazon Redshift data warehouse (service) that you are working with.
DateFormat
— (String
)The date format that you are using. Valid values are
auto
(case-sensitive), your date format string enclosed in quotes, or NULL. If this parameter is left unset (NULL), it defaults to a format of 'YYYY-MM-DD'. Usingauto
recognizes most strings, even some that aren't supported when you use a date format string.If your date and time values use formats different from each other, set this to
auto
.EmptyAsNull
— (Boolean
)A value that specifies whether AWS DMS should migrate empty CHAR and VARCHAR fields as NULL. A value of
true
sets empty CHAR and VARCHAR fields to null. The default isfalse
.EncryptionMode
— (String
)The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either
Possible values include:SSE_S3
(the default) orSSE_KMS
. To useSSE_S3
, create an AWS Identity and Access Management (IAM) role with a policy that allows"arn:aws:s3:::*"
to use the following actions:"s3:PutObject", "s3:ListBucket"
"sse-s3"
"sse-kms"
FileTransferUploadStreams
— (Integer
)The number of threads used to upload a single file. This parameter accepts a value from 1 through 64. It defaults to 10.
LoadTimeout
— (Integer
)The amount of time to wait (in milliseconds) before timing out, beginning from when you begin loading.
MaxFileSize
— (Integer
)The maximum size (in KB) of any .csv file used to transfer data to Amazon Redshift. This accepts a value from 1 through 1,048,576. It defaults to 32,768 KB (32 MB).
Password
— (String
)The password for the user named in the
username
property.Port
— (Integer
)The port number for Amazon Redshift. The default value is 5439.
RemoveQuotes
— (Boolean
)A value that specifies to remove surrounding quotation marks from strings in the incoming data. All characters within the quotation marks, including delimiters, are retained. Choose
true
to remove quotation marks. The default isfalse
.ReplaceInvalidChars
— (String
)A list of characters that you want to replace. Use with
ReplaceChars
.ReplaceChars
— (String
)A value that specifies to replaces the invalid characters specified in
ReplaceInvalidChars
, substituting the specified characters instead. The default is"?"
.ServerName
— (String
)The name of the Amazon Redshift cluster you are using.
ServiceAccessRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM role that has access to the Amazon Redshift service.
ServerSideEncryptionKmsKeyId
— (String
)The AWS KMS key ID. If you are using
SSE_KMS
for theEncryptionMode
, provide this key ID. The key that you use needs an attached policy that enables IAM user permissions and allows use of the key.TimeFormat
— (String
)The time format that you want to use. Valid values are
auto
(case-sensitive),'timeformat_string'
,'epochsecs'
, or'epochmillisecs'
. It defaults to 10. Usingauto
recognizes most strings, even some that aren't supported when you use a time format string.If your date and time values use formats different from each other, set this parameter to
auto
.TrimBlanks
— (Boolean
)A value that specifies to remove the trailing white space characters from a VARCHAR string. This parameter applies only to columns with a VARCHAR data type. Choose
true
to remove unneeded white space. The default isfalse
.TruncateColumns
— (Boolean
)A value that specifies to truncate data in columns to the appropriate number of characters, so that the data fits in the column. This parameter applies only to columns with a VARCHAR or CHAR data type, and rows with a size of 4 MB or less. Choose
true
to truncate data. The default isfalse
.Username
— (String
)An Amazon Redshift user name for a registered user.
WriteBufferSize
— (Integer
)The size of the write buffer to use in rows. Valid values range from 1 through 2,048. The default is 1,024. Use this setting to tune performance.
-
(AWS.Response)
—
Returns:
See Also:
dms.waitFor('replicationInstanceAvailable', params = {}, [callback]) ⇒ AWS.Request
Waits for the replicationInstanceAvailable
state by periodically calling the underlying
DMS.describeReplicationInstances() operation every 60 seconds
(at most 60 times).
Examples:
Waiting for the replicationInstanceAvailable state
var params = {
// ... input parameters ...
};
dms.waitFor('replicationInstanceAvailable', params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
—
Filters
— (Array<map>
)Filters applied to the describe action.
Valid filter names: replication-instance-arn | replication-instance-id | replication-instance-class | engine-version
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.ReplicationInstances
— (Array<map>
)The replication instances described.
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance
-
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
ReplicationInstanceStatus
— (String
)The status of the replication instance.
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
InstanceCreateTime
— (Date
)The time the replication instance was created.
VpcSecurityGroups
— (Array<map>
)The VPC security group for the instance.
VpcSecurityGroupId
— (String
)The VPC security group Id.
Status
— (String
)The status of the VPC security group.
AvailabilityZone
— (String
)The Availability Zone for the instance.
ReplicationSubnetGroup
— (map
)The subnet group for the replication instance.
ReplicationSubnetGroupIdentifier
— (String
)The identifier of the replication instance subnet group.
ReplicationSubnetGroupDescription
— (String
)A description for the replication subnet group.
VpcId
— (String
)The ID of the VPC.
SubnetGroupStatus
— (String
)The status of the subnet group.
Subnets
— (Array<map>
)The subnets that are in the subnet group.
SubnetIdentifier
— (String
)The subnet identifier.
SubnetAvailabilityZone
— (map
)The Availability Zone of the subnet.
Name
— (String
)The name of the availability zone.
SubnetStatus
— (String
)The status of the subnet.
PreferredMaintenanceWindow
— (String
)The maintenance window times for the replication instance.
PendingModifiedValues
— (map
)The pending modification values.
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
AutoMinorVersionUpgrade
— (Boolean
)Boolean value indicating if minor version upgrades will be automatically applied to the instance.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
ReplicationInstancePublicIpAddress
— (String
)The public IP address of the replication instance.
ReplicationInstancePrivateIpAddress
— (String
)The private IP address of the replication instance.
ReplicationInstancePublicIpAddresses
— (Array<String>
)One or more public IP addresses for the replication instance.
ReplicationInstancePrivateIpAddresses
— (Array<String>
)One or more private IP addresses for the replication instance.
PubliclyAccessible
— (Boolean
)Specifies the accessibility options for the replication instance. A value of
true
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.SecondaryAvailabilityZone
— (String
)The availability zone of the standby replication instance in a Multi-AZ deployment.
FreeUntil
— (Date
)The expiration date of the free replication instance that is part of the Free DMS program.
DnsNameServers
— (String
)The DNS name servers for the replication instance.
-
(AWS.Response)
—
Returns:
See Also:
dms.waitFor('replicationInstanceDeleted', params = {}, [callback]) ⇒ AWS.Request
Waits for the replicationInstanceDeleted
state by periodically calling the underlying
DMS.describeReplicationInstances() operation every 15 seconds
(at most 60 times).
Examples:
Waiting for the replicationInstanceDeleted state
var params = {
// ... input parameters ...
};
dms.waitFor('replicationInstanceDeleted', params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
—
Filters
— (Array<map>
)Filters applied to the describe action.
Valid filter names: replication-instance-arn | replication-instance-id | replication-instance-class | engine-version
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.ReplicationInstances
— (Array<map>
)The replication instances described.
ReplicationInstanceIdentifier
— (String
)The replication instance identifier. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance
-
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
ReplicationInstanceStatus
— (String
)The status of the replication instance.
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
InstanceCreateTime
— (Date
)The time the replication instance was created.
VpcSecurityGroups
— (Array<map>
)The VPC security group for the instance.
VpcSecurityGroupId
— (String
)The VPC security group Id.
Status
— (String
)The status of the VPC security group.
AvailabilityZone
— (String
)The Availability Zone for the instance.
ReplicationSubnetGroup
— (map
)The subnet group for the replication instance.
ReplicationSubnetGroupIdentifier
— (String
)The identifier of the replication instance subnet group.
ReplicationSubnetGroupDescription
— (String
)A description for the replication subnet group.
VpcId
— (String
)The ID of the VPC.
SubnetGroupStatus
— (String
)The status of the subnet group.
Subnets
— (Array<map>
)The subnets that are in the subnet group.
SubnetIdentifier
— (String
)The subnet identifier.
SubnetAvailabilityZone
— (map
)The Availability Zone of the subnet.
Name
— (String
)The name of the availability zone.
SubnetStatus
— (String
)The status of the subnet.
PreferredMaintenanceWindow
— (String
)The maintenance window times for the replication instance.
PendingModifiedValues
— (map
)The pending modification values.
ReplicationInstanceClass
— (String
)The compute and memory capacity of the replication instance.
Valid Values:
dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
AllocatedStorage
— (Integer
)The amount of storage (in gigabytes) that is allocated for the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
MultiAZ
— (Boolean
)Specifies whether the replication instance is a Multi-AZ deployment. You cannot set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.EngineVersion
— (String
)The engine version number of the replication instance.
AutoMinorVersionUpgrade
— (Boolean
)Boolean value indicating if minor version upgrades will be automatically applied to the instance.
KmsKeyId
— (String
)An AWS KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the
KmsKeyId
parameter, then AWS DMS uses your default encryption key.AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
ReplicationInstancePublicIpAddress
— (String
)The public IP address of the replication instance.
ReplicationInstancePrivateIpAddress
— (String
)The private IP address of the replication instance.
ReplicationInstancePublicIpAddresses
— (Array<String>
)One or more public IP addresses for the replication instance.
ReplicationInstancePrivateIpAddresses
— (Array<String>
)One or more private IP addresses for the replication instance.
PubliclyAccessible
— (Boolean
)Specifies the accessibility options for the replication instance. A value of
true
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.SecondaryAvailabilityZone
— (String
)The availability zone of the standby replication instance in a Multi-AZ deployment.
FreeUntil
— (Date
)The expiration date of the free replication instance that is part of the Free DMS program.
DnsNameServers
— (String
)The DNS name servers for the replication instance.
-
(AWS.Response)
—
Returns:
See Also:
dms.waitFor('replicationTaskReady', params = {}, [callback]) ⇒ AWS.Request
Waits for the replicationTaskReady
state by periodically calling the underlying
DMS.describeReplicationTasks() operation every 15 seconds
(at most 60 times).
Examples:
Waiting for the replicationTaskReady state
var params = {
// ... input parameters ...
};
dms.waitFor('replicationTaskReady', params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
—
Filters
— (Array<map>
)Filters applied to the describe action.
Valid filter names: replication-task-arn | replication-task-id | migration-type | endpoint-arn | replication-instance-arn
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.WithoutSettings
— (Boolean
)An option to set to avoid returning information about settings. Use this to reduce overhead when setting information is too large. To use this option, choose
true
; otherwise, choosefalse
(the default).
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.ReplicationTasks
— (Array<map>
)A description of the replication tasks.
ReplicationTaskIdentifier
— (String
)The user-assigned replication task identifier or name.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MigrationType
— (String
)The type of migration.
Possible values include:"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)Table mappings specified in the task.
ReplicationTaskSettings
— (String
)The settings for the replication task.
Status
— (String
)The status of the replication task.
LastFailureMessage
— (String
)The last error (failure) message generated for the replication instance.
StopReason
— (String
)The reason the replication task was stopped.
ReplicationTaskCreationDate
— (Date
)The date the replication task was created.
ReplicationTaskStartDate
— (Date
)The date the replication task is scheduled to start.
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPosition
orCdcStartTime
to specify when you want the CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
RecoveryCheckpoint
— (String
)Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the
CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskStats
— (map
)The statistics for the task, including elapsed time, tables loaded, and table errors.
FullLoadProgressPercent
— (Integer
)The percent complete for the full load migration task.
ElapsedTimeMillis
— (Integer
)The elapsed time of the task, in milliseconds.
TablesLoaded
— (Integer
)The number of tables loaded for this task.
TablesLoading
— (Integer
)The number of tables currently loading for this task.
TablesQueued
— (Integer
)The number of tables queued for this task.
TablesErrored
— (Integer
)The number of errors that have occurred during this task.
FreshStartDate
— (Date
)The date the replication task was started either with a fresh start or a target reload.
StartDate
— (Date
)The date the replication task was started either with a fresh start or a resume. For more information, see StartReplicationTaskType.
StopDate
— (Date
)The date the replication task was stopped.
FullLoadStartDate
— (Date
)The date the the replication task full load was started.
FullLoadFinishDate
— (Date
)The date the replication task full load was completed.
-
(AWS.Response)
—
Returns:
See Also:
dms.waitFor('replicationTaskStopped', params = {}, [callback]) ⇒ AWS.Request
Waits for the replicationTaskStopped
state by periodically calling the underlying
DMS.describeReplicationTasks() operation every 15 seconds
(at most 60 times).
Examples:
Waiting for the replicationTaskStopped state
var params = {
// ... input parameters ...
};
dms.waitFor('replicationTaskStopped', params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
—
Filters
— (Array<map>
)Filters applied to the describe action.
Valid filter names: replication-task-arn | replication-task-id | migration-type | endpoint-arn | replication-instance-arn
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.WithoutSettings
— (Boolean
)An option to set to avoid returning information about settings. Use this to reduce overhead when setting information is too large. To use this option, choose
true
; otherwise, choosefalse
(the default).
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.ReplicationTasks
— (Array<map>
)A description of the replication tasks.
ReplicationTaskIdentifier
— (String
)The user-assigned replication task identifier or name.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MigrationType
— (String
)The type of migration.
Possible values include:"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)Table mappings specified in the task.
ReplicationTaskSettings
— (String
)The settings for the replication task.
Status
— (String
)The status of the replication task.
LastFailureMessage
— (String
)The last error (failure) message generated for the replication instance.
StopReason
— (String
)The reason the replication task was stopped.
ReplicationTaskCreationDate
— (Date
)The date the replication task was created.
ReplicationTaskStartDate
— (Date
)The date the replication task is scheduled to start.
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPosition
orCdcStartTime
to specify when you want the CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
RecoveryCheckpoint
— (String
)Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the
CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskStats
— (map
)The statistics for the task, including elapsed time, tables loaded, and table errors.
FullLoadProgressPercent
— (Integer
)The percent complete for the full load migration task.
ElapsedTimeMillis
— (Integer
)The elapsed time of the task, in milliseconds.
TablesLoaded
— (Integer
)The number of tables loaded for this task.
TablesLoading
— (Integer
)The number of tables currently loading for this task.
TablesQueued
— (Integer
)The number of tables queued for this task.
TablesErrored
— (Integer
)The number of errors that have occurred during this task.
FreshStartDate
— (Date
)The date the replication task was started either with a fresh start or a target reload.
StartDate
— (Date
)The date the replication task was started either with a fresh start or a resume. For more information, see StartReplicationTaskType.
StopDate
— (Date
)The date the replication task was stopped.
FullLoadStartDate
— (Date
)The date the the replication task full load was started.
FullLoadFinishDate
— (Date
)The date the replication task full load was completed.
-
(AWS.Response)
—
Returns:
See Also:
dms.waitFor('replicationTaskRunning', params = {}, [callback]) ⇒ AWS.Request
Waits for the replicationTaskRunning
state by periodically calling the underlying
DMS.describeReplicationTasks() operation every 15 seconds
(at most 60 times).
Examples:
Waiting for the replicationTaskRunning state
var params = {
// ... input parameters ...
};
dms.waitFor('replicationTaskRunning', params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
—
Filters
— (Array<map>
)Filters applied to the describe action.
Valid filter names: replication-task-arn | replication-task-id | migration-type | endpoint-arn | replication-instance-arn
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.WithoutSettings
— (Boolean
)An option to set to avoid returning information about settings. Use this to reduce overhead when setting information is too large. To use this option, choose
true
; otherwise, choosefalse
(the default).
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.ReplicationTasks
— (Array<map>
)A description of the replication tasks.
ReplicationTaskIdentifier
— (String
)The user-assigned replication task identifier or name.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MigrationType
— (String
)The type of migration.
Possible values include:"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)Table mappings specified in the task.
ReplicationTaskSettings
— (String
)The settings for the replication task.
Status
— (String
)The status of the replication task.
LastFailureMessage
— (String
)The last error (failure) message generated for the replication instance.
StopReason
— (String
)The reason the replication task was stopped.
ReplicationTaskCreationDate
— (Date
)The date the replication task was created.
ReplicationTaskStartDate
— (Date
)The date the replication task is scheduled to start.
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPosition
orCdcStartTime
to specify when you want the CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
RecoveryCheckpoint
— (String
)Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the
CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskStats
— (map
)The statistics for the task, including elapsed time, tables loaded, and table errors.
FullLoadProgressPercent
— (Integer
)The percent complete for the full load migration task.
ElapsedTimeMillis
— (Integer
)The elapsed time of the task, in milliseconds.
TablesLoaded
— (Integer
)The number of tables loaded for this task.
TablesLoading
— (Integer
)The number of tables currently loading for this task.
TablesQueued
— (Integer
)The number of tables queued for this task.
TablesErrored
— (Integer
)The number of errors that have occurred during this task.
FreshStartDate
— (Date
)The date the replication task was started either with a fresh start or a target reload.
StartDate
— (Date
)The date the replication task was started either with a fresh start or a resume. For more information, see StartReplicationTaskType.
StopDate
— (Date
)The date the replication task was stopped.
FullLoadStartDate
— (Date
)The date the the replication task full load was started.
FullLoadFinishDate
— (Date
)The date the replication task full load was completed.
-
(AWS.Response)
—
Returns:
See Also:
dms.waitFor('replicationTaskDeleted', params = {}, [callback]) ⇒ AWS.Request
Waits for the replicationTaskDeleted
state by periodically calling the underlying
DMS.describeReplicationTasks() operation every 15 seconds
(at most 60 times).
Examples:
Waiting for the replicationTaskDeleted state
var params = {
// ... input parameters ...
};
dms.waitFor('replicationTaskDeleted', params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
—
Filters
— (Array<map>
)Filters applied to the describe action.
Valid filter names: replication-task-arn | replication-task-id | migration-type | endpoint-arn | replication-instance-arn
Name
— required — (String
)The name of the filter.
Values
— required — (Array<String>
)The filter value.
MaxRecords
— (Integer
)The maximum number of records to include in the response. If more records exist than the specified
MaxRecords
value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.Default: 100
Constraints: Minimum 20, maximum 100.
Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.WithoutSettings
— (Boolean
)An option to set to avoid returning information about settings. Use this to reduce overhead when setting information is too large. To use this option, choose
true
; otherwise, choosefalse
(the default).
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Marker
— (String
)An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords
.ReplicationTasks
— (Array<map>
)A description of the replication tasks.
ReplicationTaskIdentifier
— (String
)The user-assigned replication task identifier or name.
Constraints:
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
SourceEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
TargetEndpointArn
— (String
)The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
ReplicationInstanceArn
— (String
)The Amazon Resource Name (ARN) of the replication instance.
MigrationType
— (String
)The type of migration.
Possible values include:"full-load"
"cdc"
"full-load-and-cdc"
TableMappings
— (String
)Table mappings specified in the task.
ReplicationTaskSettings
— (String
)The settings for the replication task.
Status
— (String
)The status of the replication task.
LastFailureMessage
— (String
)The last error (failure) message generated for the replication instance.
StopReason
— (String
)The reason the replication task was stopped.
ReplicationTaskCreationDate
— (Date
)The date the replication task was created.
ReplicationTaskStartDate
— (Date
)The date the replication task is scheduled to start.
CdcStartPosition
— (String
)Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPosition
orCdcStartTime
to specify when you want the CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
Date Example: --cdc-start-position “2018-03-08T12:12:12”
Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
CdcStopPosition
— (String
)Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
RecoveryCheckpoint
— (String
)Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the
CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.ReplicationTaskArn
— (String
)The Amazon Resource Name (ARN) of the replication task.
ReplicationTaskStats
— (map
)The statistics for the task, including elapsed time, tables loaded, and table errors.
FullLoadProgressPercent
— (Integer
)The percent complete for the full load migration task.
ElapsedTimeMillis
— (Integer
)The elapsed time of the task, in milliseconds.
TablesLoaded
— (Integer
)The number of tables loaded for this task.
TablesLoading
— (Integer
)The number of tables currently loading for this task.
TablesQueued
— (Integer
)The number of tables queued for this task.
TablesErrored
— (Integer
)The number of errors that have occurred during this task.
FreshStartDate
— (Date
)The date the replication task was started either with a fresh start or a target reload.
StartDate
— (Date
)The date the replication task was started either with a fresh start or a resume. For more information, see StartReplicationTaskType.
StopDate
— (Date
)The date the replication task was stopped.
FullLoadStartDate
— (Date
)The date the the replication task full load was started.
FullLoadFinishDate
— (Date
)The date the replication task full load was completed.
-
(AWS.Response)
—
Returns:
See Also: