// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS CloudFront */ export interface DataAwsCloudfrontFunctionConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/cloudfront_function.html#name DataAwsCloudfrontFunction#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/cloudfront_function.html#stage DataAwsCloudfrontFunction#stage} */ readonly stage: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/cloudfront_function.html aws_cloudfront_function} */ export class DataAwsCloudfrontFunction extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_cloudfront_function"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/cloudfront_function.html aws_cloudfront_function} 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 DataAwsCloudfrontFunctionConfig */ public constructor(scope: Construct, id: string, config: DataAwsCloudfrontFunctionConfig) { super(scope, id, { terraformResourceType: 'aws_cloudfront_function', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._name = config.name; this._stage = config.stage; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // code - computed: true, optional: false, required: false public get code() { return this.getStringAttribute('code'); } // comment - computed: true, optional: false, required: false public get comment() { return this.getStringAttribute('comment'); } // etag - computed: true, optional: false, required: false public get etag() { return this.getStringAttribute('etag'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // last_modified_time - computed: true, optional: false, required: false public get lastModifiedTime() { return this.getStringAttribute('last_modified_time'); } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // runtime - computed: true, optional: false, required: false public get runtime() { return this.getStringAttribute('runtime'); } // stage - computed: false, optional: false, required: true private _stage?: string; public get stage() { return this.getStringAttribute('stage'); } public set stage(value: string) { this._stage = value; } // Temporarily expose input value. Use with caution. public get stageInput() { return this._stage; } // status - computed: true, optional: false, required: false public get status() { return this.getStringAttribute('status'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { name: cdktf.stringToTerraform(this._name), stage: cdktf.stringToTerraform(this._stage), }; } }