Skip to content

Commit b64ce92

Browse files
renovate[bot]tflibsonnet-ci
authored andcommitted
Generate libsonnet source from libgenerator PR tf-libsonnet/libgenerator#241
Signed-off-by: tflibsonnet-ci <[email protected]>
1 parent 2c28fc4 commit b64ce92

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

3.x/_gen/data/data_source.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
local tf = (import 'github.com/tf-libsonnet/core/main.libsonnet');
22
local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
33
{
4-
'#':: 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'),
4+
'#':: 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'),
55
'#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=[]),
66
new(
77
dataSrcLabel,

3.x/_gen/resources/resource.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
local tf = (import 'github.com/tf-libsonnet/core/main.libsonnet');
22
local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
33
{
4-
'#':: 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'),
4+
'#':: 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'),
55
'#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=[]),
66
new(
77
resourceLabel,

docs/3.x/data/data_source.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ The `null_data_source` data source implements the standard data source lifecycle
1010
interact with any external APIs.
1111

1212
Historically, the `null_data_source` was typically used to construct intermediate values to re-use elsewhere in configuration. The
13-
same can now be achieved using [locals](https://www.terraform.io/docs/language/values/locals.html).
14-
13+
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.
1514

1615
This package contains functions and utilities for setting up the data source using Jsonnet code.
1716

docs/3.x/resource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permalink: /resource/
66

77
`resource` represents the `null_resource` Terraform resource.
88

9-
The `null_resource` resource implements the standard resource lifecycle but takes no further action.
9+
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.
1010

1111
The `triggers` argument allows specifying an arbitrary set of values that, when changed, will cause the resource to be replaced.
1212

0 commit comments

Comments
 (0)