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 Dec 1, 2023
1 parent 2d0865c commit b009531
Show file tree
Hide file tree
Showing 12 changed files with 902 additions and 9 deletions.
2 changes: 2 additions & 0 deletions 5.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
docdb_event_subscription: (import 'resources/docdb_event_subscription.libsonnet'),
docdb_global_cluster: (import 'resources/docdb_global_cluster.libsonnet'),
docdb_subnet_group: (import 'resources/docdb_subnet_group.libsonnet'),
docdbelastic_cluster: (import 'resources/docdbelastic_cluster.libsonnet'),
dx_bgp_peer: (import 'resources/dx_bgp_peer.libsonnet'),
dx_connection: (import 'resources/dx_connection.libsonnet'),
dx_connection_association: (import 'resources/dx_connection_association.libsonnet'),
Expand Down Expand Up @@ -472,6 +473,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
eks_fargate_profile: (import 'resources/eks_fargate_profile.libsonnet'),
eks_identity_provider_config: (import 'resources/eks_identity_provider_config.libsonnet'),
eks_node_group: (import 'resources/eks_node_group.libsonnet'),
eks_pod_identity_association: (import 'resources/eks_pod_identity_association.libsonnet'),
elastic_beanstalk_application: (import 'resources/elastic_beanstalk_application.libsonnet'),
elastic_beanstalk_application_version: (import 'resources/elastic_beanstalk_application_version.libsonnet'),
elastic_beanstalk_configuration_template: (import 'resources/elastic_beanstalk_configuration_template.libsonnet'),
Expand Down
6 changes: 5 additions & 1 deletion 5.x/_gen/provider_aws.libsonnet

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

210 changes: 210 additions & 0 deletions 5.x/_gen/resources/docdbelastic_cluster.libsonnet

Large diffs are not rendered by default.

90 changes: 90 additions & 0 deletions 5.x/_gen/resources/eks_pod_identity_association.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
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='eks_pod_identity_association', url='', help='`eks_pod_identity_association` represents the `aws_eks_pod_identity_association` Terraform resource.\n\n\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'),
'#new':: d.fn(help="\n`aws.eks_pod_identity_association.new` injects a new `aws_eks_pod_identity_association` 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.eks_pod_identity_association.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.eks_pod_identity_association` using the reference:\n\n $._ref.aws_eks_pod_identity_association.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_eks_pod_identity_association.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 - `cluster_name` (`string`): Set the `cluster_name` field on the resulting resource block.\n - `namespace` (`string`): Set the `namespace` field on the resulting resource block.\n - `role_arn` (`string`): Set the `role_arn` field on the resulting resource block.\n - `service_account` (`string`): Set the `service_account` 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\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]),
new(
resourceLabel,
cluster_name,
namespace,
role_arn,
service_account,
tags=null,
_meta={}
):: tf.withResource(
type='aws_eks_pod_identity_association',
label=resourceLabel,
attrs=self.newAttrs(
cluster_name=cluster_name,
namespace=namespace,
role_arn=role_arn,
service_account=service_account,
tags=tags
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.eks_pod_identity_association.newAttrs` constructs a new object with attributes and blocks configured for the `eks_pod_identity_association`\nTerraform resource.\n\nUnlike [aws.eks_pod_identity_association.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 - `cluster_name` (`string`): Set the `cluster_name` field on the resulting object.\n - `namespace` (`string`): Set the `namespace` field on the resulting object.\n - `role_arn` (`string`): Set the `role_arn` field on the resulting object.\n - `service_account` (`string`): Set the `service_account` 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\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 `eks_pod_identity_association` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
cluster_name,
namespace,
role_arn,
service_account,
tags=null
):: std.prune(a={
cluster_name: cluster_name,
namespace: namespace,
role_arn: role_arn,
service_account: service_account,
tags: tags,
}),
'#withClusterName':: d.fn(help='`aws.string.withClusterName` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the cluster_name 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 `cluster_name` field.\n', args=[]),
withClusterName(resourceLabel, value): {
resource+: {
aws_eks_pod_identity_association+: {
[resourceLabel]+: {
cluster_name: value,
},
},
},
},
'#withNamespace':: d.fn(help='`aws.string.withNamespace` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the namespace 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 `namespace` field.\n', args=[]),
withNamespace(resourceLabel, value): {
resource+: {
aws_eks_pod_identity_association+: {
[resourceLabel]+: {
namespace: value,
},
},
},
},
'#withRoleArn':: d.fn(help='`aws.string.withRoleArn` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the role_arn 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 `role_arn` field.\n', args=[]),
withRoleArn(resourceLabel, value): {
resource+: {
aws_eks_pod_identity_association+: {
[resourceLabel]+: {
role_arn: value,
},
},
},
},
'#withServiceAccount':: d.fn(help='`aws.string.withServiceAccount` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the service_account 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 `service_account` field.\n', args=[]),
withServiceAccount(resourceLabel, value): {
resource+: {
aws_eks_pod_identity_association+: {
[resourceLabel]+: {
service_account: value,
},
},
},
},
'#withTags':: d.fn(help='`aws.obj.withTags` constructs a mixin object that can be merged into the `obj`\nTerraform resource block to set or update the tags field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `tags` field.\n', args=[]),
withTags(resourceLabel, value): {
resource+: {
aws_eks_pod_identity_association+: {
[resourceLabel]+: {
tags: value,
},
},
},
},
}
22 changes: 18 additions & 4 deletions 5.x/_gen/resources/neptune_parameter_group.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ 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='neptune_parameter_group', url='', help='`neptune_parameter_group` represents the `aws_neptune_parameter_group` Terraform resource.\n\n\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'),
'#new':: d.fn(help="\n`aws.neptune_parameter_group.new` injects a new `aws_neptune_parameter_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.neptune_parameter_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.neptune_parameter_group` using the reference:\n\n $._ref.aws_neptune_parameter_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_neptune_parameter_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 - `description` (`string`): Set the `description` field on the resulting resource block. When `null`, the `description` field will be omitted from the resulting object.\n - `family` (`string`): Set the `family` field on the resulting resource block.\n - `name` (`string`): Set the `name` 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 - `parameter` (`list[obj]`): Set the `parameter` field on the resulting resource block. When `null`, the `parameter` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.neptune_parameter_group.parameter.new](#fn-parameternew) 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.neptune_parameter_group.new` injects a new `aws_neptune_parameter_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.neptune_parameter_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.neptune_parameter_group` using the reference:\n\n $._ref.aws_neptune_parameter_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_neptune_parameter_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 - `description` (`string`): Set the `description` field on the resulting resource block. When `null`, the `description` field will be omitted from the resulting object.\n - `family` (`string`): Set the `family` field on the resulting resource block.\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 - `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 - `parameter` (`list[obj]`): Set the `parameter` field on the resulting resource block. When `null`, the `parameter` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.neptune_parameter_group.parameter.new](#fn-parameternew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]),
new(
resourceLabel,
family,
name,
description=null,
name=null,
name_prefix=null,
parameter=null,
tags=null,
tags_all=null,
Expand All @@ -19,24 +20,27 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
description=description,
family=family,
name=name,
name_prefix=name_prefix,
parameter=parameter,
tags=tags,
tags_all=tags_all
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.neptune_parameter_group.newAttrs` constructs a new object with attributes and blocks configured for the `neptune_parameter_group`\nTerraform resource.\n\nUnlike [aws.neptune_parameter_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 - `description` (`string`): Set the `description` field on the resulting object. When `null`, the `description` field will be omitted from the resulting object.\n - `family` (`string`): Set the `family` field on the resulting object.\n - `name` (`string`): Set the `name` 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 - `parameter` (`list[obj]`): Set the `parameter` field on the resulting object. When `null`, the `parameter` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.neptune_parameter_group.parameter.new](#fn-parameternew) 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 `neptune_parameter_group` resource into the root Terraform configuration.\n', args=[]),
'#newAttrs':: d.fn(help='\n`aws.neptune_parameter_group.newAttrs` constructs a new object with attributes and blocks configured for the `neptune_parameter_group`\nTerraform resource.\n\nUnlike [aws.neptune_parameter_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 - `description` (`string`): Set the `description` field on the resulting object. When `null`, the `description` field will be omitted from the resulting object.\n - `family` (`string`): Set the `family` field on 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 - `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 - `parameter` (`list[obj]`): Set the `parameter` field on the resulting object. When `null`, the `parameter` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.neptune_parameter_group.parameter.new](#fn-parameternew) 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 `neptune_parameter_group` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
family,
name,
description=null,
name=null,
name_prefix=null,
parameter=null,
tags=null,
tags_all=null
):: std.prune(a={
description: description,
family: family,
name: name,
name_prefix: name_prefix,
parameter: parameter,
tags: tags,
tags_all: tags_all,
Expand Down Expand Up @@ -83,6 +87,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_neptune_parameter_group+: {
[resourceLabel]+: {
name_prefix: value,
},
},
},
},
'#withParameter':: d.fn(help='`aws.list[obj].withParameter` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the parameter 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].withParameterMixin](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 `parameter` field.\n', args=[]),
withParameter(resourceLabel, value): {
resource+: {
Expand Down
2 changes: 2 additions & 0 deletions docs/5.x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ project.
* [docdb_event_subscription](docdb_event_subscription.md)
* [docdb_global_cluster](docdb_global_cluster.md)
* [docdb_subnet_group](docdb_subnet_group.md)
* [docdbelastic_cluster](docdbelastic_cluster.md)
* [dx_bgp_peer](dx_bgp_peer.md)
* [dx_connection](dx_connection.md)
* [dx_connection_association](dx_connection_association.md)
Expand Down Expand Up @@ -482,6 +483,7 @@ project.
* [eks_fargate_profile](eks_fargate_profile.md)
* [eks_identity_provider_config](eks_identity_provider_config.md)
* [eks_node_group](eks_node_group.md)
* [eks_pod_identity_association](eks_pod_identity_association.md)
* [elastic_beanstalk_application](elastic_beanstalk_application.md)
* [elastic_beanstalk_application_version](elastic_beanstalk_application_version.md)
* [elastic_beanstalk_configuration_template](elastic_beanstalk_configuration_template.md)
Expand Down
Loading

0 comments on commit b009531

Please sign in to comment.