Class: AWSCDK::LogsDestinations::FirehoseDestinationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LogsDestinations::FirehoseDestinationProps
- Defined in:
- logs_destinations/firehose_destination_props.rb
Overview
Customize the Amazon Data Firehose Logs Destination.
Instance Attribute Summary collapse
-
#role ⇒ AWSCDK::IAM::IRole?
readonly
The role to assume to write log events to the destination.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role: nil) ⇒ FirehoseDestinationProps
constructor
A new instance of FirehoseDestinationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role: nil) ⇒ FirehoseDestinationProps
Returns a new instance of FirehoseDestinationProps.
8 9 10 11 |
# File 'logs_destinations/firehose_destination_props.rb', line 8 def initialize(role: nil) @role = role Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "role") unless @role.nil? end |
Instance Attribute Details
#role ⇒ AWSCDK::IAM::IRole? (readonly)
Note:
Default: - A new Role is created
The role to assume to write log events to the destination.
17 18 19 |
# File 'logs_destinations/firehose_destination_props.rb', line 17 def role @role end |
Class Method Details
.jsii_properties ⇒ Object
19 20 21 22 23 |
# File 'logs_destinations/firehose_destination_props.rb', line 19 def self.jsii_properties { :role => "role", } end |
Instance Method Details
#to_jsii ⇒ Object
25 26 27 28 29 30 31 |
# File 'logs_destinations/firehose_destination_props.rb', line 25 def to_jsii result = {} result.merge!({ "role" => @role, }) result.compact end |