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 Nov 27, 2023
1 parent d1a6cbb commit d69379b
Show file tree
Hide file tree
Showing 28 changed files with 2,026 additions and 15 deletions.
61 changes: 61 additions & 0 deletions 5.x/_gen/data/emr_supported_instance_types.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='emr_supported_instance_types', url='', help='`emr_supported_instance_types` represents the `aws_emr_supported_instance_types` 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.emr_supported_instance_types.new` injects a new `data_aws_emr_supported_instance_types` 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.emr_supported_instance_types.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.emr_supported_instance_types` using the reference:\n\n $._ref.data_aws_emr_supported_instance_types.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_emr_supported_instance_types.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 - `release_label` (`string`): Set the `release_label` field on the resulting data source block.\n - `supported_instance_types` (`list[obj]`): Set the `supported_instance_types` field on the resulting data source block. When `null`, the `supported_instance_types` 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.emr_supported_instance_types.supported_instance_types.new](#fn-supported_instance_typesnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
release_label,
supported_instance_types=null,
_meta={}
):: tf.withData(
type='aws_emr_supported_instance_types',
label=dataSrcLabel,
attrs=self.newAttrs(release_label=release_label, supported_instance_types=supported_instance_types),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.emr_supported_instance_types.newAttrs` constructs a new object with attributes and blocks configured for the `emr_supported_instance_types`\nTerraform data source.\n\nUnlike [aws.data.emr_supported_instance_types.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 - `release_label` (`string`): Set the `release_label` field on the resulting object.\n - `supported_instance_types` (`list[obj]`): Set the `supported_instance_types` field on the resulting object. When `null`, the `supported_instance_types` 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.emr_supported_instance_types.supported_instance_types.new](#fn-supported_instance_typesnew) 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 `emr_supported_instance_types` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
release_label,
supported_instance_types=null
):: std.prune(a={
release_label: release_label,
supported_instance_types: supported_instance_types,
}),
supported_instance_types:: {
'#new':: d.fn(help='\n`aws.emr_supported_instance_types.supported_instance_types.new` constructs a new object with attributes and blocks configured for the `supported_instance_types`\nTerraform sub block.\n\n\n\n**Returns**:\n - An attribute object that represents the `supported_instance_types` sub block.\n', args=[]),
new(

):: std.prune(a={}),
},
'#withReleaseLabel':: d.fn(help='`aws.string.withReleaseLabel` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the release_label 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 `release_label` field.\n', args=[]),
withReleaseLabel(dataSrcLabel, value): {
data+: {
aws_emr_supported_instance_types+: {
[dataSrcLabel]+: {
release_label: value,
},
},
},
},
'#withSupportedInstanceTypes':: d.fn(help='`aws.list[obj].withSupportedInstanceTypes` constructs a mixin object that can be merged into the `list[obj]`\nTerraform data source block to set or update the supported_instance_types 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].withSupportedInstanceTypesMixin](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 `supported_instance_types` field.\n', args=[]),
withSupportedInstanceTypes(dataSrcLabel, value): {
data+: {
aws_emr_supported_instance_types+: {
[dataSrcLabel]+: {
supported_instance_types: value,
},
},
},
},
'#withSupportedInstanceTypesMixin':: d.fn(help='`aws.list[obj].withSupportedInstanceTypesMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform data source block to set or update the supported_instance_types 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].withSupportedInstanceTypes](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 `supported_instance_types` field.\n', args=[]),
withSupportedInstanceTypesMixin(dataSrcLabel, value): {
data+: {
aws_emr_supported_instance_types+: {
[dataSrcLabel]+: {
supported_instance_types+: if std.isArray(v=value) then value else [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 @@ -214,6 +214,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
elb_hosted_zone_id: (import 'elb_hosted_zone_id.libsonnet'),
elb_service_account: (import 'elb_service_account.libsonnet'),
emr_release_labels: (import 'emr_release_labels.libsonnet'),
emr_supported_instance_types: (import 'emr_supported_instance_types.libsonnet'),
emrcontainers_virtual_cluster: (import 'emrcontainers_virtual_cluster.libsonnet'),
fsx_ontap_file_system: (import 'fsx_ontap_file_system.libsonnet'),
fsx_ontap_storage_virtual_machine: (import 'fsx_ontap_storage_virtual_machine.libsonnet'),
Expand Down
6 changes: 6 additions & 0 deletions 5.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
apprunner_auto_scaling_configuration_version: (import 'resources/apprunner_auto_scaling_configuration_version.libsonnet'),
apprunner_connection: (import 'resources/apprunner_connection.libsonnet'),
apprunner_custom_domain_association: (import 'resources/apprunner_custom_domain_association.libsonnet'),
apprunner_default_auto_scaling_configuration_version: (import 'resources/apprunner_default_auto_scaling_configuration_version.libsonnet'),
apprunner_observability_configuration: (import 'resources/apprunner_observability_configuration.libsonnet'),
apprunner_service: (import 'resources/apprunner_service.libsonnet'),
apprunner_vpc_connector: (import 'resources/apprunner_vpc_connector.libsonnet'),
Expand Down Expand Up @@ -703,6 +704,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
lex_slot_type: (import 'resources/lex_slot_type.libsonnet'),
lexv2models_bot: (import 'resources/lexv2models_bot.libsonnet'),
lexv2models_bot_locale: (import 'resources/lexv2models_bot_locale.libsonnet'),
lexv2models_bot_version: (import 'resources/lexv2models_bot_version.libsonnet'),
licensemanager_association: (import 'resources/licensemanager_association.libsonnet'),
licensemanager_grant: (import 'resources/licensemanager_grant.libsonnet'),
licensemanager_grant_accepter: (import 'resources/licensemanager_grant_accepter.libsonnet'),
Expand Down Expand Up @@ -1004,6 +1006,10 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
s3_bucket_website_configuration: (import 'resources/s3_bucket_website_configuration.libsonnet'),
s3_object: (import 'resources/s3_object.libsonnet'),
s3_object_copy: (import 'resources/s3_object_copy.libsonnet'),
s3control_access_grant: (import 'resources/s3control_access_grant.libsonnet'),
s3control_access_grants_instance: (import 'resources/s3control_access_grants_instance.libsonnet'),
s3control_access_grants_instance_resource_policy: (import 'resources/s3control_access_grants_instance_resource_policy.libsonnet'),
s3control_access_grants_location: (import 'resources/s3control_access_grants_location.libsonnet'),
s3control_access_point_policy: (import 'resources/s3control_access_point_policy.libsonnet'),
s3control_bucket: (import 'resources/s3control_bucket.libsonnet'),
s3control_bucket_lifecycle_configuration: (import 'resources/s3control_bucket_lifecycle_configuration.libsonnet'),
Expand Down
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='apprunner_default_auto_scaling_configuration_version', url='', help='`apprunner_default_auto_scaling_configuration_version` represents the `aws_apprunner_default_auto_scaling_configuration_version` 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.apprunner_default_auto_scaling_configuration_version.new` injects a new `aws_apprunner_default_auto_scaling_configuration_version` 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.apprunner_default_auto_scaling_configuration_version.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.apprunner_default_auto_scaling_configuration_version` using the reference:\n\n $._ref.aws_apprunner_default_auto_scaling_configuration_version.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_apprunner_default_auto_scaling_configuration_version.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 - `auto_scaling_configuration_arn` (`string`): Set the `auto_scaling_configuration_arn` field on the resulting resource block.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]),
new(
resourceLabel,
auto_scaling_configuration_arn,
_meta={}
):: tf.withResource(
type='aws_apprunner_default_auto_scaling_configuration_version',
label=resourceLabel,
attrs=self.newAttrs(auto_scaling_configuration_arn=auto_scaling_configuration_arn),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.apprunner_default_auto_scaling_configuration_version.newAttrs` constructs a new object with attributes and blocks configured for the `apprunner_default_auto_scaling_configuration_version`\nTerraform resource.\n\nUnlike [aws.apprunner_default_auto_scaling_configuration_version.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 - `auto_scaling_configuration_arn` (`string`): Set the `auto_scaling_configuration_arn` field on 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 `apprunner_default_auto_scaling_configuration_version` resource into the root Terraform configuration.\n', args=[]),
newAttrs(
auto_scaling_configuration_arn
):: std.prune(a={
auto_scaling_configuration_arn: auto_scaling_configuration_arn,
}),
'#withAutoScalingConfigurationArn':: d.fn(help='`aws.string.withAutoScalingConfigurationArn` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the auto_scaling_configuration_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 `auto_scaling_configuration_arn` field.\n', args=[]),
withAutoScalingConfigurationArn(resourceLabel, value): {
resource+: {
aws_apprunner_default_auto_scaling_configuration_version+: {
[resourceLabel]+: {
auto_scaling_configuration_arn: value,
},
},
},
},
}
Loading

0 comments on commit d69379b

Please sign in to comment.