Class: AWSCDK::MediaLive::CfnChannel::ArchiveGroupSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnChannel::ArchiveGroupSettingsProperty
- Defined in:
- media_live/cfn_channel.rb
Overview
The settings for an archive output group.
The parent of this entity is OutputGroupSettings.
Instance Attribute Summary collapse
-
#archive_cdn_settings ⇒ AWSCDK::IResolvable, ...
readonly
Settings to configure the destination of an Archive output.
-
#destination ⇒ AWSCDK::IResolvable, ...
readonly
A directory and base file name where archive files should be written.
-
#rollover_interval ⇒ Numeric?
readonly
The number of seconds to write to an archive file before closing and starting a new one.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(archive_cdn_settings: nil, destination: nil, rollover_interval: nil) ⇒ ArchiveGroupSettingsProperty
constructor
A new instance of ArchiveGroupSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(archive_cdn_settings: nil, destination: nil, rollover_interval: nil) ⇒ ArchiveGroupSettingsProperty
Returns a new instance of ArchiveGroupSettingsProperty.
1209 1210 1211 1212 1213 1214 1215 1216 |
# File 'media_live/cfn_channel.rb', line 1209 def initialize(archive_cdn_settings: nil, destination: nil, rollover_interval: nil) @archive_cdn_settings = archive_cdn_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::ArchiveCdnSettingsProperty.new(**archive_cdn_settings.transform_keys(&:to_sym)) : archive_cdn_settings Jsii::Type.check_type(@archive_cdn_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5BcmNoaXZlQ2RuU2V0dGluZ3NQcm9wZXJ0eSJ9XX19")), "archiveCdnSettings") unless @archive_cdn_settings.nil? @destination = destination.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::OutputLocationRefProperty.new(**destination.transform_keys(&:to_sym)) : destination Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5PdXRwdXRMb2NhdGlvblJlZlByb3BlcnR5In1dfX0=")), "destination") unless @destination.nil? @rollover_interval = rollover_interval Jsii::Type.check_type(@rollover_interval, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "rolloverInterval") unless @rollover_interval.nil? end |
Instance Attribute Details
#archive_cdn_settings ⇒ AWSCDK::IResolvable, ... (readonly)
Settings to configure the destination of an Archive output.
1222 1223 1224 |
# File 'media_live/cfn_channel.rb', line 1222 def archive_cdn_settings @archive_cdn_settings end |
#destination ⇒ AWSCDK::IResolvable, ... (readonly)
A directory and base file name where archive files should be written.
1227 1228 1229 |
# File 'media_live/cfn_channel.rb', line 1227 def destination @destination end |
#rollover_interval ⇒ Numeric? (readonly)
The number of seconds to write to an archive file before closing and starting a new one.
1232 1233 1234 |
# File 'media_live/cfn_channel.rb', line 1232 def rollover_interval @rollover_interval end |
Class Method Details
.jsii_properties ⇒ Object
1234 1235 1236 1237 1238 1239 1240 |
# File 'media_live/cfn_channel.rb', line 1234 def self.jsii_properties { :archive_cdn_settings => "archiveCdnSettings", :destination => "destination", :rollover_interval => "rolloverInterval", } end |
Instance Method Details
#to_jsii ⇒ Object
1242 1243 1244 1245 1246 1247 1248 1249 1250 |
# File 'media_live/cfn_channel.rb', line 1242 def to_jsii result = {} result.merge!({ "archiveCdnSettings" => @archive_cdn_settings, "destination" => @destination, "rolloverInterval" => @rollover_interval, }) result.compact end |