Chilkat Online Tools

UpdateDestination unicodeC Example

Amazon Kinesis Data Firehose

#include <C_CkRestW.h>
#include <C_CkAuthAwsW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkStringBuilderW.h>

void ChilkatSample(void)
    {
    HCkRestW rest;
    BOOL success;
    HCkAuthAwsW authAws;
    HCkJsonObjectW json;
    HCkStringBuilderW sbRequestBody;
    HCkStringBuilderW sbResponseBody;
    int respStatusCode;

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

    rest = CkRestW_Create();

    authAws = CkAuthAwsW_Create();
    CkAuthAwsW_putAccessKey(authAws,L"AWS_ACCESS_KEY");
    CkAuthAwsW_putSecretKey(authAws,L"AWS_SECRET_KEY");

    // Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
    CkAuthAwsW_putRegion(authAws,L"us-west-2");
    CkAuthAwsW_putServiceName(authAws,L"firehose");
    // SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    CkRestW_SetAuthAws(rest,authAws);

    // URL: https://firehose.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    success = CkRestW_Connect(rest,L"firehose.us-west-2.amazonaws.com",443,TRUE,TRUE);
    if (success != TRUE) {
        wprintf(L"ConnectFailReason: %d\n",CkRestW_getConnectFailReason(rest));
        wprintf(L"%s\n",CkRestW_lastErrorText(rest));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        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

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

    CkRestW_AddHeader(rest,L"Content-Type",L"application/x-amz-json-1.1");
    CkRestW_AddHeader(rest,L"X-Amz-Target",L"Firehose_20150804.UpdateDestination");

    sbRequestBody = CkStringBuilderW_Create();
    CkJsonObjectW_EmitSb(json,sbRequestBody);
    sbResponseBody = CkStringBuilderW_Create();
    success = CkRestW_FullRequestSb(rest,L"POST",L"/",sbRequestBody,sbResponseBody);
    if (success != TRUE) {
        wprintf(L"%s\n",CkRestW_lastErrorText(rest));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        return;
    }

    respStatusCode = CkRestW_getResponseStatusCode(rest);
    wprintf(L"response status code = %d\n",respStatusCode);
    if (respStatusCode != 200) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkRestW_responseHeader(rest));
        wprintf(L"Response Body:\n");
        wprintf(L"%s\n",CkStringBuilderW_getAsString(sbResponseBody));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        return;
    }

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


    CkRestW_Dispose(rest);
    CkAuthAwsW_Dispose(authAws);
    CkJsonObjectW_Dispose(json);
    CkStringBuilderW_Dispose(sbRequestBody);
    CkStringBuilderW_Dispose(sbResponseBody);

    }