// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * Media Package */ export interface MediaPackageChannelConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/media_package_channel.html#channel_id MediaPackageChannel#channel_id} */ readonly channelId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/media_package_channel.html#description MediaPackageChannel#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/media_package_channel.html#tags MediaPackageChannel#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/media_package_channel.html#tags_all MediaPackageChannel#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; } export class MediaPackageChannelHlsIngestIngestEndpoints extends cdktf.ComplexComputedList { // password - computed: true, optional: false, required: false public get password() { return this.getStringAttribute('password'); } // url - computed: true, optional: false, required: false public get url() { return this.getStringAttribute('url'); } // username - computed: true, optional: false, required: false public get username() { return this.getStringAttribute('username'); } } export class MediaPackageChannelHlsIngest extends cdktf.ComplexComputedList { // ingest_endpoints - computed: true, optional: false, required: false public get ingestEndpoints() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('ingest_endpoints') as any; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/media_package_channel.html aws_media_package_channel} */ export class MediaPackageChannel extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_media_package_channel"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/media_package_channel.html aws_media_package_channel} 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 MediaPackageChannelConfig */ public constructor(scope: Construct, id: string, config: MediaPackageChannelConfig) { super(scope, id, { terraformResourceType: 'aws_media_package_channel', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._channelId = config.channelId; this._description = config.description; this._tags = config.tags; this._tagsAll = config.tagsAll; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // channel_id - computed: false, optional: false, required: true private _channelId?: string; public get channelId() { return this.getStringAttribute('channel_id'); } public set channelId(value: string) { this._channelId = value; } // Temporarily expose input value. Use with caution. public get channelIdInput() { return this._channelId; } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // hls_ingest - computed: true, optional: false, required: false public hlsIngest(index: string) { return new MediaPackageChannelHlsIngest(this, 'hls_ingest', index); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { channel_id: cdktf.stringToTerraform(this._channelId), description: cdktf.stringToTerraform(this._description), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), }; } }