awskinesisfirehose

package
v1.168.0-devpreview Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

README

Amazon Kinesis Data Firehose Construct Library

Amazon Kinesis Data Firehose is a service for fully-managed delivery of real-time streaming data to storage services such as Amazon S3, Amazon Redshift, Amazon Elasticsearch, Splunk, or any custom HTTP endpoint or third-party services such as Datadog, Dynatrace, LogicMonitor, MongoDB, New Relic, and Sumo Logic.

Kinesis Data Firehose delivery streams are distinguished from Kinesis data streams in their models of consumtpion. Whereas consumers read from a data stream by actively pulling data from the stream, a delivery stream pushes data to its destination on a regular cadence. This means that data streams are intended to have consumers that do on-demand processing, like AWS Lambda or Amazon EC2. On the other hand, delivery streams are intended to have destinations that are sources for offline processing and analytics, such as Amazon S3 and Amazon Redshift.

This module is part of the AWS Cloud Development Kit project. It allows you to define Kinesis Data Firehose delivery streams.

Defining a Delivery Stream

In order to define a Delivery Stream, you must specify a destination. An S3 bucket can be used as a destination. More supported destinations are covered below.

bucket := s3.NewBucket(this, jsii.String("Bucket"))
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		destinations.NewS3Bucket(bucket),
	},
})

The above example defines the following resources:

  • An S3 bucket
  • A Kinesis Data Firehose delivery stream with Direct PUT as the source and CloudWatch error logging turned on.
  • An IAM role which gives the delivery stream permission to write to the S3 bucket.

Sources

There are two main methods of sourcing input data: Kinesis Data Streams and via a "direct put".

See: Sending Data to a Delivery Stream in the Kinesis Data Firehose Developer Guide.

Kinesis Data Stream

A delivery stream can read directly from a Kinesis data stream as a consumer of the data stream. Configure this behaviour by providing a data stream in the sourceStream property when constructing a delivery stream:

var destination iDestination

sourceStream := kinesis.NewStream(this, jsii.String("Source Stream"))
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	sourceStream: sourceStream,
	destinations: []*iDestination{
		destination,
	},
})
Direct Put

Data must be provided via "direct put", ie., by using a PutRecord or PutRecordBatch API call. There are a number of ways of doing so, such as:

  • Kinesis Agent: a standalone Java application that monitors and delivers files while handling file rotation, checkpointing, and retries. See: Writing to Kinesis Data Firehose Using Kinesis Agent in the Kinesis Data Firehose Developer Guide.
  • AWS SDK: a general purpose solution that allows you to deliver data to a delivery stream from anywhere using Java, .NET, Node.js, Python, or Ruby. See: Writing to Kinesis Data Firehose Using the AWS SDK in the Kinesis Data Firehose Developer Guide.
  • CloudWatch Logs: subscribe to a log group and receive filtered log events directly into a delivery stream. See: logs-destinations.
  • Eventbridge: add an event rule target to send events to a delivery stream based on the rule filtering. See: events-targets.
  • SNS: add a subscription to send all notifications from the topic to a delivery stream. See: sns-subscriptions.
  • IoT: add an action to an IoT rule to send various IoT information to a delivery stream

Destinations

The following destinations are supported. See kinesisfirehose-destinations for the implementations of these destinations.

S3

Defining a delivery stream with an S3 bucket destination:

var bucket bucket

s3Destination := destinations.NewS3Bucket(bucket)

firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		s3Destination,
	},
})

The S3 destination also supports custom dynamic prefixes. prefix will be used for files successfully delivered to S3. errorOutputPrefix will be added to failed records before writing them to S3.

var bucket bucket

s3Destination := destinations.NewS3Bucket(bucket, &s3BucketProps{
	dataOutputPrefix: jsii.String("myFirehose/DeliveredYear=!{timestamp:yyyy}/anyMonth/rand=!{firehose:random-string}"),
	errorOutputPrefix: jsii.String("myFirehoseFailures/!{firehose:error-output-type}/!{timestamp:yyyy}/anyMonth/!{timestamp:dd}"),
})

See: Custom S3 Prefixes in the Kinesis Data Firehose Developer Guide.

Server-side Encryption

Enabling server-side encryption (SSE) requires Kinesis Data Firehose to encrypt all data sent to delivery stream when it is stored at rest. This means that data is encrypted before being written to the service's internal storage layer and decrypted after it is received from the internal storage layer. The service manages keys and cryptographic operations so that sources and destinations do not need to, as the data is encrypted and decrypted at the boundaries of the service (ie., before the data is delivered to a destination). By default, delivery streams do not have SSE enabled.

The Key Management Service (KMS) Customer Managed Key (CMK) used for SSE can either be AWS-owned or customer-managed. AWS-owned CMKs are keys that an AWS service (in this case Kinesis Data Firehose) owns and manages for use in multiple AWS accounts. As a customer, you cannot view, use, track, or manage these keys, and you are not charged for their use. On the other hand, customer-managed CMKs are keys that are created and owned within your account and managed entirely by you. As a customer, you are responsible for managing access, rotation, aliases, and deletion for these keys, and you are changed for their use. See: Customer master keys in the KMS Developer Guide.

var destination iDestination
// SSE with an customer-managed CMK that is explicitly specified
var key key


// SSE with an AWS-owned CMK
// SSE with an AWS-owned CMK
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream AWS Owned"), &deliveryStreamProps{
	encryption: firehose.streamEncryption_AWS_OWNED,
	destinations: []*iDestination{
		destination,
	},
})
// SSE with an customer-managed CMK that is created automatically by the CDK
// SSE with an customer-managed CMK that is created automatically by the CDK
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream Implicit Customer Managed"), &deliveryStreamProps{
	encryption: firehose.*streamEncryption_CUSTOMER_MANAGED,
	destinations: []*iDestination{
		destination,
	},
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream Explicit Customer Managed"), &deliveryStreamProps{
	encryptionKey: key,
	destinations: []*iDestination{
		destination,
	},
})

See: Data Protection in the Kinesis Data Firehose Developer Guide.

Monitoring

Kinesis Data Firehose is integrated with CloudWatch, so you can monitor the performance of your delivery streams via logs and metrics.

Logs

Kinesis Data Firehose will send logs to CloudWatch when data transformation or data delivery fails. The CDK will enable logging by default and create a CloudWatch LogGroup and LogStream for your Delivery Stream.

You can provide a specific log group to specify where the CDK will create the log streams where log events will be sent:

import logs "github.com/aws/aws-cdk-go/awscdk"
var bucket bucket

var destination iDestination


logGroup := logs.NewLogGroup(this, jsii.String("Log Group"))
destination := destinations.NewS3Bucket(bucket, &s3BucketProps{
	logGroup: logGroup,
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []*iDestination{
		destination,
	},
})

Logging can also be disabled:

var bucket bucket

destination := destinations.NewS3Bucket(bucket, &s3BucketProps{
	logging: jsii.Boolean(false),
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		destination,
	},
})

See: Monitoring using CloudWatch Logs in the Kinesis Data Firehose Developer Guide.

Metrics

Kinesis Data Firehose sends metrics to CloudWatch so that you can collect and analyze the performance of the delivery stream, including data delivery, data ingestion, data transformation, format conversion, API usage, encryption, and resource usage. You can then use CloudWatch alarms to alert you, for example, when data freshness (the age of the oldest record in the delivery stream) exceeds the buffering limit (indicating that data is not being delivered to your destination), or when the rate of incoming records exceeds the limit of records per second (indicating data is flowing into your delivery stream faster than it is configured to process).

CDK provides methods for accessing delivery stream metrics with default configuration, such as metricIncomingBytes, and metricIncomingRecords (see IDeliveryStream for a full list). CDK also provides a generic metric method that can be used to produce metric configurations for any metric provided by Kinesis Data Firehose; the configurations are pre-populated with the correct dimensions for the delivery stream.

import cloudwatch "github.com/aws/aws-cdk-go/awscdk"
var deliveryStream deliveryStream


// Alarm that triggers when the per-second average of incoming bytes exceeds 90% of the current service limit
incomingBytesPercentOfLimit := cloudwatch.NewMathExpression(&mathExpressionProps{
	expression: jsii.String("incomingBytes / 300 / bytePerSecLimit"),
	usingMetrics: map[string]iMetric{
		"incomingBytes": deliveryStream.metricIncomingBytes(&MetricOptions{
			"statistic": cloudwatch.Statistic_SUM,
		}),
		"bytePerSecLimit": deliveryStream.metric(jsii.String("BytesPerSecondLimit")),
	},
})

cloudwatch.NewAlarm(this, jsii.String("Alarm"), &alarmProps{
	metric: incomingBytesPercentOfLimit,
	threshold: jsii.Number(0.9),
	evaluationPeriods: jsii.Number(3),
})

See: Monitoring Using CloudWatch Metrics in the Kinesis Data Firehose Developer Guide.

Compression

Your data can automatically be compressed when it is delivered to S3 as either a final or an intermediary/backup destination. Supported compression formats are: gzip, Snappy, Hadoop-compatible Snappy, and ZIP, except for Redshift destinations, where Snappy (regardless of Hadoop-compatibility) and ZIP are not supported. By default, data is delivered to S3 without compression.

// Compress data delivered to S3 using Snappy
var bucket bucket

s3Destination := destinations.NewS3Bucket(bucket, &s3BucketProps{
	compression: destinations.compression_SNAPPY(),
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		s3Destination,
	},
})

Buffering

Incoming data is buffered before it is delivered to the specified destination. The delivery stream will wait until the amount of incoming data has exceeded some threshold (the "buffer size") or until the time since the last data delivery occurred exceeds some threshold (the "buffer interval"), whichever happens first. You can configure these thresholds based on the capabilities of the destination and your use-case. By default, the buffer size is 5 MiB and the buffer interval is 5 minutes.

// Increase the buffer interval and size to 10 minutes and 8 MiB, respectively
var bucket bucket

destination := destinations.NewS3Bucket(bucket, &s3BucketProps{
	bufferingInterval: awscdk.Duration.minutes(jsii.Number(10)),
	bufferingSize: awscdk.Size.mebibytes(jsii.Number(8)),
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		destination,
	},
})

See: Data Delivery Frequency in the Kinesis Data Firehose Developer Guide.

Destination Encryption

Your data can be automatically encrypted when it is delivered to S3 as a final or an intermediary/backup destination. Kinesis Data Firehose supports Amazon S3 server-side encryption with AWS Key Management Service (AWS KMS) for encrypting delivered data in Amazon S3. You can choose to not encrypt the data or to encrypt with a key from the list of AWS KMS keys that you own. For more information, see Protecting Data Using Server-Side Encryption with AWS KMS–Managed Keys (SSE-KMS). Data is not encrypted by default.

var bucket bucket
var key key

destination := destinations.NewS3Bucket(bucket, &s3BucketProps{
	encryptionKey: key,
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		destination,
	},
})

Backup

A delivery stream can be configured to backup data to S3 that it attempted to deliver to the configured destination. Backed up data can be all the data that the delivery stream attempted to deliver or just data that it failed to deliver (Redshift and S3 destinations can only backup all data). CDK can create a new S3 bucket where it will back up data or you can provide a bucket where data will be backed up. You can also provide a prefix under which your backed-up data will be placed within the bucket. By default, source data is not backed up to S3.

// Enable backup of all source records (to an S3 bucket created by CDK).
var bucket bucket
// Explicitly provide an S3 bucket to which all source records will be backed up.
var backupBucket bucket

firehose.NewDeliveryStream(this, jsii.String("Delivery Stream Backup All"), &deliveryStreamProps{
	destinations: []iDestination{
		destinations.NewS3Bucket(bucket, &s3BucketProps{
			s3Backup: &destinationS3BackupProps{
				mode: destinations.backupMode_ALL,
			},
		}),
	},
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream Backup All Explicit Bucket"), &deliveryStreamProps{
	destinations: []*iDestination{
		destinations.NewS3Bucket(bucket, &s3BucketProps{
			s3Backup: &destinationS3BackupProps{
				bucket: backupBucket,
			},
		}),
	},
})
// Explicitly provide an S3 prefix under which all source records will be backed up.
// Explicitly provide an S3 prefix under which all source records will be backed up.
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream Backup All Explicit Prefix"), &deliveryStreamProps{
	destinations: []*iDestination{
		destinations.NewS3Bucket(bucket, &s3BucketProps{
			s3Backup: &destinationS3BackupProps{
				mode: destinations.*backupMode_ALL,
				dataOutputPrefix: jsii.String("mybackup"),
			},
		}),
	},
})

If any Data Processing or Transformation is configured on your Delivery Stream, the source records will be backed up in their original format.

Data Processing/Transformation

Data can be transformed before being delivered to destinations. There are two types of data processing for delivery streams: record transformation with AWS Lambda, and record format conversion using a schema stored in an AWS Glue table. If both types of data processing are configured, then the Lambda transformation is performed first. By default, no data processing occurs. This construct library currently only supports data transformation with AWS Lambda. See #15501 to track the status of adding support for record format conversion.

Data transformation with AWS Lambda

To transform the data, Kinesis Data Firehose will call a Lambda function that you provide and deliver the data returned in place of the source record. The function must return a result that contains records in a specific format, including the following fields:

  • recordId -- the ID of the input record that corresponds the results.
  • result -- the status of the transformation of the record: "Ok" (success), "Dropped" (not processed intentionally), or "ProcessingFailed" (not processed due to an error).
  • data -- the transformed data, Base64-encoded.

The data is buffered up to 1 minute and up to 3 MiB by default before being sent to the function, but can be configured using bufferInterval and bufferSize in the processor configuration (see: Buffering). If the function invocation fails due to a network timeout or because of hitting an invocation limit, the invocation is retried 3 times by default, but can be configured using retries in the processor configuration.

var bucket bucket
// Provide a Lambda function that will transform records before delivery, with custom
// buffering and retry configuration
lambdaFunction := lambda.NewFunction(this, jsii.String("Processor"), &functionProps{
	runtime: lambda.runtime_NODEJS_12_X(),
	handler: jsii.String("index.handler"),
	code: lambda.code.fromAsset(path.join(__dirname, jsii.String("process-records"))),
})
lambdaProcessor := firehose.NewLambdaFunctionProcessor(lambdaFunction, &dataProcessorProps{
	bufferInterval: awscdk.Duration.minutes(jsii.Number(5)),
	bufferSize: awscdk.Size.mebibytes(jsii.Number(5)),
	retries: jsii.Number(5),
})
s3Destination := destinations.NewS3Bucket(bucket, &s3BucketProps{
	processor: lambdaProcessor,
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		s3Destination,
	},
})
import path "github.com/aws-samples/dummy/path"
import firehose "github.com/aws/aws-cdk-go/awscdk"
import kms "github.com/aws/aws-cdk-go/awscdk"
import lambdanodejs "github.com/aws/aws-cdk-go/awscdk"
import logs "github.com/aws/aws-cdk-go/awscdk"
import s3 "github.com/aws/aws-cdk-go/awscdk"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import destinations "github.com/aws/aws-cdk-go/awscdk"

app := cdk.NewApp()

stack := cdk.NewStack(app, jsii.String("aws-cdk-firehose-delivery-stream-s3-all-properties"))

bucket := s3.NewBucket(stack, jsii.String("Bucket"), &bucketProps{
	removalPolicy: cdk.removalPolicy_DESTROY,
	autoDeleteObjects: jsii.Boolean(true),
})

backupBucket := s3.NewBucket(stack, jsii.String("BackupBucket"), &bucketProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
	autoDeleteObjects: jsii.Boolean(true),
})
logGroup := logs.NewLogGroup(stack, jsii.String("LogGroup"), &logGroupProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

dataProcessorFunction := lambdanodejs.NewNodejsFunction(stack, jsii.String("DataProcessorFunction"), &nodejsFunctionProps{
	entry: path.join(__dirname, jsii.String("lambda-data-processor.js")),
	timeout: cdk.duration.minutes(jsii.Number(1)),
})

processor := firehose.NewLambdaFunctionProcessor(dataProcessorFunction, &dataProcessorProps{
	bufferInterval: cdk.*duration.seconds(jsii.Number(60)),
	bufferSize: cdk.size.mebibytes(jsii.Number(1)),
	retries: jsii.Number(1),
})

key := kms.NewKey(stack, jsii.String("Key"), &keyProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

backupKey := kms.NewKey(stack, jsii.String("BackupKey"), &keyProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

firehose.NewDeliveryStream(stack, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		destinations.NewS3Bucket(bucket, &s3BucketProps{
			logging: jsii.Boolean(true),
			logGroup: logGroup,
			processor: processor,
			compression: destinations.compression_GZIP(),
			dataOutputPrefix: jsii.String("regularPrefix"),
			errorOutputPrefix: jsii.String("errorPrefix"),
			bufferingInterval: cdk.*duration.seconds(jsii.Number(60)),
			bufferingSize: cdk.*size.mebibytes(jsii.Number(1)),
			encryptionKey: key,
			s3Backup: &destinationS3BackupProps{
				mode: destinations.backupMode_ALL,
				bucket: backupBucket,
				compression: destinations.*compression_ZIP(),
				dataOutputPrefix: jsii.String("backupPrefix"),
				errorOutputPrefix: jsii.String("backupErrorPrefix"),
				bufferingInterval: cdk.*duration.seconds(jsii.Number(60)),
				bufferingSize: cdk.*size.mebibytes(jsii.Number(1)),
				encryptionKey: backupKey,
			},
		}),
	},
})

app.synth()

!cdk-integ pragma:ignore-assets

import path "github.com/aws-samples/dummy/path"
import firehose "github.com/aws/aws-cdk-go/awscdk"
import kms "github.com/aws/aws-cdk-go/awscdk"
import lambdanodejs "github.com/aws/aws-cdk-go/awscdk"
import logs "github.com/aws/aws-cdk-go/awscdk"
import s3 "github.com/aws/aws-cdk-go/awscdk"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import destinations "github.com/aws/aws-cdk-go/awscdk"

app := cdk.NewApp()

stack := cdk.NewStack(app, jsii.String("aws-cdk-firehose-delivery-stream-s3-all-properties"))

bucket := s3.NewBucket(stack, jsii.String("Bucket"), &bucketProps{
	removalPolicy: cdk.removalPolicy_DESTROY,
	autoDeleteObjects: jsii.Boolean(true),
})

backupBucket := s3.NewBucket(stack, jsii.String("BackupBucket"), &bucketProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
	autoDeleteObjects: jsii.Boolean(true),
})
logGroup := logs.NewLogGroup(stack, jsii.String("LogGroup"), &logGroupProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

dataProcessorFunction := lambdanodejs.NewNodejsFunction(stack, jsii.String("DataProcessorFunction"), &nodejsFunctionProps{
	entry: path.join(__dirname, jsii.String("lambda-data-processor.js")),
	timeout: cdk.duration.minutes(jsii.Number(1)),
})

processor := firehose.NewLambdaFunctionProcessor(dataProcessorFunction, &dataProcessorProps{
	bufferInterval: cdk.*duration.seconds(jsii.Number(60)),
	bufferSize: cdk.size.mebibytes(jsii.Number(1)),
	retries: jsii.Number(1),
})

key := kms.NewKey(stack, jsii.String("Key"), &keyProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

backupKey := kms.NewKey(stack, jsii.String("BackupKey"), &keyProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

firehose.NewDeliveryStream(stack, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		destinations.NewS3Bucket(bucket, &s3BucketProps{
			logging: jsii.Boolean(true),
			logGroup: logGroup,
			processor: processor,
			compression: destinations.compression_GZIP(),
			dataOutputPrefix: jsii.String("regularPrefix"),
			errorOutputPrefix: jsii.String("errorPrefix"),
			bufferingInterval: cdk.*duration.seconds(jsii.Number(60)),
			bufferingSize: cdk.*size.mebibytes(jsii.Number(1)),
			encryptionKey: key,
			s3Backup: &destinationS3BackupProps{
				mode: destinations.backupMode_ALL,
				bucket: backupBucket,
				compression: destinations.*compression_ZIP(),
				dataOutputPrefix: jsii.String("backupPrefix"),
				errorOutputPrefix: jsii.String("backupErrorPrefix"),
				bufferingInterval: cdk.*duration.seconds(jsii.Number(60)),
				bufferingSize: cdk.*size.mebibytes(jsii.Number(1)),
				encryptionKey: backupKey,
			},
		}),
	},
})

app.synth()

See: Data Transformation in the Kinesis Data Firehose Developer Guide.

Specifying an IAM role

The DeliveryStream class automatically creates IAM service roles with all the minimum necessary permissions for Kinesis Data Firehose to access the resources referenced by your delivery stream. One service role is created for the delivery stream that allows Kinesis Data Firehose to read from a Kinesis data stream (if one is configured as the delivery stream source) and for server-side encryption. Another service role is created for each destination, which gives Kinesis Data Firehose write access to the destination resource, as well as the ability to invoke data transformers and read schemas for record format conversion. If you wish, you may specify your own IAM role for either the delivery stream or the destination service role, or both. It must have the correct trust policy (it must allow Kinesis Data Firehose to assume it) or delivery stream creation or data delivery will fail. Other required permissions to destination resources, encryption keys, etc., will be provided automatically.

// Specify the roles created above when defining the destination and delivery stream.
var bucket bucket
// Create service roles for the delivery stream and destination.
// These can be used for other purposes and granted access to different resources.
// They must include the Kinesis Data Firehose service principal in their trust policies.
// Two separate roles are shown below, but the same role can be used for both purposes.
deliveryStreamRole := iam.NewRole(this, jsii.String("Delivery Stream Role"), &roleProps{
	assumedBy: iam.NewServicePrincipal(jsii.String("firehose.amazonaws.com")),
})
destinationRole := iam.NewRole(this, jsii.String("Destination Role"), &roleProps{
	assumedBy: iam.NewServicePrincipal(jsii.String("firehose.amazonaws.com")),
})
destination := destinations.NewS3Bucket(bucket, &s3BucketProps{
	role: destinationRole,
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		destination,
	},
	role: deliveryStreamRole,
})

