UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

755 lines (754 loc) 645 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12; Object.defineProperty(exports, "__esModule", { value: true }); exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsDvbSubSourceSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsDvbSubSourceSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsAribSourceSettingsOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsAribSourceSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsAribSourceSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsAncillarySourceSettingsOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsAncillarySourceSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsAncillarySourceSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorList = exports.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioTrackSelectionOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioTrackSelectionToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioTrackSelectionToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioTrackSelectionTracksList = exports.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioTrackSelectionTracksOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioTrackSelectionTracksToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioTrackSelectionTracksToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioTrackSelectionDolbyEDecodeOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioTrackSelectionDolbyEDecodeToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioTrackSelectionDolbyEDecodeToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioPidSelectionOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioPidSelectionToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioPidSelectionToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioLanguageSelectionOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioLanguageSelectionToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioLanguageSelectionToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionToTerraform = exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsOutputReference = exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsToTerraform = exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionList = exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionOutputReference = exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionToHclTerraform = exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionToTerraform = exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsOutputReference = exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsToTerraform = exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsOutputReference = exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsToTerraform = exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsOutputReference = exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsToTerraform = void 0; exports.medialiveChannelVpcToHclTerraform = exports.medialiveChannelVpcToTerraform = exports.MedialiveChannelTimeoutsOutputReference = exports.medialiveChannelTimeoutsToHclTerraform = exports.medialiveChannelTimeoutsToTerraform = exports.MedialiveChannelMaintenanceOutputReference = exports.medialiveChannelMaintenanceToHclTerraform = exports.medialiveChannelMaintenanceToTerraform = exports.MedialiveChannelInputSpecificationOutputReference = exports.medialiveChannelInputSpecificationToHclTerraform = exports.medialiveChannelInputSpecificationToTerraform = exports.MedialiveChannelInputAttachmentsList = exports.MedialiveChannelInputAttachmentsOutputReference = exports.medialiveChannelInputAttachmentsToHclTerraform = exports.medialiveChannelInputAttachmentsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsVideoSelectorOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsVideoSelectorToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsVideoSelectorToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsNetworkInputSettingsOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsNetworkInputSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsNetworkInputSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsNetworkInputSettingsHlsInputSettingsOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsNetworkInputSettingsHlsInputSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsNetworkInputSettingsHlsInputSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsCaptionSelectorList = exports.MedialiveChannelInputAttachmentsInputSettingsCaptionSelectorOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsTeletextSourceSettingsOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsTeletextSourceSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsTeletextSourceSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsTeletextSourceSettingsOutputRectangleOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsTeletextSourceSettingsOutputRectangleToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsTeletextSourceSettingsOutputRectangleToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsScte27SourceSettingsOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsScte27SourceSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsScte27SourceSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsScte20SourceSettingsOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsScte20SourceSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsScte20SourceSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsEmbeddedSourceSettingsOutputReference = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsEmbeddedSourceSettingsToHclTerraform = exports.medialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsEmbeddedSourceSettingsToTerraform = exports.MedialiveChannelInputAttachmentsInputSettingsCaptionSelectorSelectorSettingsDvbSubSourceSettingsOutputReference = void 0; exports.MedialiveChannelVpcOutputReference = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); /** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ const cdktf = require("cdktf"); const structs0_1 = require("./structs0"); function medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { input_loss_threshold_msec: cdktf.numberToTerraform(struct.inputLossThresholdMsec), }; } exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsToTerraform = medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsToTerraform; function medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { input_loss_threshold_msec: { value: cdktf.numberToHclTerraform(struct.inputLossThresholdMsec), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsToHclTerraform = medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsToHclTerraform; class MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._inputLossThresholdMsec !== undefined) { hasAnyValues = true; internalValueResult.inputLossThresholdMsec = this._inputLossThresholdMsec; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._inputLossThresholdMsec = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._inputLossThresholdMsec = value.inputLossThresholdMsec; } } get inputLossThresholdMsec() { return this.getNumberAttribute('input_loss_threshold_msec'); } set inputLossThresholdMsec(value) { this._inputLossThresholdMsec = value; } resetInputLossThresholdMsec() { this._inputLossThresholdMsec = undefined; } // Temporarily expose input value. Use with caution. get inputLossThresholdMsecInput() { return this._inputLossThresholdMsec; } } exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsOutputReference = MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsOutputReference; _a = JSII_RTTI_SYMBOL_1; MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsOutputReference[_a] = { fqn: "@cdktf/provider-aws.medialiveChannel.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsOutputReference", version: "19.50.0" }; function medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { black_detect_threshold: cdktf.numberToTerraform(struct.blackDetectThreshold), video_black_threshold_msec: cdktf.numberToTerraform(struct.videoBlackThresholdMsec), }; } exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsToTerraform = medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsToTerraform; function medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { black_detect_threshold: { value: cdktf.numberToHclTerraform(struct.blackDetectThreshold), isBlock: false, type: "simple", storageClassType: "number", }, video_black_threshold_msec: { value: cdktf.numberToHclTerraform(struct.videoBlackThresholdMsec), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsToHclTerraform = medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsToHclTerraform; class MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._blackDetectThreshold !== undefined) { hasAnyValues = true; internalValueResult.blackDetectThreshold = this._blackDetectThreshold; } if (this._videoBlackThresholdMsec !== undefined) { hasAnyValues = true; internalValueResult.videoBlackThresholdMsec = this._videoBlackThresholdMsec; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._blackDetectThreshold = undefined; this._videoBlackThresholdMsec = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._blackDetectThreshold = value.blackDetectThreshold; this._videoBlackThresholdMsec = value.videoBlackThresholdMsec; } } get blackDetectThreshold() { return this.getNumberAttribute('black_detect_threshold'); } set blackDetectThreshold(value) { this._blackDetectThreshold = value; } resetBlackDetectThreshold() { this._blackDetectThreshold = undefined; } // Temporarily expose input value. Use with caution. get blackDetectThresholdInput() { return this._blackDetectThreshold; } get videoBlackThresholdMsec() { return this.getNumberAttribute('video_black_threshold_msec'); } set videoBlackThresholdMsec(value) { this._videoBlackThresholdMsec = value; } resetVideoBlackThresholdMsec() { this._videoBlackThresholdMsec = undefined; } // Temporarily expose input value. Use with caution. get videoBlackThresholdMsecInput() { return this._videoBlackThresholdMsec; } } exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsOutputReference = MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsOutputReference; _b = JSII_RTTI_SYMBOL_1; MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsOutputReference[_b] = { fqn: "@cdktf/provider-aws.medialiveChannel.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsOutputReference", version: "19.50.0" }; function medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { audio_silence_settings: (0, structs0_1.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsAudioSilenceSettingsToTerraform)(struct.audioSilenceSettings), input_loss_settings: medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsToTerraform(struct.inputLossSettings), video_black_settings: medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsToTerraform(struct.videoBlackSettings), }; } exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsToTerraform = medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsToTerraform; function medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { audio_silence_settings: { value: (0, structs0_1.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsAudioSilenceSettingsToHclTerraform)(struct.audioSilenceSettings), isBlock: true, type: "list", storageClassType: "MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsAudioSilenceSettingsList", }, input_loss_settings: { value: medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsToHclTerraform(struct.inputLossSettings), isBlock: true, type: "list", storageClassType: "MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsList", }, video_black_settings: { value: medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsToHclTerraform(struct.videoBlackSettings), isBlock: true, type: "list", storageClassType: "MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsToHclTerraform = medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsToHclTerraform; class MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // audio_silence_settings - computed: false, optional: true, required: false this._audioSilenceSettings = new structs0_1.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsAudioSilenceSettingsOutputReference(this, "audio_silence_settings"); // input_loss_settings - computed: false, optional: true, required: false this._inputLossSettings = new MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsInputLossSettingsOutputReference(this, "input_loss_settings"); // video_black_settings - computed: false, optional: true, required: false this._videoBlackSettings = new MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsVideoBlackSettingsOutputReference(this, "video_black_settings"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._audioSilenceSettings?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.audioSilenceSettings = this._audioSilenceSettings?.internalValue; } if (this._inputLossSettings?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.inputLossSettings = this._inputLossSettings?.internalValue; } if (this._videoBlackSettings?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.videoBlackSettings = this._videoBlackSettings?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._audioSilenceSettings.internalValue = undefined; this._inputLossSettings.internalValue = undefined; this._videoBlackSettings.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._audioSilenceSettings.internalValue = value.audioSilenceSettings; this._inputLossSettings.internalValue = value.inputLossSettings; this._videoBlackSettings.internalValue = value.videoBlackSettings; } } get audioSilenceSettings() { return this._audioSilenceSettings; } putAudioSilenceSettings(value) { this._audioSilenceSettings.internalValue = value; } resetAudioSilenceSettings() { this._audioSilenceSettings.internalValue = undefined; } // Temporarily expose input value. Use with caution. get audioSilenceSettingsInput() { return this._audioSilenceSettings.internalValue; } get inputLossSettings() { return this._inputLossSettings; } putInputLossSettings(value) { this._inputLossSettings.internalValue = value; } resetInputLossSettings() { this._inputLossSettings.internalValue = undefined; } // Temporarily expose input value. Use with caution. get inputLossSettingsInput() { return this._inputLossSettings.internalValue; } get videoBlackSettings() { return this._videoBlackSettings; } putVideoBlackSettings(value) { this._videoBlackSettings.internalValue = value; } resetVideoBlackSettings() { this._videoBlackSettings.internalValue = undefined; } // Temporarily expose input value. Use with caution. get videoBlackSettingsInput() { return this._videoBlackSettings.internalValue; } } exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsOutputReference = MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsOutputReference; _c = JSII_RTTI_SYMBOL_1; MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsOutputReference[_c] = { fqn: "@cdktf/provider-aws.medialiveChannel.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsOutputReference", version: "19.50.0" }; function medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { failover_condition_settings: medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsToTerraform(struct.failoverConditionSettings), }; } exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionToTerraform = medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionToTerraform; function medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { failover_condition_settings: { value: medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsToHclTerraform(struct.failoverConditionSettings), isBlock: true, type: "list", storageClassType: "MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionToHclTerraform = medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionToHclTerraform; class MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // failover_condition_settings - computed: false, optional: true, required: false this._failoverConditionSettings = new MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionFailoverConditionSettingsOutputReference(this, "failover_condition_settings"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._failoverConditionSettings?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.failoverConditionSettings = this._failoverConditionSettings?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._failoverConditionSettings.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._failoverConditionSettings.internalValue = value.failoverConditionSettings; } } get failoverConditionSettings() { return this._failoverConditionSettings; } putFailoverConditionSettings(value) { this._failoverConditionSettings.internalValue = value; } resetFailoverConditionSettings() { this._failoverConditionSettings.internalValue = undefined; } // Temporarily expose input value. Use with caution. get failoverConditionSettingsInput() { return this._failoverConditionSettings.internalValue; } } exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionOutputReference = MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionOutputReference; _d = JSII_RTTI_SYMBOL_1; MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionOutputReference[_d] = { fqn: "@cdktf/provider-aws.medialiveChannel.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionOutputReference", version: "19.50.0" }; class MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionList = MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionList; _e = JSII_RTTI_SYMBOL_1; MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionList[_e] = { fqn: "@cdktf/provider-aws.medialiveChannel.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionList", version: "19.50.0" }; function medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { error_clear_time_msec: cdktf.numberToTerraform(struct.errorClearTimeMsec), input_preference: cdktf.stringToTerraform(struct.inputPreference), secondary_input_id: cdktf.stringToTerraform(struct.secondaryInputId), failover_condition: cdktf.listMapper(medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionToTerraform, true)(struct.failoverCondition), }; } exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsToTerraform = medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsToTerraform; function medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { error_clear_time_msec: { value: cdktf.numberToHclTerraform(struct.errorClearTimeMsec), isBlock: false, type: "simple", storageClassType: "number", }, input_preference: { value: cdktf.stringToHclTerraform(struct.inputPreference), isBlock: false, type: "simple", storageClassType: "string", }, secondary_input_id: { value: cdktf.stringToHclTerraform(struct.secondaryInputId), isBlock: false, type: "simple", storageClassType: "string", }, failover_condition: { value: cdktf.listMapperHcl(medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionToHclTerraform, true)(struct.failoverCondition), isBlock: true, type: "set", storageClassType: "MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsToHclTerraform = medialiveChannelInputAttachmentsAutomaticInputFailoverSettingsToHclTerraform; class MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // failover_condition - computed: false, optional: true, required: false this._failoverCondition = new MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsFailoverConditionList(this, "failover_condition", true); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._errorClearTimeMsec !== undefined) { hasAnyValues = true; internalValueResult.errorClearTimeMsec = this._errorClearTimeMsec; } if (this._inputPreference !== undefined) { hasAnyValues = true; internalValueResult.inputPreference = this._inputPreference; } if (this._secondaryInputId !== undefined) { hasAnyValues = true; internalValueResult.secondaryInputId = this._secondaryInputId; } if (this._failoverCondition?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.failoverCondition = this._failoverCondition?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._errorClearTimeMsec = undefined; this._inputPreference = undefined; this._secondaryInputId = undefined; this._failoverCondition.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._errorClearTimeMsec = value.errorClearTimeMsec; this._inputPreference = value.inputPreference; this._secondaryInputId = value.secondaryInputId; this._failoverCondition.internalValue = value.failoverCondition; } } get errorClearTimeMsec() { return this.getNumberAttribute('error_clear_time_msec'); } set errorClearTimeMsec(value) { this._errorClearTimeMsec = value; } resetErrorClearTimeMsec() { this._errorClearTimeMsec = undefined; } // Temporarily expose input value. Use with caution. get errorClearTimeMsecInput() { return this._errorClearTimeMsec; } get inputPreference() { return this.getStringAttribute('input_preference'); } set inputPreference(value) { this._inputPreference = value; } resetInputPreference() { this._inputPreference = undefined; } // Temporarily expose input value. Use with caution. get inputPreferenceInput() { return this._inputPreference; } get secondaryInputId() { return this.getStringAttribute('secondary_input_id'); } set secondaryInputId(value) { this._secondaryInputId = value; } // Temporarily expose input value. Use with caution. get secondaryInputIdInput() { return this._secondaryInputId; } get failoverCondition() { return this._failoverCondition; } putFailoverCondition(value) { this._failoverCondition.internalValue = value; } resetFailoverCondition() { this._failoverCondition.internalValue = undefined; } // Temporarily expose input value. Use with caution. get failoverConditionInput() { return this._failoverCondition.internalValue; } } exports.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsOutputReference = MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsOutputReference; _f = JSII_RTTI_SYMBOL_1; MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsOutputReference[_f] = { fqn: "@cdktf/provider-aws.medialiveChannel.MedialiveChannelInputAttachmentsAutomaticInputFailoverSettingsOutputReference", version: "19.50.0" }; function medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { group_id: cdktf.stringToTerraform(struct.groupId), name: cdktf.stringToTerraform(struct.name), }; } exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionToTerraform = medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionToTerraform; function medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { group_id: { value: cdktf.stringToHclTerraform(struct.groupId), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionToHclTerraform = medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionToHclTerraform; class MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._groupId !== undefined) { hasAnyValues = true; internalValueResult.groupId = this._groupId; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._groupId = undefined; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._groupId = value.groupId; this._name = value.name; } } get groupId() { return this.getStringAttribute('group_id'); } set groupId(value) { this._groupId = value; } // Temporarily expose input value. Use with caution. get groupIdInput() { return this._groupId; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionOutputReference = MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionOutputReference; _g = JSII_RTTI_SYMBOL_1; MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionOutputReference[_g] = { fqn: "@cdktf/provider-aws.medialiveChannel.MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioHlsRenditionSelectionOutputReference", version: "19.50.0" }; function medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioLanguageSelectionToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { language_code: cdktf.stringToTerraform(struct.languageCode), language_selection_policy: cdktf.stringToTerraform(struct.languageSelectionPolicy), }; } exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioLanguageSelectionToTerraform = medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioLanguageSelectionToTerraform; function medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioLanguageSelectionToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { language_code: { value: cdktf.stringToHclTerraform(struct.languageCode), isBlock: false, type: "simple", storageClassType: "string", }, language_selection_policy: { value: cdktf.stringToHclTerraform(struct.languageSelectionPolicy), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioLanguageSelectionToHclTerraform = medialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioLanguageSelectionToHclTerraform; class MedialiveChannelInputAttachmentsInputSettingsAudioSelectorSelectorSettingsAudioLanguageSelectionOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._languageCode !== undefined) { hasAnyValues = true; internalValueResult.languageCode = this._languageCode; } if (this._languageSelectionPolicy !== undefined) { hasAnyValues = true; internalValueResult.languageSelectionPolicy = this._languageSelectionPolicy; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._languageCode = undefined; this._languageSelectionPolicy = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._languageCode = value.languageCode;