Class: AWSCDK::Events::CfnEventBusPolicy::ConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Events::CfnEventBusPolicy::ConditionProperty
- Defined in:
- events/cfn_event_bus_policy.rb
Overview
This parameter enables you to limit the permission to accounts that fulfill a certain condition, such as being a member of a certain AWS organization.
Instance Attribute Summary collapse
-
#key ⇒ String?
readonly
Specifies the value for the key.
-
#type ⇒ String?
readonly
Specifies the type of condition.
-
#value ⇒ String?
readonly
Specifies the key for the condition.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: nil, type: nil, value: nil) ⇒ ConditionProperty
constructor
A new instance of ConditionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key: nil, type: nil, value: nil) ⇒ ConditionProperty
Returns a new instance of ConditionProperty.
573 574 575 576 577 578 579 580 |
# File 'events/cfn_event_bus_policy.rb', line 573 def initialize(key: nil, type: nil, value: nil) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#key ⇒ String? (readonly)
Specifies the value for the key.
Currently, this must be the ID of the organization.
588 589 590 |
# File 'events/cfn_event_bus_policy.rb', line 588 def key @key end |
#type ⇒ String? (readonly)
Specifies the type of condition.
Currently the only supported value is StringEquals.
595 596 597 |
# File 'events/cfn_event_bus_policy.rb', line 595 def type @type end |
#value ⇒ String? (readonly)
Specifies the key for the condition.
Currently the only supported key is aws:PrincipalOrgID.
602 603 604 |
# File 'events/cfn_event_bus_policy.rb', line 602 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
604 605 606 607 608 609 610 |
# File 'events/cfn_event_bus_policy.rb', line 604 def self.jsii_properties { :key => "key", :type => "type", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
612 613 614 615 616 617 618 619 620 |
# File 'events/cfn_event_bus_policy.rb', line 612 def to_jsii result = {} result.merge!({ "key" => @key, "type" => @type, "value" => @value, }) result.compact end |