// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Image Builder */ export interface DataAwsImagebuilderImageConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/imagebuilder_image.html#arn DataAwsImagebuilderImage#arn} */ readonly arn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/imagebuilder_image.html#tags DataAwsImagebuilderImage#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } export class DataAwsImagebuilderImageImageTestsConfiguration extends cdktf.ComplexComputedList { // image_tests_enabled - computed: true, optional: false, required: false public get imageTestsEnabled() { return this.getBooleanAttribute('image_tests_enabled') as any; } // timeout_minutes - computed: true, optional: false, required: false public get timeoutMinutes() { return this.getNumberAttribute('timeout_minutes'); } } export class DataAwsImagebuilderImageOutputResourcesAmis extends cdktf.ComplexComputedList { // account_id - computed: true, optional: false, required: false public get accountId() { return this.getStringAttribute('account_id'); } // description - computed: true, optional: false, required: false public get description() { return this.getStringAttribute('description'); } // image - computed: true, optional: false, required: false public get image() { return this.getStringAttribute('image'); } // name - computed: true, optional: false, required: false public get name() { return this.getStringAttribute('name'); } // region - computed: true, optional: false, required: false public get region() { return this.getStringAttribute('region'); } } export class DataAwsImagebuilderImageOutputResources extends cdktf.ComplexComputedList { // amis - computed: true, optional: false, required: false public get amis() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('amis') as any; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/imagebuilder_image.html aws_imagebuilder_image} */ export class DataAwsImagebuilderImage extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_imagebuilder_image"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/imagebuilder_image.html aws_imagebuilder_image} 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 DataAwsImagebuilderImageConfig */ public constructor(scope: Construct, id: string, config: DataAwsImagebuilderImageConfig) { super(scope, id, { terraformResourceType: 'aws_imagebuilder_image', 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; } // build_version_arn - computed: true, optional: false, required: false public get buildVersionArn() { return this.getStringAttribute('build_version_arn'); } // date_created - computed: true, optional: false, required: false public get dateCreated() { return this.getStringAttribute('date_created'); } // distribution_configuration_arn - computed: true, optional: false, required: false public get distributionConfigurationArn() { return this.getStringAttribute('distribution_configuration_arn'); } // enhanced_image_metadata_enabled - computed: true, optional: false, required: false public get enhancedImageMetadataEnabled() { return this.getBooleanAttribute('enhanced_image_metadata_enabled') as any; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // image_recipe_arn - computed: true, optional: false, required: false public get imageRecipeArn() { return this.getStringAttribute('image_recipe_arn'); } // image_tests_configuration - computed: true, optional: false, required: false public imageTestsConfiguration(index: string) { return new DataAwsImagebuilderImageImageTestsConfiguration(this, 'image_tests_configuration', index); } // infrastructure_configuration_arn - computed: true, optional: false, required: false public get infrastructureConfigurationArn() { return this.getStringAttribute('infrastructure_configuration_arn'); } // name - computed: true, optional: false, required: false public get name() { return this.getStringAttribute('name'); } // os_version - computed: true, optional: false, required: false public get osVersion() { return this.getStringAttribute('os_version'); } // output_resources - computed: true, optional: false, required: false public outputResources(index: string) { return new DataAwsImagebuilderImageOutputResources(this, 'output_resources', index); } // platform - computed: true, optional: false, required: false public get platform() { return this.getStringAttribute('platform'); } // tags - computed: true, 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'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { arn: cdktf.stringToTerraform(this._arn), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }