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#208

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Sep 1, 2023
1 parent 187e3c9 commit f1716c7
Show file tree
Hide file tree
Showing 12 changed files with 190 additions and 13 deletions.
6 changes: 5 additions & 1 deletion 5.x/_gen/provider_aws.libsonnet

Large diffs are not rendered by default.

46 changes: 44 additions & 2 deletions 5.x/_gen/resources/fsx_openzfs_file_system.libsonnet

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions 5.x/_gen/resources/lakeformation_data_lake_settings.libsonnet

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion 5.x/_gen/resources/opensearch_domain.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,15 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
enabled: enabled,
}),
},
'#new':: d.fn(help='\n`aws.opensearch_domain.cluster_config.new` constructs a new object with attributes and blocks configured for the `cluster_config`\nTerraform sub block.\n\n\n\n**Args**:\n - `dedicated_master_count` (`number`): Set the `dedicated_master_count` field on the resulting object. When `null`, the `dedicated_master_count` field will be omitted from the resulting object.\n - `dedicated_master_enabled` (`bool`): Set the `dedicated_master_enabled` field on the resulting object. When `null`, the `dedicated_master_enabled` field will be omitted from the resulting object.\n - `dedicated_master_type` (`string`): Set the `dedicated_master_type` field on the resulting object. When `null`, the `dedicated_master_type` field will be omitted from the resulting object.\n - `instance_count` (`number`): Set the `instance_count` field on the resulting object. When `null`, the `instance_count` field will be omitted from the resulting object.\n - `instance_type` (`string`): Set the `instance_type` field on the resulting object. When `null`, the `instance_type` field will be omitted from the resulting object.\n - `warm_count` (`number`): Set the `warm_count` field on the resulting object. When `null`, the `warm_count` field will be omitted from the resulting object.\n - `warm_enabled` (`bool`): Set the `warm_enabled` field on the resulting object. When `null`, the `warm_enabled` field will be omitted from the resulting object.\n - `warm_type` (`string`): Set the `warm_type` field on the resulting object. When `null`, the `warm_type` field will be omitted from the resulting object.\n - `zone_awareness_enabled` (`bool`): Set the `zone_awareness_enabled` field on the resulting object. When `null`, the `zone_awareness_enabled` field will be omitted from the resulting object.\n - `cold_storage_options` (`list[obj]`): Set the `cold_storage_options` field on the resulting object. When `null`, the `cold_storage_options` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.opensearch_domain.cluster_config.cold_storage_options.new](#fn-cluster_configcold_storage_optionsnew) constructor.\n - `zone_awareness_config` (`list[obj]`): Set the `zone_awareness_config` field on the resulting object. When `null`, the `zone_awareness_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.opensearch_domain.cluster_config.zone_awareness_config.new](#fn-cluster_configzone_awareness_confignew) constructor.\n\n**Returns**:\n - An attribute object that represents the `cluster_config` sub block.\n', args=[]),
'#new':: d.fn(help='\n`aws.opensearch_domain.cluster_config.new` constructs a new object with attributes and blocks configured for the `cluster_config`\nTerraform sub block.\n\n\n\n**Args**:\n - `dedicated_master_count` (`number`): Set the `dedicated_master_count` field on the resulting object. When `null`, the `dedicated_master_count` field will be omitted from the resulting object.\n - `dedicated_master_enabled` (`bool`): Set the `dedicated_master_enabled` field on the resulting object. When `null`, the `dedicated_master_enabled` field will be omitted from the resulting object.\n - `dedicated_master_type` (`string`): Set the `dedicated_master_type` field on the resulting object. When `null`, the `dedicated_master_type` field will be omitted from the resulting object.\n - `instance_count` (`number`): Set the `instance_count` field on the resulting object. When `null`, the `instance_count` field will be omitted from the resulting object.\n - `instance_type` (`string`): Set the `instance_type` field on the resulting object. When `null`, the `instance_type` field will be omitted from the resulting object.\n - `multi_az_with_standby_enabled` (`bool`): Set the `multi_az_with_standby_enabled` field on the resulting object. When `null`, the `multi_az_with_standby_enabled` field will be omitted from the resulting object.\n - `warm_count` (`number`): Set the `warm_count` field on the resulting object. When `null`, the `warm_count` field will be omitted from the resulting object.\n - `warm_enabled` (`bool`): Set the `warm_enabled` field on the resulting object. When `null`, the `warm_enabled` field will be omitted from the resulting object.\n - `warm_type` (`string`): Set the `warm_type` field on the resulting object. When `null`, the `warm_type` field will be omitted from the resulting object.\n - `zone_awareness_enabled` (`bool`): Set the `zone_awareness_enabled` field on the resulting object. When `null`, the `zone_awareness_enabled` field will be omitted from the resulting object.\n - `cold_storage_options` (`list[obj]`): Set the `cold_storage_options` field on the resulting object. When `null`, the `cold_storage_options` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.opensearch_domain.cluster_config.cold_storage_options.new](#fn-cluster_configcold_storage_optionsnew) constructor.\n - `zone_awareness_config` (`list[obj]`): Set the `zone_awareness_config` field on the resulting object. When `null`, the `zone_awareness_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.opensearch_domain.cluster_config.zone_awareness_config.new](#fn-cluster_configzone_awareness_confignew) constructor.\n\n**Returns**:\n - An attribute object that represents the `cluster_config` sub block.\n', args=[]),
new(
cold_storage_options=null,
dedicated_master_count=null,
dedicated_master_enabled=null,
dedicated_master_type=null,
instance_count=null,
instance_type=null,
multi_az_with_standby_enabled=null,
warm_count=null,
warm_enabled=null,
warm_type=null,
Expand All @@ -91,6 +92,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
dedicated_master_type: dedicated_master_type,
instance_count: instance_count,
instance_type: instance_type,
multi_az_with_standby_enabled: multi_az_with_standby_enabled,
warm_count: warm_count,
warm_enabled: warm_enabled,
warm_type: warm_type,
Expand Down
22 changes: 18 additions & 4 deletions 5.x/_gen/resources/wafv2_rule_group.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
key: key,
}),
},
'#new':: d.fn(help="\n`aws.wafv2_rule_group.new` injects a new `aws_wafv2_rule_group` 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 aws.wafv2_rule_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.wafv2_rule_group` using the reference:\n\n $._ref.aws_wafv2_rule_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_wafv2_rule_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 - `resourceLabel` (`string`): The name label of the block.\n - `capacity` (`number`): Set the `capacity` field on the resulting resource block.\n - `description` (`string`): Set the `description` field on the resulting resource block. When `null`, the `description` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting resource block.\n - `scope` (`string`): Set the `scope` field on the resulting resource block.\n - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `tags_all` (`obj`): Set the `tags_all` field on the resulting resource block. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `custom_response_body` (`list[obj]`): Set the `custom_response_body` field on the resulting resource block. When `null`, the `custom_response_body` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.custom_response_body.new](#fn-custom_response_bodynew) constructor.\n - `rule` (`list[obj]`): Set the `rule` field on the resulting resource block. When `null`, the `rule` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.new](#fn-rulenew) constructor.\n - `visibility_config` (`list[obj]`): Set the `visibility_config` field on the resulting resource block. When `null`, the `visibility_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.visibility_config.new](#fn-visibility_confignew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]),
'#new':: d.fn(help="\n`aws.wafv2_rule_group.new` injects a new `aws_wafv2_rule_group` 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 aws.wafv2_rule_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.wafv2_rule_group` using the reference:\n\n $._ref.aws_wafv2_rule_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_wafv2_rule_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 - `resourceLabel` (`string`): The name label of the block.\n - `capacity` (`number`): Set the `capacity` field on the resulting resource block.\n - `description` (`string`): Set the `description` field on the resulting resource block. When `null`, the `description` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting resource block. When `null`, the `name` field will be omitted from the resulting object.\n - `name_prefix` (`string`): Set the `name_prefix` field on the resulting resource block. When `null`, the `name_prefix` field will be omitted from the resulting object.\n - `scope` (`string`): Set the `scope` field on the resulting resource block.\n - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `tags_all` (`obj`): Set the `tags_all` field on the resulting resource block. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `custom_response_body` (`list[obj]`): Set the `custom_response_body` field on the resulting resource block. When `null`, the `custom_response_body` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.custom_response_body.new](#fn-custom_response_bodynew) constructor.\n - `rule` (`list[obj]`): Set the `rule` field on the resulting resource block. When `null`, the `rule` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.new](#fn-rulenew) constructor.\n - `visibility_config` (`list[obj]`): Set the `visibility_config` field on the resulting resource block. When `null`, the `visibility_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.visibility_config.new](#fn-visibility_confignew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]),
new(
resourceLabel,
capacity,
name,
scope,
custom_response_body=null,
description=null,
name=null,
name_prefix=null,
rule=null,
tags=null,
tags_all=null,
Expand All @@ -35,6 +36,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
custom_response_body=custom_response_body,
description=description,
name=name,
name_prefix=name_prefix,
rule=rule,
scope=scope,
tags=tags,
Expand All @@ -43,13 +45,14 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.wafv2_rule_group.newAttrs` constructs a new object with attributes and blocks configured for the `wafv2_rule_group`\nTerraform resource.\n\nUnlike [aws.wafv2_rule_group.new](#fn-new), this function will not inject the `resource`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) 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 - `capacity` (`number`): Set the `capacity` field on the resulting object.\n - `description` (`string`): Set the `description` field on the resulting object. When `null`, the `description` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object.\n - `scope` (`string`): Set the `scope` field on 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 - `tags_all` (`obj`): Set the `tags_all` field on the resulting object. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `custom_response_body` (`list[obj]`): Set the `custom_response_body` field on the resulting object. When `null`, the `custom_response_body` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.custom_response_body.new](#fn-custom_response_bodynew) constructor.\n - `rule` (`list[obj]`): Set the `rule` field on the resulting object. When `null`, the `rule` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.new](#fn-rulenew) constructor.\n - `visibility_config` (`list[obj]`): Set the `visibility_config` field on the resulting object. When `null`, the `visibility_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.visibility_config.new](#fn-visibility_confignew) constructor.\n\n**Returns**:\n - An attribute object that can be used with [tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) to construct a new `wafv2_rule_group` resource into the root Terraform configuration.\n', args=[]),
'#newAttrs':: d.fn(help='\n`aws.wafv2_rule_group.newAttrs` constructs a new object with attributes and blocks configured for the `wafv2_rule_group`\nTerraform resource.\n\nUnlike [aws.wafv2_rule_group.new](#fn-new), this function will not inject the `resource`\nblock into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the\n[tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) 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 - `capacity` (`number`): Set the `capacity` field on the resulting object.\n - `description` (`string`): Set the `description` field on the resulting object. When `null`, the `description` 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 - `name_prefix` (`string`): Set the `name_prefix` field on the resulting object. When `null`, the `name_prefix` field will be omitted from the resulting object.\n - `scope` (`string`): Set the `scope` field on 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 - `tags_all` (`obj`): Set the `tags_all` field on the resulting object. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `custom_response_body` (`list[obj]`): Set the `custom_response_body` field on the resulting object. When `null`, the `custom_response_body` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.custom_response_body.new](#fn-custom_response_bodynew) constructor.\n - `rule` (`list[obj]`): Set the `rule` field on the resulting object. When `null`, the `rule` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.new](#fn-rulenew) constructor.\n - `visibility_config` (`list[obj]`): Set the `visibility_config` field on the resulting object. When `null`, the `visibility_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.visibility_config.new](#fn-visibility_confignew) constructor.\n\n**Returns**:\n - An attribute object that can be used with [tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) to construct a new `wafv2_rule_group` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
capacity,
name,
scope,
custom_response_body=null,
description=null,
name=null,
name_prefix=null,
rule=null,
tags=null,
tags_all=null,
Expand All @@ -59,6 +62,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
custom_response_body: custom_response_body,
description: description,
name: name,
name_prefix: name_prefix,
rule: rule,
scope: scope,
tags: tags,
Expand Down Expand Up @@ -64045,6 +64049,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
},
},
},
'#withNamePrefix':: d.fn(help='`aws.string.withNamePrefix` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the name_prefix field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`string`): The value to set for the `name_prefix` field.\n', args=[]),
withNamePrefix(resourceLabel, value): {
resource+: {
aws_wafv2_rule_group+: {
[resourceLabel]+: {
name_prefix: value,
},
},
},
},
'#withRule':: d.fn(help='`aws.list[obj].withRule` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the rule field.\n\nThis function will replace the array with the passed in `value`. If you wish to instead append the\npassed in value to the existing array, use the [aws.list[obj].withRuleMixin](TODO) function.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `rule` field.\n', args=[]),
withRule(resourceLabel, value): {
resource+: {
Expand Down
Loading

0 comments on commit f1716c7

Please sign in to comment.