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