Class: AWSCDK::MediaConnect::CfnRouterNetworkInterface::VPCRouterNetworkInterfaceConfigurationProperty

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

Overview

The configuration settings for a router network interface within a VPC, including the security group IDs and subnet ID.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(security_group_ids:, subnet_id:) ⇒ VPCRouterNetworkInterfaceConfigurationProperty

Returns a new instance of VPCRouterNetworkInterfaceConfigurationProperty.

Parameters:

  • security_group_ids (Array<String>)

    The IDs of the security groups to associate with the router network interface within the VPC.

  • subnet_id (String)

    The ID of the subnet within the VPC to associate the router network interface with.



721
722
723
724
725
726
# File 'media_connect/cfn_router_network_interface.rb', line 721

def initialize(security_group_ids:, subnet_id:)
  @security_group_ids = security_group_ids
  Jsii::Type.check_type(@security_group_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "securityGroupIds")
  @subnet_id = subnet_id
  Jsii::Type.check_type(@subnet_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetId")
end

Instance Attribute Details

#security_group_idsArray<String> (readonly)

The IDs of the security groups to associate with the router network interface within the VPC.



732
733
734
# File 'media_connect/cfn_router_network_interface.rb', line 732

def security_group_ids
  @security_group_ids
end

#subnet_idString (readonly)

The ID of the subnet within the VPC to associate the router network interface with.



737
738
739
# File 'media_connect/cfn_router_network_interface.rb', line 737

def subnet_id
  @subnet_id
end

Class Method Details

.jsii_propertiesObject



739
740
741
742
743
744
# File 'media_connect/cfn_router_network_interface.rb', line 739

def self.jsii_properties
  {
    :security_group_ids => "securityGroupIds",
    :subnet_id => "subnetId",
  }
end

Instance Method Details

#to_jsiiObject



746
747
748
749
750
751
752
753
# File 'media_connect/cfn_router_network_interface.rb', line 746

def to_jsii
  result = {}
  result.merge!({
    "securityGroupIds" => @security_group_ids,
    "subnetId" => @subnet_id,
  })
  result.compact
end