DeleteEndpoint unicodeCpp Example
#include <CkRestW.h>
#include <CkAuthAwsW.h>
#include <CkJsonObjectW.h>
#include <CkStringBuilderW.h>
void ChilkatSample(void)
{
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkRestW rest;
bool success;
CkAuthAwsW authAws;
authAws.put_AccessKey(L"AWS_ACCESS_KEY");
authAws.put_SecretKey(L"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.put_Region(L"us-west-2");
authAws.put_ServiceName(L"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(L"dms.us-west-2.amazonaws.com",443,true,true);
if (success != true) {
wprintf(L"ConnectFailReason: %d\n",rest.get_ConnectFailReason());
wprintf(L"%s\n",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
CkJsonObjectW json;
json.UpdateString(L"EndpointArn",L"string");
// The JSON request body created by the above code:
// {
// "EndpointArn": "string"
// }
rest.AddHeader(L"Content-Type",L"application/x-amz-json-1.1");
rest.AddHeader(L"X-Amz-Target",L"AmazonDMSv20160101.DeleteEndpoint");
CkStringBuilderW sbRequestBody;
json.EmitSb(sbRequestBody);
CkStringBuilderW sbResponseBody;
success = rest.FullRequestSb(L"POST",L"/",sbRequestBody,sbResponseBody);
if (success != true) {
wprintf(L"%s\n",rest.lastErrorText());
return;
}
int respStatusCode = rest.get_ResponseStatusCode();
wprintf(L"response status code = %d\n",respStatusCode);
if (respStatusCode != 200) {
wprintf(L"Response Header:\n");
wprintf(L"%s\n",rest.responseHeader());
wprintf(L"Response Body:\n");
wprintf(L"%s\n",sbResponseBody.getAsString());
return;
}
CkJsonObjectW jResp;
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
// Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
// See this example explaining how this memory should be used: const char * functions.
int intVal;
const wchar_t *CertificateArn = jResp.stringOf(L"Endpoint.CertificateArn");
const wchar_t *DatabaseName = jResp.stringOf(L"Endpoint.DatabaseName");
const wchar_t *BucketName = jResp.stringOf(L"Endpoint.DmsTransferSettings.BucketName");
const wchar_t *ServiceAccessRoleArn = jResp.stringOf(L"Endpoint.DmsTransferSettings.ServiceAccessRoleArn");
const wchar_t *DocDbSettingsDatabaseName = jResp.stringOf(L"Endpoint.DocDbSettings.DatabaseName");
int DocsToInvestigate = jResp.IntOf(L"Endpoint.DocDbSettings.DocsToInvestigate");
int ExtractDocId = jResp.IntOf(L"Endpoint.DocDbSettings.ExtractDocId");
const wchar_t *KmsKeyId = jResp.stringOf(L"Endpoint.DocDbSettings.KmsKeyId");
const wchar_t *NestingLevel = jResp.stringOf(L"Endpoint.DocDbSettings.NestingLevel");
const wchar_t *Password = jResp.stringOf(L"Endpoint.DocDbSettings.Password");
int Port = jResp.IntOf(L"Endpoint.DocDbSettings.Port");
const wchar_t *SecretsManagerAccessRoleArn = jResp.stringOf(L"Endpoint.DocDbSettings.SecretsManagerAccessRoleArn");
const wchar_t *SecretsManagerSecretId = jResp.stringOf(L"Endpoint.DocDbSettings.SecretsManagerSecretId");
const wchar_t *ServerName = jResp.stringOf(L"Endpoint.DocDbSettings.ServerName");
const wchar_t *Username = jResp.stringOf(L"Endpoint.DocDbSettings.Username");
const wchar_t *DynamoDbSettingsServiceAccessRoleArn = jResp.stringOf(L"Endpoint.DynamoDbSettings.ServiceAccessRoleArn");
const wchar_t *EndpointUri = jResp.stringOf(L"Endpoint.ElasticsearchSettings.EndpointUri");
int ErrorRetryDuration = jResp.IntOf(L"Endpoint.ElasticsearchSettings.ErrorRetryDuration");
int FullLoadErrorPercentage = jResp.IntOf(L"Endpoint.ElasticsearchSettings.FullLoadErrorPercentage");
const wchar_t *ElasticsearchSettingsServiceAccessRoleArn = jResp.stringOf(L"Endpoint.ElasticsearchSettings.ServiceAccessRoleArn");
const wchar_t *EndpointArn = jResp.stringOf(L"Endpoint.EndpointArn");
const wchar_t *EndpointIdentifier = jResp.stringOf(L"Endpoint.EndpointIdentifier");
const wchar_t *EndpointType = jResp.stringOf(L"Endpoint.EndpointType");
const wchar_t *EngineDisplayName = jResp.stringOf(L"Endpoint.EngineDisplayName");
const wchar_t *EngineName = jResp.stringOf(L"Endpoint.EngineName");
const wchar_t *ExternalId = jResp.stringOf(L"Endpoint.ExternalId");
const wchar_t *ExternalTableDefinition = jResp.stringOf(L"Endpoint.ExternalTableDefinition");
const wchar_t *ExtraConnectionAttributes = jResp.stringOf(L"Endpoint.ExtraConnectionAttributes");
const wchar_t *AfterConnectScript = jResp.stringOf(L"Endpoint.GcpMySQLSettings.AfterConnectScript");
int CleanSourceMetadataOnMismatch = jResp.IntOf(L"Endpoint.GcpMySQLSettings.CleanSourceMetadataOnMismatch");
const wchar_t *GcpMySQLSettingsDatabaseName = jResp.stringOf(L"Endpoint.GcpMySQLSettings.DatabaseName");
int EventsPollInterval = jResp.IntOf(L"Endpoint.GcpMySQLSettings.EventsPollInterval");
int MaxFileSize = jResp.IntOf(L"Endpoint.GcpMySQLSettings.MaxFileSize");
int ParallelLoadThreads = jResp.IntOf(L"Endpoint.GcpMySQLSettings.ParallelLoadThreads");
const wchar_t *GcpMySQLSettingsPassword = jResp.stringOf(L"Endpoint.GcpMySQLSettings.Password");
int GcpMySQLSettingsPort = jResp.IntOf(L"Endpoint.GcpMySQLSettings.Port");
const wchar_t *GcpMySQLSettingsSecretsManagerAccessRoleArn = jResp.stringOf(L"Endpoint.GcpMySQLSettings.SecretsManagerAccessRoleArn");
const wchar_t *GcpMySQLSettingsSecretsManagerSecretId = jResp.stringOf(L"Endpoint.GcpMySQLSettings.SecretsManagerSecretId");
const wchar_t *GcpMySQLSettingsServerName = jResp.stringOf(L"Endpoint.GcpMySQLSettings.ServerName");
const wchar_t *ServerTimezone = jResp.stringOf(L"Endpoint.GcpMySQLSettings.ServerTimezone");
const wchar_t *TargetDbType = jResp.stringOf(L"Endpoint.GcpMySQLSettings.TargetDbType");
const wchar_t *GcpMySQLSettingsUsername = jResp.stringOf(L"Endpoint.GcpMySQLSettings.Username");
const wchar_t *CurrentLsn = jResp.stringOf(L"Endpoint.IBMDb2Settings.CurrentLsn");
const wchar_t *IBMDb2SettingsDatabaseName = jResp.stringOf(L"Endpoint.IBMDb2Settings.DatabaseName");
int MaxKBytesPerRead = jResp.IntOf(L"Endpoint.IBMDb2Settings.MaxKBytesPerRead");
const wchar_t *IBMDb2SettingsPassword = jResp.stringOf(L"Endpoint.IBMDb2Settings.Password");
int IBMDb2SettingsPort = jResp.IntOf(L"Endpoint.IBMDb2Settings.Port");
const wchar_t *IBMDb2SettingsSecretsManagerAccessRoleArn = jResp.stringOf(L"Endpoint.IBMDb2Settings.SecretsManagerAccessRoleArn");
const wchar_t *IBMDb2SettingsSecretsManagerSecretId = jResp.stringOf(L"Endpoint.IBMDb2Settings.SecretsManagerSecretId");
const wchar_t *IBMDb2SettingsServerName = jResp.stringOf(L"Endpoint.IBMDb2Settings.ServerName");
int SetDataCaptureChanges = jResp.IntOf(L"Endpoint.IBMDb2Settings.SetDataCaptureChanges");
const wchar_t *IBMDb2SettingsUsername = jResp.stringOf(L"Endpoint.IBMDb2Settings.Username");
const wchar_t *Broker = jResp.stringOf(L"Endpoint.KafkaSettings.Broker");
int IncludeControlDetails = jResp.IntOf(L"Endpoint.KafkaSettings.IncludeControlDetails");
int IncludeNullAndEmpty = jResp.IntOf(L"Endpoint.KafkaSettings.IncludeNullAndEmpty");
int IncludePartitionValue = jResp.IntOf(L"Endpoint.KafkaSettings.IncludePartitionValue");
int IncludeTableAlterOperations = jResp.IntOf(L"Endpoint.KafkaSettings.IncludeTableAlterOperations");
int IncludeTransactionDetails = jResp.IntOf(L"Endpoint.KafkaSettings.IncludeTransactionDetails");
const wchar_t *MessageFormat = jResp.stringOf(L"Endpoint.KafkaSettings.MessageFormat");
int MessageMaxBytes = jResp.IntOf(L"Endpoint.KafkaSettings.MessageMaxBytes");
int NoHexPrefix = jResp.IntOf(L"Endpoint.KafkaSettings.NoHexPrefix");
int PartitionIncludeSchemaTable = jResp.IntOf(L"Endpoint.KafkaSettings.PartitionIncludeSchemaTable");
const wchar_t *SaslPassword = jResp.stringOf(L"Endpoint.KafkaSettings.SaslPassword");
const wchar_t *SaslUsername = jResp.stringOf(L"Endpoint.KafkaSettings.SaslUsername");
const wchar_t *SecurityProtocol = jResp.stringOf(L"Endpoint.KafkaSettings.SecurityProtocol");
const wchar_t *SslCaCertificateArn = jResp.stringOf(L"Endpoint.KafkaSettings.SslCaCertificateArn");
const wchar_t *SslClientCertificateArn = jResp.stringOf(L"Endpoint.KafkaSettings.SslClientCertificateArn");
const wchar_t *SslClientKeyArn = jResp.stringOf(L"Endpoint.KafkaSettings.SslClientKeyArn");
const wchar_t *SslClientKeyPassword = jResp.stringOf(L"Endpoint.KafkaSettings.SslClientKeyPassword");
const wchar_t *Topic = jResp.stringOf(L"Endpoint.KafkaSettings.Topic");
int KinesisSettingsIncludeControlDetails = jResp.IntOf(L"Endpoint.KinesisSettings.IncludeControlDetails");
int KinesisSettingsIncludeNullAndEmpty = jResp.IntOf(L"Endpoint.KinesisSettings.IncludeNullAndEmpty");
int KinesisSettingsIncludePartitionValue = jResp.IntOf(L"Endpoint.KinesisSettings.IncludePartitionValue");
int KinesisSettingsIncludeTableAlterOperations = jResp.IntOf(L"Endpoint.KinesisSettings.IncludeTableAlterOperations");
int KinesisSettingsIncludeTransactionDetails = jResp.IntOf(L"Endpoint.KinesisSettings.IncludeTransactionDetails");
const wchar_t *KinesisSettingsMessageFormat = jResp.stringOf(L"Endpoint.KinesisSettings.MessageFormat");
int KinesisSettingsNoHexPrefix = jResp.IntOf(L"Endpoint.KinesisSettings.NoHexPrefix");
int KinesisSettingsPartitionIncludeSchemaTable = jResp.IntOf(L"Endpoint.KinesisSettings.PartitionIncludeSchemaTable");
const wchar_t *KinesisSettingsServiceAccessRoleArn = jResp.stringOf(L"Endpoint.KinesisSettings.ServiceAccessRoleArn");
const wchar_t *StreamArn = jResp.stringOf(L"Endpoint.KinesisSettings.StreamArn");
const wchar_t *EndpointKmsKeyId = jResp.stringOf(L"Endpoint.KmsKeyId");
int BcpPacketSize = jResp.IntOf(L"Endpoint.MicrosoftSQLServerSettings.BcpPacketSize");
const wchar_t *ControlTablesFileGroup = jResp.stringOf(L"Endpoint.MicrosoftSQLServerSettings.ControlTablesFileGroup");
const wchar_t *MicrosoftSQLServerSettingsDatabaseName = jResp.stringOf(L"Endpoint.MicrosoftSQLServerSettings.DatabaseName");
const wchar_t *MicrosoftSQLServerSettingsPassword = jResp.stringOf(L"Endpoint.MicrosoftSQLServerSettings.Password");
int MicrosoftSQLServerSettingsPort = jResp.IntOf(L"Endpoint.MicrosoftSQLServerSettings.Port");
int QuerySingleAlwaysOnNode = jResp.IntOf(L"Endpoint.MicrosoftSQLServerSettings.QuerySingleAlwaysOnNode");
int ReadBackupOnly = jResp.IntOf(L"Endpoint.MicrosoftSQLServerSettings.ReadBackupOnly");
const wchar_t *SafeguardPolicy = jResp.stringOf(L"Endpoint.MicrosoftSQLServerSettings.SafeguardPolicy");
const wchar_t *MicrosoftSQLServerSettingsSecretsManagerAccessRoleArn = jResp.stringOf(L"Endpoint.MicrosoftSQLServerSettings.SecretsManagerAccessRoleArn");
const wchar_t *MicrosoftSQLServerSettingsSecretsManagerSecretId = jResp.stringOf(L"Endpoint.MicrosoftSQLServerSettings.SecretsManagerSecretId");
const wchar_t *MicrosoftSQLServerSettingsServerName = jResp.stringOf(L"Endpoint.MicrosoftSQLServerSettings.ServerName");
int UseBcpFullLoad = jResp.IntOf(L"Endpoint.MicrosoftSQLServerSettings.UseBcpFullLoad");
const wchar_t *MicrosoftSQLServerSettingsUsername = jResp.stringOf(L"Endpoint.MicrosoftSQLServerSettings.Username");
int UseThirdPartyBackupDevice = jResp.IntOf(L"Endpoint.MicrosoftSQLServerSettings.UseThirdPartyBackupDevice");
const wchar_t *AuthMechanism = jResp.stringOf(L"Endpoint.MongoDbSettings.AuthMechanism");
const wchar_t *AuthSource = jResp.stringOf(L"Endpoint.MongoDbSettings.AuthSource");
const wchar_t *AuthType = jResp.stringOf(L"Endpoint.MongoDbSettings.AuthType");
const wchar_t *MongoDbSettingsDatabaseName = jResp.stringOf(L"Endpoint.MongoDbSettings.DatabaseName");
const wchar_t *MongoDbSettingsDocsToInvestigate = jResp.stringOf(L"Endpoint.MongoDbSettings.DocsToInvestigate");
const wchar_t *MongoDbSettingsExtractDocId = jResp.stringOf(L"Endpoint.MongoDbSettings.ExtractDocId");
const wchar_t *MongoDbSettingsKmsKeyId = jResp.stringOf(L"Endpoint.MongoDbSettings.KmsKeyId");
const wchar_t *MongoDbSettingsNestingLevel = jResp.stringOf(L"Endpoint.MongoDbSettings.NestingLevel");
const wchar_t *MongoDbSettingsPassword = jResp.stringOf(L"Endpoint.MongoDbSettings.Password");
int MongoDbSettingsPort = jResp.IntOf(L"Endpoint.MongoDbSettings.Port");
const wchar_t *MongoDbSettingsSecretsManagerAccessRoleArn = jResp.stringOf(L"Endpoint.MongoDbSettings.SecretsManagerAccessRoleArn");
const wchar_t *MongoDbSettingsSecretsManagerSecretId = jResp.stringOf(L"Endpoint.MongoDbSettings.SecretsManagerSecretId");
const wchar_t *MongoDbSettingsServerName = jResp.stringOf(L"Endpoint.MongoDbSettings.ServerName");
const wchar_t *MongoDbSettingsUsername = jResp.stringOf(L"Endpoint.MongoDbSettings.Username");
const wchar_t *MySQLSettingsAfterConnectScript = jResp.stringOf(L"Endpoint.MySQLSettings.AfterConnectScript");
int MySQLSettingsCleanSourceMetadataOnMismatch = jResp.IntOf(L"Endpoint.MySQLSettings.CleanSourceMetadataOnMismatch");
const wchar_t *MySQLSettingsDatabaseName = jResp.stringOf(L"Endpoint.MySQLSettings.DatabaseName");
int MySQLSettingsEventsPollInterval = jResp.IntOf(L"Endpoint.MySQLSettings.EventsPollInterval");
int MySQLSettingsMaxFileSize = jResp.IntOf(L"Endpoint.MySQLSettings.MaxFileSize");
int MySQLSettingsParallelLoadThreads = jResp.IntOf(L"Endpoint.MySQLSettings.ParallelLoadThreads");
const wchar_t *MySQLSettingsPassword = jResp.stringOf(L"Endpoint.MySQLSettings.Password");
int MySQLSettingsPort = jResp.IntOf(L"Endpoint.MySQLSettings.Port");
const wchar_t *MySQLSettingsSecretsManagerAccessRoleArn = jResp.stringOf(L"Endpoint.MySQLSettings.SecretsManagerAccessRoleArn");
const wchar_t *MySQLSettingsSecretsManagerSecretId = jResp.stringOf(L"Endpoint.MySQLSettings.SecretsManagerSecretId");
const wchar_t *MySQLSettingsServerName = jResp.stringOf(L"Endpoint.MySQLSettings.ServerName");
const wchar_t *MySQLSettingsServerTimezone = jResp.stringOf(L"Endpoint.MySQLSettings.ServerTimezone");
const wchar_t *MySQLSettingsTargetDbType = jResp.stringOf(L"Endpoint.MySQLSettings.TargetDbType");
const wchar_t *MySQLSettingsUsername = jResp.stringOf(L"Endpoint.MySQLSettings.Username");
int NeptuneSettingsErrorRetryDuration = jResp.IntOf(L"Endpoint.NeptuneSettings.ErrorRetryDuration");
int IamAuthEnabled = jResp.IntOf(L"Endpoint.NeptuneSettings.IamAuthEnabled");
int NeptuneSettingsMaxFileSize = jResp.IntOf(L"Endpoint.NeptuneSettings.MaxFileSize");
int MaxRetryCount = jResp.IntOf(L"Endpoint.NeptuneSettings.MaxRetryCount");
const wchar_t *S3BucketFolder = jResp.stringOf(L"Endpoint.NeptuneSettings.S3BucketFolder");
const wchar_t *S3BucketName = jResp.stringOf(L"Endpoint.NeptuneSettings.S3BucketName");
const wchar_t *NeptuneSettingsServiceAccessRoleArn = jResp.stringOf(L"Endpoint.NeptuneSettings.ServiceAccessRoleArn");
int AccessAlternateDirectly = jResp.IntOf(L"Endpoint.OracleSettings.AccessAlternateDirectly");
int AdditionalArchivedLogDestId = jResp.IntOf(L"Endpoint.OracleSettings.AdditionalArchivedLogDestId");
int AddSupplementalLogging = jResp.IntOf(L"Endpoint.OracleSettings.AddSupplementalLogging");
int AllowSelectNestedTables = jResp.IntOf(L"Endpoint.OracleSettings.AllowSelectNestedTables");
int ArchivedLogDestId = jResp.IntOf(L"Endpoint.OracleSettings.ArchivedLogDestId");
int ArchivedLogsOnly = jResp.IntOf(L"Endpoint.OracleSettings.ArchivedLogsOnly");
const wchar_t *AsmPassword = jResp.stringOf(L"Endpoint.OracleSettings.AsmPassword");
const wchar_t *AsmServer = jResp.stringOf(L"Endpoint.OracleSettings.AsmServer");
const wchar_t *AsmUser = jResp.stringOf(L"Endpoint.OracleSettings.AsmUser");
const wchar_t *CharLengthSemantics = jResp.stringOf(L"Endpoint.OracleSettings.CharLengthSemantics");
const wchar_t *OracleSettingsDatabaseName = jResp.stringOf(L"Endpoint.OracleSettings.DatabaseName");
int DirectPathNoLog = jResp.IntOf(L"Endpoint.OracleSettings.DirectPathNoLog");
int DirectPathParallelLoad = jResp.IntOf(L"Endpoint.OracleSettings.DirectPathParallelLoad");
int EnableHomogenousTablespace = jResp.IntOf(L"Endpoint.OracleSettings.EnableHomogenousTablespace");
int FailTasksOnLobTruncation = jResp.IntOf(L"Endpoint.OracleSettings.FailTasksOnLobTruncation");
int NumberDatatypeScale = jResp.IntOf(L"Endpoint.OracleSettings.NumberDatatypeScale");
const wchar_t *OraclePathPrefix = jResp.stringOf(L"Endpoint.OracleSettings.OraclePathPrefix");
int ParallelAsmReadThreads = jResp.IntOf(L"Endpoint.OracleSettings.ParallelAsmReadThreads");
const wchar_t *OracleSettingsPassword = jResp.stringOf(L"Endpoint.OracleSettings.Password");
int OracleSettingsPort = jResp.IntOf(L"Endpoint.OracleSettings.Port");
int ReadAheadBlocks = jResp.IntOf(L"Endpoint.OracleSettings.ReadAheadBlocks");
int ReadTableSpaceName = jResp.IntOf(L"Endpoint.OracleSettings.ReadTableSpaceName");
int ReplacePathPrefix = jResp.IntOf(L"Endpoint.OracleSettings.ReplacePathPrefix");
int RetryInterval = jResp.IntOf(L"Endpoint.OracleSettings.RetryInterval");
const wchar_t *OracleSettingsSecretsManagerAccessRoleArn = jResp.stringOf(L"Endpoint.OracleSettings.SecretsManagerAccessRoleArn");
const wchar_t *SecretsManagerOracleAsmAccessRoleArn = jResp.stringOf(L"Endpoint.OracleSettings.SecretsManagerOracleAsmAccessRoleArn");
const wchar_t *SecretsManagerOracleAsmSecretId = jResp.stringOf(L"Endpoint.OracleSettings.SecretsManagerOracleAsmSecretId");
const wchar_t *OracleSettingsSecretsManagerSecretId = jResp.stringOf(L"Endpoint.OracleSettings.SecretsManagerSecretId");
const wchar_t *SecurityDbEncryption = jResp.stringOf(L"Endpoint.OracleSettings.SecurityDbEncryption");
const wchar_t *SecurityDbEncryptionName = jResp.stringOf(L"Endpoint.OracleSettings.SecurityDbEncryptionName");
const wchar_t *OracleSettingsServerName = jResp.stringOf(L"Endpoint.OracleSettings.ServerName");
const wchar_t *SpatialDataOptionToGeoJsonFunctionName = jResp.stringOf(L"Endpoint.OracleSettings.SpatialDataOptionToGeoJsonFunctionName");
int StandbyDelayTime = jResp.IntOf(L"Endpoint.OracleSettings.StandbyDelayTime");
int UseAlternateFolderForOnline = jResp.IntOf(L"Endpoint.OracleSettings.UseAlternateFolderForOnline");
int UseBFile = jResp.IntOf(L"Endpoint.OracleSettings.UseBFile");
int UseDirectPathFullLoad = jResp.IntOf(L"Endpoint.OracleSettings.UseDirectPathFullLoad");
int UseLogminerReader = jResp.IntOf(L"Endpoint.OracleSettings.UseLogminerReader");
const wchar_t *UsePathPrefix = jResp.stringOf(L"Endpoint.OracleSettings.UsePathPrefix");
const wchar_t *OracleSettingsUsername = jResp.stringOf(L"Endpoint.OracleSettings.Username");
int EndpointPort = jResp.IntOf(L"Endpoint.Port");
const wchar_t *PostgreSQLSettingsAfterConnectScript = jResp.stringOf(L"Endpoint.PostgreSQLSettings.AfterConnectScript");
int CaptureDdls = jResp.IntOf(L"Endpoint.PostgreSQLSettings.CaptureDdls");
const wchar_t *PostgreSQLSettingsDatabaseName = jResp.stringOf(L"Endpoint.PostgreSQLSettings.DatabaseName");
const wchar_t *DdlArtifactsSchema = jResp.stringOf(L"Endpoint.PostgreSQLSettings.DdlArtifactsSchema");
int ExecuteTimeout = jResp.IntOf(L"Endpoint.PostgreSQLSettings.ExecuteTimeout");
int PostgreSQLSettingsFailTasksOnLobTruncation = jResp.IntOf(L"Endpoint.PostgreSQLSettings.FailTasksOnLobTruncation");
int HeartbeatEnable = jResp.IntOf(L"Endpoint.PostgreSQLSettings.HeartbeatEnable");
int HeartbeatFrequency = jResp.IntOf(L"Endpoint.PostgreSQLSettings.HeartbeatFrequency");
const wchar_t *HeartbeatSchema = jResp.stringOf(L"Endpoint.PostgreSQLSettings.HeartbeatSchema");
int PostgreSQLSettingsMaxFileSize = jResp.IntOf(L"Endpoint.PostgreSQLSettings.MaxFileSize");
const wchar_t *PostgreSQLSettingsPassword = jResp.stringOf(L"Endpoint.PostgreSQLSettings.Password");
const wchar_t *PluginName = jResp.stringOf(L"Endpoint.PostgreSQLSettings.PluginName");
int PostgreSQLSettingsPort = jResp.IntOf(L"Endpoint.PostgreSQLSettings.Port");
const wchar_t *PostgreSQLSettingsSecretsManagerAccessRoleArn = jResp.stringOf(L"Endpoint.PostgreSQLSettings.SecretsManagerAccessRoleArn");
const wchar_t *PostgreSQLSettingsSecretsManagerSecretId = jResp.stringOf(L"Endpoint.PostgreSQLSettings.SecretsManagerSecretId");
const wchar_t *PostgreSQLSettingsServerName = jResp.stringOf(L"Endpoint.PostgreSQLSettings.ServerName");
const wchar_t *SlotName = jResp.stringOf(L"Endpoint.PostgreSQLSettings.SlotName");
const wchar_t *PostgreSQLSettingsUsername = jResp.stringOf(L"Endpoint.PostgreSQLSettings.Username");
const wchar_t *AuthPassword = jResp.stringOf(L"Endpoint.RedisSettings.AuthPassword");
const wchar_t *RedisSettingsAuthType = jResp.stringOf(L"Endpoint.RedisSettings.AuthType");
const wchar_t *AuthUserName = jResp.stringOf(L"Endpoint.RedisSettings.AuthUserName");
int RedisSettingsPort = jResp.IntOf(L"Endpoint.RedisSettings.Port");
const wchar_t *RedisSettingsServerName = jResp.stringOf(L"Endpoint.RedisSettings.ServerName");
const wchar_t *RedisSettingsSslCaCertificateArn = jResp.stringOf(L"Endpoint.RedisSettings.SslCaCertificateArn");
const wchar_t *SslSecurityProtocol = jResp.stringOf(L"Endpoint.RedisSettings.SslSecurityProtocol");
int AcceptAnyDate = jResp.IntOf(L"Endpoint.RedshiftSettings.AcceptAnyDate");
const wchar_t *RedshiftSettingsAfterConnectScript = jResp.stringOf(L"Endpoint.RedshiftSettings.AfterConnectScript");
const wchar_t *BucketFolder = jResp.stringOf(L"Endpoint.RedshiftSettings.BucketFolder");
const wchar_t *RedshiftSettingsBucketName = jResp.stringOf(L"Endpoint.RedshiftSettings.BucketName");
int CaseSensitiveNames = jResp.IntOf(L"Endpoint.RedshiftSettings.CaseSensitiveNames");
int CompUpdate = jResp.IntOf(L"Endpoint.RedshiftSettings.CompUpdate");
int ConnectionTimeout = jResp.IntOf(L"Endpoint.RedshiftSettings.ConnectionTimeout");
const wchar_t *RedshiftSettingsDatabaseName = jResp.stringOf(L"Endpoint.RedshiftSettings.DatabaseName");
const wchar_t *DateFormat = jResp.stringOf(L"Endpoint.RedshiftSettings.DateFormat");
int EmptyAsNull = jResp.IntOf(L"Endpoint.RedshiftSettings.EmptyAsNull");
const wchar_t *EncryptionMode = jResp.stringOf(L"Endpoint.RedshiftSettings.EncryptionMode");
int ExplicitIds = jResp.IntOf(L"Endpoint.RedshiftSettings.ExplicitIds");
int FileTransferUploadStreams = jResp.IntOf(L"Endpoint.RedshiftSettings.FileTransferUploadStreams");
int LoadTimeout = jResp.IntOf(L"Endpoint.RedshiftSettings.LoadTimeout");
int RedshiftSettingsMaxFileSize = jResp.IntOf(L"Endpoint.RedshiftSettings.MaxFileSize");
const wchar_t *RedshiftSettingsPassword = jResp.stringOf(L"Endpoint.RedshiftSettings.Password");
int RedshiftSettingsPort = jResp.IntOf(L"Endpoint.RedshiftSettings.Port");
int RemoveQuotes = jResp.IntOf(L"Endpoint.RedshiftSettings.RemoveQuotes");
const wchar_t *ReplaceChars = jResp.stringOf(L"Endpoint.RedshiftSettings.ReplaceChars");
const wchar_t *ReplaceInvalidChars = jResp.stringOf(L"Endpoint.RedshiftSettings.ReplaceInvalidChars");
const wchar_t *RedshiftSettingsSecretsManagerAccessRoleArn = jResp.stringOf(L"Endpoint.RedshiftSettings.SecretsManagerAccessRoleArn");
const wchar_t *RedshiftSettingsSecretsManagerSecretId = jResp.stringOf(L"Endpoint.RedshiftSettings.SecretsManagerSecretId");
const wchar_t *RedshiftSettingsServerName = jResp.stringOf(L"Endpoint.RedshiftSettings.ServerName");
const wchar_t *ServerSideEncryptionKmsKeyId = jResp.stringOf(L"Endpoint.RedshiftSettings.ServerSideEncryptionKmsKeyId");
const wchar_t *RedshiftSettingsServiceAccessRoleArn = jResp.stringOf(L"Endpoint.RedshiftSettings.ServiceAccessRoleArn");
const wchar_t *TimeFormat = jResp.stringOf(L"Endpoint.RedshiftSettings.TimeFormat");
int TrimBlanks = jResp.IntOf(L"Endpoint.RedshiftSettings.TrimBlanks");
int TruncateColumns = jResp.IntOf(L"Endpoint.RedshiftSettings.TruncateColumns");
const wchar_t *RedshiftSettingsUsername = jResp.stringOf(L"Endpoint.RedshiftSettings.Username");
int WriteBufferSize = jResp.IntOf(L"Endpoint.RedshiftSettings.WriteBufferSize");
int AddColumnName = jResp.IntOf(L"Endpoint.S3Settings.AddColumnName");
const wchar_t *S3SettingsBucketFolder = jResp.stringOf(L"Endpoint.S3Settings.BucketFolder");
const wchar_t *S3SettingsBucketName = jResp.stringOf(L"Endpoint.S3Settings.BucketName");
const wchar_t *CannedAclForObjects = jResp.stringOf(L"Endpoint.S3Settings.CannedAclForObjects");
int CdcInsertsAndUpdates = jResp.IntOf(L"Endpoint.S3Settings.CdcInsertsAndUpdates");
int CdcInsertsOnly = jResp.IntOf(L"Endpoint.S3Settings.CdcInsertsOnly");
int CdcMaxBatchInterval = jResp.IntOf(L"Endpoint.S3Settings.CdcMaxBatchInterval");
int CdcMinFileSize = jResp.IntOf(L"Endpoint.S3Settings.CdcMinFileSize");
const wchar_t *CdcPath = jResp.stringOf(L"Endpoint.S3Settings.CdcPath");
const wchar_t *CompressionType = jResp.stringOf(L"Endpoint.S3Settings.CompressionType");
const wchar_t *CsvDelimiter = jResp.stringOf(L"Endpoint.S3Settings.CsvDelimiter");
const wchar_t *CsvNoSupValue = jResp.stringOf(L"Endpoint.S3Settings.CsvNoSupValue");
const wchar_t *CsvNullValue = jResp.stringOf(L"Endpoint.S3Settings.CsvNullValue");
const wchar_t *CsvRowDelimiter = jResp.stringOf(L"Endpoint.S3Settings.CsvRowDelimiter");
const wchar_t *DataFormat = jResp.stringOf(L"Endpoint.S3Settings.DataFormat");
int DataPageSize = jResp.IntOf(L"Endpoint.S3Settings.DataPageSize");
const wchar_t *DatePartitionDelimiter = jResp.stringOf(L"Endpoint.S3Settings.DatePartitionDelimiter");
int DatePartitionEnabled = jResp.IntOf(L"Endpoint.S3Settings.DatePartitionEnabled");
const wchar_t *DatePartitionSequence = jResp.stringOf(L"Endpoint.S3Settings.DatePartitionSequence");
const wchar_t *DatePartitionTimezone = jResp.stringOf(L"Endpoint.S3Settings.DatePartitionTimezone");
int DictPageSizeLimit = jResp.IntOf(L"Endpoint.S3Settings.DictPageSizeLimit");
int EnableStatistics = jResp.IntOf(L"Endpoint.S3Settings.EnableStatistics");
const wchar_t *EncodingType = jResp.stringOf(L"Endpoint.S3Settings.EncodingType");
const wchar_t *S3SettingsEncryptionMode = jResp.stringOf(L"Endpoint.S3Settings.EncryptionMode");
const wchar_t *S3SettingsExternalTableDefinition = jResp.stringOf(L"Endpoint.S3Settings.ExternalTableDefinition");
int IgnoreHeaderRows = jResp.IntOf(L"Endpoint.S3Settings.IgnoreHeaderRows");
int IncludeOpForFullLoad = jResp.IntOf(L"Endpoint.S3Settings.IncludeOpForFullLoad");
int S3SettingsMaxFileSize = jResp.IntOf(L"Endpoint.S3Settings.MaxFileSize");
int ParquetTimestampInMillisecond = jResp.IntOf(L"Endpoint.S3Settings.ParquetTimestampInMillisecond");
const wchar_t *ParquetVersion = jResp.stringOf(L"Endpoint.S3Settings.ParquetVersion");
int PreserveTransactions = jResp.IntOf(L"Endpoint.S3Settings.PreserveTransactions");
int Rfc4180 = jResp.IntOf(L"Endpoint.S3Settings.Rfc4180");
int RowGroupLength = jResp.IntOf(L"Endpoint.S3Settings.RowGroupLength");
const wchar_t *S3SettingsServerSideEncryptionKmsKeyId = jResp.stringOf(L"Endpoint.S3Settings.ServerSideEncryptionKmsKeyId");
const wchar_t *S3SettingsServiceAccessRoleArn = jResp.stringOf(L"Endpoint.S3Settings.ServiceAccessRoleArn");
const wchar_t *TimestampColumnName = jResp.stringOf(L"Endpoint.S3Settings.TimestampColumnName");
int UseCsvNoSupValue = jResp.IntOf(L"Endpoint.S3Settings.UseCsvNoSupValue");
int UseTaskStartTimeForFullLoadTimestamp = jResp.IntOf(L"Endpoint.S3Settings.UseTaskStartTimeForFullLoadTimestamp");
const wchar_t *EndpointServerName = jResp.stringOf(L"Endpoint.ServerName");
const wchar_t *EndpointServiceAccessRoleArn = jResp.stringOf(L"Endpoint.ServiceAccessRoleArn");
const wchar_t *SslMode = jResp.stringOf(L"Endpoint.SslMode");
const wchar_t *Status = jResp.stringOf(L"Endpoint.Status");
const wchar_t *SybaseSettingsDatabaseName = jResp.stringOf(L"Endpoint.SybaseSettings.DatabaseName");
const wchar_t *SybaseSettingsPassword = jResp.stringOf(L"Endpoint.SybaseSettings.Password");
int SybaseSettingsPort = jResp.IntOf(L"Endpoint.SybaseSettings.Port");
const wchar_t *SybaseSettingsSecretsManagerAccessRoleArn = jResp.stringOf(L"Endpoint.SybaseSettings.SecretsManagerAccessRoleArn");
const wchar_t *SybaseSettingsSecretsManagerSecretId = jResp.stringOf(L"Endpoint.SybaseSettings.SecretsManagerSecretId");
const wchar_t *SybaseSettingsServerName = jResp.stringOf(L"Endpoint.SybaseSettings.ServerName");
const wchar_t *SybaseSettingsUsername = jResp.stringOf(L"Endpoint.SybaseSettings.Username");
const wchar_t *EndpointUsername = jResp.stringOf(L"Endpoint.Username");
int i = 0;
int count_i = jResp.SizeOfArray(L"Endpoint.OracleSettings.ExtraArchivedLogDestIds");
while (i < count_i) {
jResp.put_I(i);
intVal = jResp.IntOf(L"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"
// }
// }
}