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 19, 2024
1 parent 254598a commit 4e2e3ba
Show file tree
Hide file tree
Showing 26 changed files with 36,111 additions and 53 deletions.
76 changes: 76 additions & 0 deletions 5.x/_gen/data/eks_access_entry.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
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_access_entry', url='', help='`eks_access_entry` represents the `aws_eks_access_entry` 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.eks_access_entry.new` injects a new `data_aws_eks_access_entry` 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.eks_access_entry.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.eks_access_entry` using the reference:\n\n $._ref.data_aws_eks_access_entry.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_eks_access_entry.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 - `cluster_name` (`string`): Set the `cluster_name` field on the resulting data source block.\n - `principal_arn` (`string`): Set the `principal_arn` field on the resulting data source block.\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 - `tags_all` (`obj`): Set the `tags_all` field on the resulting data source block. When `null`, the `tags_all` 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,
cluster_name,
principal_arn,
tags=null,
tags_all=null,
_meta={}
):: tf.withData(
type='aws_eks_access_entry',
label=dataSrcLabel,
attrs=self.newAttrs(
cluster_name=cluster_name,
principal_arn=principal_arn,
tags=tags,
tags_all=tags_all
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.eks_access_entry.newAttrs` constructs a new object with attributes and blocks configured for the `eks_access_entry`\nTerraform data source.\n\nUnlike [aws.data.eks_access_entry.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 - `cluster_name` (`string`): Set the `cluster_name` field on the resulting object.\n - `principal_arn` (`string`): Set the `principal_arn` 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\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 `eks_access_entry` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
cluster_name,
principal_arn,
tags=null,
tags_all=null
):: std.prune(a={
cluster_name: cluster_name,
principal_arn: principal_arn,
tags: tags,
tags_all: tags_all,
}),
'#withClusterName':: d.fn(help='`aws.string.withClusterName` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the cluster_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 `cluster_name` field.\n', args=[]),
withClusterName(dataSrcLabel, value): {
data+: {
aws_eks_access_entry+: {
[dataSrcLabel]+: {
cluster_name: value,
},
},
},
},
'#withPrincipalArn':: d.fn(help='`aws.string.withPrincipalArn` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the principal_arn 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 `principal_arn` field.\n', args=[]),
withPrincipalArn(dataSrcLabel, value): {
data+: {
aws_eks_access_entry+: {
[dataSrcLabel]+: {
principal_arn: value,
},
},
},
},
'#withTags':: d.fn(help='`aws.obj.withTags` constructs a mixin object that can be merged into the `obj`\nTerraform data source block to set or update the tags field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `tags` field.\n', args=[]),
withTags(dataSrcLabel, value): {
data+: {
aws_eks_access_entry+: {
[dataSrcLabel]+: {
tags: value,
},
},
},
},
'#withTagsAll':: d.fn(help='`aws.obj.withTagsAll` constructs a mixin object that can be merged into the `obj`\nTerraform data source block to set or update the tags_all field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `tags_all` field.\n', args=[]),
withTagsAll(dataSrcLabel, value): {
data+: {
aws_eks_access_entry+: {
[dataSrcLabel]+: {
tags_all: value,
},
},
},
},
}
1 change: 1 addition & 0 deletions 5.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
efs_mount_target: (import 'efs_mount_target.libsonnet'),
eip: (import 'eip.libsonnet'),
eips: (import 'eips.libsonnet'),
eks_access_entry: (import 'eks_access_entry.libsonnet'),
eks_addon: (import 'eks_addon.libsonnet'),
eks_addon_version: (import 'eks_addon_version.libsonnet'),
eks_cluster: (import 'eks_cluster.libsonnet'),
Expand Down
Loading

0 comments on commit 4e2e3ba

Please sign in to comment.