Chilkat Online Tools

CreateDeliveryStream 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;
    HCkJsonObjectW jResp;
    const wchar_t *DeliveryStreamARN;

    // 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"AmazonopensearchserviceDestinationConfiguration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"AmazonopensearchserviceDestinationConfiguration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"AmazonopensearchserviceDestinationConfiguration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.ClusterEndpoint",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.DomainARN",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.IndexName",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.IndexRotationPeriod",L"string");
    CkJsonObjectW_UpdateInt(json,L"AmazonopensearchserviceDestinationConfiguration.ProcessingConfiguration.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.ProcessingConfiguration.Processors[0].Type",L"string");
    CkJsonObjectW_UpdateInt(json,L"AmazonopensearchserviceDestinationConfiguration.RetryOptions.DurationInSeconds",123);
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.S3BackupMode",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.BucketARN",L"string");
    CkJsonObjectW_UpdateInt(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.CompressionFormat",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.EncryptionConfiguration.NoEncryptionConfig",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.ErrorOutputPrefix",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.Prefix",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.S3Configuration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.TypeName",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.VpcConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.VpcConfiguration.SecurityGroupIds[0]",L"string");
    CkJsonObjectW_UpdateString(json,L"AmazonopensearchserviceDestinationConfiguration.VpcConfiguration.SubnetIds[0]",L"string");
    CkJsonObjectW_UpdateString(json,L"DeliveryStreamEncryptionConfigurationInput.KeyARN",L"string");
    CkJsonObjectW_UpdateString(json,L"DeliveryStreamEncryptionConfigurationInput.KeyType",L"string");
    CkJsonObjectW_UpdateString(json,L"DeliveryStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"DeliveryStreamType",L"string");
    CkJsonObjectW_UpdateInt(json,L"ElasticsearchDestinationConfiguration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"ElasticsearchDestinationConfiguration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"ElasticsearchDestinationConfiguration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.ClusterEndpoint",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.DomainARN",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.IndexName",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.IndexRotationPeriod",L"string");
    CkJsonObjectW_UpdateInt(json,L"ElasticsearchDestinationConfiguration.ProcessingConfiguration.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.ProcessingConfiguration.Processors[0].Type",L"string");
    CkJsonObjectW_UpdateInt(json,L"ElasticsearchDestinationConfiguration.RetryOptions.DurationInSeconds",123);
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.S3BackupMode",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.S3Configuration.BucketARN",L"string");
    CkJsonObjectW_UpdateInt(json,L"ElasticsearchDestinationConfiguration.S3Configuration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"ElasticsearchDestinationConfiguration.S3Configuration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"ElasticsearchDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.S3Configuration.CompressionFormat",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.S3Configuration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.S3Configuration.EncryptionConfiguration.NoEncryptionConfig",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.S3Configuration.ErrorOutputPrefix",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.S3Configuration.Prefix",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.S3Configuration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.TypeName",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.VpcConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.VpcConfiguration.SecurityGroupIds[0]",L"string");
    CkJsonObjectW_UpdateString(json,L"ElasticsearchDestinationConfiguration.VpcConfiguration.SubnetIds[0]",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.BucketARN",L"string");
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.CompressionFormat",L"string");
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.HiveJsonSerDe.TimestampFormats[0]",L"string");
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.CaseInsensitive",123);
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.ColumnToJsonKeyMappings.string",L"string");
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.ConvertDotsInJsonKeysToUnderscores",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BlockSizeBytes",123);
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BloomFilterColumns[0]",L"string");
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BloomFilterFalsePositiveProbability",123);
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.Compression",L"string");
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.DictionaryKeyThreshold",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.EnablePadding",123);
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.FormatVersion",L"string");
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.PaddingTolerance",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.RowIndexStride",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.StripeSizeBytes",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.BlockSizeBytes",123);
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.Compression",L"string");
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.EnableDictionaryCompression",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.MaxPaddingBytes",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.PageSizeBytes",123);
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.WriterVersion",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.CatalogId",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.DatabaseName",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.Region",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.TableName",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.VersionId",L"string");
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DynamicPartitioningConfiguration.Enabled",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.DynamicPartitioningConfiguration.RetryOptions.DurationInSeconds",123);
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.EncryptionConfiguration.NoEncryptionConfig",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.ErrorOutputPrefix",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.Prefix",L"string");
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.ProcessingConfiguration.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.ProcessingConfiguration.Processors[0].Type",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.BucketARN",L"string");
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.CompressionFormat",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.EncryptionConfiguration.NoEncryptionConfig",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.ErrorOutputPrefix",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.Prefix",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.S3BackupConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"ExtendedS3DestinationConfiguration.S3BackupMode",L"string");
    CkJsonObjectW_UpdateInt(json,L"HttpEndpointDestinationConfiguration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"HttpEndpointDestinationConfiguration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"HttpEndpointDestinationConfiguration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.EndpointConfiguration.AccessKey",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.EndpointConfiguration.Name",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.EndpointConfiguration.Url",L"string");
    CkJsonObjectW_UpdateInt(json,L"HttpEndpointDestinationConfiguration.ProcessingConfiguration.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.ProcessingConfiguration.Processors[0].Type",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.RequestConfiguration.CommonAttributes[0].AttributeName",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.RequestConfiguration.CommonAttributes[0].AttributeValue",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.RequestConfiguration.ContentEncoding",L"string");
    CkJsonObjectW_UpdateInt(json,L"HttpEndpointDestinationConfiguration.RetryOptions.DurationInSeconds",123);
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.S3BackupMode",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.S3Configuration.BucketARN",L"string");
    CkJsonObjectW_UpdateInt(json,L"HttpEndpointDestinationConfiguration.S3Configuration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"HttpEndpointDestinationConfiguration.S3Configuration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"HttpEndpointDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.S3Configuration.CompressionFormat",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.S3Configuration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.S3Configuration.EncryptionConfiguration.NoEncryptionConfig",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.S3Configuration.ErrorOutputPrefix",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.S3Configuration.Prefix",L"string");
    CkJsonObjectW_UpdateString(json,L"HttpEndpointDestinationConfiguration.S3Configuration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"KinesisStreamSourceConfiguration.KinesisStreamARN",L"string");
    CkJsonObjectW_UpdateString(json,L"KinesisStreamSourceConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateInt(json,L"RedshiftDestinationConfiguration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.ClusterJDBCURL",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.CopyCommand.CopyOptions",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.CopyCommand.DataTableColumns",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.CopyCommand.DataTableName",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.Password",L"string");
    CkJsonObjectW_UpdateInt(json,L"RedshiftDestinationConfiguration.ProcessingConfiguration.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.ProcessingConfiguration.Processors[0].Type",L"string");
    CkJsonObjectW_UpdateInt(json,L"RedshiftDestinationConfiguration.RetryOptions.DurationInSeconds",123);
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.BucketARN",L"string");
    CkJsonObjectW_UpdateInt(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.CompressionFormat",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.EncryptionConfiguration.NoEncryptionConfig",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.ErrorOutputPrefix",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.Prefix",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3BackupConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3BackupMode",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3Configuration.BucketARN",L"string");
    CkJsonObjectW_UpdateInt(json,L"RedshiftDestinationConfiguration.S3Configuration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"RedshiftDestinationConfiguration.S3Configuration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"RedshiftDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3Configuration.CompressionFormat",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3Configuration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3Configuration.EncryptionConfiguration.NoEncryptionConfig",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3Configuration.ErrorOutputPrefix",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3Configuration.Prefix",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.S3Configuration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"RedshiftDestinationConfiguration.Username",L"string");
    CkJsonObjectW_UpdateString(json,L"S3DestinationConfiguration.BucketARN",L"string");
    CkJsonObjectW_UpdateInt(json,L"S3DestinationConfiguration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"S3DestinationConfiguration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"S3DestinationConfiguration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"S3DestinationConfiguration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"S3DestinationConfiguration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"S3DestinationConfiguration.CompressionFormat",L"string");
    CkJsonObjectW_UpdateString(json,L"S3DestinationConfiguration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN",L"string");
    CkJsonObjectW_UpdateString(json,L"S3DestinationConfiguration.EncryptionConfiguration.NoEncryptionConfig",L"string");
    CkJsonObjectW_UpdateString(json,L"S3DestinationConfiguration.ErrorOutputPrefix",L"string");
    CkJsonObjectW_UpdateString(json,L"S3DestinationConfiguration.Prefix",L"string");
    CkJsonObjectW_UpdateString(json,L"S3DestinationConfiguration.RoleARN",L"string");
    CkJsonObjectW_UpdateInt(json,L"SplunkDestinationConfiguration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateInt(json,L"SplunkDestinationConfiguration.HECAcknowledgmentTimeoutInSeconds",123);
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.HECEndpoint",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.HECEndpointType",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.HECToken",L"string");
    CkJsonObjectW_UpdateInt(json,L"SplunkDestinationConfiguration.ProcessingConfiguration.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.ProcessingConfiguration.Processors[0].Type",L"string");
    CkJsonObjectW_UpdateInt(json,L"SplunkDestinationConfiguration.RetryOptions.DurationInSeconds",123);
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.S3BackupMode",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.S3Configuration.BucketARN",L"string");
    CkJsonObjectW_UpdateInt(json,L"SplunkDestinationConfiguration.S3Configuration.BufferingHints.IntervalInSeconds",123);
    CkJsonObjectW_UpdateInt(json,L"SplunkDestinationConfiguration.S3Configuration.BufferingHints.SizeInMBs",123);
    CkJsonObjectW_UpdateInt(json,L"SplunkDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.Enabled",123);
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogGroupName",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogStreamName",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.S3Configuration.CompressionFormat",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.S3Configuration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.S3Configuration.EncryptionConfiguration.NoEncryptionConfig",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.S3Configuration.ErrorOutputPrefix",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.S3Configuration.Prefix",L"string");
    CkJsonObjectW_UpdateString(json,L"SplunkDestinationConfiguration.S3Configuration.RoleARN",L"string");
    CkJsonObjectW_UpdateString(json,L"Tags[0].Key",L"string");
    CkJsonObjectW_UpdateString(json,L"Tags[0].Value",L"string");

    // The JSON request body created by the above code:

    // {
    //   "AmazonopensearchserviceDestinationConfiguration": {
    //     "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",
    //     "S3BackupMode": "string",
    //     "S3Configuration": {
    //       "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",
    //     "VpcConfiguration": {
    //       "RoleARN": "string",
    //       "SecurityGroupIds": [
    //         "string"
    //       ],
    //       "SubnetIds": [
    //         "string"
    //       ]
    //     }
    //   },
    //   "DeliveryStreamEncryptionConfigurationInput": {
    //     "KeyARN": "string",
    //     "KeyType": "string"
    //   },
    //   "DeliveryStreamName": "string",
    //   "DeliveryStreamType": "string",
    //   "ElasticsearchDestinationConfiguration": {
    //     "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",
    //     "S3BackupMode": "string",
    //     "S3Configuration": {
    //       "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",
    //     "VpcConfiguration": {
    //       "RoleARN": "string",
    //       "SecurityGroupIds": [
    //         "string"
    //       ],
    //       "SubnetIds": [
    //         "string"
    //       ]
    //     }
    //   },
    //   "ExtendedS3DestinationConfiguration": {
    //     "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",
    //     "S3BackupConfiguration": {
    //       "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"
    //     },
    //     "S3BackupMode": "string"
    //   },
    //   "HttpEndpointDestinationConfiguration": {
    //     "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",
    //     "S3Configuration": {
    //       "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"
    //     }
    //   },
    //   "KinesisStreamSourceConfiguration": {
    //     "KinesisStreamARN": "string",
    //     "RoleARN": "string"
    //   },
    //   "RedshiftDestinationConfiguration": {
    //     "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",
    //     "S3BackupConfiguration": {
    //       "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"
    //     },
    //     "S3BackupMode": "string",
    //     "S3Configuration": {
    //       "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"
    //   },
    //   "S3DestinationConfiguration": {
    //     "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"
    //   },
    //   "SplunkDestinationConfiguration": {
    //     "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",
    //     "S3Configuration": {
    //       "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"
    //     }
    //   },
    //   "Tags": [
    //     {
    //       "Key": "string",
    //       "Value": "string"
    //     }
    //   ]
    // }

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

    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;
    }

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_LoadSb(jResp,sbResponseBody);

    // The following code parses the JSON response.
    // A sample JSON response is shown below the sample code.

    // Use this online tool to generate parsing code from sample JSON:
    // Generate Parsing Code from JSON

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
    // See this example explaining how this memory should be used: const char * functions.

    DeliveryStreamARN = CkJsonObjectW_stringOf(jResp,L"DeliveryStreamARN");

    // A sample JSON response body parsed by the above code:

    // {
    //   "DeliveryStreamARN": "string"
    // }


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

    }