// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AppStream */ export interface AppstreamFleetStackAssociationConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet_stack_association.html#fleet_name AppstreamFleetStackAssociation#fleet_name} */ readonly fleetName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet_stack_association.html#stack_name AppstreamFleetStackAssociation#stack_name} */ readonly stackName: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet_stack_association.html aws_appstream_fleet_stack_association} */ export class AppstreamFleetStackAssociation extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_appstream_fleet_stack_association"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet_stack_association.html aws_appstream_fleet_stack_association} 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 AppstreamFleetStackAssociationConfig */ public constructor(scope: Construct, id: string, config: AppstreamFleetStackAssociationConfig) { super(scope, id, { terraformResourceType: 'aws_appstream_fleet_stack_association', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._fleetName = config.fleetName; this._stackName = config.stackName; } // ========== // ATTRIBUTES // ========== // fleet_name - computed: false, optional: false, required: true private _fleetName?: string; public get fleetName() { return this.getStringAttribute('fleet_name'); } public set fleetName(value: string) { this._fleetName = value; } // Temporarily expose input value. Use with caution. public get fleetNameInput() { return this._fleetName; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // stack_name - computed: false, optional: false, required: true private _stackName?: string; public get stackName() { return this.getStringAttribute('stack_name'); } public set stackName(value: string) { this._stackName = value; } // Temporarily expose input value. Use with caution. public get stackNameInput() { return this._stackName; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { fleet_name: cdktf.stringToTerraform(this._fleetName), stack_name: cdktf.stringToTerraform(this._stackName), }; } }