Class: AWSCDK::MediaConnect::CfnRouterNetworkInterface::PublicRouterNetworkInterfaceRuleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_connect/cfn_router_network_interface.rb

Overview

A rule that allows a specific CIDR block to access the public router network interface.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cidr:) ⇒ PublicRouterNetworkInterfaceRuleProperty

Returns a new instance of PublicRouterNetworkInterfaceRuleProperty.

Parameters:

  • cidr (String)

    The CIDR block that is allowed to access the public router network interface.



646
647
648
649
# File 'media_connect/cfn_router_network_interface.rb', line 646

def initialize(cidr:)
  @cidr = cidr
  Jsii::Type.check_type(@cidr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cidr")
end

Instance Attribute Details

#cidrString (readonly)

The CIDR block that is allowed to access the public router network interface.



655
656
657
# File 'media_connect/cfn_router_network_interface.rb', line 655

def cidr
  @cidr
end

Class Method Details

.jsii_propertiesObject



657
658
659
660
661
# File 'media_connect/cfn_router_network_interface.rb', line 657

def self.jsii_properties
  {
    :cidr => "cidr",
  }
end

Instance Method Details

#to_jsiiObject



663
664
665
666
667
668
669
# File 'media_connect/cfn_router_network_interface.rb', line 663

def to_jsii
  result = {}
  result.merge!({
    "cidr" => @cidr,
  })
  result.compact
end