Chilkat Online Tools

UpdateDestination Python Example

Amazon Kinesis Data Firehose

import sys
import chilkat2

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

rest = chilkat2.Rest()

authAws = chilkat2.AuthAws()
authAws.AccessKey = "AWS_ACCESS_KEY"
authAws.SecretKey = "AWS_SECRET_KEY"

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

# URL: https://firehose.us-west-2.amazonaws.com/
# Use the same region as specified above.
success = rest.Connect("firehose.us-west-2.amazonaws.com",443,True,True)
if (success != True):
    print("ConnectFailReason: " + str(rest.ConnectFailReason))
    print(rest.LastErrorText)
    sys.exit()

# 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

json = chilkat2.JsonObject()
json.UpdateInt("AmazonopensearchserviceDestinationUpdate.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("AmazonopensearchserviceDestinationUpdate.BufferingHints.SizeInMBs",123)
json.UpdateInt("AmazonopensearchserviceDestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("AmazonopensearchserviceDestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.ClusterEndpoint","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.DomainARN","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.IndexName","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.IndexRotationPeriod","string")
json.UpdateInt("AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Enabled",123)
json.UpdateString("AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
json.UpdateInt("AmazonopensearchserviceDestinationUpdate.RetryOptions.DurationInSeconds",123)
json.UpdateString("AmazonopensearchserviceDestinationUpdate.RoleARN","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.S3Update.BucketARN","string")
json.UpdateInt("AmazonopensearchserviceDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("AmazonopensearchserviceDestinationUpdate.S3Update.BufferingHints.SizeInMBs",123)
json.UpdateInt("AmazonopensearchserviceDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("AmazonopensearchserviceDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.S3Update.CompressionFormat","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.S3Update.ErrorOutputPrefix","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.S3Update.Prefix","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.S3Update.RoleARN","string")
json.UpdateString("AmazonopensearchserviceDestinationUpdate.TypeName","string")
json.UpdateString("CurrentDeliveryStreamVersionId","string")
json.UpdateString("DeliveryStreamName","string")
json.UpdateString("DestinationId","string")
json.UpdateInt("ElasticsearchDestinationUpdate.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("ElasticsearchDestinationUpdate.BufferingHints.SizeInMBs",123)
json.UpdateInt("ElasticsearchDestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("ElasticsearchDestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("ElasticsearchDestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("ElasticsearchDestinationUpdate.ClusterEndpoint","string")
json.UpdateString("ElasticsearchDestinationUpdate.DomainARN","string")
json.UpdateString("ElasticsearchDestinationUpdate.IndexName","string")
json.UpdateString("ElasticsearchDestinationUpdate.IndexRotationPeriod","string")
json.UpdateInt("ElasticsearchDestinationUpdate.ProcessingConfiguration.Enabled",123)
json.UpdateString("ElasticsearchDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
json.UpdateString("ElasticsearchDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
json.UpdateString("ElasticsearchDestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
json.UpdateInt("ElasticsearchDestinationUpdate.RetryOptions.DurationInSeconds",123)
json.UpdateString("ElasticsearchDestinationUpdate.RoleARN","string")
json.UpdateString("ElasticsearchDestinationUpdate.S3Update.BucketARN","string")
json.UpdateInt("ElasticsearchDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("ElasticsearchDestinationUpdate.S3Update.BufferingHints.SizeInMBs",123)
json.UpdateInt("ElasticsearchDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("ElasticsearchDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("ElasticsearchDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("ElasticsearchDestinationUpdate.S3Update.CompressionFormat","string")
json.UpdateString("ElasticsearchDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
json.UpdateString("ElasticsearchDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig","string")
json.UpdateString("ElasticsearchDestinationUpdate.S3Update.ErrorOutputPrefix","string")
json.UpdateString("ElasticsearchDestinationUpdate.S3Update.Prefix","string")
json.UpdateString("ElasticsearchDestinationUpdate.S3Update.RoleARN","string")
json.UpdateString("ElasticsearchDestinationUpdate.TypeName","string")
json.UpdateString("ExtendedS3DestinationUpdate.BucketARN","string")
json.UpdateInt("ExtendedS3DestinationUpdate.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("ExtendedS3DestinationUpdate.BufferingHints.SizeInMBs",123)
json.UpdateInt("ExtendedS3DestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("ExtendedS3DestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("ExtendedS3DestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("ExtendedS3DestinationUpdate.CompressionFormat","string")
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.Enabled",123)
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.HiveJsonSerDe.TimestampFormats[0]","string")
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.CaseInsensitive",123)
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.ColumnToJsonKeyMappings.string","string")
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.InputFormatConfiguration.Deserializer.OpenXJsonSerDe.ConvertDotsInJsonKeysToUnderscores",123)
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BlockSizeBytes",123)
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BloomFilterColumns[0]","string")
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.BloomFilterFalsePositiveProbability",123)
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.Compression","string")
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.DictionaryKeyThreshold",123)
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.EnablePadding",123)
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.FormatVersion","string")
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.PaddingTolerance",123)
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.RowIndexStride",123)
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.OrcSerDe.StripeSizeBytes",123)
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.BlockSizeBytes",123)
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.Compression","string")
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.EnableDictionaryCompression",123)
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.MaxPaddingBytes",123)
json.UpdateInt("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.PageSizeBytes",123)
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.OutputFormatConfiguration.Serializer.ParquetSerDe.WriterVersion","string")
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.CatalogId","string")
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.DatabaseName","string")
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.Region","string")
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.RoleARN","string")
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.TableName","string")
json.UpdateString("ExtendedS3DestinationUpdate.DataFormatConversionConfiguration.SchemaConfiguration.VersionId","string")
json.UpdateInt("ExtendedS3DestinationUpdate.DynamicPartitioningConfiguration.Enabled",123)
json.UpdateInt("ExtendedS3DestinationUpdate.DynamicPartitioningConfiguration.RetryOptions.DurationInSeconds",123)
json.UpdateString("ExtendedS3DestinationUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
json.UpdateString("ExtendedS3DestinationUpdate.EncryptionConfiguration.NoEncryptionConfig","string")
json.UpdateString("ExtendedS3DestinationUpdate.ErrorOutputPrefix","string")
json.UpdateString("ExtendedS3DestinationUpdate.Prefix","string")
json.UpdateInt("ExtendedS3DestinationUpdate.ProcessingConfiguration.Enabled",123)
json.UpdateString("ExtendedS3DestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
json.UpdateString("ExtendedS3DestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
json.UpdateString("ExtendedS3DestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
json.UpdateString("ExtendedS3DestinationUpdate.RoleARN","string")
json.UpdateString("ExtendedS3DestinationUpdate.S3BackupMode","string")
json.UpdateString("ExtendedS3DestinationUpdate.S3BackupUpdate.BucketARN","string")
json.UpdateInt("ExtendedS3DestinationUpdate.S3BackupUpdate.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("ExtendedS3DestinationUpdate.S3BackupUpdate.BufferingHints.SizeInMBs",123)
json.UpdateInt("ExtendedS3DestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("ExtendedS3DestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("ExtendedS3DestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("ExtendedS3DestinationUpdate.S3BackupUpdate.CompressionFormat","string")
json.UpdateString("ExtendedS3DestinationUpdate.S3BackupUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
json.UpdateString("ExtendedS3DestinationUpdate.S3BackupUpdate.EncryptionConfiguration.NoEncryptionConfig","string")
json.UpdateString("ExtendedS3DestinationUpdate.S3BackupUpdate.ErrorOutputPrefix","string")
json.UpdateString("ExtendedS3DestinationUpdate.S3BackupUpdate.Prefix","string")
json.UpdateString("ExtendedS3DestinationUpdate.S3BackupUpdate.RoleARN","string")
json.UpdateInt("HttpEndpointDestinationUpdate.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("HttpEndpointDestinationUpdate.BufferingHints.SizeInMBs",123)
json.UpdateInt("HttpEndpointDestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("HttpEndpointDestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("HttpEndpointDestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("HttpEndpointDestinationUpdate.EndpointConfiguration.AccessKey","string")
json.UpdateString("HttpEndpointDestinationUpdate.EndpointConfiguration.Name","string")
json.UpdateString("HttpEndpointDestinationUpdate.EndpointConfiguration.Url","string")
json.UpdateInt("HttpEndpointDestinationUpdate.ProcessingConfiguration.Enabled",123)
json.UpdateString("HttpEndpointDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
json.UpdateString("HttpEndpointDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
json.UpdateString("HttpEndpointDestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
json.UpdateString("HttpEndpointDestinationUpdate.RequestConfiguration.CommonAttributes[0].AttributeName","string")
json.UpdateString("HttpEndpointDestinationUpdate.RequestConfiguration.CommonAttributes[0].AttributeValue","string")
json.UpdateString("HttpEndpointDestinationUpdate.RequestConfiguration.ContentEncoding","string")
json.UpdateInt("HttpEndpointDestinationUpdate.RetryOptions.DurationInSeconds",123)
json.UpdateString("HttpEndpointDestinationUpdate.RoleARN","string")
json.UpdateString("HttpEndpointDestinationUpdate.S3BackupMode","string")
json.UpdateString("HttpEndpointDestinationUpdate.S3Update.BucketARN","string")
json.UpdateInt("HttpEndpointDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("HttpEndpointDestinationUpdate.S3Update.BufferingHints.SizeInMBs",123)
json.UpdateInt("HttpEndpointDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("HttpEndpointDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("HttpEndpointDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("HttpEndpointDestinationUpdate.S3Update.CompressionFormat","string")
json.UpdateString("HttpEndpointDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
json.UpdateString("HttpEndpointDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig","string")
json.UpdateString("HttpEndpointDestinationUpdate.S3Update.ErrorOutputPrefix","string")
json.UpdateString("HttpEndpointDestinationUpdate.S3Update.Prefix","string")
json.UpdateString("HttpEndpointDestinationUpdate.S3Update.RoleARN","string")
json.UpdateInt("RedshiftDestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("RedshiftDestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("RedshiftDestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("RedshiftDestinationUpdate.ClusterJDBCURL","string")
json.UpdateString("RedshiftDestinationUpdate.CopyCommand.CopyOptions","string")
json.UpdateString("RedshiftDestinationUpdate.CopyCommand.DataTableColumns","string")
json.UpdateString("RedshiftDestinationUpdate.CopyCommand.DataTableName","string")
json.UpdateString("RedshiftDestinationUpdate.Password","string")
json.UpdateInt("RedshiftDestinationUpdate.ProcessingConfiguration.Enabled",123)
json.UpdateString("RedshiftDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
json.UpdateString("RedshiftDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
json.UpdateString("RedshiftDestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
json.UpdateInt("RedshiftDestinationUpdate.RetryOptions.DurationInSeconds",123)
json.UpdateString("RedshiftDestinationUpdate.RoleARN","string")
json.UpdateString("RedshiftDestinationUpdate.S3BackupMode","string")
json.UpdateString("RedshiftDestinationUpdate.S3BackupUpdate.BucketARN","string")
json.UpdateInt("RedshiftDestinationUpdate.S3BackupUpdate.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("RedshiftDestinationUpdate.S3BackupUpdate.BufferingHints.SizeInMBs",123)
json.UpdateInt("RedshiftDestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("RedshiftDestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("RedshiftDestinationUpdate.S3BackupUpdate.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("RedshiftDestinationUpdate.S3BackupUpdate.CompressionFormat","string")
json.UpdateString("RedshiftDestinationUpdate.S3BackupUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
json.UpdateString("RedshiftDestinationUpdate.S3BackupUpdate.EncryptionConfiguration.NoEncryptionConfig","string")
json.UpdateString("RedshiftDestinationUpdate.S3BackupUpdate.ErrorOutputPrefix","string")
json.UpdateString("RedshiftDestinationUpdate.S3BackupUpdate.Prefix","string")
json.UpdateString("RedshiftDestinationUpdate.S3BackupUpdate.RoleARN","string")
json.UpdateString("RedshiftDestinationUpdate.S3Update.BucketARN","string")
json.UpdateInt("RedshiftDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("RedshiftDestinationUpdate.S3Update.BufferingHints.SizeInMBs",123)
json.UpdateInt("RedshiftDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("RedshiftDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("RedshiftDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("RedshiftDestinationUpdate.S3Update.CompressionFormat","string")
json.UpdateString("RedshiftDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
json.UpdateString("RedshiftDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig","string")
json.UpdateString("RedshiftDestinationUpdate.S3Update.ErrorOutputPrefix","string")
json.UpdateString("RedshiftDestinationUpdate.S3Update.Prefix","string")
json.UpdateString("RedshiftDestinationUpdate.S3Update.RoleARN","string")
json.UpdateString("RedshiftDestinationUpdate.Username","string")
json.UpdateString("S3DestinationUpdate.BucketARN","string")
json.UpdateInt("S3DestinationUpdate.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("S3DestinationUpdate.BufferingHints.SizeInMBs",123)
json.UpdateInt("S3DestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("S3DestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("S3DestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("S3DestinationUpdate.CompressionFormat","string")
json.UpdateString("S3DestinationUpdate.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
json.UpdateString("S3DestinationUpdate.EncryptionConfiguration.NoEncryptionConfig","string")
json.UpdateString("S3DestinationUpdate.ErrorOutputPrefix","string")
json.UpdateString("S3DestinationUpdate.Prefix","string")
json.UpdateString("S3DestinationUpdate.RoleARN","string")
json.UpdateInt("SplunkDestinationUpdate.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("SplunkDestinationUpdate.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("SplunkDestinationUpdate.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateInt("SplunkDestinationUpdate.HECAcknowledgmentTimeoutInSeconds",123)
json.UpdateString("SplunkDestinationUpdate.HECEndpoint","string")
json.UpdateString("SplunkDestinationUpdate.HECEndpointType","string")
json.UpdateString("SplunkDestinationUpdate.HECToken","string")
json.UpdateInt("SplunkDestinationUpdate.ProcessingConfiguration.Enabled",123)
json.UpdateString("SplunkDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterName","string")
json.UpdateString("SplunkDestinationUpdate.ProcessingConfiguration.Processors[0].Parameters[0].ParameterValue","string")
json.UpdateString("SplunkDestinationUpdate.ProcessingConfiguration.Processors[0].Type","string")
json.UpdateInt("SplunkDestinationUpdate.RetryOptions.DurationInSeconds",123)
json.UpdateString("SplunkDestinationUpdate.S3BackupMode","string")
json.UpdateString("SplunkDestinationUpdate.S3Update.BucketARN","string")
json.UpdateInt("SplunkDestinationUpdate.S3Update.BufferingHints.IntervalInSeconds",123)
json.UpdateInt("SplunkDestinationUpdate.S3Update.BufferingHints.SizeInMBs",123)
json.UpdateInt("SplunkDestinationUpdate.S3Update.CloudWatchLoggingOptions.Enabled",123)
json.UpdateString("SplunkDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogGroupName","string")
json.UpdateString("SplunkDestinationUpdate.S3Update.CloudWatchLoggingOptions.LogStreamName","string")
json.UpdateString("SplunkDestinationUpdate.S3Update.CompressionFormat","string")
json.UpdateString("SplunkDestinationUpdate.S3Update.EncryptionConfiguration.KMSEncryptionConfig.AWSKMSKeyARN","string")
json.UpdateString("SplunkDestinationUpdate.S3Update.EncryptionConfiguration.NoEncryptionConfig","string")
json.UpdateString("SplunkDestinationUpdate.S3Update.ErrorOutputPrefix","string")
json.UpdateString("SplunkDestinationUpdate.S3Update.Prefix","string")
json.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"
#     }
#   }
# }

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

sbRequestBody = chilkat2.StringBuilder()
json.EmitSb(sbRequestBody)
sbResponseBody = chilkat2.StringBuilder()
success = rest.FullRequestSb("POST","/",sbRequestBody,sbResponseBody)
if (success != True):
    print(rest.LastErrorText)
    sys.exit()

respStatusCode = rest.ResponseStatusCode
print("response status code = " + str(respStatusCode))
if (respStatusCode != 200):
    print("Response Header:")
    print(rest.ResponseHeader)
    print("Response Body:")
    print(sbResponseBody.GetAsString())
    sys.exit()

# If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.