// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Route 53 */ export interface Route53QueryLogConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_query_log.html#cloudwatch_log_group_arn Route53QueryLog#cloudwatch_log_group_arn} */ readonly cloudwatchLogGroupArn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_query_log.html#zone_id Route53QueryLog#zone_id} */ readonly zoneId: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/route53_query_log.html aws_route53_query_log} */ export class Route53QueryLog extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_route53_query_log"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/route53_query_log.html aws_route53_query_log} 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 Route53QueryLogConfig */ public constructor(scope: Construct, id: string, config: Route53QueryLogConfig) { super(scope, id, { terraformResourceType: 'aws_route53_query_log', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._cloudwatchLogGroupArn = config.cloudwatchLogGroupArn; this._zoneId = config.zoneId; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // cloudwatch_log_group_arn - computed: false, optional: false, required: true private _cloudwatchLogGroupArn?: string; public get cloudwatchLogGroupArn() { return this.getStringAttribute('cloudwatch_log_group_arn'); } public set cloudwatchLogGroupArn(value: string) { this._cloudwatchLogGroupArn = value; } // Temporarily expose input value. Use with caution. public get cloudwatchLogGroupArnInput() { return this._cloudwatchLogGroupArn; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // zone_id - computed: false, optional: false, required: true private _zoneId?: string; public get zoneId() { return this.getStringAttribute('zone_id'); } public set zoneId(value: string) { this._zoneId = value; } // Temporarily expose input value. Use with caution. public get zoneIdInput() { return this._zoneId; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { cloudwatch_log_group_arn: cdktf.stringToTerraform(this._cloudwatchLogGroupArn), zone_id: cdktf.stringToTerraform(this._zoneId), }; } }