// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * API Gateway */ export interface DataAwsApiGatewayDomainNameConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/api_gateway_domain_name.html#domain_name DataAwsApiGatewayDomainName#domain_name} */ readonly domainName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/api_gateway_domain_name.html#tags DataAwsApiGatewayDomainName#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } export class DataAwsApiGatewayDomainNameEndpointConfiguration extends cdktf.ComplexComputedList { // types - computed: true, optional: false, required: false public get types() { return this.getListAttribute('types'); } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/api_gateway_domain_name.html aws_api_gateway_domain_name} */ export class DataAwsApiGatewayDomainName extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_api_gateway_domain_name"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/api_gateway_domain_name.html aws_api_gateway_domain_name} 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 DataAwsApiGatewayDomainNameConfig */ public constructor(scope: Construct, id: string, config: DataAwsApiGatewayDomainNameConfig) { super(scope, id, { terraformResourceType: 'aws_api_gateway_domain_name', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._domainName = config.domainName; this._tags = config.tags; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // certificate_arn - computed: true, optional: false, required: false public get certificateArn() { return this.getStringAttribute('certificate_arn'); } // certificate_name - computed: true, optional: false, required: false public get certificateName() { return this.getStringAttribute('certificate_name'); } // certificate_upload_date - computed: true, optional: false, required: false public get certificateUploadDate() { return this.getStringAttribute('certificate_upload_date'); } // cloudfront_domain_name - computed: true, optional: false, required: false public get cloudfrontDomainName() { return this.getStringAttribute('cloudfront_domain_name'); } // cloudfront_zone_id - computed: true, optional: false, required: false public get cloudfrontZoneId() { return this.getStringAttribute('cloudfront_zone_id'); } // domain_name - computed: false, optional: false, required: true private _domainName?: string; public get domainName() { return this.getStringAttribute('domain_name'); } public set domainName(value: string) { this._domainName = value; } // Temporarily expose input value. Use with caution. public get domainNameInput() { return this._domainName; } // endpoint_configuration - computed: true, optional: false, required: false public endpointConfiguration(index: string) { return new DataAwsApiGatewayDomainNameEndpointConfiguration(this, 'endpoint_configuration', index); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // regional_certificate_arn - computed: true, optional: false, required: false public get regionalCertificateArn() { return this.getStringAttribute('regional_certificate_arn'); } // regional_certificate_name - computed: true, optional: false, required: false public get regionalCertificateName() { return this.getStringAttribute('regional_certificate_name'); } // regional_domain_name - computed: true, optional: false, required: false public get regionalDomainName() { return this.getStringAttribute('regional_domain_name'); } // regional_zone_id - computed: true, optional: false, required: false public get regionalZoneId() { return this.getStringAttribute('regional_zone_id'); } // security_policy - computed: true, optional: false, required: false public get securityPolicy() { return this.getStringAttribute('security_policy'); } // tags - computed: false, 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; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { domain_name: cdktf.stringToTerraform(this._domainName), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }