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