Chilkat Online Tools

UpdateDestination PureBasic Example

Amazon Kinesis Data Firehose

IncludeFile "CkJsonObject.pb"
IncludeFile "CkStringBuilder.pb"
IncludeFile "CkRest.pb"
IncludeFile "CkAuthAws.pb"

Procedure ChilkatExample()

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

    rest.i = CkRest::ckCreate()
    If rest.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    success.i

    authAws.i = CkAuthAws::ckCreate()
    If authAws.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    CkAuthAws::setCkAccessKey(authAws, "AWS_ACCESS_KEY")
    CkAuthAws::setCkSecretKey(authAws, "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.)
    CkAuthAws::setCkRegion(authAws, "us-west-2")
    CkAuthAws::setCkServiceName(authAws, "firehose")
    ; SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    CkRest::ckSetAuthAws(rest,authAws)

    ; URL: https://firehose.us-west-2.amazonaws.com/
    ; Use the same region as specified above.
    success = CkRest::ckConnect(rest,"firehose.us-west-2.amazonaws.com",443,1,1)
    If success <> 1
        Debug "ConnectFailReason: " + Str(CkRest::ckConnectFailReason(rest))
        Debug CkRest::ckLastErrorText(rest)
        CkRest::ckDispose(rest)
        CkAuthAws::ckDispose(authAws)
        ProcedureReturn
    EndIf

    ; 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

    json.i = CkJsonObject::ckCreate()
    If json.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    CkJsonObject::ckUpdateInt(json,"AmazonopensearchserviceDestinationUpdate.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"AmazonopensearchserviceDestinationUpdate.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"AmazonopensearchserviceDestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.ClusterEndpoint","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.DomainARN","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.IndexName","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.IndexRotationPeriod","string")
    CkJsonObject::ckUpdateInt(json,"AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Enabled",123)
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
    CkJsonObject::ckUpdateInt(json,"AmazonopensearchserviceDestinationUpdate.RetryOptions.DurationInSeconds",123)
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.RoleARN","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.S3Update.BucketARN","string")
    CkJsonObject::ckUpdateInt(json,"AmazonopensearchserviceDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"AmazonopensearchserviceDestinationUpdate.S3Update.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"AmazonopensearchserviceDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.S3Update.CompressionFormat","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.S3Update.ErrorOutputPrefix","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.S3Update.Prefix","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.S3Update.RoleARN","string")
    CkJsonObject::ckUpdateString(json,"AmazonopensearchserviceDestinationUpdate.TypeName","string")
    CkJsonObject::ckUpdateString(json,"CurrentDeliveryStreamVersionId","string")
    CkJsonObject::ckUpdateString(json,"DeliveryStreamName","string")
    CkJsonObject::ckUpdateString(json,"DestinationId","string")
    CkJsonObject::ckUpdateInt(json,"ElasticsearchDestinationUpdate.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"ElasticsearchDestinationUpdate.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"ElasticsearchDestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.ClusterEndpoint","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.DomainARN","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.IndexName","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.IndexRotationPeriod","string")
    CkJsonObject::ckUpdateInt(json,"ElasticsearchDestinationUpdate.ProcessingConfiguration.Enabled",123)
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
    CkJsonObject::ckUpdateInt(json,"ElasticsearchDestinationUpdate.RetryOptions.DurationInSeconds",123)
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.RoleARN","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.S3Update.BucketARN","string")
    CkJsonObject::ckUpdateInt(json,"ElasticsearchDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"ElasticsearchDestinationUpdate.S3Update.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"ElasticsearchDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.S3Update.CompressionFormat","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.S3Update.ErrorOutputPrefix","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.S3Update.Prefix","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.S3Update.RoleARN","string")
    CkJsonObject::ckUpdateString(json,"ElasticsearchDestinationUpdate.TypeName","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.BucketARN","string")
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.CompressionFormat","string")
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.Enabled",123)
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.HiveJsonSerDe.TimestampFormats[0]","string")
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.CaseInsensitive",123)
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.ColumnToJsonKeyMappings.string","string")
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.ConvertDotsInJsonKeysToUnderscores",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BlockSizeBytes",123)
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BloomFilterColumns[0]","string")
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BloomFilterFalsePositiveProbability",123)
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.Compression","string")
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.DictionaryKeyThreshold",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.EnablePadding",123)
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.FormatVersion","string")
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.PaddingTolerance",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.RowIndexStride",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.StripeSizeBytes",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.BlockSizeBytes",123)
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.Compression","string")
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.EnableDictionaryCompression",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.MaxPaddingBytes",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.PageSizeBytes",123)
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.WriterVersion","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.CatalogId","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.DatabaseName","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.Region","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.RoleARN","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.TableName","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.VersionId","string")
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DynamicPartitioningConfiguration.Enabled",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.DynamicPartitioningConfiguration.RetryOptions.DurationInSeconds",123)
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.EncryptionConfiguration.NoEncryptionConfig","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.ErrorOutputPrefix","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.Prefix","string")
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.ProcessingConfiguration.Enabled",123)
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.RoleARN","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.S3BackupMode","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.BucketARN","string")
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.CompressionFormat","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.EncryptionConfiguration.NoEncryptionConfig","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.ErrorOutputPrefix","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.Prefix","string")
    CkJsonObject::ckUpdateString(json,"ExtendedS3DestinationUpdate.S3BackupUpdate.RoleARN","string")
    CkJsonObject::ckUpdateInt(json,"HttpEndpointDestinationUpdate.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"HttpEndpointDestinationUpdate.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"HttpEndpointDestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.EndpointConfiguration.AccessKey","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.EndpointConfiguration.Name","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.EndpointConfiguration.Url","string")
    CkJsonObject::ckUpdateInt(json,"HttpEndpointDestinationUpdate.ProcessingConfiguration.Enabled",123)
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.RequestConfiguration.CommonAttributes[0].AttributeName","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.RequestConfiguration.CommonAttributes[0].AttributeValue","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.RequestConfiguration.ContentEncoding","string")
    CkJsonObject::ckUpdateInt(json,"HttpEndpointDestinationUpdate.RetryOptions.DurationInSeconds",123)
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.RoleARN","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.S3BackupMode","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.S3Update.BucketARN","string")
    CkJsonObject::ckUpdateInt(json,"HttpEndpointDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"HttpEndpointDestinationUpdate.S3Update.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"HttpEndpointDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.S3Update.CompressionFormat","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.S3Update.ErrorOutputPrefix","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.S3Update.Prefix","string")
    CkJsonObject::ckUpdateString(json,"HttpEndpointDestinationUpdate.S3Update.RoleARN","string")
    CkJsonObject::ckUpdateInt(json,"RedshiftDestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.ClusterJDBCURL","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.CopyCommand.CopyOptions","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.CopyCommand.DataTableColumns","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.CopyCommand.DataTableName","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.Password","string")
    CkJsonObject::ckUpdateInt(json,"RedshiftDestinationUpdate.ProcessingConfiguration.Enabled",123)
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
    CkJsonObject::ckUpdateInt(json,"RedshiftDestinationUpdate.RetryOptions.DurationInSeconds",123)
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.RoleARN","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3BackupMode","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3BackupUpdate.BucketARN","string")
    CkJsonObject::ckUpdateInt(json,"RedshiftDestinationUpdate.S3BackupUpdate.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"RedshiftDestinationUpdate.S3BackupUpdate.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"RedshiftDestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3BackupUpdate.CompressionFormat","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3BackupUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3BackupUpdate.EncryptionConfiguration.NoEncryptionConfig","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3BackupUpdate.ErrorOutputPrefix","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3BackupUpdate.Prefix","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3BackupUpdate.RoleARN","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3Update.BucketARN","string")
    CkJsonObject::ckUpdateInt(json,"RedshiftDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"RedshiftDestinationUpdate.S3Update.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"RedshiftDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3Update.CompressionFormat","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3Update.ErrorOutputPrefix","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3Update.Prefix","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.S3Update.RoleARN","string")
    CkJsonObject::ckUpdateString(json,"RedshiftDestinationUpdate.Username","string")
    CkJsonObject::ckUpdateString(json,"S3DestinationUpdate.BucketARN","string")
    CkJsonObject::ckUpdateInt(json,"S3DestinationUpdate.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"S3DestinationUpdate.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"S3DestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"S3DestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"S3DestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"S3DestinationUpdate.CompressionFormat","string")
    CkJsonObject::ckUpdateString(json,"S3DestinationUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
    CkJsonObject::ckUpdateString(json,"S3DestinationUpdate.EncryptionConfiguration.NoEncryptionConfig","string")
    CkJsonObject::ckUpdateString(json,"S3DestinationUpdate.ErrorOutputPrefix","string")
    CkJsonObject::ckUpdateString(json,"S3DestinationUpdate.Prefix","string")
    CkJsonObject::ckUpdateString(json,"S3DestinationUpdate.RoleARN","string")
    CkJsonObject::ckUpdateInt(json,"SplunkDestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateInt(json,"SplunkDestinationUpdate.HECAcknowledgmentTimeoutInSeconds",123)
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.HECEndpoint","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.HECEndpointType","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.HECToken","string")
    CkJsonObject::ckUpdateInt(json,"SplunkDestinationUpdate.ProcessingConfiguration.Enabled",123)
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
    CkJsonObject::ckUpdateInt(json,"SplunkDestinationUpdate.RetryOptions.DurationInSeconds",123)
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.S3BackupMode","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.S3Update.BucketARN","string")
    CkJsonObject::ckUpdateInt(json,"SplunkDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds",123)
    CkJsonObject::ckUpdateInt(json,"SplunkDestinationUpdate.S3Update.BufferingHints.SizeInMBs",123)
    CkJsonObject::ckUpdateInt(json,"SplunkDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled",123)
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.S3Update.CompressionFormat","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.S3Update.ErrorOutputPrefix","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.S3Update.Prefix","string")
    CkJsonObject::ckUpdateString(json,"SplunkDestinationUpdate.S3Update.RoleARN","string")

    ; The JSON request body created by the above code:

    ; {
    ;   "AmazonopensearchserviceDestinationUpdate": {
    ;     "BufferingHints": {
    ;       "IntervalInSeconds": number,
    ;       "SizeInMBs": number
    ;     },
    ;     "CloudWatchLoggingOptions": {
    ;       "Enabled": boolean,
    ;       "LogGroupName": "string",
    ;       "LogStreamName": "string"
    ;     },
    ;     "ClusterEndpoint": "string",
    ;     "DomainARN": "string",
    ;     "IndexName": "string",
    ;     "IndexRotationPeriod": "string",
    ;     "ProcessingConfiguration": {
    ;       "Enabled": boolean,
    ;       "Processors": [
    ;         {
    ;           "Parameters": [
    ;             {
    ;               "ParameterName": "string",
    ;               "ParameterValue": "string"
    ;             }
    ;           ],
    ;           "Type": "string"
    ;         }
    ;       ]
    ;     },
    ;     "RetryOptions": {
    ;       "DurationInSeconds": number
    ;     },
    ;     "RoleARN": "string",
    ;     "S3Update": {
    ;       "BucketARN": "string",
    ;       "BufferingHints": {
    ;         "IntervalInSeconds": number,
    ;         "SizeInMBs": number
    ;       },
    ;       "CloudWatchLoggingOptions": {
    ;         "Enabled": boolean,
    ;         "LogGroupName": "string",
    ;         "LogStreamName": "string"
    ;       },
    ;       "CompressionFormat": "string",
    ;       "EncryptionConfiguration": {
    ;         "KMSEncryptionConfig": {
    ;           "AWSKMSKeyARN": "string"
    ;         },
    ;         "NoEncryptionConfig": "string"
    ;       },
    ;       "ErrorOutputPrefix": "string",
    ;       "Prefix": "string",
    ;       "RoleARN": "string"
    ;     },
    ;     "TypeName": "string"
    ;   },
    ;   "CurrentDeliveryStreamVersionId": "string",
    ;   "DeliveryStreamName": "string",
    ;   "DestinationId": "string",
    ;   "ElasticsearchDestinationUpdate": {
    ;     "BufferingHints": {
    ;       "IntervalInSeconds": number,
    ;       "SizeInMBs": number
    ;     },
    ;     "CloudWatchLoggingOptions": {
    ;       "Enabled": boolean,
    ;       "LogGroupName": "string",
    ;       "LogStreamName": "string"
    ;     },
    ;     "ClusterEndpoint": "string",
    ;     "DomainARN": "string",
    ;     "IndexName": "string",
    ;     "IndexRotationPeriod": "string",
    ;     "ProcessingConfiguration": {
    ;       "Enabled": boolean,
    ;       "Processors": [
    ;         {
    ;           "Parameters": [
    ;             {
    ;               "ParameterName": "string",
    ;               "ParameterValue": "string"
    ;             }
    ;           ],
    ;           "Type": "string"
    ;         }
    ;       ]
    ;     },
    ;     "RetryOptions": {
    ;       "DurationInSeconds": number
    ;     },
    ;     "RoleARN": "string",
    ;     "S3Update": {
    ;       "BucketARN": "string",
    ;       "BufferingHints": {
    ;         "IntervalInSeconds": number,
    ;         "SizeInMBs": number
    ;       },
    ;       "CloudWatchLoggingOptions": {
    ;         "Enabled": boolean,
    ;         "LogGroupName": "string",
    ;         "LogStreamName": "string"
    ;       },
    ;       "CompressionFormat": "string",
    ;       "EncryptionConfiguration": {
    ;         "KMSEncryptionConfig": {
    ;           "AWSKMSKeyARN": "string"
    ;         },
    ;         "NoEncryptionConfig": "string"
    ;       },
    ;       "ErrorOutputPrefix": "string",
    ;       "Prefix": "string",
    ;       "RoleARN": "string"
    ;     },
    ;     "TypeName": "string"
    ;   },
    ;   "ExtendedS3DestinationUpdate": {
    ;     "BucketARN": "string",
    ;     "BufferingHints": {
    ;       "IntervalInSeconds": number,
    ;       "SizeInMBs": number
    ;     },
    ;     "CloudWatchLoggingOptions": {
    ;       "Enabled": boolean,
    ;       "LogGroupName": "string",
    ;       "LogStreamName": "string"
    ;     },
    ;     "CompressionFormat": "string",
    ;     "DataFormatConversionConfiguration": {
    ;       "Enabled": boolean,
    ;       "InputFormatConfiguration": {
    ;         "Deserializer": {
    ;           "HiveJsonSerDe": {
    ;             "TimestampFormats": [
    ;               "string"
    ;             ]
    ;           },
    ;           "OpenXJsonSerDe": {
    ;             "CaseInsensitive": boolean,
    ;             "ColumnToJsonKeyMappings": {
    ;               "string": "string"
    ;             },
    ;             "ConvertDotsInJsonKeysToUnderscores": boolean
    ;           }
    ;         }
    ;       },
    ;       "OutputFormatConfiguration": {
    ;         "Serializer": {
    ;           "OrcSerDe": {
    ;             "BlockSizeBytes": number,
    ;             "BloomFilterColumns": [
    ;               "string"
    ;             ],
    ;             "BloomFilterFalsePositiveProbability": number,
    ;             "Compression": "string",
    ;             "DictionaryKeyThreshold": number,
    ;             "EnablePadding": boolean,
    ;             "FormatVersion": "string",
    ;             "PaddingTolerance": number,
    ;             "RowIndexStride": number,
    ;             "StripeSizeBytes": number
    ;           },
    ;           "ParquetSerDe": {
    ;             "BlockSizeBytes": number,
    ;             "Compression": "string",
    ;             "EnableDictionaryCompression": boolean,
    ;             "MaxPaddingBytes": number,
    ;             "PageSizeBytes": number,
    ;             "WriterVersion": "string"
    ;           }
    ;         }
    ;       },
    ;       "SchemaConfiguration": {
    ;         "CatalogId": "string",
    ;         "DatabaseName": "string",
    ;         "Region": "string",
    ;         "RoleARN": "string",
    ;         "TableName": "string",
    ;         "VersionId": "string"
    ;       }
    ;     },
    ;     "DynamicPartitioningConfiguration": {
    ;       "Enabled": boolean,
    ;       "RetryOptions": {
    ;         "DurationInSeconds": number
    ;       }
    ;     },
    ;     "EncryptionConfiguration": {
    ;       "KMSEncryptionConfig": {
    ;         "AWSKMSKeyARN": "string"
    ;       },
    ;       "NoEncryptionConfig": "string"
    ;     },
    ;     "ErrorOutputPrefix": "string",
    ;     "Prefix": "string",
    ;     "ProcessingConfiguration": {
    ;       "Enabled": boolean,
    ;       "Processors": [
    ;         {
    ;           "Parameters": [
    ;             {
    ;               "ParameterName": "string",
    ;               "ParameterValue": "string"
    ;             }
    ;           ],
    ;           "Type": "string"
    ;         }
    ;       ]
    ;     },
    ;     "RoleARN": "string",
    ;     "S3BackupMode": "string",
    ;     "S3BackupUpdate": {
    ;       "BucketARN": "string",
    ;       "BufferingHints": {
    ;         "IntervalInSeconds": number,
    ;         "SizeInMBs": number
    ;       },
    ;       "CloudWatchLoggingOptions": {
    ;         "Enabled": boolean,
    ;         "LogGroupName": "string",
    ;         "LogStreamName": "string"
    ;       },
    ;       "CompressionFormat": "string",
    ;       "EncryptionConfiguration": {
    ;         "KMSEncryptionConfig": {
    ;           "AWSKMSKeyARN": "string"
    ;         },
    ;         "NoEncryptionConfig": "string"
    ;       },
    ;       "ErrorOutputPrefix": "string",
    ;       "Prefix": "string",
    ;       "RoleARN": "string"
    ;     }
    ;   },
    ;   "HttpEndpointDestinationUpdate": {
    ;     "BufferingHints": {
    ;       "IntervalInSeconds": number,
    ;       "SizeInMBs": number
    ;     },
    ;     "CloudWatchLoggingOptions": {
    ;       "Enabled": boolean,
    ;       "LogGroupName": "string",
    ;       "LogStreamName": "string"
    ;     },
    ;     "EndpointConfiguration": {
    ;       "AccessKey": "string",
    ;       "Name": "string",
    ;       "Url": "string"
    ;     },
    ;     "ProcessingConfiguration": {
    ;       "Enabled": boolean,
    ;       "Processors": [
    ;         {
    ;           "Parameters": [
    ;             {
    ;               "ParameterName": "string",
    ;               "ParameterValue": "string"
    ;             }
    ;           ],
    ;           "Type": "string"
    ;         }
    ;       ]
    ;     },
    ;     "RequestConfiguration": {
    ;       "CommonAttributes": [
    ;         {
    ;           "AttributeName": "string",
    ;           "AttributeValue": "string"
    ;         }
    ;       ],
    ;       "ContentEncoding": "string"
    ;     },
    ;     "RetryOptions": {
    ;       "DurationInSeconds": number
    ;     },
    ;     "RoleARN": "string",
    ;     "S3BackupMode": "string",
    ;     "S3Update": {
    ;       "BucketARN": "string",
    ;       "BufferingHints": {
    ;         "IntervalInSeconds": number,
    ;         "SizeInMBs": number
    ;       },
    ;       "CloudWatchLoggingOptions": {
    ;         "Enabled": boolean,
    ;         "LogGroupName": "string",
    ;         "LogStreamName": "string"
    ;       },
    ;       "CompressionFormat": "string",
    ;       "EncryptionConfiguration": {
    ;         "KMSEncryptionConfig": {
    ;           "AWSKMSKeyARN": "string"
    ;         },
    ;         "NoEncryptionConfig": "string"
    ;       },
    ;       "ErrorOutputPrefix": "string",
    ;       "Prefix": "string",
    ;       "RoleARN": "string"
    ;     }
    ;   },
    ;   "RedshiftDestinationUpdate": {
    ;     "CloudWatchLoggingOptions": {
    ;       "Enabled": boolean,
    ;       "LogGroupName": "string",
    ;       "LogStreamName": "string"
    ;     },
    ;     "ClusterJDBCURL": "string",
    ;     "CopyCommand": {
    ;       "CopyOptions": "string",
    ;       "DataTableColumns": "string",
    ;       "DataTableName": "string"
    ;     },
    ;     "Password": "string",
    ;     "ProcessingConfiguration": {
    ;       "Enabled": boolean,
    ;       "Processors": [
    ;         {
    ;           "Parameters": [
    ;             {
    ;               "ParameterName": "string",
    ;               "ParameterValue": "string"
    ;             }
    ;           ],
    ;           "Type": "string"
    ;         }
    ;       ]
    ;     },
    ;     "RetryOptions": {
    ;       "DurationInSeconds": number
    ;     },
    ;     "RoleARN": "string",
    ;     "S3BackupMode": "string",
    ;     "S3BackupUpdate": {
    ;       "BucketARN": "string",
    ;       "BufferingHints": {
    ;         "IntervalInSeconds": number,
    ;         "SizeInMBs": number
    ;       },
    ;       "CloudWatchLoggingOptions": {
    ;         "Enabled": boolean,
    ;         "LogGroupName": "string",
    ;         "LogStreamName": "string"
    ;       },
    ;       "CompressionFormat": "string",
    ;       "EncryptionConfiguration": {
    ;         "KMSEncryptionConfig": {
    ;           "AWSKMSKeyARN": "string"
    ;         },
    ;         "NoEncryptionConfig": "string"
    ;       },
    ;       "ErrorOutputPrefix": "string",
    ;       "Prefix": "string",
    ;       "RoleARN": "string"
    ;     },
    ;     "S3Update": {
    ;       "BucketARN": "string",
    ;       "BufferingHints": {
    ;         "IntervalInSeconds": number,
    ;         "SizeInMBs": number
    ;       },
    ;       "CloudWatchLoggingOptions": {
    ;         "Enabled": boolean,
    ;         "LogGroupName": "string",
    ;         "LogStreamName": "string"
    ;       },
    ;       "CompressionFormat": "string",
    ;       "EncryptionConfiguration": {
    ;         "KMSEncryptionConfig": {
    ;           "AWSKMSKeyARN": "string"
    ;         },
    ;         "NoEncryptionConfig": "string"
    ;       },
    ;       "ErrorOutputPrefix": "string",
    ;       "Prefix": "string",
    ;       "RoleARN": "string"
    ;     },
    ;     "Username": "string"
    ;   },
    ;   "S3DestinationUpdate": {
    ;     "BucketARN": "string",
    ;     "BufferingHints": {
    ;       "IntervalInSeconds": number,
    ;       "SizeInMBs": number
    ;     },
    ;     "CloudWatchLoggingOptions": {
    ;       "Enabled": boolean,
    ;       "LogGroupName": "string",
    ;       "LogStreamName": "string"
    ;     },
    ;     "CompressionFormat": "string",
    ;     "EncryptionConfiguration": {
    ;       "KMSEncryptionConfig": {
    ;         "AWSKMSKeyARN": "string"
    ;       },
    ;       "NoEncryptionConfig": "string"
    ;     },
    ;     "ErrorOutputPrefix": "string",
    ;     "Prefix": "string",
    ;     "RoleARN": "string"
    ;   },
    ;   "SplunkDestinationUpdate": {
    ;     "CloudWatchLoggingOptions": {
    ;       "Enabled": boolean,
    ;       "LogGroupName": "string",
    ;       "LogStreamName": "string"
    ;     },
    ;     "HECAcknowledgmentTimeoutInSeconds": number,
    ;     "HECEndpoint": "string",
    ;     "HECEndpointType": "string",
    ;     "HECToken": "string",
    ;     "ProcessingConfiguration": {
    ;       "Enabled": boolean,
    ;       "Processors": [
    ;         {
    ;           "Parameters": [
    ;             {
    ;               "ParameterName": "string",
    ;               "ParameterValue": "string"
    ;             }
    ;           ],
    ;           "Type": "string"
    ;         }
    ;       ]
    ;     },
    ;     "RetryOptions": {
    ;       "DurationInSeconds": number
    ;     },
    ;     "S3BackupMode": "string",
    ;     "S3Update": {
    ;       "BucketARN": "string",
    ;       "BufferingHints": {
    ;         "IntervalInSeconds": number,
    ;         "SizeInMBs": number
    ;       },
    ;       "CloudWatchLoggingOptions": {
    ;         "Enabled": boolean,
    ;         "LogGroupName": "string",
    ;         "LogStreamName": "string"
    ;       },
    ;       "CompressionFormat": "string",
    ;       "EncryptionConfiguration": {
    ;         "KMSEncryptionConfig": {
    ;           "AWSKMSKeyARN": "string"
    ;         },
    ;         "NoEncryptionConfig": "string"
    ;       },
    ;       "ErrorOutputPrefix": "string",
    ;       "Prefix": "string",
    ;       "RoleARN": "string"
    ;     }
    ;   }
    ; }

    CkRest::ckAddHeader(rest,"Content-Type","application/x-amz-json-1.1")
    CkRest::ckAddHeader(rest,"X-Amz-Target","Firehose_20150804.UpdateDestination")

    sbRequestBody.i = CkStringBuilder::ckCreate()
    If sbRequestBody.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    CkJsonObject::ckEmitSb(json,sbRequestBody)
    sbResponseBody.i = CkStringBuilder::ckCreate()
    If sbResponseBody.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    success = CkRest::ckFullRequestSb(rest,"POST","/",sbRequestBody,sbResponseBody)
    If success <> 1
        Debug CkRest::ckLastErrorText(rest)
        CkRest::ckDispose(rest)
        CkAuthAws::ckDispose(authAws)
        CkJsonObject::ckDispose(json)
        CkStringBuilder::ckDispose(sbRequestBody)
        CkStringBuilder::ckDispose(sbResponseBody)
        ProcedureReturn
    EndIf

    respStatusCode.i = CkRest::ckResponseStatusCode(rest)
    Debug "response status code = " + Str(respStatusCode)
    If respStatusCode <> 200
        Debug "Response Header:"
        Debug CkRest::ckResponseHeader(rest)
        Debug "Response Body:"
        Debug CkStringBuilder::ckGetAsString(sbResponseBody)
        CkRest::ckDispose(rest)
        CkAuthAws::ckDispose(authAws)
        CkJsonObject::ckDispose(json)
        CkStringBuilder::ckDispose(sbRequestBody)
        CkStringBuilder::ckDispose(sbResponseBody)
        ProcedureReturn
    EndIf

    ; If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.


    CkRest::ckDispose(rest)
    CkAuthAws::ckDispose(authAws)
    CkJsonObject::ckDispose(json)
    CkStringBuilder::ckDispose(sbRequestBody)
    CkStringBuilder::ckDispose(sbResponseBody)


    ProcedureReturn
EndProcedure