See Controlling Access in the Kinesis Data Firehose Developer Guide.

Granting application access to a delivery stream

IAM roles, users or groups which need to be able to work with delivery streams should be granted IAM permissions.

Any object that implements the IGrantable interface (ie., has an associated principal) can be granted permissions to a delivery stream by calling:

  • grantPutRecords(principal) - grants the principal the ability to put records onto the delivery stream
  • grant(principal, ...actions) - grants the principal permission to a custom set of actions
// Give the role permissions to write data to the delivery stream
var deliveryStream deliveryStream
lambdaRole := iam.NewRole(this, jsii.String("Role"), &roleProps{
	assumedBy: iam.NewServicePrincipal(jsii.String("lambda.amazonaws.com")),
})
deliveryStream.grantPutRecords(lambdaRole)

The following write permissions are provided to a service principal by the grantPutRecords() method:

  • firehose:PutRecord
  • firehose:PutRecordBatch

Granting a delivery stream access to a resource

Conversely to the above, Kinesis Data Firehose requires permissions in order for delivery streams to interact with resources that you own. For example, if an S3 bucket is specified as a destination of a delivery stream, the delivery stream must be granted permissions to put and get objects from the bucket. When using the built-in AWS service destinations found in the @aws-cdk/aws-kinesisfirehose-destinations module, the CDK grants the permissions automatically. However, custom or third-party destinations may require custom permissions. In this case, use the delivery stream as an IGrantable, as follows:

var deliveryStream deliveryStream
fn := lambda.NewFunction(this, jsii.String("Function"), &functionProps{
	code: lambda.code.fromInline(jsii.String("exports.handler = (event) => {}")),
	runtime: lambda.runtime_NODEJS_14_X(),
	handler: jsii.String("index.handler"),
})
fn.grantInvoke(deliveryStream)

Multiple destinations

Though the delivery stream allows specifying an array of destinations, only one destination per delivery stream is currently allowed. This limitation is enforced at CDK synthesis time and will throw an error.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CfnDeliveryStream_CFN_RESOURCE_TYPE_NAME

func CfnDeliveryStream_CFN_RESOURCE_TYPE_NAME() *string

func CfnDeliveryStream_IsCfnElement

func CfnDeliveryStream_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnDeliveryStream_IsCfnResource

func CfnDeliveryStream_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnDeliveryStream_IsConstruct

func CfnDeliveryStream_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func DeliveryStream_IsConstruct

func DeliveryStream_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func DeliveryStream_IsResource

func DeliveryStream_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func NewCfnDeliveryStream_Override

func NewCfnDeliveryStream_Override(c CfnDeliveryStream, scope awscdk.Construct, id *string, props *CfnDeliveryStreamProps)

Create a new `AWS::KinesisFirehose::DeliveryStream`.

func NewDeliveryStream_Override

func NewDeliveryStream_Override(d DeliveryStream, scope constructs.Construct, id *string, props *DeliveryStreamProps)

Experimental.

func NewLambdaFunctionProcessor_Override

func NewLambdaFunctionProcessor_Override(l LambdaFunctionProcessor, lambdaFunction awslambda.IFunction, props *DataProcessorProps)

Experimental.

Types

type CfnDeliveryStream

type CfnDeliveryStream interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// The destination in Amazon OpenSearch Service.
	//
	// You can specify only one destination.
	AmazonopensearchserviceDestinationConfiguration() interface{}
	SetAmazonopensearchserviceDestinationConfiguration(val interface{})
	// The Amazon Resource Name (ARN) of the delivery stream, such as `arn:aws:firehose:us-east-2:123456789012:deliverystream/delivery-stream-name` .
	AttrArn() *string
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// Specifies the type and Amazon Resource Name (ARN) of the CMK to use for Server-Side Encryption (SSE).
	DeliveryStreamEncryptionConfigurationInput() interface{}
	SetDeliveryStreamEncryptionConfigurationInput(val interface{})
	// The name of the delivery stream.
	DeliveryStreamName() *string
	SetDeliveryStreamName(val *string)
	// The delivery stream type. This can be one of the following values:.
	//
	// - `DirectPut` : Provider applications access the delivery stream directly.
	// - `KinesisStreamAsSource` : The delivery stream uses a Kinesis data stream as a source.
	DeliveryStreamType() *string
	SetDeliveryStreamType(val *string)
	// An Amazon ES destination for the delivery stream.
	//
	// Conditional. You must specify only one destination configuration.
	//
	// If you change the delivery stream destination from an Amazon ES destination to an Amazon S3 or Amazon Redshift destination, update requires [some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt) .
	ElasticsearchDestinationConfiguration() interface{}
	SetElasticsearchDestinationConfiguration(val interface{})
	// An Amazon S3 destination for the delivery stream.
	//
	// Conditional. You must specify only one destination configuration.
	//
	// If you change the delivery stream destination from an Amazon Extended S3 destination to an Amazon ES destination, update requires [some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt) .
	ExtendedS3DestinationConfiguration() interface{}
	SetExtendedS3DestinationConfiguration(val interface{})
	// Enables configuring Kinesis Firehose to deliver data to any HTTP endpoint destination.
	//
	// You can specify only one destination.
	HttpEndpointDestinationConfiguration() interface{}
	SetHttpEndpointDestinationConfiguration(val interface{})
	// When a Kinesis stream is used as the source for the delivery stream, a [KinesisStreamSourceConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html) containing the Kinesis stream ARN and the role ARN for the source stream.
	KinesisStreamSourceConfiguration() interface{}
	SetKinesisStreamSourceConfiguration(val interface{})
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// An Amazon Redshift destination for the delivery stream.
	//
	// Conditional. You must specify only one destination configuration.
	//
	// If you change the delivery stream destination from an Amazon Redshift destination to an Amazon ES destination, update requires [some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt) .
	RedshiftDestinationConfiguration() interface{}
	SetRedshiftDestinationConfiguration(val interface{})
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The `S3DestinationConfiguration` property type specifies an Amazon Simple Storage Service (Amazon S3) destination to which Amazon Kinesis Data Firehose (Kinesis Data Firehose) delivers data.
	//
	// Conditional. You must specify only one destination configuration.
	//
	// If you change the delivery stream destination from an Amazon S3 destination to an Amazon ES destination, update requires [some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt) .
	S3DestinationConfiguration() interface{}
	SetS3DestinationConfiguration(val interface{})
	// The configuration of a destination in Splunk for the delivery stream.
	SplunkDestinationConfiguration() interface{}
	SetSplunkDestinationConfiguration(val interface{})
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// A set of tags to assign to the delivery stream.
	//
	// A tag is a key-value pair that you can define and assign to AWS resources. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the delivery stream. For more information about tags, see [Using Cost Allocation Tags](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) in the AWS Billing and Cost Management User Guide.
	//
	// You can specify up to 50 tags when creating a delivery stream.
	Tags() awscdk.TagManager
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::KinesisFirehose::DeliveryStream`.

The `AWS::KinesisFirehose::DeliveryStream` resource specifies an Amazon Kinesis Data Firehose (Kinesis Data Firehose) delivery stream that delivers real-time streaming data to an Amazon Simple Storage Service (Amazon S3), Amazon Redshift, or Amazon Elasticsearch Service (Amazon ES) destination. For more information, see [Creating an Amazon Kinesis Data Firehose Delivery Stream](https://docs.aws.amazon.com/firehose/latest/dev/basic-create.html) in the *Amazon Kinesis Data Firehose Developer Guide* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDeliveryStream := awscdk.Aws_kinesisfirehose.NewCfnDeliveryStream(this, jsii.String("MyCfnDeliveryStream"), &cfnDeliveryStreamProps{
	amazonopensearchserviceDestinationConfiguration: &amazonopensearchserviceDestinationConfigurationProperty{
		indexName: jsii.String("indexName"),
		roleArn: jsii.String("roleArn"),
		s3Configuration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},

		// the properties below are optional
		bufferingHints: &amazonopensearchserviceBufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		clusterEndpoint: jsii.String("clusterEndpoint"),
		domainArn: jsii.String("domainArn"),
		indexRotationPeriod: jsii.String("indexRotationPeriod"),
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		retryOptions: &amazonopensearchserviceRetryOptionsProperty{
			durationInSeconds: jsii.Number(123),
		},
		s3BackupMode: jsii.String("s3BackupMode"),
		typeName: jsii.String("typeName"),
		vpcConfiguration: &vpcConfigurationProperty{
			roleArn: jsii.String("roleArn"),
			securityGroupIds: []*string{
				jsii.String("securityGroupIds"),
			},
			subnetIds: []*string{
				jsii.String("subnetIds"),
			},
		},
	},
	deliveryStreamEncryptionConfigurationInput: &deliveryStreamEncryptionConfigurationInputProperty{
		keyType: jsii.String("keyType"),

		// the properties below are optional
		keyArn: jsii.String("keyArn"),
	},
	deliveryStreamName: jsii.String("deliveryStreamName"),
	deliveryStreamType: jsii.String("deliveryStreamType"),
	elasticsearchDestinationConfiguration: &elasticsearchDestinationConfigurationProperty{
		indexName: jsii.String("indexName"),
		roleArn: jsii.String("roleArn"),
		s3Configuration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},

		// the properties below are optional
		bufferingHints: &elasticsearchBufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		clusterEndpoint: jsii.String("clusterEndpoint"),
		domainArn: jsii.String("domainArn"),
		indexRotationPeriod: jsii.String("indexRotationPeriod"),
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		retryOptions: &elasticsearchRetryOptionsProperty{
			durationInSeconds: jsii.Number(123),
		},
		s3BackupMode: jsii.String("s3BackupMode"),
		typeName: jsii.String("typeName"),
		vpcConfiguration: &vpcConfigurationProperty{
			roleArn: jsii.String("roleArn"),
			securityGroupIds: []*string{
				jsii.String("securityGroupIds"),
			},
			subnetIds: []*string{
				jsii.String("subnetIds"),
			},
		},
	},
	extendedS3DestinationConfiguration: &extendedS3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		dataFormatConversionConfiguration: &dataFormatConversionConfigurationProperty{
			enabled: jsii.Boolean(false),
			inputFormatConfiguration: &inputFormatConfigurationProperty{
				deserializer: &deserializerProperty{
					hiveJsonSerDe: &hiveJsonSerDeProperty{
						timestampFormats: []*string{
							jsii.String("timestampFormats"),
						},
					},
					openXJsonSerDe: &openXJsonSerDeProperty{
						caseInsensitive: jsii.Boolean(false),
						columnToJsonKeyMappings: map[string]*string{
							"columnToJsonKeyMappingsKey": jsii.String("columnToJsonKeyMappings"),
						},
						convertDotsInJsonKeysToUnderscores: jsii.Boolean(false),
					},
				},
			},
			outputFormatConfiguration: &outputFormatConfigurationProperty{
				serializer: &serializerProperty{
					orcSerDe: &orcSerDeProperty{
						blockSizeBytes: jsii.Number(123),
						bloomFilterColumns: []*string{
							jsii.String("bloomFilterColumns"),
						},
						bloomFilterFalsePositiveProbability: jsii.Number(123),
						compression: jsii.String("compression"),
						dictionaryKeyThreshold: jsii.Number(123),
						enablePadding: jsii.Boolean(false),
						formatVersion: jsii.String("formatVersion"),
						paddingTolerance: jsii.Number(123),
						rowIndexStride: jsii.Number(123),
						stripeSizeBytes: jsii.Number(123),
					},
					parquetSerDe: &parquetSerDeProperty{
						blockSizeBytes: jsii.Number(123),
						compression: jsii.String("compression"),
						enableDictionaryCompression: jsii.Boolean(false),
						maxPaddingBytes: jsii.Number(123),
						pageSizeBytes: jsii.Number(123),
						writerVersion: jsii.String("writerVersion"),
					},
				},
			},
			schemaConfiguration: &schemaConfigurationProperty{
				catalogId: jsii.String("catalogId"),
				databaseName: jsii.String("databaseName"),
				region: jsii.String("region"),
				roleArn: jsii.String("roleArn"),
				tableName: jsii.String("tableName"),
				versionId: jsii.String("versionId"),
			},
		},
		dynamicPartitioningConfiguration: &dynamicPartitioningConfigurationProperty{
			enabled: jsii.Boolean(false),
			retryOptions: &retryOptionsProperty{
				durationInSeconds: jsii.Number(123),
			},
		},
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		s3BackupConfiguration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},
		s3BackupMode: jsii.String("s3BackupMode"),
	},
	httpEndpointDestinationConfiguration: &httpEndpointDestinationConfigurationProperty{
		endpointConfiguration: &httpEndpointConfigurationProperty{
			url: jsii.String("url"),

			// the properties below are optional
			accessKey: jsii.String("accessKey"),
			name: jsii.String("name"),
		},
		s3Configuration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		requestConfiguration: &httpEndpointRequestConfigurationProperty{
			commonAttributes: []interface{}{
				&httpEndpointCommonAttributeProperty{
					attributeName: jsii.String("attributeName"),
					attributeValue: jsii.String("attributeValue"),
				},
			},
			contentEncoding: jsii.String("contentEncoding"),
		},
		retryOptions: &retryOptionsProperty{
			durationInSeconds: jsii.Number(123),
		},
		roleArn: jsii.String("roleArn"),
		s3BackupMode: jsii.String("s3BackupMode"),
	},
	kinesisStreamSourceConfiguration: &kinesisStreamSourceConfigurationProperty{
		kinesisStreamArn: jsii.String("kinesisStreamArn"),
		roleArn: jsii.String("roleArn"),
	},
	redshiftDestinationConfiguration: &redshiftDestinationConfigurationProperty{
		clusterJdbcurl: jsii.String("clusterJdbcurl"),
		copyCommand: &copyCommandProperty{
			dataTableName: jsii.String("dataTableName"),

			// the properties below are optional
			copyOptions: jsii.String("copyOptions"),
			dataTableColumns: jsii.String("dataTableColumns"),
		},
		password: jsii.String("password"),
		roleArn: jsii.String("roleArn"),
		s3Configuration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},
		username: jsii.String("username"),

		// the properties below are optional
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		retryOptions: &redshiftRetryOptionsProperty{
			durationInSeconds: jsii.Number(123),
		},
		s3BackupConfiguration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},
		s3BackupMode: jsii.String("s3BackupMode"),
	},
	s3DestinationConfiguration: &s3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
	},
	splunkDestinationConfiguration: &splunkDestinationConfigurationProperty{
		hecEndpoint: jsii.String("hecEndpoint"),
		hecEndpointType: jsii.String("hecEndpointType"),
		hecToken: jsii.String("hecToken"),
		s3Configuration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},

		// the properties below are optional
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		hecAcknowledgmentTimeoutInSeconds: jsii.Number(123),
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		retryOptions: &splunkRetryOptionsProperty{
			durationInSeconds: jsii.Number(123),
		},
		s3BackupMode: jsii.String("s3BackupMode"),
	},
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
})

func NewCfnDeliveryStream

func NewCfnDeliveryStream(scope awscdk.Construct, id *string, props *CfnDeliveryStreamProps) CfnDeliveryStream

Create a new `AWS::KinesisFirehose::DeliveryStream`.

type CfnDeliveryStreamProps

type CfnDeliveryStreamProps struct {
	// The destination in Amazon OpenSearch Service.
	//
	// You can specify only one destination.
	AmazonopensearchserviceDestinationConfiguration interface{} `` /* 126-byte string literal not displayed */
	// Specifies the type and Amazon Resource Name (ARN) of the CMK to use for Server-Side Encryption (SSE).
	DeliveryStreamEncryptionConfigurationInput interface{} `field:"optional" json:"deliveryStreamEncryptionConfigurationInput" yaml:"deliveryStreamEncryptionConfigurationInput"`
	// The name of the delivery stream.
	DeliveryStreamName *string `field:"optional" json:"deliveryStreamName" yaml:"deliveryStreamName"`
	// The delivery stream type. This can be one of the following values:.
	//
	// - `DirectPut` : Provider applications access the delivery stream directly.
	// - `KinesisStreamAsSource` : The delivery stream uses a Kinesis data stream as a source.
	DeliveryStreamType *string `field:"optional" json:"deliveryStreamType" yaml:"deliveryStreamType"`
	// An Amazon ES destination for the delivery stream.
	//
	// Conditional. You must specify only one destination configuration.
	//
	// If you change the delivery stream destination from an Amazon ES destination to an Amazon S3 or Amazon Redshift destination, update requires [some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt) .
	ElasticsearchDestinationConfiguration interface{} `field:"optional" json:"elasticsearchDestinationConfiguration" yaml:"elasticsearchDestinationConfiguration"`
	// An Amazon S3 destination for the delivery stream.
	//
	// Conditional. You must specify only one destination configuration.
	//
	// If you change the delivery stream destination from an Amazon Extended S3 destination to an Amazon ES destination, update requires [some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt) .
	ExtendedS3DestinationConfiguration interface{} `field:"optional" json:"extendedS3DestinationConfiguration" yaml:"extendedS3DestinationConfiguration"`
	// Enables configuring Kinesis Firehose to deliver data to any HTTP endpoint destination.
	//
	// You can specify only one destination.
	HttpEndpointDestinationConfiguration interface{} `field:"optional" json:"httpEndpointDestinationConfiguration" yaml:"httpEndpointDestinationConfiguration"`
	// When a Kinesis stream is used as the source for the delivery stream, a [KinesisStreamSourceConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-kinesisstreamsourceconfiguration.html) containing the Kinesis stream ARN and the role ARN for the source stream.
	KinesisStreamSourceConfiguration interface{} `field:"optional" json:"kinesisStreamSourceConfiguration" yaml:"kinesisStreamSourceConfiguration"`
	// An Amazon Redshift destination for the delivery stream.
	//
	// Conditional. You must specify only one destination configuration.
	//
	// If you change the delivery stream destination from an Amazon Redshift destination to an Amazon ES destination, update requires [some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt) .
	RedshiftDestinationConfiguration interface{} `field:"optional" json:"redshiftDestinationConfiguration" yaml:"redshiftDestinationConfiguration"`
	// The `S3DestinationConfiguration` property type specifies an Amazon Simple Storage Service (Amazon S3) destination to which Amazon Kinesis Data Firehose (Kinesis Data Firehose) delivers data.
	//
	// Conditional. You must specify only one destination configuration.
	//
	// If you change the delivery stream destination from an Amazon S3 destination to an Amazon ES destination, update requires [some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt) .
	S3DestinationConfiguration interface{} `field:"optional" json:"s3DestinationConfiguration" yaml:"s3DestinationConfiguration"`
	// The configuration of a destination in Splunk for the delivery stream.
	SplunkDestinationConfiguration interface{} `field:"optional" json:"splunkDestinationConfiguration" yaml:"splunkDestinationConfiguration"`
	// A set of tags to assign to the delivery stream.
	//
	// A tag is a key-value pair that you can define and assign to AWS resources. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the delivery stream. For more information about tags, see [Using Cost Allocation Tags](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) in the AWS Billing and Cost Management User Guide.
	//
	// You can specify up to 50 tags when creating a delivery stream.
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnDeliveryStream`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDeliveryStreamProps := &cfnDeliveryStreamProps{
	amazonopensearchserviceDestinationConfiguration: &amazonopensearchserviceDestinationConfigurationProperty{
		indexName: jsii.String("indexName"),
		roleArn: jsii.String("roleArn"),
		s3Configuration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},

		// the properties below are optional
		bufferingHints: &amazonopensearchserviceBufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		clusterEndpoint: jsii.String("clusterEndpoint"),
		domainArn: jsii.String("domainArn"),
		indexRotationPeriod: jsii.String("indexRotationPeriod"),
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		retryOptions: &amazonopensearchserviceRetryOptionsProperty{
			durationInSeconds: jsii.Number(123),
		},
		s3BackupMode: jsii.String("s3BackupMode"),
		typeName: jsii.String("typeName"),
		vpcConfiguration: &vpcConfigurationProperty{
			roleArn: jsii.String("roleArn"),
			securityGroupIds: []*string{
				jsii.String("securityGroupIds"),
			},
			subnetIds: []*string{
				jsii.String("subnetIds"),
			},
		},
	},
	deliveryStreamEncryptionConfigurationInput: &deliveryStreamEncryptionConfigurationInputProperty{
		keyType: jsii.String("keyType"),

		// the properties below are optional
		keyArn: jsii.String("keyArn"),
	},
	deliveryStreamName: jsii.String("deliveryStreamName"),
	deliveryStreamType: jsii.String("deliveryStreamType"),
	elasticsearchDestinationConfiguration: &elasticsearchDestinationConfigurationProperty{
		indexName: jsii.String("indexName"),
		roleArn: jsii.String("roleArn"),
		s3Configuration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},

		// the properties below are optional
		bufferingHints: &elasticsearchBufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		clusterEndpoint: jsii.String("clusterEndpoint"),
		domainArn: jsii.String("domainArn"),
		indexRotationPeriod: jsii.String("indexRotationPeriod"),
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		retryOptions: &elasticsearchRetryOptionsProperty{
			durationInSeconds: jsii.Number(123),
		},
		s3BackupMode: jsii.String("s3BackupMode"),
		typeName: jsii.String("typeName"),
		vpcConfiguration: &vpcConfigurationProperty{
			roleArn: jsii.String("roleArn"),
			securityGroupIds: []*string{
				jsii.String("securityGroupIds"),
			},
			subnetIds: []*string{
				jsii.String("subnetIds"),
			},
		},
	},
	extendedS3DestinationConfiguration: &extendedS3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		dataFormatConversionConfiguration: &dataFormatConversionConfigurationProperty{
			enabled: jsii.Boolean(false),
			inputFormatConfiguration: &inputFormatConfigurationProperty{
				deserializer: &deserializerProperty{
					hiveJsonSerDe: &hiveJsonSerDeProperty{
						timestampFormats: []*string{
							jsii.String("timestampFormats"),
						},
					},
					openXJsonSerDe: &openXJsonSerDeProperty{
						caseInsensitive: jsii.Boolean(false),
						columnToJsonKeyMappings: map[string]*string{
							"columnToJsonKeyMappingsKey": jsii.String("columnToJsonKeyMappings"),
						},
						convertDotsInJsonKeysToUnderscores: jsii.Boolean(false),
					},
				},
			},
			outputFormatConfiguration: &outputFormatConfigurationProperty{
				serializer: &serializerProperty{
					orcSerDe: &orcSerDeProperty{
						blockSizeBytes: jsii.Number(123),
						bloomFilterColumns: []*string{
							jsii.String("bloomFilterColumns"),
						},
						bloomFilterFalsePositiveProbability: jsii.Number(123),
						compression: jsii.String("compression"),
						dictionaryKeyThreshold: jsii.Number(123),
						enablePadding: jsii.Boolean(false),
						formatVersion: jsii.String("formatVersion"),
						paddingTolerance: jsii.Number(123),
						rowIndexStride: jsii.Number(123),
						stripeSizeBytes: jsii.Number(123),
					},
					parquetSerDe: &parquetSerDeProperty{
						blockSizeBytes: jsii.Number(123),
						compression: jsii.String("compression"),
						enableDictionaryCompression: jsii.Boolean(false),
						maxPaddingBytes: jsii.Number(123),
						pageSizeBytes: jsii.Number(123),
						writerVersion: jsii.String("writerVersion"),
					},
				},
			},
			schemaConfiguration: &schemaConfigurationProperty{
				catalogId: jsii.String("catalogId"),
				databaseName: jsii.String("databaseName"),
				region: jsii.String("region"),
				roleArn: jsii.String("roleArn"),
				tableName: jsii.String("tableName"),
				versionId: jsii.String("versionId"),
			},
		},
		dynamicPartitioningConfiguration: &dynamicPartitioningConfigurationProperty{
			enabled: jsii.Boolean(false),
			retryOptions: &retryOptionsProperty{
				durationInSeconds: jsii.Number(123),
			},
		},
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		s3BackupConfiguration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},
		s3BackupMode: jsii.String("s3BackupMode"),
	},
	httpEndpointDestinationConfiguration: &httpEndpointDestinationConfigurationProperty{
		endpointConfiguration: &httpEndpointConfigurationProperty{
			url: jsii.String("url"),

			// the properties below are optional
			accessKey: jsii.String("accessKey"),
			name: jsii.String("name"),
		},
		s3Configuration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		requestConfiguration: &httpEndpointRequestConfigurationProperty{
			commonAttributes: []interface{}{
				&httpEndpointCommonAttributeProperty{
					attributeName: jsii.String("attributeName"),
					attributeValue: jsii.String("attributeValue"),
				},
			},
			contentEncoding: jsii.String("contentEncoding"),
		},
		retryOptions: &retryOptionsProperty{
			durationInSeconds: jsii.Number(123),
		},
		roleArn: jsii.String("roleArn"),
		s3BackupMode: jsii.String("s3BackupMode"),
	},
	kinesisStreamSourceConfiguration: &kinesisStreamSourceConfigurationProperty{
		kinesisStreamArn: jsii.String("kinesisStreamArn"),
		roleArn: jsii.String("roleArn"),
	},
	redshiftDestinationConfiguration: &redshiftDestinationConfigurationProperty{
		clusterJdbcurl: jsii.String("clusterJdbcurl"),
		copyCommand: &copyCommandProperty{
			dataTableName: jsii.String("dataTableName"),

			// the properties below are optional
			copyOptions: jsii.String("copyOptions"),
			dataTableColumns: jsii.String("dataTableColumns"),
		},
		password: jsii.String("password"),
		roleArn: jsii.String("roleArn"),
		s3Configuration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},
		username: jsii.String("username"),

		// the properties below are optional
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		retryOptions: &redshiftRetryOptionsProperty{
			durationInSeconds: jsii.Number(123),
		},
		s3BackupConfiguration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},
		s3BackupMode: jsii.String("s3BackupMode"),
	},
	s3DestinationConfiguration: &s3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
	},
	splunkDestinationConfiguration: &splunkDestinationConfigurationProperty{
		hecEndpoint: jsii.String("hecEndpoint"),
		hecEndpointType: jsii.String("hecEndpointType"),
		hecToken: jsii.String("hecToken"),
		s3Configuration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},

		// the properties below are optional
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		hecAcknowledgmentTimeoutInSeconds: jsii.Number(123),
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		retryOptions: &splunkRetryOptionsProperty{
			durationInSeconds: jsii.Number(123),
		},
		s3BackupMode: jsii.String("s3BackupMode"),
	},
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
}

type CfnDeliveryStream_AmazonopensearchserviceBufferingHintsProperty

type CfnDeliveryStream_AmazonopensearchserviceBufferingHintsProperty struct {
	// Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.
	//
	// The default value is 300 (5 minutes).
	IntervalInSeconds *float64 `field:"optional" json:"intervalInSeconds" yaml:"intervalInSeconds"`
	// Buffer incoming data to the specified size, in MBs, before delivering it to the destination.
	//
	// The default value is 5. We recommend setting this parameter to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec, the value should be 10 MB or higher.
	SizeInMBs *float64 `field:"optional" json:"sizeInMBs" yaml:"sizeInMBs"`
}

Describes the buffering to perform before delivering data to the Amazon OpenSearch Service destination.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

amazonopensearchserviceBufferingHintsProperty := &amazonopensearchserviceBufferingHintsProperty{
	intervalInSeconds: jsii.Number(123),
	sizeInMBs: jsii.Number(123),
}

type CfnDeliveryStream_AmazonopensearchserviceDestinationConfigurationProperty

type CfnDeliveryStream_AmazonopensearchserviceDestinationConfigurationProperty struct {
	// The Amazon OpenSearch Service index name.
	IndexName *string `field:"required" json:"indexName" yaml:"indexName"`
	// The Amazon Resource Name (ARN) of the IAM role to be assumed by Kinesis Data Firehose for calling the Amazon OpenSearch Service Configuration API and for indexing documents.
	RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
	// Describes the configuration of a destination in Amazon S3.
	S3Configuration interface{} `field:"required" json:"s3Configuration" yaml:"s3Configuration"`
	// The buffering options.
	//
	// If no value is specified, the default values for AmazonopensearchserviceBufferingHints are used.
	BufferingHints interface{} `field:"optional" json:"bufferingHints" yaml:"bufferingHints"`
	// Describes the Amazon CloudWatch logging options for your delivery stream.
	CloudWatchLoggingOptions interface{} `field:"optional" json:"cloudWatchLoggingOptions" yaml:"cloudWatchLoggingOptions"`
	// The endpoint to use when communicating with the cluster.
	//
	// Specify either this ClusterEndpoint or the DomainARN field.
	ClusterEndpoint *string `field:"optional" json:"clusterEndpoint" yaml:"clusterEndpoint"`
	// The ARN of the Amazon OpenSearch Service domain.
	DomainArn *string `field:"optional" json:"domainArn" yaml:"domainArn"`
	// The Amazon OpenSearch Service index rotation period.
	//
	// Index rotation appends a timestamp to the IndexName to facilitate the expiration of old data.
	IndexRotationPeriod *string `field:"optional" json:"indexRotationPeriod" yaml:"indexRotationPeriod"`
	// Describes a data processing configuration.
	ProcessingConfiguration interface{} `field:"optional" json:"processingConfiguration" yaml:"processingConfiguration"`
	// The retry behavior in case Kinesis Data Firehose is unable to deliver documents to Amazon OpenSearch Service.
	//
	// The default value is 300 (5 minutes).
	RetryOptions interface{} `field:"optional" json:"retryOptions" yaml:"retryOptions"`
	// Defines how documents should be delivered to Amazon S3.
	S3BackupMode *string `field:"optional" json:"s3BackupMode" yaml:"s3BackupMode"`
	// The Amazon OpenSearch Service type name.
	TypeName *string `field:"optional" json:"typeName" yaml:"typeName"`
	// The details of the VPC of the Amazon OpenSearch Service destination.
	VpcConfiguration interface{} `field:"optional" json:"vpcConfiguration" yaml:"vpcConfiguration"`
}

Describes the configuration of a destination in Amazon OpenSearch Service.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

amazonopensearchserviceDestinationConfigurationProperty := &amazonopensearchserviceDestinationConfigurationProperty{
	indexName: jsii.String("indexName"),
	roleArn: jsii.String("roleArn"),
	s3Configuration: &s3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
	},

	// the properties below are optional
	bufferingHints: &amazonopensearchserviceBufferingHintsProperty{
		intervalInSeconds: jsii.Number(123),
		sizeInMBs: jsii.Number(123),
	},
	cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
		enabled: jsii.Boolean(false),
		logGroupName: jsii.String("logGroupName"),
		logStreamName: jsii.String("logStreamName"),
	},
	clusterEndpoint: jsii.String("clusterEndpoint"),
	domainArn: jsii.String("domainArn"),
	indexRotationPeriod: jsii.String("indexRotationPeriod"),
	processingConfiguration: &processingConfigurationProperty{
		enabled: jsii.Boolean(false),
		processors: []interface{}{
			&processorProperty{
				type: jsii.String("type"),

				// the properties below are optional
				parameters: []interface{}{
					&processorParameterProperty{
						parameterName: jsii.String("parameterName"),
						parameterValue: jsii.String("parameterValue"),
					},
				},
			},
		},
	},
	retryOptions: &amazonopensearchserviceRetryOptionsProperty{
		durationInSeconds: jsii.Number(123),
	},
	s3BackupMode: jsii.String("s3BackupMode"),
	typeName: jsii.String("typeName"),
	vpcConfiguration: &vpcConfigurationProperty{
		roleArn: jsii.String("roleArn"),
		securityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
		subnetIds: []*string{
			jsii.String("subnetIds"),
		},
	},
}

type CfnDeliveryStream_AmazonopensearchserviceRetryOptionsProperty

type CfnDeliveryStream_AmazonopensearchserviceRetryOptionsProperty struct {
	// After an initial failure to deliver to Amazon OpenSearch Service, the total amount of time during which Kinesis Data Firehose retries delivery (including the first attempt).
	//
	// After this time has elapsed, the failed documents are written to Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 (zero) results in no retries.
	DurationInSeconds *float64 `field:"optional" json:"durationInSeconds" yaml:"durationInSeconds"`
}

Configures retry behavior in case Kinesis Data Firehose is unable to deliver documents to Amazon OpenSearch Service.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

amazonopensearchserviceRetryOptionsProperty := &amazonopensearchserviceRetryOptionsProperty{
	durationInSeconds: jsii.Number(123),
}

type CfnDeliveryStream_BufferingHintsProperty

type CfnDeliveryStream_BufferingHintsProperty struct {
	// The length of time, in seconds, that Kinesis Data Firehose buffers incoming data before delivering it to the destination.
	//
	// For valid values, see the `IntervalInSeconds` content for the [BufferingHints](https://docs.aws.amazon.com/firehose/latest/APIReference/API_BufferingHints.html) data type in the *Amazon Kinesis Data Firehose API Reference* .
	IntervalInSeconds *float64 `field:"optional" json:"intervalInSeconds" yaml:"intervalInSeconds"`
	// The size of the buffer, in MBs, that Kinesis Data Firehose uses for incoming data before delivering it to the destination.
	//
	// For valid values, see the `SizeInMBs` content for the [BufferingHints](https://docs.aws.amazon.com/firehose/latest/APIReference/API_BufferingHints.html) data type in the *Amazon Kinesis Data Firehose API Reference* .
	SizeInMBs *float64 `field:"optional" json:"sizeInMBs" yaml:"sizeInMBs"`
}

The `BufferingHints` property type specifies how Amazon Kinesis Data Firehose (Kinesis Data Firehose) buffers incoming data before delivering it to the destination.

The first buffer condition that is satisfied triggers Kinesis Data Firehose to deliver the data.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

bufferingHintsProperty := &bufferingHintsProperty{
	intervalInSeconds: jsii.Number(123),
	sizeInMBs: jsii.Number(123),
}

type CfnDeliveryStream_CloudWatchLoggingOptionsProperty

type CfnDeliveryStream_CloudWatchLoggingOptionsProperty struct {
	// Indicates whether CloudWatch Logs logging is enabled.
	Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"`
	// The name of the CloudWatch Logs log group that contains the log stream that Kinesis Data Firehose will use.
	//
	// Conditional. If you enable logging, you must specify this property.
	LogGroupName *string `field:"optional" json:"logGroupName" yaml:"logGroupName"`
	// The name of the CloudWatch Logs log stream that Kinesis Data Firehose uses to send logs about data delivery.
	//
	// Conditional. If you enable logging, you must specify this property.
	LogStreamName *string `field:"optional" json:"logStreamName" yaml:"logStreamName"`
}

The `CloudWatchLoggingOptions` property type specifies Amazon CloudWatch Logs (CloudWatch Logs) logging options that Amazon Kinesis Data Firehose (Kinesis Data Firehose) uses for the delivery stream.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cloudWatchLoggingOptionsProperty := &cloudWatchLoggingOptionsProperty{
	enabled: jsii.Boolean(false),
	logGroupName: jsii.String("logGroupName"),
	logStreamName: jsii.String("logStreamName"),
}

type CfnDeliveryStream_CopyCommandProperty

type CfnDeliveryStream_CopyCommandProperty struct {
	// The name of the target table.
	//
	// The table must already exist in the database.
	DataTableName *string `field:"required" json:"dataTableName" yaml:"dataTableName"`
	// Parameters to use with the Amazon Redshift `COPY` command.
	//
	// For examples, see the `CopyOptions` content for the [CopyCommand](https://docs.aws.amazon.com/firehose/latest/APIReference/API_CopyCommand.html) data type in the *Amazon Kinesis Data Firehose API Reference* .
	CopyOptions *string `field:"optional" json:"copyOptions" yaml:"copyOptions"`
	// A comma-separated list of column names.
	DataTableColumns *string `field:"optional" json:"dataTableColumns" yaml:"dataTableColumns"`
}

The `CopyCommand` property type configures the Amazon Redshift `COPY` command that Amazon Kinesis Data Firehose (Kinesis Data Firehose) uses to load data into an Amazon Redshift cluster from an Amazon S3 bucket.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

copyCommandProperty := &copyCommandProperty{
	dataTableName: jsii.String("dataTableName"),

	// the properties below are optional
	copyOptions: jsii.String("copyOptions"),
	dataTableColumns: jsii.String("dataTableColumns"),
}

type CfnDeliveryStream_DataFormatConversionConfigurationProperty

type CfnDeliveryStream_DataFormatConversionConfigurationProperty struct {
	// Defaults to `true` .
	//
	// Set it to `false` if you want to disable format conversion while preserving the configuration details.
	Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"`
	// Specifies the deserializer that you want Kinesis Data Firehose to use to convert the format of your data from JSON.
	//
	// This parameter is required if `Enabled` is set to true.
	InputFormatConfiguration interface{} `field:"optional" json:"inputFormatConfiguration" yaml:"inputFormatConfiguration"`
	// Specifies the serializer that you want Kinesis Data Firehose to use to convert the format of your data to the Parquet or ORC format.
	//
	// This parameter is required if `Enabled` is set to true.
	OutputFormatConfiguration interface{} `field:"optional" json:"outputFormatConfiguration" yaml:"outputFormatConfiguration"`
	// Specifies the AWS Glue Data Catalog table that contains the column information.
	//
	// This parameter is required if `Enabled` is set to true.
	SchemaConfiguration interface{} `field:"optional" json:"schemaConfiguration" yaml:"schemaConfiguration"`
}

Specifies that you want Kinesis Data Firehose to convert data from the JSON format to the Parquet or ORC format before writing it to Amazon S3.

Kinesis Data Firehose uses the serializer and deserializer that you specify, in addition to the column information from the AWS Glue table, to deserialize your input data from JSON and then serialize it to the Parquet or ORC format. For more information, see [Kinesis Data Firehose Record Format Conversion](https://docs.aws.amazon.com/firehose/latest/dev/record-format-conversion.html) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dataFormatConversionConfigurationProperty := &dataFormatConversionConfigurationProperty{
	enabled: jsii.Boolean(false),
	inputFormatConfiguration: &inputFormatConfigurationProperty{
		deserializer: &deserializerProperty{
			hiveJsonSerDe: &hiveJsonSerDeProperty{
				timestampFormats: []*string{
					jsii.String("timestampFormats"),
				},
			},
			openXJsonSerDe: &openXJsonSerDeProperty{
				caseInsensitive: jsii.Boolean(false),
				columnToJsonKeyMappings: map[string]*string{
					"columnToJsonKeyMappingsKey": jsii.String("columnToJsonKeyMappings"),
				},
				convertDotsInJsonKeysToUnderscores: jsii.Boolean(false),
			},
		},
	},
	outputFormatConfiguration: &outputFormatConfigurationProperty{
		serializer: &serializerProperty{
			orcSerDe: &orcSerDeProperty{
				blockSizeBytes: jsii.Number(123),
				bloomFilterColumns: []*string{
					jsii.String("bloomFilterColumns"),
				},
				bloomFilterFalsePositiveProbability: jsii.Number(123),
				compression: jsii.String("compression"),
				dictionaryKeyThreshold: jsii.Number(123),
				enablePadding: jsii.Boolean(false),
				formatVersion: jsii.String("formatVersion"),
				paddingTolerance: jsii.Number(123),
				rowIndexStride: jsii.Number(123),
				stripeSizeBytes: jsii.Number(123),
			},
			parquetSerDe: &parquetSerDeProperty{
				blockSizeBytes: jsii.Number(123),
				compression: jsii.String("compression"),
				enableDictionaryCompression: jsii.Boolean(false),
				maxPaddingBytes: jsii.Number(123),
				pageSizeBytes: jsii.Number(123),
				writerVersion: jsii.String("writerVersion"),
			},
		},
	},
	schemaConfiguration: &schemaConfigurationProperty{
		catalogId: jsii.String("catalogId"),
		databaseName: jsii.String("databaseName"),
		region: jsii.String("region"),
		roleArn: jsii.String("roleArn"),
		tableName: jsii.String("tableName"),
		versionId: jsii.String("versionId"),
	},
}

type CfnDeliveryStream_DeliveryStreamEncryptionConfigurationInputProperty

type CfnDeliveryStream_DeliveryStreamEncryptionConfigurationInputProperty struct {
	// Indicates the type of customer master key (CMK) to use for encryption.
	//
	// The default setting is `AWS_OWNED_CMK` . For more information about CMKs, see [Customer Master Keys (CMKs)](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys) .
	//
	// You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams.
	//
	// > To encrypt your delivery stream, use symmetric CMKs. Kinesis Data Firehose doesn't support asymmetric CMKs. For information about symmetric and asymmetric CMKs, see [About Symmetric and Asymmetric CMKs](https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html) in the AWS Key Management Service developer guide.
	KeyType *string `field:"required" json:"keyType" yaml:"keyType"`
	// If you set `KeyType` to `CUSTOMER_MANAGED_CMK` , you must specify the Amazon Resource Name (ARN) of the CMK.
	//
	// If you set `KeyType` to `AWS _OWNED_CMK` , Kinesis Data Firehose uses a service-account CMK.
	KeyArn *string `field:"optional" json:"keyArn" yaml:"keyArn"`
}

Specifies the type and Amazon Resource Name (ARN) of the CMK to use for Server-Side Encryption (SSE).

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

deliveryStreamEncryptionConfigurationInputProperty := &deliveryStreamEncryptionConfigurationInputProperty{
	keyType: jsii.String("keyType"),

	// the properties below are optional
	keyArn: jsii.String("keyArn"),
}

type CfnDeliveryStream_DeserializerProperty

type CfnDeliveryStream_DeserializerProperty struct {
	// The native Hive / HCatalog JsonSerDe.
	//
	// Used by Kinesis Data Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the OpenX SerDe.
	HiveJsonSerDe interface{} `field:"optional" json:"hiveJsonSerDe" yaml:"hiveJsonSerDe"`
	// The OpenX SerDe.
	//
	// Used by Kinesis Data Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the native Hive / HCatalog JsonSerDe.
	OpenXJsonSerDe interface{} `field:"optional" json:"openXJsonSerDe" yaml:"openXJsonSerDe"`
}

The deserializer you want Kinesis Data Firehose to use for converting the input data from JSON.

Kinesis Data Firehose then serializes the data to its final format using the `Serializer` . Kinesis Data Firehose supports two types of deserializers: the [Apache Hive JSON SerDe](https://docs.aws.amazon.com/https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-JSON) and the [OpenX JSON SerDe](https://docs.aws.amazon.com/https://github.com/rcongiu/Hive-JSON-Serde) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

deserializerProperty := &deserializerProperty{
	hiveJsonSerDe: &hiveJsonSerDeProperty{
		timestampFormats: []*string{
			jsii.String("timestampFormats"),
		},
	},
	openXJsonSerDe: &openXJsonSerDeProperty{
		caseInsensitive: jsii.Boolean(false),
		columnToJsonKeyMappings: map[string]*string{
			"columnToJsonKeyMappingsKey": jsii.String("columnToJsonKeyMappings"),
		},
		convertDotsInJsonKeysToUnderscores: jsii.Boolean(false),
	},
}

type CfnDeliveryStream_DynamicPartitioningConfigurationProperty

type CfnDeliveryStream_DynamicPartitioningConfigurationProperty struct {
	// Specifies whether dynamic partitioning is enabled for this Kinesis Data Firehose delivery stream.
	Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"`
	// Specifies the retry behavior in case Kinesis Data Firehose is unable to deliver data to an Amazon S3 prefix.
	RetryOptions interface{} `field:"optional" json:"retryOptions" yaml:"retryOptions"`
}

The `DynamicPartitioningConfiguration` property type specifies the configuration of the dynamic partitioning mechanism that creates targeted data sets from the streaming data by partitioning it based on partition keys.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dynamicPartitioningConfigurationProperty := &dynamicPartitioningConfigurationProperty{
	enabled: jsii.Boolean(false),
	retryOptions: &retryOptionsProperty{
		durationInSeconds: jsii.Number(123),
	},
}

type CfnDeliveryStream_ElasticsearchBufferingHintsProperty

type CfnDeliveryStream_ElasticsearchBufferingHintsProperty struct {
	// The length of time, in seconds, that Kinesis Data Firehose buffers incoming data before delivering it to the destination.
	//
	// For valid values, see the `IntervalInSeconds` content for the [BufferingHints](https://docs.aws.amazon.com/firehose/latest/APIReference/API_BufferingHints.html) data type in the *Amazon Kinesis Data Firehose API Reference* .
	IntervalInSeconds *float64 `field:"optional" json:"intervalInSeconds" yaml:"intervalInSeconds"`
	// The size of the buffer, in MBs, that Kinesis Data Firehose uses for incoming data before delivering it to the destination.
	//
	// For valid values, see the `SizeInMBs` content for the [BufferingHints](https://docs.aws.amazon.com/firehose/latest/APIReference/API_BufferingHints.html) data type in the *Amazon Kinesis Data Firehose API Reference* .
	SizeInMBs *float64 `field:"optional" json:"sizeInMBs" yaml:"sizeInMBs"`
}

The `ElasticsearchBufferingHints` property type specifies how Amazon Kinesis Data Firehose (Kinesis Data Firehose) buffers incoming data while delivering it to the destination.

The first buffer condition that is satisfied triggers Kinesis Data Firehose to deliver the data.

ElasticsearchBufferingHints is the property type for the `BufferingHints` property of the [Amazon Kinesis Data Firehose DeliveryStream ElasticsearchDestinationConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-elasticsearchdestinationconfiguration.html) property type.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

elasticsearchBufferingHintsProperty := &elasticsearchBufferingHintsProperty{
	intervalInSeconds: jsii.Number(123),
	sizeInMBs: jsii.Number(123),
}

type CfnDeliveryStream_ElasticsearchDestinationConfigurationProperty

type CfnDeliveryStream_ElasticsearchDestinationConfigurationProperty struct {
	// The name of the Elasticsearch index to which Kinesis Data Firehose adds data for indexing.
	IndexName *string `field:"required" json:"indexName" yaml:"indexName"`
	// The Amazon Resource Name (ARN) of the IAM role to be assumed by Kinesis Data Firehose for calling the Amazon ES Configuration API and for indexing documents.
	//
	// For more information, see [Controlling Access with Amazon Kinesis Data Firehose](https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html) .
	RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
	// The S3 bucket where Kinesis Data Firehose backs up incoming data.
	S3Configuration interface{} `field:"required" json:"s3Configuration" yaml:"s3Configuration"`
	// Configures how Kinesis Data Firehose buffers incoming data while delivering it to the Amazon ES domain.
	BufferingHints interface{} `field:"optional" json:"bufferingHints" yaml:"bufferingHints"`
	// The Amazon CloudWatch Logs logging options for the delivery stream.
	CloudWatchLoggingOptions interface{} `field:"optional" json:"cloudWatchLoggingOptions" yaml:"cloudWatchLoggingOptions"`
	// The endpoint to use when communicating with the cluster.
	//
	// Specify either this `ClusterEndpoint` or the `DomainARN` field.
	ClusterEndpoint *string `field:"optional" json:"clusterEndpoint" yaml:"clusterEndpoint"`
	// The ARN of the Amazon ES domain.
	//
	// The IAM role must have permissions for `DescribeElasticsearchDomain` , `DescribeElasticsearchDomains` , and `DescribeElasticsearchDomainConfig` after assuming the role specified in *RoleARN* .
	//
	// Specify either `ClusterEndpoint` or `DomainARN` .
	DomainArn *string `field:"optional" json:"domainArn" yaml:"domainArn"`
	// The frequency of Elasticsearch index rotation.
	//
	// If you enable index rotation, Kinesis Data Firehose appends a portion of the UTC arrival timestamp to the specified index name, and rotates the appended timestamp accordingly. For more information, see [Index Rotation for the Amazon ES Destination](https://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html#es-index-rotation) in the *Amazon Kinesis Data Firehose Developer Guide* .
	IndexRotationPeriod *string `field:"optional" json:"indexRotationPeriod" yaml:"indexRotationPeriod"`
	// The data processing configuration for the Kinesis Data Firehose delivery stream.
	ProcessingConfiguration interface{} `field:"optional" json:"processingConfiguration" yaml:"processingConfiguration"`
	// The retry behavior when Kinesis Data Firehose is unable to deliver data to Amazon ES.
	RetryOptions interface{} `field:"optional" json:"retryOptions" yaml:"retryOptions"`
	// The condition under which Kinesis Data Firehose delivers data to Amazon Simple Storage Service (Amazon S3).
	//
	// You can send Amazon S3 all documents (all data) or only the documents that Kinesis Data Firehose could not deliver to the Amazon ES destination. For more information and valid values, see the `S3BackupMode` content for the [ElasticsearchDestinationConfiguration](https://docs.aws.amazon.com/firehose/latest/APIReference/API_ElasticsearchDestinationConfiguration.html) data type in the *Amazon Kinesis Data Firehose API Reference* .
	S3BackupMode *string `field:"optional" json:"s3BackupMode" yaml:"s3BackupMode"`
	// The Elasticsearch type name that Amazon ES adds to documents when indexing data.
	TypeName *string `field:"optional" json:"typeName" yaml:"typeName"`
	// The details of the VPC of the Amazon ES destination.
	VpcConfiguration interface{} `field:"optional" json:"vpcConfiguration" yaml:"vpcConfiguration"`
}

The `ElasticsearchDestinationConfiguration` property type specifies an Amazon Elasticsearch Service (Amazon ES) domain that Amazon Kinesis Data Firehose (Kinesis Data Firehose) delivers data to.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

elasticsearchDestinationConfigurationProperty := &elasticsearchDestinationConfigurationProperty{
	indexName: jsii.String("indexName"),
	roleArn: jsii.String("roleArn"),
	s3Configuration: &s3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
	},

	// the properties below are optional
	bufferingHints: &elasticsearchBufferingHintsProperty{
		intervalInSeconds: jsii.Number(123),
		sizeInMBs: jsii.Number(123),
	},
	cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
		enabled: jsii.Boolean(false),
		logGroupName: jsii.String("logGroupName"),
		logStreamName: jsii.String("logStreamName"),
	},
	clusterEndpoint: jsii.String("clusterEndpoint"),
	domainArn: jsii.String("domainArn"),
	indexRotationPeriod: jsii.String("indexRotationPeriod"),
	processingConfiguration: &processingConfigurationProperty{
		enabled: jsii.Boolean(false),
		processors: []interface{}{
			&processorProperty{
				type: jsii.String("type"),

				// the properties below are optional
				parameters: []interface{}{
					&processorParameterProperty{
						parameterName: jsii.String("parameterName"),
						parameterValue: jsii.String("parameterValue"),
					},
				},
			},
		},
	},
	retryOptions: &elasticsearchRetryOptionsProperty{
		durationInSeconds: jsii.Number(123),
	},
	s3BackupMode: jsii.String("s3BackupMode"),
	typeName: jsii.String("typeName"),
	vpcConfiguration: &vpcConfigurationProperty{
		roleArn: jsii.String("roleArn"),
		securityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
		subnetIds: []*string{
			jsii.String("subnetIds"),
		},
	},
}

type CfnDeliveryStream_ElasticsearchRetryOptionsProperty

type CfnDeliveryStream_ElasticsearchRetryOptionsProperty struct {
	// After an initial failure to deliver to Amazon ES, the total amount of time during which Kinesis Data Firehose re-attempts delivery (including the first attempt).
	//
	// If Kinesis Data Firehose can't deliver the data within the specified time, it writes the data to the backup S3 bucket. For valid values, see the `DurationInSeconds` content for the [ElasticsearchRetryOptions](https://docs.aws.amazon.com/firehose/latest/APIReference/API_ElasticsearchRetryOptions.html) data type in the *Amazon Kinesis Data Firehose API Reference* .
	DurationInSeconds *float64 `field:"optional" json:"durationInSeconds" yaml:"durationInSeconds"`
}

The `ElasticsearchRetryOptions` property type configures the retry behavior for when Amazon Kinesis Data Firehose (Kinesis Data Firehose) can't deliver data to Amazon Elasticsearch Service (Amazon ES).

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

elasticsearchRetryOptionsProperty := &elasticsearchRetryOptionsProperty{
	durationInSeconds: jsii.Number(123),
}

type CfnDeliveryStream_EncryptionConfigurationProperty

type CfnDeliveryStream_EncryptionConfigurationProperty struct {
	// The AWS Key Management Service ( AWS KMS) encryption key that Amazon S3 uses to encrypt your data.
	KmsEncryptionConfig interface{} `field:"optional" json:"kmsEncryptionConfig" yaml:"kmsEncryptionConfig"`
	// Disables encryption.
	//
	// For valid values, see the `NoEncryptionConfig` content for the [EncryptionConfiguration](https://docs.aws.amazon.com/firehose/latest/APIReference/API_EncryptionConfiguration.html) data type in the *Amazon Kinesis Data Firehose API Reference* .
	NoEncryptionConfig *string `field:"optional" json:"noEncryptionConfig" yaml:"noEncryptionConfig"`
}

The `EncryptionConfiguration` property type specifies the encryption settings that Amazon Kinesis Data Firehose (Kinesis Data Firehose) uses when delivering data to Amazon Simple Storage Service (Amazon S3).

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

encryptionConfigurationProperty := &encryptionConfigurationProperty{
	kmsEncryptionConfig: &kMSEncryptionConfigProperty{
		awskmsKeyArn: jsii.String("awskmsKeyArn"),
	},
	noEncryptionConfig: jsii.String("noEncryptionConfig"),
}

type CfnDeliveryStream_ExtendedS3DestinationConfigurationProperty

type CfnDeliveryStream_ExtendedS3DestinationConfigurationProperty struct {
	// The Amazon Resource Name (ARN) of the Amazon S3 bucket.
	//
	// For constraints, see [ExtendedS3DestinationConfiguration](https://docs.aws.amazon.com/firehose/latest/APIReference/API_ExtendedS3DestinationConfiguration.html) in the *Amazon Kinesis Data Firehose API Reference* .
	BucketArn *string `field:"required" json:"bucketArn" yaml:"bucketArn"`
	// The Amazon Resource Name (ARN) of the AWS credentials.
	//
	// For constraints, see [ExtendedS3DestinationConfiguration](https://docs.aws.amazon.com/firehose/latest/APIReference/API_ExtendedS3DestinationConfiguration.html) in the *Amazon Kinesis Data Firehose API Reference* .
	RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
	// The buffering option.
	BufferingHints interface{} `field:"optional" json:"bufferingHints" yaml:"bufferingHints"`
	// The Amazon CloudWatch logging options for your delivery stream.
	CloudWatchLoggingOptions interface{} `field:"optional" json:"cloudWatchLoggingOptions" yaml:"cloudWatchLoggingOptions"`
	// The compression format.
	//
	// If no value is specified, the default is `UNCOMPRESSED` .
	CompressionFormat *string `field:"optional" json:"compressionFormat" yaml:"compressionFormat"`
	// The serializer, deserializer, and schema for converting data from the JSON format to the Parquet or ORC format before writing it to Amazon S3.
	DataFormatConversionConfiguration interface{} `field:"optional" json:"dataFormatConversionConfiguration" yaml:"dataFormatConversionConfiguration"`
	// The configuration of the dynamic partitioning mechanism that creates targeted data sets from the streaming data by partitioning it based on partition keys.
	DynamicPartitioningConfiguration interface{} `field:"optional" json:"dynamicPartitioningConfiguration" yaml:"dynamicPartitioningConfiguration"`
	// The encryption configuration for the Kinesis Data Firehose delivery stream.
	//
	// The default value is `NoEncryption` .
	EncryptionConfiguration interface{} `field:"optional" json:"encryptionConfiguration" yaml:"encryptionConfiguration"`
	// A prefix that Kinesis Data Firehose evaluates and adds to failed records before writing them to S3.
	//
	// This prefix appears immediately following the bucket name. For information about how to specify this prefix, see [Custom Prefixes for Amazon S3 Objects](https://docs.aws.amazon.com/firehose/latest/dev/s3-prefixes.html) .
	ErrorOutputPrefix *string `field:"optional" json:"errorOutputPrefix" yaml:"errorOutputPrefix"`
	// The `YYYY/MM/DD/HH` time format prefix is automatically used for delivered Amazon S3 files.
	//
	// For more information, see [ExtendedS3DestinationConfiguration](https://docs.aws.amazon.com/firehose/latest/APIReference/API_ExtendedS3DestinationConfiguration.html) in the *Amazon Kinesis Data Firehose API Reference* .
	Prefix *string `field:"optional" json:"prefix" yaml:"prefix"`
	// The data processing configuration for the Kinesis Data Firehose delivery stream.
	ProcessingConfiguration interface{} `field:"optional" json:"processingConfiguration" yaml:"processingConfiguration"`
	// The configuration for backup in Amazon S3.
	S3BackupConfiguration interface{} `field:"optional" json:"s3BackupConfiguration" yaml:"s3BackupConfiguration"`
	// The Amazon S3 backup mode.
	//
	// After you create a delivery stream, you can update it to enable Amazon S3 backup if it is disabled. If backup is enabled, you can't update the delivery stream to disable it.
	S3BackupMode *string `field:"optional" json:"s3BackupMode" yaml:"s3BackupMode"`
}

