Skip to content

Commit

Permalink
Generate libsonnet source from libgenerator PR tf-libsonnet/libgenera…
Browse files Browse the repository at this point in the history
…tor#238

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Jan 12, 2024
1 parent b91831c commit 14486b4
Show file tree
Hide file tree
Showing 82 changed files with 5,234 additions and 65 deletions.
18 changes: 16 additions & 2 deletions 5.x/_gen/data/alb_target_group.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ 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='alb_target_group', url='', help='`alb_target_group` represents the `aws_alb_target_group` Terraform data source.\n\n\n\nThis package contains functions and utilities for setting up the data source using Jsonnet code.\n'),
'#new':: d.fn(help="\n`aws.data.alb_target_group.new` injects a new `data_aws_alb_target_group` 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 aws.data.alb_target_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.alb_target_group` using the reference:\n\n $._ref.data_aws_alb_target_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_alb_target_group.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 - `arn` (`string`): Set the `arn` field on the resulting data source block. When `null`, the `arn` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting data source block. When `null`, the `name` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting data source block. When `null`, the `tags` field will be omitted from the resulting object.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting data source block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.data.alb_target_group.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
'#new':: d.fn(help="\n`aws.data.alb_target_group.new` injects a new `data_aws_alb_target_group` 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 aws.data.alb_target_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.alb_target_group` using the reference:\n\n $._ref.data_aws_alb_target_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_alb_target_group.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 - `arn` (`string`): Set the `arn` field on the resulting data source block. When `null`, the `arn` field will be omitted from the resulting object.\n - `load_balancing_anomaly_mitigation` (`string`): Set the `load_balancing_anomaly_mitigation` field on the resulting data source block. When `null`, the `load_balancing_anomaly_mitigation` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting data source block. When `null`, the `name` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting data source block. When `null`, the `tags` field will be omitted from the resulting object.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting data source block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.data.alb_target_group.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
arn=null,
load_balancing_anomaly_mitigation=null,
name=null,
tags=null,
timeouts=null,
Expand All @@ -15,20 +16,23 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
label=dataSrcLabel,
attrs=self.newAttrs(
arn=arn,
load_balancing_anomaly_mitigation=load_balancing_anomaly_mitigation,
name=name,
tags=tags,
timeouts=timeouts
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.alb_target_group.newAttrs` constructs a new object with attributes and blocks configured for the `alb_target_group`\nTerraform data source.\n\nUnlike [aws.data.alb_target_group.new](#fn-new), this function will not inject the `data source`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) function to build a complete block.\n\nThis is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to\ninjecting into a complete block.\n\n**Args**:\n - `arn` (`string`): Set the `arn` field on the resulting object. When `null`, the `arn` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object. When `null`, the `name` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting object. When `null`, the `tags` field will be omitted from the resulting object.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.data.alb_target_group.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n - An attribute object that can be used with [tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) to construct a new `alb_target_group` data source into the root Terraform configuration.\n', args=[]),
'#newAttrs':: d.fn(help='\n`aws.data.alb_target_group.newAttrs` constructs a new object with attributes and blocks configured for the `alb_target_group`\nTerraform data source.\n\nUnlike [aws.data.alb_target_group.new](#fn-new), this function will not inject the `data source`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) function to build a complete block.\n\nThis is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to\ninjecting into a complete block.\n\n**Args**:\n - `arn` (`string`): Set the `arn` field on the resulting object. When `null`, the `arn` field will be omitted from the resulting object.\n - `load_balancing_anomaly_mitigation` (`string`): Set the `load_balancing_anomaly_mitigation` field on the resulting object. When `null`, the `load_balancing_anomaly_mitigation` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object. When `null`, the `name` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting object. When `null`, the `tags` field will be omitted from the resulting object.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.data.alb_target_group.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n - An attribute object that can be used with [tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) to construct a new `alb_target_group` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
arn=null,
load_balancing_anomaly_mitigation=null,
name=null,
tags=null,
timeouts=null
):: std.prune(a={
arn: arn,
load_balancing_anomaly_mitigation: load_balancing_anomaly_mitigation,
name: name,
tags: tags,
timeouts: timeouts,
Expand All @@ -51,6 +55,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
},
},
},
'#withLoadBalancingAnomalyMitigation':: d.fn(help='`aws.string.withLoadBalancingAnomalyMitigation` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the load_balancing_anomaly_mitigation field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `load_balancing_anomaly_mitigation` field.\n', args=[]),
withLoadBalancingAnomalyMitigation(dataSrcLabel, value): {
data+: {
aws_alb_target_group+: {
[dataSrcLabel]+: {
load_balancing_anomaly_mitigation: value,
},
},
},
},
'#withName':: d.fn(help='`aws.string.withName` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the name field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `name` field.\n', args=[]),
withName(dataSrcLabel, value): {
data+: {
Expand Down
18 changes: 16 additions & 2 deletions 5.x/_gen/data/lb_target_group.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ 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='lb_target_group', url='', help='`lb_target_group` represents the `aws_lb_target_group` Terraform data source.\n\n\n\nThis package contains functions and utilities for setting up the data source using Jsonnet code.\n'),
'#new':: d.fn(help="\n`aws.data.lb_target_group.new` injects a new `data_aws_lb_target_group` 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 aws.data.lb_target_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.lb_target_group` using the reference:\n\n $._ref.data_aws_lb_target_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_lb_target_group.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 - `arn` (`string`): Set the `arn` field on the resulting data source block. When `null`, the `arn` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting data source block. When `null`, the `name` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting data source block. When `null`, the `tags` field will be omitted from the resulting object.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting data source block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.data.lb_target_group.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
'#new':: d.fn(help="\n`aws.data.lb_target_group.new` injects a new `data_aws_lb_target_group` 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 aws.data.lb_target_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.lb_target_group` using the reference:\n\n $._ref.data_aws_lb_target_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_lb_target_group.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 - `arn` (`string`): Set the `arn` field on the resulting data source block. When `null`, the `arn` field will be omitted from the resulting object.\n - `load_balancing_anomaly_mitigation` (`string`): Set the `load_balancing_anomaly_mitigation` field on the resulting data source block. When `null`, the `load_balancing_anomaly_mitigation` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting data source block. When `null`, the `name` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting data source block. When `null`, the `tags` field will be omitted from the resulting object.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting data source block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.data.lb_target_group.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
arn=null,
load_balancing_anomaly_mitigation=null,
name=null,
tags=null,
timeouts=null,
Expand All @@ -15,20 +16,23 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
label=dataSrcLabel,
attrs=self.newAttrs(
arn=arn,
load_balancing_anomaly_mitigation=load_balancing_anomaly_mitigation,
name=name,
tags=tags,
timeouts=timeouts
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.lb_target_group.newAttrs` constructs a new object with attributes and blocks configured for the `lb_target_group`\nTerraform data source.\n\nUnlike [aws.data.lb_target_group.new](#fn-new), this function will not inject the `data source`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) function to build a complete block.\n\nThis is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to\ninjecting into a complete block.\n\n**Args**:\n - `arn` (`string`): Set the `arn` field on the resulting object. When `null`, the `arn` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object. When `null`, the `name` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting object. When `null`, the `tags` field will be omitted from the resulting object.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.data.lb_target_group.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n - An attribute object that can be used with [tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) to construct a new `lb_target_group` data source into the root Terraform configuration.\n', args=[]),
'#newAttrs':: d.fn(help='\n`aws.data.lb_target_group.newAttrs` constructs a new object with attributes and blocks configured for the `lb_target_group`\nTerraform data source.\n\nUnlike [aws.data.lb_target_group.new](#fn-new), this function will not inject the `data source`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) function to build a complete block.\n\nThis is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to\ninjecting into a complete block.\n\n**Args**:\n - `arn` (`string`): Set the `arn` field on the resulting object. When `null`, the `arn` field will be omitted from the resulting object.\n - `load_balancing_anomaly_mitigation` (`string`): Set the `load_balancing_anomaly_mitigation` field on the resulting object. When `null`, the `load_balancing_anomaly_mitigation` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object. When `null`, the `name` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting object. When `null`, the `tags` field will be omitted from the resulting object.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.data.lb_target_group.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n - An attribute object that can be used with [tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) to construct a new `lb_target_group` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
arn=null,
load_balancing_anomaly_mitigation=null,
name=null,
tags=null,
timeouts=null
):: std.prune(a={
arn: arn,
load_balancing_anomaly_mitigation: load_balancing_anomaly_mitigation,
name: name,
tags: tags,
timeouts: timeouts,
Expand All @@ -51,6 +55,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
},
},
},
'#withLoadBalancingAnomalyMitigation':: d.fn(help='`aws.string.withLoadBalancingAnomalyMitigation` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the load_balancing_anomaly_mitigation field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `load_balancing_anomaly_mitigation` field.\n', args=[]),
withLoadBalancingAnomalyMitigation(dataSrcLabel, value): {
data+: {
aws_lb_target_group+: {
[dataSrcLabel]+: {
load_balancing_anomaly_mitigation: value,
},
},
},
},
'#withName':: d.fn(help='`aws.string.withName` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the name field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `name` field.\n', args=[]),
withName(dataSrcLabel, value): {
data+: {
Expand Down
Loading

0 comments on commit 14486b4

Please sign in to comment.