@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,001 lines • 381 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MediaContentKeyPolicy = exports.MediaContentKeyPolicyTimeoutsOutputReference = exports.mediaContentKeyPolicyTimeoutsToHclTerraform = exports.mediaContentKeyPolicyTimeoutsToTerraform = exports.MediaContentKeyPolicyPolicyOptionList = exports.MediaContentKeyPolicyPolicyOptionOutputReference = exports.mediaContentKeyPolicyPolicyOptionToHclTerraform = exports.mediaContentKeyPolicyPolicyOptionToTerraform = exports.MediaContentKeyPolicyPolicyOptionTokenRestrictionOutputReference = exports.mediaContentKeyPolicyPolicyOptionTokenRestrictionToHclTerraform = exports.mediaContentKeyPolicyPolicyOptionTokenRestrictionToTerraform = exports.MediaContentKeyPolicyPolicyOptionTokenRestrictionRequiredClaimList = exports.MediaContentKeyPolicyPolicyOptionTokenRestrictionRequiredClaimOutputReference = exports.mediaContentKeyPolicyPolicyOptionTokenRestrictionRequiredClaimToHclTerraform = exports.mediaContentKeyPolicyPolicyOptionTokenRestrictionRequiredClaimToTerraform = exports.MediaContentKeyPolicyPolicyOptionTokenRestrictionAlternateKeyList = exports.MediaContentKeyPolicyPolicyOptionTokenRestrictionAlternateKeyOutputReference = exports.mediaContentKeyPolicyPolicyOptionTokenRestrictionAlternateKeyToHclTerraform = exports.mediaContentKeyPolicyPolicyOptionTokenRestrictionAlternateKeyToTerraform = exports.MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicenseList = exports.MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicenseOutputReference = exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicenseToHclTerraform = exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicenseToTerraform = exports.MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightOutputReference = exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightToHclTerraform = exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightToTerraform = exports.MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionOutputReference = exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionToHclTerraform = exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionToTerraform = exports.MediaContentKeyPolicyPolicyOptionFairplayConfigurationOutputReference = exports.mediaContentKeyPolicyPolicyOptionFairplayConfigurationToHclTerraform = exports.mediaContentKeyPolicyPolicyOptionFairplayConfigurationToTerraform = exports.MediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationOutputReference = exports.mediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationToHclTerraform = exports.mediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function mediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationToTerraform(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 {
playback_duration_seconds: cdktf.numberToTerraform(struct.playbackDurationSeconds),
storage_duration_seconds: cdktf.numberToTerraform(struct.storageDurationSeconds),
};
}
exports.mediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationToTerraform = mediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationToTerraform;
function mediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationToHclTerraform(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 = {
playback_duration_seconds: {
value: cdktf.numberToHclTerraform(struct.playbackDurationSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
storage_duration_seconds: {
value: cdktf.numberToHclTerraform(struct.storageDurationSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationToHclTerraform = mediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationToHclTerraform;
class MediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationOutputReference 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._playbackDurationSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.playbackDurationSeconds = this._playbackDurationSeconds;
}
if (this._storageDurationSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.storageDurationSeconds = this._storageDurationSeconds;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._playbackDurationSeconds = undefined;
this._storageDurationSeconds = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._playbackDurationSeconds = value.playbackDurationSeconds;
this._storageDurationSeconds = value.storageDurationSeconds;
}
}
get playbackDurationSeconds() {
return this.getNumberAttribute('playback_duration_seconds');
}
set playbackDurationSeconds(value) {
this._playbackDurationSeconds = value;
}
resetPlaybackDurationSeconds() {
this._playbackDurationSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
get playbackDurationSecondsInput() {
return this._playbackDurationSeconds;
}
get storageDurationSeconds() {
return this.getNumberAttribute('storage_duration_seconds');
}
set storageDurationSeconds(value) {
this._storageDurationSeconds = value;
}
resetStorageDurationSeconds() {
this._storageDurationSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
get storageDurationSecondsInput() {
return this._storageDurationSeconds;
}
}
exports.MediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationOutputReference = MediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationOutputReference;
_a = JSII_RTTI_SYMBOL_1;
MediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.mediaContentKeyPolicy.MediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationOutputReference", version: "12.27.0" };
function mediaContentKeyPolicyPolicyOptionFairplayConfigurationToTerraform(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 {
ask: cdktf.stringToTerraform(struct.ask),
pfx: cdktf.stringToTerraform(struct.pfx),
pfx_password: cdktf.stringToTerraform(struct.pfxPassword),
rental_and_lease_key_type: cdktf.stringToTerraform(struct.rentalAndLeaseKeyType),
rental_duration_seconds: cdktf.numberToTerraform(struct.rentalDurationSeconds),
offline_rental_configuration: mediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationToTerraform(struct.offlineRentalConfiguration),
};
}
exports.mediaContentKeyPolicyPolicyOptionFairplayConfigurationToTerraform = mediaContentKeyPolicyPolicyOptionFairplayConfigurationToTerraform;
function mediaContentKeyPolicyPolicyOptionFairplayConfigurationToHclTerraform(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 = {
ask: {
value: cdktf.stringToHclTerraform(struct.ask),
isBlock: false,
type: "simple",
storageClassType: "string",
},
pfx: {
value: cdktf.stringToHclTerraform(struct.pfx),
isBlock: false,
type: "simple",
storageClassType: "string",
},
pfx_password: {
value: cdktf.stringToHclTerraform(struct.pfxPassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
rental_and_lease_key_type: {
value: cdktf.stringToHclTerraform(struct.rentalAndLeaseKeyType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
rental_duration_seconds: {
value: cdktf.numberToHclTerraform(struct.rentalDurationSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
offline_rental_configuration: {
value: mediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationToHclTerraform(struct.offlineRentalConfiguration),
isBlock: true,
type: "list",
storageClassType: "MediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mediaContentKeyPolicyPolicyOptionFairplayConfigurationToHclTerraform = mediaContentKeyPolicyPolicyOptionFairplayConfigurationToHclTerraform;
class MediaContentKeyPolicyPolicyOptionFairplayConfigurationOutputReference 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;
// offline_rental_configuration - computed: false, optional: true, required: false
this._offlineRentalConfiguration = new MediaContentKeyPolicyPolicyOptionFairplayConfigurationOfflineRentalConfigurationOutputReference(this, "offline_rental_configuration");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._ask !== undefined) {
hasAnyValues = true;
internalValueResult.ask = this._ask;
}
if (this._pfx !== undefined) {
hasAnyValues = true;
internalValueResult.pfx = this._pfx;
}
if (this._pfxPassword !== undefined) {
hasAnyValues = true;
internalValueResult.pfxPassword = this._pfxPassword;
}
if (this._rentalAndLeaseKeyType !== undefined) {
hasAnyValues = true;
internalValueResult.rentalAndLeaseKeyType = this._rentalAndLeaseKeyType;
}
if (this._rentalDurationSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.rentalDurationSeconds = this._rentalDurationSeconds;
}
if (this._offlineRentalConfiguration?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.offlineRentalConfiguration = this._offlineRentalConfiguration?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._ask = undefined;
this._pfx = undefined;
this._pfxPassword = undefined;
this._rentalAndLeaseKeyType = undefined;
this._rentalDurationSeconds = undefined;
this._offlineRentalConfiguration.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._ask = value.ask;
this._pfx = value.pfx;
this._pfxPassword = value.pfxPassword;
this._rentalAndLeaseKeyType = value.rentalAndLeaseKeyType;
this._rentalDurationSeconds = value.rentalDurationSeconds;
this._offlineRentalConfiguration.internalValue = value.offlineRentalConfiguration;
}
}
get ask() {
return this.getStringAttribute('ask');
}
set ask(value) {
this._ask = value;
}
resetAsk() {
this._ask = undefined;
}
// Temporarily expose input value. Use with caution.
get askInput() {
return this._ask;
}
get pfx() {
return this.getStringAttribute('pfx');
}
set pfx(value) {
this._pfx = value;
}
resetPfx() {
this._pfx = undefined;
}
// Temporarily expose input value. Use with caution.
get pfxInput() {
return this._pfx;
}
get pfxPassword() {
return this.getStringAttribute('pfx_password');
}
set pfxPassword(value) {
this._pfxPassword = value;
}
resetPfxPassword() {
this._pfxPassword = undefined;
}
// Temporarily expose input value. Use with caution.
get pfxPasswordInput() {
return this._pfxPassword;
}
get rentalAndLeaseKeyType() {
return this.getStringAttribute('rental_and_lease_key_type');
}
set rentalAndLeaseKeyType(value) {
this._rentalAndLeaseKeyType = value;
}
resetRentalAndLeaseKeyType() {
this._rentalAndLeaseKeyType = undefined;
}
// Temporarily expose input value. Use with caution.
get rentalAndLeaseKeyTypeInput() {
return this._rentalAndLeaseKeyType;
}
get rentalDurationSeconds() {
return this.getNumberAttribute('rental_duration_seconds');
}
set rentalDurationSeconds(value) {
this._rentalDurationSeconds = value;
}
resetRentalDurationSeconds() {
this._rentalDurationSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
get rentalDurationSecondsInput() {
return this._rentalDurationSeconds;
}
get offlineRentalConfiguration() {
return this._offlineRentalConfiguration;
}
putOfflineRentalConfiguration(value) {
this._offlineRentalConfiguration.internalValue = value;
}
resetOfflineRentalConfiguration() {
this._offlineRentalConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get offlineRentalConfigurationInput() {
return this._offlineRentalConfiguration.internalValue;
}
}
exports.MediaContentKeyPolicyPolicyOptionFairplayConfigurationOutputReference = MediaContentKeyPolicyPolicyOptionFairplayConfigurationOutputReference;
_b = JSII_RTTI_SYMBOL_1;
MediaContentKeyPolicyPolicyOptionFairplayConfigurationOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.mediaContentKeyPolicy.MediaContentKeyPolicyPolicyOptionFairplayConfigurationOutputReference", version: "12.27.0" };
function mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionToTerraform(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 {
best_effort_enforced: cdktf.booleanToTerraform(struct.bestEffortEnforced),
control_bits: cdktf.numberToTerraform(struct.controlBits),
};
}
exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionToTerraform = mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionToTerraform;
function mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionToHclTerraform(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 = {
best_effort_enforced: {
value: cdktf.booleanToHclTerraform(struct.bestEffortEnforced),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
control_bits: {
value: cdktf.numberToHclTerraform(struct.controlBits),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionToHclTerraform = mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionToHclTerraform;
class MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionOutputReference 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._bestEffortEnforced !== undefined) {
hasAnyValues = true;
internalValueResult.bestEffortEnforced = this._bestEffortEnforced;
}
if (this._controlBits !== undefined) {
hasAnyValues = true;
internalValueResult.controlBits = this._controlBits;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._bestEffortEnforced = undefined;
this._controlBits = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._bestEffortEnforced = value.bestEffortEnforced;
this._controlBits = value.controlBits;
}
}
get bestEffortEnforced() {
return this.getBooleanAttribute('best_effort_enforced');
}
set bestEffortEnforced(value) {
this._bestEffortEnforced = value;
}
resetBestEffortEnforced() {
this._bestEffortEnforced = undefined;
}
// Temporarily expose input value. Use with caution.
get bestEffortEnforcedInput() {
return this._bestEffortEnforced;
}
get controlBits() {
return this.getNumberAttribute('control_bits');
}
set controlBits(value) {
this._controlBits = value;
}
// Temporarily expose input value. Use with caution.
get controlBitsInput() {
return this._controlBits;
}
}
exports.MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionOutputReference = MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionOutputReference;
_c = JSII_RTTI_SYMBOL_1;
MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.mediaContentKeyPolicy.MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionOutputReference", version: "12.27.0" };
function mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightToTerraform(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 {
agc_and_color_stripe_restriction: cdktf.numberToTerraform(struct.agcAndColorStripeRestriction),
allow_passing_video_content_to_unknown_output: cdktf.stringToTerraform(struct.allowPassingVideoContentToUnknownOutput),
analog_video_opl: cdktf.numberToTerraform(struct.analogVideoOpl),
compressed_digital_audio_opl: cdktf.numberToTerraform(struct.compressedDigitalAudioOpl),
compressed_digital_video_opl: cdktf.numberToTerraform(struct.compressedDigitalVideoOpl),
digital_video_only_content_restriction: cdktf.booleanToTerraform(struct.digitalVideoOnlyContentRestriction),
first_play_expiration: cdktf.stringToTerraform(struct.firstPlayExpiration),
image_constraint_for_analog_component_video_restriction: cdktf.booleanToTerraform(struct.imageConstraintForAnalogComponentVideoRestriction),
image_constraint_for_analog_computer_monitor_restriction: cdktf.booleanToTerraform(struct.imageConstraintForAnalogComputerMonitorRestriction),
scms_restriction: cdktf.numberToTerraform(struct.scmsRestriction),
uncompressed_digital_audio_opl: cdktf.numberToTerraform(struct.uncompressedDigitalAudioOpl),
uncompressed_digital_video_opl: cdktf.numberToTerraform(struct.uncompressedDigitalVideoOpl),
explicit_analog_television_output_restriction: mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionToTerraform(struct.explicitAnalogTelevisionOutputRestriction),
};
}
exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightToTerraform = mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightToTerraform;
function mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightToHclTerraform(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 = {
agc_and_color_stripe_restriction: {
value: cdktf.numberToHclTerraform(struct.agcAndColorStripeRestriction),
isBlock: false,
type: "simple",
storageClassType: "number",
},
allow_passing_video_content_to_unknown_output: {
value: cdktf.stringToHclTerraform(struct.allowPassingVideoContentToUnknownOutput),
isBlock: false,
type: "simple",
storageClassType: "string",
},
analog_video_opl: {
value: cdktf.numberToHclTerraform(struct.analogVideoOpl),
isBlock: false,
type: "simple",
storageClassType: "number",
},
compressed_digital_audio_opl: {
value: cdktf.numberToHclTerraform(struct.compressedDigitalAudioOpl),
isBlock: false,
type: "simple",
storageClassType: "number",
},
compressed_digital_video_opl: {
value: cdktf.numberToHclTerraform(struct.compressedDigitalVideoOpl),
isBlock: false,
type: "simple",
storageClassType: "number",
},
digital_video_only_content_restriction: {
value: cdktf.booleanToHclTerraform(struct.digitalVideoOnlyContentRestriction),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
first_play_expiration: {
value: cdktf.stringToHclTerraform(struct.firstPlayExpiration),
isBlock: false,
type: "simple",
storageClassType: "string",
},
image_constraint_for_analog_component_video_restriction: {
value: cdktf.booleanToHclTerraform(struct.imageConstraintForAnalogComponentVideoRestriction),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
image_constraint_for_analog_computer_monitor_restriction: {
value: cdktf.booleanToHclTerraform(struct.imageConstraintForAnalogComputerMonitorRestriction),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
scms_restriction: {
value: cdktf.numberToHclTerraform(struct.scmsRestriction),
isBlock: false,
type: "simple",
storageClassType: "number",
},
uncompressed_digital_audio_opl: {
value: cdktf.numberToHclTerraform(struct.uncompressedDigitalAudioOpl),
isBlock: false,
type: "simple",
storageClassType: "number",
},
uncompressed_digital_video_opl: {
value: cdktf.numberToHclTerraform(struct.uncompressedDigitalVideoOpl),
isBlock: false,
type: "simple",
storageClassType: "number",
},
explicit_analog_television_output_restriction: {
value: mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionToHclTerraform(struct.explicitAnalogTelevisionOutputRestriction),
isBlock: true,
type: "list",
storageClassType: "MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightToHclTerraform = mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightToHclTerraform;
class MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightOutputReference 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;
// explicit_analog_television_output_restriction - computed: false, optional: true, required: false
this._explicitAnalogTelevisionOutputRestriction = new MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightExplicitAnalogTelevisionOutputRestrictionOutputReference(this, "explicit_analog_television_output_restriction");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._agcAndColorStripeRestriction !== undefined) {
hasAnyValues = true;
internalValueResult.agcAndColorStripeRestriction = this._agcAndColorStripeRestriction;
}
if (this._allowPassingVideoContentToUnknownOutput !== undefined) {
hasAnyValues = true;
internalValueResult.allowPassingVideoContentToUnknownOutput = this._allowPassingVideoContentToUnknownOutput;
}
if (this._analogVideoOpl !== undefined) {
hasAnyValues = true;
internalValueResult.analogVideoOpl = this._analogVideoOpl;
}
if (this._compressedDigitalAudioOpl !== undefined) {
hasAnyValues = true;
internalValueResult.compressedDigitalAudioOpl = this._compressedDigitalAudioOpl;
}
if (this._compressedDigitalVideoOpl !== undefined) {
hasAnyValues = true;
internalValueResult.compressedDigitalVideoOpl = this._compressedDigitalVideoOpl;
}
if (this._digitalVideoOnlyContentRestriction !== undefined) {
hasAnyValues = true;
internalValueResult.digitalVideoOnlyContentRestriction = this._digitalVideoOnlyContentRestriction;
}
if (this._firstPlayExpiration !== undefined) {
hasAnyValues = true;
internalValueResult.firstPlayExpiration = this._firstPlayExpiration;
}
if (this._imageConstraintForAnalogComponentVideoRestriction !== undefined) {
hasAnyValues = true;
internalValueResult.imageConstraintForAnalogComponentVideoRestriction = this._imageConstraintForAnalogComponentVideoRestriction;
}
if (this._imageConstraintForAnalogComputerMonitorRestriction !== undefined) {
hasAnyValues = true;
internalValueResult.imageConstraintForAnalogComputerMonitorRestriction = this._imageConstraintForAnalogComputerMonitorRestriction;
}
if (this._scmsRestriction !== undefined) {
hasAnyValues = true;
internalValueResult.scmsRestriction = this._scmsRestriction;
}
if (this._uncompressedDigitalAudioOpl !== undefined) {
hasAnyValues = true;
internalValueResult.uncompressedDigitalAudioOpl = this._uncompressedDigitalAudioOpl;
}
if (this._uncompressedDigitalVideoOpl !== undefined) {
hasAnyValues = true;
internalValueResult.uncompressedDigitalVideoOpl = this._uncompressedDigitalVideoOpl;
}
if (this._explicitAnalogTelevisionOutputRestriction?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.explicitAnalogTelevisionOutputRestriction = this._explicitAnalogTelevisionOutputRestriction?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._agcAndColorStripeRestriction = undefined;
this._allowPassingVideoContentToUnknownOutput = undefined;
this._analogVideoOpl = undefined;
this._compressedDigitalAudioOpl = undefined;
this._compressedDigitalVideoOpl = undefined;
this._digitalVideoOnlyContentRestriction = undefined;
this._firstPlayExpiration = undefined;
this._imageConstraintForAnalogComponentVideoRestriction = undefined;
this._imageConstraintForAnalogComputerMonitorRestriction = undefined;
this._scmsRestriction = undefined;
this._uncompressedDigitalAudioOpl = undefined;
this._uncompressedDigitalVideoOpl = undefined;
this._explicitAnalogTelevisionOutputRestriction.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._agcAndColorStripeRestriction = value.agcAndColorStripeRestriction;
this._allowPassingVideoContentToUnknownOutput = value.allowPassingVideoContentToUnknownOutput;
this._analogVideoOpl = value.analogVideoOpl;
this._compressedDigitalAudioOpl = value.compressedDigitalAudioOpl;
this._compressedDigitalVideoOpl = value.compressedDigitalVideoOpl;
this._digitalVideoOnlyContentRestriction = value.digitalVideoOnlyContentRestriction;
this._firstPlayExpiration = value.firstPlayExpiration;
this._imageConstraintForAnalogComponentVideoRestriction = value.imageConstraintForAnalogComponentVideoRestriction;
this._imageConstraintForAnalogComputerMonitorRestriction = value.imageConstraintForAnalogComputerMonitorRestriction;
this._scmsRestriction = value.scmsRestriction;
this._uncompressedDigitalAudioOpl = value.uncompressedDigitalAudioOpl;
this._uncompressedDigitalVideoOpl = value.uncompressedDigitalVideoOpl;
this._explicitAnalogTelevisionOutputRestriction.internalValue = value.explicitAnalogTelevisionOutputRestriction;
}
}
get agcAndColorStripeRestriction() {
return this.getNumberAttribute('agc_and_color_stripe_restriction');
}
set agcAndColorStripeRestriction(value) {
this._agcAndColorStripeRestriction = value;
}
resetAgcAndColorStripeRestriction() {
this._agcAndColorStripeRestriction = undefined;
}
// Temporarily expose input value. Use with caution.
get agcAndColorStripeRestrictionInput() {
return this._agcAndColorStripeRestriction;
}
get allowPassingVideoContentToUnknownOutput() {
return this.getStringAttribute('allow_passing_video_content_to_unknown_output');
}
set allowPassingVideoContentToUnknownOutput(value) {
this._allowPassingVideoContentToUnknownOutput = value;
}
resetAllowPassingVideoContentToUnknownOutput() {
this._allowPassingVideoContentToUnknownOutput = undefined;
}
// Temporarily expose input value. Use with caution.
get allowPassingVideoContentToUnknownOutputInput() {
return this._allowPassingVideoContentToUnknownOutput;
}
get analogVideoOpl() {
return this.getNumberAttribute('analog_video_opl');
}
set analogVideoOpl(value) {
this._analogVideoOpl = value;
}
resetAnalogVideoOpl() {
this._analogVideoOpl = undefined;
}
// Temporarily expose input value. Use with caution.
get analogVideoOplInput() {
return this._analogVideoOpl;
}
get compressedDigitalAudioOpl() {
return this.getNumberAttribute('compressed_digital_audio_opl');
}
set compressedDigitalAudioOpl(value) {
this._compressedDigitalAudioOpl = value;
}
resetCompressedDigitalAudioOpl() {
this._compressedDigitalAudioOpl = undefined;
}
// Temporarily expose input value. Use with caution.
get compressedDigitalAudioOplInput() {
return this._compressedDigitalAudioOpl;
}
get compressedDigitalVideoOpl() {
return this.getNumberAttribute('compressed_digital_video_opl');
}
set compressedDigitalVideoOpl(value) {
this._compressedDigitalVideoOpl = value;
}
resetCompressedDigitalVideoOpl() {
this._compressedDigitalVideoOpl = undefined;
}
// Temporarily expose input value. Use with caution.
get compressedDigitalVideoOplInput() {
return this._compressedDigitalVideoOpl;
}
get digitalVideoOnlyContentRestriction() {
return this.getBooleanAttribute('digital_video_only_content_restriction');
}
set digitalVideoOnlyContentRestriction(value) {
this._digitalVideoOnlyContentRestriction = value;
}
resetDigitalVideoOnlyContentRestriction() {
this._digitalVideoOnlyContentRestriction = undefined;
}
// Temporarily expose input value. Use with caution.
get digitalVideoOnlyContentRestrictionInput() {
return this._digitalVideoOnlyContentRestriction;
}
get firstPlayExpiration() {
return this.getStringAttribute('first_play_expiration');
}
set firstPlayExpiration(value) {
this._firstPlayExpiration = value;
}
resetFirstPlayExpiration() {
this._firstPlayExpiration = undefined;
}
// Temporarily expose input value. Use with caution.
get firstPlayExpirationInput() {
return this._firstPlayExpiration;
}
get imageConstraintForAnalogComponentVideoRestriction() {
return this.getBooleanAttribute('image_constraint_for_analog_component_video_restriction');
}
set imageConstraintForAnalogComponentVideoRestriction(value) {
this._imageConstraintForAnalogComponentVideoRestriction = value;
}
resetImageConstraintForAnalogComponentVideoRestriction() {
this._imageConstraintForAnalogComponentVideoRestriction = undefined;
}
// Temporarily expose input value. Use with caution.
get imageConstraintForAnalogComponentVideoRestrictionInput() {
return this._imageConstraintForAnalogComponentVideoRestriction;
}
get imageConstraintForAnalogComputerMonitorRestriction() {
return this.getBooleanAttribute('image_constraint_for_analog_computer_monitor_restriction');
}
set imageConstraintForAnalogComputerMonitorRestriction(value) {
this._imageConstraintForAnalogComputerMonitorRestriction = value;
}
resetImageConstraintForAnalogComputerMonitorRestriction() {
this._imageConstraintForAnalogComputerMonitorRestriction = undefined;
}
// Temporarily expose input value. Use with caution.
get imageConstraintForAnalogComputerMonitorRestrictionInput() {
return this._imageConstraintForAnalogComputerMonitorRestriction;
}
get scmsRestriction() {
return this.getNumberAttribute('scms_restriction');
}
set scmsRestriction(value) {
this._scmsRestriction = value;
}
resetScmsRestriction() {
this._scmsRestriction = undefined;
}
// Temporarily expose input value. Use with caution.
get scmsRestrictionInput() {
return this._scmsRestriction;
}
get uncompressedDigitalAudioOpl() {
return this.getNumberAttribute('uncompressed_digital_audio_opl');
}
set uncompressedDigitalAudioOpl(value) {
this._uncompressedDigitalAudioOpl = value;
}
resetUncompressedDigitalAudioOpl() {
this._uncompressedDigitalAudioOpl = undefined;
}
// Temporarily expose input value. Use with caution.
get uncompressedDigitalAudioOplInput() {
return this._uncompressedDigitalAudioOpl;
}
get uncompressedDigitalVideoOpl() {
return this.getNumberAttribute('uncompressed_digital_video_opl');
}
set uncompressedDigitalVideoOpl(value) {
this._uncompressedDigitalVideoOpl = value;
}
resetUncompressedDigitalVideoOpl() {
this._uncompressedDigitalVideoOpl = undefined;
}
// Temporarily expose input value. Use with caution.
get uncompressedDigitalVideoOplInput() {
return this._uncompressedDigitalVideoOpl;
}
get explicitAnalogTelevisionOutputRestriction() {
return this._explicitAnalogTelevisionOutputRestriction;
}
putExplicitAnalogTelevisionOutputRestriction(value) {
this._explicitAnalogTelevisionOutputRestriction.internalValue = value;
}
resetExplicitAnalogTelevisionOutputRestriction() {
this._explicitAnalogTelevisionOutputRestriction.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get explicitAnalogTelevisionOutputRestrictionInput() {
return this._explicitAnalogTelevisionOutputRestriction.internalValue;
}
}
exports.MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightOutputReference = MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightOutputReference;
_d = JSII_RTTI_SYMBOL_1;
MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.mediaContentKeyPolicy.MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightOutputReference", version: "12.27.0" };
function mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicenseToTerraform(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_test_devices: cdktf.booleanToTerraform(struct.allowTestDevices),
begin_date: cdktf.stringToTerraform(struct.beginDate),
content_key_location_from_header_enabled: cdktf.booleanToTerraform(struct.contentKeyLocationFromHeaderEnabled),
content_key_location_from_key_id: cdktf.stringToTerraform(struct.contentKeyLocationFromKeyId),
content_type: cdktf.stringToTerraform(struct.contentType),
expiration_date: cdktf.stringToTerraform(struct.expirationDate),
grace_period: cdktf.stringToTerraform(struct.gracePeriod),
license_type: cdktf.stringToTerraform(struct.licenseType),
relative_begin_date: cdktf.stringToTerraform(struct.relativeBeginDate),
relative_expiration_date: cdktf.stringToTerraform(struct.relativeExpirationDate),
security_level: cdktf.stringToTerraform(struct.securityLevel),
play_right: mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightToTerraform(struct.playRight),
};
}
exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicenseToTerraform = mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicenseToTerraform;
function mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicenseToHclTerraform(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_test_devices: {
value: cdktf.booleanToHclTerraform(struct.allowTestDevices),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
begin_date: {
value: cdktf.stringToHclTerraform(struct.beginDate),
isBlock: false,
type: "simple",
storageClassType: "string",
},
content_key_location_from_header_enabled: {
value: cdktf.booleanToHclTerraform(struct.contentKeyLocationFromHeaderEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
content_key_location_from_key_id: {
value: cdktf.stringToHclTerraform(struct.contentKeyLocationFromKeyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
content_type: {
value: cdktf.stringToHclTerraform(struct.contentType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
expiration_date: {
value: cdktf.stringToHclTerraform(struct.expirationDate),
isBlock: false,
type: "simple",
storageClassType: "string",
},
grace_period: {
value: cdktf.stringToHclTerraform(struct.gracePeriod),
isBlock: false,
type: "simple",
storageClassType: "string",
},
license_type: {
value: cdktf.stringToHclTerraform(struct.licenseType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
relative_begin_date: {
value: cdktf.stringToHclTerraform(struct.relativeBeginDate),
isBlock: false,
type: "simple",
storageClassType: "string",
},
relative_expiration_date: {
value: cdktf.stringToHclTerraform(struct.relativeExpirationDate),
isBlock: false,
type: "simple",
storageClassType: "string",
},
security_level: {
value: cdktf.stringToHclTerraform(struct.securityLevel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
play_right: {
value: mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightToHclTerraform(struct.playRight),
isBlock: true,
type: "list",
storageClassType: "MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicenseToHclTerraform = mediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicenseToHclTerraform;
class MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicenseOutputReference 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;
// play_right - computed: false, optional: true, required: false
this._playRight = new MediaContentKeyPolicyPolicyOptionPlayreadyConfigurationLicensePlayRightOutputReference(this, "play_right");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._allowTestDevices !== undefined) {
hasAnyValues = true;
internalValueResult.allowTestDevices = this._allowTestDevices;
}
if (this._beginDate !== undefined) {
hasAnyValues = true;
internalValueResult.beginDate = this._beginDate;
}
if (this._contentKeyLocationFromHeaderEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.contentKeyLocationFromHeaderEnabled = this._contentKeyLocationFromHeaderEnabled;
}
if (this._contentKeyLocationFromKeyId !== undefined) {
hasAnyValues = true;
internalValueResult.contentKeyLocationFromKeyId = this._contentKeyLocationFromKeyId;
}
if (this._contentType !== undefined) {
hasAnyValues = true;
internalValueResult.contentType = this._contentType;
}
if (this._expirationDate !== undefined) {
hasAnyValues = true;
internalValueResult.expirationDate = this._expirationDate;
}
if (this._gracePeriod !== undefined) {
hasAnyValues = true;
internalValueResult.gracePeriod = this._gracePeriod;
}
if (this._licenseType !== undefined) {
hasAnyValues = true;
internalValueResult.licenseType = this._licenseType;
}
if (this._relativeBeginDate !== undefined) {
hasAnyValues = true;
internalValueResult.relativeBeginDate = this._relativeBeginDate;
}
if (this._relativeExpirationDate !== undefined) {
hasAnyValues = true;
internalValueResult.relativeExpirationDate = this._relativeExpirationDate;
}
if (this._securityLevel !== undefined) {
hasAnyValues = true;
internalValueResult.securityLevel = this._securityLevel;
}
if (this._playRight?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.playRight = this._playRight?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._allowTestDevices = undefined;
this._beginDate = undefined;
this._contentKeyLocationFromHeaderEnabled = undefined;
this._contentKeyLocationFromKeyId = undefined;
this._contentType = undefined;
this._expirationDate = undefined;
this._gracePeriod = undefined;
this._licenseType = undefined;
this._relativeBeginDate = undefined;
this._relativeExpirationDate = undefined;
this._securityLevel = undefined;
this._playRight.internalValue = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = fals