The `ExtendedS3DestinationConfiguration` property type configures an Amazon S3 destination for an Amazon Kinesis Data Firehose delivery stream.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

extendedS3DestinationConfigurationProperty := &extendedS3DestinationConfigurationProperty{
	bucketArn: jsii.String("bucketArn"),
	roleArn: jsii.String("roleArn"),

	// the properties below are optional
	bufferingHints: &bufferingHintsProperty{
		intervalInSeconds: jsii.Number(123),
		sizeInMBs: jsii.Number(123),
	},
	cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
		enabled: jsii.Boolean(false),
		logGroupName: jsii.String("logGroupName"),
		logStreamName: jsii.String("logStreamName"),
	},
	compressionFormat: jsii.String("compressionFormat"),
	dataFormatConversionConfiguration: &dataFormatConversionConfigurationProperty{
		enabled: jsii.Boolean(false),
		inputFormatConfiguration: &inputFormatConfigurationProperty{
			deserializer: &deserializerProperty{
				hiveJsonSerDe: &hiveJsonSerDeProperty{
					timestampFormats: []*string{
						jsii.String("timestampFormats"),
					},
				},
				openXJsonSerDe: &openXJsonSerDeProperty{
					caseInsensitive: jsii.Boolean(false),
					columnToJsonKeyMappings: map[string]*string{
						"columnToJsonKeyMappingsKey": jsii.String("columnToJsonKeyMappings"),
					},
					convertDotsInJsonKeysToUnderscores: jsii.Boolean(false),
				},
			},
		},
		outputFormatConfiguration: &outputFormatConfigurationProperty{
			serializer: &serializerProperty{
				orcSerDe: &orcSerDeProperty{
					blockSizeBytes: jsii.Number(123),
					bloomFilterColumns: []*string{
						jsii.String("bloomFilterColumns"),
					},
					bloomFilterFalsePositiveProbability: jsii.Number(123),
					compression: jsii.String("compression"),
					dictionaryKeyThreshold: jsii.Number(123),
					enablePadding: jsii.Boolean(false),
					formatVersion: jsii.String("formatVersion"),
					paddingTolerance: jsii.Number(123),
					rowIndexStride: jsii.Number(123),
					stripeSizeBytes: jsii.Number(123),
				},
				parquetSerDe: &parquetSerDeProperty{
					blockSizeBytes: jsii.Number(123),
					compression: jsii.String("compression"),
					enableDictionaryCompression: jsii.Boolean(false),
					maxPaddingBytes: jsii.Number(123),
					pageSizeBytes: jsii.Number(123),
					writerVersion: jsii.String("writerVersion"),
				},
			},
		},
		schemaConfiguration: &schemaConfigurationProperty{
			catalogId: jsii.String("catalogId"),
			databaseName: jsii.String("databaseName"),
			region: jsii.String("region"),
			roleArn: jsii.String("roleArn"),
			tableName: jsii.String("tableName"),
			versionId: jsii.String("versionId"),
		},
	},
	dynamicPartitioningConfiguration: &dynamicPartitioningConfigurationProperty{
		enabled: jsii.Boolean(false),
		retryOptions: &retryOptionsProperty{
			durationInSeconds: jsii.Number(123),
		},
	},
	encryptionConfiguration: &encryptionConfigurationProperty{
		kmsEncryptionConfig: &kMSEncryptionConfigProperty{
			awskmsKeyArn: jsii.String("awskmsKeyArn"),
		},
		noEncryptionConfig: jsii.String("noEncryptionConfig"),
	},
	errorOutputPrefix: jsii.String("errorOutputPrefix"),
	prefix: jsii.String("prefix"),
	processingConfiguration: &processingConfigurationProperty{
		enabled: jsii.Boolean(false),
		processors: []interface{}{
			&processorProperty{
				type: jsii.String("type"),

				// the properties below are optional
				parameters: []interface{}{
					&processorParameterProperty{
						parameterName: jsii.String("parameterName"),
						parameterValue: jsii.String("parameterValue"),
					},
				},
			},
		},
	},
	s3BackupConfiguration: &s3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
	},
	s3BackupMode: jsii.String("s3BackupMode"),
}

type CfnDeliveryStream_HiveJsonSerDeProperty

type CfnDeliveryStream_HiveJsonSerDeProperty struct {
	// Indicates how you want Kinesis Data Firehose to parse the date and timestamps that may be present in your input data JSON.
	//
	// To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more information, see [Class DateTimeFormat](https://docs.aws.amazon.com/https://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html) . You can also use the special value `millis` to parse timestamps in epoch milliseconds. If you don't specify a format, Kinesis Data Firehose uses `java.sql.Timestamp::valueOf` by default.
	TimestampFormats *[]*string `field:"optional" json:"timestampFormats" yaml:"timestampFormats"`
}

The native Hive / HCatalog JsonSerDe.

Used by Kinesis Data Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the OpenX SerDe.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

hiveJsonSerDeProperty := &hiveJsonSerDeProperty{
	timestampFormats: []*string{
		jsii.String("timestampFormats"),
	},
}

type CfnDeliveryStream_HttpEndpointCommonAttributeProperty

type CfnDeliveryStream_HttpEndpointCommonAttributeProperty struct {
	// The name of the HTTP endpoint common attribute.
	AttributeName *string `field:"required" json:"attributeName" yaml:"attributeName"`
	// The value of the HTTP endpoint common attribute.
	AttributeValue *string `field:"required" json:"attributeValue" yaml:"attributeValue"`
}

Describes the metadata that's delivered to the specified HTTP endpoint destination.

Kinesis Firehose supports any custom HTTP endpoint or HTTP endpoints owned by supported third-party service providers, including Datadog, MongoDB, and New Relic.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

httpEndpointCommonAttributeProperty := &httpEndpointCommonAttributeProperty{
	attributeName: jsii.String("attributeName"),
	attributeValue: jsii.String("attributeValue"),
}

type CfnDeliveryStream_HttpEndpointConfigurationProperty

type CfnDeliveryStream_HttpEndpointConfigurationProperty struct {
	// The URL of the HTTP endpoint selected as the destination.
	Url *string `field:"required" json:"url" yaml:"url"`
	// The access key required for Kinesis Firehose to authenticate with the HTTP endpoint selected as the destination.
	AccessKey *string `field:"optional" json:"accessKey" yaml:"accessKey"`
	// The name of the HTTP endpoint selected as the destination.
	Name *string `field:"optional" json:"name" yaml:"name"`
}

Describes the configuration of the HTTP endpoint to which Kinesis Firehose delivers data.

Kinesis Firehose supports any custom HTTP endpoint or HTTP endpoints owned by supported third-party service providers, including Datadog, MongoDB, and New Relic.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

httpEndpointConfigurationProperty := &httpEndpointConfigurationProperty{
	url: jsii.String("url"),

	// the properties below are optional
	accessKey: jsii.String("accessKey"),
	name: jsii.String("name"),
}

type CfnDeliveryStream_HttpEndpointDestinationConfigurationProperty

type CfnDeliveryStream_HttpEndpointDestinationConfigurationProperty struct {
	// The configuration of the HTTP endpoint selected as the destination.
	EndpointConfiguration interface{} `field:"required" json:"endpointConfiguration" yaml:"endpointConfiguration"`
	// Describes the configuration of a destination in Amazon S3.
	S3Configuration interface{} `field:"required" json:"s3Configuration" yaml:"s3Configuration"`
	// The buffering options that can be used before data is delivered to the specified destination.
	//
	// Kinesis Data Firehose treats these options as hints, and it might choose to use more optimal values. The SizeInMBs and IntervalInSeconds parameters are optional. However, if you specify a value for one of them, you must also provide a value for the other.
	BufferingHints interface{} `field:"optional" json:"bufferingHints" yaml:"bufferingHints"`
	// Describes the Amazon CloudWatch logging options for your delivery stream.
	CloudWatchLoggingOptions interface{} `field:"optional" json:"cloudWatchLoggingOptions" yaml:"cloudWatchLoggingOptions"`
	// Describes the data processing configuration.
	ProcessingConfiguration interface{} `field:"optional" json:"processingConfiguration" yaml:"processingConfiguration"`
	// The configuration of the request sent to the HTTP endpoint specified as the destination.
	RequestConfiguration interface{} `field:"optional" json:"requestConfiguration" yaml:"requestConfiguration"`
	// Describes the retry behavior in case Kinesis Data Firehose is unable to deliver data to the specified HTTP endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified HTTP endpoint destination.
	RetryOptions interface{} `field:"optional" json:"retryOptions" yaml:"retryOptions"`
	// Kinesis Data Firehose uses this IAM role for all the permissions that the delivery stream needs.
	RoleArn *string `field:"optional" json:"roleArn" yaml:"roleArn"`
	// Describes the S3 bucket backup options for the data that Kinesis Data Firehose delivers to the HTTP endpoint destination.
	//
	// You can back up all documents (AllData) or only the documents that Kinesis Data Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly).
	S3BackupMode *string `field:"optional" json:"s3BackupMode" yaml:"s3BackupMode"`
}

Describes the configuration of the HTTP endpoint destination.

Kinesis Firehose supports any custom HTTP endpoint or HTTP endpoints owned by supported third-party service providers, including Datadog, MongoDB, and New Relic.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

httpEndpointDestinationConfigurationProperty := &httpEndpointDestinationConfigurationProperty{
	endpointConfiguration: &httpEndpointConfigurationProperty{
		url: jsii.String("url"),

		// the properties below are optional
		accessKey: jsii.String("accessKey"),
		name: jsii.String("name"),
	},
	s3Configuration: &s3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
	},

	// the properties below are optional
	bufferingHints: &bufferingHintsProperty{
		intervalInSeconds: jsii.Number(123),
		sizeInMBs: jsii.Number(123),
	},
	cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
		enabled: jsii.Boolean(false),
		logGroupName: jsii.String("logGroupName"),
		logStreamName: jsii.String("logStreamName"),
	},
	processingConfiguration: &processingConfigurationProperty{
		enabled: jsii.Boolean(false),
		processors: []interface{}{
			&processorProperty{
				type: jsii.String("type"),

				// the properties below are optional
				parameters: []interface{}{
					&processorParameterProperty{
						parameterName: jsii.String("parameterName"),
						parameterValue: jsii.String("parameterValue"),
					},
				},
			},
		},
	},
	requestConfiguration: &httpEndpointRequestConfigurationProperty{
		commonAttributes: []interface{}{
			&httpEndpointCommonAttributeProperty{
				attributeName: jsii.String("attributeName"),
				attributeValue: jsii.String("attributeValue"),
			},
		},
		contentEncoding: jsii.String("contentEncoding"),
	},
	retryOptions: &retryOptionsProperty{
		durationInSeconds: jsii.Number(123),
	},
	roleArn: jsii.String("roleArn"),
	s3BackupMode: jsii.String("s3BackupMode"),
}

type CfnDeliveryStream_HttpEndpointRequestConfigurationProperty

type CfnDeliveryStream_HttpEndpointRequestConfigurationProperty struct {
	// Describes the metadata sent to the HTTP endpoint destination.
	CommonAttributes interface{} `field:"optional" json:"commonAttributes" yaml:"commonAttributes"`
	// Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to the destination.
	//
	// For more information, see Content-Encoding in MDN Web Docs, the official Mozilla documentation.
	ContentEncoding *string `field:"optional" json:"contentEncoding" yaml:"contentEncoding"`
}

The configuration of the HTTP endpoint request.

Kinesis Firehose supports any custom HTTP endpoint or HTTP endpoints owned by supported third-party service providers, including Datadog, MongoDB, and New Relic.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

httpEndpointRequestConfigurationProperty := &httpEndpointRequestConfigurationProperty{
	commonAttributes: []interface{}{
		&httpEndpointCommonAttributeProperty{
			attributeName: jsii.String("attributeName"),
			attributeValue: jsii.String("attributeValue"),
		},
	},
	contentEncoding: jsii.String("contentEncoding"),
}

type CfnDeliveryStream_InputFormatConfigurationProperty

type CfnDeliveryStream_InputFormatConfigurationProperty struct {
	// Specifies which deserializer to use.
	//
	// You can choose either the Apache Hive JSON SerDe or the OpenX JSON SerDe. If both are non-null, the server rejects the request.
	Deserializer interface{} `field:"optional" json:"deserializer" yaml:"deserializer"`
}

Specifies the deserializer you want to use to convert the format of the input data.

This parameter is required if `Enabled` is set to true.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

inputFormatConfigurationProperty := &inputFormatConfigurationProperty{
	deserializer: &deserializerProperty{
		hiveJsonSerDe: &hiveJsonSerDeProperty{
			timestampFormats: []*string{
				jsii.String("timestampFormats"),
			},
		},
		openXJsonSerDe: &openXJsonSerDeProperty{
			caseInsensitive: jsii.Boolean(false),
			columnToJsonKeyMappings: map[string]*string{
				"columnToJsonKeyMappingsKey": jsii.String("columnToJsonKeyMappings"),
			},
			convertDotsInJsonKeysToUnderscores: jsii.Boolean(false),
		},
	},
}

type CfnDeliveryStream_KMSEncryptionConfigProperty

type CfnDeliveryStream_KMSEncryptionConfigProperty struct {
	// The Amazon Resource Name (ARN) of the AWS KMS encryption key that Amazon S3 uses to encrypt data delivered by the Kinesis Data Firehose stream.
	//
	// The key must belong to the same region as the destination S3 bucket.
	AwskmsKeyArn *string `field:"required" json:"awskmsKeyArn" yaml:"awskmsKeyArn"`
}

The `KMSEncryptionConfig` property type specifies the AWS Key Management Service ( AWS KMS) encryption key that Amazon Simple Storage Service (Amazon S3) uses to encrypt data delivered by the Amazon Kinesis Data Firehose (Kinesis Data Firehose) stream.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

kMSEncryptionConfigProperty := &kMSEncryptionConfigProperty{
	awskmsKeyArn: jsii.String("awskmsKeyArn"),
}

type CfnDeliveryStream_KinesisStreamSourceConfigurationProperty

type CfnDeliveryStream_KinesisStreamSourceConfigurationProperty struct {
	// The ARN of the source Kinesis data stream.
	KinesisStreamArn *string `field:"required" json:"kinesisStreamArn" yaml:"kinesisStreamArn"`
	// The ARN of the role that provides access to the source Kinesis data stream.
	RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
}

The `KinesisStreamSourceConfiguration` property type specifies the stream and role Amazon Resource Names (ARNs) for a Kinesis stream used as the source for a delivery stream.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

kinesisStreamSourceConfigurationProperty := &kinesisStreamSourceConfigurationProperty{
	kinesisStreamArn: jsii.String("kinesisStreamArn"),
	roleArn: jsii.String("roleArn"),
}

type CfnDeliveryStream_OpenXJsonSerDeProperty

type CfnDeliveryStream_OpenXJsonSerDeProperty struct {
	// When set to `true` , which is the default, Kinesis Data Firehose converts JSON keys to lowercase before deserializing them.
	CaseInsensitive interface{} `field:"optional" json:"caseInsensitive" yaml:"caseInsensitive"`
	// Maps column names to JSON keys that aren't identical to the column names.
	//
	// This is useful when the JSON contains keys that are Hive keywords. For example, `timestamp` is a Hive keyword. If you have a JSON key named `timestamp` , set this parameter to `{"ts": "timestamp"}` to map this key to a column named `ts` .
	ColumnToJsonKeyMappings interface{} `field:"optional" json:"columnToJsonKeyMappings" yaml:"columnToJsonKeyMappings"`
	// When set to `true` , specifies that the names of the keys include dots and that you want Kinesis Data Firehose to replace them with underscores.
	//
	// This is useful because Apache Hive does not allow dots in column names. For example, if the JSON contains a key whose name is "a.b", you can define the column name to be "a_b" when using this option.
	//
	// The default is `false` .
	ConvertDotsInJsonKeysToUnderscores interface{} `field:"optional" json:"convertDotsInJsonKeysToUnderscores" yaml:"convertDotsInJsonKeysToUnderscores"`
}

The OpenX SerDe.

Used by Kinesis Data Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the native Hive / HCatalog JsonSerDe.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

openXJsonSerDeProperty := &openXJsonSerDeProperty{
	caseInsensitive: jsii.Boolean(false),
	columnToJsonKeyMappings: map[string]*string{
		"columnToJsonKeyMappingsKey": jsii.String("columnToJsonKeyMappings"),
	},
	convertDotsInJsonKeysToUnderscores: jsii.Boolean(false),
}

type CfnDeliveryStream_OrcSerDeProperty

type CfnDeliveryStream_OrcSerDeProperty struct {
	// The Hadoop Distributed File System (HDFS) block size.
	//
	// This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations.
	BlockSizeBytes *float64 `field:"optional" json:"blockSizeBytes" yaml:"blockSizeBytes"`
	// The column names for which you want Kinesis Data Firehose to create bloom filters.
	//
	// The default is `null` .
	BloomFilterColumns *[]*string `field:"optional" json:"bloomFilterColumns" yaml:"bloomFilterColumns"`
	// The Bloom filter false positive probability (FPP).
	//
	// The lower the FPP, the bigger the Bloom filter. The default value is 0.05, the minimum is 0, and the maximum is 1.
	BloomFilterFalsePositiveProbability *float64 `field:"optional" json:"bloomFilterFalsePositiveProbability" yaml:"bloomFilterFalsePositiveProbability"`
	// The compression code to use over data blocks.
	//
	// The default is `SNAPPY` .
	Compression *string `field:"optional" json:"compression" yaml:"compression"`
	// Represents the fraction of the total number of non-null rows.
	//
	// To turn off dictionary encoding, set this fraction to a number that is less than the number of distinct keys in a dictionary. To always use dictionary encoding, set this threshold to 1.
	DictionaryKeyThreshold *float64 `field:"optional" json:"dictionaryKeyThreshold" yaml:"dictionaryKeyThreshold"`
	// Set this to `true` to indicate that you want stripes to be padded to the HDFS block boundaries.
	//
	// This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is `false` .
	EnablePadding interface{} `field:"optional" json:"enablePadding" yaml:"enablePadding"`
	// The version of the file to write.
	//
	// The possible values are `V0_11` and `V0_12` . The default is `V0_12` .
	FormatVersion *string `field:"optional" json:"formatVersion" yaml:"formatVersion"`
	// A number between 0 and 1 that defines the tolerance for block padding as a decimal fraction of stripe size.
	//
	// The default value is 0.05, which means 5 percent of stripe size.
	//
	// For the default values of 64 MiB ORC stripes and 256 MiB HDFS blocks, the default block padding tolerance of 5 percent reserves a maximum of 3.2 MiB for padding within the 256 MiB block. In such a case, if the available size within the block is more than 3.2 MiB, a new, smaller stripe is inserted to fit within that space. This ensures that no stripe crosses block boundaries and causes remote reads within a node-local task.
	//
	// Kinesis Data Firehose ignores this parameter when `EnablePadding` is `false` .
	PaddingTolerance *float64 `field:"optional" json:"paddingTolerance" yaml:"paddingTolerance"`
	// The number of rows between index entries.
	//
	// The default is 10,000 and the minimum is 1,000.
	RowIndexStride *float64 `field:"optional" json:"rowIndexStride" yaml:"rowIndexStride"`
	// The number of bytes in each stripe.
	//
	// The default is 64 MiB and the minimum is 8 MiB.
	StripeSizeBytes *float64 `field:"optional" json:"stripeSizeBytes" yaml:"stripeSizeBytes"`
}

A serializer to use for converting data to the ORC format before storing it in Amazon S3.

For more information, see [Apache ORC](https://docs.aws.amazon.com/https://orc.apache.org/docs/) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

orcSerDeProperty := &orcSerDeProperty{
	blockSizeBytes: jsii.Number(123),
	bloomFilterColumns: []*string{
		jsii.String("bloomFilterColumns"),
	},
	bloomFilterFalsePositiveProbability: jsii.Number(123),
	compression: jsii.String("compression"),
	dictionaryKeyThreshold: jsii.Number(123),
	enablePadding: jsii.Boolean(false),
	formatVersion: jsii.String("formatVersion"),
	paddingTolerance: jsii.Number(123),
	rowIndexStride: jsii.Number(123),
	stripeSizeBytes: jsii.Number(123),
}

type CfnDeliveryStream_OutputFormatConfigurationProperty

type CfnDeliveryStream_OutputFormatConfigurationProperty struct {
	// Specifies which serializer to use.
	//
	// You can choose either the ORC SerDe or the Parquet SerDe. If both are non-null, the server rejects the request.
	Serializer interface{} `field:"optional" json:"serializer" yaml:"serializer"`
}

Specifies the serializer that you want Kinesis Data Firehose to use to convert the format of your data before it writes it to Amazon S3.

This parameter is required if `Enabled` is set to true.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

outputFormatConfigurationProperty := &outputFormatConfigurationProperty{
	serializer: &serializerProperty{
		orcSerDe: &orcSerDeProperty{
			blockSizeBytes: jsii.Number(123),
			bloomFilterColumns: []*string{
				jsii.String("bloomFilterColumns"),
			},
			bloomFilterFalsePositiveProbability: jsii.Number(123),
			compression: jsii.String("compression"),
			dictionaryKeyThreshold: jsii.Number(123),
			enablePadding: jsii.Boolean(false),
			formatVersion: jsii.String("formatVersion"),
			paddingTolerance: jsii.Number(123),
			rowIndexStride: jsii.Number(123),
			stripeSizeBytes: jsii.Number(123),
		},
		parquetSerDe: &parquetSerDeProperty{
			blockSizeBytes: jsii.Number(123),
			compression: jsii.String("compression"),
			enableDictionaryCompression: jsii.Boolean(false),
			maxPaddingBytes: jsii.Number(123),
			pageSizeBytes: jsii.Number(123),
			writerVersion: jsii.String("writerVersion"),
		},
	},
}

type CfnDeliveryStream_ParquetSerDeProperty

type CfnDeliveryStream_ParquetSerDeProperty struct {
	// The Hadoop Distributed File System (HDFS) block size.
	//
	// This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations.
	BlockSizeBytes *float64 `field:"optional" json:"blockSizeBytes" yaml:"blockSizeBytes"`
	// The compression code to use over data blocks.
	//
	// The possible values are `UNCOMPRESSED` , `SNAPPY` , and `GZIP` , with the default being `SNAPPY` . Use `SNAPPY` for higher decompression speed. Use `GZIP` if the compression ratio is more important than speed.
	Compression *string `field:"optional" json:"compression" yaml:"compression"`
	// Indicates whether to enable dictionary compression.
	EnableDictionaryCompression interface{} `field:"optional" json:"enableDictionaryCompression" yaml:"enableDictionaryCompression"`
	// The maximum amount of padding to apply.
	//
	// This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 0.
	MaxPaddingBytes *float64 `field:"optional" json:"maxPaddingBytes" yaml:"maxPaddingBytes"`
	// The Parquet page size.
	//
	// Column chunks are divided into pages. A page is conceptually an indivisible unit (in terms of compression and encoding). The minimum value is 64 KiB and the default is 1 MiB.
	PageSizeBytes *float64 `field:"optional" json:"pageSizeBytes" yaml:"pageSizeBytes"`
	// Indicates the version of row format to output.
	//
	// The possible values are `V1` and `V2` . The default is `V1` .
	WriterVersion *string `field:"optional" json:"writerVersion" yaml:"writerVersion"`
}

A serializer to use for converting data to the Parquet format before storing it in Amazon S3.

For more information, see [Apache Parquet](https://docs.aws.amazon.com/https://parquet.apache.org/documentation/latest/) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

parquetSerDeProperty := &parquetSerDeProperty{
	blockSizeBytes: jsii.Number(123),
	compression: jsii.String("compression"),
	enableDictionaryCompression: jsii.Boolean(false),
	maxPaddingBytes: jsii.Number(123),
	pageSizeBytes: jsii.Number(123),
	writerVersion: jsii.String("writerVersion"),
}

type CfnDeliveryStream_ProcessingConfigurationProperty

type CfnDeliveryStream_ProcessingConfigurationProperty struct {
	// Indicates whether data processing is enabled (true) or disabled (false).
	Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"`
	// The data processors.
	Processors interface{} `field:"optional" json:"processors" yaml:"processors"`
}

The `ProcessingConfiguration` property configures data processing for an Amazon Kinesis Data Firehose delivery stream.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

processingConfigurationProperty := &processingConfigurationProperty{
	enabled: jsii.Boolean(false),
	processors: []interface{}{
		&processorProperty{
			type: jsii.String("type"),

			// the properties below are optional
			parameters: []interface{}{
				&processorParameterProperty{
					parameterName: jsii.String("parameterName"),
					parameterValue: jsii.String("parameterValue"),
				},
			},
		},
	},
}

type CfnDeliveryStream_ProcessorParameterProperty

type CfnDeliveryStream_ProcessorParameterProperty struct {
	// The name of the parameter.
	//
	// Currently the following default values are supported: 3 for `NumberOfRetries` , 60 for the `BufferIntervalInSeconds` , and 3 for the `BufferSizeInMBs` .
	ParameterName *string `field:"required" json:"parameterName" yaml:"parameterName"`
	// The parameter value.
	ParameterValue *string `field:"required" json:"parameterValue" yaml:"parameterValue"`
}

The `ProcessorParameter` property specifies a processor parameter in a data processor for an Amazon Kinesis Data Firehose delivery stream.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

processorParameterProperty := &processorParameterProperty{
	parameterName: jsii.String("parameterName"),
	parameterValue: jsii.String("parameterValue"),
}

type CfnDeliveryStream_ProcessorProperty

type CfnDeliveryStream_ProcessorProperty struct {
	// The type of processor.
	//
	// Valid values: `Lambda` .
	Type *string `field:"required" json:"type" yaml:"type"`
	// The processor parameters.
	Parameters interface{} `field:"optional" json:"parameters" yaml:"parameters"`
}

The `Processor` property specifies a data processor for an Amazon Kinesis Data Firehose delivery stream.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

processorProperty := &processorProperty{
	type: jsii.String("type"),

	// the properties below are optional
	parameters: []interface{}{
		&processorParameterProperty{
			parameterName: jsii.String("parameterName"),
			parameterValue: jsii.String("parameterValue"),
		},
	},
}

type CfnDeliveryStream_RedshiftDestinationConfigurationProperty

type CfnDeliveryStream_RedshiftDestinationConfigurationProperty struct {
	// The connection string that Kinesis Data Firehose uses to connect to the Amazon Redshift cluster.
	ClusterJdbcurl *string `field:"required" json:"clusterJdbcurl" yaml:"clusterJdbcurl"`
	// Configures the Amazon Redshift `COPY` command that Kinesis Data Firehose uses to load data into the cluster from the Amazon S3 bucket.
	CopyCommand interface{} `field:"required" json:"copyCommand" yaml:"copyCommand"`
	// The password for the Amazon Redshift user that you specified in the `Username` property.
	Password *string `field:"required" json:"password" yaml:"password"`
	// The ARN of the AWS Identity and Access Management (IAM) role that grants Kinesis Data Firehose access to your Amazon S3 bucket and AWS KMS (if you enable data encryption).
	//
	// For more information, see [Grant Kinesis Data Firehose Access to an Amazon Redshift Destination](https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-rs) in the *Amazon Kinesis Data Firehose Developer Guide* .
	RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
	// The S3 bucket where Kinesis Data Firehose first delivers data.
	//
	// After the data is in the bucket, Kinesis Data Firehose uses the `COPY` command to load the data into the Amazon Redshift cluster. For the Amazon S3 bucket's compression format, don't specify `SNAPPY` or `ZIP` because the Amazon Redshift `COPY` command doesn't support them.
	S3Configuration interface{} `field:"required" json:"s3Configuration" yaml:"s3Configuration"`
	// The Amazon Redshift user that has permission to access the Amazon Redshift cluster.
	//
	// This user must have `INSERT` privileges for copying data from the Amazon S3 bucket to the cluster.
	Username *string `field:"required" json:"username" yaml:"username"`
	// The CloudWatch logging options for your delivery stream.
	CloudWatchLoggingOptions interface{} `field:"optional" json:"cloudWatchLoggingOptions" yaml:"cloudWatchLoggingOptions"`
	// The data processing configuration for the Kinesis Data Firehose delivery stream.
	ProcessingConfiguration interface{} `field:"optional" json:"processingConfiguration" yaml:"processingConfiguration"`
	// The retry behavior in case Kinesis Data Firehose is unable to deliver documents to Amazon Redshift.
	//
	// Default value is 3600 (60 minutes).
	RetryOptions interface{} `field:"optional" json:"retryOptions" yaml:"retryOptions"`
	// The configuration for backup in Amazon S3.
	S3BackupConfiguration interface{} `field:"optional" json:"s3BackupConfiguration" yaml:"s3BackupConfiguration"`
	// The Amazon S3 backup mode.
	//
	// After you create a delivery stream, you can update it to enable Amazon S3 backup if it is disabled. If backup is enabled, you can't update the delivery stream to disable it.
	S3BackupMode *string `field:"optional" json:"s3BackupMode" yaml:"s3BackupMode"`
}

The `RedshiftDestinationConfiguration` property type specifies an Amazon Redshift cluster to which Amazon Kinesis Data Firehose (Kinesis Data Firehose) delivers data.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

redshiftDestinationConfigurationProperty := &redshiftDestinationConfigurationProperty{
	clusterJdbcurl: jsii.String("clusterJdbcurl"),
	copyCommand: &copyCommandProperty{
		dataTableName: jsii.String("dataTableName"),

		// the properties below are optional
		copyOptions: jsii.String("copyOptions"),
		dataTableColumns: jsii.String("dataTableColumns"),
	},
	password: jsii.String("password"),
	roleArn: jsii.String("roleArn"),
	s3Configuration: &s3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
	},
	username: jsii.String("username"),

	// the properties below are optional
	cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
		enabled: jsii.Boolean(false),
		logGroupName: jsii.String("logGroupName"),
		logStreamName: jsii.String("logStreamName"),
	},
	processingConfiguration: &processingConfigurationProperty{
		enabled: jsii.Boolean(false),
		processors: []interface{}{
			&processorProperty{
				type: jsii.String("type"),

				// the properties below are optional
				parameters: []interface{}{
					&processorParameterProperty{
						parameterName: jsii.String("parameterName"),
						parameterValue: jsii.String("parameterValue"),
					},
				},
			},
		},
	},
	retryOptions: &redshiftRetryOptionsProperty{
		durationInSeconds: jsii.Number(123),
	},
	s3BackupConfiguration: &s3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
	},
	s3BackupMode: jsii.String("s3BackupMode"),
}

type CfnDeliveryStream_RedshiftRetryOptionsProperty

type CfnDeliveryStream_RedshiftRetryOptionsProperty struct {
	// The length of time during which Kinesis Data Firehose retries delivery after a failure, starting from the initial request and including the first attempt.
	//
	// The default value is 3600 seconds (60 minutes). Kinesis Data Firehose does not retry if the value of `DurationInSeconds` is 0 (zero) or if the first delivery attempt takes longer than the current value.
	DurationInSeconds *float64 `field:"optional" json:"durationInSeconds" yaml:"durationInSeconds"`
}

Configures retry behavior in case Kinesis Data Firehose is unable to deliver documents to Amazon Redshift.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

redshiftRetryOptionsProperty := &redshiftRetryOptionsProperty{
	durationInSeconds: jsii.Number(123),
}

type CfnDeliveryStream_RetryOptionsProperty

type CfnDeliveryStream_RetryOptionsProperty struct {
	// The total amount of time that Kinesis Data Firehose spends on retries.
	//
	// This duration starts after the initial attempt to send data to the custom destination via HTTPS endpoint fails. It doesn't include the periods during which Kinesis Data Firehose waits for acknowledgment from the specified destination after each attempt.
	DurationInSeconds *float64 `field:"optional" json:"durationInSeconds" yaml:"durationInSeconds"`
}

Describes the retry behavior in case Kinesis Data Firehose is unable to deliver data to the specified HTTP endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified HTTP endpoint destination.

Kinesis Firehose supports any custom HTTP endpoint or HTTP endpoints owned by supported third-party service providers, including Datadog, MongoDB, and New Relic.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

retryOptionsProperty := &retryOptionsProperty{
	durationInSeconds: jsii.Number(123),
}

type CfnDeliveryStream_S3DestinationConfigurationProperty

type CfnDeliveryStream_S3DestinationConfigurationProperty struct {
	// The Amazon Resource Name (ARN) of the Amazon S3 bucket to send data to.
	BucketArn *string `field:"required" json:"bucketArn" yaml:"bucketArn"`
	// The ARN of an AWS Identity and Access Management (IAM) role that grants Kinesis Data Firehose access to your Amazon S3 bucket and AWS KMS (if you enable data encryption).
	//
	// For more information, see [Grant Kinesis Data Firehose Access to an Amazon S3 Destination](https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3) in the *Amazon Kinesis Data Firehose Developer Guide* .
	RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
	// Configures how Kinesis Data Firehose buffers incoming data while delivering it to the Amazon S3 bucket.
	BufferingHints interface{} `field:"optional" json:"bufferingHints" yaml:"bufferingHints"`
	// The CloudWatch logging options for your delivery stream.
	CloudWatchLoggingOptions interface{} `field:"optional" json:"cloudWatchLoggingOptions" yaml:"cloudWatchLoggingOptions"`
	// The type of compression that Kinesis Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket.
	//
	// For valid values, see the `CompressionFormat` content for the [S3DestinationConfiguration](https://docs.aws.amazon.com/firehose/latest/APIReference/API_S3DestinationConfiguration.html) data type in the *Amazon Kinesis Data Firehose API Reference* .
	CompressionFormat *string `field:"optional" json:"compressionFormat" yaml:"compressionFormat"`
	// Configures Amazon Simple Storage Service (Amazon S3) server-side encryption.
	//
	// Kinesis Data Firehose uses AWS Key Management Service ( AWS KMS) to encrypt the data that it delivers to your Amazon S3 bucket.
	EncryptionConfiguration interface{} `field:"optional" json:"encryptionConfiguration" yaml:"encryptionConfiguration"`
	// A prefix that Kinesis Data Firehose evaluates and adds to failed records before writing them to S3.
	//
	// This prefix appears immediately following the bucket name. For information about how to specify this prefix, see [Custom Prefixes for Amazon S3 Objects](https://docs.aws.amazon.com/firehose/latest/dev/s3-prefixes.html) .
	ErrorOutputPrefix *string `field:"optional" json:"errorOutputPrefix" yaml:"errorOutputPrefix"`
	// A prefix that Kinesis Data Firehose adds to the files that it delivers to the Amazon S3 bucket.
	//
	// The prefix helps you identify the files that Kinesis Data Firehose delivered.
	Prefix *string `field:"optional" json:"prefix" yaml:"prefix"`
}

The `S3DestinationConfiguration` property type specifies an Amazon Simple Storage Service (Amazon S3) destination to which Amazon Kinesis Data Firehose (Kinesis Data Firehose) delivers data.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

s3DestinationConfigurationProperty := &s3DestinationConfigurationProperty{
	bucketArn: jsii.String("bucketArn"),
	roleArn: jsii.String("roleArn"),

	// the properties below are optional
	bufferingHints: &bufferingHintsProperty{
		intervalInSeconds: jsii.Number(123),
		sizeInMBs: jsii.Number(123),
	},
	cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
		enabled: jsii.Boolean(false),
		logGroupName: jsii.String("logGroupName"),
		logStreamName: jsii.String("logStreamName"),
	},
	compressionFormat: jsii.String("compressionFormat"),
	encryptionConfiguration: &encryptionConfigurationProperty{
		kmsEncryptionConfig: &kMSEncryptionConfigProperty{
			awskmsKeyArn: jsii.String("awskmsKeyArn"),
		},
		noEncryptionConfig: jsii.String("noEncryptionConfig"),
	},
	errorOutputPrefix: jsii.String("errorOutputPrefix"),
	prefix: jsii.String("prefix"),
}

type CfnDeliveryStream_SchemaConfigurationProperty

type CfnDeliveryStream_SchemaConfigurationProperty struct {
	// The ID of the AWS Glue Data Catalog.
	//
	// If you don't supply this, the AWS account ID is used by default.
	CatalogId *string `field:"optional" json:"catalogId" yaml:"catalogId"`
	// Specifies the name of the AWS Glue database that contains the schema for the output data.
	//
	// > If the `SchemaConfiguration` request parameter is used as part of invoking the `CreateDeliveryStream` API, then the `DatabaseName` property is required and its value must be specified.
	DatabaseName *string `field:"optional" json:"databaseName" yaml:"databaseName"`
	// If you don't specify an AWS Region, the default is the current Region.
	Region *string `field:"optional" json:"region" yaml:"region"`
	// The role that Kinesis Data Firehose can use to access AWS Glue.
	//
	// This role must be in the same account you use for Kinesis Data Firehose. Cross-account roles aren't allowed.
	//
	// > If the `SchemaConfiguration` request parameter is used as part of invoking the `CreateDeliveryStream` API, then the `RoleARN` property is required and its value must be specified.
	RoleArn *string `field:"optional" json:"roleArn" yaml:"roleArn"`
	// Specifies the AWS Glue table that contains the column information that constitutes your data schema.
	//
	// > If the `SchemaConfiguration` request parameter is used as part of invoking the `CreateDeliveryStream` API, then the `TableName` property is required and its value must be specified.
	TableName *string `field:"optional" json:"tableName" yaml:"tableName"`
	// Specifies the table version for the output data schema.
	//
	// If you don't specify this version ID, or if you set it to `LATEST` , Kinesis Data Firehose uses the most recent version. This means that any updates to the table are automatically picked up.
	VersionId *string `field:"optional" json:"versionId" yaml:"versionId"`
}

