Class: AWSCDK::KinesisFirehose::RecordDeAggregationProcessor
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::KinesisFirehose::RecordDeAggregationProcessor
- Includes:
- IDataProcessor
- Defined in:
- kinesis_firehose/record_de_aggregation_processor.rb
Overview
The data processor for multi record deaggrecation.
Record deaggregation by JSON or by delimiter is capped at 500 per record.
Class Method Summary collapse
-
.delimited(delimiter) ⇒ AWSCDK::KinesisFirehose::RecordDeAggregationProcessor
Perform deaggregation based on a specified custom delimiter.
- .jsii_overridable_methods ⇒ Object
-
.json ⇒ AWSCDK::KinesisFirehose::RecordDeAggregationProcessor
Perform deaggregation from JSON objects on a single line with no delimiter or newline-delimited (JSONL).
Instance Method Summary collapse
-
#bind(scope, options) ⇒ AWSCDK::KinesisFirehose::DataProcessorConfig
Binds this processor to a destination of a delivery stream.
-
#initialize(options) ⇒ RecordDeAggregationProcessor
constructor
A new instance of RecordDeAggregationProcessor.
-
#props ⇒ AWSCDK::KinesisFirehose::DataProcessorProps
The constructor props of the DataProcessor.
Constructor Details
#initialize(options) ⇒ RecordDeAggregationProcessor
Returns a new instance of RecordDeAggregationProcessor.
14 15 16 17 18 |
# File 'kinesis_firehose/record_de_aggregation_processor.rb', line 14 def initialize() = .is_a?(Hash) ? ::AWSCDK::KinesisFirehose::RecordDeAggregationProcessorOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2ZpcmVob3NlLlJlY29yZERlQWdncmVnYXRpb25Qcm9jZXNzb3JPcHRpb25zIn0=")), "options") Jsii::Object.instance_method(:initialize).bind(self).call() end |
Class Method Details
.delimited(delimiter) ⇒ AWSCDK::KinesisFirehose::RecordDeAggregationProcessor
Perform deaggregation based on a specified custom delimiter.
31 32 33 34 |
# File 'kinesis_firehose/record_de_aggregation_processor.rb', line 31 def self.delimited(delimiter) Jsii::Type.check_type(delimiter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "delimiter") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_kinesisfirehose.RecordDeAggregationProcessor", "delimited", [delimiter]) end |
.jsii_overridable_methods ⇒ Object
20 21 22 23 24 25 |
# File 'kinesis_firehose/record_de_aggregation_processor.rb', line 20 def self.jsii_overridable_methods { :props => { kind: :property, name: "props", is_optional: false }, :bind => { kind: :method, name: "bind", is_optional: false }, } end |
.json ⇒ AWSCDK::KinesisFirehose::RecordDeAggregationProcessor
Perform deaggregation from JSON objects on a single line with no delimiter or newline-delimited (JSONL).
39 40 41 |
# File 'kinesis_firehose/record_de_aggregation_processor.rb', line 39 def self.json() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_kinesisfirehose.RecordDeAggregationProcessor", "json", []) end |
Instance Method Details
#bind(scope, options) ⇒ AWSCDK::KinesisFirehose::DataProcessorConfig
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.
58 59 60 61 62 63 |
# File 'kinesis_firehose/record_de_aggregation_processor.rb', line 58 def bind(scope, ) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") = .is_a?(Hash) ? ::AWSCDK::KinesisFirehose::DataProcessorBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2ZpcmVob3NlLkRhdGFQcm9jZXNzb3JCaW5kT3B0aW9ucyJ9")), "options") jsii_call_method("bind", [scope, ]) end |
#props ⇒ AWSCDK::KinesisFirehose::DataProcessorProps
The constructor props of the DataProcessor.
46 47 48 |
# File 'kinesis_firehose/record_de_aggregation_processor.rb', line 46 def props() jsii_get_property("props") end |