DeleteEndpoint Node.js Example
var os = require('os');
if (os.platform() == 'win32') {
if (os.arch() == 'ia32') {
var chilkat = require('@chilkat/ck-node17-win-ia32');
} else {
var chilkat = require('@chilkat/ck-node17-win64');
}
} else if (os.platform() == 'linux') {
if (os.arch() == 'arm') {
var chilkat = require('@chilkat/ck-node17-arm');
} else if (os.arch() == 'x86') {
var chilkat = require('@chilkat/ck-node17-linux32');
} else {
var chilkat = require('@chilkat/ck-node17-linux64');
}
} else if (os.platform() == 'darwin') {
var chilkat = require('@chilkat/ck-node17-macosx');
}
function chilkatExample() {
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
var rest = new chilkat.Rest();
var success;
var authAws = new chilkat.AuthAws();
authAws.AccessKey = "AWS_ACCESS_KEY";
authAws.SecretKey = "AWS_SECRET_KEY";
// Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
authAws.Region = "us-west-2";
authAws.ServiceName = "dms";
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
rest.SetAuthAws(authAws);
// URL: https://dms.us-west-2.amazonaws.com/
// Use the same region as specified above.
success = rest.Connect("dms.us-west-2.amazonaws.com",443,true,true);
if (success !== true) {
console.log("ConnectFailReason: " + rest.ConnectFailReason);
console.log(rest.LastErrorText);
return;
}
// The following code creates the JSON request body.
// The JSON created by this code is shown below.
// Use this online tool to generate code from sample JSON:
// Generate Code to Create JSON
var json = new chilkat.JsonObject();
json.UpdateString("EndpointArn","string");
// The JSON request body created by the above code:
// {
// "EndpointArn": "string"
// }
rest.AddHeader("Content-Type","application/x-amz-json-1.1");
rest.AddHeader("X-Amz-Target","AmazonDMSv20160101.DeleteEndpoint");
var sbRequestBody = new chilkat.StringBuilder();
json.EmitSb(sbRequestBody);
var sbResponseBody = new chilkat.StringBuilder();
success = rest.FullRequestSb("POST","/",sbRequestBody,sbResponseBody);
if (success !== true) {
console.log(rest.LastErrorText);
return;
}
var respStatusCode = rest.ResponseStatusCode;
console.log("response status code = " + respStatusCode);
if (respStatusCode !== 200) {
console.log("Response Header:");
console.log(rest.ResponseHeader);
console.log("Response Body:");
console.log(sbResponseBody.GetAsString());
return;
}
var jResp = new chilkat.JsonObject();
jResp.LoadSb(sbResponseBody);
// The following code parses the JSON response.
// A sample JSON response is shown below the sample code.
// Use this online tool to generate parsing code from sample JSON:
// Generate Parsing Code from JSON
var intVal;
var CertificateArn = jResp.StringOf("Endpoint.CertificateArn");
var DatabaseName = jResp.StringOf("Endpoint.DatabaseName");
var BucketName = jResp.StringOf("Endpoint.DmsTransferSettings.BucketName");
var ServiceAccessRoleArn = jResp.StringOf("Endpoint.DmsTransferSettings.ServiceAccessRoleArn");
var DocDbSettingsDatabaseName = jResp.StringOf("Endpoint.DocDbSettings.DatabaseName");
var DocsToInvestigate = jResp.IntOf("Endpoint.DocDbSettings.DocsToInvestigate");
var ExtractDocId = jResp.IntOf("Endpoint.DocDbSettings.ExtractDocId");
var KmsKeyId = jResp.StringOf("Endpoint.DocDbSettings.KmsKeyId");
var NestingLevel = jResp.StringOf("Endpoint.DocDbSettings.NestingLevel");
var Password = jResp.StringOf("Endpoint.DocDbSettings.Password");
var Port = jResp.IntOf("Endpoint.DocDbSettings.Port");
var SecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.DocDbSettings.SecretsManagerAccessRoleArn");
var SecretsManagerSecretId = jResp.StringOf("Endpoint.DocDbSettings.SecretsManagerSecretId");
var ServerName = jResp.StringOf("Endpoint.DocDbSettings.ServerName");
var Username = jResp.StringOf("Endpoint.DocDbSettings.Username");
var DynamoDbSettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.DynamoDbSettings.ServiceAccessRoleArn");
var EndpointUri = jResp.StringOf("Endpoint.ElasticsearchSettings.EndpointUri");
var ErrorRetryDuration = jResp.IntOf("Endpoint.ElasticsearchSettings.ErrorRetryDuration");
var FullLoadErrorPercentage = jResp.IntOf("Endpoint.ElasticsearchSettings.FullLoadErrorPercentage");
var ElasticsearchSettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.ElasticsearchSettings.ServiceAccessRoleArn");
var EndpointArn = jResp.StringOf("Endpoint.EndpointArn");
var EndpointIdentifier = jResp.StringOf("Endpoint.EndpointIdentifier");
var EndpointType = jResp.StringOf("Endpoint.EndpointType");
var EngineDisplayName = jResp.StringOf("Endpoint.EngineDisplayName");
var EngineName = jResp.StringOf("Endpoint.EngineName");
var ExternalId = jResp.StringOf("Endpoint.ExternalId");
var ExternalTableDefinition = jResp.StringOf("Endpoint.ExternalTableDefinition");
var ExtraConnectionAttributes = jResp.StringOf("Endpoint.ExtraConnectionAttributes");
var AfterConnectScript = jResp.StringOf("Endpoint.GcpMySQLSettings.AfterConnectScript");
var CleanSourceMetadataOnMismatch = jResp.IntOf("Endpoint.GcpMySQLSettings.CleanSourceMetadataOnMismatch");
var GcpMySQLSettingsDatabaseName = jResp.StringOf("Endpoint.GcpMySQLSettings.DatabaseName");
var EventsPollInterval = jResp.IntOf("Endpoint.GcpMySQLSettings.EventsPollInterval");
var MaxFileSize = jResp.IntOf("Endpoint.GcpMySQLSettings.MaxFileSize");
var ParallelLoadThreads = jResp.IntOf("Endpoint.GcpMySQLSettings.ParallelLoadThreads");
var GcpMySQLSettingsPassword = jResp.StringOf("Endpoint.GcpMySQLSettings.Password");
var GcpMySQLSettingsPort = jResp.IntOf("Endpoint.GcpMySQLSettings.Port");
var GcpMySQLSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.GcpMySQLSettings.SecretsManagerAccessRoleArn");
var GcpMySQLSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.GcpMySQLSettings.SecretsManagerSecretId");
var GcpMySQLSettingsServerName = jResp.StringOf("Endpoint.GcpMySQLSettings.ServerName");
var ServerTimezone = jResp.StringOf("Endpoint.GcpMySQLSettings.ServerTimezone");
var TargetDbType = jResp.StringOf("Endpoint.GcpMySQLSettings.TargetDbType");
var GcpMySQLSettingsUsername = jResp.StringOf("Endpoint.GcpMySQLSettings.Username");
var CurrentLsn = jResp.StringOf("Endpoint.IBMDb2Settings.CurrentLsn");
var IBMDb2SettingsDatabaseName = jResp.StringOf("Endpoint.IBMDb2Settings.DatabaseName");
var MaxKBytesPerRead = jResp.IntOf("Endpoint.IBMDb2Settings.MaxKBytesPerRead");
var IBMDb2SettingsPassword = jResp.StringOf("Endpoint.IBMDb2Settings.Password");
var IBMDb2SettingsPort = jResp.IntOf("Endpoint.IBMDb2Settings.Port");
var IBMDb2SettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.IBMDb2Settings.SecretsManagerAccessRoleArn");
var IBMDb2SettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.IBMDb2Settings.SecretsManagerSecretId");
var IBMDb2SettingsServerName = jResp.StringOf("Endpoint.IBMDb2Settings.ServerName");
var SetDataCaptureChanges = jResp.IntOf("Endpoint.IBMDb2Settings.SetDataCaptureChanges");
var IBMDb2SettingsUsername = jResp.StringOf("Endpoint.IBMDb2Settings.Username");
var Broker = jResp.StringOf("Endpoint.KafkaSettings.Broker");
var IncludeControlDetails = jResp.IntOf("Endpoint.KafkaSettings.IncludeControlDetails");
var IncludeNullAndEmpty = jResp.IntOf("Endpoint.KafkaSettings.IncludeNullAndEmpty");
var IncludePartitionValue = jResp.IntOf("Endpoint.KafkaSettings.IncludePartitionValue");
var IncludeTableAlterOperations = jResp.IntOf("Endpoint.KafkaSettings.IncludeTableAlterOperations");
var IncludeTransactionDetails = jResp.IntOf("Endpoint.KafkaSettings.IncludeTransactionDetails");
var MessageFormat = jResp.StringOf("Endpoint.KafkaSettings.MessageFormat");
var MessageMaxBytes = jResp.IntOf("Endpoint.KafkaSettings.MessageMaxBytes");
var NoHexPrefix = jResp.IntOf("Endpoint.KafkaSettings.NoHexPrefix");
var PartitionIncludeSchemaTable = jResp.IntOf("Endpoint.KafkaSettings.PartitionIncludeSchemaTable");
var SaslPassword = jResp.StringOf("Endpoint.KafkaSettings.SaslPassword");
var SaslUsername = jResp.StringOf("Endpoint.KafkaSettings.SaslUsername");
var SecurityProtocol = jResp.StringOf("Endpoint.KafkaSettings.SecurityProtocol");
var SslCaCertificateArn = jResp.StringOf("Endpoint.KafkaSettings.SslCaCertificateArn");
var SslClientCertificateArn = jResp.StringOf("Endpoint.KafkaSettings.SslClientCertificateArn");
var SslClientKeyArn = jResp.StringOf("Endpoint.KafkaSettings.SslClientKeyArn");
var SslClientKeyPassword = jResp.StringOf("Endpoint.KafkaSettings.SslClientKeyPassword");
var Topic = jResp.StringOf("Endpoint.KafkaSettings.Topic");
var KinesisSettingsIncludeControlDetails = jResp.IntOf("Endpoint.KinesisSettings.IncludeControlDetails");
var KinesisSettingsIncludeNullAndEmpty = jResp.IntOf("Endpoint.KinesisSettings.IncludeNullAndEmpty");
var KinesisSettingsIncludePartitionValue = jResp.IntOf("Endpoint.KinesisSettings.IncludePartitionValue");
var KinesisSettingsIncludeTableAlterOperations = jResp.IntOf("Endpoint.KinesisSettings.IncludeTableAlterOperations");
var KinesisSettingsIncludeTransactionDetails = jResp.IntOf("Endpoint.KinesisSettings.IncludeTransactionDetails");
var KinesisSettingsMessageFormat = jResp.StringOf("Endpoint.KinesisSettings.MessageFormat");
var KinesisSettingsNoHexPrefix = jResp.IntOf("Endpoint.KinesisSettings.NoHexPrefix");
var KinesisSettingsPartitionIncludeSchemaTable = jResp.IntOf("Endpoint.KinesisSettings.PartitionIncludeSchemaTable");
var KinesisSettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.KinesisSettings.ServiceAccessRoleArn");
var StreamArn = jResp.StringOf("Endpoint.KinesisSettings.StreamArn");
var EndpointKmsKeyId = jResp.StringOf("Endpoint.KmsKeyId");
var BcpPacketSize = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.BcpPacketSize");
var ControlTablesFileGroup = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.ControlTablesFileGroup");
var MicrosoftSQLServerSettingsDatabaseName = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.DatabaseName");
var MicrosoftSQLServerSettingsPassword = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.Password");
var MicrosoftSQLServerSettingsPort = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.Port");
var QuerySingleAlwaysOnNode = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.QuerySingleAlwaysOnNode");
var ReadBackupOnly = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.ReadBackupOnly");
var SafeguardPolicy = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.SafeguardPolicy");
var MicrosoftSQLServerSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.SecretsManagerAccessRoleArn");
var MicrosoftSQLServerSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.SecretsManagerSecretId");
var MicrosoftSQLServerSettingsServerName = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.ServerName");
var UseBcpFullLoad = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.UseBcpFullLoad");
var MicrosoftSQLServerSettingsUsername = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.Username");
var UseThirdPartyBackupDevice = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.UseThirdPartyBackupDevice");
var AuthMechanism = jResp.StringOf("Endpoint.MongoDbSettings.AuthMechanism");
var AuthSource = jResp.StringOf("Endpoint.MongoDbSettings.AuthSource");
var AuthType = jResp.StringOf("Endpoint.MongoDbSettings.AuthType");
var MongoDbSettingsDatabaseName = jResp.StringOf("Endpoint.MongoDbSettings.DatabaseName");
var MongoDbSettingsDocsToInvestigate = jResp.StringOf("Endpoint.MongoDbSettings.DocsToInvestigate");
var MongoDbSettingsExtractDocId = jResp.StringOf("Endpoint.MongoDbSettings.ExtractDocId");
var MongoDbSettingsKmsKeyId = jResp.StringOf("Endpoint.MongoDbSettings.KmsKeyId");
var MongoDbSettingsNestingLevel = jResp.StringOf("Endpoint.MongoDbSettings.NestingLevel");
var MongoDbSettingsPassword = jResp.StringOf("Endpoint.MongoDbSettings.Password");
var MongoDbSettingsPort = jResp.IntOf("Endpoint.MongoDbSettings.Port");
var MongoDbSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.MongoDbSettings.SecretsManagerAccessRoleArn");
var MongoDbSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.MongoDbSettings.SecretsManagerSecretId");
var MongoDbSettingsServerName = jResp.StringOf("Endpoint.MongoDbSettings.ServerName");
var MongoDbSettingsUsername = jResp.StringOf("Endpoint.MongoDbSettings.Username");
var MySQLSettingsAfterConnectScript = jResp.StringOf("Endpoint.MySQLSettings.AfterConnectScript");
var MySQLSettingsCleanSourceMetadataOnMismatch = jResp.IntOf("Endpoint.MySQLSettings.CleanSourceMetadataOnMismatch");
var MySQLSettingsDatabaseName = jResp.StringOf("Endpoint.MySQLSettings.DatabaseName");
var MySQLSettingsEventsPollInterval = jResp.IntOf("Endpoint.MySQLSettings.EventsPollInterval");
var MySQLSettingsMaxFileSize = jResp.IntOf("Endpoint.MySQLSettings.MaxFileSize");
var MySQLSettingsParallelLoadThreads = jResp.IntOf("Endpoint.MySQLSettings.ParallelLoadThreads");
var MySQLSettingsPassword = jResp.StringOf("Endpoint.MySQLSettings.Password");
var MySQLSettingsPort = jResp.IntOf("Endpoint.MySQLSettings.Port");
var MySQLSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.MySQLSettings.SecretsManagerAccessRoleArn");
var MySQLSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.MySQLSettings.SecretsManagerSecretId");
var MySQLSettingsServerName = jResp.StringOf("Endpoint.MySQLSettings.ServerName");
var MySQLSettingsServerTimezone = jResp.StringOf("Endpoint.MySQLSettings.ServerTimezone");
var MySQLSettingsTargetDbType = jResp.StringOf("Endpoint.MySQLSettings.TargetDbType");
var MySQLSettingsUsername = jResp.StringOf("Endpoint.MySQLSettings.Username");
var NeptuneSettingsErrorRetryDuration = jResp.IntOf("Endpoint.NeptuneSettings.ErrorRetryDuration");
var IamAuthEnabled = jResp.IntOf("Endpoint.NeptuneSettings.IamAuthEnabled");
var NeptuneSettingsMaxFileSize = jResp.IntOf("Endpoint.NeptuneSettings.MaxFileSize");
var MaxRetryCount = jResp.IntOf("Endpoint.NeptuneSettings.MaxRetryCount");
var S3BucketFolder = jResp.StringOf("Endpoint.NeptuneSettings.S3BucketFolder");
var S3BucketName = jResp.StringOf("Endpoint.NeptuneSettings.S3BucketName");
var NeptuneSettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.NeptuneSettings.ServiceAccessRoleArn");
var AccessAlternateDirectly = jResp.IntOf("Endpoint.OracleSettings.AccessAlternateDirectly");
var AdditionalArchivedLogDestId = jResp.IntOf("Endpoint.OracleSettings.AdditionalArchivedLogDestId");
var AddSupplementalLogging = jResp.IntOf("Endpoint.OracleSettings.AddSupplementalLogging");
var AllowSelectNestedTables = jResp.IntOf("Endpoint.OracleSettings.AllowSelectNestedTables");
var ArchivedLogDestId = jResp.IntOf("Endpoint.OracleSettings.ArchivedLogDestId");
var ArchivedLogsOnly = jResp.IntOf("Endpoint.OracleSettings.ArchivedLogsOnly");
var AsmPassword = jResp.StringOf("Endpoint.OracleSettings.AsmPassword");
var AsmServer = jResp.StringOf("Endpoint.OracleSettings.AsmServer");
var AsmUser = jResp.StringOf("Endpoint.OracleSettings.AsmUser");
var CharLengthSemantics = jResp.StringOf("Endpoint.OracleSettings.CharLengthSemantics");
var OracleSettingsDatabaseName = jResp.StringOf("Endpoint.OracleSettings.DatabaseName");
var DirectPathNoLog = jResp.IntOf("Endpoint.OracleSettings.DirectPathNoLog");
var DirectPathParallelLoad = jResp.IntOf("Endpoint.OracleSettings.DirectPathParallelLoad");
var EnableHomogenousTablespace = jResp.IntOf("Endpoint.OracleSettings.EnableHomogenousTablespace");
var FailTasksOnLobTruncation = jResp.IntOf("Endpoint.OracleSettings.FailTasksOnLobTruncation");
var NumberDatatypeScale = jResp.IntOf("Endpoint.OracleSettings.NumberDatatypeScale");
var OraclePathPrefix = jResp.StringOf("Endpoint.OracleSettings.OraclePathPrefix");
var ParallelAsmReadThreads = jResp.IntOf("Endpoint.OracleSettings.ParallelAsmReadThreads");
var OracleSettingsPassword = jResp.StringOf("Endpoint.OracleSettings.Password");
var OracleSettingsPort = jResp.IntOf("Endpoint.OracleSettings.Port");
var ReadAheadBlocks = jResp.IntOf("Endpoint.OracleSettings.ReadAheadBlocks");
var ReadTableSpaceName = jResp.IntOf("Endpoint.OracleSettings.ReadTableSpaceName");
var ReplacePathPrefix = jResp.IntOf("Endpoint.OracleSettings.ReplacePathPrefix");
var RetryInterval = jResp.IntOf("Endpoint.OracleSettings.RetryInterval");
var OracleSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.OracleSettings.SecretsManagerAccessRoleArn");
var SecretsManagerOracleAsmAccessRoleArn = jResp.StringOf("Endpoint.OracleSettings.SecretsManagerOracleAsmAccessRoleArn");
var SecretsManagerOracleAsmSecretId = jResp.StringOf("Endpoint.OracleSettings.SecretsManagerOracleAsmSecretId");
var OracleSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.OracleSettings.SecretsManagerSecretId");
var SecurityDbEncryption = jResp.StringOf("Endpoint.OracleSettings.SecurityDbEncryption");
var SecurityDbEncryptionName = jResp.StringOf("Endpoint.OracleSettings.SecurityDbEncryptionName");
var OracleSettingsServerName = jResp.StringOf("Endpoint.OracleSettings.ServerName");
var SpatialDataOptionToGeoJsonFunctionName = jResp.StringOf("Endpoint.OracleSettings.SpatialDataOptionToGeoJsonFunctionName");
var StandbyDelayTime = jResp.IntOf("Endpoint.OracleSettings.StandbyDelayTime");
var UseAlternateFolderForOnline = jResp.IntOf("Endpoint.OracleSettings.UseAlternateFolderForOnline");
var UseBFile = jResp.IntOf("Endpoint.OracleSettings.UseBFile");
var UseDirectPathFullLoad = jResp.IntOf("Endpoint.OracleSettings.UseDirectPathFullLoad");
var UseLogminerReader = jResp.IntOf("Endpoint.OracleSettings.UseLogminerReader");
var UsePathPrefix = jResp.StringOf("Endpoint.OracleSettings.UsePathPrefix");
var OracleSettingsUsername = jResp.StringOf("Endpoint.OracleSettings.Username");
var EndpointPort = jResp.IntOf("Endpoint.Port");
var PostgreSQLSettingsAfterConnectScript = jResp.StringOf("Endpoint.PostgreSQLSettings.AfterConnectScript");
var CaptureDdls = jResp.IntOf("Endpoint.PostgreSQLSettings.CaptureDdls");
var PostgreSQLSettingsDatabaseName = jResp.StringOf("Endpoint.PostgreSQLSettings.DatabaseName");
var DdlArtifactsSchema = jResp.StringOf("Endpoint.PostgreSQLSettings.DdlArtifactsSchema");
var ExecuteTimeout = jResp.IntOf("Endpoint.PostgreSQLSettings.ExecuteTimeout");
var PostgreSQLSettingsFailTasksOnLobTruncation = jResp.IntOf("Endpoint.PostgreSQLSettings.FailTasksOnLobTruncation");
var HeartbeatEnable = jResp.IntOf("Endpoint.PostgreSQLSettings.HeartbeatEnable");
var HeartbeatFrequency = jResp.IntOf("Endpoint.PostgreSQLSettings.HeartbeatFrequency");
var HeartbeatSchema = jResp.StringOf("Endpoint.PostgreSQLSettings.HeartbeatSchema");
var PostgreSQLSettingsMaxFileSize = jResp.IntOf("Endpoint.PostgreSQLSettings.MaxFileSize");
var PostgreSQLSettingsPassword = jResp.StringOf("Endpoint.PostgreSQLSettings.Password");
var PluginName = jResp.StringOf("Endpoint.PostgreSQLSettings.PluginName");
var PostgreSQLSettingsPort = jResp.IntOf("Endpoint.PostgreSQLSettings.Port");
var PostgreSQLSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.PostgreSQLSettings.SecretsManagerAccessRoleArn");
var PostgreSQLSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.PostgreSQLSettings.SecretsManagerSecretId");
var PostgreSQLSettingsServerName = jResp.StringOf("Endpoint.PostgreSQLSettings.ServerName");
var SlotName = jResp.StringOf("Endpoint.PostgreSQLSettings.SlotName");
var PostgreSQLSettingsUsername = jResp.StringOf("Endpoint.PostgreSQLSettings.Username");
var AuthPassword = jResp.StringOf("Endpoint.RedisSettings.AuthPassword");
var RedisSettingsAuthType = jResp.StringOf("Endpoint.RedisSettings.AuthType");
var AuthUserName = jResp.StringOf("Endpoint.RedisSettings.AuthUserName");
var RedisSettingsPort = jResp.IntOf("Endpoint.RedisSettings.Port");
var RedisSettingsServerName = jResp.StringOf("Endpoint.RedisSettings.ServerName");
var RedisSettingsSslCaCertificateArn = jResp.StringOf("Endpoint.RedisSettings.SslCaCertificateArn");
var SslSecurityProtocol = jResp.StringOf("Endpoint.RedisSettings.SslSecurityProtocol");
var AcceptAnyDate = jResp.IntOf("Endpoint.RedshiftSettings.AcceptAnyDate");
var RedshiftSettingsAfterConnectScript = jResp.StringOf("Endpoint.RedshiftSettings.AfterConnectScript");
var BucketFolder = jResp.StringOf("Endpoint.RedshiftSettings.BucketFolder");
var RedshiftSettingsBucketName = jResp.StringOf("Endpoint.RedshiftSettings.BucketName");
var CaseSensitiveNames = jResp.IntOf("Endpoint.RedshiftSettings.CaseSensitiveNames");
var CompUpdate = jResp.IntOf("Endpoint.RedshiftSettings.CompUpdate");
var ConnectionTimeout = jResp.IntOf("Endpoint.RedshiftSettings.ConnectionTimeout");
var RedshiftSettingsDatabaseName = jResp.StringOf("Endpoint.RedshiftSettings.DatabaseName");
var DateFormat = jResp.StringOf("Endpoint.RedshiftSettings.DateFormat");
var EmptyAsNull = jResp.IntOf("Endpoint.RedshiftSettings.EmptyAsNull");
var EncryptionMode = jResp.StringOf("Endpoint.RedshiftSettings.EncryptionMode");
var ExplicitIds = jResp.IntOf("Endpoint.RedshiftSettings.ExplicitIds");
var FileTransferUploadStreams = jResp.IntOf("Endpoint.RedshiftSettings.FileTransferUploadStreams");
var LoadTimeout = jResp.IntOf("Endpoint.RedshiftSettings.LoadTimeout");
var RedshiftSettingsMaxFileSize = jResp.IntOf("Endpoint.RedshiftSettings.MaxFileSize");
var RedshiftSettingsPassword = jResp.StringOf("Endpoint.RedshiftSettings.Password");
var RedshiftSettingsPort = jResp.IntOf("Endpoint.RedshiftSettings.Port");
var RemoveQuotes = jResp.IntOf("Endpoint.RedshiftSettings.RemoveQuotes");
var ReplaceChars = jResp.StringOf("Endpoint.RedshiftSettings.ReplaceChars");
var ReplaceInvalidChars = jResp.StringOf("Endpoint.RedshiftSettings.ReplaceInvalidChars");
var RedshiftSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.RedshiftSettings.SecretsManagerAccessRoleArn");
var RedshiftSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.RedshiftSettings.SecretsManagerSecretId");
var RedshiftSettingsServerName = jResp.StringOf("Endpoint.RedshiftSettings.ServerName");
var ServerSideEncryptionKmsKeyId = jResp.StringOf("Endpoint.RedshiftSettings.ServerSideEncryptionKmsKeyId");
var RedshiftSettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.RedshiftSettings.ServiceAccessRoleArn");
var TimeFormat = jResp.StringOf("Endpoint.RedshiftSettings.TimeFormat");
var TrimBlanks = jResp.IntOf("Endpoint.RedshiftSettings.TrimBlanks");
var TruncateColumns = jResp.IntOf("Endpoint.RedshiftSettings.TruncateColumns");
var RedshiftSettingsUsername = jResp.StringOf("Endpoint.RedshiftSettings.Username");
var WriteBufferSize = jResp.IntOf("Endpoint.RedshiftSettings.WriteBufferSize");
var AddColumnName = jResp.IntOf("Endpoint.S3Settings.AddColumnName");
var S3SettingsBucketFolder = jResp.StringOf("Endpoint.S3Settings.BucketFolder");
var S3SettingsBucketName = jResp.StringOf("Endpoint.S3Settings.BucketName");
var CannedAclForObjects = jResp.StringOf("Endpoint.S3Settings.CannedAclForObjects");
var CdcInsertsAndUpdates = jResp.IntOf("Endpoint.S3Settings.CdcInsertsAndUpdates");
var CdcInsertsOnly = jResp.IntOf("Endpoint.S3Settings.CdcInsertsOnly");
var CdcMaxBatchInterval = jResp.IntOf("Endpoint.S3Settings.CdcMaxBatchInterval");
var CdcMinFileSize = jResp.IntOf("Endpoint.S3Settings.CdcMinFileSize");
var CdcPath = jResp.StringOf("Endpoint.S3Settings.CdcPath");
var CompressionType = jResp.StringOf("Endpoint.S3Settings.CompressionType");
var CsvDelimiter = jResp.StringOf("Endpoint.S3Settings.CsvDelimiter");
var CsvNoSupValue = jResp.StringOf("Endpoint.S3Settings.CsvNoSupValue");
var CsvNullValue = jResp.StringOf("Endpoint.S3Settings.CsvNullValue");
var CsvRowDelimiter = jResp.StringOf("Endpoint.S3Settings.CsvRowDelimiter");
var DataFormat = jResp.StringOf("Endpoint.S3Settings.DataFormat");
var DataPageSize = jResp.IntOf("Endpoint.S3Settings.DataPageSize");
var DatePartitionDelimiter = jResp.StringOf("Endpoint.S3Settings.DatePartitionDelimiter");
var DatePartitionEnabled = jResp.IntOf("Endpoint.S3Settings.DatePartitionEnabled");
var DatePartitionSequence = jResp.StringOf("Endpoint.S3Settings.DatePartitionSequence");
var DatePartitionTimezone = jResp.StringOf("Endpoint.S3Settings.DatePartitionTimezone");
var DictPageSizeLimit = jResp.IntOf("Endpoint.S3Settings.DictPageSizeLimit");
var EnableStatistics = jResp.IntOf("Endpoint.S3Settings.EnableStatistics");
var EncodingType = jResp.StringOf("Endpoint.S3Settings.EncodingType");
var S3SettingsEncryptionMode = jResp.StringOf("Endpoint.S3Settings.EncryptionMode");
var S3SettingsExternalTableDefinition = jResp.StringOf("Endpoint.S3Settings.ExternalTableDefinition");
var IgnoreHeaderRows = jResp.IntOf("Endpoint.S3Settings.IgnoreHeaderRows");
var IncludeOpForFullLoad = jResp.IntOf("Endpoint.S3Settings.IncludeOpForFullLoad");
var S3SettingsMaxFileSize = jResp.IntOf("Endpoint.S3Settings.MaxFileSize");
var ParquetTimestampInMillisecond = jResp.IntOf("Endpoint.S3Settings.ParquetTimestampInMillisecond");
var ParquetVersion = jResp.StringOf("Endpoint.S3Settings.ParquetVersion");
var PreserveTransactions = jResp.IntOf("Endpoint.S3Settings.PreserveTransactions");
var Rfc4180 = jResp.IntOf("Endpoint.S3Settings.Rfc4180");
var RowGroupLength = jResp.IntOf("Endpoint.S3Settings.RowGroupLength");
var S3SettingsServerSideEncryptionKmsKeyId = jResp.StringOf("Endpoint.S3Settings.ServerSideEncryptionKmsKeyId");
var S3SettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.S3Settings.ServiceAccessRoleArn");
var TimestampColumnName = jResp.StringOf("Endpoint.S3Settings.TimestampColumnName");
var UseCsvNoSupValue = jResp.IntOf("Endpoint.S3Settings.UseCsvNoSupValue");
var UseTaskStartTimeForFullLoadTimestamp = jResp.IntOf("Endpoint.S3Settings.UseTaskStartTimeForFullLoadTimestamp");
var EndpointServerName = jResp.StringOf("Endpoint.ServerName");
var EndpointServiceAccessRoleArn = jResp.StringOf("Endpoint.ServiceAccessRoleArn");
var SslMode = jResp.StringOf("Endpoint.SslMode");
var Status = jResp.StringOf("Endpoint.Status");
var SybaseSettingsDatabaseName = jResp.StringOf("Endpoint.SybaseSettings.DatabaseName");
var SybaseSettingsPassword = jResp.StringOf("Endpoint.SybaseSettings.Password");
var SybaseSettingsPort = jResp.IntOf("Endpoint.SybaseSettings.Port");
var SybaseSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.SybaseSettings.SecretsManagerAccessRoleArn");
var SybaseSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.SybaseSettings.SecretsManagerSecretId");
var SybaseSettingsServerName = jResp.StringOf("Endpoint.SybaseSettings.ServerName");
var SybaseSettingsUsername = jResp.StringOf("Endpoint.SybaseSettings.Username");
var EndpointUsername = jResp.StringOf("Endpoint.Username");
var i = 0;
var count_i = jResp.SizeOfArray("Endpoint.OracleSettings.ExtraArchivedLogDestIds");
while (i < count_i) {
jResp.I = i;
intVal = jResp.IntOf("Endpoint.OracleSettings.ExtraArchivedLogDestIds[i]");
i = i+1;
}
// A sample JSON response body parsed by the above code:
// {
// "Endpoint": {
// "CertificateArn": "string",
// "DatabaseName": "string",
// "DmsTransferSettings": {
// "BucketName": "string",
// "ServiceAccessRoleArn": "string"
// },
// "DocDbSettings": {
// "DatabaseName": "string",
// "DocsToInvestigate": number,
// "ExtractDocId": boolean,
// "KmsKeyId": "string",
// "NestingLevel": "string",
// "Password": "string",
// "Port": number,
// "SecretsManagerAccessRoleArn": "string",
// "SecretsManagerSecretId": "string",
// "ServerName": "string",
// "Username": "string"
// },
// "DynamoDbSettings": {
// "ServiceAccessRoleArn": "string"
// },
// "ElasticsearchSettings": {
// "EndpointUri": "string",
// "ErrorRetryDuration": number,
// "FullLoadErrorPercentage": number,
// "ServiceAccessRoleArn": "string"
// },
// "EndpointArn": "string",
// "EndpointIdentifier": "string",
// "EndpointType": "string",
// "EngineDisplayName": "string",
// "EngineName": "string",
// "ExternalId": "string",
// "ExternalTableDefinition": "string",
// "ExtraConnectionAttributes": "string",
// "GcpMySQLSettings": {
// "AfterConnectScript": "string",
// "CleanSourceMetadataOnMismatch": boolean,
// "DatabaseName": "string",
// "EventsPollInterval": number,
// "MaxFileSize": number,
// "ParallelLoadThreads": number,
// "Password": "string",
// "Port": number,
// "SecretsManagerAccessRoleArn": "string",
// "SecretsManagerSecretId": "string",
// "ServerName": "string",
// "ServerTimezone": "string",
// "TargetDbType": "string",
// "Username": "string"
// },
// "IBMDb2Settings": {
// "CurrentLsn": "string",
// "DatabaseName": "string",
// "MaxKBytesPerRead": number,
// "Password": "string",
// "Port": number,
// "SecretsManagerAccessRoleArn": "string",
// "SecretsManagerSecretId": "string",
// "ServerName": "string",
// "SetDataCaptureChanges": boolean,
// "Username": "string"
// },
// "KafkaSettings": {
// "Broker": "string",
// "IncludeControlDetails": boolean,
// "IncludeNullAndEmpty": boolean,
// "IncludePartitionValue": boolean,
// "IncludeTableAlterOperations": boolean,
// "IncludeTransactionDetails": boolean,
// "MessageFormat": "string",
// "MessageMaxBytes": number,
// "NoHexPrefix": boolean,
// "PartitionIncludeSchemaTable": boolean,
// "SaslPassword": "string",
// "SaslUsername": "string",
// "SecurityProtocol": "string",
// "SslCaCertificateArn": "string",
// "SslClientCertificateArn": "string",
// "SslClientKeyArn": "string",
// "SslClientKeyPassword": "string",
// "Topic": "string"
// },
// "KinesisSettings": {
// "IncludeControlDetails": boolean,
// "IncludeNullAndEmpty": boolean,
// "IncludePartitionValue": boolean,
// "IncludeTableAlterOperations": boolean,
// "IncludeTransactionDetails": boolean,
// "MessageFormat": "string",
// "NoHexPrefix": boolean,
// "PartitionIncludeSchemaTable": boolean,
// "ServiceAccessRoleArn": "string",
// "StreamArn": "string"
// },
// "KmsKeyId": "string",
// "MicrosoftSQLServerSettings": {
// "BcpPacketSize": number,
// "ControlTablesFileGroup": "string",
// "DatabaseName": "string",
// "Password": "string",
// "Port": number,
// "QuerySingleAlwaysOnNode": boolean,
// "ReadBackupOnly": boolean,
// "SafeguardPolicy": "string",
// "SecretsManagerAccessRoleArn": "string",
// "SecretsManagerSecretId": "string",
// "ServerName": "string",
// "UseBcpFullLoad": boolean,
// "Username": "string",
// "UseThirdPartyBackupDevice": boolean
// },
// "MongoDbSettings": {
// "AuthMechanism": "string",
// "AuthSource": "string",
// "AuthType": "string",
// "DatabaseName": "string",
// "DocsToInvestigate": "string",
// "ExtractDocId": "string",
// "KmsKeyId": "string",
// "NestingLevel": "string",
// "Password": "string",
// "Port": number,
// "SecretsManagerAccessRoleArn": "string",
// "SecretsManagerSecretId": "string",
// "ServerName": "string",
// "Username": "string"
// },
// "MySQLSettings": {
// "AfterConnectScript": "string",
// "CleanSourceMetadataOnMismatch": boolean,
// "DatabaseName": "string",
// "EventsPollInterval": number,
// "MaxFileSize": number,
// "ParallelLoadThreads": number,
// "Password": "string",
// "Port": number,
// "SecretsManagerAccessRoleArn": "string",
// "SecretsManagerSecretId": "string",
// "ServerName": "string",
// "ServerTimezone": "string",
// "TargetDbType": "string",
// "Username": "string"
// },
// "NeptuneSettings": {
// "ErrorRetryDuration": number,
// "IamAuthEnabled": boolean,
// "MaxFileSize": number,
// "MaxRetryCount": number,
// "S3BucketFolder": "string",
// "S3BucketName": "string",
// "ServiceAccessRoleArn": "string"
// },
// "OracleSettings": {
// "AccessAlternateDirectly": boolean,
// "AdditionalArchivedLogDestId": number,
// "AddSupplementalLogging": boolean,
// "AllowSelectNestedTables": boolean,
// "ArchivedLogDestId": number,
// "ArchivedLogsOnly": boolean,
// "AsmPassword": "string",
// "AsmServer": "string",
// "AsmUser": "string",
// "CharLengthSemantics": "string",
// "DatabaseName": "string",
// "DirectPathNoLog": boolean,
// "DirectPathParallelLoad": boolean,
// "EnableHomogenousTablespace": boolean,
// "ExtraArchivedLogDestIds": [
// number
// ],
// "FailTasksOnLobTruncation": boolean,
// "NumberDatatypeScale": number,
// "OraclePathPrefix": "string",
// "ParallelAsmReadThreads": number,
// "Password": "string",
// "Port": number,
// "ReadAheadBlocks": number,
// "ReadTableSpaceName": boolean,
// "ReplacePathPrefix": boolean,
// "RetryInterval": number,
// "SecretsManagerAccessRoleArn": "string",
// "SecretsManagerOracleAsmAccessRoleArn": "string",
// "SecretsManagerOracleAsmSecretId": "string",
// "SecretsManagerSecretId": "string",
// "SecurityDbEncryption": "string",
// "SecurityDbEncryptionName": "string",
// "ServerName": "string",
// "SpatialDataOptionToGeoJsonFunctionName": "string",
// "StandbyDelayTime": number,
// "UseAlternateFolderForOnline": boolean,
// "UseBFile": boolean,
// "UseDirectPathFullLoad": boolean,
// "UseLogminerReader": boolean,
// "UsePathPrefix": "string",
// "Username": "string"
// },
// "Port": number,
// "PostgreSQLSettings": {
// "AfterConnectScript": "string",
// "CaptureDdls": boolean,
// "DatabaseName": "string",
// "DdlArtifactsSchema": "string",
// "ExecuteTimeout": number,
// "FailTasksOnLobTruncation": boolean,
// "HeartbeatEnable": boolean,
// "HeartbeatFrequency": number,
// "HeartbeatSchema": "string",
// "MaxFileSize": number,
// "Password": "string",
// "PluginName": "string",
// "Port": number,
// "SecretsManagerAccessRoleArn": "string",
// "SecretsManagerSecretId": "string",
// "ServerName": "string",
// "SlotName": "string",
// "Username": "string"
// },
// "RedisSettings": {
// "AuthPassword": "string",
// "AuthType": "string",
// "AuthUserName": "string",
// "Port": number,
// "ServerName": "string",
// "SslCaCertificateArn": "string",
// "SslSecurityProtocol": "string"
// },
// "RedshiftSettings": {
// "AcceptAnyDate": boolean,
// "AfterConnectScript": "string",
// "BucketFolder": "string",
// "BucketName": "string",
// "CaseSensitiveNames": boolean,
// "CompUpdate": boolean,
// "ConnectionTimeout": number,
// "DatabaseName": "string",
// "DateFormat": "string",
// "EmptyAsNull": boolean,
// "EncryptionMode": "string",
// "ExplicitIds": boolean,
// "FileTransferUploadStreams": number,
// "LoadTimeout": number,
// "MaxFileSize": number,
// "Password": "string",
// "Port": number,
// "RemoveQuotes": boolean,
// "ReplaceChars": "string",
// "ReplaceInvalidChars": "string",
// "SecretsManagerAccessRoleArn": "string",
// "SecretsManagerSecretId": "string",
// "ServerName": "string",
// "ServerSideEncryptionKmsKeyId": "string",
// "ServiceAccessRoleArn": "string",
// "TimeFormat": "string",
// "TrimBlanks": boolean,
// "TruncateColumns": boolean,
// "Username": "string",
// "WriteBufferSize": number
// },
// "S3Settings": {
// "AddColumnName": boolean,
// "BucketFolder": "string",
// "BucketName": "string",
// "CannedAclForObjects": "string",
// "CdcInsertsAndUpdates": boolean,
// "CdcInsertsOnly": boolean,
// "CdcMaxBatchInterval": number,
// "CdcMinFileSize": number,
// "CdcPath": "string",
// "CompressionType": "string",
// "CsvDelimiter": "string",
// "CsvNoSupValue": "string",
// "CsvNullValue": "string",
// "CsvRowDelimiter": "string",
// "DataFormat": "string",
// "DataPageSize": number,
// "DatePartitionDelimiter": "string",
// "DatePartitionEnabled": boolean,
// "DatePartitionSequence": "string",
// "DatePartitionTimezone": "string",
// "DictPageSizeLimit": number,
// "EnableStatistics": boolean,
// "EncodingType": "string",
// "EncryptionMode": "string",
// "ExternalTableDefinition": "string",
// "IgnoreHeaderRows": number,
// "IncludeOpForFullLoad": boolean,
// "MaxFileSize": number,
// "ParquetTimestampInMillisecond": boolean,
// "ParquetVersion": "string",
// "PreserveTransactions": boolean,
// "Rfc4180": boolean,
// "RowGroupLength": number,
// "ServerSideEncryptionKmsKeyId": "string",
// "ServiceAccessRoleArn": "string",
// "TimestampColumnName": "string",
// "UseCsvNoSupValue": boolean,
// "UseTaskStartTimeForFullLoadTimestamp": boolean
// },
// "ServerName": "string",
// "ServiceAccessRoleArn": "string",
// "SslMode": "string",
// "Status": "string",
// "SybaseSettings": {
// "DatabaseName": "string",
// "Password": "string",
// "Port": number,
// "SecretsManagerAccessRoleArn": "string",
// "SecretsManagerSecretId": "string",
// "ServerName": "string",
// "Username": "string"
// },
// "Username": "string"
// }
// }
}
chilkatExample();