// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Image Builder */ export interface DataAwsImagebuilderImageRecipeConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/imagebuilder_image_recipe.html#arn DataAwsImagebuilderImageRecipe#arn} */ readonly arn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/imagebuilder_image_recipe.html#tags DataAwsImagebuilderImageRecipe#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } export class DataAwsImagebuilderImageRecipeBlockDeviceMappingEbs extends cdktf.ComplexComputedList { // delete_on_termination - computed: true, optional: false, required: false public get deleteOnTermination() { return this.getBooleanAttribute('delete_on_termination') as any; } // encrypted - computed: true, optional: false, required: false public get encrypted() { return this.getBooleanAttribute('encrypted') as any; } // iops - computed: true, optional: false, required: false public get iops() { return this.getNumberAttribute('iops'); } // kms_key_id - computed: true, optional: false, required: false public get kmsKeyId() { return this.getStringAttribute('kms_key_id'); } // snapshot_id - computed: true, optional: false, required: false public get snapshotId() { return this.getStringAttribute('snapshot_id'); } // volume_size - computed: true, optional: false, required: false public get volumeSize() { return this.getNumberAttribute('volume_size'); } // volume_type - computed: true, optional: false, required: false public get volumeType() { return this.getStringAttribute('volume_type'); } } export class DataAwsImagebuilderImageRecipeBlockDeviceMapping extends cdktf.ComplexComputedList { // device_name - computed: true, optional: false, required: false public get deviceName() { return this.getStringAttribute('device_name'); } // ebs - computed: true, optional: false, required: false public get ebs() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('ebs') as any; } // no_device - computed: true, optional: false, required: false public get noDevice() { return this.getStringAttribute('no_device'); } // virtual_name - computed: true, optional: false, required: false public get virtualName() { return this.getStringAttribute('virtual_name'); } } export class DataAwsImagebuilderImageRecipeComponent extends cdktf.ComplexComputedList { // component_arn - computed: true, optional: false, required: false public get componentArn() { return this.getStringAttribute('component_arn'); } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/imagebuilder_image_recipe.html aws_imagebuilder_image_recipe} */ export class DataAwsImagebuilderImageRecipe extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_imagebuilder_image_recipe"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/imagebuilder_image_recipe.html aws_imagebuilder_image_recipe} Data Source * * @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 DataAwsImagebuilderImageRecipeConfig */ public constructor(scope: Construct, id: string, config: DataAwsImagebuilderImageRecipeConfig) { super(scope, id, { terraformResourceType: 'aws_imagebuilder_image_recipe', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._arn = config.arn; this._tags = config.tags; } // ========== // ATTRIBUTES // ========== // arn - computed: false, optional: false, required: true private _arn?: string; public get arn() { return this.getStringAttribute('arn'); } public set arn(value: string) { this._arn = value; } // Temporarily expose input value. Use with caution. public get arnInput() { return this._arn; } // block_device_mapping - computed: true, optional: false, required: false public blockDeviceMapping(index: string) { return new DataAwsImagebuilderImageRecipeBlockDeviceMapping(this, 'block_device_mapping', index); } // component - computed: true, optional: false, required: false public component(index: string) { return new DataAwsImagebuilderImageRecipeComponent(this, 'component', index); } // date_created - computed: true, optional: false, required: false public get dateCreated() { return this.getStringAttribute('date_created'); } // description - computed: true, optional: false, required: false public get description() { return this.getStringAttribute('description'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: true, optional: false, required: false public get name() { return this.getStringAttribute('name'); } // owner - computed: true, optional: false, required: false public get owner() { return this.getStringAttribute('owner'); } // parent_image - computed: true, optional: false, required: false public get parentImage() { return this.getStringAttribute('parent_image'); } // platform - computed: true, optional: false, required: false public get platform() { return this.getStringAttribute('platform'); } // 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; } // version - computed: true, optional: false, required: false public get version() { return this.getStringAttribute('version'); } // working_directory - computed: true, optional: false, required: false public get workingDirectory() { return this.getStringAttribute('working_directory'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { arn: cdktf.stringToTerraform(this._arn), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }