UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

983 lines 435 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.MediaStreamingPolicyCommonEncryptionCencOutputReference = exports.mediaStreamingPolicyCommonEncryptionCencToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCencToTerraform = exports.MediaStreamingPolicyCommonEncryptionCencEnabledProtocolsOutputReference = exports.mediaStreamingPolicyCommonEncryptionCencEnabledProtocolsToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCencEnabledProtocolsToTerraform = exports.MediaStreamingPolicyCommonEncryptionCencDrmPlayreadyOutputReference = exports.mediaStreamingPolicyCommonEncryptionCencDrmPlayreadyToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCencDrmPlayreadyToTerraform = exports.MediaStreamingPolicyCommonEncryptionCencDefaultContentKeyOutputReference = exports.mediaStreamingPolicyCommonEncryptionCencDefaultContentKeyToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCencDefaultContentKeyToTerraform = exports.MediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingList = exports.MediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingOutputReference = exports.mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingToTerraform = exports.MediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackList = exports.MediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackOutputReference = exports.mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackToTerraform = exports.MediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionList = exports.MediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionOutputReference = exports.mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionToTerraform = exports.MediaStreamingPolicyCommonEncryptionCencClearTrackList = exports.MediaStreamingPolicyCommonEncryptionCencClearTrackOutputReference = exports.mediaStreamingPolicyCommonEncryptionCencClearTrackToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCencClearTrackToTerraform = exports.MediaStreamingPolicyCommonEncryptionCencClearTrackConditionList = exports.MediaStreamingPolicyCommonEncryptionCencClearTrackConditionOutputReference = exports.mediaStreamingPolicyCommonEncryptionCencClearTrackConditionToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCencClearTrackConditionToTerraform = exports.MediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionOutputReference = exports.mediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionToTerraform = exports.MediaStreamingPolicyCommonEncryptionCbcsOutputReference = exports.mediaStreamingPolicyCommonEncryptionCbcsToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCbcsToTerraform = exports.MediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsOutputReference = exports.mediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsToTerraform = exports.MediaStreamingPolicyCommonEncryptionCbcsDrmFairplayOutputReference = exports.mediaStreamingPolicyCommonEncryptionCbcsDrmFairplayToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCbcsDrmFairplayToTerraform = exports.MediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyOutputReference = exports.mediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyToTerraform = exports.MediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionOutputReference = exports.mediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionToHclTerraform = exports.mediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionToTerraform = void 0; exports.MediaStreamingPolicy = exports.MediaStreamingPolicyTimeoutsOutputReference = exports.mediaStreamingPolicyTimeoutsToHclTerraform = exports.mediaStreamingPolicyTimeoutsToTerraform = exports.MediaStreamingPolicyNoEncryptionEnabledProtocolsOutputReference = exports.mediaStreamingPolicyNoEncryptionEnabledProtocolsToHclTerraform = exports.mediaStreamingPolicyNoEncryptionEnabledProtocolsToTerraform = exports.MediaStreamingPolicyEnvelopeEncryptionOutputReference = exports.mediaStreamingPolicyEnvelopeEncryptionToHclTerraform = exports.mediaStreamingPolicyEnvelopeEncryptionToTerraform = exports.MediaStreamingPolicyEnvelopeEncryptionEnabledProtocolsOutputReference = exports.mediaStreamingPolicyEnvelopeEncryptionEnabledProtocolsToHclTerraform = exports.mediaStreamingPolicyEnvelopeEncryptionEnabledProtocolsToTerraform = exports.MediaStreamingPolicyEnvelopeEncryptionDefaultContentKeyOutputReference = exports.mediaStreamingPolicyEnvelopeEncryptionDefaultContentKeyToHclTerraform = exports.mediaStreamingPolicyEnvelopeEncryptionDefaultContentKeyToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function mediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionToTerraform(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 { custom_keys_acquisition_url_template: cdktf.stringToTerraform(struct.customKeysAcquisitionUrlTemplate), }; } exports.mediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionToTerraform = mediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionToTerraform; function mediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionToHclTerraform(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 = { custom_keys_acquisition_url_template: { value: cdktf.stringToHclTerraform(struct.customKeysAcquisitionUrlTemplate), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionToHclTerraform = mediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionToHclTerraform; class MediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionOutputReference 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._customKeysAcquisitionUrlTemplate !== undefined) { hasAnyValues = true; internalValueResult.customKeysAcquisitionUrlTemplate = this._customKeysAcquisitionUrlTemplate; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._customKeysAcquisitionUrlTemplate = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._customKeysAcquisitionUrlTemplate = value.customKeysAcquisitionUrlTemplate; } } get customKeysAcquisitionUrlTemplate() { return this.getStringAttribute('custom_keys_acquisition_url_template'); } set customKeysAcquisitionUrlTemplate(value) { this._customKeysAcquisitionUrlTemplate = value; } // Temporarily expose input value. Use with caution. get customKeysAcquisitionUrlTemplateInput() { return this._customKeysAcquisitionUrlTemplate; } } exports.MediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionOutputReference = MediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionOutputReference; _a = JSII_RTTI_SYMBOL_1; MediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.mediaStreamingPolicy.MediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionOutputReference", version: "12.27.0" }; function mediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyToTerraform(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 { label: cdktf.stringToTerraform(struct.label), policy_name: cdktf.stringToTerraform(struct.policyName), }; } exports.mediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyToTerraform = mediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyToTerraform; function mediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyToHclTerraform(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 = { label: { value: cdktf.stringToHclTerraform(struct.label), isBlock: false, type: "simple", storageClassType: "string", }, policy_name: { value: cdktf.stringToHclTerraform(struct.policyName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyToHclTerraform = mediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyToHclTerraform; class MediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyOutputReference 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._label !== undefined) { hasAnyValues = true; internalValueResult.label = this._label; } if (this._policyName !== undefined) { hasAnyValues = true; internalValueResult.policyName = this._policyName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._label = undefined; this._policyName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._label = value.label; this._policyName = value.policyName; } } get label() { return this.getStringAttribute('label'); } set label(value) { this._label = value; } resetLabel() { this._label = undefined; } // Temporarily expose input value. Use with caution. get labelInput() { return this._label; } get policyName() { return this.getStringAttribute('policy_name'); } set policyName(value) { this._policyName = value; } resetPolicyName() { this._policyName = undefined; } // Temporarily expose input value. Use with caution. get policyNameInput() { return this._policyName; } } exports.MediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyOutputReference = MediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyOutputReference; _b = JSII_RTTI_SYMBOL_1; MediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.mediaStreamingPolicy.MediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyOutputReference", version: "12.27.0" }; function mediaStreamingPolicyCommonEncryptionCbcsDrmFairplayToTerraform(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 { allow_persistent_license: cdktf.booleanToTerraform(struct.allowPersistentLicense), custom_license_acquisition_url_template: cdktf.stringToTerraform(struct.customLicenseAcquisitionUrlTemplate), }; } exports.mediaStreamingPolicyCommonEncryptionCbcsDrmFairplayToTerraform = mediaStreamingPolicyCommonEncryptionCbcsDrmFairplayToTerraform; function mediaStreamingPolicyCommonEncryptionCbcsDrmFairplayToHclTerraform(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 = { allow_persistent_license: { value: cdktf.booleanToHclTerraform(struct.allowPersistentLicense), isBlock: false, type: "simple", storageClassType: "boolean", }, custom_license_acquisition_url_template: { value: cdktf.stringToHclTerraform(struct.customLicenseAcquisitionUrlTemplate), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mediaStreamingPolicyCommonEncryptionCbcsDrmFairplayToHclTerraform = mediaStreamingPolicyCommonEncryptionCbcsDrmFairplayToHclTerraform; class MediaStreamingPolicyCommonEncryptionCbcsDrmFairplayOutputReference 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._allowPersistentLicense !== undefined) { hasAnyValues = true; internalValueResult.allowPersistentLicense = this._allowPersistentLicense; } if (this._customLicenseAcquisitionUrlTemplate !== undefined) { hasAnyValues = true; internalValueResult.customLicenseAcquisitionUrlTemplate = this._customLicenseAcquisitionUrlTemplate; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._allowPersistentLicense = undefined; this._customLicenseAcquisitionUrlTemplate = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._allowPersistentLicense = value.allowPersistentLicense; this._customLicenseAcquisitionUrlTemplate = value.customLicenseAcquisitionUrlTemplate; } } get allowPersistentLicense() { return this.getBooleanAttribute('allow_persistent_license'); } set allowPersistentLicense(value) { this._allowPersistentLicense = value; } resetAllowPersistentLicense() { this._allowPersistentLicense = undefined; } // Temporarily expose input value. Use with caution. get allowPersistentLicenseInput() { return this._allowPersistentLicense; } get customLicenseAcquisitionUrlTemplate() { return this.getStringAttribute('custom_license_acquisition_url_template'); } set customLicenseAcquisitionUrlTemplate(value) { this._customLicenseAcquisitionUrlTemplate = value; } resetCustomLicenseAcquisitionUrlTemplate() { this._customLicenseAcquisitionUrlTemplate = undefined; } // Temporarily expose input value. Use with caution. get customLicenseAcquisitionUrlTemplateInput() { return this._customLicenseAcquisitionUrlTemplate; } } exports.MediaStreamingPolicyCommonEncryptionCbcsDrmFairplayOutputReference = MediaStreamingPolicyCommonEncryptionCbcsDrmFairplayOutputReference; _c = JSII_RTTI_SYMBOL_1; MediaStreamingPolicyCommonEncryptionCbcsDrmFairplayOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.mediaStreamingPolicy.MediaStreamingPolicyCommonEncryptionCbcsDrmFairplayOutputReference", version: "12.27.0" }; function mediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsToTerraform(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 { dash: cdktf.booleanToTerraform(struct.dash), download: cdktf.booleanToTerraform(struct.download), hls: cdktf.booleanToTerraform(struct.hls), smooth_streaming: cdktf.booleanToTerraform(struct.smoothStreaming), }; } exports.mediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsToTerraform = mediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsToTerraform; function mediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsToHclTerraform(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 = { dash: { value: cdktf.booleanToHclTerraform(struct.dash), isBlock: false, type: "simple", storageClassType: "boolean", }, download: { value: cdktf.booleanToHclTerraform(struct.download), isBlock: false, type: "simple", storageClassType: "boolean", }, hls: { value: cdktf.booleanToHclTerraform(struct.hls), isBlock: false, type: "simple", storageClassType: "boolean", }, smooth_streaming: { value: cdktf.booleanToHclTerraform(struct.smoothStreaming), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsToHclTerraform = mediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsToHclTerraform; class MediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsOutputReference 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._dash !== undefined) { hasAnyValues = true; internalValueResult.dash = this._dash; } if (this._download !== undefined) { hasAnyValues = true; internalValueResult.download = this._download; } if (this._hls !== undefined) { hasAnyValues = true; internalValueResult.hls = this._hls; } if (this._smoothStreaming !== undefined) { hasAnyValues = true; internalValueResult.smoothStreaming = this._smoothStreaming; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._dash = undefined; this._download = undefined; this._hls = undefined; this._smoothStreaming = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._dash = value.dash; this._download = value.download; this._hls = value.hls; this._smoothStreaming = value.smoothStreaming; } } get dash() { return this.getBooleanAttribute('dash'); } set dash(value) { this._dash = value; } resetDash() { this._dash = undefined; } // Temporarily expose input value. Use with caution. get dashInput() { return this._dash; } get download() { return this.getBooleanAttribute('download'); } set download(value) { this._download = value; } resetDownload() { this._download = undefined; } // Temporarily expose input value. Use with caution. get downloadInput() { return this._download; } get hls() { return this.getBooleanAttribute('hls'); } set hls(value) { this._hls = value; } resetHls() { this._hls = undefined; } // Temporarily expose input value. Use with caution. get hlsInput() { return this._hls; } get smoothStreaming() { return this.getBooleanAttribute('smooth_streaming'); } set smoothStreaming(value) { this._smoothStreaming = value; } resetSmoothStreaming() { this._smoothStreaming = undefined; } // Temporarily expose input value. Use with caution. get smoothStreamingInput() { return this._smoothStreaming; } } exports.MediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsOutputReference = MediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsOutputReference; _d = JSII_RTTI_SYMBOL_1; MediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.mediaStreamingPolicy.MediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsOutputReference", version: "12.27.0" }; function mediaStreamingPolicyCommonEncryptionCbcsToTerraform(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 { clear_key_encryption: mediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionToTerraform(struct.clearKeyEncryption), default_content_key: mediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyToTerraform(struct.defaultContentKey), drm_fairplay: mediaStreamingPolicyCommonEncryptionCbcsDrmFairplayToTerraform(struct.drmFairplay), enabled_protocols: mediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsToTerraform(struct.enabledProtocols), }; } exports.mediaStreamingPolicyCommonEncryptionCbcsToTerraform = mediaStreamingPolicyCommonEncryptionCbcsToTerraform; function mediaStreamingPolicyCommonEncryptionCbcsToHclTerraform(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 = { clear_key_encryption: { value: mediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionToHclTerraform(struct.clearKeyEncryption), isBlock: true, type: "list", storageClassType: "MediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionList", }, default_content_key: { value: mediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyToHclTerraform(struct.defaultContentKey), isBlock: true, type: "list", storageClassType: "MediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyList", }, drm_fairplay: { value: mediaStreamingPolicyCommonEncryptionCbcsDrmFairplayToHclTerraform(struct.drmFairplay), isBlock: true, type: "list", storageClassType: "MediaStreamingPolicyCommonEncryptionCbcsDrmFairplayList", }, enabled_protocols: { value: mediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsToHclTerraform(struct.enabledProtocols), isBlock: true, type: "list", storageClassType: "MediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mediaStreamingPolicyCommonEncryptionCbcsToHclTerraform = mediaStreamingPolicyCommonEncryptionCbcsToHclTerraform; class MediaStreamingPolicyCommonEncryptionCbcsOutputReference 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; // clear_key_encryption - computed: false, optional: true, required: false this._clearKeyEncryption = new MediaStreamingPolicyCommonEncryptionCbcsClearKeyEncryptionOutputReference(this, "clear_key_encryption"); // default_content_key - computed: false, optional: true, required: false this._defaultContentKey = new MediaStreamingPolicyCommonEncryptionCbcsDefaultContentKeyOutputReference(this, "default_content_key"); // drm_fairplay - computed: false, optional: true, required: false this._drmFairplay = new MediaStreamingPolicyCommonEncryptionCbcsDrmFairplayOutputReference(this, "drm_fairplay"); // enabled_protocols - computed: false, optional: true, required: false this._enabledProtocols = new MediaStreamingPolicyCommonEncryptionCbcsEnabledProtocolsOutputReference(this, "enabled_protocols"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._clearKeyEncryption?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.clearKeyEncryption = this._clearKeyEncryption?.internalValue; } if (this._defaultContentKey?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.defaultContentKey = this._defaultContentKey?.internalValue; } if (this._drmFairplay?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.drmFairplay = this._drmFairplay?.internalValue; } if (this._enabledProtocols?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.enabledProtocols = this._enabledProtocols?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clearKeyEncryption.internalValue = undefined; this._defaultContentKey.internalValue = undefined; this._drmFairplay.internalValue = undefined; this._enabledProtocols.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clearKeyEncryption.internalValue = value.clearKeyEncryption; this._defaultContentKey.internalValue = value.defaultContentKey; this._drmFairplay.internalValue = value.drmFairplay; this._enabledProtocols.internalValue = value.enabledProtocols; } } get clearKeyEncryption() { return this._clearKeyEncryption; } putClearKeyEncryption(value) { this._clearKeyEncryption.internalValue = value; } resetClearKeyEncryption() { this._clearKeyEncryption.internalValue = undefined; } // Temporarily expose input value. Use with caution. get clearKeyEncryptionInput() { return this._clearKeyEncryption.internalValue; } get defaultContentKey() { return this._defaultContentKey; } putDefaultContentKey(value) { this._defaultContentKey.internalValue = value; } resetDefaultContentKey() { this._defaultContentKey.internalValue = undefined; } // Temporarily expose input value. Use with caution. get defaultContentKeyInput() { return this._defaultContentKey.internalValue; } get drmFairplay() { return this._drmFairplay; } putDrmFairplay(value) { this._drmFairplay.internalValue = value; } resetDrmFairplay() { this._drmFairplay.internalValue = undefined; } // Temporarily expose input value. Use with caution. get drmFairplayInput() { return this._drmFairplay.internalValue; } get enabledProtocols() { return this._enabledProtocols; } putEnabledProtocols(value) { this._enabledProtocols.internalValue = value; } resetEnabledProtocols() { this._enabledProtocols.internalValue = undefined; } // Temporarily expose input value. Use with caution. get enabledProtocolsInput() { return this._enabledProtocols.internalValue; } } exports.MediaStreamingPolicyCommonEncryptionCbcsOutputReference = MediaStreamingPolicyCommonEncryptionCbcsOutputReference; _e = JSII_RTTI_SYMBOL_1; MediaStreamingPolicyCommonEncryptionCbcsOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.mediaStreamingPolicy.MediaStreamingPolicyCommonEncryptionCbcsOutputReference", version: "12.27.0" }; function mediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionToTerraform(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 { custom_keys_acquisition_url_template: cdktf.stringToTerraform(struct.customKeysAcquisitionUrlTemplate), }; } exports.mediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionToTerraform = mediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionToTerraform; function mediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionToHclTerraform(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 = { custom_keys_acquisition_url_template: { value: cdktf.stringToHclTerraform(struct.customKeysAcquisitionUrlTemplate), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionToHclTerraform = mediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionToHclTerraform; class MediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionOutputReference 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._customKeysAcquisitionUrlTemplate !== undefined) { hasAnyValues = true; internalValueResult.customKeysAcquisitionUrlTemplate = this._customKeysAcquisitionUrlTemplate; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._customKeysAcquisitionUrlTemplate = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._customKeysAcquisitionUrlTemplate = value.customKeysAcquisitionUrlTemplate; } } get customKeysAcquisitionUrlTemplate() { return this.getStringAttribute('custom_keys_acquisition_url_template'); } set customKeysAcquisitionUrlTemplate(value) { this._customKeysAcquisitionUrlTemplate = value; } // Temporarily expose input value. Use with caution. get customKeysAcquisitionUrlTemplateInput() { return this._customKeysAcquisitionUrlTemplate; } } exports.MediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionOutputReference = MediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionOutputReference; _f = JSII_RTTI_SYMBOL_1; MediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.mediaStreamingPolicy.MediaStreamingPolicyCommonEncryptionCencClearKeyEncryptionOutputReference", version: "12.27.0" }; function mediaStreamingPolicyCommonEncryptionCencClearTrackConditionToTerraform(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 { operation: cdktf.stringToTerraform(struct.operation), property: cdktf.stringToTerraform(struct.property), value: cdktf.stringToTerraform(struct.value), }; } exports.mediaStreamingPolicyCommonEncryptionCencClearTrackConditionToTerraform = mediaStreamingPolicyCommonEncryptionCencClearTrackConditionToTerraform; function mediaStreamingPolicyCommonEncryptionCencClearTrackConditionToHclTerraform(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 = { operation: { value: cdktf.stringToHclTerraform(struct.operation), isBlock: false, type: "simple", storageClassType: "string", }, property: { value: cdktf.stringToHclTerraform(struct.property), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mediaStreamingPolicyCommonEncryptionCencClearTrackConditionToHclTerraform = mediaStreamingPolicyCommonEncryptionCencClearTrackConditionToHclTerraform; class MediaStreamingPolicyCommonEncryptionCencClearTrackConditionOutputReference 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; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._operation !== undefined) { hasAnyValues = true; internalValueResult.operation = this._operation; } if (this._property !== undefined) { hasAnyValues = true; internalValueResult.property = this._property; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._operation = undefined; this._property = undefined; this._value = 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._operation = value.operation; this._property = value.property; this._value = value.value; } } get operation() { return this.getStringAttribute('operation'); } set operation(value) { this._operation = value; } // Temporarily expose input value. Use with caution. get operationInput() { return this._operation; } get property() { return this.getStringAttribute('property'); } set property(value) { this._property = value; } // Temporarily expose input value. Use with caution. get propertyInput() { return this._property; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.MediaStreamingPolicyCommonEncryptionCencClearTrackConditionOutputReference = MediaStreamingPolicyCommonEncryptionCencClearTrackConditionOutputReference; _g = JSII_RTTI_SYMBOL_1; MediaStreamingPolicyCommonEncryptionCencClearTrackConditionOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.mediaStreamingPolicy.MediaStreamingPolicyCommonEncryptionCencClearTrackConditionOutputReference", version: "12.27.0" }; class MediaStreamingPolicyCommonEncryptionCencClearTrackConditionList 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 MediaStreamingPolicyCommonEncryptionCencClearTrackConditionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.MediaStreamingPolicyCommonEncryptionCencClearTrackConditionList = MediaStreamingPolicyCommonEncryptionCencClearTrackConditionList; _h = JSII_RTTI_SYMBOL_1; MediaStreamingPolicyCommonEncryptionCencClearTrackConditionList[_h] = { fqn: "@cdktf/provider-azurerm.mediaStreamingPolicy.MediaStreamingPolicyCommonEncryptionCencClearTrackConditionList", version: "12.27.0" }; function mediaStreamingPolicyCommonEncryptionCencClearTrackToTerraform(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 { condition: cdktf.listMapper(mediaStreamingPolicyCommonEncryptionCencClearTrackConditionToTerraform, true)(struct.condition), }; } exports.mediaStreamingPolicyCommonEncryptionCencClearTrackToTerraform = mediaStreamingPolicyCommonEncryptionCencClearTrackToTerraform; function mediaStreamingPolicyCommonEncryptionCencClearTrackToHclTerraform(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 = { condition: { value: cdktf.listMapperHcl(mediaStreamingPolicyCommonEncryptionCencClearTrackConditionToHclTerraform, true)(struct.condition), isBlock: true, type: "set", storageClassType: "MediaStreamingPolicyCommonEncryptionCencClearTrackConditionList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mediaStreamingPolicyCommonEncryptionCencClearTrackToHclTerraform = mediaStreamingPolicyCommonEncryptionCencClearTrackToHclTerraform; class MediaStreamingPolicyCommonEncryptionCencClearTrackOutputReference 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; // condition - computed: false, optional: false, required: true this._condition = new MediaStreamingPolicyCommonEncryptionCencClearTrackConditionList(this, "condition", true); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._condition?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.condition = this._condition?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._condition.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._condition.internalValue = value.condition; } } get condition() { return this._condition; } putCondition(value) { this._condition.internalValue = value; } // Temporarily expose input value. Use with caution. get conditionInput() { return this._condition.internalValue; } } exports.MediaStreamingPolicyCommonEncryptionCencClearTrackOutputReference = MediaStreamingPolicyCommonEncryptionCencClearTrackOutputReference; _j = JSII_RTTI_SYMBOL_1; MediaStreamingPolicyCommonEncryptionCencClearTrackOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.mediaStreamingPolicy.MediaStreamingPolicyCommonEncryptionCencClearTrackOutputReference", version: "12.27.0" }; class MediaStreamingPolicyCommonEncryptionCencClearTrackList 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 MediaStreamingPolicyCommonEncryptionCencClearTrackOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.MediaStreamingPolicyCommonEncryptionCencClearTrackList = MediaStreamingPolicyCommonEncryptionCencClearTrackList; _k = JSII_RTTI_SYMBOL_1; MediaStreamingPolicyCommonEncryptionCencClearTrackList[_k] = { fqn: "@cdktf/provider-azurerm.mediaStreamingPolicy.MediaStreamingPolicyCommonEncryptionCencClearTrackList", version: "12.27.0" }; function mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionToTerraform(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 { operation: cdktf.stringToTerraform(struct.operation), property: cdktf.stringToTerraform(struct.property), value: cdktf.stringToTerraform(struct.value), }; } exports.mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionToTerraform = mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionToTerraform; function mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionToHclTerraform(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 = { operation: { value: cdktf.stringToHclTerraform(struct.operation), isBlock: false, type: "simple", storageClassType: "string", }, property: { value: cdktf.stringToHclTerraform(struct.property), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionToHclTerraform = mediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionToHclTerraform; class MediaStreamingPolicyCommonEncryptionCencContentKeyToTrackMappingTrackConditionOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjec