Class: AWSCDK::MediaConnect::CfnRouterNetworkInterface::PublicRouterNetworkInterfaceRuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaConnect::CfnRouterNetworkInterface::PublicRouterNetworkInterfaceRuleProperty
- 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
-
#cidr ⇒ String
readonly
The CIDR block that is allowed to access the public router network interface.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cidr:) ⇒ PublicRouterNetworkInterfaceRuleProperty
constructor
A new instance of PublicRouterNetworkInterfaceRuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cidr:) ⇒ PublicRouterNetworkInterfaceRuleProperty
Returns a new instance of PublicRouterNetworkInterfaceRuleProperty.
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
#cidr ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |