Class: AWSCDK::MediaLive::CfnInputProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnInputProps
- Defined in:
- media_live/cfn_input_props.rb
Overview
Properties for defining a CfnInput.
Instance Attribute Summary collapse
-
#destinations ⇒ AWSCDK::IResolvable, ...
readonly
Settings that apply only if the input is a push type of input.
-
#input_devices ⇒ AWSCDK::IResolvable, ...
readonly
Settings that apply only if the input is an Elemental Link input.
- #input_network_location ⇒ String? readonly
-
#input_security_groups ⇒ Array<String>?
readonly
The list of input security groups (referenced by IDs) to attach to the input if the input is a push type.
-
#media_connect_flows ⇒ AWSCDK::IResolvable, ...
readonly
Settings that apply only if the input is a MediaConnect input.
- #multicast_settings ⇒ AWSCDK::IResolvable, ... readonly
-
#name ⇒ String?
readonly
A name for the input.
-
#role_arn ⇒ String?
readonly
The IAM role for MediaLive to assume when creating a MediaConnect input or Amazon VPC input.
- #router_settings ⇒ AWSCDK::IResolvable, ... readonly
- #sdi_sources ⇒ Array<String>? readonly
- #smpte2110_receiver_group_settings ⇒ AWSCDK::IResolvable, ... readonly
-
#sources ⇒ AWSCDK::IResolvable, ...
readonly
Settings that apply only if the input is a pull type of input.
- #srt_settings ⇒ AWSCDK::IResolvable, ... readonly
-
#tags ⇒ Object?
readonly
A collection of tags for this input.
-
#type ⇒ String?
readonly
The type for this input.
-
#vpc ⇒ AWSCDK::IResolvable, ...
readonly
Settings that apply only if the input is an push input where the source is on Amazon VPC.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destinations: nil, input_devices: nil, input_network_location: nil, input_security_groups: nil, media_connect_flows: nil, multicast_settings: nil, name: nil, role_arn: nil, router_settings: nil, sdi_sources: nil, smpte2110_receiver_group_settings: nil, sources: nil, srt_settings: nil, tags: nil, type: nil, vpc: nil) ⇒ CfnInputProps
constructor
A new instance of CfnInputProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destinations: nil, input_devices: nil, input_network_location: nil, input_security_groups: nil, media_connect_flows: nil, multicast_settings: nil, name: nil, role_arn: nil, router_settings: nil, sdi_sources: nil, smpte2110_receiver_group_settings: nil, sources: nil, srt_settings: nil, tags: nil, type: nil, vpc: nil) ⇒ CfnInputProps
Returns a new instance of CfnInputProps.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'media_live/cfn_input_props.rb', line 25 def initialize(destinations: nil, input_devices: nil, input_network_location: nil, input_security_groups: nil, media_connect_flows: nil, multicast_settings: nil, name: nil, role_arn: nil, router_settings: nil, sdi_sources: nil, smpte2110_receiver_group_settings: nil, sources: nil, srt_settings: nil, tags: nil, type: nil, vpc: nil) @destinations = destinations Jsii::Type.check_type(@destinations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWFsaXZlLkNmbklucHV0LklucHV0RGVzdGluYXRpb25SZXF1ZXN0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "destinations") unless @destinations.nil? @input_devices = input_devices Jsii::Type.check_type(@input_devices, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWFsaXZlLkNmbklucHV0LklucHV0RGV2aWNlU2V0dGluZ3NQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "inputDevices") unless @input_devices.nil? @input_network_location = input_network_location Jsii::Type.check_type(@input_network_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputNetworkLocation") unless @input_network_location.nil? @input_security_groups = input_security_groups Jsii::Type.check_type(@input_security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "inputSecurityGroups") unless @input_security_groups.nil? @media_connect_flows = media_connect_flows Jsii::Type.check_type(@media_connect_flows, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWFsaXZlLkNmbklucHV0Lk1lZGlhQ29ubmVjdEZsb3dSZXF1ZXN0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "mediaConnectFlows") unless @media_connect_flows.nil? @multicast_settings = multicast_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnInput::MulticastSettingsCreateRequestProperty.new(**multicast_settings.transform_keys(&:to_sym)) : multicast_settings Jsii::Type.check_type(@multicast_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuSW5wdXQuTXVsdGljYXN0U2V0dGluZ3NDcmVhdGVSZXF1ZXN0UHJvcGVydHkifV19fQ==")), "multicastSettings") unless @multicast_settings.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") unless @role_arn.nil? @router_settings = router_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnInput::RouterSettingsProperty.new(**router_settings.transform_keys(&:to_sym)) : router_settings Jsii::Type.check_type(@router_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuSW5wdXQuUm91dGVyU2V0dGluZ3NQcm9wZXJ0eSJ9XX19")), "routerSettings") unless @router_settings.nil? @sdi_sources = sdi_sources Jsii::Type.check_type(@sdi_sources, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "sdiSources") unless @sdi_sources.nil? @smpte2110_receiver_group_settings = smpte2110_receiver_group_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnInput::Smpte2110ReceiverGroupSettingsProperty.new(**smpte2110_receiver_group_settings.transform_keys(&:to_sym)) : smpte2110_receiver_group_settings Jsii::Type.check_type(@smpte2110_receiver_group_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuSW5wdXQuU21wdGUyMTEwUmVjZWl2ZXJHcm91cFNldHRpbmdzUHJvcGVydHkifV19fQ==")), "smpte2110ReceiverGroupSettings") unless @smpte2110_receiver_group_settings.nil? @sources = sources Jsii::Type.check_type(@sources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWFsaXZlLkNmbklucHV0LklucHV0U291cmNlUmVxdWVzdFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "sources") unless @sources.nil? @srt_settings = srt_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnInput::SrtSettingsRequestProperty.new(**srt_settings.transform_keys(&:to_sym)) : srt_settings Jsii::Type.check_type(@srt_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuSW5wdXQuU3J0U2V0dGluZ3NSZXF1ZXN0UHJvcGVydHkifV19fQ==")), "srtSettings") unless @srt_settings.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "tags") unless @tags.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? @vpc = vpc.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnInput::InputVPCRequestProperty.new(**vpc.transform_keys(&:to_sym)) : vpc Jsii::Type.check_type(@vpc, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuSW5wdXQuSW5wdXRWcGNSZXF1ZXN0UHJvcGVydHkifV19fQ==")), "vpc") unless @vpc.nil? end |
Instance Attribute Details
#destinations ⇒ AWSCDK::IResolvable, ... (readonly)
Settings that apply only if the input is a push type of input.
64 65 66 |
# File 'media_live/cfn_input_props.rb', line 64 def destinations @destinations end |
#input_devices ⇒ AWSCDK::IResolvable, ... (readonly)
Settings that apply only if the input is an Elemental Link input.
69 70 71 |
# File 'media_live/cfn_input_props.rb', line 69 def input_devices @input_devices end |
#input_network_location ⇒ String? (readonly)
72 73 74 |
# File 'media_live/cfn_input_props.rb', line 72 def input_network_location @input_network_location end |
#input_security_groups ⇒ Array<String>? (readonly)
The list of input security groups (referenced by IDs) to attach to the input if the input is a push type.
77 78 79 |
# File 'media_live/cfn_input_props.rb', line 77 def input_security_groups @input_security_groups end |
#media_connect_flows ⇒ AWSCDK::IResolvable, ... (readonly)
Settings that apply only if the input is a MediaConnect input.
82 83 84 |
# File 'media_live/cfn_input_props.rb', line 82 def media_connect_flows @media_connect_flows end |
#multicast_settings ⇒ AWSCDK::IResolvable, ... (readonly)
85 86 87 |
# File 'media_live/cfn_input_props.rb', line 85 def multicast_settings @multicast_settings end |
#name ⇒ String? (readonly)
A name for the input.
90 91 92 |
# File 'media_live/cfn_input_props.rb', line 90 def name @name end |
#role_arn ⇒ String? (readonly)
The IAM role for MediaLive to assume when creating a MediaConnect input or Amazon VPC input.
This doesn't apply to other types of inputs. The role is identified by its ARN.
97 98 99 |
# File 'media_live/cfn_input_props.rb', line 97 def role_arn @role_arn end |
#router_settings ⇒ AWSCDK::IResolvable, ... (readonly)
100 101 102 |
# File 'media_live/cfn_input_props.rb', line 100 def router_settings @router_settings end |
#sdi_sources ⇒ Array<String>? (readonly)
103 104 105 |
# File 'media_live/cfn_input_props.rb', line 103 def sdi_sources @sdi_sources end |
#smpte2110_receiver_group_settings ⇒ AWSCDK::IResolvable, ... (readonly)
106 107 108 |
# File 'media_live/cfn_input_props.rb', line 106 def smpte2110_receiver_group_settings @smpte2110_receiver_group_settings end |
#sources ⇒ AWSCDK::IResolvable, ... (readonly)
Settings that apply only if the input is a pull type of input.
111 112 113 |
# File 'media_live/cfn_input_props.rb', line 111 def sources @sources end |
#srt_settings ⇒ AWSCDK::IResolvable, ... (readonly)
114 115 116 |
# File 'media_live/cfn_input_props.rb', line 114 def srt_settings @srt_settings end |
#tags ⇒ Object? (readonly)
A collection of tags for this input.
Each tag is a key-value pair.
121 122 123 |
# File 'media_live/cfn_input_props.rb', line 121 def @tags end |
#type ⇒ String? (readonly)
The type for this input.
126 127 128 |
# File 'media_live/cfn_input_props.rb', line 126 def type @type end |
#vpc ⇒ AWSCDK::IResolvable, ... (readonly)
Settings that apply only if the input is an push input where the source is on Amazon VPC.
131 132 133 |
# File 'media_live/cfn_input_props.rb', line 131 def vpc @vpc end |
Class Method Details
.jsii_properties ⇒ Object
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
# File 'media_live/cfn_input_props.rb', line 133 def self.jsii_properties { :destinations => "destinations", :input_devices => "inputDevices", :input_network_location => "inputNetworkLocation", :input_security_groups => "inputSecurityGroups", :media_connect_flows => "mediaConnectFlows", :multicast_settings => "multicastSettings", :name => "name", :role_arn => "roleArn", :router_settings => "routerSettings", :sdi_sources => "sdiSources", :smpte2110_receiver_group_settings => "smpte2110ReceiverGroupSettings", :sources => "sources", :srt_settings => "srtSettings", :tags => "tags", :type => "type", :vpc => "vpc", } end |
Instance Method Details
#to_jsii ⇒ Object
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'media_live/cfn_input_props.rb', line 154 def to_jsii result = {} result.merge!({ "destinations" => @destinations, "inputDevices" => @input_devices, "inputNetworkLocation" => @input_network_location, "inputSecurityGroups" => @input_security_groups, "mediaConnectFlows" => @media_connect_flows, "multicastSettings" => @multicast_settings, "name" => @name, "roleArn" => @role_arn, "routerSettings" => @router_settings, "sdiSources" => @sdi_sources, "smpte2110ReceiverGroupSettings" => @smpte2110_receiver_group_settings, "sources" => @sources, "srtSettings" => @srt_settings, "tags" => @tags, "type" => @type, "vpc" => @vpc, }) result.compact end |