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

Signed-off-by: tflibsonnet-ci <[email protected]>
  • Loading branch information
renovate[bot] authored and tflibsonnet-ci committed Sep 12, 2023
1 parent 583edf1 commit 1e4261d
Show file tree
Hide file tree
Showing 8 changed files with 801 additions and 0 deletions.
45 changes: 45 additions & 0 deletions 5.x/_gen/data/cognito_identity_pool.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='cognito_identity_pool', url='', help='`cognito_identity_pool` represents the `aws_cognito_identity_pool` 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.cognito_identity_pool.new` injects a new `data_aws_cognito_identity_pool` 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.cognito_identity_pool.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.cognito_identity_pool` using the reference:\n\n $._ref.data_aws_cognito_identity_pool.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_cognito_identity_pool.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 - `identity_pool_name` (`string`): Set the `identity_pool_name` 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\n**Returns**:\n- A mixin object that injects the new data source into the root Terraform configuration.\n", args=[]),
new(
dataSrcLabel,
identity_pool_name,
tags=null,
_meta={}
):: tf.withData(
type='aws_cognito_identity_pool',
label=dataSrcLabel,
attrs=self.newAttrs(identity_pool_name=identity_pool_name, tags=tags),
_meta=_meta
),
'#newAttrs':: d.fn(help='\n`aws.data.cognito_identity_pool.newAttrs` constructs a new object with attributes and blocks configured for the `cognito_identity_pool`\nTerraform data source.\n\nUnlike [aws.data.cognito_identity_pool.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 - `identity_pool_name` (`string`): Set the `identity_pool_name` 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\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 `cognito_identity_pool` data source into the root Terraform configuration.\n', args=[]),
newAttrs(
identity_pool_name,
tags=null
):: std.prune(a={
identity_pool_name: identity_pool_name,
tags: tags,
}),
'#withIdentityPoolName':: d.fn(help='`aws.string.withIdentityPoolName` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the identity_pool_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 `identity_pool_name` field.\n', args=[]),
withIdentityPoolName(dataSrcLabel, value): {
data+: {
aws_cognito_identity_pool+: {
[dataSrcLabel]+: {
identity_pool_name: 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_cognito_identity_pool+: {
[dataSrcLabel]+: {
tags: 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 @@ -81,6 +81,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
codecommit_approval_rule_template: (import 'codecommit_approval_rule_template.libsonnet'),
codecommit_repository: (import 'codecommit_repository.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'),
cognito_user_pool_clients: (import 'cognito_user_pool_clients.libsonnet'),
cognito_user_pool_signing_certificate: (import 'cognito_user_pool_signing_certificate.libsonnet'),
Expand Down
1 change: 1 addition & 0 deletions 5.x/_gen/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet');
transfer_tag: (import 'resources/transfer_tag.libsonnet'),
transfer_user: (import 'resources/transfer_user.libsonnet'),
transfer_workflow: (import 'resources/transfer_workflow.libsonnet'),
verifiedaccess_trust_provider: (import 'resources/verifiedaccess_trust_provider.libsonnet'),
volume_attachment: (import 'resources/volume_attachment.libsonnet'),
vpc: (import 'resources/vpc.libsonnet'),
vpc_dhcp_options: (import 'resources/vpc_dhcp_options.libsonnet'),
Expand Down
Loading

0 comments on commit 1e4261d

Please sign in to comment.