Documentation Index
Fetch the complete documentation index at: https://tfts.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
TerraformDataSource represents a data source in Terraform.
All data sources support the following meta-arguments:
| Property | Type | Description |
|---|
dependsOn | ITerraformAddressable[] | Explicit dependencies. |
count | number | TerraformCount | Data source count. |
provider | TerraformProvider | Specific provider instance. |
forEach | TerraformIterator | Iterator for multiple data sources. |
Methods
interpolationForAttribute()
interpolationForAttribute(attr: string): IResolvable
Returns an interpolation token for a specific attribute.
getStringAttribute()
getStringAttribute(name: string): string
Returns a string attribute value.
getNumberAttribute()
getNumberAttribute(name: string): number
Returns a number attribute value.
getBooleanAttribute()
getBooleanAttribute(name: string): boolean
Returns a boolean attribute value.
getListAttribute()
getListAttribute(name: string): string[]
Returns a list attribute value.
getMapAttribute()
getMapAttribute(name: string): Record<string, any>
Returns a map attribute value.