CreateDeliveryStream autoit Example
; This example requires the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oRest = ObjCreate("Chilkat_9_5_0.Rest")
Local $bSuccess
$oAuthAws = ObjCreate("Chilkat_9_5_0.AuthAws")
$oAuthAws.AccessKey = "AWS_ACCESS_KEY"
$oAuthAws.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.)
$oAuthAws.Region = "us-west-2"
$oAuthAws.ServiceName = "firehose"
; SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
$oRest.SetAuthAws($oAuthAws)
; URL: https://firehose.us-west-2.amazonaws.com/
; Use the same region as specified above.
$bSuccess = $oRest.Connect("firehose.us-west-2.amazonaws.com",443,True,True)
If ($bSuccess <> True) Then
ConsoleWrite("ConnectFailReason: " & $oRest.ConnectFailReason & @CRLF)
ConsoleWrite($oRest.LastErrorText & @CRLF)
Exit
EndIf
; 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
$oJson = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJson.UpdateInt("AmazonopensearchserviceDestinationConfiguration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("AmazonopensearchserviceDestinationConfiguration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("AmazonopensearchserviceDestinationConfiguration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.ClusterEndpoint","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.DomainARN","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.IndexName","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.IndexRotationPeriod","string")
$oJson.UpdateInt("AmazonopensearchserviceDestinationConfiguration.ProcessingConfiguration.Enabled",123)
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.ProcessingConfiguration.Processors[0].Type","string")
$oJson.UpdateInt("AmazonopensearchserviceDestinationConfiguration.RetryOptions.DurationInSeconds",123)
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.RoleARN","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.S3BackupMode","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.S3Configuration.BucketARN","string")
$oJson.UpdateInt("AmazonopensearchserviceDestinationConfiguration.S3Configuration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("AmazonopensearchserviceDestinationConfiguration.S3Configuration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("AmazonopensearchserviceDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.S3Configuration.CompressionFormat","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.S3Configuration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.S3Configuration.EncryptionConfiguration.NoEncryptionConfig","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.S3Configuration.ErrorOutputPrefix","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.S3Configuration.Prefix","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.S3Configuration.RoleARN","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.TypeName","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.VpcConfiguration.RoleARN","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.VpcConfiguration.SecurityGroupIds[0]","string")
$oJson.UpdateString("AmazonopensearchserviceDestinationConfiguration.VpcConfiguration.SubnetIds[0]","string")
$oJson.UpdateString("DeliveryStreamEncryptionConfigurationInput.KeyARN","string")
$oJson.UpdateString("DeliveryStreamEncryptionConfigurationInput.KeyType","string")
$oJson.UpdateString("DeliveryStreamName","string")
$oJson.UpdateString("DeliveryStreamType","string")
$oJson.UpdateInt("ElasticsearchDestinationConfiguration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("ElasticsearchDestinationConfiguration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("ElasticsearchDestinationConfiguration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("ElasticsearchDestinationConfiguration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.ClusterEndpoint","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.DomainARN","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.IndexName","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.IndexRotationPeriod","string")
$oJson.UpdateInt("ElasticsearchDestinationConfiguration.ProcessingConfiguration.Enabled",123)
$oJson.UpdateString("ElasticsearchDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.ProcessingConfiguration.Processors[0].Type","string")
$oJson.UpdateInt("ElasticsearchDestinationConfiguration.RetryOptions.DurationInSeconds",123)
$oJson.UpdateString("ElasticsearchDestinationConfiguration.RoleARN","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.S3BackupMode","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.S3Configuration.BucketARN","string")
$oJson.UpdateInt("ElasticsearchDestinationConfiguration.S3Configuration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("ElasticsearchDestinationConfiguration.S3Configuration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("ElasticsearchDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("ElasticsearchDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.S3Configuration.CompressionFormat","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.S3Configuration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.S3Configuration.EncryptionConfiguration.NoEncryptionConfig","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.S3Configuration.ErrorOutputPrefix","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.S3Configuration.Prefix","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.S3Configuration.RoleARN","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.TypeName","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.VpcConfiguration.RoleARN","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.VpcConfiguration.SecurityGroupIds[0]","string")
$oJson.UpdateString("ElasticsearchDestinationConfiguration.VpcConfiguration.SubnetIds[0]","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.BucketARN","string")
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("ExtendedS3DestinationConfiguration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.CompressionFormat","string")
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.Enabled",123)
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.HiveJsonSerDe.TimestampFormats[0]","string")
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.CaseInsensitive",123)
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.ColumnToJsonKeyMappings.string","string")
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.ConvertDotsInJsonKeysToUnderscores",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BlockSizeBytes",123)
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BloomFilterColumns[0]","string")
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BloomFilterFalsePositiveProbability",123)
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.Compression","string")
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.DictionaryKeyThreshold",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.EnablePadding",123)
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.FormatVersion","string")
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.PaddingTolerance",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.RowIndexStride",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.StripeSizeBytes",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.BlockSizeBytes",123)
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.Compression","string")
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.EnableDictionaryCompression",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.MaxPaddingBytes",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.PageSizeBytes",123)
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.WriterVersion","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.CatalogId","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.DatabaseName","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.Region","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.RoleARN","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.TableName","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.DataFormatConversionConfiguration.SchemaConfiguration.VersionId","string")
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DynamicPartitioningConfiguration.Enabled",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.DynamicPartitioningConfiguration.RetryOptions.DurationInSeconds",123)
$oJson.UpdateString("ExtendedS3DestinationConfiguration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.EncryptionConfiguration.NoEncryptionConfig","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.ErrorOutputPrefix","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.Prefix","string")
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.ProcessingConfiguration.Enabled",123)
$oJson.UpdateString("ExtendedS3DestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.ProcessingConfiguration.Processors[0].Type","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.RoleARN","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.S3BackupConfiguration.BucketARN","string")
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.S3BackupConfiguration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.S3BackupConfiguration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("ExtendedS3DestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("ExtendedS3DestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.S3BackupConfiguration.CompressionFormat","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.S3BackupConfiguration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.S3BackupConfiguration.EncryptionConfiguration.NoEncryptionConfig","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.S3BackupConfiguration.ErrorOutputPrefix","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.S3BackupConfiguration.Prefix","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.S3BackupConfiguration.RoleARN","string")
$oJson.UpdateString("ExtendedS3DestinationConfiguration.S3BackupMode","string")
$oJson.UpdateInt("HttpEndpointDestinationConfiguration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("HttpEndpointDestinationConfiguration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("HttpEndpointDestinationConfiguration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("HttpEndpointDestinationConfiguration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.EndpointConfiguration.AccessKey","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.EndpointConfiguration.Name","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.EndpointConfiguration.Url","string")
$oJson.UpdateInt("HttpEndpointDestinationConfiguration.ProcessingConfiguration.Enabled",123)
$oJson.UpdateString("HttpEndpointDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.ProcessingConfiguration.Processors[0].Type","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.RequestConfiguration.CommonAttributes[0].AttributeName","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.RequestConfiguration.CommonAttributes[0].AttributeValue","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.RequestConfiguration.ContentEncoding","string")
$oJson.UpdateInt("HttpEndpointDestinationConfiguration.RetryOptions.DurationInSeconds",123)
$oJson.UpdateString("HttpEndpointDestinationConfiguration.RoleARN","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.S3BackupMode","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.S3Configuration.BucketARN","string")
$oJson.UpdateInt("HttpEndpointDestinationConfiguration.S3Configuration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("HttpEndpointDestinationConfiguration.S3Configuration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("HttpEndpointDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("HttpEndpointDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.S3Configuration.CompressionFormat","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.S3Configuration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.S3Configuration.EncryptionConfiguration.NoEncryptionConfig","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.S3Configuration.ErrorOutputPrefix","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.S3Configuration.Prefix","string")
$oJson.UpdateString("HttpEndpointDestinationConfiguration.S3Configuration.RoleARN","string")
$oJson.UpdateString("KinesisStreamSourceConfiguration.KinesisStreamARN","string")
$oJson.UpdateString("KinesisStreamSourceConfiguration.RoleARN","string")
$oJson.UpdateInt("RedshiftDestinationConfiguration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("RedshiftDestinationConfiguration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.ClusterJDBCURL","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.CopyCommand.CopyOptions","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.CopyCommand.DataTableColumns","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.CopyCommand.DataTableName","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.Password","string")
$oJson.UpdateInt("RedshiftDestinationConfiguration.ProcessingConfiguration.Enabled",123)
$oJson.UpdateString("RedshiftDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.ProcessingConfiguration.Processors[0].Type","string")
$oJson.UpdateInt("RedshiftDestinationConfiguration.RetryOptions.DurationInSeconds",123)
$oJson.UpdateString("RedshiftDestinationConfiguration.RoleARN","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3BackupConfiguration.BucketARN","string")
$oJson.UpdateInt("RedshiftDestinationConfiguration.S3BackupConfiguration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("RedshiftDestinationConfiguration.S3BackupConfiguration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("RedshiftDestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("RedshiftDestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3BackupConfiguration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3BackupConfiguration.CompressionFormat","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3BackupConfiguration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3BackupConfiguration.EncryptionConfiguration.NoEncryptionConfig","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3BackupConfiguration.ErrorOutputPrefix","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3BackupConfiguration.Prefix","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3BackupConfiguration.RoleARN","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3BackupMode","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3Configuration.BucketARN","string")
$oJson.UpdateInt("RedshiftDestinationConfiguration.S3Configuration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("RedshiftDestinationConfiguration.S3Configuration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("RedshiftDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("RedshiftDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3Configuration.CompressionFormat","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3Configuration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3Configuration.EncryptionConfiguration.NoEncryptionConfig","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3Configuration.ErrorOutputPrefix","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3Configuration.Prefix","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.S3Configuration.RoleARN","string")
$oJson.UpdateString("RedshiftDestinationConfiguration.Username","string")
$oJson.UpdateString("S3DestinationConfiguration.BucketARN","string")
$oJson.UpdateInt("S3DestinationConfiguration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("S3DestinationConfiguration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("S3DestinationConfiguration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("S3DestinationConfiguration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("S3DestinationConfiguration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("S3DestinationConfiguration.CompressionFormat","string")
$oJson.UpdateString("S3DestinationConfiguration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
$oJson.UpdateString("S3DestinationConfiguration.EncryptionConfiguration.NoEncryptionConfig","string")
$oJson.UpdateString("S3DestinationConfiguration.ErrorOutputPrefix","string")
$oJson.UpdateString("S3DestinationConfiguration.Prefix","string")
$oJson.UpdateString("S3DestinationConfiguration.RoleARN","string")
$oJson.UpdateInt("SplunkDestinationConfiguration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("SplunkDestinationConfiguration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("SplunkDestinationConfiguration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateInt("SplunkDestinationConfiguration.HECAcknowledgmentTimeoutInSeconds",123)
$oJson.UpdateString("SplunkDestinationConfiguration.HECEndpoint","string")
$oJson.UpdateString("SplunkDestinationConfiguration.HECEndpointType","string")
$oJson.UpdateString("SplunkDestinationConfiguration.HECToken","string")
$oJson.UpdateInt("SplunkDestinationConfiguration.ProcessingConfiguration.Enabled",123)
$oJson.UpdateString("SplunkDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
$oJson.UpdateString("SplunkDestinationConfiguration.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
$oJson.UpdateString("SplunkDestinationConfiguration.ProcessingConfiguration.Processors[0].Type","string")
$oJson.UpdateInt("SplunkDestinationConfiguration.RetryOptions.DurationInSeconds",123)
$oJson.UpdateString("SplunkDestinationConfiguration.S3BackupMode","string")
$oJson.UpdateString("SplunkDestinationConfiguration.S3Configuration.BucketARN","string")
$oJson.UpdateInt("SplunkDestinationConfiguration.S3Configuration.BufferingHints.IntervalInSeconds",123)
$oJson.UpdateInt("SplunkDestinationConfiguration.S3Configuration.BufferingHints.SizeInMBs",123)
$oJson.UpdateInt("SplunkDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.Enabled",123)
$oJson.UpdateString("SplunkDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogGroupName","string")
$oJson.UpdateString("SplunkDestinationConfiguration.S3Configuration.CloudWatchLoggingOptions.LogStreamName","string")
$oJson.UpdateString("SplunkDestinationConfiguration.S3Configuration.CompressionFormat","string")
$oJson.UpdateString("SplunkDestinationConfiguration.S3Configuration.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
$oJson.UpdateString("SplunkDestinationConfiguration.S3Configuration.EncryptionConfiguration.NoEncryptionConfig","string")
$oJson.UpdateString("SplunkDestinationConfiguration.S3Configuration.ErrorOutputPrefix","string")
$oJson.UpdateString("SplunkDestinationConfiguration.S3Configuration.Prefix","string")
$oJson.UpdateString("SplunkDestinationConfiguration.S3Configuration.RoleARN","string")
$oJson.UpdateString("Tags[0].Key","string")
$oJson.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"
; }
; ]
; }
$oRest.AddHeader("Content-Type","application/x-amz-json-1.1")
$oRest.AddHeader("X-Amz-Target","Firehose_20150804.CreateDeliveryStream")
$oSbRequestBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$oJson.EmitSb($oSbRequestBody)
$oSbResponseBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$bSuccess = $oRest.FullRequestSb("POST","/",$oSbRequestBody,$oSbResponseBody)
If ($bSuccess <> True) Then
ConsoleWrite($oRest.LastErrorText & @CRLF)
Exit
EndIf
Local $iRespStatusCode = $oRest.ResponseStatusCode
ConsoleWrite("response status code = " & $iRespStatusCode & @CRLF)
If ($iRespStatusCode <> 200) Then
ConsoleWrite("Response Header:" & @CRLF)
ConsoleWrite($oRest.ResponseHeader & @CRLF)
ConsoleWrite("Response Body:" & @CRLF)
ConsoleWrite($oSbResponseBody.GetAsString() & @CRLF)
Exit
EndIf
$oJResp = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJResp.LoadSb($oSbResponseBody)
; 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
Local $sDeliveryStreamARN = $oJResp.StringOf("DeliveryStreamARN")
; A sample JSON response body parsed by the above code:
; {
; "DeliveryStreamARN": "string"
; }