Chilkat Online Tools

CreateDeliveryStream Objective-C Example

Amazon Kinesis Data Firehose

#import <CkoRest.h>
#import <CkoAuthAws.h>
#import <CkoJsonObject.h>
#import <CkoStringBuilder.h>
#import <NSString.h>

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

CkoRest *rest = [[CkoRest alloc] init];
BOOL success;

CkoAuthAws *authAws = [[CkoAuthAws alloc] init];
authAws.AccessKey = @"AWS_ACCESS_KEY";
authAws.SecretKey = @"AWS_SECRET_KEY";

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

// URL: https://firehose.us-west-2.amazonaws.com/
// Use the same region as specified above.
success = [rest Connect: @"firehose.us-west-2.amazonaws.com" port: [NSNumber numberWithInt: 443] tls: YES autoReconnect: YES];
if (success != YES) {
    NSLog(@"%@%d",@"ConnectFailReason: ",[rest.ConnectFailReason intValue]);
    NSLog(@"%@",rest.LastErrorText);
    return;
}

// The following code creates the JSON request body.
// The JSON created by this code is shown below.

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

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

[rest AddHeader: @"Content-Type" value: @"application/x-amz-json-1.1"];
[rest AddHeader: @"X-Amz-Target" value: @"Firehose_20150804.CreateDeliveryStream"];

CkoStringBuilder *sbRequestBody = [[CkoStringBuilder alloc] init];
[json EmitSb: sbRequestBody];
CkoStringBuilder *sbResponseBody = [[CkoStringBuilder alloc] init];
success = [rest FullRequestSb: @"POST" uriPath: @"/" requestBody: sbRequestBody responseBody: sbResponseBody];
if (success != YES) {
    NSLog(@"%@",rest.LastErrorText);
    return;
}

int respStatusCode = [rest.ResponseStatusCode intValue];
NSLog(@"%@%d",@"response status code = ",respStatusCode);
if (respStatusCode != 200) {
    NSLog(@"%@",@"Response Header:");
    NSLog(@"%@",rest.ResponseHeader);
    NSLog(@"%@",@"Response Body:");
    NSLog(@"%@",[sbResponseBody GetAsString]);
    return;
}

CkoJsonObject *jResp = [[CkoJsonObject alloc] init];
[jResp LoadSb: sbResponseBody];

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

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

NSString *DeliveryStreamARN = [jResp StringOf: @"DeliveryStreamARN"];

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

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