// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AppStream */ export interface AppstreamUserStackAssociationConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_user_stack_association.html#authentication_type AppstreamUserStackAssociation#authentication_type} */ readonly authenticationType: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_user_stack_association.html#send_email_notification AppstreamUserStackAssociation#send_email_notification} */ readonly sendEmailNotification?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_user_stack_association.html#stack_name AppstreamUserStackAssociation#stack_name} */ readonly stackName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_user_stack_association.html#user_name AppstreamUserStackAssociation#user_name} */ readonly userName: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/appstream_user_stack_association.html aws_appstream_user_stack_association} */ export class AppstreamUserStackAssociation extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_appstream_user_stack_association"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/appstream_user_stack_association.html aws_appstream_user_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 AppstreamUserStackAssociationConfig */ public constructor(scope: Construct, id: string, config: AppstreamUserStackAssociationConfig) { super(scope, id, { terraformResourceType: 'aws_appstream_user_stack_association', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._authenticationType = config.authenticationType; this._sendEmailNotification = config.sendEmailNotification; this._stackName = config.stackName; this._userName = config.userName; } // ========== // ATTRIBUTES // ========== // authentication_type - computed: false, optional: false, required: true private _authenticationType?: string; public get authenticationType() { return this.getStringAttribute('authentication_type'); } public set authenticationType(value: string) { this._authenticationType = value; } // Temporarily expose input value. Use with caution. public get authenticationTypeInput() { return this._authenticationType; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // send_email_notification - computed: false, optional: true, required: false private _sendEmailNotification?: boolean | cdktf.IResolvable; public get sendEmailNotification() { return this.getBooleanAttribute('send_email_notification') as any; } public set sendEmailNotification(value: boolean | cdktf.IResolvable) { this._sendEmailNotification = value; } public resetSendEmailNotification() { this._sendEmailNotification = undefined; } // Temporarily expose input value. Use with caution. public get sendEmailNotificationInput() { return this._sendEmailNotification; } // 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; } // user_name - computed: false, optional: false, required: true private _userName?: string; public get userName() { return this.getStringAttribute('user_name'); } public set userName(value: string) { this._userName = value; } // Temporarily expose input value. Use with caution. public get userNameInput() { return this._userName; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { authentication_type: cdktf.stringToTerraform(this._authenticationType), send_email_notification: cdktf.booleanToTerraform(this._sendEmailNotification), stack_name: cdktf.stringToTerraform(this._stackName), user_name: cdktf.stringToTerraform(this._userName), }; } }