From 71027933362a2b8f1390f732506ac3a6ec2db5ca Mon Sep 17 00:00:00 2001 From: tflibsonnet-ci <120686569+tflibsonnet-ci@users.noreply.github.com> Date: Tue, 18 Apr 2023 10:34:12 -0500 Subject: [PATCH] Update dependency hashicorp/terraform-provider-vault to v3.15.0 (#8) Signed-off-by: tflibsonnet-ci <120686569+tflibsonnet-ci@users.noreply.github.com> Co-authored-by: renovate[bot] --- 3.x/_gen/main.libsonnet | 2 + .../resources/identity_mfa_totp.libsonnet | 18 +- .../mongodbatlas_secret_backend.libsonnet | 76 +++++ .../mongodbatlas_secret_role.libsonnet | 174 +++++++++++ docs/3.x/README.md | 2 + docs/3.x/identity_mfa_totp.md | 19 ++ docs/3.x/mongodbatlas_secret_backend.md | 149 +++++++++ docs/3.x/mongodbatlas_secret_role.md | 282 ++++++++++++++++++ 8 files changed, 720 insertions(+), 2 deletions(-) create mode 100644 3.x/_gen/resources/mongodbatlas_secret_backend.libsonnet create mode 100644 3.x/_gen/resources/mongodbatlas_secret_role.libsonnet create mode 100644 docs/3.x/mongodbatlas_secret_backend.md create mode 100644 docs/3.x/mongodbatlas_secret_role.md diff --git a/3.x/_gen/main.libsonnet b/3.x/_gen/main.libsonnet index e4f0154..7ce892a 100644 --- a/3.x/_gen/main.libsonnet +++ b/3.x/_gen/main.libsonnet @@ -87,6 +87,8 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); mfa_okta: (import 'resources/mfa_okta.libsonnet'), mfa_pingid: (import 'resources/mfa_pingid.libsonnet'), mfa_totp: (import 'resources/mfa_totp.libsonnet'), + mongodbatlas_secret_backend: (import 'resources/mongodbatlas_secret_backend.libsonnet'), + mongodbatlas_secret_role: (import 'resources/mongodbatlas_secret_role.libsonnet'), mount: (import 'resources/mount.libsonnet'), namespace: (import 'resources/namespace.libsonnet'), nomad_secret_backend: (import 'resources/nomad_secret_backend.libsonnet'), diff --git a/3.x/_gen/resources/identity_mfa_totp.libsonnet b/3.x/_gen/resources/identity_mfa_totp.libsonnet index 723776a..a925240 100644 --- a/3.x/_gen/resources/identity_mfa_totp.libsonnet +++ b/3.x/_gen/resources/identity_mfa_totp.libsonnet @@ -2,7 +2,7 @@ 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='identity_mfa_totp', url='', help='`identity_mfa_totp` represents the `vault_identity_mfa_totp` 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`vault.identity_mfa_totp.new` injects a new `vault_identity_mfa_totp` 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 vault.identity_mfa_totp.new('some_id')\n\nYou can get the reference to the `id` field of the created `vault.identity_mfa_totp` using the reference:\n\n $._ref.vault_identity_mfa_totp.some_id.get('id')\n\nThis is the same as directly entering `\"${ vault_identity_mfa_totp.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 - `algorithm` (`string`): Specifies the hashing algorithm used to generate the TOTP code. Options include SHA1, SHA256, SHA512. When `null`, the `algorithm` field will be omitted from the resulting object.\n - `digits` (`number`): The number of digits in the generated TOTP token. This value can either be 6 or 8 When `null`, the `digits` field will be omitted from the resulting object.\n - `issuer` (`string`): The name of the key\u0026#39;s issuing organization.\n - `key_size` (`number`): Specifies the size in bytes of the generated key. When `null`, the `key_size` field will be omitted from the resulting object.\n - `max_validation_attempts` (`number`): The maximum number of consecutive failed validation attempts allowed. When `null`, the `max_validation_attempts` field will be omitted from the resulting object.\n - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object.\n - `period` (`number`): The length of time in seconds used to generate a counter for the TOTP token calculation. When `null`, the `period` field will be omitted from the resulting object.\n - `skew` (`number`): The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. When `null`, the `skew` field will be omitted from the resulting object.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), + '#new':: d.fn(help="\n`vault.identity_mfa_totp.new` injects a new `vault_identity_mfa_totp` 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 vault.identity_mfa_totp.new('some_id')\n\nYou can get the reference to the `id` field of the created `vault.identity_mfa_totp` using the reference:\n\n $._ref.vault_identity_mfa_totp.some_id.get('id')\n\nThis is the same as directly entering `\"${ vault_identity_mfa_totp.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 - `algorithm` (`string`): Specifies the hashing algorithm used to generate the TOTP code. Options include SHA1, SHA256, SHA512. When `null`, the `algorithm` field will be omitted from the resulting object.\n - `digits` (`number`): The number of digits in the generated TOTP token. This value can either be 6 or 8 When `null`, the `digits` field will be omitted from the resulting object.\n - `issuer` (`string`): The name of the key\u0026#39;s issuing organization.\n - `key_size` (`number`): Specifies the size in bytes of the generated key. When `null`, the `key_size` field will be omitted from the resulting object.\n - `max_validation_attempts` (`number`): The maximum number of consecutive failed validation attempts allowed. When `null`, the `max_validation_attempts` field will be omitted from the resulting object.\n - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object.\n - `period` (`number`): The length of time in seconds used to generate a counter for the TOTP token calculation. When `null`, the `period` field will be omitted from the resulting object.\n - `qr_size` (`number`): The pixel size of the generated square QR code. When `null`, the `qr_size` field will be omitted from the resulting object.\n - `skew` (`number`): The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. When `null`, the `skew` field will be omitted from the resulting object.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), new( resourceLabel, issuer, @@ -12,6 +12,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); max_validation_attempts=null, namespace=null, period=null, + qr_size=null, skew=null, _meta={} ):: tf.withResource( @@ -25,11 +26,12 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); max_validation_attempts=max_validation_attempts, namespace=namespace, period=period, + qr_size=qr_size, skew=skew ), _meta=_meta ), - '#newAttrs':: d.fn(help='\n`vault.identity_mfa_totp.newAttrs` constructs a new object with attributes and blocks configured for the `identity_mfa_totp`\nTerraform resource.\n\nUnlike [vault.identity_mfa_totp.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 - `algorithm` (`string`): Specifies the hashing algorithm used to generate the TOTP code. Options include SHA1, SHA256, SHA512. When `null`, the `algorithm` field will be omitted from the resulting object.\n - `digits` (`number`): The number of digits in the generated TOTP token. This value can either be 6 or 8 When `null`, the `digits` field will be omitted from the resulting object.\n - `issuer` (`string`): The name of the key's issuing organization.\n - `key_size` (`number`): Specifies the size in bytes of the generated key. When `null`, the `key_size` field will be omitted from the resulting object.\n - `max_validation_attempts` (`number`): The maximum number of consecutive failed validation attempts allowed. When `null`, the `max_validation_attempts` field will be omitted from the resulting object.\n - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object.\n - `period` (`number`): The length of time in seconds used to generate a counter for the TOTP token calculation. When `null`, the `period` field will be omitted from the resulting object.\n - `skew` (`number`): The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. When `null`, the `skew` field will be omitted from 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 `identity_mfa_totp` resource into the root Terraform configuration.\n', args=[]), + '#newAttrs':: d.fn(help='\n`vault.identity_mfa_totp.newAttrs` constructs a new object with attributes and blocks configured for the `identity_mfa_totp`\nTerraform resource.\n\nUnlike [vault.identity_mfa_totp.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 - `algorithm` (`string`): Specifies the hashing algorithm used to generate the TOTP code. Options include SHA1, SHA256, SHA512. When `null`, the `algorithm` field will be omitted from the resulting object.\n - `digits` (`number`): The number of digits in the generated TOTP token. This value can either be 6 or 8 When `null`, the `digits` field will be omitted from the resulting object.\n - `issuer` (`string`): The name of the key's issuing organization.\n - `key_size` (`number`): Specifies the size in bytes of the generated key. When `null`, the `key_size` field will be omitted from the resulting object.\n - `max_validation_attempts` (`number`): The maximum number of consecutive failed validation attempts allowed. When `null`, the `max_validation_attempts` field will be omitted from the resulting object.\n - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object.\n - `period` (`number`): The length of time in seconds used to generate a counter for the TOTP token calculation. When `null`, the `period` field will be omitted from the resulting object.\n - `qr_size` (`number`): The pixel size of the generated square QR code. When `null`, the `qr_size` field will be omitted from the resulting object.\n - `skew` (`number`): The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. When `null`, the `skew` field will be omitted from 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 `identity_mfa_totp` resource into the root Terraform configuration.\n', args=[]), newAttrs( issuer, algorithm=null, @@ -38,6 +40,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); max_validation_attempts=null, namespace=null, period=null, + qr_size=null, skew=null ):: std.prune(a={ algorithm: algorithm, @@ -47,6 +50,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); max_validation_attempts: max_validation_attempts, namespace: namespace, period: period, + qr_size: qr_size, skew: skew, }), '#withAlgorithm':: d.fn(help='`vault.string.withAlgorithm` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the algorithm 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 `algorithm` field.\n', args=[]), @@ -119,6 +123,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); }, }, }, + '#withQrSize':: d.fn(help='`vault.number.withQrSize` constructs a mixin object that can be merged into the `number`\nTerraform resource block to set or update the qr_size field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`number`): The value to set for the `qr_size` field.\n', args=[]), + withQrSize(resourceLabel, value): { + resource+: { + vault_identity_mfa_totp+: { + [resourceLabel]+: { + qr_size: value, + }, + }, + }, + }, '#withSkew':: d.fn(help='`vault.number.withSkew` constructs a mixin object that can be merged into the `number`\nTerraform resource block to set or update the skew field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`number`): The value to set for the `skew` field.\n', args=[]), withSkew(resourceLabel, value): { resource+: { diff --git a/3.x/_gen/resources/mongodbatlas_secret_backend.libsonnet b/3.x/_gen/resources/mongodbatlas_secret_backend.libsonnet new file mode 100644 index 0000000..cab20fe --- /dev/null +++ b/3.x/_gen/resources/mongodbatlas_secret_backend.libsonnet @@ -0,0 +1,76 @@ +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='mongodbatlas_secret_backend', url='', help='`mongodbatlas_secret_backend` represents the `vault_mongodbatlas_secret_backend` 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`vault.mongodbatlas_secret_backend.new` injects a new `vault_mongodbatlas_secret_backend` 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 vault.mongodbatlas_secret_backend.new('some_id')\n\nYou can get the reference to the `id` field of the created `vault.mongodbatlas_secret_backend` using the reference:\n\n $._ref.vault_mongodbatlas_secret_backend.some_id.get('id')\n\nThis is the same as directly entering `\"${ vault_mongodbatlas_secret_backend.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 - `mount` (`string`): Path where MongoDB Atlas secret backend is mounted\n - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object.\n - `private_key` (`string`): The Private Programmatic API Key used to connect with MongoDB Atlas API\n - `public_key` (`string`): The Public Programmatic API Key used to authenticate with the MongoDB Atlas API\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), + new( + resourceLabel, + mount, + private_key, + public_key, + namespace=null, + _meta={} + ):: tf.withResource( + type='vault_mongodbatlas_secret_backend', + label=resourceLabel, + attrs=self.newAttrs( + mount=mount, + namespace=namespace, + private_key=private_key, + public_key=public_key + ), + _meta=_meta + ), + '#newAttrs':: d.fn(help='\n`vault.mongodbatlas_secret_backend.newAttrs` constructs a new object with attributes and blocks configured for the `mongodbatlas_secret_backend`\nTerraform resource.\n\nUnlike [vault.mongodbatlas_secret_backend.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 - `mount` (`string`): Path where MongoDB Atlas secret backend is mounted\n - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object.\n - `private_key` (`string`): The Private Programmatic API Key used to connect with MongoDB Atlas API\n - `public_key` (`string`): The Public Programmatic API Key used to authenticate with the MongoDB Atlas API\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 `mongodbatlas_secret_backend` resource into the root Terraform configuration.\n', args=[]), + newAttrs( + mount, + private_key, + public_key, + namespace=null + ):: std.prune(a={ + mount: mount, + namespace: namespace, + private_key: private_key, + public_key: public_key, + }), + '#withMount':: d.fn(help='`vault.string.withMount` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the mount 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 `mount` field.\n', args=[]), + withMount(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_backend+: { + [resourceLabel]+: { + mount: value, + }, + }, + }, + }, + '#withNamespace':: d.fn(help='`vault.string.withNamespace` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the namespace 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 `namespace` field.\n', args=[]), + withNamespace(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_backend+: { + [resourceLabel]+: { + namespace: value, + }, + }, + }, + }, + '#withPrivateKey':: d.fn(help='`vault.string.withPrivateKey` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the private_key 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 `private_key` field.\n', args=[]), + withPrivateKey(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_backend+: { + [resourceLabel]+: { + private_key: value, + }, + }, + }, + }, + '#withPublicKey':: d.fn(help='`vault.string.withPublicKey` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the public_key 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 `public_key` field.\n', args=[]), + withPublicKey(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_backend+: { + [resourceLabel]+: { + public_key: value, + }, + }, + }, + }, +} diff --git a/3.x/_gen/resources/mongodbatlas_secret_role.libsonnet b/3.x/_gen/resources/mongodbatlas_secret_role.libsonnet new file mode 100644 index 0000000..abd1085 --- /dev/null +++ b/3.x/_gen/resources/mongodbatlas_secret_role.libsonnet @@ -0,0 +1,174 @@ +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='mongodbatlas_secret_role', url='', help='`mongodbatlas_secret_role` represents the `vault_mongodbatlas_secret_role` 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`vault.mongodbatlas_secret_role.new` injects a new `vault_mongodbatlas_secret_role` 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 vault.mongodbatlas_secret_role.new('some_id')\n\nYou can get the reference to the `id` field of the created `vault.mongodbatlas_secret_role` using the reference:\n\n $._ref.vault_mongodbatlas_secret_role.some_id.get('id')\n\nThis is the same as directly entering `\"${ vault_mongodbatlas_secret_role.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 - `cidr_blocks` (`list`): Whitelist entry in CIDR notation to be added for the API key When `null`, the `cidr_blocks` field will be omitted from the resulting object.\n - `ip_addresses` (`list`): IP address to be added to the whitelist for the API key When `null`, the `ip_addresses` field will be omitted from the resulting object.\n - `max_ttl` (`string`): The maximum allowed lifetime of credentials issued using this role When `null`, the `max_ttl` field will be omitted from the resulting object.\n - `mount` (`string`): Path where MongoDB Atlas secret backend is mounted\n - `name` (`string`): Name of the role\n - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object.\n - `organization_id` (`string`): ID for the organization to which the target API Key belongs When `null`, the `organization_id` field will be omitted from the resulting object.\n - `project_id` (`string`): ID for the project to which the target API Key belongs When `null`, the `project_id` field will be omitted from the resulting object.\n - `project_roles` (`list`): Roles assigned when an org API key is assigned to a project API key When `null`, the `project_roles` field will be omitted from the resulting object.\n - `roles` (`list`): List of roles that the API Key needs to have\n - `ttl` (`string`): Duration in seconds after which the issued credential should expire When `null`, the `ttl` field will be omitted from the resulting object.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), + new( + resourceLabel, + mount, + name, + roles, + cidr_blocks=null, + ip_addresses=null, + max_ttl=null, + namespace=null, + organization_id=null, + project_id=null, + project_roles=null, + ttl=null, + _meta={} + ):: tf.withResource( + type='vault_mongodbatlas_secret_role', + label=resourceLabel, + attrs=self.newAttrs( + cidr_blocks=cidr_blocks, + ip_addresses=ip_addresses, + max_ttl=max_ttl, + mount=mount, + name=name, + namespace=namespace, + organization_id=organization_id, + project_id=project_id, + project_roles=project_roles, + roles=roles, + ttl=ttl + ), + _meta=_meta + ), + '#newAttrs':: d.fn(help='\n`vault.mongodbatlas_secret_role.newAttrs` constructs a new object with attributes and blocks configured for the `mongodbatlas_secret_role`\nTerraform resource.\n\nUnlike [vault.mongodbatlas_secret_role.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 - `cidr_blocks` (`list`): Whitelist entry in CIDR notation to be added for the API key When `null`, the `cidr_blocks` field will be omitted from the resulting object.\n - `ip_addresses` (`list`): IP address to be added to the whitelist for the API key When `null`, the `ip_addresses` field will be omitted from the resulting object.\n - `max_ttl` (`string`): The maximum allowed lifetime of credentials issued using this role When `null`, the `max_ttl` field will be omitted from the resulting object.\n - `mount` (`string`): Path where MongoDB Atlas secret backend is mounted\n - `name` (`string`): Name of the role\n - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object.\n - `organization_id` (`string`): ID for the organization to which the target API Key belongs When `null`, the `organization_id` field will be omitted from the resulting object.\n - `project_id` (`string`): ID for the project to which the target API Key belongs When `null`, the `project_id` field will be omitted from the resulting object.\n - `project_roles` (`list`): Roles assigned when an org API key is assigned to a project API key When `null`, the `project_roles` field will be omitted from the resulting object.\n - `roles` (`list`): List of roles that the API Key needs to have\n - `ttl` (`string`): Duration in seconds after which the issued credential should expire When `null`, the `ttl` field will be omitted from 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 `mongodbatlas_secret_role` resource into the root Terraform configuration.\n', args=[]), + newAttrs( + mount, + name, + roles, + cidr_blocks=null, + ip_addresses=null, + max_ttl=null, + namespace=null, + organization_id=null, + project_id=null, + project_roles=null, + ttl=null + ):: std.prune(a={ + cidr_blocks: cidr_blocks, + ip_addresses: ip_addresses, + max_ttl: max_ttl, + mount: mount, + name: name, + namespace: namespace, + organization_id: organization_id, + project_id: project_id, + project_roles: project_roles, + roles: roles, + ttl: ttl, + }), + '#withCidrBlocks':: d.fn(help='`vault.list.withCidrBlocks` constructs a mixin object that can be merged into the `list`\nTerraform resource block to set or update the cidr_blocks field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list`): The value to set for the `cidr_blocks` field.\n', args=[]), + withCidrBlocks(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_role+: { + [resourceLabel]+: { + cidr_blocks: value, + }, + }, + }, + }, + '#withIpAddresses':: d.fn(help='`vault.list.withIpAddresses` constructs a mixin object that can be merged into the `list`\nTerraform resource block to set or update the ip_addresses field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list`): The value to set for the `ip_addresses` field.\n', args=[]), + withIpAddresses(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_role+: { + [resourceLabel]+: { + ip_addresses: value, + }, + }, + }, + }, + '#withMaxTtl':: d.fn(help='`vault.string.withMaxTtl` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the max_ttl 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 `max_ttl` field.\n', args=[]), + withMaxTtl(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_role+: { + [resourceLabel]+: { + max_ttl: value, + }, + }, + }, + }, + '#withMount':: d.fn(help='`vault.string.withMount` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the mount 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 `mount` field.\n', args=[]), + withMount(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_role+: { + [resourceLabel]+: { + mount: value, + }, + }, + }, + }, + '#withName':: d.fn(help='`vault.string.withName` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the name 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 `name` field.\n', args=[]), + withName(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_role+: { + [resourceLabel]+: { + name: value, + }, + }, + }, + }, + '#withNamespace':: d.fn(help='`vault.string.withNamespace` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the namespace 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 `namespace` field.\n', args=[]), + withNamespace(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_role+: { + [resourceLabel]+: { + namespace: value, + }, + }, + }, + }, + '#withOrganizationId':: d.fn(help='`vault.string.withOrganizationId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the organization_id 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 `organization_id` field.\n', args=[]), + withOrganizationId(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_role+: { + [resourceLabel]+: { + organization_id: value, + }, + }, + }, + }, + '#withProjectId':: d.fn(help='`vault.string.withProjectId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the project_id 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 `project_id` field.\n', args=[]), + withProjectId(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_role+: { + [resourceLabel]+: { + project_id: value, + }, + }, + }, + }, + '#withProjectRoles':: d.fn(help='`vault.list.withProjectRoles` constructs a mixin object that can be merged into the `list`\nTerraform resource block to set or update the project_roles field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list`): The value to set for the `project_roles` field.\n', args=[]), + withProjectRoles(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_role+: { + [resourceLabel]+: { + project_roles: value, + }, + }, + }, + }, + '#withRoles':: d.fn(help='`vault.list.withRoles` constructs a mixin object that can be merged into the `list`\nTerraform resource block to set or update the roles field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list`): The value to set for the `roles` field.\n', args=[]), + withRoles(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_role+: { + [resourceLabel]+: { + roles: value, + }, + }, + }, + }, + '#withTtl':: d.fn(help='`vault.string.withTtl` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the ttl 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 `ttl` field.\n', args=[]), + withTtl(resourceLabel, value): { + resource+: { + vault_mongodbatlas_secret_role+: { + [resourceLabel]+: { + ttl: value, + }, + }, + }, + }, +} diff --git a/docs/3.x/README.md b/docs/3.x/README.md index f611ad2..c89f559 100644 --- a/docs/3.x/README.md +++ b/docs/3.x/README.md @@ -97,6 +97,8 @@ project. * [mfa_okta](mfa_okta.md) * [mfa_pingid](mfa_pingid.md) * [mfa_totp](mfa_totp.md) +* [mongodbatlas_secret_backend](mongodbatlas_secret_backend.md) +* [mongodbatlas_secret_role](mongodbatlas_secret_role.md) * [mount](mount.md) * [namespace](namespace.md) * [nomad_secret_backend](nomad_secret_backend.md) diff --git a/docs/3.x/identity_mfa_totp.md b/docs/3.x/identity_mfa_totp.md index 9c40329..50db247 100644 --- a/docs/3.x/identity_mfa_totp.md +++ b/docs/3.x/identity_mfa_totp.md @@ -22,6 +22,7 @@ This package contains functions and utilities for setting up the resource using * [`fn withMaxValidationAttempts()`](#fn-withmaxvalidationattempts) * [`fn withNamespace()`](#fn-withnamespace) * [`fn withPeriod()`](#fn-withperiod) +* [`fn withQrSize()`](#fn-withqrsize) * [`fn withSkew()`](#fn-withskew) ## Fields @@ -60,6 +61,7 @@ or `$` to refer to the root object. Instead, make an explicit outer object using - `max_validation_attempts` (`number`): The maximum number of consecutive failed validation attempts allowed. When `null`, the `max_validation_attempts` field will be omitted from the resulting object. - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object. - `period` (`number`): The length of time in seconds used to generate a counter for the TOTP token calculation. When `null`, the `period` field will be omitted from the resulting object. + - `qr_size` (`number`): The pixel size of the generated square QR code. When `null`, the `qr_size` field will be omitted from the resulting object. - `skew` (`number`): The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. When `null`, the `skew` field will be omitted from the resulting object. **Returns**: @@ -91,6 +93,7 @@ injecting into a complete block. - `max_validation_attempts` (`number`): The maximum number of consecutive failed validation attempts allowed. When `null`, the `max_validation_attempts` field will be omitted from the resulting object. - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object. - `period` (`number`): The length of time in seconds used to generate a counter for the TOTP token calculation. When `null`, the `period` field will be omitted from the resulting object. + - `qr_size` (`number`): The pixel size of the generated square QR code. When `null`, the `qr_size` field will be omitted from the resulting object. - `skew` (`number`): The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. When `null`, the `skew` field will be omitted from the resulting object. **Returns**: @@ -209,6 +212,22 @@ Terraform resource block to set or update the period field. - `value` (`number`): The value to set for the `period` field. +### fn withQrSize + +```ts +withQrSize() +``` + +`vault.number.withQrSize` constructs a mixin object that can be merged into the `number` +Terraform resource block to set or update the qr_size field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`number`): The value to set for the `qr_size` field. + + ### fn withSkew ```ts diff --git a/docs/3.x/mongodbatlas_secret_backend.md b/docs/3.x/mongodbatlas_secret_backend.md new file mode 100644 index 0000000..ea701cc --- /dev/null +++ b/docs/3.x/mongodbatlas_secret_backend.md @@ -0,0 +1,149 @@ +--- +permalink: /mongodbatlas_secret_backend/ +--- + +# mongodbatlas_secret_backend + +`mongodbatlas_secret_backend` represents the `vault_mongodbatlas_secret_backend` Terraform resource. + + + +This package contains functions and utilities for setting up the resource using Jsonnet code. + + +## Index + +* [`fn new()`](#fn-new) +* [`fn newAttrs()`](#fn-newattrs) +* [`fn withMount()`](#fn-withmount) +* [`fn withNamespace()`](#fn-withnamespace) +* [`fn withPrivateKey()`](#fn-withprivatekey) +* [`fn withPublicKey()`](#fn-withpublickey) + +## Fields + +### fn new + +```ts +new() +``` + + +`vault.mongodbatlas_secret_backend.new` injects a new `vault_mongodbatlas_secret_backend` Terraform `resource` +block into the root module document. + +Additionally, this inserts a private function into the `_ref` attribute that generates references to attributes of the +resource. For example, if you added a new instance to the root using: + + # arguments omitted for brevity + vault.mongodbatlas_secret_backend.new('some_id') + +You can get the reference to the `id` field of the created `vault.mongodbatlas_secret_backend` using the reference: + + $._ref.vault_mongodbatlas_secret_backend.some_id.get('id') + +This is the same as directly entering `"${ vault_mongodbatlas_secret_backend.some_id.id }"` as the value. + +NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use `super`, `self`, +or `$` to refer to the root object. Instead, make an explicit outer object using `local`. + +**Args**: + - `resourceLabel` (`string`): The name label of the block. + - `mount` (`string`): Path where MongoDB Atlas secret backend is mounted + - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object. + - `private_key` (`string`): The Private Programmatic API Key used to connect with MongoDB Atlas API + - `public_key` (`string`): The Public Programmatic API Key used to authenticate with the MongoDB Atlas API + +**Returns**: +- A mixin object that injects the new resource into the root Terraform configuration. + + +### fn newAttrs + +```ts +newAttrs() +``` + + +`vault.mongodbatlas_secret_backend.newAttrs` constructs a new object with attributes and blocks configured for the `mongodbatlas_secret_backend` +Terraform resource. + +Unlike [vault.mongodbatlas_secret_backend.new](#fn-new), this function will not inject the `resource` +block into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the +[tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) function to build a complete block. + +This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to +injecting into a complete block. + +**Args**: + - `mount` (`string`): Path where MongoDB Atlas secret backend is mounted + - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object. + - `private_key` (`string`): The Private Programmatic API Key used to connect with MongoDB Atlas API + - `public_key` (`string`): The Public Programmatic API Key used to authenticate with the MongoDB Atlas API + +**Returns**: + - 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 `mongodbatlas_secret_backend` resource into the root Terraform configuration. + + +### fn withMount + +```ts +withMount() +``` + +`vault.string.withMount` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the mount field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `mount` field. + + +### fn withNamespace + +```ts +withNamespace() +``` + +`vault.string.withNamespace` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the namespace field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `namespace` field. + + +### fn withPrivateKey + +```ts +withPrivateKey() +``` + +`vault.string.withPrivateKey` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the private_key field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `private_key` field. + + +### fn withPublicKey + +```ts +withPublicKey() +``` + +`vault.string.withPublicKey` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the public_key field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `public_key` field. diff --git a/docs/3.x/mongodbatlas_secret_role.md b/docs/3.x/mongodbatlas_secret_role.md new file mode 100644 index 0000000..b73f191 --- /dev/null +++ b/docs/3.x/mongodbatlas_secret_role.md @@ -0,0 +1,282 @@ +--- +permalink: /mongodbatlas_secret_role/ +--- + +# mongodbatlas_secret_role + +`mongodbatlas_secret_role` represents the `vault_mongodbatlas_secret_role` Terraform resource. + + + +This package contains functions and utilities for setting up the resource using Jsonnet code. + + +## Index + +* [`fn new()`](#fn-new) +* [`fn newAttrs()`](#fn-newattrs) +* [`fn withCidrBlocks()`](#fn-withcidrblocks) +* [`fn withIpAddresses()`](#fn-withipaddresses) +* [`fn withMaxTtl()`](#fn-withmaxttl) +* [`fn withMount()`](#fn-withmount) +* [`fn withName()`](#fn-withname) +* [`fn withNamespace()`](#fn-withnamespace) +* [`fn withOrganizationId()`](#fn-withorganizationid) +* [`fn withProjectId()`](#fn-withprojectid) +* [`fn withProjectRoles()`](#fn-withprojectroles) +* [`fn withRoles()`](#fn-withroles) +* [`fn withTtl()`](#fn-withttl) + +## Fields + +### fn new + +```ts +new() +``` + + +`vault.mongodbatlas_secret_role.new` injects a new `vault_mongodbatlas_secret_role` Terraform `resource` +block into the root module document. + +Additionally, this inserts a private function into the `_ref` attribute that generates references to attributes of the +resource. For example, if you added a new instance to the root using: + + # arguments omitted for brevity + vault.mongodbatlas_secret_role.new('some_id') + +You can get the reference to the `id` field of the created `vault.mongodbatlas_secret_role` using the reference: + + $._ref.vault_mongodbatlas_secret_role.some_id.get('id') + +This is the same as directly entering `"${ vault_mongodbatlas_secret_role.some_id.id }"` as the value. + +NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use `super`, `self`, +or `$` to refer to the root object. Instead, make an explicit outer object using `local`. + +**Args**: + - `resourceLabel` (`string`): The name label of the block. + - `cidr_blocks` (`list`): Whitelist entry in CIDR notation to be added for the API key When `null`, the `cidr_blocks` field will be omitted from the resulting object. + - `ip_addresses` (`list`): IP address to be added to the whitelist for the API key When `null`, the `ip_addresses` field will be omitted from the resulting object. + - `max_ttl` (`string`): The maximum allowed lifetime of credentials issued using this role When `null`, the `max_ttl` field will be omitted from the resulting object. + - `mount` (`string`): Path where MongoDB Atlas secret backend is mounted + - `name` (`string`): Name of the role + - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object. + - `organization_id` (`string`): ID for the organization to which the target API Key belongs When `null`, the `organization_id` field will be omitted from the resulting object. + - `project_id` (`string`): ID for the project to which the target API Key belongs When `null`, the `project_id` field will be omitted from the resulting object. + - `project_roles` (`list`): Roles assigned when an org API key is assigned to a project API key When `null`, the `project_roles` field will be omitted from the resulting object. + - `roles` (`list`): List of roles that the API Key needs to have + - `ttl` (`string`): Duration in seconds after which the issued credential should expire When `null`, the `ttl` field will be omitted from the resulting object. + +**Returns**: +- A mixin object that injects the new resource into the root Terraform configuration. + + +### fn newAttrs + +```ts +newAttrs() +``` + + +`vault.mongodbatlas_secret_role.newAttrs` constructs a new object with attributes and blocks configured for the `mongodbatlas_secret_role` +Terraform resource. + +Unlike [vault.mongodbatlas_secret_role.new](#fn-new), this function will not inject the `resource` +block into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the +[tf.withResource](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withresource) function to build a complete block. + +This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to +injecting into a complete block. + +**Args**: + - `cidr_blocks` (`list`): Whitelist entry in CIDR notation to be added for the API key When `null`, the `cidr_blocks` field will be omitted from the resulting object. + - `ip_addresses` (`list`): IP address to be added to the whitelist for the API key When `null`, the `ip_addresses` field will be omitted from the resulting object. + - `max_ttl` (`string`): The maximum allowed lifetime of credentials issued using this role When `null`, the `max_ttl` field will be omitted from the resulting object. + - `mount` (`string`): Path where MongoDB Atlas secret backend is mounted + - `name` (`string`): Name of the role + - `namespace` (`string`): Target namespace. (requires Enterprise) When `null`, the `namespace` field will be omitted from the resulting object. + - `organization_id` (`string`): ID for the organization to which the target API Key belongs When `null`, the `organization_id` field will be omitted from the resulting object. + - `project_id` (`string`): ID for the project to which the target API Key belongs When `null`, the `project_id` field will be omitted from the resulting object. + - `project_roles` (`list`): Roles assigned when an org API key is assigned to a project API key When `null`, the `project_roles` field will be omitted from the resulting object. + - `roles` (`list`): List of roles that the API Key needs to have + - `ttl` (`string`): Duration in seconds after which the issued credential should expire When `null`, the `ttl` field will be omitted from the resulting object. + +**Returns**: + - 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 `mongodbatlas_secret_role` resource into the root Terraform configuration. + + +### fn withCidrBlocks + +```ts +withCidrBlocks() +``` + +`vault.list.withCidrBlocks` constructs a mixin object that can be merged into the `list` +Terraform resource block to set or update the cidr_blocks field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list`): The value to set for the `cidr_blocks` field. + + +### fn withIpAddresses + +```ts +withIpAddresses() +``` + +`vault.list.withIpAddresses` constructs a mixin object that can be merged into the `list` +Terraform resource block to set or update the ip_addresses field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list`): The value to set for the `ip_addresses` field. + + +### fn withMaxTtl + +```ts +withMaxTtl() +``` + +`vault.string.withMaxTtl` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the max_ttl field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `max_ttl` field. + + +### fn withMount + +```ts +withMount() +``` + +`vault.string.withMount` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the mount field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `mount` field. + + +### fn withName + +```ts +withName() +``` + +`vault.string.withName` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the name field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `name` field. + + +### fn withNamespace + +```ts +withNamespace() +``` + +`vault.string.withNamespace` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the namespace field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `namespace` field. + + +### fn withOrganizationId + +```ts +withOrganizationId() +``` + +`vault.string.withOrganizationId` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the organization_id field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `organization_id` field. + + +### fn withProjectId + +```ts +withProjectId() +``` + +`vault.string.withProjectId` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the project_id field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `project_id` field. + + +### fn withProjectRoles + +```ts +withProjectRoles() +``` + +`vault.list.withProjectRoles` constructs a mixin object that can be merged into the `list` +Terraform resource block to set or update the project_roles field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list`): The value to set for the `project_roles` field. + + +### fn withRoles + +```ts +withRoles() +``` + +`vault.list.withRoles` constructs a mixin object that can be merged into the `list` +Terraform resource block to set or update the roles field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list`): The value to set for the `roles` field. + + +### fn withTtl + +```ts +withTtl() +``` + +`vault.string.withTtl` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the ttl field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `ttl` field.