Class: AWSCDK::KinesisFirehose::S3Bucket
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::KinesisFirehose::S3Bucket
- 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
-
#bind(scope, _options) ⇒ AWSCDK::KinesisFirehose::DestinationConfig
Binds this destination to the Amazon Data Firehose delivery stream.
-
#initialize(bucket, props = nil) ⇒ S3Bucket
constructor
A new instance of S3Bucket.
Constructor Details
#initialize(bucket, props = nil) ⇒ S3Bucket
Returns a new instance of S3Bucket.
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_methods ⇒ Object
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.
31 32 33 34 35 36 |
# File 'kinesis_firehose/s3_bucket.rb', line 31 def bind(scope, ) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") = .is_a?(Hash) ? ::AWSCDK::KinesisFirehose::DestinationBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2ZpcmVob3NlLkRlc3RpbmF0aW9uQmluZE9wdGlvbnMifQ==")), "_options") jsii_call_method("bind", [scope, ]) end |