Chilkat Online Tools

CreateDeliveryStream PowerBuilder Example

Amazon Kinesis Data Firehose

integer li_rc
oleobject loo_Rest
integer li_Success
oleobject loo_AuthAws
oleobject loo_Json
oleobject loo_SbRequestBody
oleobject loo_SbResponseBody
integer li_RespStatusCode
oleobject loo_JResp
string ls_DeliveryStreamARN

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

loo_Rest = create oleobject
li_rc = loo_Rest.ConnectToNewObject("Chilkat_9_5_0.Rest")
if li_rc < 0 then
    destroy loo_Rest
    MessageBox("Error","Connecting to COM object failed")
    return
end if

loo_AuthAws = create oleobject
li_rc = loo_AuthAws.ConnectToNewObject("Chilkat_9_5_0.AuthAws")

loo_AuthAws.AccessKey = "AWS_ACCESS_KEY"
loo_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.)
loo_AuthAws.Region = "us-west-2"
loo_AuthAws.ServiceName = "firehose"
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
loo_Rest.SetAuthAws(loo_AuthAws)

// URL: https://firehose.us-west-2.amazonaws.com/
// Use the same region as specified above.
li_Success = loo_Rest.Connect("firehose.us-west-2.amazonaws.com",443,1,1)
if li_Success <> 1 then
    Write-Debug "ConnectFailReason: " + string(loo_Rest.ConnectFailReason)
    Write-Debug loo_Rest.LastErrorText
    destroy loo_Rest
    destroy loo_AuthAws
    return
end if

// 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

loo_Json = create oleobject
li_rc = loo_Json.ConnectToNewObject("Chilkat_9_5_0.JsonObject")

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

loo_Rest.AddHeader("Content-Type","application/x-amz-json-1.1")
loo_Rest.AddHeader("X-Amz-Target","Firehose_20150804.CreateDeliveryStream")

loo_SbRequestBody = create oleobject
li_rc = loo_SbRequestBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")

loo_Json.EmitSb(loo_SbRequestBody)
loo_SbResponseBody = create oleobject
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")

li_Success = loo_Rest.FullRequestSb("POST","/",loo_SbRequestBody,loo_SbResponseBody)
if li_Success <> 1 then
    Write-Debug loo_Rest.LastErrorText
    destroy loo_Rest
    destroy loo_AuthAws
    destroy loo_Json
    destroy loo_SbRequestBody
    destroy loo_SbResponseBody
    return
end if

li_RespStatusCode = loo_Rest.ResponseStatusCode
Write-Debug "response status code = " + string(li_RespStatusCode)
if li_RespStatusCode <> 200 then
    Write-Debug "Response Header:"
    Write-Debug loo_Rest.ResponseHeader
    Write-Debug "Response Body:"
    Write-Debug loo_SbResponseBody.GetAsString()
    destroy loo_Rest
    destroy loo_AuthAws
    destroy loo_Json
    destroy loo_SbRequestBody
    destroy loo_SbResponseBody
    return
end if

loo_JResp = create oleobject
li_rc = loo_JResp.ConnectToNewObject("Chilkat_9_5_0.JsonObject")

loo_JResp.LoadSb(loo_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

ls_DeliveryStreamARN = loo_JResp.StringOf("DeliveryStreamARN")

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

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


destroy loo_Rest
destroy loo_AuthAws
destroy loo_Json
destroy loo_SbRequestBody
destroy loo_SbResponseBody
destroy loo_JResp