diff --git a/3.x/_gen/data/data_source.libsonnet b/3.x/_gen/data/data_source.libsonnet index 97cb31f..62459f9 100644 --- a/3.x/_gen/data/data_source.libsonnet +++ b/3.x/_gen/data/data_source.libsonnet @@ -1,7 +1,7 @@ local tf = (import 'github.com/tf-libsonnet/core/main.libsonnet'); local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); { - '#':: d.pkg(name='data_source', url='', help='`data_source` represents the `null_data_source` Terraform data source.\n\nThe `null_data_source` data source implements the standard data source lifecycle but does not\ninteract with any external APIs.\n\nHistorically, the `null_data_source` was typically used to construct intermediate values to re-use elsewhere in configuration. The\nsame can now be achieved using [locals](https://www.terraform.io/docs/language/values/locals.html).\n\n\nThis package contains functions and utilities for setting up the data source using Jsonnet code.\n'), + '#':: d.pkg(name='data_source', url='', help='`data_source` represents the `null_data_source` Terraform data source.\n\nThe `null_data_source` data source implements the standard data source lifecycle but does not\ninteract with any external APIs.\n\nHistorically, the `null_data_source` was typically used to construct intermediate values to re-use elsewhere in configuration. The\nsame can now be achieved using [locals](https://developer.hashicorp.com/terraform/language/values/locals) or the [terraform_data resource type](https://developer.hashicorp.com/terraform/language/resources/terraform-data) in Terraform 1.4 and later.\n\nThis package contains functions and utilities for setting up the data source using Jsonnet code.\n'), '#new':: d.fn(help="\n`null.data.data_source.new` injects a new `data_null_data_source` Terraform `data source`\nblock into the root module document.\n\nAdditionally, this inserts a private function into the `_ref` attribute that generates references to attributes of the\nresource. For example, if you added a new instance to the root using:\n\n # arguments omitted for brevity\n null.data.data_source.new('some_id')\n\nYou can get the reference to the `id` field of the created `null.data.data_source` using the reference:\n\n $._ref.data_null_data_source.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_null_data_source.some_id.id }\"` as the value.\n\nNOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use `super`, `self`,\nor `$` to refer to the root object. Instead, make an explicit outer object using `local`.\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block.\n - `has_computed_default` (`string`): If set, its literal value will be stored and returned. If not, its value defaults to `\u0026#34;default\u0026#34;`. This argument exists primarily for testing and has little practical use. When `null`, the `has_computed_default` field will be omitted from the resulting object.\n - `inputs` (`obj`): A map of arbitrary strings that is copied into the `outputs` attribute, and accessible directly for interpolation. When `null`, the `inputs` field will be omitted from the resulting object.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]), new( dataSrcLabel, diff --git a/3.x/_gen/resources/resource.libsonnet b/3.x/_gen/resources/resource.libsonnet index d7a70fb..849df47 100644 --- a/3.x/_gen/resources/resource.libsonnet +++ b/3.x/_gen/resources/resource.libsonnet @@ -1,7 +1,7 @@ local tf = (import 'github.com/tf-libsonnet/core/main.libsonnet'); local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); { - '#':: d.pkg(name='resource', url='', help='`resource` represents the `null_resource` Terraform resource.\n\nThe `null_resource` resource implements the standard resource lifecycle but takes no further action.\n\nThe `triggers` argument allows specifying an arbitrary set of values that, when changed, will cause the resource to be replaced.\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'), + '#':: d.pkg(name='resource', url='', help='`resource` represents the `null_resource` Terraform resource.\n\nThe `null_resource` resource implements the standard resource lifecycle but takes no further action. On Terraform 1.4 and later, use the [terraform_data resource type](https://developer.hashicorp.com/terraform/language/resources/terraform-data) instead.\n\nThe `triggers` argument allows specifying an arbitrary set of values that, when changed, will cause the resource to be replaced.\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'), '#new':: d.fn(help="\n`null.resource.new` injects a new `null_resource` Terraform `resource`\nblock into the root module document.\n\nAdditionally, this inserts a private function into the `_ref` attribute that generates references to attributes of the\nresource. For example, if you added a new instance to the root using:\n\n # arguments omitted for brevity\n null.resource.new('some_id')\n\nYou can get the reference to the `id` field of the created `null.resource` using the reference:\n\n $._ref.null_resource.some_id.get('id')\n\nThis is the same as directly entering `\"${ null_resource.some_id.id }\"` as the value.\n\nNOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use `super`, `self`,\nor `$` to refer to the root object. Instead, make an explicit outer object using `local`.\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block.\n - `triggers` (`obj`): A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners. When `null`, the `triggers` field will be omitted from the resulting object.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), new( resourceLabel, diff --git a/docs/3.x/data/data_source.md b/docs/3.x/data/data_source.md index 90abe72..a9f43d7 100644 --- a/docs/3.x/data/data_source.md +++ b/docs/3.x/data/data_source.md @@ -10,8 +10,7 @@ The `null_data_source` data source implements the standard data source lifecycle interact with any external APIs. Historically, the `null_data_source` was typically used to construct intermediate values to re-use elsewhere in configuration. The -same can now be achieved using [locals](https://www.terraform.io/docs/language/values/locals.html). - +same can now be achieved using [locals](https://developer.hashicorp.com/terraform/language/values/locals) or the [terraform_data resource type](https://developer.hashicorp.com/terraform/language/resources/terraform-data) in Terraform 1.4 and later. This package contains functions and utilities for setting up the data source using Jsonnet code. diff --git a/docs/3.x/resource.md b/docs/3.x/resource.md index 85f9ef4..627a013 100644 --- a/docs/3.x/resource.md +++ b/docs/3.x/resource.md @@ -6,7 +6,7 @@ permalink: /resource/ `resource` represents the `null_resource` Terraform resource. -The `null_resource` resource implements the standard resource lifecycle but takes no further action. +The `null_resource` resource implements the standard resource lifecycle but takes no further action. On Terraform 1.4 and later, use the [terraform_data resource type](https://developer.hashicorp.com/terraform/language/resources/terraform-data) instead. The `triggers` argument allows specifying an arbitrary set of values that, when changed, will cause the resource to be replaced.