Class: AWSCDK::MediaConnect::CfnGateway::GatewayNetworkProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaConnect::CfnGateway::GatewayNetworkProperty
- Defined in:
- media_connect/cfn_gateway.rb
Overview
The network settings for a gateway.
Instance Attribute Summary collapse
-
#cidr_block ⇒ String
readonly
A unique IP address range to use for this network.
-
#name ⇒ String
readonly
The name of the network.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cidr_block:, name:) ⇒ GatewayNetworkProperty
constructor
A new instance of GatewayNetworkProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cidr_block:, name:) ⇒ GatewayNetworkProperty
Returns a new instance of GatewayNetworkProperty.
546 547 548 549 550 551 |
# File 'media_connect/cfn_gateway.rb', line 546 def initialize(cidr_block:, name:) @cidr_block = cidr_block Jsii::Type.check_type(@cidr_block, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cidrBlock") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") end |
Instance Attribute Details
#cidr_block ⇒ String (readonly)
A unique IP address range to use for this network.
These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
559 560 561 |
# File 'media_connect/cfn_gateway.rb', line 559 def cidr_block @cidr_block end |
#name ⇒ String (readonly)
The name of the network.
This name is used to reference the network and must be unique among networks in this gateway.
566 567 568 |
# File 'media_connect/cfn_gateway.rb', line 566 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
568 569 570 571 572 573 |
# File 'media_connect/cfn_gateway.rb', line 568 def self.jsii_properties { :cidr_block => "cidrBlock", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
575 576 577 578 579 580 581 582 |
# File 'media_connect/cfn_gateway.rb', line 575 def to_jsii result = {} result.merge!({ "cidrBlock" => @cidr_block, "name" => @name, }) result.compact end |