Module: AWSCDK::KinesisFirehose::ISource
- Included in:
- KinesisStreamSource
- Defined in:
- kinesis_firehose/i_source.rb
Overview
An interface for defining a source that can be used in an Amazon Data Firehose delivery stream.
Class Method Summary collapse
Instance Method Summary collapse
-
#grant_read(grantee) ⇒ AWSCDK::IAM::Grant
Grant read permissions for this source resource and its contents to an IAM principal (the delivery stream).
Class Method Details
.jsii_overridable_methods ⇒ Object
19 20 21 22 23 |
# File 'kinesis_firehose/i_source.rb', line 19 def self.jsii_overridable_methods { :grant_read => { kind: :method, name: "grantRead", is_optional: false }, } end |
Instance Method Details
#grant_read(grantee) ⇒ AWSCDK::IAM::Grant
Grant read permissions for this source resource and its contents to an IAM principal (the delivery stream).
If an encryption key is used, permission to use the key to decrypt the contents of the stream will also be granted.
14 15 16 17 |
# File 'kinesis_firehose/i_source.rb', line 14 def grant_read(grantee) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") jsii_call_method("grantRead", [grantee]) end |