Chilkat Online Tools

DeleteEndpoint C# Example

AWS Database Migration Service

// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

Chilkat.Rest rest = new Chilkat.Rest();
bool success;

Chilkat.AuthAws 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) {
    Debug.WriteLine("ConnectFailReason: " + Convert.ToString(rest.ConnectFailReason));
    Debug.WriteLine(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

Chilkat.JsonObject 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");

Chilkat.StringBuilder sbRequestBody = new Chilkat.StringBuilder();
json.EmitSb(sbRequestBody);
Chilkat.StringBuilder sbResponseBody = new Chilkat.StringBuilder();
success = rest.FullRequestSb("POST","/",sbRequestBody,sbResponseBody);
if (success != true) {
    Debug.WriteLine(rest.LastErrorText);
    return;
}

int respStatusCode = rest.ResponseStatusCode;
Debug.WriteLine("response status code = " + Convert.ToString(respStatusCode));
if (respStatusCode != 200) {
    Debug.WriteLine("Response Header:");
    Debug.WriteLine(rest.ResponseHeader);
    Debug.WriteLine("Response Body:");
    Debug.WriteLine(sbResponseBody.GetAsString());
    return;
}

Chilkat.JsonObject 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

int intVal;

string CertificateArn = jResp.StringOf("Endpoint.CertificateArn");
string DatabaseName = jResp.StringOf("Endpoint.DatabaseName");
string BucketName = jResp.StringOf("Endpoint.DmsTransferSettings.BucketName");
string ServiceAccessRoleArn = jResp.StringOf("Endpoint.DmsTransferSettings.ServiceAccessRoleArn");
string DocDbSettingsDatabaseName = jResp.StringOf("Endpoint.DocDbSettings.DatabaseName");
int DocsToInvestigate = jResp.IntOf("Endpoint.DocDbSettings.DocsToInvestigate");
int ExtractDocId = jResp.IntOf("Endpoint.DocDbSettings.ExtractDocId");
string KmsKeyId = jResp.StringOf("Endpoint.DocDbSettings.KmsKeyId");
string NestingLevel = jResp.StringOf("Endpoint.DocDbSettings.NestingLevel");
string Password = jResp.StringOf("Endpoint.DocDbSettings.Password");
int Port = jResp.IntOf("Endpoint.DocDbSettings.Port");
string SecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.DocDbSettings.SecretsManagerAccessRoleArn");
string SecretsManagerSecretId = jResp.StringOf("Endpoint.DocDbSettings.SecretsManagerSecretId");
string ServerName = jResp.StringOf("Endpoint.DocDbSettings.ServerName");
string Username = jResp.StringOf("Endpoint.DocDbSettings.Username");
string DynamoDbSettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.DynamoDbSettings.ServiceAccessRoleArn");
string EndpointUri = jResp.StringOf("Endpoint.ElasticsearchSettings.EndpointUri");
int ErrorRetryDuration = jResp.IntOf("Endpoint.ElasticsearchSettings.ErrorRetryDuration");
int FullLoadErrorPercentage = jResp.IntOf("Endpoint.ElasticsearchSettings.FullLoadErrorPercentage");
string ElasticsearchSettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.ElasticsearchSettings.ServiceAccessRoleArn");
string EndpointArn = jResp.StringOf("Endpoint.EndpointArn");
string EndpointIdentifier = jResp.StringOf("Endpoint.EndpointIdentifier");
string EndpointType = jResp.StringOf("Endpoint.EndpointType");
string EngineDisplayName = jResp.StringOf("Endpoint.EngineDisplayName");
string EngineName = jResp.StringOf("Endpoint.EngineName");
string ExternalId = jResp.StringOf("Endpoint.ExternalId");
string ExternalTableDefinition = jResp.StringOf("Endpoint.ExternalTableDefinition");
string ExtraConnectionAttributes = jResp.StringOf("Endpoint.ExtraConnectionAttributes");
string AfterConnectScript = jResp.StringOf("Endpoint.GcpMySQLSettings.AfterConnectScript");
int CleanSourceMetadataOnMismatch = jResp.IntOf("Endpoint.GcpMySQLSettings.CleanSourceMetadataOnMismatch");
string GcpMySQLSettingsDatabaseName = jResp.StringOf("Endpoint.GcpMySQLSettings.DatabaseName");
int EventsPollInterval = jResp.IntOf("Endpoint.GcpMySQLSettings.EventsPollInterval");
int MaxFileSize = jResp.IntOf("Endpoint.GcpMySQLSettings.MaxFileSize");
int ParallelLoadThreads = jResp.IntOf("Endpoint.GcpMySQLSettings.ParallelLoadThreads");
string GcpMySQLSettingsPassword = jResp.StringOf("Endpoint.GcpMySQLSettings.Password");
int GcpMySQLSettingsPort = jResp.IntOf("Endpoint.GcpMySQLSettings.Port");
string GcpMySQLSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.GcpMySQLSettings.SecretsManagerAccessRoleArn");
string GcpMySQLSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.GcpMySQLSettings.SecretsManagerSecretId");
string GcpMySQLSettingsServerName = jResp.StringOf("Endpoint.GcpMySQLSettings.ServerName");
string ServerTimezone = jResp.StringOf("Endpoint.GcpMySQLSettings.ServerTimezone");
string TargetDbType = jResp.StringOf("Endpoint.GcpMySQLSettings.TargetDbType");
string GcpMySQLSettingsUsername = jResp.StringOf("Endpoint.GcpMySQLSettings.Username");
string CurrentLsn = jResp.StringOf("Endpoint.IBMDb2Settings.CurrentLsn");
string IBMDb2SettingsDatabaseName = jResp.StringOf("Endpoint.IBMDb2Settings.DatabaseName");
int MaxKBytesPerRead = jResp.IntOf("Endpoint.IBMDb2Settings.MaxKBytesPerRead");
string IBMDb2SettingsPassword = jResp.StringOf("Endpoint.IBMDb2Settings.Password");
int IBMDb2SettingsPort = jResp.IntOf("Endpoint.IBMDb2Settings.Port");
string IBMDb2SettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.IBMDb2Settings.SecretsManagerAccessRoleArn");
string IBMDb2SettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.IBMDb2Settings.SecretsManagerSecretId");
string IBMDb2SettingsServerName = jResp.StringOf("Endpoint.IBMDb2Settings.ServerName");
int SetDataCaptureChanges = jResp.IntOf("Endpoint.IBMDb2Settings.SetDataCaptureChanges");
string IBMDb2SettingsUsername = jResp.StringOf("Endpoint.IBMDb2Settings.Username");
string Broker = jResp.StringOf("Endpoint.KafkaSettings.Broker");
int IncludeControlDetails = jResp.IntOf("Endpoint.KafkaSettings.IncludeControlDetails");
int IncludeNullAndEmpty = jResp.IntOf("Endpoint.KafkaSettings.IncludeNullAndEmpty");
int IncludePartitionValue = jResp.IntOf("Endpoint.KafkaSettings.IncludePartitionValue");
int IncludeTableAlterOperations = jResp.IntOf("Endpoint.KafkaSettings.IncludeTableAlterOperations");
int IncludeTransactionDetails = jResp.IntOf("Endpoint.KafkaSettings.IncludeTransactionDetails");
string MessageFormat = jResp.StringOf("Endpoint.KafkaSettings.MessageFormat");
int MessageMaxBytes = jResp.IntOf("Endpoint.KafkaSettings.MessageMaxBytes");
int NoHexPrefix = jResp.IntOf("Endpoint.KafkaSettings.NoHexPrefix");
int PartitionIncludeSchemaTable = jResp.IntOf("Endpoint.KafkaSettings.PartitionIncludeSchemaTable");
string SaslPassword = jResp.StringOf("Endpoint.KafkaSettings.SaslPassword");
string SaslUsername = jResp.StringOf("Endpoint.KafkaSettings.SaslUsername");
string SecurityProtocol = jResp.StringOf("Endpoint.KafkaSettings.SecurityProtocol");
string SslCaCertificateArn = jResp.StringOf("Endpoint.KafkaSettings.SslCaCertificateArn");
string SslClientCertificateArn = jResp.StringOf("Endpoint.KafkaSettings.SslClientCertificateArn");
string SslClientKeyArn = jResp.StringOf("Endpoint.KafkaSettings.SslClientKeyArn");
string SslClientKeyPassword = jResp.StringOf("Endpoint.KafkaSettings.SslClientKeyPassword");
string Topic = jResp.StringOf("Endpoint.KafkaSettings.Topic");
int KinesisSettingsIncludeControlDetails = jResp.IntOf("Endpoint.KinesisSettings.IncludeControlDetails");
int KinesisSettingsIncludeNullAndEmpty = jResp.IntOf("Endpoint.KinesisSettings.IncludeNullAndEmpty");
int KinesisSettingsIncludePartitionValue = jResp.IntOf("Endpoint.KinesisSettings.IncludePartitionValue");
int KinesisSettingsIncludeTableAlterOperations = jResp.IntOf("Endpoint.KinesisSettings.IncludeTableAlterOperations");
int KinesisSettingsIncludeTransactionDetails = jResp.IntOf("Endpoint.KinesisSettings.IncludeTransactionDetails");
string KinesisSettingsMessageFormat = jResp.StringOf("Endpoint.KinesisSettings.MessageFormat");
int KinesisSettingsNoHexPrefix = jResp.IntOf("Endpoint.KinesisSettings.NoHexPrefix");
int KinesisSettingsPartitionIncludeSchemaTable = jResp.IntOf("Endpoint.KinesisSettings.PartitionIncludeSchemaTable");
string KinesisSettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.KinesisSettings.ServiceAccessRoleArn");
string StreamArn = jResp.StringOf("Endpoint.KinesisSettings.StreamArn");
string EndpointKmsKeyId = jResp.StringOf("Endpoint.KmsKeyId");
int BcpPacketSize = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.BcpPacketSize");
string ControlTablesFileGroup = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.ControlTablesFileGroup");
string MicrosoftSQLServerSettingsDatabaseName = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.DatabaseName");
string MicrosoftSQLServerSettingsPassword = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.Password");
int MicrosoftSQLServerSettingsPort = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.Port");
int QuerySingleAlwaysOnNode = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.QuerySingleAlwaysOnNode");
int ReadBackupOnly = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.ReadBackupOnly");
string SafeguardPolicy = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.SafeguardPolicy");
string MicrosoftSQLServerSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.SecretsManagerAccessRoleArn");
string MicrosoftSQLServerSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.SecretsManagerSecretId");
string MicrosoftSQLServerSettingsServerName = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.ServerName");
int UseBcpFullLoad = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.UseBcpFullLoad");
string MicrosoftSQLServerSettingsUsername = jResp.StringOf("Endpoint.MicrosoftSQLServerSettings.Username");
int UseThirdPartyBackupDevice = jResp.IntOf("Endpoint.MicrosoftSQLServerSettings.UseThirdPartyBackupDevice");
string AuthMechanism = jResp.StringOf("Endpoint.MongoDbSettings.AuthMechanism");
string AuthSource = jResp.StringOf("Endpoint.MongoDbSettings.AuthSource");
string AuthType = jResp.StringOf("Endpoint.MongoDbSettings.AuthType");
string MongoDbSettingsDatabaseName = jResp.StringOf("Endpoint.MongoDbSettings.DatabaseName");
string MongoDbSettingsDocsToInvestigate = jResp.StringOf("Endpoint.MongoDbSettings.DocsToInvestigate");
string MongoDbSettingsExtractDocId = jResp.StringOf("Endpoint.MongoDbSettings.ExtractDocId");
string MongoDbSettingsKmsKeyId = jResp.StringOf("Endpoint.MongoDbSettings.KmsKeyId");
string MongoDbSettingsNestingLevel = jResp.StringOf("Endpoint.MongoDbSettings.NestingLevel");
string MongoDbSettingsPassword = jResp.StringOf("Endpoint.MongoDbSettings.Password");
int MongoDbSettingsPort = jResp.IntOf("Endpoint.MongoDbSettings.Port");
string MongoDbSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.MongoDbSettings.SecretsManagerAccessRoleArn");
string MongoDbSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.MongoDbSettings.SecretsManagerSecretId");
string MongoDbSettingsServerName = jResp.StringOf("Endpoint.MongoDbSettings.ServerName");
string MongoDbSettingsUsername = jResp.StringOf("Endpoint.MongoDbSettings.Username");
string MySQLSettingsAfterConnectScript = jResp.StringOf("Endpoint.MySQLSettings.AfterConnectScript");
int MySQLSettingsCleanSourceMetadataOnMismatch = jResp.IntOf("Endpoint.MySQLSettings.CleanSourceMetadataOnMismatch");
string MySQLSettingsDatabaseName = jResp.StringOf("Endpoint.MySQLSettings.DatabaseName");
int MySQLSettingsEventsPollInterval = jResp.IntOf("Endpoint.MySQLSettings.EventsPollInterval");
int MySQLSettingsMaxFileSize = jResp.IntOf("Endpoint.MySQLSettings.MaxFileSize");
int MySQLSettingsParallelLoadThreads = jResp.IntOf("Endpoint.MySQLSettings.ParallelLoadThreads");
string MySQLSettingsPassword = jResp.StringOf("Endpoint.MySQLSettings.Password");
int MySQLSettingsPort = jResp.IntOf("Endpoint.MySQLSettings.Port");
string MySQLSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.MySQLSettings.SecretsManagerAccessRoleArn");
string MySQLSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.MySQLSettings.SecretsManagerSecretId");
string MySQLSettingsServerName = jResp.StringOf("Endpoint.MySQLSettings.ServerName");
string MySQLSettingsServerTimezone = jResp.StringOf("Endpoint.MySQLSettings.ServerTimezone");
string MySQLSettingsTargetDbType = jResp.StringOf("Endpoint.MySQLSettings.TargetDbType");
string MySQLSettingsUsername = jResp.StringOf("Endpoint.MySQLSettings.Username");
int NeptuneSettingsErrorRetryDuration = jResp.IntOf("Endpoint.NeptuneSettings.ErrorRetryDuration");
int IamAuthEnabled = jResp.IntOf("Endpoint.NeptuneSettings.IamAuthEnabled");
int NeptuneSettingsMaxFileSize = jResp.IntOf("Endpoint.NeptuneSettings.MaxFileSize");
int MaxRetryCount = jResp.IntOf("Endpoint.NeptuneSettings.MaxRetryCount");
string S3BucketFolder = jResp.StringOf("Endpoint.NeptuneSettings.S3BucketFolder");
string S3BucketName = jResp.StringOf("Endpoint.NeptuneSettings.S3BucketName");
string NeptuneSettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.NeptuneSettings.ServiceAccessRoleArn");
int AccessAlternateDirectly = jResp.IntOf("Endpoint.OracleSettings.AccessAlternateDirectly");
int AdditionalArchivedLogDestId = jResp.IntOf("Endpoint.OracleSettings.AdditionalArchivedLogDestId");
int AddSupplementalLogging = jResp.IntOf("Endpoint.OracleSettings.AddSupplementalLogging");
int AllowSelectNestedTables = jResp.IntOf("Endpoint.OracleSettings.AllowSelectNestedTables");
int ArchivedLogDestId = jResp.IntOf("Endpoint.OracleSettings.ArchivedLogDestId");
int ArchivedLogsOnly = jResp.IntOf("Endpoint.OracleSettings.ArchivedLogsOnly");
string AsmPassword = jResp.StringOf("Endpoint.OracleSettings.AsmPassword");
string AsmServer = jResp.StringOf("Endpoint.OracleSettings.AsmServer");
string AsmUser = jResp.StringOf("Endpoint.OracleSettings.AsmUser");
string CharLengthSemantics = jResp.StringOf("Endpoint.OracleSettings.CharLengthSemantics");
string OracleSettingsDatabaseName = jResp.StringOf("Endpoint.OracleSettings.DatabaseName");
int DirectPathNoLog = jResp.IntOf("Endpoint.OracleSettings.DirectPathNoLog");
int DirectPathParallelLoad = jResp.IntOf("Endpoint.OracleSettings.DirectPathParallelLoad");
int EnableHomogenousTablespace = jResp.IntOf("Endpoint.OracleSettings.EnableHomogenousTablespace");
int FailTasksOnLobTruncation = jResp.IntOf("Endpoint.OracleSettings.FailTasksOnLobTruncation");
int NumberDatatypeScale = jResp.IntOf("Endpoint.OracleSettings.NumberDatatypeScale");
string OraclePathPrefix = jResp.StringOf("Endpoint.OracleSettings.OraclePathPrefix");
int ParallelAsmReadThreads = jResp.IntOf("Endpoint.OracleSettings.ParallelAsmReadThreads");
string OracleSettingsPassword = jResp.StringOf("Endpoint.OracleSettings.Password");
int OracleSettingsPort = jResp.IntOf("Endpoint.OracleSettings.Port");
int ReadAheadBlocks = jResp.IntOf("Endpoint.OracleSettings.ReadAheadBlocks");
int ReadTableSpaceName = jResp.IntOf("Endpoint.OracleSettings.ReadTableSpaceName");
int ReplacePathPrefix = jResp.IntOf("Endpoint.OracleSettings.ReplacePathPrefix");
int RetryInterval = jResp.IntOf("Endpoint.OracleSettings.RetryInterval");
string OracleSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.OracleSettings.SecretsManagerAccessRoleArn");
string SecretsManagerOracleAsmAccessRoleArn = jResp.StringOf("Endpoint.OracleSettings.SecretsManagerOracleAsmAccessRoleArn");
string SecretsManagerOracleAsmSecretId = jResp.StringOf("Endpoint.OracleSettings.SecretsManagerOracleAsmSecretId");
string OracleSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.OracleSettings.SecretsManagerSecretId");
string SecurityDbEncryption = jResp.StringOf("Endpoint.OracleSettings.SecurityDbEncryption");
string SecurityDbEncryptionName = jResp.StringOf("Endpoint.OracleSettings.SecurityDbEncryptionName");
string OracleSettingsServerName = jResp.StringOf("Endpoint.OracleSettings.ServerName");
string SpatialDataOptionToGeoJsonFunctionName = jResp.StringOf("Endpoint.OracleSettings.SpatialDataOptionToGeoJsonFunctionName");
int StandbyDelayTime = jResp.IntOf("Endpoint.OracleSettings.StandbyDelayTime");
int UseAlternateFolderForOnline = jResp.IntOf("Endpoint.OracleSettings.UseAlternateFolderForOnline");
int UseBFile = jResp.IntOf("Endpoint.OracleSettings.UseBFile");
int UseDirectPathFullLoad = jResp.IntOf("Endpoint.OracleSettings.UseDirectPathFullLoad");
int UseLogminerReader = jResp.IntOf("Endpoint.OracleSettings.UseLogminerReader");
string UsePathPrefix = jResp.StringOf("Endpoint.OracleSettings.UsePathPrefix");
string OracleSettingsUsername = jResp.StringOf("Endpoint.OracleSettings.Username");
int EndpointPort = jResp.IntOf("Endpoint.Port");
string PostgreSQLSettingsAfterConnectScript = jResp.StringOf("Endpoint.PostgreSQLSettings.AfterConnectScript");
int CaptureDdls = jResp.IntOf("Endpoint.PostgreSQLSettings.CaptureDdls");
string PostgreSQLSettingsDatabaseName = jResp.StringOf("Endpoint.PostgreSQLSettings.DatabaseName");
string DdlArtifactsSchema = jResp.StringOf("Endpoint.PostgreSQLSettings.DdlArtifactsSchema");
int ExecuteTimeout = jResp.IntOf("Endpoint.PostgreSQLSettings.ExecuteTimeout");
int PostgreSQLSettingsFailTasksOnLobTruncation = jResp.IntOf("Endpoint.PostgreSQLSettings.FailTasksOnLobTruncation");
int HeartbeatEnable = jResp.IntOf("Endpoint.PostgreSQLSettings.HeartbeatEnable");
int HeartbeatFrequency = jResp.IntOf("Endpoint.PostgreSQLSettings.HeartbeatFrequency");
string HeartbeatSchema = jResp.StringOf("Endpoint.PostgreSQLSettings.HeartbeatSchema");
int PostgreSQLSettingsMaxFileSize = jResp.IntOf("Endpoint.PostgreSQLSettings.MaxFileSize");
string PostgreSQLSettingsPassword = jResp.StringOf("Endpoint.PostgreSQLSettings.Password");
string PluginName = jResp.StringOf("Endpoint.PostgreSQLSettings.PluginName");
int PostgreSQLSettingsPort = jResp.IntOf("Endpoint.PostgreSQLSettings.Port");
string PostgreSQLSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.PostgreSQLSettings.SecretsManagerAccessRoleArn");
string PostgreSQLSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.PostgreSQLSettings.SecretsManagerSecretId");
string PostgreSQLSettingsServerName = jResp.StringOf("Endpoint.PostgreSQLSettings.ServerName");
string SlotName = jResp.StringOf("Endpoint.PostgreSQLSettings.SlotName");
string PostgreSQLSettingsUsername = jResp.StringOf("Endpoint.PostgreSQLSettings.Username");
string AuthPassword = jResp.StringOf("Endpoint.RedisSettings.AuthPassword");
string RedisSettingsAuthType = jResp.StringOf("Endpoint.RedisSettings.AuthType");
string AuthUserName = jResp.StringOf("Endpoint.RedisSettings.AuthUserName");
int RedisSettingsPort = jResp.IntOf("Endpoint.RedisSettings.Port");
string RedisSettingsServerName = jResp.StringOf("Endpoint.RedisSettings.ServerName");
string RedisSettingsSslCaCertificateArn = jResp.StringOf("Endpoint.RedisSettings.SslCaCertificateArn");
string SslSecurityProtocol = jResp.StringOf("Endpoint.RedisSettings.SslSecurityProtocol");
int AcceptAnyDate = jResp.IntOf("Endpoint.RedshiftSettings.AcceptAnyDate");
string RedshiftSettingsAfterConnectScript = jResp.StringOf("Endpoint.RedshiftSettings.AfterConnectScript");
string BucketFolder = jResp.StringOf("Endpoint.RedshiftSettings.BucketFolder");
string RedshiftSettingsBucketName = jResp.StringOf("Endpoint.RedshiftSettings.BucketName");
int CaseSensitiveNames = jResp.IntOf("Endpoint.RedshiftSettings.CaseSensitiveNames");
int CompUpdate = jResp.IntOf("Endpoint.RedshiftSettings.CompUpdate");
int ConnectionTimeout = jResp.IntOf("Endpoint.RedshiftSettings.ConnectionTimeout");
string RedshiftSettingsDatabaseName = jResp.StringOf("Endpoint.RedshiftSettings.DatabaseName");
string DateFormat = jResp.StringOf("Endpoint.RedshiftSettings.DateFormat");
int EmptyAsNull = jResp.IntOf("Endpoint.RedshiftSettings.EmptyAsNull");
string EncryptionMode = jResp.StringOf("Endpoint.RedshiftSettings.EncryptionMode");
int ExplicitIds = jResp.IntOf("Endpoint.RedshiftSettings.ExplicitIds");
int FileTransferUploadStreams = jResp.IntOf("Endpoint.RedshiftSettings.FileTransferUploadStreams");
int LoadTimeout = jResp.IntOf("Endpoint.RedshiftSettings.LoadTimeout");
int RedshiftSettingsMaxFileSize = jResp.IntOf("Endpoint.RedshiftSettings.MaxFileSize");
string RedshiftSettingsPassword = jResp.StringOf("Endpoint.RedshiftSettings.Password");
int RedshiftSettingsPort = jResp.IntOf("Endpoint.RedshiftSettings.Port");
int RemoveQuotes = jResp.IntOf("Endpoint.RedshiftSettings.RemoveQuotes");
string ReplaceChars = jResp.StringOf("Endpoint.RedshiftSettings.ReplaceChars");
string ReplaceInvalidChars = jResp.StringOf("Endpoint.RedshiftSettings.ReplaceInvalidChars");
string RedshiftSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.RedshiftSettings.SecretsManagerAccessRoleArn");
string RedshiftSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.RedshiftSettings.SecretsManagerSecretId");
string RedshiftSettingsServerName = jResp.StringOf("Endpoint.RedshiftSettings.ServerName");
string ServerSideEncryptionKmsKeyId = jResp.StringOf("Endpoint.RedshiftSettings.ServerSideEncryptionKmsKeyId");
string RedshiftSettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.RedshiftSettings.ServiceAccessRoleArn");
string TimeFormat = jResp.StringOf("Endpoint.RedshiftSettings.TimeFormat");
int TrimBlanks = jResp.IntOf("Endpoint.RedshiftSettings.TrimBlanks");
int TruncateColumns = jResp.IntOf("Endpoint.RedshiftSettings.TruncateColumns");
string RedshiftSettingsUsername = jResp.StringOf("Endpoint.RedshiftSettings.Username");
int WriteBufferSize = jResp.IntOf("Endpoint.RedshiftSettings.WriteBufferSize");
int AddColumnName = jResp.IntOf("Endpoint.S3Settings.AddColumnName");
string S3SettingsBucketFolder = jResp.StringOf("Endpoint.S3Settings.BucketFolder");
string S3SettingsBucketName = jResp.StringOf("Endpoint.S3Settings.BucketName");
string CannedAclForObjects = jResp.StringOf("Endpoint.S3Settings.CannedAclForObjects");
int CdcInsertsAndUpdates = jResp.IntOf("Endpoint.S3Settings.CdcInsertsAndUpdates");
int CdcInsertsOnly = jResp.IntOf("Endpoint.S3Settings.CdcInsertsOnly");
int CdcMaxBatchInterval = jResp.IntOf("Endpoint.S3Settings.CdcMaxBatchInterval");
int CdcMinFileSize = jResp.IntOf("Endpoint.S3Settings.CdcMinFileSize");
string CdcPath = jResp.StringOf("Endpoint.S3Settings.CdcPath");
string CompressionType = jResp.StringOf("Endpoint.S3Settings.CompressionType");
string CsvDelimiter = jResp.StringOf("Endpoint.S3Settings.CsvDelimiter");
string CsvNoSupValue = jResp.StringOf("Endpoint.S3Settings.CsvNoSupValue");
string CsvNullValue = jResp.StringOf("Endpoint.S3Settings.CsvNullValue");
string CsvRowDelimiter = jResp.StringOf("Endpoint.S3Settings.CsvRowDelimiter");
string DataFormat = jResp.StringOf("Endpoint.S3Settings.DataFormat");
int DataPageSize = jResp.IntOf("Endpoint.S3Settings.DataPageSize");
string DatePartitionDelimiter = jResp.StringOf("Endpoint.S3Settings.DatePartitionDelimiter");
int DatePartitionEnabled = jResp.IntOf("Endpoint.S3Settings.DatePartitionEnabled");
string DatePartitionSequence = jResp.StringOf("Endpoint.S3Settings.DatePartitionSequence");
string DatePartitionTimezone = jResp.StringOf("Endpoint.S3Settings.DatePartitionTimezone");
int DictPageSizeLimit = jResp.IntOf("Endpoint.S3Settings.DictPageSizeLimit");
int EnableStatistics = jResp.IntOf("Endpoint.S3Settings.EnableStatistics");
string EncodingType = jResp.StringOf("Endpoint.S3Settings.EncodingType");
string S3SettingsEncryptionMode = jResp.StringOf("Endpoint.S3Settings.EncryptionMode");
string S3SettingsExternalTableDefinition = jResp.StringOf("Endpoint.S3Settings.ExternalTableDefinition");
int IgnoreHeaderRows = jResp.IntOf("Endpoint.S3Settings.IgnoreHeaderRows");
int IncludeOpForFullLoad = jResp.IntOf("Endpoint.S3Settings.IncludeOpForFullLoad");
int S3SettingsMaxFileSize = jResp.IntOf("Endpoint.S3Settings.MaxFileSize");
int ParquetTimestampInMillisecond = jResp.IntOf("Endpoint.S3Settings.ParquetTimestampInMillisecond");
string ParquetVersion = jResp.StringOf("Endpoint.S3Settings.ParquetVersion");
int PreserveTransactions = jResp.IntOf("Endpoint.S3Settings.PreserveTransactions");
int Rfc4180 = jResp.IntOf("Endpoint.S3Settings.Rfc4180");
int RowGroupLength = jResp.IntOf("Endpoint.S3Settings.RowGroupLength");
string S3SettingsServerSideEncryptionKmsKeyId = jResp.StringOf("Endpoint.S3Settings.ServerSideEncryptionKmsKeyId");
string S3SettingsServiceAccessRoleArn = jResp.StringOf("Endpoint.S3Settings.ServiceAccessRoleArn");
string TimestampColumnName = jResp.StringOf("Endpoint.S3Settings.TimestampColumnName");
int UseCsvNoSupValue = jResp.IntOf("Endpoint.S3Settings.UseCsvNoSupValue");
int UseTaskStartTimeForFullLoadTimestamp = jResp.IntOf("Endpoint.S3Settings.UseTaskStartTimeForFullLoadTimestamp");
string EndpointServerName = jResp.StringOf("Endpoint.ServerName");
string EndpointServiceAccessRoleArn = jResp.StringOf("Endpoint.ServiceAccessRoleArn");
string SslMode = jResp.StringOf("Endpoint.SslMode");
string Status = jResp.StringOf("Endpoint.Status");
string SybaseSettingsDatabaseName = jResp.StringOf("Endpoint.SybaseSettings.DatabaseName");
string SybaseSettingsPassword = jResp.StringOf("Endpoint.SybaseSettings.Password");
int SybaseSettingsPort = jResp.IntOf("Endpoint.SybaseSettings.Port");
string SybaseSettingsSecretsManagerAccessRoleArn = jResp.StringOf("Endpoint.SybaseSettings.SecretsManagerAccessRoleArn");
string SybaseSettingsSecretsManagerSecretId = jResp.StringOf("Endpoint.SybaseSettings.SecretsManagerSecretId");
string SybaseSettingsServerName = jResp.StringOf("Endpoint.SybaseSettings.ServerName");
string SybaseSettingsUsername = jResp.StringOf("Endpoint.SybaseSettings.Username");
string EndpointUsername = jResp.StringOf("Endpoint.Username");
int i = 0;
int 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"
//   }
// }