Specifies the schema to which you want Kinesis Data Firehose to configure your data before it writes it to Amazon S3.

This parameter is required if `Enabled` is set to true.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

schemaConfigurationProperty := &schemaConfigurationProperty{
	catalogId: jsii.String("catalogId"),
	databaseName: jsii.String("databaseName"),
	region: jsii.String("region"),
	roleArn: jsii.String("roleArn"),
	tableName: jsii.String("tableName"),
	versionId: jsii.String("versionId"),
}

type CfnDeliveryStream_SerializerProperty

type CfnDeliveryStream_SerializerProperty struct {
	// A serializer to use for converting data to the ORC format before storing it in Amazon S3.
	//
	// For more information, see [Apache ORC](https://docs.aws.amazon.com/https://orc.apache.org/docs/) .
	OrcSerDe interface{} `field:"optional" json:"orcSerDe" yaml:"orcSerDe"`
	// A serializer to use for converting data to the Parquet format before storing it in Amazon S3.
	//
	// For more information, see [Apache Parquet](https://docs.aws.amazon.com/https://parquet.apache.org/documentation/latest/) .
	ParquetSerDe interface{} `field:"optional" json:"parquetSerDe" yaml:"parquetSerDe"`
}

The serializer that you want Kinesis Data Firehose to use to convert data to the target format before writing it to Amazon S3.

Kinesis Data Firehose supports two types of serializers: the [ORC SerDe](https://docs.aws.amazon.com/https://hive.apache.org/javadocs/r1.2.2/api/org/apache/hadoop/hive/ql/io/orc/OrcSerde.html) and the [Parquet SerDe](https://docs.aws.amazon.com/https://hive.apache.org/javadocs/r1.2.2/api/org/apache/hadoop/hive/ql/io/parquet/serde/ParquetHiveSerDe.html) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

serializerProperty := &serializerProperty{
	orcSerDe: &orcSerDeProperty{
		blockSizeBytes: jsii.Number(123),
		bloomFilterColumns: []*string{
			jsii.String("bloomFilterColumns"),
		},
		bloomFilterFalsePositiveProbability: jsii.Number(123),
		compression: jsii.String("compression"),
		dictionaryKeyThreshold: jsii.Number(123),
		enablePadding: jsii.Boolean(false),
		formatVersion: jsii.String("formatVersion"),
		paddingTolerance: jsii.Number(123),
		rowIndexStride: jsii.Number(123),
		stripeSizeBytes: jsii.Number(123),
	},
	parquetSerDe: &parquetSerDeProperty{
		blockSizeBytes: jsii.Number(123),
		compression: jsii.String("compression"),
		enableDictionaryCompression: jsii.Boolean(false),
		maxPaddingBytes: jsii.Number(123),
		pageSizeBytes: jsii.Number(123),
		writerVersion: jsii.String("writerVersion"),
	},
}

type CfnDeliveryStream_SplunkDestinationConfigurationProperty

type CfnDeliveryStream_SplunkDestinationConfigurationProperty struct {
	// The HTTP Event Collector (HEC) endpoint to which Kinesis Data Firehose sends your data.
	HecEndpoint *string `field:"required" json:"hecEndpoint" yaml:"hecEndpoint"`
	// This type can be either `Raw` or `Event` .
	HecEndpointType *string `field:"required" json:"hecEndpointType" yaml:"hecEndpointType"`
	// This is a GUID that you obtain from your Splunk cluster when you create a new HEC endpoint.
	HecToken *string `field:"required" json:"hecToken" yaml:"hecToken"`
	// The configuration for the backup Amazon S3 location.
	S3Configuration interface{} `field:"required" json:"s3Configuration" yaml:"s3Configuration"`
	// The Amazon CloudWatch logging options for your delivery stream.
	CloudWatchLoggingOptions interface{} `field:"optional" json:"cloudWatchLoggingOptions" yaml:"cloudWatchLoggingOptions"`
	// The amount of time that Kinesis Data Firehose waits to receive an acknowledgment from Splunk after it sends it data.
	//
	// At the end of the timeout period, Kinesis Data Firehose either tries to send the data again or considers it an error, based on your retry settings.
	HecAcknowledgmentTimeoutInSeconds *float64 `field:"optional" json:"hecAcknowledgmentTimeoutInSeconds" yaml:"hecAcknowledgmentTimeoutInSeconds"`
	// The data processing configuration.
	ProcessingConfiguration interface{} `field:"optional" json:"processingConfiguration" yaml:"processingConfiguration"`
	// The retry behavior in case Kinesis Data Firehose is unable to deliver data to Splunk, or if it doesn't receive an acknowledgment of receipt from Splunk.
	RetryOptions interface{} `field:"optional" json:"retryOptions" yaml:"retryOptions"`
	// Defines how documents should be delivered to Amazon S3.
	//
	// When set to `FailedEventsOnly` , Kinesis Data Firehose writes any data that could not be indexed to the configured Amazon S3 destination. When set to `AllEvents` , Kinesis Data Firehose delivers all incoming records to Amazon S3, and also writes failed documents to Amazon S3. The default value is `FailedEventsOnly` .
	//
	// You can update this backup mode from `FailedEventsOnly` to `AllEvents` . You can't update it from `AllEvents` to `FailedEventsOnly` .
	S3BackupMode *string `field:"optional" json:"s3BackupMode" yaml:"s3BackupMode"`
}

The `SplunkDestinationConfiguration` property type specifies the configuration of a destination in Splunk for a Kinesis Data Firehose delivery stream.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

splunkDestinationConfigurationProperty := &splunkDestinationConfigurationProperty{
	hecEndpoint: jsii.String("hecEndpoint"),
	hecEndpointType: jsii.String("hecEndpointType"),
	hecToken: jsii.String("hecToken"),
	s3Configuration: &s3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
	},

	// the properties below are optional
	cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
		enabled: jsii.Boolean(false),
		logGroupName: jsii.String("logGroupName"),
		logStreamName: jsii.String("logStreamName"),
	},
	hecAcknowledgmentTimeoutInSeconds: jsii.Number(123),
	processingConfiguration: &processingConfigurationProperty{
		enabled: jsii.Boolean(false),
		processors: []interface{}{
			&processorProperty{
				type: jsii.String("type"),

				// the properties below are optional
				parameters: []interface{}{
					&processorParameterProperty{
						parameterName: jsii.String("parameterName"),
						parameterValue: jsii.String("parameterValue"),
					},
				},
			},
		},
	},
	retryOptions: &splunkRetryOptionsProperty{
		durationInSeconds: jsii.Number(123),
	},
	s3BackupMode: jsii.String("s3BackupMode"),
}

type CfnDeliveryStream_SplunkRetryOptionsProperty

type CfnDeliveryStream_SplunkRetryOptionsProperty struct {
	// The total amount of time that Kinesis Data Firehose spends on retries.
	//
	// This duration starts after the initial attempt to send data to Splunk fails. It doesn't include the periods during which Kinesis Data Firehose waits for acknowledgment from Splunk after each attempt.
	DurationInSeconds *float64 `field:"optional" json:"durationInSeconds" yaml:"durationInSeconds"`
}

The `SplunkRetryOptions` property type specifies retry behavior in case Kinesis Data Firehose is unable to deliver documents to Splunk or if it doesn't receive an acknowledgment from Splunk.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

splunkRetryOptionsProperty := &splunkRetryOptionsProperty{
	durationInSeconds: jsii.Number(123),
}

type CfnDeliveryStream_VpcConfigurationProperty

type CfnDeliveryStream_VpcConfigurationProperty struct {
	// The ARN of the IAM role that you want the delivery stream to use to create endpoints in the destination VPC.
	//
	// You can use your existing Kinesis Data Firehose delivery role or you can specify a new role. In either case, make sure that the role trusts the Kinesis Data Firehose service principal and that it grants the following permissions:
	//
	// - `ec2:DescribeVpcs`
	// - `ec2:DescribeVpcAttribute`
	// - `ec2:DescribeSubnets`
	// - `ec2:DescribeSecurityGroups`
	// - `ec2:DescribeNetworkInterfaces`
	// - `ec2:CreateNetworkInterface`
	// - `ec2:CreateNetworkInterfacePermission`
	// - `ec2:DeleteNetworkInterface`
	//
	// If you revoke these permissions after you create the delivery stream, Kinesis Data Firehose can't scale out by creating more ENIs when necessary. You might therefore see a degradation in performance.
	RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
	// The IDs of the security groups that you want Kinesis Data Firehose to use when it creates ENIs in the VPC of the Amazon ES destination.
	//
	// You can use the same security group that the Amazon ES domain uses or different ones. If you specify different security groups here, ensure that they allow outbound HTTPS traffic to the Amazon ES domain's security group. Also ensure that the Amazon ES domain's security group allows HTTPS traffic from the security groups specified here. If you use the same security group for both your delivery stream and the Amazon ES domain, make sure the security group inbound rule allows HTTPS traffic.
	SecurityGroupIds *[]*string `field:"required" json:"securityGroupIds" yaml:"securityGroupIds"`
	// The IDs of the subnets that Kinesis Data Firehose uses to create ENIs in the VPC of the Amazon ES destination.
	//
	// Make sure that the routing tables and inbound and outbound rules allow traffic to flow from the subnets whose IDs are specified here to the subnets that have the destination Amazon ES endpoints. Kinesis Data Firehose creates at least one ENI in each of the subnets that are specified here. Do not delete or modify these ENIs.
	//
	// The number of ENIs that Kinesis Data Firehose creates in the subnets specified here scales up and down automatically based on throughput. To enable Kinesis Data Firehose to scale up the number of ENIs to match throughput, ensure that you have sufficient quota. To help you calculate the quota you need, assume that Kinesis Data Firehose can create up to three ENIs for this delivery stream for each of the subnets specified here.
	SubnetIds *[]*string `field:"required" json:"subnetIds" yaml:"subnetIds"`
}

The details of the VPC of the Amazon ES destination.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

vpcConfigurationProperty := &vpcConfigurationProperty{
	roleArn: jsii.String("roleArn"),
	securityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
	subnetIds: []*string{
		jsii.String("subnetIds"),
	},
}

type DataProcessorBindOptions

type DataProcessorBindOptions struct {
	// The IAM role assumed by Kinesis Data Firehose to write to the destination that this DataProcessor will bind to.
	// Experimental.
	Role awsiam.IRole `field:"required" json:"role" yaml:"role"`
}

Options when binding a DataProcessor to a delivery stream destination.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var role role

dataProcessorBindOptions := &dataProcessorBindOptions{
	role: role,
}

Experimental.

type DataProcessorConfig

type DataProcessorConfig struct {
	// The key-value pair that identifies the underlying processor resource.
	// Experimental.
	ProcessorIdentifier *DataProcessorIdentifier `field:"required" json:"processorIdentifier" yaml:"processorIdentifier"`
	// The type of the underlying processor resource.
	//
	// Must be an accepted value in `CfnDeliveryStream.ProcessorProperty.Type`.
	//
	// Example:
	//   "Lambda"
	//
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processor.html#cfn-kinesisfirehose-deliverystream-processor-type
	//
	// Experimental.
	ProcessorType *string `field:"required" json:"processorType" yaml:"processorType"`
}

The full configuration of a data processor.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dataProcessorConfig := &dataProcessorConfig{
	processorIdentifier: &dataProcessorIdentifier{
		parameterName: jsii.String("parameterName"),
		parameterValue: jsii.String("parameterValue"),
	},
	processorType: jsii.String("processorType"),
}

Experimental.

type DataProcessorIdentifier

type DataProcessorIdentifier struct {
	// The parameter name that corresponds to the processor resource's identifier.
	//
	// Must be an accepted value in `CfnDeliveryStream.ProcessoryParameterProperty.ParameterName`.
	// Experimental.
	ParameterName *string `field:"required" json:"parameterName" yaml:"parameterName"`
	// The identifier of the underlying processor resource.
	// Experimental.
	ParameterValue *string `field:"required" json:"parameterValue" yaml:"parameterValue"`
}

