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 8, 2023
1 parent b009531 commit 68c44ac
Show file tree
Hide file tree
Showing 60 changed files with 6,825 additions and 46 deletions.
32 changes: 32 additions & 0 deletions 5.x/_gen/data/codeguruprofiler_profiling_group.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='codeguruprofiler_profiling_group', url='', help='`codeguruprofiler_profiling_group` represents the `aws_codeguruprofiler_profiling_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.codeguruprofiler_profiling_group.new` injects a new `data_aws_codeguruprofiler_profiling_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.codeguruprofiler_profiling_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.codeguruprofiler_profiling_group` using the reference:\n\n $._ref.data_aws_codeguruprofiler_profiling_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_codeguruprofiler_profiling_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 - `name` (`string`): Set the `name` 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,
name,
_meta={}
):: tf.withData(
type='aws_codeguruprofiler_profiling_group',
label=dataSrcLabel,
attrs=self.newAttrs(name=name),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.codeguruprofiler_profiling_group.newAttrs` constructs a new object with attributes and blocks configured for the `codeguruprofiler_profiling_group`\nTerraform data source.\n\nUnlike [aws.data.codeguruprofiler_profiling_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 - `name` (`string`): Set the `name` 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 `codeguruprofiler_profiling_group` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
name
):: std.prune(a={
name: name,
}),
'#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_codeguruprofiler_profiling_group+: {
[dataSrcLabel]+: {
name: value,
},
},
},
},
}
19 changes: 19 additions & 0 deletions 5.x/_gen/data/ecr_repositories.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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='ecr_repositories', url='', help='`ecr_repositories` represents the `aws_ecr_repositories` 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.ecr_repositories.new` injects a new `data_aws_ecr_repositories` 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.ecr_repositories.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.ecr_repositories` using the reference:\n\n $._ref.data_aws_ecr_repositories.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_ecr_repositories.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\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
_meta={}
):: tf.withData(
type='aws_ecr_repositories',
label=dataSrcLabel,
attrs=self.newAttrs(),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.ecr_repositories.newAttrs` constructs a new object with attributes and blocks configured for the `ecr_repositories`\nTerraform data source.\n\nUnlike [aws.data.ecr_repositories.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**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 `ecr_repositories` data source into the root Terraform configuration.\n', args=[]),
newAttrs(

):: std.prune(a={}),
}
45 changes: 45 additions & 0 deletions 5.x/_gen/data/lb_trust_store.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='lb_trust_store', url='', help='`lb_trust_store` represents the `aws_lb_trust_store` 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_trust_store.new` injects a new `data_aws_lb_trust_store` 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_trust_store.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.lb_trust_store` using the reference:\n\n $._ref.data_aws_lb_trust_store.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_lb_trust_store.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\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
arn=null,
name=null,
_meta={}
):: tf.withData(
type='aws_lb_trust_store',
label=dataSrcLabel,
attrs=self.newAttrs(arn=arn, name=name),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.lb_trust_store.newAttrs` constructs a new object with attributes and blocks configured for the `lb_trust_store`\nTerraform data source.\n\nUnlike [aws.data.lb_trust_store.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\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_trust_store` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
arn=null,
name=null
):: std.prune(a={
arn: arn,
name: name,
}),
'#withArn':: d.fn(help='`aws.string.withArn` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the 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 `arn` field.\n', args=[]),
withArn(dataSrcLabel, value): {
data+: {
aws_lb_trust_store+: {
[dataSrcLabel]+: {
arn: 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+: {
aws_lb_trust_store+: {
[dataSrcLabel]+: {
name: value,
},
},
},
},
}
5 changes: 5 additions & 0 deletions 5.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
codecatalyst_dev_environment: (import 'codecatalyst_dev_environment.libsonnet'),
codecommit_approval_rule_template: (import 'codecommit_approval_rule_template.libsonnet'),
codecommit_repository: (import 'codecommit_repository.libsonnet'),
codeguruprofiler_profiling_group: (import 'codeguruprofiler_profiling_group.libsonnet'),
codestarconnections_connection: (import 'codestarconnections_connection.libsonnet'),
cognito_identity_pool: (import 'cognito_identity_pool.libsonnet'),
cognito_user_pool_client: (import 'cognito_user_pool_client.libsonnet'),
Expand Down Expand Up @@ -182,6 +183,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
ecr_authorization_token: (import 'ecr_authorization_token.libsonnet'),
ecr_image: (import 'ecr_image.libsonnet'),
ecr_pull_through_cache_rule: (import 'ecr_pull_through_cache_rule.libsonnet'),
ecr_repositories: (import 'ecr_repositories.libsonnet'),
ecr_repository: (import 'ecr_repository.libsonnet'),
ecrpublic_authorization_token: (import 'ecrpublic_authorization_token.libsonnet'),
ecs_cluster: (import 'ecs_cluster.libsonnet'),
Expand Down Expand Up @@ -302,6 +304,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
lb_hosted_zone_id: (import 'lb_hosted_zone_id.libsonnet'),
lb_listener: (import 'lb_listener.libsonnet'),
lb_target_group: (import 'lb_target_group.libsonnet'),
lb_trust_store: (import 'lb_trust_store.libsonnet'),
lbs: (import 'lbs.libsonnet'),
lex_bot: (import 'lex_bot.libsonnet'),
lex_bot_alias: (import 'lex_bot_alias.libsonnet'),
Expand Down Expand Up @@ -486,6 +489,8 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
ssmcontacts_plan: (import 'ssmcontacts_plan.libsonnet'),
ssmincidents_replication_set: (import 'ssmincidents_replication_set.libsonnet'),
ssmincidents_response_plan: (import 'ssmincidents_response_plan.libsonnet'),
ssoadmin_application: (import 'ssoadmin_application.libsonnet'),
ssoadmin_application_providers: (import 'ssoadmin_application_providers.libsonnet'),
ssoadmin_instances: (import 'ssoadmin_instances.libsonnet'),
ssoadmin_permission_set: (import 'ssoadmin_permission_set.libsonnet'),
storagegateway_local_disk: (import 'storagegateway_local_disk.libsonnet'),
Expand Down
69 changes: 69 additions & 0 deletions 5.x/_gen/data/ssoadmin_application.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
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='ssoadmin_application', url='', help='`ssoadmin_application` represents the `aws_ssoadmin_application` 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.ssoadmin_application.new` injects a new `data_aws_ssoadmin_application` 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.ssoadmin_application.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.ssoadmin_application` using the reference:\n\n $._ref.data_aws_ssoadmin_application.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_ssoadmin_application.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 - `application_arn` (`string`): Set the `application_arn` field on the resulting data source block.\n - `portal_options` (`list[obj]`): Set the `portal_options` field on the resulting data source block. When `null`, the `portal_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.data.ssoadmin_application.portal_options.new](#fn-portal_optionsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
application_arn,
portal_options=null,
_meta={}
):: tf.withData(
type='aws_ssoadmin_application',
label=dataSrcLabel,
attrs=self.newAttrs(application_arn=application_arn, portal_options=portal_options),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.ssoadmin_application.newAttrs` constructs a new object with attributes and blocks configured for the `ssoadmin_application`\nTerraform data source.\n\nUnlike [aws.data.ssoadmin_application.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 - `application_arn` (`string`): Set the `application_arn` field on the resulting object.\n - `portal_options` (`list[obj]`): Set the `portal_options` field on the resulting object. When `null`, the `portal_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.data.ssoadmin_application.portal_options.new](#fn-portal_optionsnew) 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 `ssoadmin_application` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
application_arn,
portal_options=null
):: std.prune(a={
application_arn: application_arn,
portal_options: portal_options,
}),
portal_options:: {
'#new':: d.fn(help='\n`aws.ssoadmin_application.portal_options.new` constructs a new object with attributes and blocks configured for the `portal_options`\nTerraform sub block.\n\n\n\n**Args**:\n - `sign_in_options` (`list[obj]`): Set the `sign_in_options` field on the resulting object. When `null`, the `sign_in_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.ssoadmin_application.portal_options.sign_in_options.new](#fn-portal_optionssign_in_optionsnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `portal_options` sub block.\n', args=[]),
new(
sign_in_options=null
):: std.prune(a={
sign_in_options: sign_in_options,
}),
sign_in_options:: {
'#new':: d.fn(help='\n`aws.ssoadmin_application.portal_options.sign_in_options.new` constructs a new object with attributes and blocks configured for the `sign_in_options`\nTerraform sub block.\n\n\n\n**Returns**:\n - An attribute object that represents the `sign_in_options` sub block.\n', args=[]),
new(

):: std.prune(a={}),
},
},
'#withApplicationArn':: d.fn(help='`aws.string.withApplicationArn` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the application_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 `application_arn` field.\n', args=[]),
withApplicationArn(dataSrcLabel, value): {
data+: {
aws_ssoadmin_application+: {
[dataSrcLabel]+: {
application_arn: value,
},
},
},
},
'#withPortalOptions':: d.fn(help='`aws.list[obj].withPortalOptions` constructs a mixin object that can be merged into the `list[obj]`\nTerraform data source block to set or update the portal_options 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].withPortalOptionsMixin](TODO) function.\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `portal_options` field.\n', args=[]),
withPortalOptions(dataSrcLabel, value): {
data+: {
aws_ssoadmin_application+: {
[dataSrcLabel]+: {
portal_options: value,
},
},
},
},
'#withPortalOptionsMixin':: d.fn(help='`aws.list[obj].withPortalOptionsMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform data source block to set or update the portal_options field.\n\nThis function will append the passed in array or object to the existing array. If you wish\nto instead replace the array with the passed in `value`, use the [aws.list[obj].withPortalOptions](TODO)\nfunction.\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `portal_options` field.\n', args=[]),
withPortalOptionsMixin(dataSrcLabel, value): {
data+: {
aws_ssoadmin_application+: {
[dataSrcLabel]+: {
portal_options+: if std.isArray(v=value) then value else [value],
},
},
},
},
}
Loading

0 comments on commit 68c44ac

Please sign in to comment.