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 15, 2023
1 parent 68c44ac commit b91831c
Show file tree
Hide file tree
Showing 32 changed files with 3,414 additions and 30 deletions.
3 changes: 3 additions & 0 deletions 5.x/_gen/data/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
outposts_site: (import 'outposts_site.libsonnet'),
outposts_sites: (import 'outposts_sites.libsonnet'),
partition: (import 'partition.libsonnet'),
polly_voices: (import 'polly_voices.libsonnet'),
prefix_list: (import 'prefix_list.libsonnet'),
pricing_product: (import 'pricing_product.libsonnet'),
prometheus_workspace: (import 'prometheus_workspace.libsonnet'),
Expand Down Expand Up @@ -490,9 +491,11 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.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_assignments: (import 'ssoadmin_application_assignments.libsonnet'),
ssoadmin_application_providers: (import 'ssoadmin_application_providers.libsonnet'),
ssoadmin_instances: (import 'ssoadmin_instances.libsonnet'),
ssoadmin_permission_set: (import 'ssoadmin_permission_set.libsonnet'),
ssoadmin_principal_application_assignments: (import 'ssoadmin_principal_application_assignments.libsonnet'),
storagegateway_local_disk: (import 'storagegateway_local_disk.libsonnet'),
subnet: (import 'subnet.libsonnet'),
subnets: (import 'subnets.libsonnet'),
Expand Down
92 changes: 92 additions & 0 deletions 5.x/_gen/data/polly_voices.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
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='polly_voices', url='', help='`polly_voices` represents the `aws_polly_voices` 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.polly_voices.new` injects a new `data_aws_polly_voices` 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.polly_voices.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.polly_voices` using the reference:\n\n $._ref.data_aws_polly_voices.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_polly_voices.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 - `engine` (`string`): Set the `engine` field on the resulting data source block. When `null`, the `engine` field will be omitted from the resulting object.\n - `include_additional_language_codes` (`bool`): Set the `include_additional_language_codes` field on the resulting data source block. When `null`, the `include_additional_language_codes` field will be omitted from the resulting object.\n - `language_code` (`string`): Set the `language_code` field on the resulting data source block. When `null`, the `language_code` field will be omitted from the resulting object.\n - `voices` (`list[obj]`): Set the `voices` field on the resulting data source block. When `null`, the `voices` 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.polly_voices.voices.new](#fn-voicesnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
engine=null,
include_additional_language_codes=null,
language_code=null,
voices=null,
_meta={}
):: tf.withData(
type='aws_polly_voices',
label=dataSrcLabel,
attrs=self.newAttrs(
engine=engine,
include_additional_language_codes=include_additional_language_codes,
language_code=language_code,
voices=voices
),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.polly_voices.newAttrs` constructs a new object with attributes and blocks configured for the `polly_voices`\nTerraform data source.\n\nUnlike [aws.data.polly_voices.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 - `engine` (`string`): Set the `engine` field on the resulting object. When `null`, the `engine` field will be omitted from the resulting object.\n - `include_additional_language_codes` (`bool`): Set the `include_additional_language_codes` field on the resulting object. When `null`, the `include_additional_language_codes` field will be omitted from the resulting object.\n - `language_code` (`string`): Set the `language_code` field on the resulting object. When `null`, the `language_code` field will be omitted from the resulting object.\n - `voices` (`list[obj]`): Set the `voices` field on the resulting object. When `null`, the `voices` 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.polly_voices.voices.new](#fn-voicesnew) 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 `polly_voices` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
engine=null,
include_additional_language_codes=null,
language_code=null,
voices=null
):: std.prune(a={
engine: engine,
include_additional_language_codes: include_additional_language_codes,
language_code: language_code,
voices: voices,
}),
voices:: {
'#new':: d.fn(help='\n`aws.polly_voices.voices.new` constructs a new object with attributes and blocks configured for the `voices`\nTerraform sub block.\n\n\n\n**Returns**:\n - An attribute object that represents the `voices` sub block.\n', args=[]),
new(

):: std.prune(a={}),
},
'#withEngine':: d.fn(help='`aws.string.withEngine` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the engine 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 `engine` field.\n', args=[]),
withEngine(dataSrcLabel, value): {
data+: {
aws_polly_voices+: {
[dataSrcLabel]+: {
engine: value,
},
},
},
},
'#withIncludeAdditionalLanguageCodes':: d.fn(help='`aws.bool.withIncludeAdditionalLanguageCodes` constructs a mixin object that can be merged into the `bool`\nTerraform data source block to set or update the include_additional_language_codes field.\n\n\n\n**Args**:\n - `dataSrcLabel` (`string`): The name label of the block to update.\n - `value` (`bool`): The value to set for the `include_additional_language_codes` field.\n', args=[]),
withIncludeAdditionalLanguageCodes(dataSrcLabel, value): {
data+: {
aws_polly_voices+: {
[dataSrcLabel]+: {
include_additional_language_codes: value,
},
},
},
},
'#withLanguageCode':: d.fn(help='`aws.string.withLanguageCode` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the language_code 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 `language_code` field.\n', args=[]),
withLanguageCode(dataSrcLabel, value): {
data+: {
aws_polly_voices+: {
[dataSrcLabel]+: {
language_code: value,
},
},
},
},
'#withVoices':: d.fn(help='`aws.list[obj].withVoices` constructs a mixin object that can be merged into the `list[obj]`\nTerraform data source block to set or update the voices 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].withVoicesMixin](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 `voices` field.\n', args=[]),
withVoices(dataSrcLabel, value): {
data+: {
aws_polly_voices+: {
[dataSrcLabel]+: {
voices: value,
},
},
},
},
'#withVoicesMixin':: d.fn(help='`aws.list[obj].withVoicesMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform data source block to set or update the voices 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].withVoices](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 `voices` field.\n', args=[]),
withVoicesMixin(dataSrcLabel, value): {
data+: {
aws_polly_voices+: {
[dataSrcLabel]+: {
voices+: if std.isArray(v=value) then value else [value],
},
},
},
},
}
61 changes: 61 additions & 0 deletions 5.x/_gen/data/ssoadmin_application_assignments.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
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_assignments', url='', help='`ssoadmin_application_assignments` represents the `aws_ssoadmin_application_assignments` Terraform data source.\n\n\n\nThis package contains functions and utilities for setting up the data source using Jsonnet code.\n'),
application_assignments:: {
'#new':: d.fn(help='\n`aws.ssoadmin_application_assignments.application_assignments.new` constructs a new object with attributes and blocks configured for the `application_assignments`\nTerraform sub block.\n\n\n\n**Returns**:\n - An attribute object that represents the `application_assignments` sub block.\n', args=[]),
new(

):: std.prune(a={}),
},
'#new':: d.fn(help="\n`aws.data.ssoadmin_application_assignments.new` injects a new `data_aws_ssoadmin_application_assignments` 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_assignments.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.ssoadmin_application_assignments` using the reference:\n\n $._ref.data_aws_ssoadmin_application_assignments.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_ssoadmin_application_assignments.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 - `application_assignments` (`list[obj]`): Set the `application_assignments` field on the resulting data source block. When `null`, the `application_assignments` 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_assignments.application_assignments.new](#fn-application_assignmentsnew) 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,
application_assignments=null,
_meta={}
):: tf.withData(
type='aws_ssoadmin_application_assignments',
label=dataSrcLabel,
attrs=self.newAttrs(application_arn=application_arn, application_assignments=application_assignments),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.ssoadmin_application_assignments.newAttrs` constructs a new object with attributes and blocks configured for the `ssoadmin_application_assignments`\nTerraform data source.\n\nUnlike [aws.data.ssoadmin_application_assignments.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 - `application_assignments` (`list[obj]`): Set the `application_assignments` field on the resulting object. When `null`, the `application_assignments` 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_assignments.application_assignments.new](#fn-application_assignmentsnew) 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_assignments` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
application_arn,
application_assignments=null
):: std.prune(a={
application_arn: application_arn,
application_assignments: application_assignments,
}),
'#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_assignments+: {
[dataSrcLabel]+: {
application_arn: value,
},
},
},
},
'#withApplicationAssignments':: d.fn(help='`aws.list[obj].withApplicationAssignments` constructs a mixin object that can be merged into the `list[obj]`\nTerraform data source block to set or update the application_assignments 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].withApplicationAssignmentsMixin](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 `application_assignments` field.\n', args=[]),
withApplicationAssignments(dataSrcLabel, value): {
data+: {
aws_ssoadmin_application_assignments+: {
[dataSrcLabel]+: {
application_assignments: value,
},
},
},
},
'#withApplicationAssignmentsMixin':: d.fn(help='`aws.list[obj].withApplicationAssignmentsMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform data source block to set or update the application_assignments 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].withApplicationAssignments](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 `application_assignments` field.\n', args=[]),
withApplicationAssignmentsMixin(dataSrcLabel, value): {
data+: {
aws_ssoadmin_application_assignments+: {
[dataSrcLabel]+: {
application_assignments+: if std.isArray(v=value) then value else [value],
},
},
},
},
}
Loading

0 comments on commit b91831c

Please sign in to comment.