Class: AWSCDK::KinesisFirehose::S3Bucket

Inherits:
Jsii::Object
  • Object
show all
Includes:
IDestination
Defined in:
kinesis_firehose/s3_bucket.rb

Overview

An S3 bucket destination for data from an Amazon Data Firehose delivery stream.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket, props = nil) ⇒ S3Bucket

Returns a new instance of S3Bucket.

Parameters:



11
12
13
14
15
16
# File 'kinesis_firehose/s3_bucket.rb', line 11

def initialize(bucket, props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::KinesisFirehose::S3BucketProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "bucket")
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2ZpcmVob3NlLlMzQnVja2V0UHJvcHMifQ==")), "props") unless props.nil?
  Jsii::Object.instance_method(:initialize).bind(self).call(bucket, props)
end

Class Method Details

.jsii_overridable_methodsObject



18
19
20
21
22
# File 'kinesis_firehose/s3_bucket.rb', line 18

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(scope, _options) ⇒ AWSCDK::KinesisFirehose::DestinationConfig

Binds this destination to the Amazon Data Firehose delivery stream.

Implementers should use this method to bind resources to the stack and initialize values using the provided stream.

Parameters:

Returns:



31
32
33
34
35
36
# File 'kinesis_firehose/s3_bucket.rb', line 31

def bind(scope, _options)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  _options = _options.is_a?(Hash) ? ::AWSCDK::KinesisFirehose::DestinationBindOptions.new(**_options.transform_keys(&:to_sym)) : _options
  Jsii::Type.check_type(_options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2ZpcmVob3NlLkRlc3RpbmF0aW9uQmluZE9wdGlvbnMifQ==")), "_options")
  jsii_call_method("bind", [scope, _options])
end