// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS EC2 */ export interface AmiLaunchPermissionConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ami_launch_permission.html#account_id AmiLaunchPermission#account_id} */ readonly accountId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ami_launch_permission.html#image_id AmiLaunchPermission#image_id} */ readonly imageId: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/ami_launch_permission.html aws_ami_launch_permission} */ export class AmiLaunchPermission extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_ami_launch_permission"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/ami_launch_permission.html aws_ami_launch_permission} 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 AmiLaunchPermissionConfig */ public constructor(scope: Construct, id: string, config: AmiLaunchPermissionConfig) { super(scope, id, { terraformResourceType: 'aws_ami_launch_permission', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._accountId = config.accountId; this._imageId = config.imageId; } // ========== // ATTRIBUTES // ========== // account_id - computed: false, optional: false, required: true private _accountId?: string; public get accountId() { return this.getStringAttribute('account_id'); } public set accountId(value: string) { this._accountId = value; } // Temporarily expose input value. Use with caution. public get accountIdInput() { return this._accountId; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // image_id - computed: false, optional: false, required: true private _imageId?: string; public get imageId() { return this.getStringAttribute('image_id'); } public set imageId(value: string) { this._imageId = value; } // Temporarily expose input value. Use with caution. public get imageIdInput() { return this._imageId; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { account_id: cdktf.stringToTerraform(this._accountId), image_id: cdktf.stringToTerraform(this._imageId), }; } }