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

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
yorinasub17 authored and tflibsonnet-ci committed Nov 10, 2023
1 parent bfb17cd commit d4e0ea3
Show file tree
Hide file tree
Showing 166 changed files with 42,631 additions and 821 deletions.
45 changes: 45 additions & 0 deletions 5.x/_gen/data/apigatewayv2_vpc_link.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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='apigatewayv2_vpc_link', url='', help='`apigatewayv2_vpc_link` represents the `aws_apigatewayv2_vpc_link` 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.apigatewayv2_vpc_link.new` injects a new `data_aws_apigatewayv2_vpc_link` 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.apigatewayv2_vpc_link.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.apigatewayv2_vpc_link` using the reference:\n\n $._ref.data_aws_apigatewayv2_vpc_link.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_apigatewayv2_vpc_link.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 - `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 - `vpc_link_id` (`string`): Set the `vpc_link_id` field on the resulting data source block.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
vpc_link_id,
tags=null,
_meta={}
):: tf.withData(
type='aws_apigatewayv2_vpc_link',
label=dataSrcLabel,
attrs=self.newAttrs(tags=tags, vpc_link_id=vpc_link_id),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.apigatewayv2_vpc_link.newAttrs` constructs a new object with attributes and blocks configured for the `apigatewayv2_vpc_link`\nTerraform data source.\n\nUnlike [aws.data.apigatewayv2_vpc_link.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 - `tags` (`obj`): Set the `tags` field on the resulting object. When `null`, the `tags` field will be omitted from the resulting object.\n - `vpc_link_id` (`string`): Set the `vpc_link_id` field on 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 `apigatewayv2_vpc_link` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
vpc_link_id,
tags=null
):: std.prune(a={
tags: tags,
vpc_link_id: vpc_link_id,
}),
'#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_apigatewayv2_vpc_link+: {
[dataSrcLabel]+: {
tags: value,
},
},
},
},
'#withVpcLinkId':: d.fn(help='`aws.string.withVpcLinkId` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the vpc_link_id 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 `vpc_link_id` field.\n', args=[]),
withVpcLinkId(dataSrcLabel, value): {
data+: {
aws_apigatewayv2_vpc_link+: {
[dataSrcLabel]+: {
vpc_link_id: value,
},
},
},
},
}
45 changes: 45 additions & 0 deletions 5.x/_gen/data/athena_named_query.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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='athena_named_query', url='', help='`athena_named_query` represents the `aws_athena_named_query` 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.athena_named_query.new` injects a new `data_aws_athena_named_query` 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.athena_named_query.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.athena_named_query` using the reference:\n\n $._ref.data_aws_athena_named_query.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_athena_named_query.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 - `name` (`string`): Set the `name` field on the resulting data source block.\n - `workgroup` (`string`): Set the `workgroup` field on the resulting data source block. When `null`, the `workgroup` 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,
name,
workgroup=null,
_meta={}
):: tf.withData(
type='aws_athena_named_query',
label=dataSrcLabel,
attrs=self.newAttrs(name=name, workgroup=workgroup),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.athena_named_query.newAttrs` constructs a new object with attributes and blocks configured for the `athena_named_query`\nTerraform data source.\n\nUnlike [aws.data.athena_named_query.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 - `name` (`string`): Set the `name` field on the resulting object.\n - `workgroup` (`string`): Set the `workgroup` field on the resulting object. When `null`, the `workgroup` 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 `athena_named_query` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
name,
workgroup=null
):: std.prune(a={
name: name,
workgroup: workgroup,
}),
'#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+: {
aws_athena_named_query+: {
[dataSrcLabel]+: {
name: value,
},
},
},
},
'#withWorkgroup':: d.fn(help='`aws.string.withWorkgroup` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the workgroup 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 `workgroup` field.\n', args=[]),
withWorkgroup(dataSrcLabel, value): {
data+: {
aws_athena_named_query+: {
[dataSrcLabel]+: {
workgroup: value,
},
},
},
},
}
32 changes: 32 additions & 0 deletions 5.x/_gen/data/bedrock_foundation_model.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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='bedrock_foundation_model', url='', help='`bedrock_foundation_model` represents the `aws_bedrock_foundation_model` 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.bedrock_foundation_model.new` injects a new `data_aws_bedrock_foundation_model` 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.bedrock_foundation_model.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.bedrock_foundation_model` using the reference:\n\n $._ref.data_aws_bedrock_foundation_model.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_bedrock_foundation_model.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 - `model_id` (`string`): Set the `model_id` field on the resulting data source block.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
model_id,
_meta={}
):: tf.withData(
type='aws_bedrock_foundation_model',
label=dataSrcLabel,
attrs=self.newAttrs(model_id=model_id),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.bedrock_foundation_model.newAttrs` constructs a new object with attributes and blocks configured for the `bedrock_foundation_model`\nTerraform data source.\n\nUnlike [aws.data.bedrock_foundation_model.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 - `model_id` (`string`): Set the `model_id` field on 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 `bedrock_foundation_model` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
model_id
):: std.prune(a={
model_id: model_id,
}),
'#withModelId':: d.fn(help='`aws.string.withModelId` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the model_id 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 `model_id` field.\n', args=[]),
withModelId(dataSrcLabel, value): {
data+: {
aws_bedrock_foundation_model+: {
[dataSrcLabel]+: {
model_id: value,
},
},
},
},
}
Loading

0 comments on commit d4e0ea3

Please sign in to comment.