Class: AWSCDK::MediaConnect::CfnRouterNetworkInterfaceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaConnect::CfnRouterNetworkInterfaceProps
- Defined in:
- media_connect/cfn_router_network_interface_props.rb
Overview
Properties for defining a CfnRouterNetworkInterface.
Instance Attribute Summary collapse
-
#configuration ⇒ AWSCDK::IResolvable, AWSCDK::MediaConnect::CfnRouterNetworkInterface::RouterNetworkInterfaceConfigurationProperty
readonly
The configuration settings for a router network interface.
-
#name ⇒ String
readonly
The name of the router network interface.
-
#region_name ⇒ String?
readonly
The AWS Region where the router network interface is located.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Key-value pairs that can be used to tag and organize this router network interface.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configuration:, name:, region_name: nil, tags: nil) ⇒ CfnRouterNetworkInterfaceProps
constructor
A new instance of CfnRouterNetworkInterfaceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(configuration:, name:, region_name: nil, tags: nil) ⇒ CfnRouterNetworkInterfaceProps
Returns a new instance of CfnRouterNetworkInterfaceProps.
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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#configuration ⇒ AWSCDK::IResolvable, AWSCDK::MediaConnect::CfnRouterNetworkInterface::RouterNetworkInterfaceConfigurationProperty (readonly)
The configuration settings for a router network interface.
28 29 30 |
# File 'media_connect/cfn_router_network_interface_props.rb', line 28 def configuration @configuration end |
#name ⇒ String (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_name ⇒ String? (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 |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |