Class: AWSCDK::Events::EventBusPolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Events::EventBusPolicyProps
- Defined in:
- events/event_bus_policy_props.rb
Overview
Properties to associate Event Buses with a policy.
Instance Attribute Summary collapse
-
#event_bus ⇒ AWSCDK::Events::IEventBus
readonly
The event bus to which the policy applies.
-
#statement ⇒ AWSCDK::IAM::PolicyStatement
readonly
An IAM Policy Statement to apply to the Event Bus.
-
#statement_id ⇒ String
readonly
An identifier string for the external account that you are granting permissions to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(event_bus:, statement:, statement_id:) ⇒ EventBusPolicyProps
constructor
A new instance of EventBusPolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(event_bus:, statement:, statement_id:) ⇒ EventBusPolicyProps
Returns a new instance of EventBusPolicyProps.
10 11 12 13 14 15 16 17 |
# File 'events/event_bus_policy_props.rb', line 10 def initialize(event_bus:, statement:, statement_id:) @event_bus = event_bus Jsii::Type.check_type(@event_bus, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZXZlbnRzLklFdmVudEJ1cyJ9")), "eventBus") @statement = statement Jsii::Type.check_type(@statement, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLlBvbGljeVN0YXRlbWVudCJ9")), "statement") @statement_id = statement_id Jsii::Type.check_type(@statement_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "statementId") end |
Instance Attribute Details
#event_bus ⇒ AWSCDK::Events::IEventBus (readonly)
The event bus to which the policy applies.
22 23 24 |
# File 'events/event_bus_policy_props.rb', line 22 def event_bus @event_bus end |
#statement ⇒ AWSCDK::IAM::PolicyStatement (readonly)
An IAM Policy Statement to apply to the Event Bus.
26 27 28 |
# File 'events/event_bus_policy_props.rb', line 26 def statement @statement end |
#statement_id ⇒ String (readonly)
An identifier string for the external account that you are granting permissions to.
30 31 32 |
# File 'events/event_bus_policy_props.rb', line 30 def statement_id @statement_id end |
Class Method Details
.jsii_properties ⇒ Object
32 33 34 35 36 37 38 |
# File 'events/event_bus_policy_props.rb', line 32 def self.jsii_properties { :event_bus => "eventBus", :statement => "statement", :statement_id => "statementId", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'events/event_bus_policy_props.rb', line 40 def to_jsii result = {} result.merge!({ "eventBus" => @event_bus, "statement" => @statement, "statementId" => @statement_id, }) result.compact end |