interface CommonDestinationProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.KinesisFirehose.Destinations.CommonDestinationProps |
Java | software.amazon.awscdk.services.kinesisfirehose.destinations.CommonDestinationProps |
Python | aws_cdk.aws_kinesisfirehose_destinations.CommonDestinationProps |
TypeScript (source) | @aws-cdk/aws-kinesisfirehose-destinations » CommonDestinationProps |
Generic properties for defining 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 * as iam from '@aws-cdk/aws-iam';
import * as kinesisfirehose from '@aws-cdk/aws-kinesisfirehose';
import * as kinesisfirehose_destinations from '@aws-cdk/aws-kinesisfirehose-destinations';
import * as kms from '@aws-cdk/aws-kms';
import * as logs from '@aws-cdk/aws-logs';
import * as s3 from '@aws-cdk/aws-s3';
import * as cdk from '@aws-cdk/core';
declare const bucket: s3.Bucket;
declare const compression: kinesisfirehose_destinations.Compression;
declare const dataProcessor: kinesisfirehose.IDataProcessor;
declare const key: kms.Key;
declare const logGroup: logs.LogGroup;
declare const role: iam.Role;
declare const size: cdk.Size;
const commonDestinationProps: kinesisfirehose_destinations.CommonDestinationProps = {
logging: false,
logGroup: logGroup,
processor: dataProcessor,
role: role,
s3Backup: {
bucket: bucket,
bufferingInterval: cdk.Duration.minutes(30),
bufferingSize: size,
compression: compression,
dataOutputPrefix: 'dataOutputPrefix',
encryptionKey: key,
errorOutputPrefix: 'errorOutputPrefix',
logging: false,
logGroup: logGroup,
mode: kinesisfirehose_destinations.BackupMode.ALL,
},
};
Properties
Name | Type | Description |
---|---|---|
log | ILog | The CloudWatch log group where log streams will be created to hold error logs. |
logging? | boolean | If true, log errors when data transformation or data delivery fails. |
processor? | IData | The data transformation that should be performed on the data before writing to the destination. |
role? | IRole | The IAM role associated with this destination. |
s3 | Destination | The configuration for backing up source records to S3. |
logGroup?
Type:
ILog
(optional, default: if logging
is set to true
, a log group will be created for you.)
The CloudWatch log group where log streams will be created to hold error logs.
logging?
Type:
boolean
(optional, default: true - errors are logged.)
If true, log errors when data transformation or data delivery fails.
If logGroup
is provided, this will be implicitly set to true
.
processor?
Type:
IData
(optional, default: no data transformation will occur.)
The data transformation that should be performed on the data before writing to the destination.
role?
Type:
IRole
(optional, default: a role will be created with default permissions.)
The IAM role associated with this destination.
Assumed by Kinesis Data Firehose to invoke processors and write to destinations
s3Backup?
Type:
Destination
(optional, default: source records will not be backed up to S3.)
The configuration for backing up source records to S3.