// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Global Accelerator */ export interface DataAwsGlobalacceleratorAcceleratorConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/globalaccelerator_accelerator.html#name DataAwsGlobalacceleratorAccelerator#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/globalaccelerator_accelerator.html#tags DataAwsGlobalacceleratorAccelerator#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } export class DataAwsGlobalacceleratorAcceleratorAttributes extends cdktf.ComplexComputedList { // flow_logs_enabled - computed: true, optional: false, required: false public get flowLogsEnabled() { return this.getBooleanAttribute('flow_logs_enabled') as any; } // flow_logs_s3_bucket - computed: true, optional: false, required: false public get flowLogsS3Bucket() { return this.getStringAttribute('flow_logs_s3_bucket'); } // flow_logs_s3_prefix - computed: true, optional: false, required: false public get flowLogsS3Prefix() { return this.getStringAttribute('flow_logs_s3_prefix'); } } export class DataAwsGlobalacceleratorAcceleratorIpSets extends cdktf.ComplexComputedList { // ip_addresses - computed: true, optional: false, required: false public get ipAddresses() { return this.getListAttribute('ip_addresses'); } // ip_family - computed: true, optional: false, required: false public get ipFamily() { return this.getStringAttribute('ip_family'); } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/globalaccelerator_accelerator.html aws_globalaccelerator_accelerator} */ export class DataAwsGlobalacceleratorAccelerator extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_globalaccelerator_accelerator"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/globalaccelerator_accelerator.html aws_globalaccelerator_accelerator} 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 DataAwsGlobalacceleratorAcceleratorConfig = {} */ public constructor(scope: Construct, id: string, config: DataAwsGlobalacceleratorAcceleratorConfig = {}) { super(scope, id, { terraformResourceType: 'aws_globalaccelerator_accelerator', 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'); } // attributes - computed: true, optional: false, required: false public attributes(index: string) { return new DataAwsGlobalacceleratorAcceleratorAttributes(this, 'attributes', index); } // dns_name - computed: true, optional: false, required: false public get dnsName() { return this.getStringAttribute('dns_name'); } // enabled - computed: true, optional: false, required: false public get enabled() { return this.getBooleanAttribute('enabled') as any; } // hosted_zone_id - computed: true, optional: false, required: false public get hostedZoneId() { return this.getStringAttribute('hosted_zone_id'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // ip_address_type - computed: true, optional: false, required: false public get ipAddressType() { return this.getStringAttribute('ip_address_type'); } // ip_sets - computed: true, optional: false, required: false public ipSets(index: string) { return new DataAwsGlobalacceleratorAcceleratorIpSets(this, 'ip_sets', index); } // 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; } // 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; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { name: cdktf.stringToTerraform(this._name), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }