Class: AWSCDK::MediaConnect::CfnRouterNetworkInterfaceProps

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

Overview

Properties for defining a CfnRouterNetworkInterface.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration:, name:, region_name: nil, tags: nil) ⇒ CfnRouterNetworkInterfaceProps

Returns a new instance of CfnRouterNetworkInterfaceProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'media_connect/cfn_router_network_interface_props.rb', line 13

def initialize(configuration:, name:, region_name: nil, tags: nil)
  @configuration = configuration.is_a?(Hash) ? ::AWSCDK::MediaConnect::CfnRouterNetworkInterface::RouterNetworkInterfaceConfigurationProperty.new(**configuration.transform_keys(&:to_sym)) : configuration
  Jsii::Type.check_type(@configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWNvbm5lY3QuQ2ZuUm91dGVyTmV0d29ya0ludGVyZmFjZS5Sb3V0ZXJOZXR3b3JrSW50ZXJmYWNlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "configuration")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @region_name = region_name
  Jsii::Type.check_type(@region_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regionName") unless @region_name.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#nameString (readonly)

The name of the router network interface.



33
34
35
# File 'media_connect/cfn_router_network_interface_props.rb', line 33

def name
  @name
end

#region_nameString? (readonly)

The AWS Region where the router network interface is located.



38
39
40
# File 'media_connect/cfn_router_network_interface_props.rb', line 38

def region_name
  @region_name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

Key-value pairs that can be used to tag and organize this router network interface.



43
44
45
# File 'media_connect/cfn_router_network_interface_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'media_connect/cfn_router_network_interface_props.rb', line 45

def self.jsii_properties
  {
    :configuration => "configuration",
    :name => "name",
    :region_name => "regionName",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'media_connect/cfn_router_network_interface_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "configuration" => @configuration,
    "name" => @name,
    "regionName" => @region_name,
    "tags" => @tags,
  })
  result.compact
end