UpdateDestination Objective-C Example
#import <CkoRest.h>
#import <CkoAuthAws.h>
#import <CkoJsonObject.h>
#import <CkoStringBuilder.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: @"AmazonopensearchserviceDestinationUpdate.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"AmazonopensearchserviceDestinationUpdate.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"AmazonopensearchserviceDestinationUpdate.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.ClusterEndpoint" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.DomainARN" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.IndexName" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.IndexRotationPeriod" value: @"string"];
[json UpdateInt: @"AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Processors[0].Type" value: @"string"];
[json UpdateInt: @"AmazonopensearchserviceDestinationUpdate.RetryOptions.DurationInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.RoleARN" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.S3Update.BucketARN" value: @"string"];
[json UpdateInt: @"AmazonopensearchserviceDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"AmazonopensearchserviceDestinationUpdate.S3Update.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"AmazonopensearchserviceDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.S3Update.CompressionFormat" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.S3Update.ErrorOutputPrefix" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.S3Update.Prefix" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.S3Update.RoleARN" value: @"string"];
[json UpdateString: @"AmazonopensearchserviceDestinationUpdate.TypeName" value: @"string"];
[json UpdateString: @"CurrentDeliveryStreamVersionId" value: @"string"];
[json UpdateString: @"DeliveryStreamName" value: @"string"];
[json UpdateString: @"DestinationId" value: @"string"];
[json UpdateInt: @"ElasticsearchDestinationUpdate.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ElasticsearchDestinationUpdate.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ElasticsearchDestinationUpdate.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ElasticsearchDestinationUpdate.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.ClusterEndpoint" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.DomainARN" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.IndexName" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.IndexRotationPeriod" value: @"string"];
[json UpdateInt: @"ElasticsearchDestinationUpdate.ProcessingConfiguration.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ElasticsearchDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.ProcessingConfiguration.Processors[0].Type" value: @"string"];
[json UpdateInt: @"ElasticsearchDestinationUpdate.RetryOptions.DurationInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ElasticsearchDestinationUpdate.RoleARN" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.S3Update.BucketARN" value: @"string"];
[json UpdateInt: @"ElasticsearchDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ElasticsearchDestinationUpdate.S3Update.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ElasticsearchDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ElasticsearchDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.S3Update.CompressionFormat" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.S3Update.ErrorOutputPrefix" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.S3Update.Prefix" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.S3Update.RoleARN" value: @"string"];
[json UpdateString: @"ElasticsearchDestinationUpdate.TypeName" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.BucketARN" value: @"string"];
[json UpdateInt: @"ExtendedS3DestinationUpdate.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ExtendedS3DestinationUpdate.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.CompressionFormat" value: @"string"];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.HiveJsonSerDe.TimestampFormats[0]" value: @"string"];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.CaseInsensitive" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.ColumnToJsonKeyMappings.string" value: @"string"];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.ConvertDotsInJsonKeysToUnderscores" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BlockSizeBytes" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BloomFilterColumns[0]" value: @"string"];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BloomFilterFalsePositiveProbability" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.Compression" value: @"string"];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.DictionaryKeyThreshold" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.EnablePadding" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.FormatVersion" value: @"string"];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.PaddingTolerance" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.RowIndexStride" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.StripeSizeBytes" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.BlockSizeBytes" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.Compression" value: @"string"];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.EnableDictionaryCompression" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.MaxPaddingBytes" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.PageSizeBytes" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.WriterVersion" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.CatalogId" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.DatabaseName" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.Region" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.RoleARN" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.TableName" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.VersionId" value: @"string"];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DynamicPartitioningConfiguration.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.DynamicPartitioningConfiguration.RetryOptions.DurationInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ExtendedS3DestinationUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.EncryptionConfiguration.NoEncryptionConfig" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.ErrorOutputPrefix" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.Prefix" value: @"string"];
[json UpdateInt: @"ExtendedS3DestinationUpdate.ProcessingConfiguration.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ExtendedS3DestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.ProcessingConfiguration.Processors[0].Type" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.RoleARN" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.S3BackupMode" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.S3BackupUpdate.BucketARN" value: @"string"];
[json UpdateInt: @"ExtendedS3DestinationUpdate.S3BackupUpdate.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.S3BackupUpdate.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"ExtendedS3DestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"ExtendedS3DestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.S3BackupUpdate.CompressionFormat" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.S3BackupUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.S3BackupUpdate.EncryptionConfiguration.NoEncryptionConfig" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.S3BackupUpdate.ErrorOutputPrefix" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.S3BackupUpdate.Prefix" value: @"string"];
[json UpdateString: @"ExtendedS3DestinationUpdate.S3BackupUpdate.RoleARN" value: @"string"];
[json UpdateInt: @"HttpEndpointDestinationUpdate.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"HttpEndpointDestinationUpdate.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"HttpEndpointDestinationUpdate.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"HttpEndpointDestinationUpdate.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.EndpointConfiguration.AccessKey" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.EndpointConfiguration.Name" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.EndpointConfiguration.Url" value: @"string"];
[json UpdateInt: @"HttpEndpointDestinationUpdate.ProcessingConfiguration.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"HttpEndpointDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.ProcessingConfiguration.Processors[0].Type" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.RequestConfiguration.CommonAttributes[0].AttributeName" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.RequestConfiguration.CommonAttributes[0].AttributeValue" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.RequestConfiguration.ContentEncoding" value: @"string"];
[json UpdateInt: @"HttpEndpointDestinationUpdate.RetryOptions.DurationInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"HttpEndpointDestinationUpdate.RoleARN" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.S3BackupMode" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.S3Update.BucketARN" value: @"string"];
[json UpdateInt: @"HttpEndpointDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"HttpEndpointDestinationUpdate.S3Update.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"HttpEndpointDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"HttpEndpointDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.S3Update.CompressionFormat" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.S3Update.ErrorOutputPrefix" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.S3Update.Prefix" value: @"string"];
[json UpdateString: @"HttpEndpointDestinationUpdate.S3Update.RoleARN" value: @"string"];
[json UpdateInt: @"RedshiftDestinationUpdate.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"RedshiftDestinationUpdate.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.ClusterJDBCURL" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.CopyCommand.CopyOptions" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.CopyCommand.DataTableColumns" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.CopyCommand.DataTableName" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.Password" value: @"string"];
[json UpdateInt: @"RedshiftDestinationUpdate.ProcessingConfiguration.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"RedshiftDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.ProcessingConfiguration.Processors[0].Type" value: @"string"];
[json UpdateInt: @"RedshiftDestinationUpdate.RetryOptions.DurationInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"RedshiftDestinationUpdate.RoleARN" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3BackupMode" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3BackupUpdate.BucketARN" value: @"string"];
[json UpdateInt: @"RedshiftDestinationUpdate.S3BackupUpdate.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"RedshiftDestinationUpdate.S3BackupUpdate.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"RedshiftDestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"RedshiftDestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3BackupUpdate.CompressionFormat" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3BackupUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3BackupUpdate.EncryptionConfiguration.NoEncryptionConfig" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3BackupUpdate.ErrorOutputPrefix" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3BackupUpdate.Prefix" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3BackupUpdate.RoleARN" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3Update.BucketARN" value: @"string"];
[json UpdateInt: @"RedshiftDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"RedshiftDestinationUpdate.S3Update.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"RedshiftDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"RedshiftDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3Update.CompressionFormat" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3Update.ErrorOutputPrefix" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3Update.Prefix" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.S3Update.RoleARN" value: @"string"];
[json UpdateString: @"RedshiftDestinationUpdate.Username" value: @"string"];
[json UpdateString: @"S3DestinationUpdate.BucketARN" value: @"string"];
[json UpdateInt: @"S3DestinationUpdate.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"S3DestinationUpdate.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"S3DestinationUpdate.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"S3DestinationUpdate.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"S3DestinationUpdate.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"S3DestinationUpdate.CompressionFormat" value: @"string"];
[json UpdateString: @"S3DestinationUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN" value: @"string"];
[json UpdateString: @"S3DestinationUpdate.EncryptionConfiguration.NoEncryptionConfig" value: @"string"];
[json UpdateString: @"S3DestinationUpdate.ErrorOutputPrefix" value: @"string"];
[json UpdateString: @"S3DestinationUpdate.Prefix" value: @"string"];
[json UpdateString: @"S3DestinationUpdate.RoleARN" value: @"string"];
[json UpdateInt: @"SplunkDestinationUpdate.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"SplunkDestinationUpdate.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateInt: @"SplunkDestinationUpdate.HECAcknowledgmentTimeoutInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"SplunkDestinationUpdate.HECEndpoint" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.HECEndpointType" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.HECToken" value: @"string"];
[json UpdateInt: @"SplunkDestinationUpdate.ProcessingConfiguration.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"SplunkDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.ProcessingConfiguration.Processors[0].Type" value: @"string"];
[json UpdateInt: @"SplunkDestinationUpdate.RetryOptions.DurationInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"SplunkDestinationUpdate.S3BackupMode" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.S3Update.BucketARN" value: @"string"];
[json UpdateInt: @"SplunkDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"SplunkDestinationUpdate.S3Update.BufferingHints.SizeInMBs" value: [NSNumber numberWithInt: 123]];
[json UpdateInt: @"SplunkDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled" value: [NSNumber numberWithInt: 123]];
[json UpdateString: @"SplunkDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.S3Update.CompressionFormat" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.S3Update.ErrorOutputPrefix" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.S3Update.Prefix" value: @"string"];
[json UpdateString: @"SplunkDestinationUpdate.S3Update.RoleARN" value: @"string"];
// The JSON request body created by the above code:
// {
// "AmazonopensearchserviceDestinationUpdate": {
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "ClusterEndpoint": "string",
// "DomainARN": "string",
// "IndexName": "string",
// "IndexRotationPeriod": "string",
// "ProcessingConfiguration": {
// "Enabled": boolean,
// "Processors": [
// {
// "Parameters": [
// {
// "ParameterName": "string",
// "ParameterValue": "string"
// }
// ],
// "Type": "string"
// }
// ]
// },
// "RetryOptions": {
// "DurationInSeconds": number
// },
// "RoleARN": "string",
// "S3Update": {
// "BucketARN": "string",
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "CompressionFormat": "string",
// "EncryptionConfiguration": {
// "KMSEncryptionConfig": {
// "AWSKMSKeyARN": "string"
// },
// "NoEncryptionConfig": "string"
// },
// "ErrorOutputPrefix": "string",
// "Prefix": "string",
// "RoleARN": "string"
// },
// "TypeName": "string"
// },
// "CurrentDeliveryStreamVersionId": "string",
// "DeliveryStreamName": "string",
// "DestinationId": "string",
// "ElasticsearchDestinationUpdate": {
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "ClusterEndpoint": "string",
// "DomainARN": "string",
// "IndexName": "string",
// "IndexRotationPeriod": "string",
// "ProcessingConfiguration": {
// "Enabled": boolean,
// "Processors": [
// {
// "Parameters": [
// {
// "ParameterName": "string",
// "ParameterValue": "string"
// }
// ],
// "Type": "string"
// }
// ]
// },
// "RetryOptions": {
// "DurationInSeconds": number
// },
// "RoleARN": "string",
// "S3Update": {
// "BucketARN": "string",
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "CompressionFormat": "string",
// "EncryptionConfiguration": {
// "KMSEncryptionConfig": {
// "AWSKMSKeyARN": "string"
// },
// "NoEncryptionConfig": "string"
// },
// "ErrorOutputPrefix": "string",
// "Prefix": "string",
// "RoleARN": "string"
// },
// "TypeName": "string"
// },
// "ExtendedS3DestinationUpdate": {
// "BucketARN": "string",
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "CompressionFormat": "string",
// "DataFormatConversionConfiguration": {
// "Enabled": boolean,
// "InputFormatConfiguration": {
// "Deserializer": {
// "HiveJsonSerDe": {
// "TimestampFormats": [
// "string"
// ]
// },
// "OpenXJsonSerDe": {
// "CaseInsensitive": boolean,
// "ColumnToJsonKeyMappings": {
// "string": "string"
// },
// "ConvertDotsInJsonKeysToUnderscores": boolean
// }
// }
// },
// "OutputFormatConfiguration": {
// "Serializer": {
// "OrcSerDe": {
// "BlockSizeBytes": number,
// "BloomFilterColumns": [
// "string"
// ],
// "BloomFilterFalsePositiveProbability": number,
// "Compression": "string",
// "DictionaryKeyThreshold": number,
// "EnablePadding": boolean,
// "FormatVersion": "string",
// "PaddingTolerance": number,
// "RowIndexStride": number,
// "StripeSizeBytes": number
// },
// "ParquetSerDe": {
// "BlockSizeBytes": number,
// "Compression": "string",
// "EnableDictionaryCompression": boolean,
// "MaxPaddingBytes": number,
// "PageSizeBytes": number,
// "WriterVersion": "string"
// }
// }
// },
// "SchemaConfiguration": {
// "CatalogId": "string",
// "DatabaseName": "string",
// "Region": "string",
// "RoleARN": "string",
// "TableName": "string",
// "VersionId": "string"
// }
// },
// "DynamicPartitioningConfiguration": {
// "Enabled": boolean,
// "RetryOptions": {
// "DurationInSeconds": number
// }
// },
// "EncryptionConfiguration": {
// "KMSEncryptionConfig": {
// "AWSKMSKeyARN": "string"
// },
// "NoEncryptionConfig": "string"
// },
// "ErrorOutputPrefix": "string",
// "Prefix": "string",
// "ProcessingConfiguration": {
// "Enabled": boolean,
// "Processors": [
// {
// "Parameters": [
// {
// "ParameterName": "string",
// "ParameterValue": "string"
// }
// ],
// "Type": "string"
// }
// ]
// },
// "RoleARN": "string",
// "S3BackupMode": "string",
// "S3BackupUpdate": {
// "BucketARN": "string",
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "CompressionFormat": "string",
// "EncryptionConfiguration": {
// "KMSEncryptionConfig": {
// "AWSKMSKeyARN": "string"
// },
// "NoEncryptionConfig": "string"
// },
// "ErrorOutputPrefix": "string",
// "Prefix": "string",
// "RoleARN": "string"
// }
// },
// "HttpEndpointDestinationUpdate": {
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "EndpointConfiguration": {
// "AccessKey": "string",
// "Name": "string",
// "Url": "string"
// },
// "ProcessingConfiguration": {
// "Enabled": boolean,
// "Processors": [
// {
// "Parameters": [
// {
// "ParameterName": "string",
// "ParameterValue": "string"
// }
// ],
// "Type": "string"
// }
// ]
// },
// "RequestConfiguration": {
// "CommonAttributes": [
// {
// "AttributeName": "string",
// "AttributeValue": "string"
// }
// ],
// "ContentEncoding": "string"
// },
// "RetryOptions": {
// "DurationInSeconds": number
// },
// "RoleARN": "string",
// "S3BackupMode": "string",
// "S3Update": {
// "BucketARN": "string",
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "CompressionFormat": "string",
// "EncryptionConfiguration": {
// "KMSEncryptionConfig": {
// "AWSKMSKeyARN": "string"
// },
// "NoEncryptionConfig": "string"
// },
// "ErrorOutputPrefix": "string",
// "Prefix": "string",
// "RoleARN": "string"
// }
// },
// "RedshiftDestinationUpdate": {
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "ClusterJDBCURL": "string",
// "CopyCommand": {
// "CopyOptions": "string",
// "DataTableColumns": "string",
// "DataTableName": "string"
// },
// "Password": "string",
// "ProcessingConfiguration": {
// "Enabled": boolean,
// "Processors": [
// {
// "Parameters": [
// {
// "ParameterName": "string",
// "ParameterValue": "string"
// }
// ],
// "Type": "string"
// }
// ]
// },
// "RetryOptions": {
// "DurationInSeconds": number
// },
// "RoleARN": "string",
// "S3BackupMode": "string",
// "S3BackupUpdate": {
// "BucketARN": "string",
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "CompressionFormat": "string",
// "EncryptionConfiguration": {
// "KMSEncryptionConfig": {
// "AWSKMSKeyARN": "string"
// },
// "NoEncryptionConfig": "string"
// },
// "ErrorOutputPrefix": "string",
// "Prefix": "string",
// "RoleARN": "string"
// },
// "S3Update": {
// "BucketARN": "string",
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "CompressionFormat": "string",
// "EncryptionConfiguration": {
// "KMSEncryptionConfig": {
// "AWSKMSKeyARN": "string"
// },
// "NoEncryptionConfig": "string"
// },
// "ErrorOutputPrefix": "string",
// "Prefix": "string",
// "RoleARN": "string"
// },
// "Username": "string"
// },
// "S3DestinationUpdate": {
// "BucketARN": "string",
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "CompressionFormat": "string",
// "EncryptionConfiguration": {
// "KMSEncryptionConfig": {
// "AWSKMSKeyARN": "string"
// },
// "NoEncryptionConfig": "string"
// },
// "ErrorOutputPrefix": "string",
// "Prefix": "string",
// "RoleARN": "string"
// },
// "SplunkDestinationUpdate": {
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "HECAcknowledgmentTimeoutInSeconds": number,
// "HECEndpoint": "string",
// "HECEndpointType": "string",
// "HECToken": "string",
// "ProcessingConfiguration": {
// "Enabled": boolean,
// "Processors": [
// {
// "Parameters": [
// {
// "ParameterName": "string",
// "ParameterValue": "string"
// }
// ],
// "Type": "string"
// }
// ]
// },
// "RetryOptions": {
// "DurationInSeconds": number
// },
// "S3BackupMode": "string",
// "S3Update": {
// "BucketARN": "string",
// "BufferingHints": {
// "IntervalInSeconds": number,
// "SizeInMBs": number
// },
// "CloudWatchLoggingOptions": {
// "Enabled": boolean,
// "LogGroupName": "string",
// "LogStreamName": "string"
// },
// "CompressionFormat": "string",
// "EncryptionConfiguration": {
// "KMSEncryptionConfig": {
// "AWSKMSKeyARN": "string"
// },
// "NoEncryptionConfig": "string"
// },
// "ErrorOutputPrefix": "string",
// "Prefix": "string",
// "RoleARN": "string"
// }
// }
// }
[rest AddHeader: @"Content-Type" value: @"application/x-amz-json-1.1"];
[rest AddHeader: @"X-Amz-Target" value: @"Firehose_20150804.UpdateDestination"];
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;
}
// If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.