The key-value pair that identifies the underlying processor resource.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dataProcessorIdentifier := &dataProcessorIdentifier{
	parameterName: jsii.String("parameterName"),
	parameterValue: jsii.String("parameterValue"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-processorparameter.html

Experimental.

type DataProcessorProps

type DataProcessorProps struct {
	// The length of time Kinesis Data Firehose will buffer incoming data before calling the processor.
	//
	// s.
	// Experimental.
	BufferInterval awscdk.Duration `field:"optional" json:"bufferInterval" yaml:"bufferInterval"`
	// The amount of incoming data Kinesis Data Firehose will buffer before calling the processor.
	// Experimental.
	BufferSize awscdk.Size `field:"optional" json:"bufferSize" yaml:"bufferSize"`
	// The number of times Kinesis Data Firehose will retry the processor invocation after a failure due to network timeout or invocation limits.
	// Experimental.
	Retries *float64 `field:"optional" json:"retries" yaml:"retries"`
}

Configure the data processor.

Example:

import path "github.com/aws-samples/dummy/path"
import firehose "github.com/aws/aws-cdk-go/awscdk"
import kms "github.com/aws/aws-cdk-go/awscdk"
import lambdanodejs "github.com/aws/aws-cdk-go/awscdk"
import logs "github.com/aws/aws-cdk-go/awscdk"
import s3 "github.com/aws/aws-cdk-go/awscdk"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import destinations "github.com/aws/aws-cdk-go/awscdk"

app := cdk.NewApp()

stack := cdk.NewStack(app, jsii.String("aws-cdk-firehose-delivery-stream-s3-all-properties"))

bucket := s3.NewBucket(stack, jsii.String("Bucket"), &bucketProps{
	removalPolicy: cdk.removalPolicy_DESTROY,
	autoDeleteObjects: jsii.Boolean(true),
})

backupBucket := s3.NewBucket(stack, jsii.String("BackupBucket"), &bucketProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
	autoDeleteObjects: jsii.Boolean(true),
})
logGroup := logs.NewLogGroup(stack, jsii.String("LogGroup"), &logGroupProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

dataProcessorFunction := lambdanodejs.NewNodejsFunction(stack, jsii.String("DataProcessorFunction"), &nodejsFunctionProps{
	entry: path.join(__dirname, jsii.String("lambda-data-processor.js")),
	timeout: cdk.duration.minutes(jsii.Number(1)),
})

processor := firehose.NewLambdaFunctionProcessor(dataProcessorFunction, &dataProcessorProps{
	bufferInterval: cdk.*duration.seconds(jsii.Number(60)),
	bufferSize: cdk.size.mebibytes(jsii.Number(1)),
	retries: jsii.Number(1),
})

key := kms.NewKey(stack, jsii.String("Key"), &keyProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

backupKey := kms.NewKey(stack, jsii.String("BackupKey"), &keyProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

firehose.NewDeliveryStream(stack, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		destinations.NewS3Bucket(bucket, &s3BucketProps{
			logging: jsii.Boolean(true),
			logGroup: logGroup,
			processor: processor,
			compression: destinations.compression_GZIP(),
			dataOutputPrefix: jsii.String("regularPrefix"),
			errorOutputPrefix: jsii.String("errorPrefix"),
			bufferingInterval: cdk.*duration.seconds(jsii.Number(60)),
			bufferingSize: cdk.*size.mebibytes(jsii.Number(1)),
			encryptionKey: key,
			s3Backup: &destinationS3BackupProps{
				mode: destinations.backupMode_ALL,
				bucket: backupBucket,
				compression: destinations.*compression_ZIP(),
				dataOutputPrefix: jsii.String("backupPrefix"),
				errorOutputPrefix: jsii.String("backupErrorPrefix"),
				bufferingInterval: cdk.*duration.seconds(jsii.Number(60)),
				bufferingSize: cdk.*size.mebibytes(jsii.Number(1)),
				encryptionKey: backupKey,
			},
		}),
	},
})

app.synth()

Experimental.

type DeliveryStream

type DeliveryStream interface {
	awscdk.Resource
	IDeliveryStream
	// Network connections between Kinesis Data Firehose and other resources, i.e. Redshift cluster.
	// Experimental.
	Connections() awsec2.Connections
	// The ARN of the delivery stream.
	// Experimental.
	DeliveryStreamArn() *string
	// The name of the delivery stream.
	// Experimental.
	DeliveryStreamName() *string
	// The environment this resource belongs to.
	//
	// For resources that are created and managed by the CDK
	// (generally, those created by creating new class instances like Role, Bucket, etc.),
	// this is always the same as the environment of the stack they belong to;
	// however, for imported resources
	// (those obtained from static methods like fromRoleArn, fromBucketName, etc.),
	// that might be different than the stack they were imported into.
	// Experimental.
	Env() *awscdk.ResourceEnvironment
	// The principal to grant permissions to.
	// Experimental.
	GrantPrincipal() awsiam.IPrincipal
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
	//
	// This value will resolve to one of the following:
	// - a concrete value (e.g. `"my-awesome-bucket"`)
	// - `undefined`, when a name should be generated by CloudFormation
	// - a concrete name generated automatically during synthesis, in
	//    cross-environment scenarios.
	// Experimental.
	PhysicalName() *string
	// The stack in which this resource is defined.
	// Experimental.
	Stack() awscdk.Stack
	// Apply the given removal policy to this resource.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	// Experimental.
	GeneratePhysicalName() *string
	// Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
	//
	// Normally, this token will resolve to `arnAttr`, but if the resource is
	// referenced across environments, `arnComponents` will be used to synthesize
	// a concrete ARN with the resource's physical name. Make sure to reference
	// `this.physicalName` in `arnComponents`.
	// Experimental.
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	// Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
	//
	// Normally, this token will resolve to `nameAttr`, but if the resource is
	// referenced across environments, it will be resolved to `this.physicalName`,
	// which will be a concrete name.
	// Experimental.
	GetResourceNameAttribute(nameAttr *string) *string
	// Grant the `grantee` identity permissions to perform `actions`.
	// Experimental.
	Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant
	// Grant the `grantee` identity permissions to perform `firehose:PutRecord` and `firehose:PutRecordBatch` actions on this delivery stream.
	// Experimental.
	GrantPutRecords(grantee awsiam.IGrantable) awsiam.Grant
	// Return the given named metric for this delivery stream.
	// Experimental.
	Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// Metric for the number of bytes delivered to Amazon S3 for backup over the specified time period.
	//
	// By default, this metric will be calculated as an average over a period of 5 minutes.
	// Experimental.
	MetricBackupToS3Bytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// Metric for the age (from getting into Kinesis Data Firehose to now) of the oldest record in Kinesis Data Firehose.
	//
	// Any record older than this age has been delivered to the Amazon S3 bucket for backup.
	//
	// By default, this metric will be calculated as an average over a period of 5 minutes.
	// Experimental.
	MetricBackupToS3DataFreshness(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// Metric for the number of records delivered to Amazon S3 for backup over the specified time period.
	//
	// By default, this metric will be calculated as an average over a period of 5 minutes.
	// Experimental.
	MetricBackupToS3Records(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// Metric for the number of bytes ingested successfully into the delivery stream over the specified time period after throttling.
	//
	// By default, this metric will be calculated as an average over a period of 5 minutes.
	// Experimental.
	MetricIncomingBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// Metric for the number of records ingested successfully into the delivery stream over the specified time period after throttling.
	//
	// By default, this metric will be calculated as an average over a period of 5 minutes.
	// Experimental.
	MetricIncomingRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
}

Create a Kinesis Data Firehose delivery stream.

Example:

var bucket bucket
// Provide a Lambda function that will transform records before delivery, with custom
// buffering and retry configuration
lambdaFunction := lambda.NewFunction(this, jsii.String("Processor"), &functionProps{
	runtime: lambda.runtime_NODEJS_12_X(),
	handler: jsii.String("index.handler"),
	code: lambda.code.fromAsset(path.join(__dirname, jsii.String("process-records"))),
})
lambdaProcessor := firehose.NewLambdaFunctionProcessor(lambdaFunction, &dataProcessorProps{
	bufferInterval: awscdk.Duration.minutes(jsii.Number(5)),
	bufferSize: awscdk.Size.mebibytes(jsii.Number(5)),
	retries: jsii.Number(5),
})
s3Destination := destinations.NewS3Bucket(bucket, &s3BucketProps{
	processor: lambdaProcessor,
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		s3Destination,
	},
})

Experimental.

func NewDeliveryStream

func NewDeliveryStream(scope constructs.Construct, id *string, props *DeliveryStreamProps) DeliveryStream

Experimental.

type DeliveryStreamAttributes

type DeliveryStreamAttributes struct {
	// The ARN of the delivery stream.
	//
	// At least one of deliveryStreamArn and deliveryStreamName must be provided.
	// Experimental.
	DeliveryStreamArn *string `field:"optional" json:"deliveryStreamArn" yaml:"deliveryStreamArn"`
	// The name of the delivery stream.
	//
	// At least one of deliveryStreamName and deliveryStreamArn  must be provided.
	// Experimental.
	DeliveryStreamName *string `field:"optional" json:"deliveryStreamName" yaml:"deliveryStreamName"`
	// The IAM role associated with this delivery stream.
	//
	// Assumed by Kinesis Data Firehose to read from sources and encrypt data server-side.
	// Experimental.
	Role awsiam.IRole `field:"optional" json:"role" yaml:"role"`
}

A full specification of a delivery stream that can be used to import it fluently into the CDK application.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var role role

deliveryStreamAttributes := &deliveryStreamAttributes{
	deliveryStreamArn: jsii.String("deliveryStreamArn"),
	deliveryStreamName: jsii.String("deliveryStreamName"),
	role: role,
}

Experimental.

type DeliveryStreamProps

type DeliveryStreamProps struct {
	// The destinations that this delivery stream will deliver data to.
	//
	// Only a singleton array is supported at this time.
	// Experimental.
	Destinations *[]IDestination `field:"required" json:"destinations" yaml:"destinations"`
	// A name for the delivery stream.
	// Experimental.
	DeliveryStreamName *string `field:"optional" json:"deliveryStreamName" yaml:"deliveryStreamName"`
	// Indicates the type of customer master key (CMK) to use for server-side encryption, if any.
	// Experimental.
	Encryption StreamEncryption `field:"optional" json:"encryption" yaml:"encryption"`
	// Customer managed key to server-side encrypt data in the stream.
	// Experimental.
	EncryptionKey awskms.IKey `field:"optional" json:"encryptionKey" yaml:"encryptionKey"`
	// The IAM role associated with this delivery stream.
	//
	// Assumed by Kinesis Data Firehose to read from sources and encrypt data server-side.
	// Experimental.
	Role awsiam.IRole `field:"optional" json:"role" yaml:"role"`
	// The Kinesis data stream to use as a source for this delivery stream.
	// Experimental.
	SourceStream awskinesis.IStream `field:"optional" json:"sourceStream" yaml:"sourceStream"`
}

Properties for a new delivery stream.

Example:

var bucket bucket
// Provide a Lambda function that will transform records before delivery, with custom
// buffering and retry configuration
lambdaFunction := lambda.NewFunction(this, jsii.String("Processor"), &functionProps{
	runtime: lambda.runtime_NODEJS_12_X(),
	handler: jsii.String("index.handler"),
	code: lambda.code.fromAsset(path.join(__dirname, jsii.String("process-records"))),
})
lambdaProcessor := firehose.NewLambdaFunctionProcessor(lambdaFunction, &dataProcessorProps{
	bufferInterval: awscdk.Duration.minutes(jsii.Number(5)),
	bufferSize: awscdk.Size.mebibytes(jsii.Number(5)),
	retries: jsii.Number(5),
})
s3Destination := destinations.NewS3Bucket(bucket, &s3BucketProps{
	processor: lambdaProcessor,
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		s3Destination,
	},
})

Experimental.

type DestinationBindOptions

type DestinationBindOptions struct {
}

Options when binding a destination to a delivery stream.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

destinationBindOptions := &destinationBindOptions{
}

Experimental.

type DestinationConfig

type DestinationConfig struct {
	// Any resources that were created by the destination when binding it to the stack that must be deployed before the delivery stream is deployed.
	// Experimental.
	Dependables *[]awscdk.IDependable `field:"optional" json:"dependables" yaml:"dependables"`
	// S3 destination configuration properties.
	// Experimental.
	ExtendedS3DestinationConfiguration *CfnDeliveryStream_ExtendedS3DestinationConfigurationProperty `field:"optional" json:"extendedS3DestinationConfiguration" yaml:"extendedS3DestinationConfiguration"`
}

A Kinesis Data Firehose delivery stream destination configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import monocdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var dependable iDependable

destinationConfig := &destinationConfig{
	dependables: []*iDependable{
		dependable,
	},
	extendedS3DestinationConfiguration: &extendedS3DestinationConfigurationProperty{
		bucketArn: jsii.String("bucketArn"),
		roleArn: jsii.String("roleArn"),

		// the properties below are optional
		bufferingHints: &bufferingHintsProperty{
			intervalInSeconds: jsii.Number(123),
			sizeInMBs: jsii.Number(123),
		},
		cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
			enabled: jsii.Boolean(false),
			logGroupName: jsii.String("logGroupName"),
			logStreamName: jsii.String("logStreamName"),
		},
		compressionFormat: jsii.String("compressionFormat"),
		dataFormatConversionConfiguration: &dataFormatConversionConfigurationProperty{
			enabled: jsii.Boolean(false),
			inputFormatConfiguration: &inputFormatConfigurationProperty{
				deserializer: &deserializerProperty{
					hiveJsonSerDe: &hiveJsonSerDeProperty{
						timestampFormats: []*string{
							jsii.String("timestampFormats"),
						},
					},
					openXJsonSerDe: &openXJsonSerDeProperty{
						caseInsensitive: jsii.Boolean(false),
						columnToJsonKeyMappings: map[string]*string{
							"columnToJsonKeyMappingsKey": jsii.String("columnToJsonKeyMappings"),
						},
						convertDotsInJsonKeysToUnderscores: jsii.Boolean(false),
					},
				},
			},
			outputFormatConfiguration: &outputFormatConfigurationProperty{
				serializer: &serializerProperty{
					orcSerDe: &orcSerDeProperty{
						blockSizeBytes: jsii.Number(123),
						bloomFilterColumns: []*string{
							jsii.String("bloomFilterColumns"),
						},
						bloomFilterFalsePositiveProbability: jsii.Number(123),
						compression: jsii.String("compression"),
						dictionaryKeyThreshold: jsii.Number(123),
						enablePadding: jsii.Boolean(false),
						formatVersion: jsii.String("formatVersion"),
						paddingTolerance: jsii.Number(123),
						rowIndexStride: jsii.Number(123),
						stripeSizeBytes: jsii.Number(123),
					},
					parquetSerDe: &parquetSerDeProperty{
						blockSizeBytes: jsii.Number(123),
						compression: jsii.String("compression"),
						enableDictionaryCompression: jsii.Boolean(false),
						maxPaddingBytes: jsii.Number(123),
						pageSizeBytes: jsii.Number(123),
						writerVersion: jsii.String("writerVersion"),
					},
				},
			},
			schemaConfiguration: &schemaConfigurationProperty{
				catalogId: jsii.String("catalogId"),
				databaseName: jsii.String("databaseName"),
				region: jsii.String("region"),
				roleArn: jsii.String("roleArn"),
				tableName: jsii.String("tableName"),
				versionId: jsii.String("versionId"),
			},
		},
		dynamicPartitioningConfiguration: &dynamicPartitioningConfigurationProperty{
			enabled: jsii.Boolean(false),
			retryOptions: &retryOptionsProperty{
				durationInSeconds: jsii.Number(123),
			},
		},
		encryptionConfiguration: &encryptionConfigurationProperty{
			kmsEncryptionConfig: &kMSEncryptionConfigProperty{
				awskmsKeyArn: jsii.String("awskmsKeyArn"),
			},
			noEncryptionConfig: jsii.String("noEncryptionConfig"),
		},
		errorOutputPrefix: jsii.String("errorOutputPrefix"),
		prefix: jsii.String("prefix"),
		processingConfiguration: &processingConfigurationProperty{
			enabled: jsii.Boolean(false),
			processors: []interface{}{
				&processorProperty{
					type: jsii.String("type"),

					// the properties below are optional
					parameters: []interface{}{
						&processorParameterProperty{
							parameterName: jsii.String("parameterName"),
							parameterValue: jsii.String("parameterValue"),
						},
					},
				},
			},
		},
		s3BackupConfiguration: &s3DestinationConfigurationProperty{
			bucketArn: jsii.String("bucketArn"),
			roleArn: jsii.String("roleArn"),

			// the properties below are optional
			bufferingHints: &bufferingHintsProperty{
				intervalInSeconds: jsii.Number(123),
				sizeInMBs: jsii.Number(123),
			},
			cloudWatchLoggingOptions: &cloudWatchLoggingOptionsProperty{
				enabled: jsii.Boolean(false),
				logGroupName: jsii.String("logGroupName"),
				logStreamName: jsii.String("logStreamName"),
			},
			compressionFormat: jsii.String("compressionFormat"),
			encryptionConfiguration: &encryptionConfigurationProperty{
				kmsEncryptionConfig: &kMSEncryptionConfigProperty{
					awskmsKeyArn: jsii.String("awskmsKeyArn"),
				},
				noEncryptionConfig: jsii.String("noEncryptionConfig"),
			},
			errorOutputPrefix: jsii.String("errorOutputPrefix"),
			prefix: jsii.String("prefix"),
		},
		s3BackupMode: jsii.String("s3BackupMode"),
	},
}

Experimental.

type IDataProcessor

type IDataProcessor interface {
	// Binds this processor to a destination of a delivery stream.
	//
	// Implementers should use this method to grant processor invocation permissions to the provided stream and return the
	// necessary configuration to register as a processor.
	// Experimental.
	Bind(scope constructs.Construct, options *DataProcessorBindOptions) *DataProcessorConfig
	// The constructor props of the DataProcessor.
	// Experimental.
	Props() *DataProcessorProps
}

A data processor that Kinesis Data Firehose will call to transform records before delivering data. Experimental.

type IDeliveryStream

type IDeliveryStream interface {
	awsec2.IConnectable
	awsiam.IGrantable
	awscdk.IResource
	// Grant the `grantee` identity permissions to perform `actions`.
	// Experimental.
	Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant
	// Grant the `grantee` identity permissions to perform `firehose:PutRecord` and `firehose:PutRecordBatch` actions on this delivery stream.
	// Experimental.
	GrantPutRecords(grantee awsiam.IGrantable) awsiam.Grant
	// Return the given named metric for this delivery stream.
	// Experimental.
	Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// Metric for the number of bytes delivered to Amazon S3 for backup over the specified time period.
	//
	// By default, this metric will be calculated as an average over a period of 5 minutes.
	// Experimental.
	MetricBackupToS3Bytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// Metric for the age (from getting into Kinesis Data Firehose to now) of the oldest record in Kinesis Data Firehose.
	//
	// Any record older than this age has been delivered to the Amazon S3 bucket for backup.
	//
	// By default, this metric will be calculated as an average over a period of 5 minutes.
	// Experimental.
	MetricBackupToS3DataFreshness(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// Metric for the number of records delivered to Amazon S3 for backup over the specified time period.
	//
	// By default, this metric will be calculated as an average over a period of 5 minutes.
	// Experimental.
	MetricBackupToS3Records(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// Metric for the number of bytes ingested successfully into the delivery stream over the specified time period after throttling.
	//
	// By default, this metric will be calculated as an average over a period of 5 minutes.
	// Experimental.
	MetricIncomingBytes(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// Metric for the number of records ingested successfully into the delivery stream over the specified time period after throttling.
	//
	// By default, this metric will be calculated as an average over a period of 5 minutes.
	// Experimental.
	MetricIncomingRecords(props *awscloudwatch.MetricOptions) awscloudwatch.Metric
	// The ARN of the delivery stream.
	// Experimental.
	DeliveryStreamArn() *string
	// The name of the delivery stream.
	// Experimental.
	DeliveryStreamName() *string
}

Represents a Kinesis Data Firehose delivery stream. Experimental.

func DeliveryStream_FromDeliveryStreamArn

func DeliveryStream_FromDeliveryStreamArn(scope constructs.Construct, id *string, deliveryStreamArn *string) IDeliveryStream

Import an existing delivery stream from its ARN. Experimental.

func DeliveryStream_FromDeliveryStreamAttributes

func DeliveryStream_FromDeliveryStreamAttributes(scope constructs.Construct, id *string, attrs *DeliveryStreamAttributes) IDeliveryStream

Import an existing delivery stream from its attributes. Experimental.

func DeliveryStream_FromDeliveryStreamName

func DeliveryStream_FromDeliveryStreamName(scope constructs.Construct, id *string, deliveryStreamName *string) IDeliveryStream

Import an existing delivery stream from its name. Experimental.

type IDestination

type IDestination interface {
	// Binds this destination to the Kinesis Data Firehose delivery stream.
	//
	// Implementers should use this method to bind resources to the stack and initialize values using the provided stream.
	// Experimental.
	Bind(scope constructs.Construct, options *DestinationBindOptions) *DestinationConfig
}

A Kinesis Data Firehose delivery stream destination. Experimental.

type LambdaFunctionProcessor

type LambdaFunctionProcessor interface {
	IDataProcessor
	// The constructor props of the LambdaFunctionProcessor.
	// Experimental.
	Props() *DataProcessorProps
	// Binds this processor to a destination of a delivery stream.
	//
	// Implementers should use this method to grant processor invocation permissions to the provided stream and return the
	// necessary configuration to register as a processor.
	// Experimental.
	Bind(_scope constructs.Construct, options *DataProcessorBindOptions) *DataProcessorConfig
}

Use an AWS Lambda function to transform records.

Example:

import path "github.com/aws-samples/dummy/path"
import firehose "github.com/aws/aws-cdk-go/awscdk"
import kms "github.com/aws/aws-cdk-go/awscdk"
import lambdanodejs "github.com/aws/aws-cdk-go/awscdk"
import logs "github.com/aws/aws-cdk-go/awscdk"
import s3 "github.com/aws/aws-cdk-go/awscdk"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import destinations "github.com/aws/aws-cdk-go/awscdk"

app := cdk.NewApp()

stack := cdk.NewStack(app, jsii.String("aws-cdk-firehose-delivery-stream-s3-all-properties"))

bucket := s3.NewBucket(stack, jsii.String("Bucket"), &bucketProps{
	removalPolicy: cdk.removalPolicy_DESTROY,
	autoDeleteObjects: jsii.Boolean(true),
})

backupBucket := s3.NewBucket(stack, jsii.String("BackupBucket"), &bucketProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
	autoDeleteObjects: jsii.Boolean(true),
})
logGroup := logs.NewLogGroup(stack, jsii.String("LogGroup"), &logGroupProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

dataProcessorFunction := lambdanodejs.NewNodejsFunction(stack, jsii.String("DataProcessorFunction"), &nodejsFunctionProps{
	entry: path.join(__dirname, jsii.String("lambda-data-processor.js")),
	timeout: cdk.duration.minutes(jsii.Number(1)),
})

processor := firehose.NewLambdaFunctionProcessor(dataProcessorFunction, &dataProcessorProps{
	bufferInterval: cdk.*duration.seconds(jsii.Number(60)),
	bufferSize: cdk.size.mebibytes(jsii.Number(1)),
	retries: jsii.Number(1),
})

key := kms.NewKey(stack, jsii.String("Key"), &keyProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

backupKey := kms.NewKey(stack, jsii.String("BackupKey"), &keyProps{
	removalPolicy: cdk.*removalPolicy_DESTROY,
})

firehose.NewDeliveryStream(stack, jsii.String("Delivery Stream"), &deliveryStreamProps{
	destinations: []iDestination{
		destinations.NewS3Bucket(bucket, &s3BucketProps{
			logging: jsii.Boolean(true),
			logGroup: logGroup,
			processor: processor,
			compression: destinations.compression_GZIP(),
			dataOutputPrefix: jsii.String("regularPrefix"),
			errorOutputPrefix: jsii.String("errorPrefix"),
			bufferingInterval: cdk.*duration.seconds(jsii.Number(60)),
			bufferingSize: cdk.*size.mebibytes(jsii.Number(1)),
			encryptionKey: key,
			s3Backup: &destinationS3BackupProps{
				mode: destinations.backupMode_ALL,
				bucket: backupBucket,
				compression: destinations.*compression_ZIP(),
				dataOutputPrefix: jsii.String("backupPrefix"),
				errorOutputPrefix: jsii.String("backupErrorPrefix"),
				bufferingInterval: cdk.*duration.seconds(jsii.Number(60)),
				bufferingSize: cdk.*size.mebibytes(jsii.Number(1)),
				encryptionKey: backupKey,
			},
		}),
	},
})

app.synth()

Experimental.

func NewLambdaFunctionProcessor

func NewLambdaFunctionProcessor(lambdaFunction awslambda.IFunction, props *DataProcessorProps) LambdaFunctionProcessor

Experimental.

type StreamEncryption

type StreamEncryption string

Options for server-side encryption of a delivery stream.

Example:

var destination iDestination
// SSE with an customer-managed CMK that is explicitly specified
var key key

// SSE with an AWS-owned CMK
// SSE with an AWS-owned CMK
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream AWS Owned"), &deliveryStreamProps{
	encryption: firehose.streamEncryption_AWS_OWNED,
	destinations: []*iDestination{
		destination,
	},
})
// SSE with an customer-managed CMK that is created automatically by the CDK
// SSE with an customer-managed CMK that is created automatically by the CDK
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream Implicit Customer Managed"), &deliveryStreamProps{
	encryption: firehose.*streamEncryption_CUSTOMER_MANAGED,
	destinations: []*iDestination{
		destination,
	},
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream Explicit Customer Managed"), &deliveryStreamProps{
	encryptionKey: key,
	destinations: []*iDestination{
		destination,
	},
})

Experimental.

const (
	// Data in the stream is stored unencrypted.
	// Experimental.
	StreamEncryption_UNENCRYPTED StreamEncryption = "UNENCRYPTED"
	// Data in the stream is stored encrypted by a KMS key managed by the customer.
	// Experimental.
	StreamEncryption_CUSTOMER_MANAGED StreamEncryption = "CUSTOMER_MANAGED"
	// Data in the stream is stored encrypted by a KMS key owned by AWS and managed for use in multiple AWS accounts.
	// Experimental.
	StreamEncryption_AWS_OWNED StreamEncryption = "AWS_OWNED"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL