Class: AWSCDK::Events::CfnEventBusPolicy::ConditionProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key: nil, type: nil, value: nil) ⇒ ConditionProperty

Returns a new instance of ConditionProperty.

Parameters:

  • key (String, nil) (defaults to: nil)

    Specifies the value for the key.

  • type (String, nil) (defaults to: nil)

    Specifies the type of condition.

  • value (String, nil) (defaults to: nil)

    Specifies the key for the condition.



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

#keyString? (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

#typeString? (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

#valueString? (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_propertiesObject



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_jsiiObject



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