UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,375 lines 219 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g; Object.defineProperty(exports, "__esModule", { value: true }); exports.ElastictranscoderPreset = exports.ElastictranscoderPresetVideoWatermarksList = exports.ElastictranscoderPresetVideoWatermarksOutputReference = exports.ElastictranscoderPresetVideoOutputReference = exports.ElastictranscoderPresetThumbnailsOutputReference = exports.ElastictranscoderPresetAudioCodecOptionsOutputReference = exports.ElastictranscoderPresetAudioOutputReference = void 0; exports.elastictranscoderPresetAudioToTerraform = elastictranscoderPresetAudioToTerraform; exports.elastictranscoderPresetAudioToHclTerraform = elastictranscoderPresetAudioToHclTerraform; exports.elastictranscoderPresetAudioCodecOptionsToTerraform = elastictranscoderPresetAudioCodecOptionsToTerraform; exports.elastictranscoderPresetAudioCodecOptionsToHclTerraform = elastictranscoderPresetAudioCodecOptionsToHclTerraform; exports.elastictranscoderPresetThumbnailsToTerraform = elastictranscoderPresetThumbnailsToTerraform; exports.elastictranscoderPresetThumbnailsToHclTerraform = elastictranscoderPresetThumbnailsToHclTerraform; exports.elastictranscoderPresetVideoToTerraform = elastictranscoderPresetVideoToTerraform; exports.elastictranscoderPresetVideoToHclTerraform = elastictranscoderPresetVideoToHclTerraform; exports.elastictranscoderPresetVideoWatermarksToTerraform = elastictranscoderPresetVideoWatermarksToTerraform; exports.elastictranscoderPresetVideoWatermarksToHclTerraform = elastictranscoderPresetVideoWatermarksToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function elastictranscoderPresetAudioToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { audio_packing_mode: cdktf.stringToTerraform(struct.audioPackingMode), bit_rate: cdktf.stringToTerraform(struct.bitRate), channels: cdktf.stringToTerraform(struct.channels), codec: cdktf.stringToTerraform(struct.codec), sample_rate: cdktf.stringToTerraform(struct.sampleRate), }; } function elastictranscoderPresetAudioToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { audio_packing_mode: { value: cdktf.stringToHclTerraform(struct.audioPackingMode), isBlock: false, type: "simple", storageClassType: "string", }, bit_rate: { value: cdktf.stringToHclTerraform(struct.bitRate), isBlock: false, type: "simple", storageClassType: "string", }, channels: { value: cdktf.stringToHclTerraform(struct.channels), isBlock: false, type: "simple", storageClassType: "string", }, codec: { value: cdktf.stringToHclTerraform(struct.codec), isBlock: false, type: "simple", storageClassType: "string", }, sample_rate: { value: cdktf.stringToHclTerraform(struct.sampleRate), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ElastictranscoderPresetAudioOutputReference 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._audioPackingMode !== undefined) { hasAnyValues = true; internalValueResult.audioPackingMode = this._audioPackingMode; } if (this._bitRate !== undefined) { hasAnyValues = true; internalValueResult.bitRate = this._bitRate; } if (this._channels !== undefined) { hasAnyValues = true; internalValueResult.channels = this._channels; } if (this._codec !== undefined) { hasAnyValues = true; internalValueResult.codec = this._codec; } if (this._sampleRate !== undefined) { hasAnyValues = true; internalValueResult.sampleRate = this._sampleRate; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._audioPackingMode = undefined; this._bitRate = undefined; this._channels = undefined; this._codec = undefined; this._sampleRate = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._audioPackingMode = value.audioPackingMode; this._bitRate = value.bitRate; this._channels = value.channels; this._codec = value.codec; this._sampleRate = value.sampleRate; } } get audioPackingMode() { return this.getStringAttribute('audio_packing_mode'); } set audioPackingMode(value) { this._audioPackingMode = value; } resetAudioPackingMode() { this._audioPackingMode = undefined; } // Temporarily expose input value. Use with caution. get audioPackingModeInput() { return this._audioPackingMode; } get bitRate() { return this.getStringAttribute('bit_rate'); } set bitRate(value) { this._bitRate = value; } resetBitRate() { this._bitRate = undefined; } // Temporarily expose input value. Use with caution. get bitRateInput() { return this._bitRate; } get channels() { return this.getStringAttribute('channels'); } set channels(value) { this._channels = value; } resetChannels() { this._channels = undefined; } // Temporarily expose input value. Use with caution. get channelsInput() { return this._channels; } 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 sampleRate() { return this.getStringAttribute('sample_rate'); } set sampleRate(value) { this._sampleRate = value; } resetSampleRate() { this._sampleRate = undefined; } // Temporarily expose input value. Use with caution. get sampleRateInput() { return this._sampleRate; } } exports.ElastictranscoderPresetAudioOutputReference = ElastictranscoderPresetAudioOutputReference; _a = JSII_RTTI_SYMBOL_1; ElastictranscoderPresetAudioOutputReference[_a] = { fqn: "@cdktf/provider-aws.elastictranscoderPreset.ElastictranscoderPresetAudioOutputReference", version: "21.22.1" }; function elastictranscoderPresetAudioCodecOptionsToTerraform(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 { bit_depth: cdktf.stringToTerraform(struct.bitDepth), bit_order: cdktf.stringToTerraform(struct.bitOrder), profile: cdktf.stringToTerraform(struct.profile), signed: cdktf.stringToTerraform(struct.signed), }; } function elastictranscoderPresetAudioCodecOptionsToHclTerraform(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 = { bit_depth: { value: cdktf.stringToHclTerraform(struct.bitDepth), isBlock: false, type: "simple", storageClassType: "string", }, bit_order: { value: cdktf.stringToHclTerraform(struct.bitOrder), isBlock: false, type: "simple", storageClassType: "string", }, profile: { value: cdktf.stringToHclTerraform(struct.profile), isBlock: false, type: "simple", storageClassType: "string", }, signed: { value: cdktf.stringToHclTerraform(struct.signed), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ElastictranscoderPresetAudioCodecOptionsOutputReference 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._bitDepth !== undefined) { hasAnyValues = true; internalValueResult.bitDepth = this._bitDepth; } if (this._bitOrder !== undefined) { hasAnyValues = true; internalValueResult.bitOrder = this._bitOrder; } if (this._profile !== undefined) { hasAnyValues = true; internalValueResult.profile = this._profile; } if (this._signed !== undefined) { hasAnyValues = true; internalValueResult.signed = this._signed; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._bitDepth = undefined; this._bitOrder = undefined; this._profile = undefined; this._signed = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._bitDepth = value.bitDepth; this._bitOrder = value.bitOrder; this._profile = value.profile; this._signed = value.signed; } } get bitDepth() { return this.getStringAttribute('bit_depth'); } set bitDepth(value) { this._bitDepth = value; } resetBitDepth() { this._bitDepth = undefined; } // Temporarily expose input value. Use with caution. get bitDepthInput() { return this._bitDepth; } get bitOrder() { return this.getStringAttribute('bit_order'); } set bitOrder(value) { this._bitOrder = value; } resetBitOrder() { this._bitOrder = undefined; } // Temporarily expose input value. Use with caution. get bitOrderInput() { return this._bitOrder; } 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 signed() { return this.getStringAttribute('signed'); } set signed(value) { this._signed = value; } resetSigned() { this._signed = undefined; } // Temporarily expose input value. Use with caution. get signedInput() { return this._signed; } } exports.ElastictranscoderPresetAudioCodecOptionsOutputReference = ElastictranscoderPresetAudioCodecOptionsOutputReference; _b = JSII_RTTI_SYMBOL_1; ElastictranscoderPresetAudioCodecOptionsOutputReference[_b] = { fqn: "@cdktf/provider-aws.elastictranscoderPreset.ElastictranscoderPresetAudioCodecOptionsOutputReference", version: "21.22.1" }; function elastictranscoderPresetThumbnailsToTerraform(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 { aspect_ratio: cdktf.stringToTerraform(struct.aspectRatio), format: cdktf.stringToTerraform(struct.format), interval: cdktf.stringToTerraform(struct.interval), max_height: cdktf.stringToTerraform(struct.maxHeight), max_width: cdktf.stringToTerraform(struct.maxWidth), padding_policy: cdktf.stringToTerraform(struct.paddingPolicy), resolution: cdktf.stringToTerraform(struct.resolution), sizing_policy: cdktf.stringToTerraform(struct.sizingPolicy), }; } function elastictranscoderPresetThumbnailsToHclTerraform(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 = { aspect_ratio: { value: cdktf.stringToHclTerraform(struct.aspectRatio), isBlock: false, type: "simple", storageClassType: "string", }, format: { value: cdktf.stringToHclTerraform(struct.format), isBlock: false, type: "simple", storageClassType: "string", }, interval: { value: cdktf.stringToHclTerraform(struct.interval), isBlock: false, type: "simple", storageClassType: "string", }, max_height: { value: cdktf.stringToHclTerraform(struct.maxHeight), isBlock: false, type: "simple", storageClassType: "string", }, max_width: { value: cdktf.stringToHclTerraform(struct.maxWidth), isBlock: false, type: "simple", storageClassType: "string", }, padding_policy: { value: cdktf.stringToHclTerraform(struct.paddingPolicy), isBlock: false, type: "simple", storageClassType: "string", }, resolution: { value: cdktf.stringToHclTerraform(struct.resolution), isBlock: false, type: "simple", storageClassType: "string", }, sizing_policy: { value: cdktf.stringToHclTerraform(struct.sizingPolicy), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ElastictranscoderPresetThumbnailsOutputReference 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._aspectRatio !== undefined) { hasAnyValues = true; internalValueResult.aspectRatio = this._aspectRatio; } if (this._format !== undefined) { hasAnyValues = true; internalValueResult.format = this._format; } if (this._interval !== undefined) { hasAnyValues = true; internalValueResult.interval = this._interval; } if (this._maxHeight !== undefined) { hasAnyValues = true; internalValueResult.maxHeight = this._maxHeight; } if (this._maxWidth !== undefined) { hasAnyValues = true; internalValueResult.maxWidth = this._maxWidth; } if (this._paddingPolicy !== undefined) { hasAnyValues = true; internalValueResult.paddingPolicy = this._paddingPolicy; } if (this._resolution !== undefined) { hasAnyValues = true; internalValueResult.resolution = this._resolution; } if (this._sizingPolicy !== undefined) { hasAnyValues = true; internalValueResult.sizingPolicy = this._sizingPolicy; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._aspectRatio = undefined; this._format = undefined; this._interval = undefined; this._maxHeight = undefined; this._maxWidth = undefined; this._paddingPolicy = undefined; this._resolution = undefined; this._sizingPolicy = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._aspectRatio = value.aspectRatio; this._format = value.format; this._interval = value.interval; this._maxHeight = value.maxHeight; this._maxWidth = value.maxWidth; this._paddingPolicy = value.paddingPolicy; this._resolution = value.resolution; this._sizingPolicy = value.sizingPolicy; } } get aspectRatio() { return this.getStringAttribute('aspect_ratio'); } set aspectRatio(value) { this._aspectRatio = value; } resetAspectRatio() { this._aspectRatio = undefined; } // Temporarily expose input value. Use with caution. get aspectRatioInput() { return this._aspectRatio; } get format() { return this.getStringAttribute('format'); } set format(value) { this._format = value; } resetFormat() { this._format = undefined; } // Temporarily expose input value. Use with caution. get formatInput() { return this._format; } get interval() { return this.getStringAttribute('interval'); } set interval(value) { this._interval = value; } resetInterval() { this._interval = undefined; } // Temporarily expose input value. Use with caution. get intervalInput() { return this._interval; } get maxHeight() { return this.getStringAttribute('max_height'); } set maxHeight(value) { this._maxHeight = value; } resetMaxHeight() { this._maxHeight = undefined; } // Temporarily expose input value. Use with caution. get maxHeightInput() { return this._maxHeight; } get maxWidth() { return this.getStringAttribute('max_width'); } set maxWidth(value) { this._maxWidth = value; } resetMaxWidth() { this._maxWidth = undefined; } // Temporarily expose input value. Use with caution. get maxWidthInput() { return this._maxWidth; } get paddingPolicy() { return this.getStringAttribute('padding_policy'); } set paddingPolicy(value) { this._paddingPolicy = value; } resetPaddingPolicy() { this._paddingPolicy = undefined; } // Temporarily expose input value. Use with caution. get paddingPolicyInput() { return this._paddingPolicy; } get resolution() { return this.getStringAttribute('resolution'); } set resolution(value) { this._resolution = value; } resetResolution() { this._resolution = undefined; } // Temporarily expose input value. Use with caution. get resolutionInput() { return this._resolution; } get sizingPolicy() { return this.getStringAttribute('sizing_policy'); } set sizingPolicy(value) { this._sizingPolicy = value; } resetSizingPolicy() { this._sizingPolicy = undefined; } // Temporarily expose input value. Use with caution. get sizingPolicyInput() { return this._sizingPolicy; } } exports.ElastictranscoderPresetThumbnailsOutputReference = ElastictranscoderPresetThumbnailsOutputReference; _c = JSII_RTTI_SYMBOL_1; ElastictranscoderPresetThumbnailsOutputReference[_c] = { fqn: "@cdktf/provider-aws.elastictranscoderPreset.ElastictranscoderPresetThumbnailsOutputReference", version: "21.22.1" }; function elastictranscoderPresetVideoToTerraform(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 { aspect_ratio: cdktf.stringToTerraform(struct.aspectRatio), bit_rate: cdktf.stringToTerraform(struct.bitRate), codec: cdktf.stringToTerraform(struct.codec), display_aspect_ratio: cdktf.stringToTerraform(struct.displayAspectRatio), fixed_gop: cdktf.stringToTerraform(struct.fixedGop), frame_rate: cdktf.stringToTerraform(struct.frameRate), keyframes_max_dist: cdktf.stringToTerraform(struct.keyframesMaxDist), max_frame_rate: cdktf.stringToTerraform(struct.maxFrameRate), max_height: cdktf.stringToTerraform(struct.maxHeight), max_width: cdktf.stringToTerraform(struct.maxWidth), padding_policy: cdktf.stringToTerraform(struct.paddingPolicy), resolution: cdktf.stringToTerraform(struct.resolution), sizing_policy: cdktf.stringToTerraform(struct.sizingPolicy), }; } function elastictranscoderPresetVideoToHclTerraform(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 = { aspect_ratio: { value: cdktf.stringToHclTerraform(struct.aspectRatio), isBlock: false, type: "simple", storageClassType: "string", }, bit_rate: { value: cdktf.stringToHclTerraform(struct.bitRate), isBlock: false, type: "simple", storageClassType: "string", }, codec: { value: cdktf.stringToHclTerraform(struct.codec), isBlock: false, type: "simple", storageClassType: "string", }, display_aspect_ratio: { value: cdktf.stringToHclTerraform(struct.displayAspectRatio), isBlock: false, type: "simple", storageClassType: "string", }, fixed_gop: { value: cdktf.stringToHclTerraform(struct.fixedGop), isBlock: false, type: "simple", storageClassType: "string", }, frame_rate: { value: cdktf.stringToHclTerraform(struct.frameRate), isBlock: false, type: "simple", storageClassType: "string", }, keyframes_max_dist: { value: cdktf.stringToHclTerraform(struct.keyframesMaxDist), isBlock: false, type: "simple", storageClassType: "string", }, max_frame_rate: { value: cdktf.stringToHclTerraform(struct.maxFrameRate), isBlock: false, type: "simple", storageClassType: "string", }, max_height: { value: cdktf.stringToHclTerraform(struct.maxHeight), isBlock: false, type: "simple", storageClassType: "string", }, max_width: { value: cdktf.stringToHclTerraform(struct.maxWidth), isBlock: false, type: "simple", storageClassType: "string", }, padding_policy: { value: cdktf.stringToHclTerraform(struct.paddingPolicy), isBlock: false, type: "simple", storageClassType: "string", }, resolution: { value: cdktf.stringToHclTerraform(struct.resolution), isBlock: false, type: "simple", storageClassType: "string", }, sizing_policy: { value: cdktf.stringToHclTerraform(struct.sizingPolicy), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ElastictranscoderPresetVideoOutputReference 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._aspectRatio !== undefined) { hasAnyValues = true; internalValueResult.aspectRatio = this._aspectRatio; } if (this._bitRate !== undefined) { hasAnyValues = true; internalValueResult.bitRate = this._bitRate; } if (this._codec !== undefined) { hasAnyValues = true; internalValueResult.codec = this._codec; } if (this._displayAspectRatio !== undefined) { hasAnyValues = true; internalValueResult.displayAspectRatio = this._displayAspectRatio; } if (this._fixedGop !== undefined) { hasAnyValues = true; internalValueResult.fixedGop = this._fixedGop; } if (this._frameRate !== undefined) { hasAnyValues = true; internalValueResult.frameRate = this._frameRate; } if (this._keyframesMaxDist !== undefined) { hasAnyValues = true; internalValueResult.keyframesMaxDist = this._keyframesMaxDist; } if (this._maxFrameRate !== undefined) { hasAnyValues = true; internalValueResult.maxFrameRate = this._maxFrameRate; } if (this._maxHeight !== undefined) { hasAnyValues = true; internalValueResult.maxHeight = this._maxHeight; } if (this._maxWidth !== undefined) { hasAnyValues = true; internalValueResult.maxWidth = this._maxWidth; } if (this._paddingPolicy !== undefined) { hasAnyValues = true; internalValueResult.paddingPolicy = this._paddingPolicy; } if (this._resolution !== undefined) { hasAnyValues = true; internalValueResult.resolution = this._resolution; } if (this._sizingPolicy !== undefined) { hasAnyValues = true; internalValueResult.sizingPolicy = this._sizingPolicy; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._aspectRatio = undefined; this._bitRate = undefined; this._codec = undefined; this._displayAspectRatio = undefined; this._fixedGop = undefined; this._frameRate = undefined; this._keyframesMaxDist = undefined; this._maxFrameRate = undefined; this._maxHeight = undefined; this._maxWidth = undefined; this._paddingPolicy = undefined; this._resolution = undefined; this._sizingPolicy = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._aspectRatio = value.aspectRatio; this._bitRate = value.bitRate; this._codec = value.codec; this._displayAspectRatio = value.displayAspectRatio; this._fixedGop = value.fixedGop; this._frameRate = value.frameRate; this._keyframesMaxDist = value.keyframesMaxDist; this._maxFrameRate = value.maxFrameRate; this._maxHeight = value.maxHeight; this._maxWidth = value.maxWidth; this._paddingPolicy = value.paddingPolicy; this._resolution = value.resolution; this._sizingPolicy = value.sizingPolicy; } } get aspectRatio() { return this.getStringAttribute('aspect_ratio'); } set aspectRatio(value) { this._aspectRatio = value; } resetAspectRatio() { this._aspectRatio = undefined; } // Temporarily expose input value. Use with caution. get aspectRatioInput() { return this._aspectRatio; } get bitRate() { return this.getStringAttribute('bit_rate'); } set bitRate(value) { this._bitRate = value; } resetBitRate() { this._bitRate = undefined; } // Temporarily expose input value. Use with caution. get bitRateInput() { return this._bitRate; } 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 displayAspectRatio() { return this.getStringAttribute('display_aspect_ratio'); } set displayAspectRatio(value) { this._displayAspectRatio = value; } resetDisplayAspectRatio() { this._displayAspectRatio = undefined; } // Temporarily expose input value. Use with caution. get displayAspectRatioInput() { return this._displayAspectRatio; } get fixedGop() { return this.getStringAttribute('fixed_gop'); } set fixedGop(value) { this._fixedGop = value; } resetFixedGop() { this._fixedGop = undefined; } // Temporarily expose input value. Use with caution. get fixedGopInput() { return this._fixedGop; } get frameRate() { return this.getStringAttribute('frame_rate'); } set frameRate(value) { this._frameRate = value; } resetFrameRate() { this._frameRate = undefined; } // Temporarily expose input value. Use with caution. get frameRateInput() { return this._frameRate; } get keyframesMaxDist() { return this.getStringAttribute('keyframes_max_dist'); } set keyframesMaxDist(value) { this._keyframesMaxDist = value; } resetKeyframesMaxDist() { this._keyframesMaxDist = undefined; } // Temporarily expose input value. Use with caution. get keyframesMaxDistInput() { return this._keyframesMaxDist; } get maxFrameRate() { return this.getStringAttribute('max_frame_rate'); } set maxFrameRate(value) { this._maxFrameRate = value; } resetMaxFrameRate() { this._maxFrameRate = undefined; } // Temporarily expose input value. Use with caution. get maxFrameRateInput() { return this._maxFrameRate; } get maxHeight() { return this.getStringAttribute('max_height'); } set maxHeight(value) { this._maxHeight = value; } resetMaxHeight() { this._maxHeight = undefined; } // Temporarily expose input value. Use with caution. get maxHeightInput() { return this._maxHeight; } get maxWidth() { return this.getStringAttribute('max_width'); } set maxWidth(value) { this._maxWidth = value; } resetMaxWidth() { this._maxWidth = undefined; } // Temporarily expose input value. Use with caution. get maxWidthInput() { return this._maxWidth; } get paddingPolicy() { return this.getStringAttribute('padding_policy'); } set paddingPolicy(value) { this._paddingPolicy = value; } resetPaddingPolicy() { this._paddingPolicy = undefined; } // Temporarily expose input value. Use with caution. get paddingPolicyInput() { return this._paddingPolicy; } get resolution() { return this.getStringAttribute('resolution'); } set resolution(value) { this._resolution = value; } resetResolution() { this._resolution = undefined; } // Temporarily expose input value. Use with caution. get resolutionInput() { return this._resolution; } get sizingPolicy() { return this.getStringAttribute('sizing_policy'); } set sizingPolicy(value) { this._sizingPolicy = value; } resetSizingPolicy() { this._sizingPolicy = undefined; } // Temporarily expose input value. Use with caution. get sizingPolicyInput() { return this._sizingPolicy; } } exports.ElastictranscoderPresetVideoOutputReference = ElastictranscoderPresetVideoOutputReference; _d = JSII_RTTI_SYMBOL_1; ElastictranscoderPresetVideoOutputReference[_d] = { fqn: "@cdktf/provider-aws.elastictranscoderPreset.ElastictranscoderPresetVideoOutputReference", version: "21.22.1" }; function elastictranscoderPresetVideoWatermarksToTerraform(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 { horizontal_align: cdktf.stringToTerraform(struct.horizontalAlign), horizontal_offset: cdktf.stringToTerraform(struct.horizontalOffset), id: cdktf.stringToTerraform(struct.id), max_height: cdktf.stringToTerraform(struct.maxHeight), max_width: cdktf.stringToTerraform(struct.maxWidth), opacity: cdktf.stringToTerraform(struct.opacity), sizing_policy: cdktf.stringToTerraform(struct.sizingPolicy), target: cdktf.stringToTerraform(struct.target), vertical_align: cdktf.stringToTerraform(struct.verticalAlign), vertical_offset: cdktf.stringToTerraform(struct.verticalOffset), }; } function elastictranscoderPresetVideoWatermarksToHclTerraform(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 = { horizontal_align: { value: cdktf.stringToHclTerraform(struct.horizontalAlign), isBlock: false, type: "simple", storageClassType: "string", }, horizontal_offset: { value: cdktf.stringToHclTerraform(struct.horizontalOffset), isBlock: false, type: "simple", storageClassType: "string", }, id: { value: cdktf.stringToHclTerraform(struct.id), isBlock: false, type: "simple", storageClassType: "string", }, max_height: { value: cdktf.stringToHclTerraform(struct.maxHeight), isBlock: false, type: "simple", storageClassType: "string", }, max_width: { value: cdktf.stringToHclTerraform(struct.maxWidth), isBlock: false, type: "simple", storageClassType: "string", }, opacity: { value: cdktf.stringToHclTerraform(struct.opacity), isBlock: false, type: "simple", storageClassType: "string", }, sizing_policy: { value: cdktf.stringToHclTerraform(struct.sizingPolicy), isBlock: false, type: "simple", storageClassType: "string", }, target: { value: cdktf.stringToHclTerraform(struct.target), isBlock: false, type: "simple", storageClassType: "string", }, vertical_align: { value: cdktf.stringToHclTerraform(struct.verticalAlign), isBlock: false, type: "simple", storageClassType: "string", }, vertical_offset: { value: cdktf.stringToHclTerraform(struct.verticalOffset), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ElastictranscoderPresetVideoWatermarksOutputReference 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._horizontalAlign !== undefined) { hasAnyValues = true; internalValueResult.horizontalAlign = this._horizontalAlign; } if (this._horizontalOffset !== undefined) { hasAnyValues = true; internalValueResult.horizontalOffset = this._horizontalOffset; } if (this._id !== undefined) { hasAnyValues = true; internalValueResult.id = this._id; } if (this._maxHeight !== undefined) { hasAnyValues = true; internalValueResult.maxHeight = this._maxHeight; } if (this._maxWidth !== undefined) { hasAnyValues = true; internalValueResult.maxWidth = this._maxWidth; } if (this._opacity !== undefined) { hasAnyValues = true; internalValueResult.opacity = this._opacity; } if (this._sizingPolicy !== undefined) { hasAnyValues = true; internalValueResult.sizingPolicy = this._sizingPolicy; } if (this._target !== undefined) { hasAnyValues = true; internalValueResult.target = this._target; } if (this._verticalAlign !== undefined) { hasAnyValues = true; internalValueResult.verticalAlign = this._verticalAlign; } if (this._verticalOffset !== undefined) { hasAnyValues = true; internalValueResult.verticalOffset = this._verticalOffset; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._horizontalAlign = undefined; this._horizontalOffset = undefined; this._id = undefined; this._maxHeight = undefined; this._maxWidth = undefined; this._opacity = undefined; this._sizingPolicy = undefined; this._target = undefined; this._verticalAlign = undefined; this._verticalOffset = 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._horizontalAlign = value.horizontalAlign; this._horizontalOffset = value.horizontalOffset; this._id = value.id; this._maxHeight = value.maxHeight; this._maxWidth = value.maxWidth; this._opacity = value.opacity; this._sizingPolicy = value.sizingPolicy; this._target = value.target; this._verticalAlign = value.verticalAlign; this._verticalOffset = value.verticalOffset; } } get horizontalAlign() { return this.getStringAttribute('horizontal_align'); } set horizontalAlign(value) { this._horizontalAlign = value; } resetHorizontalAlign() { this._horizontalAlign = undefined; } // Temporarily expose input value. Use with caution. get horizontalAlignInput() { return this._horizontalAlign; } get horizontalOffset() { return this.getStringAttribute('horizontal_offset'); } set horizontalOffset(value) { this._horizontalOffset = value; } resetHorizontalOffset() { this._horizontalOffset = undefined; } // Temporarily expose input value. Use with caution. get horizontalOffsetInput() { return this._horizontalOffset; } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get maxHeight() { return this.getStringAttribute('max_height'); } set maxHeight(value) { this._maxHeight = value; } resetMaxHeight() { this._maxHeight = undefined; } // Temporarily expose input value. Use with caution. get maxHeightInput() { return this._maxHeight; } get maxWidth() { return this.getStringAttribute('max_width'); } set maxWidth(value) { this._maxWidth = value; } resetMaxWidth() { this._maxWidth = undefined; } // Temporarily expose input value. Use with caution. get maxWidthInput() { return this._maxWidth; } get opacity() { return this.getStringAttribute('opacity'); } set opacity(value) { this._opacity = value; } resetOpacity() { this._opacity = undefined; } // Temporarily expose input value. Use with caution. get opacityInput() { return this._opacity; } get sizingPolicy() { return this.getStringAttribute('sizing_policy'); } set sizingPolicy(value) { this._sizingPolicy = value; } resetSizingPolicy() { this._sizingPolicy = undefined; } // Temporarily expose input value. Use with caution. get sizingPolicyInput() { return this._sizingPolicy; } get target() { return this.getStringAttribute('target'); } set target(value) { this._target = value; } resetTarget() { this._target = undefined; } // Temporarily expose input value. Use with caution. get targetInput() { return this._target; } get verticalAlign() { return this.getStringAttribute('vertical_align'); } set verticalAlign(value) { this._verticalAlign = value; } resetVerticalAlign() { this._verticalAlign = undefined; } // Temporarily expose input value. Use with caution. get verticalAlignInput() { return this._verticalAlign; } get verticalOffset() { return this.getStringAttribute('vertical_offset'); } set verticalOffset(value) { this._verticalOffset = value; } resetVerticalOffset() { this._verticalOffset = undefined; } // Temporarily expose input value. Use with caution. get verticalOffsetInput() { return this._verticalOffset; } } exports.ElastictranscoderPresetVideoWatermarksOutputReference = ElastictranscoderPresetVideoWatermarksOutputReference; _e = JSII_RTTI_SYMBOL_1; ElastictranscoderPresetVideoWatermarksOutputReference[_e] = { fqn: "@cdktf/provider-aws.elastictranscoderPreset.ElastictranscoderPresetVideoWatermarksOutputReference", version: "21.22.1" }; class ElastictranscoderPresetVideoWatermarksList 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 ElastictranscoderPresetVideoWatermarksOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ElastictranscoderPresetVideoWatermarksList = ElastictranscoderPresetVideoWatermarksList; _f = JSII_RTTI_SYMBOL_1; ElastictranscoderPresetVideoWatermarksList[_f] = { fqn: "@cdktf/provider-aws.elastictranscoderPreset.ElastictranscoderPresetVideoWatermarksList", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/elastictranscoder_preset aws_elastictranscoder_preset} */ class ElastictranscoderPreset extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a ElastictranscoderPreset resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the ElastictranscoderPreset to import * @param importFromId The id of the existing ElastictranscoderPreset that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/elastictranscoder_preset#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the ElastictranscoderPreset to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_elastictranscoder_preset", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/elastictranscoder_preset aws_elastictranscoder_preset} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options ElastictranscoderPresetConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_elastictranscoder_preset', terraformGeneratorMetadata: { providerName: 'aws', providerVersion: '6.25.0', providerVersionConstraint: '~> 6.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // audio - computed: false, optional: true, required: false this._audio = new ElastictranscoderPresetAudioOutputReference(this, "audio"); // audio_codec_options - computed: false, op