@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,095 lines • 580 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18;
Object.defineProperty(exports, "__esModule", { value: true });
exports.transcoderJobConfigEncryptionsSampleAesToHclTerraform = exports.transcoderJobConfigEncryptionsSampleAesToTerraform = exports.TranscoderJobConfigEncryptionsMpegCencOutputReference = exports.transcoderJobConfigEncryptionsMpegCencToHclTerraform = exports.transcoderJobConfigEncryptionsMpegCencToTerraform = exports.TranscoderJobConfigEncryptionsDrmSystemsOutputReference = exports.transcoderJobConfigEncryptionsDrmSystemsToHclTerraform = exports.transcoderJobConfigEncryptionsDrmSystemsToTerraform = exports.TranscoderJobConfigEncryptionsDrmSystemsWidevineOutputReference = exports.transcoderJobConfigEncryptionsDrmSystemsWidevineToHclTerraform = exports.transcoderJobConfigEncryptionsDrmSystemsWidevineToTerraform = exports.TranscoderJobConfigEncryptionsDrmSystemsPlayreadyOutputReference = exports.transcoderJobConfigEncryptionsDrmSystemsPlayreadyToHclTerraform = exports.transcoderJobConfigEncryptionsDrmSystemsPlayreadyToTerraform = exports.TranscoderJobConfigEncryptionsDrmSystemsFairplayOutputReference = exports.transcoderJobConfigEncryptionsDrmSystemsFairplayToHclTerraform = exports.transcoderJobConfigEncryptionsDrmSystemsFairplayToTerraform = exports.TranscoderJobConfigEncryptionsDrmSystemsClearkeyOutputReference = exports.transcoderJobConfigEncryptionsDrmSystemsClearkeyToHclTerraform = exports.transcoderJobConfigEncryptionsDrmSystemsClearkeyToTerraform = exports.TranscoderJobConfigEncryptionsAes128OutputReference = exports.transcoderJobConfigEncryptionsAes128ToHclTerraform = exports.transcoderJobConfigEncryptionsAes128ToTerraform = exports.TranscoderJobConfigElementaryStreamsList = exports.TranscoderJobConfigElementaryStreamsOutputReference = exports.transcoderJobConfigElementaryStreamsToHclTerraform = exports.transcoderJobConfigElementaryStreamsToTerraform = exports.TranscoderJobConfigElementaryStreamsVideoStreamOutputReference = exports.transcoderJobConfigElementaryStreamsVideoStreamToHclTerraform = exports.transcoderJobConfigElementaryStreamsVideoStreamToTerraform = exports.TranscoderJobConfigElementaryStreamsVideoStreamH264OutputReference = exports.transcoderJobConfigElementaryStreamsVideoStreamH264ToHclTerraform = exports.transcoderJobConfigElementaryStreamsVideoStreamH264ToTerraform = exports.TranscoderJobConfigElementaryStreamsVideoStreamH264SdrOutputReference = exports.transcoderJobConfigElementaryStreamsVideoStreamH264SdrToHclTerraform = exports.transcoderJobConfigElementaryStreamsVideoStreamH264SdrToTerraform = exports.TranscoderJobConfigElementaryStreamsVideoStreamH264HlgOutputReference = exports.transcoderJobConfigElementaryStreamsVideoStreamH264HlgToHclTerraform = exports.transcoderJobConfigElementaryStreamsVideoStreamH264HlgToTerraform = exports.TranscoderJobConfigElementaryStreamsAudioStreamOutputReference = exports.transcoderJobConfigElementaryStreamsAudioStreamToHclTerraform = exports.transcoderJobConfigElementaryStreamsAudioStreamToTerraform = exports.TranscoderJobConfigEditListStructList = exports.TranscoderJobConfigEditListStructOutputReference = exports.transcoderJobConfigEditListStructToHclTerraform = exports.transcoderJobConfigEditListStructToTerraform = exports.TranscoderJobConfigAdBreaksList = exports.TranscoderJobConfigAdBreaksOutputReference = exports.transcoderJobConfigAdBreaksToHclTerraform = exports.transcoderJobConfigAdBreaksToTerraform = void 0;
exports.transcoderJobTimeoutsToTerraform = exports.TranscoderJobConfigAOutputReference = exports.transcoderJobConfigAToHclTerraform = exports.transcoderJobConfigAToTerraform = exports.TranscoderJobConfigPubsubDestinationOutputReference = exports.transcoderJobConfigPubsubDestinationToHclTerraform = exports.transcoderJobConfigPubsubDestinationToTerraform = exports.TranscoderJobConfigOverlaysList = exports.TranscoderJobConfigOverlaysOutputReference = exports.transcoderJobConfigOverlaysToHclTerraform = exports.transcoderJobConfigOverlaysToTerraform = exports.TranscoderJobConfigOverlaysImageOutputReference = exports.transcoderJobConfigOverlaysImageToHclTerraform = exports.transcoderJobConfigOverlaysImageToTerraform = exports.TranscoderJobConfigOverlaysAnimationsList = exports.TranscoderJobConfigOverlaysAnimationsOutputReference = exports.transcoderJobConfigOverlaysAnimationsToHclTerraform = exports.transcoderJobConfigOverlaysAnimationsToTerraform = exports.TranscoderJobConfigOverlaysAnimationsAnimationFadeOutputReference = exports.transcoderJobConfigOverlaysAnimationsAnimationFadeToHclTerraform = exports.transcoderJobConfigOverlaysAnimationsAnimationFadeToTerraform = exports.TranscoderJobConfigOverlaysAnimationsAnimationFadeXyOutputReference = exports.transcoderJobConfigOverlaysAnimationsAnimationFadeXyToHclTerraform = exports.transcoderJobConfigOverlaysAnimationsAnimationFadeXyToTerraform = exports.TranscoderJobConfigOutputOutputReference = exports.transcoderJobConfigOutputToHclTerraform = exports.transcoderJobConfigOutputToTerraform = exports.TranscoderJobConfigMuxStreamsList = exports.TranscoderJobConfigMuxStreamsOutputReference = exports.transcoderJobConfigMuxStreamsToHclTerraform = exports.transcoderJobConfigMuxStreamsToTerraform = exports.TranscoderJobConfigMuxStreamsSegmentSettingsOutputReference = exports.transcoderJobConfigMuxStreamsSegmentSettingsToHclTerraform = exports.transcoderJobConfigMuxStreamsSegmentSettingsToTerraform = exports.TranscoderJobConfigManifestsList = exports.TranscoderJobConfigManifestsOutputReference = exports.transcoderJobConfigManifestsToHclTerraform = exports.transcoderJobConfigManifestsToTerraform = exports.TranscoderJobConfigInputsList = exports.TranscoderJobConfigInputsOutputReference = exports.transcoderJobConfigInputsToHclTerraform = exports.transcoderJobConfigInputsToTerraform = exports.TranscoderJobConfigEncryptionsList = exports.TranscoderJobConfigEncryptionsOutputReference = exports.transcoderJobConfigEncryptionsToHclTerraform = exports.transcoderJobConfigEncryptionsToTerraform = exports.TranscoderJobConfigEncryptionsSecretManagerKeySourceOutputReference = exports.transcoderJobConfigEncryptionsSecretManagerKeySourceToHclTerraform = exports.transcoderJobConfigEncryptionsSecretManagerKeySourceToTerraform = exports.TranscoderJobConfigEncryptionsSampleAesOutputReference = void 0;
exports.TranscoderJob = exports.TranscoderJobTimeoutsOutputReference = exports.transcoderJobTimeoutsToHclTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function transcoderJobConfigAdBreaksToTerraform(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 {
start_time_offset: cdktf.stringToTerraform(struct.startTimeOffset),
};
}
exports.transcoderJobConfigAdBreaksToTerraform = transcoderJobConfigAdBreaksToTerraform;
function transcoderJobConfigAdBreaksToHclTerraform(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 = {
start_time_offset: {
value: cdktf.stringToHclTerraform(struct.startTimeOffset),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.transcoderJobConfigAdBreaksToHclTerraform = transcoderJobConfigAdBreaksToHclTerraform;
class TranscoderJobConfigAdBreaksOutputReference 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._startTimeOffset !== undefined) {
hasAnyValues = true;
internalValueResult.startTimeOffset = this._startTimeOffset;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._startTimeOffset = 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._startTimeOffset = value.startTimeOffset;
}
}
get startTimeOffset() {
return this.getStringAttribute('start_time_offset');
}
set startTimeOffset(value) {
this._startTimeOffset = value;
}
resetStartTimeOffset() {
this._startTimeOffset = undefined;
}
// Temporarily expose input value. Use with caution.
get startTimeOffsetInput() {
return this._startTimeOffset;
}
}
exports.TranscoderJobConfigAdBreaksOutputReference = TranscoderJobConfigAdBreaksOutputReference;
_a = JSII_RTTI_SYMBOL_1;
TranscoderJobConfigAdBreaksOutputReference[_a] = { fqn: "@cdktf/provider-google.transcoderJob.TranscoderJobConfigAdBreaksOutputReference", version: "14.12.0" };
class TranscoderJobConfigAdBreaksList 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 TranscoderJobConfigAdBreaksOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.TranscoderJobConfigAdBreaksList = TranscoderJobConfigAdBreaksList;
_b = JSII_RTTI_SYMBOL_1;
TranscoderJobConfigAdBreaksList[_b] = { fqn: "@cdktf/provider-google.transcoderJob.TranscoderJobConfigAdBreaksList", version: "14.12.0" };
function transcoderJobConfigEditListStructToTerraform(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 {
inputs: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.inputs),
key: cdktf.stringToTerraform(struct.key),
start_time_offset: cdktf.stringToTerraform(struct.startTimeOffset),
};
}
exports.transcoderJobConfigEditListStructToTerraform = transcoderJobConfigEditListStructToTerraform;
function transcoderJobConfigEditListStructToHclTerraform(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 = {
inputs: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.inputs),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
key: {
value: cdktf.stringToHclTerraform(struct.key),
isBlock: false,
type: "simple",
storageClassType: "string",
},
start_time_offset: {
value: cdktf.stringToHclTerraform(struct.startTimeOffset),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.transcoderJobConfigEditListStructToHclTerraform = transcoderJobConfigEditListStructToHclTerraform;
class TranscoderJobConfigEditListStructOutputReference 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._inputs !== undefined) {
hasAnyValues = true;
internalValueResult.inputs = this._inputs;
}
if (this._key !== undefined) {
hasAnyValues = true;
internalValueResult.key = this._key;
}
if (this._startTimeOffset !== undefined) {
hasAnyValues = true;
internalValueResult.startTimeOffset = this._startTimeOffset;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._inputs = undefined;
this._key = undefined;
this._startTimeOffset = 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._inputs = value.inputs;
this._key = value.key;
this._startTimeOffset = value.startTimeOffset;
}
}
get inputs() {
return this.getListAttribute('inputs');
}
set inputs(value) {
this._inputs = value;
}
resetInputs() {
this._inputs = undefined;
}
// Temporarily expose input value. Use with caution.
get inputsInput() {
return this._inputs;
}
get key() {
return this.getStringAttribute('key');
}
set key(value) {
this._key = value;
}
resetKey() {
this._key = undefined;
}
// Temporarily expose input value. Use with caution.
get keyInput() {
return this._key;
}
get startTimeOffset() {
return this.getStringAttribute('start_time_offset');
}
set startTimeOffset(value) {
this._startTimeOffset = value;
}
resetStartTimeOffset() {
this._startTimeOffset = undefined;
}
// Temporarily expose input value. Use with caution.
get startTimeOffsetInput() {
return this._startTimeOffset;
}
}
exports.TranscoderJobConfigEditListStructOutputReference = TranscoderJobConfigEditListStructOutputReference;
_c = JSII_RTTI_SYMBOL_1;
TranscoderJobConfigEditListStructOutputReference[_c] = { fqn: "@cdktf/provider-google.transcoderJob.TranscoderJobConfigEditListStructOutputReference", version: "14.12.0" };
class TranscoderJobConfigEditListStructList 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 TranscoderJobConfigEditListStructOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.TranscoderJobConfigEditListStructList = TranscoderJobConfigEditListStructList;
_d = JSII_RTTI_SYMBOL_1;
TranscoderJobConfigEditListStructList[_d] = { fqn: "@cdktf/provider-google.transcoderJob.TranscoderJobConfigEditListStructList", version: "14.12.0" };
function transcoderJobConfigElementaryStreamsAudioStreamToTerraform(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 {
bitrate_bps: cdktf.numberToTerraform(struct.bitrateBps),
channel_count: cdktf.numberToTerraform(struct.channelCount),
channel_layout: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.channelLayout),
codec: cdktf.stringToTerraform(struct.codec),
sample_rate_hertz: cdktf.numberToTerraform(struct.sampleRateHertz),
};
}
exports.transcoderJobConfigElementaryStreamsAudioStreamToTerraform = transcoderJobConfigElementaryStreamsAudioStreamToTerraform;
function transcoderJobConfigElementaryStreamsAudioStreamToHclTerraform(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 = {
bitrate_bps: {
value: cdktf.numberToHclTerraform(struct.bitrateBps),
isBlock: false,
type: "simple",
storageClassType: "number",
},
channel_count: {
value: cdktf.numberToHclTerraform(struct.channelCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
channel_layout: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.channelLayout),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
codec: {
value: cdktf.stringToHclTerraform(struct.codec),
isBlock: false,
type: "simple",
storageClassType: "string",
},
sample_rate_hertz: {
value: cdktf.numberToHclTerraform(struct.sampleRateHertz),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.transcoderJobConfigElementaryStreamsAudioStreamToHclTerraform = transcoderJobConfigElementaryStreamsAudioStreamToHclTerraform;
class TranscoderJobConfigElementaryStreamsAudioStreamOutputReference 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._bitrateBps !== undefined) {
hasAnyValues = true;
internalValueResult.bitrateBps = this._bitrateBps;
}
if (this._channelCount !== undefined) {
hasAnyValues = true;
internalValueResult.channelCount = this._channelCount;
}
if (this._channelLayout !== undefined) {
hasAnyValues = true;
internalValueResult.channelLayout = this._channelLayout;
}
if (this._codec !== undefined) {
hasAnyValues = true;
internalValueResult.codec = this._codec;
}
if (this._sampleRateHertz !== undefined) {
hasAnyValues = true;
internalValueResult.sampleRateHertz = this._sampleRateHertz;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._bitrateBps = undefined;
this._channelCount = undefined;
this._channelLayout = undefined;
this._codec = undefined;
this._sampleRateHertz = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._bitrateBps = value.bitrateBps;
this._channelCount = value.channelCount;
this._channelLayout = value.channelLayout;
this._codec = value.codec;
this._sampleRateHertz = value.sampleRateHertz;
}
}
get bitrateBps() {
return this.getNumberAttribute('bitrate_bps');
}
set bitrateBps(value) {
this._bitrateBps = value;
}
// Temporarily expose input value. Use with caution.
get bitrateBpsInput() {
return this._bitrateBps;
}
get channelCount() {
return this.getNumberAttribute('channel_count');
}
set channelCount(value) {
this._channelCount = value;
}
resetChannelCount() {
this._channelCount = undefined;
}
// Temporarily expose input value. Use with caution.
get channelCountInput() {
return this._channelCount;
}
get channelLayout() {
return this.getListAttribute('channel_layout');
}
set channelLayout(value) {
this._channelLayout = value;
}
resetChannelLayout() {
this._channelLayout = undefined;
}
// Temporarily expose input value. Use with caution.
get channelLayoutInput() {
return this._channelLayout;
}
get codec() {
return this.getStringAttribute('codec');
}
set codec(value) {
this._codec = value;
}
resetCodec() {
this._codec = undefined;
}
// Temporarily expose input value. Use with caution.
get codecInput() {
return this._codec;
}
get sampleRateHertz() {
return this.getNumberAttribute('sample_rate_hertz');
}
set sampleRateHertz(value) {
this._sampleRateHertz = value;
}
resetSampleRateHertz() {
this._sampleRateHertz = undefined;
}
// Temporarily expose input value. Use with caution.
get sampleRateHertzInput() {
return this._sampleRateHertz;
}
}
exports.TranscoderJobConfigElementaryStreamsAudioStreamOutputReference = TranscoderJobConfigElementaryStreamsAudioStreamOutputReference;
_e = JSII_RTTI_SYMBOL_1;
TranscoderJobConfigElementaryStreamsAudioStreamOutputReference[_e] = { fqn: "@cdktf/provider-google.transcoderJob.TranscoderJobConfigElementaryStreamsAudioStreamOutputReference", version: "14.12.0" };
function transcoderJobConfigElementaryStreamsVideoStreamH264HlgToTerraform(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 {};
}
exports.transcoderJobConfigElementaryStreamsVideoStreamH264HlgToTerraform = transcoderJobConfigElementaryStreamsVideoStreamH264HlgToTerraform;
function transcoderJobConfigElementaryStreamsVideoStreamH264HlgToHclTerraform(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 = {};
return attrs;
}
exports.transcoderJobConfigElementaryStreamsVideoStreamH264HlgToHclTerraform = transcoderJobConfigElementaryStreamsVideoStreamH264HlgToHclTerraform;
class TranscoderJobConfigElementaryStreamsVideoStreamH264HlgOutputReference 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 = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
}
exports.TranscoderJobConfigElementaryStreamsVideoStreamH264HlgOutputReference = TranscoderJobConfigElementaryStreamsVideoStreamH264HlgOutputReference;
_f = JSII_RTTI_SYMBOL_1;
TranscoderJobConfigElementaryStreamsVideoStreamH264HlgOutputReference[_f] = { fqn: "@cdktf/provider-google.transcoderJob.TranscoderJobConfigElementaryStreamsVideoStreamH264HlgOutputReference", version: "14.12.0" };
function transcoderJobConfigElementaryStreamsVideoStreamH264SdrToTerraform(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 {};
}
exports.transcoderJobConfigElementaryStreamsVideoStreamH264SdrToTerraform = transcoderJobConfigElementaryStreamsVideoStreamH264SdrToTerraform;
function transcoderJobConfigElementaryStreamsVideoStreamH264SdrToHclTerraform(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 = {};
return attrs;
}
exports.transcoderJobConfigElementaryStreamsVideoStreamH264SdrToHclTerraform = transcoderJobConfigElementaryStreamsVideoStreamH264SdrToHclTerraform;
class TranscoderJobConfigElementaryStreamsVideoStreamH264SdrOutputReference 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 = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
}
exports.TranscoderJobConfigElementaryStreamsVideoStreamH264SdrOutputReference = TranscoderJobConfigElementaryStreamsVideoStreamH264SdrOutputReference;
_g = JSII_RTTI_SYMBOL_1;
TranscoderJobConfigElementaryStreamsVideoStreamH264SdrOutputReference[_g] = { fqn: "@cdktf/provider-google.transcoderJob.TranscoderJobConfigElementaryStreamsVideoStreamH264SdrOutputReference", version: "14.12.0" };
function transcoderJobConfigElementaryStreamsVideoStreamH264ToTerraform(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 {
bitrate_bps: cdktf.numberToTerraform(struct.bitrateBps),
crf_level: cdktf.numberToTerraform(struct.crfLevel),
entropy_coder: cdktf.stringToTerraform(struct.entropyCoder),
frame_rate: cdktf.numberToTerraform(struct.frameRate),
gop_duration: cdktf.stringToTerraform(struct.gopDuration),
height_pixels: cdktf.numberToTerraform(struct.heightPixels),
pixel_format: cdktf.stringToTerraform(struct.pixelFormat),
preset: cdktf.stringToTerraform(struct.preset),
profile: cdktf.stringToTerraform(struct.profile),
rate_control_mode: cdktf.stringToTerraform(struct.rateControlMode),
vbv_fullness_bits: cdktf.numberToTerraform(struct.vbvFullnessBits),
vbv_size_bits: cdktf.numberToTerraform(struct.vbvSizeBits),
width_pixels: cdktf.numberToTerraform(struct.widthPixels),
hlg: transcoderJobConfigElementaryStreamsVideoStreamH264HlgToTerraform(struct.hlg),
sdr: transcoderJobConfigElementaryStreamsVideoStreamH264SdrToTerraform(struct.sdr),
};
}
exports.transcoderJobConfigElementaryStreamsVideoStreamH264ToTerraform = transcoderJobConfigElementaryStreamsVideoStreamH264ToTerraform;
function transcoderJobConfigElementaryStreamsVideoStreamH264ToHclTerraform(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 = {
bitrate_bps: {
value: cdktf.numberToHclTerraform(struct.bitrateBps),
isBlock: false,
type: "simple",
storageClassType: "number",
},
crf_level: {
value: cdktf.numberToHclTerraform(struct.crfLevel),
isBlock: false,
type: "simple",
storageClassType: "number",
},
entropy_coder: {
value: cdktf.stringToHclTerraform(struct.entropyCoder),
isBlock: false,
type: "simple",
storageClassType: "string",
},
frame_rate: {
value: cdktf.numberToHclTerraform(struct.frameRate),
isBlock: false,
type: "simple",
storageClassType: "number",
},
gop_duration: {
value: cdktf.stringToHclTerraform(struct.gopDuration),
isBlock: false,
type: "simple",
storageClassType: "string",
},
height_pixels: {
value: cdktf.numberToHclTerraform(struct.heightPixels),
isBlock: false,
type: "simple",
storageClassType: "number",
},
pixel_format: {
value: cdktf.stringToHclTerraform(struct.pixelFormat),
isBlock: false,
type: "simple",
storageClassType: "string",
},
preset: {
value: cdktf.stringToHclTerraform(struct.preset),
isBlock: false,
type: "simple",
storageClassType: "string",
},
profile: {
value: cdktf.stringToHclTerraform(struct.profile),
isBlock: false,
type: "simple",
storageClassType: "string",
},
rate_control_mode: {
value: cdktf.stringToHclTerraform(struct.rateControlMode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
vbv_fullness_bits: {
value: cdktf.numberToHclTerraform(struct.vbvFullnessBits),
isBlock: false,
type: "simple",
storageClassType: "number",
},
vbv_size_bits: {
value: cdktf.numberToHclTerraform(struct.vbvSizeBits),
isBlock: false,
type: "simple",
storageClassType: "number",
},
width_pixels: {
value: cdktf.numberToHclTerraform(struct.widthPixels),
isBlock: false,
type: "simple",
storageClassType: "number",
},
hlg: {
value: transcoderJobConfigElementaryStreamsVideoStreamH264HlgToHclTerraform(struct.hlg),
isBlock: true,
type: "list",
storageClassType: "TranscoderJobConfigElementaryStreamsVideoStreamH264HlgList",
},
sdr: {
value: transcoderJobConfigElementaryStreamsVideoStreamH264SdrToHclTerraform(struct.sdr),
isBlock: true,
type: "list",
storageClassType: "TranscoderJobConfigElementaryStreamsVideoStreamH264SdrList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.transcoderJobConfigElementaryStreamsVideoStreamH264ToHclTerraform = transcoderJobConfigElementaryStreamsVideoStreamH264ToHclTerraform;
class TranscoderJobConfigElementaryStreamsVideoStreamH264OutputReference 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;
// hlg - computed: false, optional: true, required: false
this._hlg = new TranscoderJobConfigElementaryStreamsVideoStreamH264HlgOutputReference(this, "hlg");
// sdr - computed: false, optional: true, required: false
this._sdr = new TranscoderJobConfigElementaryStreamsVideoStreamH264SdrOutputReference(this, "sdr");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._bitrateBps !== undefined) {
hasAnyValues = true;
internalValueResult.bitrateBps = this._bitrateBps;
}
if (this._crfLevel !== undefined) {
hasAnyValues = true;
internalValueResult.crfLevel = this._crfLevel;
}
if (this._entropyCoder !== undefined) {
hasAnyValues = true;
internalValueResult.entropyCoder = this._entropyCoder;
}
if (this._frameRate !== undefined) {
hasAnyValues = true;
internalValueResult.frameRate = this._frameRate;
}
if (this._gopDuration !== undefined) {
hasAnyValues = true;
internalValueResult.gopDuration = this._gopDuration;
}
if (this._heightPixels !== undefined) {
hasAnyValues = true;
internalValueResult.heightPixels = this._heightPixels;
}
if (this._pixelFormat !== undefined) {
hasAnyValues = true;
internalValueResult.pixelFormat = this._pixelFormat;
}
if (this._preset !== undefined) {
hasAnyValues = true;
internalValueResult.preset = this._preset;
}
if (this._profile !== undefined) {
hasAnyValues = true;
internalValueResult.profile = this._profile;
}
if (this._rateControlMode !== undefined) {
hasAnyValues = true;
internalValueResult.rateControlMode = this._rateControlMode;
}
if (this._vbvFullnessBits !== undefined) {
hasAnyValues = true;
internalValueResult.vbvFullnessBits = this._vbvFullnessBits;
}
if (this._vbvSizeBits !== undefined) {
hasAnyValues = true;
internalValueResult.vbvSizeBits = this._vbvSizeBits;
}
if (this._widthPixels !== undefined) {
hasAnyValues = true;
internalValueResult.widthPixels = this._widthPixels;
}
if (this._hlg?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.hlg = this._hlg?.internalValue;
}
if (this._sdr?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.sdr = this._sdr?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._bitrateBps = undefined;
this._crfLevel = undefined;
this._entropyCoder = undefined;
this._frameRate = undefined;
this._gopDuration = undefined;
this._heightPixels = undefined;
this._pixelFormat = undefined;
this._preset = undefined;
this._profile = undefined;
this._rateControlMode = undefined;
this._vbvFullnessBits = undefined;
this._vbvSizeBits = undefined;
this._widthPixels = undefined;
this._hlg.internalValue = undefined;
this._sdr.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._bitrateBps = value.bitrateBps;
this._crfLevel = value.crfLevel;
this._entropyCoder = value.entropyCoder;
this._frameRate = value.frameRate;
this._gopDuration = value.gopDuration;
this._heightPixels = value.heightPixels;
this._pixelFormat = value.pixelFormat;
this._preset = value.preset;
this._profile = value.profile;
this._rateControlMode = value.rateControlMode;
this._vbvFullnessBits = value.vbvFullnessBits;
this._vbvSizeBits = value.vbvSizeBits;
this._widthPixels = value.widthPixels;
this._hlg.internalValue = value.hlg;
this._sdr.internalValue = value.sdr;
}
}
get bitrateBps() {
return this.getNumberAttribute('bitrate_bps');
}
set bitrateBps(value) {
this._bitrateBps = value;
}
// Temporarily expose input value. Use with caution.
get bitrateBpsInput() {
return this._bitrateBps;
}
get crfLevel() {
return this.getNumberAttribute('crf_level');
}
set crfLevel(value) {
this._crfLevel = value;
}
resetCrfLevel() {
this._crfLevel = undefined;
}
// Temporarily expose input value. Use with caution.
get crfLevelInput() {
return this._crfLevel;
}
get entropyCoder() {
return this.getStringAttribute('entropy_coder');
}
set entropyCoder(value) {
this._entropyCoder = value;
}
resetEntropyCoder() {
this._entropyCoder = undefined;
}
// Temporarily expose input value. Use with caution.
get entropyCoderInput() {
return this._entropyCoder;
}
get frameRate() {
return this.getNumberAttribute('frame_rate');
}
set frameRate(value) {
this._frameRate = value;
}
// Temporarily expose input value. Use with caution.
get frameRateInput() {
return this._frameRate;
}
get gopDuration() {
return this.getStringAttribute('gop_duration');
}
set gopDuration(value) {
this._gopDuration = value;
}
resetGopDuration() {
this._gopDuration = undefined;
}
// Temporarily expose input value. Use with caution.
get gopDurationInput() {
return this._gopDuration;
}
get heightPixels() {
return this.getNumberAttribute('height_pixels');
}
set heightPixels(value) {
this._heightPixels = value;
}
resetHeightPixels() {
this._heightPixels = undefined;
}
// Temporarily expose input value. Use with caution.
get heightPixelsInput() {
return this._heightPixels;
}
get pixelFormat() {
return this.getStringAttribute('pixel_format');
}
set pixelFormat(value) {
this._pixelFormat = value;
}
resetPixelFormat() {
this._pixelFormat = undefined;
}
// Temporarily expose input value. Use with caution.
get pixelFormatInput() {
return this._pixelFormat;
}
get preset() {
return this.getStringAttribute('preset');
}
set preset(value) {
this._preset = value;
}
resetPreset() {
this._preset = undefined;
}
// Temporarily expose input value. Use with caution.
get presetInput() {
return this._preset;
}
get profile() {
return this.getStringAttribute('profile');
}
set profile(value) {
this._profile = value;
}
resetProfile() {
this._profile = undefined;
}
// Temporarily expose input value. Use with caution.
get profileInput() {
return this._profile;
}
get rateControlMode() {
return this.getStringAttribute('rate_control_mode');
}
set rateControlMode(value) {
this._rateControlMode = value;
}
resetRateControlMode() {
this._rateControlMode = undefined;
}
// Temporarily expose input value. Use with caution.
get rateControlModeInput() {
return this._rateControlMode;
}
get vbvFullnessBits() {
return this.getNumberAttribute('vbv_fullness_bits');
}
set vbvFullnessBits(value) {
this._vbvFullnessBits = value;
}
resetVbvFullnessBits() {
this._vbvFullnessBits = undefined;
}
// Temporarily expose input value. Use with caution.
get vbvFullnessBitsInput() {
return this._vbvFullnessBits;
}
get vbvSizeBits() {
return this.getNumberAttribute('vbv_size_bits');
}
set vbvSizeBits(value) {
this._vbvSizeBits = value;
}
resetVbvSizeBits() {
this._vbvSizeBits = undefined;
}
// Temporarily expose input value. Use with caution.
get vbvSizeBitsInput() {
return this._vbvSizeBits;
}
get widthPixels() {
return this.getNumberAttribute('width_pixels');
}
set widthPixels(value) {
this._widthPixels = value;
}
resetWidthPixels() {
this._widthPixels = undefined;
}
// Temporarily expose input value. Use with caution.
get widthPixelsInput() {
return this._widthPixels;
}
get hlg() {
return this._hlg;
}
putHlg(value) {
this._hlg.internalValue = value;
}
resetHlg() {
this._hlg.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get hlgInput() {
return this._hlg.internalValue;
}
get sdr() {
return this._sdr;
}
putSdr(value) {
this._sdr.internalValue = value;
}
resetSdr() {
this._sdr.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get sdrInput() {
return this._sdr.internalValue;
}
}
exports.TranscoderJobConfigElementaryStreamsVideoStreamH264OutputReference = TranscoderJobConfigElementaryStreamsVideoStreamH264OutputReference;
_h = JSII_RTTI_SYMBOL_1;
TranscoderJobConfigElementaryStreamsVideoStreamH264OutputReference[_h] = { fqn: "@cdktf/provider-google.transcoderJob.TranscoderJobConfigElementaryStreamsVideoStreamH264OutputReference", version: "14.12.0" };
function transcoderJobConfigElementaryStreamsVideoStreamToTerraform(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 {
h264: transcoderJobConfigElementaryStreamsVideoStreamH264ToTerraform(struct.h264),
};
}
exports.transcoderJobConfigElementaryStreamsVideoStreamToTerraform = transcoderJobConfigElementaryStreamsVideoStreamToTerraform;
function transcoderJobConfigElementaryStreamsVideoStreamToHclTerraform(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 = {
h264: {
value: transcoderJobConfigElementaryStreamsVideoStreamH264ToHclTerraform(struct.h264),
isBlock: true,
type: "list",
storageClassType: "TranscoderJobConfigElementaryStreamsVideoStreamH264List",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.transcoderJobConfigElementaryStreamsVideoStreamToHclTerraform = transcoderJobConfigElementaryStreamsVideoStreamToHclTerraform;
class TranscoderJobConfigElementaryStreamsVideoStreamOutputReference 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;
// h264 - computed: false, optional: true, required: false
this._h264 = new TranscoderJobConfigElementaryStreamsVideoStreamH264OutputReference(this, "h264");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._h264?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.h264 = this._h264?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._h264.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._h264.internalValue = value.h264;
}
}
get h264() {
return this._h264;
}
putH264(value) {
this._h264.internalValue = value;
}
resetH264() {
this._h264.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get h264Input() {
return this._h264.internalValue;
}
}
exports.TranscoderJobConfigElementaryStreamsVideoStreamOutputReference = TranscoderJobConfigElementaryStreamsVideoStreamOutputReference;
_j = JSII_RTTI_SYMBOL_1;
TranscoderJobConfigElementaryStreamsVideoStreamOutputReference[_j] = { fqn: "@cdktf/provider-google.transcoderJob.TranscoderJobConfigElementaryStreamsVideoStreamOutputReference", version: "14.12.0" };
function transcoderJobConfigElementaryStreamsToTerraform(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 {
key: cdktf.stringToTerraform(struct.key),
audio_stream: transcoderJobConfigElementaryStreamsAudioStreamToTerraform(struct.audioStream),
video_stream: transcoderJobConfigElementaryStreamsVideoStreamToTerraform(struct.videoStream),
};
}
exports.transcoderJobConfigElementaryStreamsToTerraform = transcoderJobConfigElementaryStreamsToTerraform;
function transcoderJobConfigElementaryStreamsToHclTerraform(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 = {
key: {
value: cdktf.stringToHclTerraform(struct.key),
isBlock: false,
type: "simple",
storageClassType: "string",
},
audio_stream: {
val