// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Amplify */ export interface AmplifyWebhookConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/amplify_webhook.html#app_id AmplifyWebhook#app_id} */ readonly appId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/amplify_webhook.html#branch_name AmplifyWebhook#branch_name} */ readonly branchName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/amplify_webhook.html#description AmplifyWebhook#description} */ readonly description?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/amplify_webhook.html aws_amplify_webhook} */ export class AmplifyWebhook extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_amplify_webhook"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/amplify_webhook.html aws_amplify_webhook} 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 AmplifyWebhookConfig */ public constructor(scope: Construct, id: string, config: AmplifyWebhookConfig) { super(scope, id, { terraformResourceType: 'aws_amplify_webhook', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._appId = config.appId; this._branchName = config.branchName; this._description = config.description; } // ========== // ATTRIBUTES // ========== // app_id - computed: false, optional: false, required: true private _appId?: string; public get appId() { return this.getStringAttribute('app_id'); } public set appId(value: string) { this._appId = value; } // Temporarily expose input value. Use with caution. public get appIdInput() { return this._appId; } // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // branch_name - computed: false, optional: false, required: true private _branchName?: string; public get branchName() { return this.getStringAttribute('branch_name'); } public set branchName(value: string) { this._branchName = value; } // Temporarily expose input value. Use with caution. public get branchNameInput() { return this._branchName; } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // url - computed: true, optional: false, required: false public get url() { return this.getStringAttribute('url'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { app_id: cdktf.stringToTerraform(this._appId), branch_name: cdktf.stringToTerraform(this._branchName), description: cdktf.stringToTerraform(this._description), }; } }