Class: AWSCDK::MediaConnect::CfnGateway::GatewayNetworkProperty

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

Overview

The network settings for a gateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cidr_block:, name:) ⇒ GatewayNetworkProperty

Returns a new instance of GatewayNetworkProperty.

Parameters:

  • cidr_block (String)

    A unique IP address range to use for this network.

  • name (String)

    The name of the network.



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_blockString (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

#nameString (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_propertiesObject



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_jsiiObject



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