// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Elastic Load Balancer */ export interface DataAwsAlbTargetGroupConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/alb_target_group.html#name DataAwsAlbTargetGroup#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/alb_target_group.html#tags DataAwsAlbTargetGroup#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } export class DataAwsAlbTargetGroupHealthCheck extends cdktf.ComplexComputedList { // enabled - computed: true, optional: false, required: false public get enabled() { return this.getBooleanAttribute('enabled') as any; } // healthy_threshold - computed: true, optional: false, required: false public get healthyThreshold() { return this.getNumberAttribute('healthy_threshold'); } // interval - computed: true, optional: false, required: false public get interval() { return this.getNumberAttribute('interval'); } // matcher - computed: true, optional: false, required: false public get matcher() { return this.getStringAttribute('matcher'); } // path - computed: true, optional: false, required: false public get path() { return this.getStringAttribute('path'); } // port - computed: true, optional: false, required: false public get port() { return this.getStringAttribute('port'); } // protocol - computed: true, optional: false, required: false public get protocol() { return this.getStringAttribute('protocol'); } // timeout - computed: true, optional: false, required: false public get timeout() { return this.getNumberAttribute('timeout'); } // unhealthy_threshold - computed: true, optional: false, required: false public get unhealthyThreshold() { return this.getNumberAttribute('unhealthy_threshold'); } } export class DataAwsAlbTargetGroupStickiness extends cdktf.ComplexComputedList { // cookie_duration - computed: true, optional: false, required: false public get cookieDuration() { return this.getNumberAttribute('cookie_duration'); } // cookie_name - computed: true, optional: false, required: false public get cookieName() { return this.getStringAttribute('cookie_name'); } // enabled - computed: true, optional: false, required: false public get enabled() { return this.getBooleanAttribute('enabled') as any; } // type - computed: true, optional: false, required: false public get type() { return this.getStringAttribute('type'); } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/alb_target_group.html aws_alb_target_group} */ export class DataAwsAlbTargetGroup extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_alb_target_group"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/alb_target_group.html aws_alb_target_group} 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 DataAwsAlbTargetGroupConfig = {} */ public constructor(scope: Construct, id: string, config: DataAwsAlbTargetGroupConfig = {}) { super(scope, id, { terraformResourceType: 'aws_alb_target_group', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._name = config.name; this._tags = config.tags; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: true, required: false public get arn() { return this.getStringAttribute('arn'); } // arn_suffix - computed: true, optional: false, required: false public get arnSuffix() { return this.getStringAttribute('arn_suffix'); } // connection_termination - computed: true, optional: false, required: false public get connectionTermination() { return this.getBooleanAttribute('connection_termination') as any; } // deregistration_delay - computed: true, optional: false, required: false public get deregistrationDelay() { return this.getNumberAttribute('deregistration_delay'); } // health_check - computed: true, optional: false, required: false public healthCheck(index: string) { return new DataAwsAlbTargetGroupHealthCheck(this, 'health_check', index); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // lambda_multi_value_headers_enabled - computed: true, optional: false, required: false public get lambdaMultiValueHeadersEnabled() { return this.getBooleanAttribute('lambda_multi_value_headers_enabled') as any; } // load_balancing_algorithm_type - computed: true, optional: false, required: false public get loadBalancingAlgorithmType() { return this.getStringAttribute('load_balancing_algorithm_type'); } // name - computed: true, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // port - computed: true, optional: false, required: false public get port() { return this.getNumberAttribute('port'); } // preserve_client_ip - computed: true, optional: false, required: false public get preserveClientIp() { return this.getStringAttribute('preserve_client_ip'); } // protocol - computed: true, optional: false, required: false public get protocol() { return this.getStringAttribute('protocol'); } // protocol_version - computed: true, optional: false, required: false public get protocolVersion() { return this.getStringAttribute('protocol_version'); } // proxy_protocol_v2 - computed: true, optional: false, required: false public get proxyProtocolV2() { return this.getBooleanAttribute('proxy_protocol_v2') as any; } // slow_start - computed: true, optional: false, required: false public get slowStart() { return this.getNumberAttribute('slow_start'); } // stickiness - computed: true, optional: false, required: false public stickiness(index: string) { return new DataAwsAlbTargetGroupStickiness(this, 'stickiness', index); } // tags - computed: true, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // target_type - computed: true, optional: false, required: false public get targetType() { return this.getStringAttribute('target_type'); } // vpc_id - computed: true, optional: false, required: false public get vpcId() { return this.getStringAttribute('vpc_id'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { name: cdktf.stringToTerraform(this._name), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }