diff --git a/4.x/_gen/data/kms_secrets.libsonnet b/4.x/_gen/data/kms_secrets.libsonnet index 8031ab19..9d7b597f 100644 --- a/4.x/_gen/data/kms_secrets.libsonnet +++ b/4.x/_gen/data/kms_secrets.libsonnet @@ -20,15 +20,19 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); secret: secret, }), secret:: { - '#new':: d.fn(help='\n`aws.kms_secrets.secret.new` constructs a new object with attributes and blocks configured for the `secret`\nTerraform sub block.\n\n\n\n**Args**:\n - `context` (`obj`): Set the `context` field on the resulting object. When `null`, the `context` field will be omitted from the resulting object.\n - `grant_tokens` (`list`): Set the `grant_tokens` field on the resulting object. When `null`, the `grant_tokens` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object.\n - `payload` (`string`): Set the `payload` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `secret` sub block.\n', args=[]), + '#new':: d.fn(help='\n`aws.kms_secrets.secret.new` constructs a new object with attributes and blocks configured for the `secret`\nTerraform sub block.\n\n\n\n**Args**:\n - `context` (`obj`): Set the `context` field on the resulting object. When `null`, the `context` field will be omitted from the resulting object.\n - `encryption_algorithm` (`string`): Set the `encryption_algorithm` field on the resulting object. When `null`, the `encryption_algorithm` field will be omitted from the resulting object.\n - `grant_tokens` (`list`): Set the `grant_tokens` field on the resulting object. When `null`, the `grant_tokens` field will be omitted from the resulting object.\n - `key_id` (`string`): Set the `key_id` field on the resulting object. When `null`, the `key_id` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object.\n - `payload` (`string`): Set the `payload` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `secret` sub block.\n', args=[]), new( name, payload, context=null, - grant_tokens=null + encryption_algorithm=null, + grant_tokens=null, + key_id=null ):: std.prune(a={ context: context, + encryption_algorithm: encryption_algorithm, grant_tokens: grant_tokens, + key_id: key_id, name: name, payload: payload, }), diff --git a/4.x/_gen/data/main.libsonnet b/4.x/_gen/data/main.libsonnet index 042e601b..c6366640 100644 --- a/4.x/_gen/data/main.libsonnet +++ b/4.x/_gen/data/main.libsonnet @@ -362,6 +362,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); s3_bucket_policy: (import 's3_bucket_policy.libsonnet'), s3_object: (import 's3_object.libsonnet'), s3_objects: (import 's3_objects.libsonnet'), + s3control_multi_region_access_point: (import 's3control_multi_region_access_point.libsonnet'), sagemaker_prebuilt_ecr_image: (import 'sagemaker_prebuilt_ecr_image.libsonnet'), secretsmanager_random_password: (import 'secretsmanager_random_password.libsonnet'), secretsmanager_secret: (import 'secretsmanager_secret.libsonnet'), diff --git a/4.x/_gen/data/s3control_multi_region_access_point.libsonnet b/4.x/_gen/data/s3control_multi_region_access_point.libsonnet new file mode 100644 index 00000000..723a7560 --- /dev/null +++ b/4.x/_gen/data/s3control_multi_region_access_point.libsonnet @@ -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='s3control_multi_region_access_point', url='', help='`s3control_multi_region_access_point` represents the `aws_s3control_multi_region_access_point` 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.s3control_multi_region_access_point.new` injects a new `data_aws_s3control_multi_region_access_point` 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.s3control_multi_region_access_point.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.data.s3control_multi_region_access_point` using the reference:\n\n $._ref.data_aws_s3control_multi_region_access_point.some_id.get('id')\n\nThis is the same as directly entering `\"${ data_aws_s3control_multi_region_access_point.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 - `account_id` (`string`): Set the `account_id` field on the resulting data source block. When `null`, the `account_id` field will be omitted from the resulting object.\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, + account_id=null, + _meta={} + ):: tf.withData( + type='aws_s3control_multi_region_access_point', + label=dataSrcLabel, + attrs=self.newAttrs(account_id=account_id, name=name), + _meta=_meta + ), + '#newAttrs':: d.fn(help='\n`aws.data.s3control_multi_region_access_point.newAttrs` constructs a new object with attributes and blocks configured for the `s3control_multi_region_access_point`\nTerraform data source.\n\nUnlike [aws.data.s3control_multi_region_access_point.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 - `account_id` (`string`): Set the `account_id` field on the resulting object. When `null`, the `account_id` field will be omitted from the resulting object.\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 `s3control_multi_region_access_point` data source into the root Terraform configuration.\n', args=[]), + newAttrs( + name, + account_id=null + ):: std.prune(a={ + account_id: account_id, + name: name, + }), + '#withAccountId':: d.fn(help='`aws.string.withAccountId` constructs a mixin object that can be merged into the `string`\nTerraform data source block to set or update the account_id 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 `account_id` field.\n', args=[]), + withAccountId(dataSrcLabel, value): { + data+: { + aws_s3control_multi_region_access_point+: { + [dataSrcLabel]+: { + account_id: 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_s3control_multi_region_access_point+: { + [dataSrcLabel]+: { + name: value, + }, + }, + }, + }, +} diff --git a/4.x/_gen/main.libsonnet b/4.x/_gen/main.libsonnet index 0a687e4f..ae1df206 100644 --- a/4.x/_gen/main.libsonnet +++ b/4.x/_gen/main.libsonnet @@ -108,11 +108,14 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); appsync_function: (import 'resources/appsync_function.libsonnet'), appsync_graphql_api: (import 'resources/appsync_graphql_api.libsonnet'), appsync_resolver: (import 'resources/appsync_resolver.libsonnet'), + appsync_type: (import 'resources/appsync_type.libsonnet'), athena_data_catalog: (import 'resources/athena_data_catalog.libsonnet'), athena_database: (import 'resources/athena_database.libsonnet'), athena_named_query: (import 'resources/athena_named_query.libsonnet'), athena_workgroup: (import 'resources/athena_workgroup.libsonnet'), auditmanager_account_registration: (import 'resources/auditmanager_account_registration.libsonnet'), + auditmanager_assessment: (import 'resources/auditmanager_assessment.libsonnet'), + auditmanager_assessment_report: (import 'resources/auditmanager_assessment_report.libsonnet'), auditmanager_control: (import 'resources/auditmanager_control.libsonnet'), auditmanager_framework: (import 'resources/auditmanager_framework.libsonnet'), autoscaling_attachment: (import 'resources/autoscaling_attachment.libsonnet'), @@ -374,6 +377,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); ec2_client_vpn_route: (import 'resources/ec2_client_vpn_route.libsonnet'), ec2_fleet: (import 'resources/ec2_fleet.libsonnet'), ec2_host: (import 'resources/ec2_host.libsonnet'), + ec2_instance_state: (import 'resources/ec2_instance_state.libsonnet'), ec2_local_gateway_route: (import 'resources/ec2_local_gateway_route.libsonnet'), ec2_local_gateway_route_table_vpc_association: (import 'resources/ec2_local_gateway_route_table_vpc_association.libsonnet'), ec2_managed_prefix_list: (import 'resources/ec2_managed_prefix_list.libsonnet'), @@ -647,6 +651,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); lex_slot_type: (import 'resources/lex_slot_type.libsonnet'), licensemanager_association: (import 'resources/licensemanager_association.libsonnet'), licensemanager_license_configuration: (import 'resources/licensemanager_license_configuration.libsonnet'), + lightsail_bucket: (import 'resources/lightsail_bucket.libsonnet'), lightsail_certificate: (import 'resources/lightsail_certificate.libsonnet'), lightsail_container_service: (import 'resources/lightsail_container_service.libsonnet'), lightsail_container_service_deployment_version: (import 'resources/lightsail_container_service_deployment_version.libsonnet'), @@ -1034,6 +1039,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); ssm_service_setting: (import 'resources/ssm_service_setting.libsonnet'), ssoadmin_account_assignment: (import 'resources/ssoadmin_account_assignment.libsonnet'), ssoadmin_customer_managed_policy_attachment: (import 'resources/ssoadmin_customer_managed_policy_attachment.libsonnet'), + ssoadmin_instance_access_control_attributes: (import 'resources/ssoadmin_instance_access_control_attributes.libsonnet'), ssoadmin_managed_policy_attachment: (import 'resources/ssoadmin_managed_policy_attachment.libsonnet'), ssoadmin_permission_set: (import 'resources/ssoadmin_permission_set.libsonnet'), ssoadmin_permission_set_inline_policy: (import 'resources/ssoadmin_permission_set_inline_policy.libsonnet'), diff --git a/4.x/_gen/resources/appflow_connector_profile.libsonnet b/4.x/_gen/resources/appflow_connector_profile.libsonnet index 873d69bf..e0b4aa37 100644 --- a/4.x/_gen/resources/appflow_connector_profile.libsonnet +++ b/4.x/_gen/resources/appflow_connector_profile.libsonnet @@ -519,15 +519,21 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); zendesk: zendesk, }), redshift:: { - '#new':: d.fn(help='\n`aws.appflow_connector_profile.connector_profile_config.connector_profile_properties.redshift.new` constructs a new object with attributes and blocks configured for the `redshift`\nTerraform sub block.\n\n\n\n**Args**:\n - `bucket_name` (`string`): Set the `bucket_name` field on the resulting object.\n - `bucket_prefix` (`string`): Set the `bucket_prefix` field on the resulting object. When `null`, the `bucket_prefix` field will be omitted from the resulting object.\n - `database_url` (`string`): Set the `database_url` field on the resulting object. When `null`, the `database_url` field will be omitted from the resulting object.\n - `role_arn` (`string`): Set the `role_arn` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `redshift` sub block.\n', args=[]), + '#new':: d.fn(help='\n`aws.appflow_connector_profile.connector_profile_config.connector_profile_properties.redshift.new` constructs a new object with attributes and blocks configured for the `redshift`\nTerraform sub block.\n\n\n\n**Args**:\n - `bucket_name` (`string`): Set the `bucket_name` field on the resulting object.\n - `bucket_prefix` (`string`): Set the `bucket_prefix` field on the resulting object. When `null`, the `bucket_prefix` field will be omitted from the resulting object.\n - `cluster_identifier` (`string`): Set the `cluster_identifier` field on the resulting object. When `null`, the `cluster_identifier` field will be omitted from the resulting object.\n - `data_api_role_arn` (`string`): Set the `data_api_role_arn` field on the resulting object. When `null`, the `data_api_role_arn` field will be omitted from the resulting object.\n - `database_name` (`string`): Set the `database_name` field on the resulting object. When `null`, the `database_name` field will be omitted from the resulting object.\n - `database_url` (`string`): Set the `database_url` field on the resulting object. When `null`, the `database_url` field will be omitted from the resulting object.\n - `role_arn` (`string`): Set the `role_arn` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `redshift` sub block.\n', args=[]), new( bucket_name, role_arn, bucket_prefix=null, + cluster_identifier=null, + data_api_role_arn=null, + database_name=null, database_url=null ):: std.prune(a={ bucket_name: bucket_name, bucket_prefix: bucket_prefix, + cluster_identifier: cluster_identifier, + data_api_role_arn: data_api_role_arn, + database_name: database_name, database_url: database_url, role_arn: role_arn, }), diff --git a/4.x/_gen/resources/appsync_resolver.libsonnet b/4.x/_gen/resources/appsync_resolver.libsonnet index b77fffce..2bd69a52 100644 --- a/4.x/_gen/resources/appsync_resolver.libsonnet +++ b/4.x/_gen/resources/appsync_resolver.libsonnet @@ -12,19 +12,21 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); ttl: ttl, }), }, - '#new':: d.fn(help="\n`aws.appsync_resolver.new` injects a new `aws_appsync_resolver` 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.appsync_resolver.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.appsync_resolver` using the reference:\n\n $._ref.aws_appsync_resolver.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_appsync_resolver.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 - `api_id` (`string`): Set the `api_id` field on the resulting resource block.\n - `data_source` (`string`): Set the `data_source` field on the resulting resource block. When `null`, the `data_source` field will be omitted from the resulting object.\n - `field` (`string`): Set the `field` field on the resulting resource block.\n - `kind` (`string`): Set the `kind` field on the resulting resource block. When `null`, the `kind` field will be omitted from the resulting object.\n - `max_batch_size` (`number`): Set the `max_batch_size` field on the resulting resource block. When `null`, the `max_batch_size` field will be omitted from the resulting object.\n - `request_template` (`string`): Set the `request_template` field on the resulting resource block. When `null`, the `request_template` field will be omitted from the resulting object.\n - `response_template` (`string`): Set the `response_template` field on the resulting resource block. When `null`, the `response_template` field will be omitted from the resulting object.\n - `type` (`string`): Set the `type` field on the resulting resource block.\n - `caching_config` (`list[obj]`): Set the `caching_config` field on the resulting resource block. When `null`, the `caching_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.caching_config.new](#fn-caching_confignew) constructor.\n - `pipeline_config` (`list[obj]`): Set the `pipeline_config` field on the resulting resource block. When `null`, the `pipeline_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.pipeline_config.new](#fn-pipeline_confignew) constructor.\n - `sync_config` (`list[obj]`): Set the `sync_config` field on the resulting resource block. When `null`, the `sync_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.sync_config.new](#fn-sync_confignew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), + '#new':: d.fn(help="\n`aws.appsync_resolver.new` injects a new `aws_appsync_resolver` 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.appsync_resolver.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.appsync_resolver` using the reference:\n\n $._ref.aws_appsync_resolver.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_appsync_resolver.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 - `api_id` (`string`): Set the `api_id` field on the resulting resource block.\n - `code` (`string`): Set the `code` field on the resulting resource block. When `null`, the `code` field will be omitted from the resulting object.\n - `data_source` (`string`): Set the `data_source` field on the resulting resource block. When `null`, the `data_source` field will be omitted from the resulting object.\n - `field` (`string`): Set the `field` field on the resulting resource block.\n - `kind` (`string`): Set the `kind` field on the resulting resource block. When `null`, the `kind` field will be omitted from the resulting object.\n - `max_batch_size` (`number`): Set the `max_batch_size` field on the resulting resource block. When `null`, the `max_batch_size` field will be omitted from the resulting object.\n - `request_template` (`string`): Set the `request_template` field on the resulting resource block. When `null`, the `request_template` field will be omitted from the resulting object.\n - `response_template` (`string`): Set the `response_template` field on the resulting resource block. When `null`, the `response_template` field will be omitted from the resulting object.\n - `type` (`string`): Set the `type` field on the resulting resource block.\n - `caching_config` (`list[obj]`): Set the `caching_config` field on the resulting resource block. When `null`, the `caching_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.caching_config.new](#fn-caching_confignew) constructor.\n - `pipeline_config` (`list[obj]`): Set the `pipeline_config` field on the resulting resource block. When `null`, the `pipeline_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.pipeline_config.new](#fn-pipeline_confignew) constructor.\n - `runtime` (`list[obj]`): Set the `runtime` field on the resulting resource block. When `null`, the `runtime` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.runtime.new](#fn-runtimenew) constructor.\n - `sync_config` (`list[obj]`): Set the `sync_config` field on the resulting resource block. When `null`, the `sync_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.sync_config.new](#fn-sync_confignew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), new( resourceLabel, api_id, field, type, caching_config=null, + code=null, data_source=null, kind=null, max_batch_size=null, pipeline_config=null, request_template=null, response_template=null, + runtime=null, sync_config=null, _meta={} ):: tf.withResource( @@ -33,6 +35,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); attrs=self.newAttrs( api_id=api_id, caching_config=caching_config, + code=code, data_source=data_source, field=field, kind=kind, @@ -40,27 +43,31 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); pipeline_config=pipeline_config, request_template=request_template, response_template=response_template, + runtime=runtime, sync_config=sync_config, type=type ), _meta=_meta ), - '#newAttrs':: d.fn(help='\n`aws.appsync_resolver.newAttrs` constructs a new object with attributes and blocks configured for the `appsync_resolver`\nTerraform resource.\n\nUnlike [aws.appsync_resolver.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 - `api_id` (`string`): Set the `api_id` field on the resulting object.\n - `data_source` (`string`): Set the `data_source` field on the resulting object. When `null`, the `data_source` field will be omitted from the resulting object.\n - `field` (`string`): Set the `field` field on the resulting object.\n - `kind` (`string`): Set the `kind` field on the resulting object. When `null`, the `kind` field will be omitted from the resulting object.\n - `max_batch_size` (`number`): Set the `max_batch_size` field on the resulting object. When `null`, the `max_batch_size` field will be omitted from the resulting object.\n - `request_template` (`string`): Set the `request_template` field on the resulting object. When `null`, the `request_template` field will be omitted from the resulting object.\n - `response_template` (`string`): Set the `response_template` field on the resulting object. When `null`, the `response_template` field will be omitted from the resulting object.\n - `type` (`string`): Set the `type` field on the resulting object.\n - `caching_config` (`list[obj]`): Set the `caching_config` field on the resulting object. When `null`, the `caching_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.caching_config.new](#fn-caching_confignew) constructor.\n - `pipeline_config` (`list[obj]`): Set the `pipeline_config` field on the resulting object. When `null`, the `pipeline_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.pipeline_config.new](#fn-pipeline_confignew) constructor.\n - `sync_config` (`list[obj]`): Set the `sync_config` field on the resulting object. When `null`, the `sync_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.sync_config.new](#fn-sync_confignew) constructor.\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 `appsync_resolver` resource into the root Terraform configuration.\n', args=[]), + '#newAttrs':: d.fn(help='\n`aws.appsync_resolver.newAttrs` constructs a new object with attributes and blocks configured for the `appsync_resolver`\nTerraform resource.\n\nUnlike [aws.appsync_resolver.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 - `api_id` (`string`): Set the `api_id` field on the resulting object.\n - `code` (`string`): Set the `code` field on the resulting object. When `null`, the `code` field will be omitted from the resulting object.\n - `data_source` (`string`): Set the `data_source` field on the resulting object. When `null`, the `data_source` field will be omitted from the resulting object.\n - `field` (`string`): Set the `field` field on the resulting object.\n - `kind` (`string`): Set the `kind` field on the resulting object. When `null`, the `kind` field will be omitted from the resulting object.\n - `max_batch_size` (`number`): Set the `max_batch_size` field on the resulting object. When `null`, the `max_batch_size` field will be omitted from the resulting object.\n - `request_template` (`string`): Set the `request_template` field on the resulting object. When `null`, the `request_template` field will be omitted from the resulting object.\n - `response_template` (`string`): Set the `response_template` field on the resulting object. When `null`, the `response_template` field will be omitted from the resulting object.\n - `type` (`string`): Set the `type` field on the resulting object.\n - `caching_config` (`list[obj]`): Set the `caching_config` field on the resulting object. When `null`, the `caching_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.caching_config.new](#fn-caching_confignew) constructor.\n - `pipeline_config` (`list[obj]`): Set the `pipeline_config` field on the resulting object. When `null`, the `pipeline_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.pipeline_config.new](#fn-pipeline_confignew) constructor.\n - `runtime` (`list[obj]`): Set the `runtime` field on the resulting object. When `null`, the `runtime` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.runtime.new](#fn-runtimenew) constructor.\n - `sync_config` (`list[obj]`): Set the `sync_config` field on the resulting object. When `null`, the `sync_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.sync_config.new](#fn-sync_confignew) constructor.\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 `appsync_resolver` resource into the root Terraform configuration.\n', args=[]), newAttrs( api_id, field, type, caching_config=null, + code=null, data_source=null, kind=null, max_batch_size=null, pipeline_config=null, request_template=null, response_template=null, + runtime=null, sync_config=null ):: std.prune(a={ api_id: api_id, caching_config: caching_config, + code: code, data_source: data_source, field: field, kind: kind, @@ -68,6 +75,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); pipeline_config: pipeline_config, request_template: request_template, response_template: response_template, + runtime: runtime, sync_config: sync_config, type: type, }), @@ -79,6 +87,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); functions: functions, }), }, + runtime:: { + '#new':: d.fn(help='\n`aws.appsync_resolver.runtime.new` constructs a new object with attributes and blocks configured for the `runtime`\nTerraform sub block.\n\n\n\n**Args**:\n - `name` (`string`): Set the `name` field on the resulting object.\n - `runtime_version` (`string`): Set the `runtime_version` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `runtime` sub block.\n', args=[]), + new( + name, + runtime_version + ):: std.prune(a={ + name: name, + runtime_version: runtime_version, + }), + }, sync_config:: { lambda_conflict_handler_config:: { '#new':: d.fn(help='\n`aws.appsync_resolver.sync_config.lambda_conflict_handler_config.new` constructs a new object with attributes and blocks configured for the `lambda_conflict_handler_config`\nTerraform sub block.\n\n\n\n**Args**:\n - `lambda_conflict_handler_arn` (`string`): Set the `lambda_conflict_handler_arn` field on the resulting object. When `null`, the `lambda_conflict_handler_arn` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `lambda_conflict_handler_config` sub block.\n', args=[]), @@ -129,6 +147,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); }, }, }, + '#withCode':: d.fn(help='`aws.string.withCode` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the code 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 `code` field.\n', args=[]), + withCode(resourceLabel, value): { + resource+: { + aws_appsync_resolver+: { + [resourceLabel]+: { + code: value, + }, + }, + }, + }, '#withDataSource':: d.fn(help='`aws.string.withDataSource` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the data_source 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 `data_source` field.\n', args=[]), withDataSource(resourceLabel, value): { resource+: { @@ -209,6 +237,26 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); }, }, }, + '#withRuntime':: d.fn(help='`aws.list[obj].withRuntime` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the runtime 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].withRuntimeMixin](TODO) function.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `runtime` field.\n', args=[]), + withRuntime(resourceLabel, value): { + resource+: { + aws_appsync_resolver+: { + [resourceLabel]+: { + runtime: value, + }, + }, + }, + }, + '#withRuntimeMixin':: d.fn(help='`aws.list[obj].withRuntimeMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the runtime 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].withRuntime](TODO)\nfunction.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `runtime` field.\n', args=[]), + withRuntimeMixin(resourceLabel, value): { + resource+: { + aws_appsync_resolver+: { + [resourceLabel]+: { + runtime+: if std.isArray(v=value) then value else [value], + }, + }, + }, + }, '#withSyncConfig':: d.fn(help='`aws.list[obj].withSyncConfig` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the sync_config 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].withSyncConfigMixin](TODO) function.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `sync_config` field.\n', args=[]), withSyncConfig(resourceLabel, value): { resource+: { diff --git a/4.x/_gen/resources/appsync_type.libsonnet b/4.x/_gen/resources/appsync_type.libsonnet new file mode 100644 index 00000000..85dc066d --- /dev/null +++ b/4.x/_gen/resources/appsync_type.libsonnet @@ -0,0 +1,58 @@ +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='appsync_type', url='', help='`appsync_type` represents the `aws_appsync_type` 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.appsync_type.new` injects a new `aws_appsync_type` 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.appsync_type.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.appsync_type` using the reference:\n\n $._ref.aws_appsync_type.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_appsync_type.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 - `api_id` (`string`): Set the `api_id` field on the resulting resource block.\n - `definition` (`string`): Set the `definition` field on the resulting resource block.\n - `format` (`string`): Set the `format` 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, + api_id, + definition, + format, + _meta={} + ):: tf.withResource( + type='aws_appsync_type', + label=resourceLabel, + attrs=self.newAttrs(api_id=api_id, definition=definition, format=format), + _meta=_meta + ), + '#newAttrs':: d.fn(help='\n`aws.appsync_type.newAttrs` constructs a new object with attributes and blocks configured for the `appsync_type`\nTerraform resource.\n\nUnlike [aws.appsync_type.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 - `api_id` (`string`): Set the `api_id` field on the resulting object.\n - `definition` (`string`): Set the `definition` field on the resulting object.\n - `format` (`string`): Set the `format` 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 `appsync_type` resource into the root Terraform configuration.\n', args=[]), + newAttrs( + api_id, + definition, + format + ):: std.prune(a={ + api_id: api_id, + definition: definition, + format: format, + }), + '#withApiId':: d.fn(help='`aws.string.withApiId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the api_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 `api_id` field.\n', args=[]), + withApiId(resourceLabel, value): { + resource+: { + aws_appsync_type+: { + [resourceLabel]+: { + api_id: value, + }, + }, + }, + }, + '#withDefinition':: d.fn(help='`aws.string.withDefinition` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the definition 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 `definition` field.\n', args=[]), + withDefinition(resourceLabel, value): { + resource+: { + aws_appsync_type+: { + [resourceLabel]+: { + definition: value, + }, + }, + }, + }, + '#withFormat':: d.fn(help='`aws.string.withFormat` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the format 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 `format` field.\n', args=[]), + withFormat(resourceLabel, value): { + resource+: { + aws_appsync_type+: { + [resourceLabel]+: { + format: value, + }, + }, + }, + }, +} diff --git a/4.x/_gen/resources/athena_workgroup.libsonnet b/4.x/_gen/resources/athena_workgroup.libsonnet index 181af182..7e6d0231 100644 --- a/4.x/_gen/resources/athena_workgroup.libsonnet +++ b/4.x/_gen/resources/athena_workgroup.libsonnet @@ -11,11 +11,12 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); selected_engine_version: selected_engine_version, }), }, - '#new':: d.fn(help='\n`aws.athena_workgroup.configuration.new` constructs a new object with attributes and blocks configured for the `configuration`\nTerraform sub block.\n\n\n\n**Args**:\n - `bytes_scanned_cutoff_per_query` (`number`): Set the `bytes_scanned_cutoff_per_query` field on the resulting object. When `null`, the `bytes_scanned_cutoff_per_query` field will be omitted from the resulting object.\n - `enforce_workgroup_configuration` (`bool`): Set the `enforce_workgroup_configuration` field on the resulting object. When `null`, the `enforce_workgroup_configuration` field will be omitted from the resulting object.\n - `publish_cloudwatch_metrics_enabled` (`bool`): Set the `publish_cloudwatch_metrics_enabled` field on the resulting object. When `null`, the `publish_cloudwatch_metrics_enabled` field will be omitted from the resulting object.\n - `requester_pays_enabled` (`bool`): Set the `requester_pays_enabled` field on the resulting object. When `null`, the `requester_pays_enabled` field will be omitted from the resulting object.\n - `engine_version` (`list[obj]`): Set the `engine_version` field on the resulting object. When `null`, the `engine_version` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.athena_workgroup.configuration.engine_version.new](#fn-configurationengine_versionnew) constructor.\n - `result_configuration` (`list[obj]`): Set the `result_configuration` field on the resulting object. When `null`, the `result_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.athena_workgroup.configuration.result_configuration.new](#fn-configurationresult_configurationnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `configuration` sub block.\n', args=[]), + '#new':: d.fn(help='\n`aws.athena_workgroup.configuration.new` constructs a new object with attributes and blocks configured for the `configuration`\nTerraform sub block.\n\n\n\n**Args**:\n - `bytes_scanned_cutoff_per_query` (`number`): Set the `bytes_scanned_cutoff_per_query` field on the resulting object. When `null`, the `bytes_scanned_cutoff_per_query` field will be omitted from the resulting object.\n - `enforce_workgroup_configuration` (`bool`): Set the `enforce_workgroup_configuration` field on the resulting object. When `null`, the `enforce_workgroup_configuration` field will be omitted from the resulting object.\n - `execution_role` (`string`): Set the `execution_role` field on the resulting object. When `null`, the `execution_role` field will be omitted from the resulting object.\n - `publish_cloudwatch_metrics_enabled` (`bool`): Set the `publish_cloudwatch_metrics_enabled` field on the resulting object. When `null`, the `publish_cloudwatch_metrics_enabled` field will be omitted from the resulting object.\n - `requester_pays_enabled` (`bool`): Set the `requester_pays_enabled` field on the resulting object. When `null`, the `requester_pays_enabled` field will be omitted from the resulting object.\n - `engine_version` (`list[obj]`): Set the `engine_version` field on the resulting object. When `null`, the `engine_version` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.athena_workgroup.configuration.engine_version.new](#fn-configurationengine_versionnew) constructor.\n - `result_configuration` (`list[obj]`): Set the `result_configuration` field on the resulting object. When `null`, the `result_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.athena_workgroup.configuration.result_configuration.new](#fn-configurationresult_configurationnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `configuration` sub block.\n', args=[]), new( bytes_scanned_cutoff_per_query=null, enforce_workgroup_configuration=null, engine_version=null, + execution_role=null, publish_cloudwatch_metrics_enabled=null, requester_pays_enabled=null, result_configuration=null @@ -23,6 +24,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); bytes_scanned_cutoff_per_query: bytes_scanned_cutoff_per_query, enforce_workgroup_configuration: enforce_workgroup_configuration, engine_version: engine_version, + execution_role: execution_role, publish_cloudwatch_metrics_enabled: publish_cloudwatch_metrics_enabled, requester_pays_enabled: requester_pays_enabled, result_configuration: result_configuration, diff --git a/4.x/_gen/resources/auditmanager_assessment.libsonnet b/4.x/_gen/resources/auditmanager_assessment.libsonnet new file mode 100644 index 00000000..720c1c2d --- /dev/null +++ b/4.x/_gen/resources/auditmanager_assessment.libsonnet @@ -0,0 +1,172 @@ +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='auditmanager_assessment', url='', help='`auditmanager_assessment` represents the `aws_auditmanager_assessment` Terraform resource.\n\n\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'), + assessment_reports_destination:: { + '#new':: d.fn(help='\n`aws.auditmanager_assessment.assessment_reports_destination.new` constructs a new object with attributes and blocks configured for the `assessment_reports_destination`\nTerraform sub block.\n\n\n\n**Args**:\n - `destination` (`string`): Set the `destination` field on the resulting object.\n - `destination_type` (`string`): Set the `destination_type` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `assessment_reports_destination` sub block.\n', args=[]), + new( + destination, + destination_type + ):: std.prune(a={ + destination: destination, + destination_type: destination_type, + }), + }, + '#new':: d.fn(help="\n`aws.auditmanager_assessment.new` injects a new `aws_auditmanager_assessment` 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.auditmanager_assessment.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.auditmanager_assessment` using the reference:\n\n $._ref.aws_auditmanager_assessment.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_auditmanager_assessment.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 - `description` (`string`): Set the `description` field on the resulting resource block. When `null`, the `description` field will be omitted from the resulting object.\n - `framework_id` (`string`): Set the `framework_id` field on the resulting resource block.\n - `name` (`string`): Set the `name` field on the resulting resource block.\n - `roles` (`list`): Set the `roles` field on the resulting resource block.\n - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `assessment_reports_destination` (`list[obj]`): Set the `assessment_reports_destination` field on the resulting resource block. When `null`, the `assessment_reports_destination` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.assessment_reports_destination.new](#fn-assessment_reports_destinationnew) constructor.\n - `scope` (`list[obj]`): Set the `scope` field on the resulting resource block. When `null`, the `scope` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.scope.new](#fn-scopenew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), + new( + resourceLabel, + framework_id, + name, + roles, + assessment_reports_destination=null, + description=null, + scope=null, + tags=null, + _meta={} + ):: tf.withResource( + type='aws_auditmanager_assessment', + label=resourceLabel, + attrs=self.newAttrs( + assessment_reports_destination=assessment_reports_destination, + description=description, + framework_id=framework_id, + name=name, + roles=roles, + scope=scope, + tags=tags + ), + _meta=_meta + ), + '#newAttrs':: d.fn(help='\n`aws.auditmanager_assessment.newAttrs` constructs a new object with attributes and blocks configured for the `auditmanager_assessment`\nTerraform resource.\n\nUnlike [aws.auditmanager_assessment.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 - `description` (`string`): Set the `description` field on the resulting object. When `null`, the `description` field will be omitted from the resulting object.\n - `framework_id` (`string`): Set the `framework_id` field on the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object.\n - `roles` (`list`): Set the `roles` 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 - `assessment_reports_destination` (`list[obj]`): Set the `assessment_reports_destination` field on the resulting object. When `null`, the `assessment_reports_destination` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.assessment_reports_destination.new](#fn-assessment_reports_destinationnew) constructor.\n - `scope` (`list[obj]`): Set the `scope` field on the resulting object. When `null`, the `scope` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.scope.new](#fn-scopenew) constructor.\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 `auditmanager_assessment` resource into the root Terraform configuration.\n', args=[]), + newAttrs( + framework_id, + name, + roles, + assessment_reports_destination=null, + description=null, + scope=null, + tags=null + ):: std.prune(a={ + assessment_reports_destination: assessment_reports_destination, + description: description, + framework_id: framework_id, + name: name, + roles: roles, + scope: scope, + tags: tags, + }), + scope:: { + aws_accounts:: { + '#new':: d.fn(help='\n`aws.auditmanager_assessment.scope.aws_accounts.new` constructs a new object with attributes and blocks configured for the `aws_accounts`\nTerraform sub block.\n\n\n\n**Returns**:\n - An attribute object that represents the `aws_accounts` sub block.\n', args=[]), + new( + + ):: std.prune(a={}), + }, + aws_services:: { + '#new':: d.fn(help='\n`aws.auditmanager_assessment.scope.aws_services.new` constructs a new object with attributes and blocks configured for the `aws_services`\nTerraform sub block.\n\n\n\n**Args**:\n - `service_name` (`string`): Set the `service_name` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `aws_services` sub block.\n', args=[]), + new( + service_name + ):: std.prune(a={ + service_name: service_name, + }), + }, + '#new':: d.fn(help='\n`aws.auditmanager_assessment.scope.new` constructs a new object with attributes and blocks configured for the `scope`\nTerraform sub block.\n\n\n\n**Args**:\n - `aws_accounts` (`list[obj]`): Set the `aws_accounts` field on the resulting object. When `null`, the `aws_accounts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.scope.aws_accounts.new](#fn-scopeaws_accountsnew) constructor.\n - `aws_services` (`list[obj]`): Set the `aws_services` field on the resulting object. When `null`, the `aws_services` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.scope.aws_services.new](#fn-scopeaws_servicesnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `scope` sub block.\n', args=[]), + new( + aws_accounts=null, + aws_services=null + ):: std.prune(a={ + aws_accounts: aws_accounts, + aws_services: aws_services, + }), + }, + '#withAssessmentReportsDestination':: d.fn(help='`aws.list[obj].withAssessmentReportsDestination` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the assessment_reports_destination 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].withAssessmentReportsDestinationMixin](TODO) function.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `assessment_reports_destination` field.\n', args=[]), + withAssessmentReportsDestination(resourceLabel, value): { + resource+: { + aws_auditmanager_assessment+: { + [resourceLabel]+: { + assessment_reports_destination: value, + }, + }, + }, + }, + '#withAssessmentReportsDestinationMixin':: d.fn(help='`aws.list[obj].withAssessmentReportsDestinationMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the assessment_reports_destination 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].withAssessmentReportsDestination](TODO)\nfunction.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `assessment_reports_destination` field.\n', args=[]), + withAssessmentReportsDestinationMixin(resourceLabel, value): { + resource+: { + aws_auditmanager_assessment+: { + [resourceLabel]+: { + assessment_reports_destination+: if std.isArray(v=value) then value else [value], + }, + }, + }, + }, + '#withDescription':: d.fn(help='`aws.string.withDescription` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the description 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 `description` field.\n', args=[]), + withDescription(resourceLabel, value): { + resource+: { + aws_auditmanager_assessment+: { + [resourceLabel]+: { + description: value, + }, + }, + }, + }, + '#withFrameworkId':: d.fn(help='`aws.string.withFrameworkId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the framework_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 `framework_id` field.\n', args=[]), + withFrameworkId(resourceLabel, value): { + resource+: { + aws_auditmanager_assessment+: { + [resourceLabel]+: { + framework_id: value, + }, + }, + }, + }, + '#withName':: d.fn(help='`aws.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+: { + aws_auditmanager_assessment+: { + [resourceLabel]+: { + name: value, + }, + }, + }, + }, + '#withRoles':: d.fn(help='`aws.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+: { + aws_auditmanager_assessment+: { + [resourceLabel]+: { + roles: value, + }, + }, + }, + }, + '#withScope':: d.fn(help='`aws.list[obj].withScope` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the scope 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].withScopeMixin](TODO) function.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `scope` field.\n', args=[]), + withScope(resourceLabel, value): { + resource+: { + aws_auditmanager_assessment+: { + [resourceLabel]+: { + scope: value, + }, + }, + }, + }, + '#withScopeMixin':: d.fn(help='`aws.list[obj].withScopeMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the scope 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].withScope](TODO)\nfunction.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `scope` field.\n', args=[]), + withScopeMixin(resourceLabel, value): { + resource+: { + aws_auditmanager_assessment+: { + [resourceLabel]+: { + scope+: if std.isArray(v=value) then value else [value], + }, + }, + }, + }, + '#withTags':: d.fn(help='`aws.obj.withTags` constructs a mixin object that can be merged into the `obj`\nTerraform resource block to set or update the tags field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `tags` field.\n', args=[]), + withTags(resourceLabel, value): { + resource+: { + aws_auditmanager_assessment+: { + [resourceLabel]+: { + tags: value, + }, + }, + }, + }, +} diff --git a/4.x/_gen/resources/auditmanager_assessment_report.libsonnet b/4.x/_gen/resources/auditmanager_assessment_report.libsonnet new file mode 100644 index 00000000..8b2c4032 --- /dev/null +++ b/4.x/_gen/resources/auditmanager_assessment_report.libsonnet @@ -0,0 +1,58 @@ +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='auditmanager_assessment_report', url='', help='`auditmanager_assessment_report` represents the `aws_auditmanager_assessment_report` 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.auditmanager_assessment_report.new` injects a new `aws_auditmanager_assessment_report` 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.auditmanager_assessment_report.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.auditmanager_assessment_report` using the reference:\n\n $._ref.aws_auditmanager_assessment_report.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_auditmanager_assessment_report.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 - `assessment_id` (`string`): Set the `assessment_id` field on the resulting resource block.\n - `description` (`string`): Set the `description` field on the resulting resource block. When `null`, the `description` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` 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, + assessment_id, + name, + description=null, + _meta={} + ):: tf.withResource( + type='aws_auditmanager_assessment_report', + label=resourceLabel, + attrs=self.newAttrs(assessment_id=assessment_id, description=description, name=name), + _meta=_meta + ), + '#newAttrs':: d.fn(help='\n`aws.auditmanager_assessment_report.newAttrs` constructs a new object with attributes and blocks configured for the `auditmanager_assessment_report`\nTerraform resource.\n\nUnlike [aws.auditmanager_assessment_report.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 - `assessment_id` (`string`): Set the `assessment_id` field on the resulting object.\n - `description` (`string`): Set the `description` field on the resulting object. When `null`, the `description` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` 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 `auditmanager_assessment_report` resource into the root Terraform configuration.\n', args=[]), + newAttrs( + assessment_id, + name, + description=null + ):: std.prune(a={ + assessment_id: assessment_id, + description: description, + name: name, + }), + '#withAssessmentId':: d.fn(help='`aws.string.withAssessmentId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the assessment_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 `assessment_id` field.\n', args=[]), + withAssessmentId(resourceLabel, value): { + resource+: { + aws_auditmanager_assessment_report+: { + [resourceLabel]+: { + assessment_id: value, + }, + }, + }, + }, + '#withDescription':: d.fn(help='`aws.string.withDescription` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the description 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 `description` field.\n', args=[]), + withDescription(resourceLabel, value): { + resource+: { + aws_auditmanager_assessment_report+: { + [resourceLabel]+: { + description: value, + }, + }, + }, + }, + '#withName':: d.fn(help='`aws.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+: { + aws_auditmanager_assessment_report+: { + [resourceLabel]+: { + name: value, + }, + }, + }, + }, +} diff --git a/4.x/_gen/resources/autoscaling_group.libsonnet b/4.x/_gen/resources/autoscaling_group.libsonnet index 1e37997c..ab07567a 100644 --- a/4.x/_gen/resources/autoscaling_group.libsonnet +++ b/4.x/_gen/resources/autoscaling_group.libsonnet @@ -264,7 +264,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); launch_template: launch_template, }), }, - '#new':: d.fn(help="\n`aws.autoscaling_group.new` injects a new `aws_autoscaling_group` 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.autoscaling_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.autoscaling_group` using the reference:\n\n $._ref.aws_autoscaling_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_autoscaling_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 - `resourceLabel` (`string`): The name label of the block.\n - `availability_zones` (`list`): Set the `availability_zones` field on the resulting resource block. When `null`, the `availability_zones` field will be omitted from the resulting object.\n - `capacity_rebalance` (`bool`): Set the `capacity_rebalance` field on the resulting resource block. When `null`, the `capacity_rebalance` field will be omitted from the resulting object.\n - `context` (`string`): Set the `context` field on the resulting resource block. When `null`, the `context` field will be omitted from the resulting object.\n - `default_cooldown` (`number`): Set the `default_cooldown` field on the resulting resource block. When `null`, the `default_cooldown` field will be omitted from the resulting object.\n - `default_instance_warmup` (`number`): Set the `default_instance_warmup` field on the resulting resource block. When `null`, the `default_instance_warmup` field will be omitted from the resulting object.\n - `desired_capacity` (`number`): Set the `desired_capacity` field on the resulting resource block. When `null`, the `desired_capacity` field will be omitted from the resulting object.\n - `enabled_metrics` (`list`): Set the `enabled_metrics` field on the resulting resource block. When `null`, the `enabled_metrics` field will be omitted from the resulting object.\n - `force_delete` (`bool`): Set the `force_delete` field on the resulting resource block. When `null`, the `force_delete` field will be omitted from the resulting object.\n - `force_delete_warm_pool` (`bool`): Set the `force_delete_warm_pool` field on the resulting resource block. When `null`, the `force_delete_warm_pool` field will be omitted from the resulting object.\n - `health_check_grace_period` (`number`): Set the `health_check_grace_period` field on the resulting resource block. When `null`, the `health_check_grace_period` field will be omitted from the resulting object.\n - `health_check_type` (`string`): Set the `health_check_type` field on the resulting resource block. When `null`, the `health_check_type` field will be omitted from the resulting object.\n - `launch_configuration` (`string`): Set the `launch_configuration` field on the resulting resource block. When `null`, the `launch_configuration` field will be omitted from the resulting object.\n - `load_balancers` (`list`): Set the `load_balancers` field on the resulting resource block. When `null`, the `load_balancers` field will be omitted from the resulting object.\n - `max_instance_lifetime` (`number`): Set the `max_instance_lifetime` field on the resulting resource block. When `null`, the `max_instance_lifetime` field will be omitted from the resulting object.\n - `max_size` (`number`): Set the `max_size` field on the resulting resource block.\n - `metrics_granularity` (`string`): Set the `metrics_granularity` field on the resulting resource block. When `null`, the `metrics_granularity` field will be omitted from the resulting object.\n - `min_elb_capacity` (`number`): Set the `min_elb_capacity` field on the resulting resource block. When `null`, the `min_elb_capacity` field will be omitted from the resulting object.\n - `min_size` (`number`): Set the `min_size` field on the resulting resource block.\n - `name` (`string`): Set the `name` field on the resulting resource block. When `null`, the `name` field will be omitted from the resulting object.\n - `name_prefix` (`string`): Set the `name_prefix` field on the resulting resource block. When `null`, the `name_prefix` field will be omitted from the resulting object.\n - `placement_group` (`string`): Set the `placement_group` field on the resulting resource block. When `null`, the `placement_group` field will be omitted from the resulting object.\n - `protect_from_scale_in` (`bool`): Set the `protect_from_scale_in` field on the resulting resource block. When `null`, the `protect_from_scale_in` field will be omitted from the resulting object.\n - `service_linked_role_arn` (`string`): Set the `service_linked_role_arn` field on the resulting resource block. When `null`, the `service_linked_role_arn` field will be omitted from the resulting object.\n - `suspended_processes` (`list`): Set the `suspended_processes` field on the resulting resource block. When `null`, the `suspended_processes` field will be omitted from the resulting object.\n - `tags` (`list`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `target_group_arns` (`list`): Set the `target_group_arns` field on the resulting resource block. When `null`, the `target_group_arns` field will be omitted from the resulting object.\n - `termination_policies` (`list`): Set the `termination_policies` field on the resulting resource block. When `null`, the `termination_policies` field will be omitted from the resulting object.\n - `vpc_zone_identifier` (`list`): Set the `vpc_zone_identifier` field on the resulting resource block. When `null`, the `vpc_zone_identifier` field will be omitted from the resulting object.\n - `wait_for_capacity_timeout` (`string`): Set the `wait_for_capacity_timeout` field on the resulting resource block. When `null`, the `wait_for_capacity_timeout` field will be omitted from the resulting object.\n - `wait_for_elb_capacity` (`number`): Set the `wait_for_elb_capacity` field on the resulting resource block. When `null`, the `wait_for_elb_capacity` field will be omitted from the resulting object.\n - `initial_lifecycle_hook` (`list[obj]`): Set the `initial_lifecycle_hook` field on the resulting resource block. When `null`, the `initial_lifecycle_hook` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.initial_lifecycle_hook.new](#fn-initial_lifecycle_hooknew) constructor.\n - `instance_refresh` (`list[obj]`): Set the `instance_refresh` field on the resulting resource block. When `null`, the `instance_refresh` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.instance_refresh.new](#fn-instance_refreshnew) constructor.\n - `launch_template` (`list[obj]`): Set the `launch_template` field on the resulting resource block. When `null`, the `launch_template` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.launch_template.new](#fn-launch_templatenew) constructor.\n - `mixed_instances_policy` (`list[obj]`): Set the `mixed_instances_policy` field on the resulting resource block. When `null`, the `mixed_instances_policy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.mixed_instances_policy.new](#fn-mixed_instances_policynew) constructor.\n - `tag` (`list[obj]`): Set the `tag` field on the resulting resource block. When `null`, the `tag` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.tag.new](#fn-tagnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting resource block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.timeouts.new](#fn-timeoutsnew) constructor.\n - `warm_pool` (`list[obj]`): Set the `warm_pool` field on the resulting resource block. When `null`, the `warm_pool` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.warm_pool.new](#fn-warm_poolnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), + '#new':: d.fn(help="\n`aws.autoscaling_group.new` injects a new `aws_autoscaling_group` 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.autoscaling_group.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.autoscaling_group` using the reference:\n\n $._ref.aws_autoscaling_group.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_autoscaling_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 - `resourceLabel` (`string`): The name label of the block.\n - `availability_zones` (`list`): Set the `availability_zones` field on the resulting resource block. When `null`, the `availability_zones` field will be omitted from the resulting object.\n - `capacity_rebalance` (`bool`): Set the `capacity_rebalance` field on the resulting resource block. When `null`, the `capacity_rebalance` field will be omitted from the resulting object.\n - `context` (`string`): Set the `context` field on the resulting resource block. When `null`, the `context` field will be omitted from the resulting object.\n - `default_cooldown` (`number`): Set the `default_cooldown` field on the resulting resource block. When `null`, the `default_cooldown` field will be omitted from the resulting object.\n - `default_instance_warmup` (`number`): Set the `default_instance_warmup` field on the resulting resource block. When `null`, the `default_instance_warmup` field will be omitted from the resulting object.\n - `desired_capacity` (`number`): Set the `desired_capacity` field on the resulting resource block. When `null`, the `desired_capacity` field will be omitted from the resulting object.\n - `desired_capacity_type` (`string`): Set the `desired_capacity_type` field on the resulting resource block. When `null`, the `desired_capacity_type` field will be omitted from the resulting object.\n - `enabled_metrics` (`list`): Set the `enabled_metrics` field on the resulting resource block. When `null`, the `enabled_metrics` field will be omitted from the resulting object.\n - `force_delete` (`bool`): Set the `force_delete` field on the resulting resource block. When `null`, the `force_delete` field will be omitted from the resulting object.\n - `force_delete_warm_pool` (`bool`): Set the `force_delete_warm_pool` field on the resulting resource block. When `null`, the `force_delete_warm_pool` field will be omitted from the resulting object.\n - `health_check_grace_period` (`number`): Set the `health_check_grace_period` field on the resulting resource block. When `null`, the `health_check_grace_period` field will be omitted from the resulting object.\n - `health_check_type` (`string`): Set the `health_check_type` field on the resulting resource block. When `null`, the `health_check_type` field will be omitted from the resulting object.\n - `launch_configuration` (`string`): Set the `launch_configuration` field on the resulting resource block. When `null`, the `launch_configuration` field will be omitted from the resulting object.\n - `load_balancers` (`list`): Set the `load_balancers` field on the resulting resource block. When `null`, the `load_balancers` field will be omitted from the resulting object.\n - `max_instance_lifetime` (`number`): Set the `max_instance_lifetime` field on the resulting resource block. When `null`, the `max_instance_lifetime` field will be omitted from the resulting object.\n - `max_size` (`number`): Set the `max_size` field on the resulting resource block.\n - `metrics_granularity` (`string`): Set the `metrics_granularity` field on the resulting resource block. When `null`, the `metrics_granularity` field will be omitted from the resulting object.\n - `min_elb_capacity` (`number`): Set the `min_elb_capacity` field on the resulting resource block. When `null`, the `min_elb_capacity` field will be omitted from the resulting object.\n - `min_size` (`number`): Set the `min_size` field on the resulting resource block.\n - `name` (`string`): Set the `name` field on the resulting resource block. When `null`, the `name` field will be omitted from the resulting object.\n - `name_prefix` (`string`): Set the `name_prefix` field on the resulting resource block. When `null`, the `name_prefix` field will be omitted from the resulting object.\n - `placement_group` (`string`): Set the `placement_group` field on the resulting resource block. When `null`, the `placement_group` field will be omitted from the resulting object.\n - `protect_from_scale_in` (`bool`): Set the `protect_from_scale_in` field on the resulting resource block. When `null`, the `protect_from_scale_in` field will be omitted from the resulting object.\n - `service_linked_role_arn` (`string`): Set the `service_linked_role_arn` field on the resulting resource block. When `null`, the `service_linked_role_arn` field will be omitted from the resulting object.\n - `suspended_processes` (`list`): Set the `suspended_processes` field on the resulting resource block. When `null`, the `suspended_processes` field will be omitted from the resulting object.\n - `tags` (`list`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `target_group_arns` (`list`): Set the `target_group_arns` field on the resulting resource block. When `null`, the `target_group_arns` field will be omitted from the resulting object.\n - `termination_policies` (`list`): Set the `termination_policies` field on the resulting resource block. When `null`, the `termination_policies` field will be omitted from the resulting object.\n - `vpc_zone_identifier` (`list`): Set the `vpc_zone_identifier` field on the resulting resource block. When `null`, the `vpc_zone_identifier` field will be omitted from the resulting object.\n - `wait_for_capacity_timeout` (`string`): Set the `wait_for_capacity_timeout` field on the resulting resource block. When `null`, the `wait_for_capacity_timeout` field will be omitted from the resulting object.\n - `wait_for_elb_capacity` (`number`): Set the `wait_for_elb_capacity` field on the resulting resource block. When `null`, the `wait_for_elb_capacity` field will be omitted from the resulting object.\n - `initial_lifecycle_hook` (`list[obj]`): Set the `initial_lifecycle_hook` field on the resulting resource block. When `null`, the `initial_lifecycle_hook` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.initial_lifecycle_hook.new](#fn-initial_lifecycle_hooknew) constructor.\n - `instance_refresh` (`list[obj]`): Set the `instance_refresh` field on the resulting resource block. When `null`, the `instance_refresh` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.instance_refresh.new](#fn-instance_refreshnew) constructor.\n - `launch_template` (`list[obj]`): Set the `launch_template` field on the resulting resource block. When `null`, the `launch_template` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.launch_template.new](#fn-launch_templatenew) constructor.\n - `mixed_instances_policy` (`list[obj]`): Set the `mixed_instances_policy` field on the resulting resource block. When `null`, the `mixed_instances_policy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.mixed_instances_policy.new](#fn-mixed_instances_policynew) constructor.\n - `tag` (`list[obj]`): Set the `tag` field on the resulting resource block. When `null`, the `tag` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.tag.new](#fn-tagnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting resource block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.timeouts.new](#fn-timeoutsnew) constructor.\n - `warm_pool` (`list[obj]`): Set the `warm_pool` field on the resulting resource block. When `null`, the `warm_pool` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.warm_pool.new](#fn-warm_poolnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), new( resourceLabel, max_size, @@ -275,6 +275,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); default_cooldown=null, default_instance_warmup=null, desired_capacity=null, + desired_capacity_type=null, enabled_metrics=null, force_delete=null, force_delete_warm_pool=null, @@ -315,6 +316,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); default_cooldown=default_cooldown, default_instance_warmup=default_instance_warmup, desired_capacity=desired_capacity, + desired_capacity_type=desired_capacity_type, enabled_metrics=enabled_metrics, force_delete=force_delete, force_delete_warm_pool=force_delete_warm_pool, @@ -349,7 +351,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); ), _meta=_meta ), - '#newAttrs':: d.fn(help='\n`aws.autoscaling_group.newAttrs` constructs a new object with attributes and blocks configured for the `autoscaling_group`\nTerraform resource.\n\nUnlike [aws.autoscaling_group.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 - `availability_zones` (`list`): Set the `availability_zones` field on the resulting object. When `null`, the `availability_zones` field will be omitted from the resulting object.\n - `capacity_rebalance` (`bool`): Set the `capacity_rebalance` field on the resulting object. When `null`, the `capacity_rebalance` field will be omitted from the resulting object.\n - `context` (`string`): Set the `context` field on the resulting object. When `null`, the `context` field will be omitted from the resulting object.\n - `default_cooldown` (`number`): Set the `default_cooldown` field on the resulting object. When `null`, the `default_cooldown` field will be omitted from the resulting object.\n - `default_instance_warmup` (`number`): Set the `default_instance_warmup` field on the resulting object. When `null`, the `default_instance_warmup` field will be omitted from the resulting object.\n - `desired_capacity` (`number`): Set the `desired_capacity` field on the resulting object. When `null`, the `desired_capacity` field will be omitted from the resulting object.\n - `enabled_metrics` (`list`): Set the `enabled_metrics` field on the resulting object. When `null`, the `enabled_metrics` field will be omitted from the resulting object.\n - `force_delete` (`bool`): Set the `force_delete` field on the resulting object. When `null`, the `force_delete` field will be omitted from the resulting object.\n - `force_delete_warm_pool` (`bool`): Set the `force_delete_warm_pool` field on the resulting object. When `null`, the `force_delete_warm_pool` field will be omitted from the resulting object.\n - `health_check_grace_period` (`number`): Set the `health_check_grace_period` field on the resulting object. When `null`, the `health_check_grace_period` field will be omitted from the resulting object.\n - `health_check_type` (`string`): Set the `health_check_type` field on the resulting object. When `null`, the `health_check_type` field will be omitted from the resulting object.\n - `launch_configuration` (`string`): Set the `launch_configuration` field on the resulting object. When `null`, the `launch_configuration` field will be omitted from the resulting object.\n - `load_balancers` (`list`): Set the `load_balancers` field on the resulting object. When `null`, the `load_balancers` field will be omitted from the resulting object.\n - `max_instance_lifetime` (`number`): Set the `max_instance_lifetime` field on the resulting object. When `null`, the `max_instance_lifetime` field will be omitted from the resulting object.\n - `max_size` (`number`): Set the `max_size` field on the resulting object.\n - `metrics_granularity` (`string`): Set the `metrics_granularity` field on the resulting object. When `null`, the `metrics_granularity` field will be omitted from the resulting object.\n - `min_elb_capacity` (`number`): Set the `min_elb_capacity` field on the resulting object. When `null`, the `min_elb_capacity` field will be omitted from the resulting object.\n - `min_size` (`number`): Set the `min_size` field on 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 - `name_prefix` (`string`): Set the `name_prefix` field on the resulting object. When `null`, the `name_prefix` field will be omitted from the resulting object.\n - `placement_group` (`string`): Set the `placement_group` field on the resulting object. When `null`, the `placement_group` field will be omitted from the resulting object.\n - `protect_from_scale_in` (`bool`): Set the `protect_from_scale_in` field on the resulting object. When `null`, the `protect_from_scale_in` field will be omitted from the resulting object.\n - `service_linked_role_arn` (`string`): Set the `service_linked_role_arn` field on the resulting object. When `null`, the `service_linked_role_arn` field will be omitted from the resulting object.\n - `suspended_processes` (`list`): Set the `suspended_processes` field on the resulting object. When `null`, the `suspended_processes` field will be omitted from the resulting object.\n - `tags` (`list`): Set the `tags` field on the resulting object. When `null`, the `tags` field will be omitted from the resulting object.\n - `target_group_arns` (`list`): Set the `target_group_arns` field on the resulting object. When `null`, the `target_group_arns` field will be omitted from the resulting object.\n - `termination_policies` (`list`): Set the `termination_policies` field on the resulting object. When `null`, the `termination_policies` field will be omitted from the resulting object.\n - `vpc_zone_identifier` (`list`): Set the `vpc_zone_identifier` field on the resulting object. When `null`, the `vpc_zone_identifier` field will be omitted from the resulting object.\n - `wait_for_capacity_timeout` (`string`): Set the `wait_for_capacity_timeout` field on the resulting object. When `null`, the `wait_for_capacity_timeout` field will be omitted from the resulting object.\n - `wait_for_elb_capacity` (`number`): Set the `wait_for_elb_capacity` field on the resulting object. When `null`, the `wait_for_elb_capacity` field will be omitted from the resulting object.\n - `initial_lifecycle_hook` (`list[obj]`): Set the `initial_lifecycle_hook` field on the resulting object. When `null`, the `initial_lifecycle_hook` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.initial_lifecycle_hook.new](#fn-initial_lifecycle_hooknew) constructor.\n - `instance_refresh` (`list[obj]`): Set the `instance_refresh` field on the resulting object. When `null`, the `instance_refresh` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.instance_refresh.new](#fn-instance_refreshnew) constructor.\n - `launch_template` (`list[obj]`): Set the `launch_template` field on the resulting object. When `null`, the `launch_template` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.launch_template.new](#fn-launch_templatenew) constructor.\n - `mixed_instances_policy` (`list[obj]`): Set the `mixed_instances_policy` field on the resulting object. When `null`, the `mixed_instances_policy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.mixed_instances_policy.new](#fn-mixed_instances_policynew) constructor.\n - `tag` (`list[obj]`): Set the `tag` field on the resulting object. When `null`, the `tag` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.tag.new](#fn-tagnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.timeouts.new](#fn-timeoutsnew) constructor.\n - `warm_pool` (`list[obj]`): Set the `warm_pool` field on the resulting object. When `null`, the `warm_pool` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.warm_pool.new](#fn-warm_poolnew) constructor.\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 `autoscaling_group` resource into the root Terraform configuration.\n', args=[]), + '#newAttrs':: d.fn(help='\n`aws.autoscaling_group.newAttrs` constructs a new object with attributes and blocks configured for the `autoscaling_group`\nTerraform resource.\n\nUnlike [aws.autoscaling_group.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 - `availability_zones` (`list`): Set the `availability_zones` field on the resulting object. When `null`, the `availability_zones` field will be omitted from the resulting object.\n - `capacity_rebalance` (`bool`): Set the `capacity_rebalance` field on the resulting object. When `null`, the `capacity_rebalance` field will be omitted from the resulting object.\n - `context` (`string`): Set the `context` field on the resulting object. When `null`, the `context` field will be omitted from the resulting object.\n - `default_cooldown` (`number`): Set the `default_cooldown` field on the resulting object. When `null`, the `default_cooldown` field will be omitted from the resulting object.\n - `default_instance_warmup` (`number`): Set the `default_instance_warmup` field on the resulting object. When `null`, the `default_instance_warmup` field will be omitted from the resulting object.\n - `desired_capacity` (`number`): Set the `desired_capacity` field on the resulting object. When `null`, the `desired_capacity` field will be omitted from the resulting object.\n - `desired_capacity_type` (`string`): Set the `desired_capacity_type` field on the resulting object. When `null`, the `desired_capacity_type` field will be omitted from the resulting object.\n - `enabled_metrics` (`list`): Set the `enabled_metrics` field on the resulting object. When `null`, the `enabled_metrics` field will be omitted from the resulting object.\n - `force_delete` (`bool`): Set the `force_delete` field on the resulting object. When `null`, the `force_delete` field will be omitted from the resulting object.\n - `force_delete_warm_pool` (`bool`): Set the `force_delete_warm_pool` field on the resulting object. When `null`, the `force_delete_warm_pool` field will be omitted from the resulting object.\n - `health_check_grace_period` (`number`): Set the `health_check_grace_period` field on the resulting object. When `null`, the `health_check_grace_period` field will be omitted from the resulting object.\n - `health_check_type` (`string`): Set the `health_check_type` field on the resulting object. When `null`, the `health_check_type` field will be omitted from the resulting object.\n - `launch_configuration` (`string`): Set the `launch_configuration` field on the resulting object. When `null`, the `launch_configuration` field will be omitted from the resulting object.\n - `load_balancers` (`list`): Set the `load_balancers` field on the resulting object. When `null`, the `load_balancers` field will be omitted from the resulting object.\n - `max_instance_lifetime` (`number`): Set the `max_instance_lifetime` field on the resulting object. When `null`, the `max_instance_lifetime` field will be omitted from the resulting object.\n - `max_size` (`number`): Set the `max_size` field on the resulting object.\n - `metrics_granularity` (`string`): Set the `metrics_granularity` field on the resulting object. When `null`, the `metrics_granularity` field will be omitted from the resulting object.\n - `min_elb_capacity` (`number`): Set the `min_elb_capacity` field on the resulting object. When `null`, the `min_elb_capacity` field will be omitted from the resulting object.\n - `min_size` (`number`): Set the `min_size` field on 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 - `name_prefix` (`string`): Set the `name_prefix` field on the resulting object. When `null`, the `name_prefix` field will be omitted from the resulting object.\n - `placement_group` (`string`): Set the `placement_group` field on the resulting object. When `null`, the `placement_group` field will be omitted from the resulting object.\n - `protect_from_scale_in` (`bool`): Set the `protect_from_scale_in` field on the resulting object. When `null`, the `protect_from_scale_in` field will be omitted from the resulting object.\n - `service_linked_role_arn` (`string`): Set the `service_linked_role_arn` field on the resulting object. When `null`, the `service_linked_role_arn` field will be omitted from the resulting object.\n - `suspended_processes` (`list`): Set the `suspended_processes` field on the resulting object. When `null`, the `suspended_processes` field will be omitted from the resulting object.\n - `tags` (`list`): Set the `tags` field on the resulting object. When `null`, the `tags` field will be omitted from the resulting object.\n - `target_group_arns` (`list`): Set the `target_group_arns` field on the resulting object. When `null`, the `target_group_arns` field will be omitted from the resulting object.\n - `termination_policies` (`list`): Set the `termination_policies` field on the resulting object. When `null`, the `termination_policies` field will be omitted from the resulting object.\n - `vpc_zone_identifier` (`list`): Set the `vpc_zone_identifier` field on the resulting object. When `null`, the `vpc_zone_identifier` field will be omitted from the resulting object.\n - `wait_for_capacity_timeout` (`string`): Set the `wait_for_capacity_timeout` field on the resulting object. When `null`, the `wait_for_capacity_timeout` field will be omitted from the resulting object.\n - `wait_for_elb_capacity` (`number`): Set the `wait_for_elb_capacity` field on the resulting object. When `null`, the `wait_for_elb_capacity` field will be omitted from the resulting object.\n - `initial_lifecycle_hook` (`list[obj]`): Set the `initial_lifecycle_hook` field on the resulting object. When `null`, the `initial_lifecycle_hook` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.initial_lifecycle_hook.new](#fn-initial_lifecycle_hooknew) constructor.\n - `instance_refresh` (`list[obj]`): Set the `instance_refresh` field on the resulting object. When `null`, the `instance_refresh` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.instance_refresh.new](#fn-instance_refreshnew) constructor.\n - `launch_template` (`list[obj]`): Set the `launch_template` field on the resulting object. When `null`, the `launch_template` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.launch_template.new](#fn-launch_templatenew) constructor.\n - `mixed_instances_policy` (`list[obj]`): Set the `mixed_instances_policy` field on the resulting object. When `null`, the `mixed_instances_policy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.mixed_instances_policy.new](#fn-mixed_instances_policynew) constructor.\n - `tag` (`list[obj]`): Set the `tag` field on the resulting object. When `null`, the `tag` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.tag.new](#fn-tagnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.timeouts.new](#fn-timeoutsnew) constructor.\n - `warm_pool` (`list[obj]`): Set the `warm_pool` field on the resulting object. When `null`, the `warm_pool` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.autoscaling_group.warm_pool.new](#fn-warm_poolnew) constructor.\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 `autoscaling_group` resource into the root Terraform configuration.\n', args=[]), newAttrs( max_size, min_size, @@ -359,6 +361,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); default_cooldown=null, default_instance_warmup=null, desired_capacity=null, + desired_capacity_type=null, enabled_metrics=null, force_delete=null, force_delete_warm_pool=null, @@ -395,6 +398,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); default_cooldown: default_cooldown, default_instance_warmup: default_instance_warmup, desired_capacity: desired_capacity, + desired_capacity_type: desired_capacity_type, enabled_metrics: enabled_metrics, force_delete: force_delete, force_delete_warm_pool: force_delete_warm_pool, @@ -531,6 +535,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); }, }, }, + '#withDesiredCapacityType':: d.fn(help='`aws.string.withDesiredCapacityType` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the desired_capacity_type 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 `desired_capacity_type` field.\n', args=[]), + withDesiredCapacityType(resourceLabel, value): { + resource+: { + aws_autoscaling_group+: { + [resourceLabel]+: { + desired_capacity_type: value, + }, + }, + }, + }, '#withEnabledMetrics':: d.fn(help='`aws.list.withEnabledMetrics` constructs a mixin object that can be merged into the `list`\nTerraform resource block to set or update the enabled_metrics 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 `enabled_metrics` field.\n', args=[]), withEnabledMetrics(resourceLabel, value): { resource+: { diff --git a/4.x/_gen/resources/dms_endpoint.libsonnet b/4.x/_gen/resources/dms_endpoint.libsonnet index 44e2aba6..e7e806a0 100644 --- a/4.x/_gen/resources/dms_endpoint.libsonnet +++ b/4.x/_gen/resources/dms_endpoint.libsonnet @@ -252,7 +252,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); }), }, s3_settings:: { - '#new':: d.fn(help='\n`aws.dms_endpoint.s3_settings.new` constructs a new object with attributes and blocks configured for the `s3_settings`\nTerraform sub block.\n\n\n\n**Args**:\n - `add_column_name` (`bool`): Set the `add_column_name` field on the resulting object. When `null`, the `add_column_name` field will be omitted from the resulting object.\n - `bucket_folder` (`string`): Set the `bucket_folder` field on the resulting object. When `null`, the `bucket_folder` field will be omitted from the resulting object.\n - `bucket_name` (`string`): Set the `bucket_name` field on the resulting object. When `null`, the `bucket_name` field will be omitted from the resulting object.\n - `canned_acl_for_objects` (`string`): Set the `canned_acl_for_objects` field on the resulting object. When `null`, the `canned_acl_for_objects` field will be omitted from the resulting object.\n - `cdc_inserts_and_updates` (`bool`): Set the `cdc_inserts_and_updates` field on the resulting object. When `null`, the `cdc_inserts_and_updates` field will be omitted from the resulting object.\n - `cdc_inserts_only` (`bool`): Set the `cdc_inserts_only` field on the resulting object. When `null`, the `cdc_inserts_only` field will be omitted from the resulting object.\n - `cdc_max_batch_interval` (`number`): Set the `cdc_max_batch_interval` field on the resulting object. When `null`, the `cdc_max_batch_interval` field will be omitted from the resulting object.\n - `cdc_min_file_size` (`number`): Set the `cdc_min_file_size` field on the resulting object. When `null`, the `cdc_min_file_size` field will be omitted from the resulting object.\n - `cdc_path` (`string`): Set the `cdc_path` field on the resulting object. When `null`, the `cdc_path` field will be omitted from the resulting object.\n - `compression_type` (`string`): Set the `compression_type` field on the resulting object. When `null`, the `compression_type` field will be omitted from the resulting object.\n - `csv_delimiter` (`string`): Set the `csv_delimiter` field on the resulting object. When `null`, the `csv_delimiter` field will be omitted from the resulting object.\n - `csv_no_sup_value` (`string`): Set the `csv_no_sup_value` field on the resulting object. When `null`, the `csv_no_sup_value` field will be omitted from the resulting object.\n - `csv_null_value` (`string`): Set the `csv_null_value` field on the resulting object. When `null`, the `csv_null_value` field will be omitted from the resulting object.\n - `csv_row_delimiter` (`string`): Set the `csv_row_delimiter` field on the resulting object. When `null`, the `csv_row_delimiter` field will be omitted from the resulting object.\n - `data_format` (`string`): Set the `data_format` field on the resulting object. When `null`, the `data_format` field will be omitted from the resulting object.\n - `data_page_size` (`number`): Set the `data_page_size` field on the resulting object. When `null`, the `data_page_size` field will be omitted from the resulting object.\n - `date_partition_delimiter` (`string`): Set the `date_partition_delimiter` field on the resulting object. When `null`, the `date_partition_delimiter` field will be omitted from the resulting object.\n - `date_partition_enabled` (`bool`): Set the `date_partition_enabled` field on the resulting object. When `null`, the `date_partition_enabled` field will be omitted from the resulting object.\n - `date_partition_sequence` (`string`): Set the `date_partition_sequence` field on the resulting object. When `null`, the `date_partition_sequence` field will be omitted from the resulting object.\n - `dict_page_size_limit` (`number`): Set the `dict_page_size_limit` field on the resulting object. When `null`, the `dict_page_size_limit` field will be omitted from the resulting object.\n - `enable_statistics` (`bool`): Set the `enable_statistics` field on the resulting object. When `null`, the `enable_statistics` field will be omitted from the resulting object.\n - `encoding_type` (`string`): Set the `encoding_type` field on the resulting object. When `null`, the `encoding_type` field will be omitted from the resulting object.\n - `encryption_mode` (`string`): Set the `encryption_mode` field on the resulting object. When `null`, the `encryption_mode` field will be omitted from the resulting object.\n - `external_table_definition` (`string`): Set the `external_table_definition` field on the resulting object. When `null`, the `external_table_definition` field will be omitted from the resulting object.\n - `ignore_headers_row` (`number`): Set the `ignore_headers_row` field on the resulting object. When `null`, the `ignore_headers_row` field will be omitted from the resulting object.\n - `include_op_for_full_load` (`bool`): Set the `include_op_for_full_load` field on the resulting object. When `null`, the `include_op_for_full_load` field will be omitted from the resulting object.\n - `max_file_size` (`number`): Set the `max_file_size` field on the resulting object. When `null`, the `max_file_size` field will be omitted from the resulting object.\n - `parquet_timestamp_in_millisecond` (`bool`): Set the `parquet_timestamp_in_millisecond` field on the resulting object. When `null`, the `parquet_timestamp_in_millisecond` field will be omitted from the resulting object.\n - `parquet_version` (`string`): Set the `parquet_version` field on the resulting object. When `null`, the `parquet_version` field will be omitted from the resulting object.\n - `preserve_transactions` (`bool`): Set the `preserve_transactions` field on the resulting object. When `null`, the `preserve_transactions` field will be omitted from the resulting object.\n - `rfc_4180` (`bool`): Set the `rfc_4180` field on the resulting object. When `null`, the `rfc_4180` field will be omitted from the resulting object.\n - `row_group_length` (`number`): Set the `row_group_length` field on the resulting object. When `null`, the `row_group_length` field will be omitted from the resulting object.\n - `server_side_encryption_kms_key_id` (`string`): Set the `server_side_encryption_kms_key_id` field on the resulting object. When `null`, the `server_side_encryption_kms_key_id` field will be omitted from the resulting object.\n - `service_access_role_arn` (`string`): Set the `service_access_role_arn` field on the resulting object. When `null`, the `service_access_role_arn` field will be omitted from the resulting object.\n - `timestamp_column_name` (`string`): Set the `timestamp_column_name` field on the resulting object. When `null`, the `timestamp_column_name` field will be omitted from the resulting object.\n - `use_csv_no_sup_value` (`bool`): Set the `use_csv_no_sup_value` field on the resulting object. When `null`, the `use_csv_no_sup_value` field will be omitted from the resulting object.\n - `use_task_start_time_for_full_load_timestamp` (`bool`): Set the `use_task_start_time_for_full_load_timestamp` field on the resulting object. When `null`, the `use_task_start_time_for_full_load_timestamp` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `s3_settings` sub block.\n', args=[]), + '#new':: d.fn(help='\n`aws.dms_endpoint.s3_settings.new` constructs a new object with attributes and blocks configured for the `s3_settings`\nTerraform sub block.\n\n\n\n**Args**:\n - `add_column_name` (`bool`): Set the `add_column_name` field on the resulting object. When `null`, the `add_column_name` field will be omitted from the resulting object.\n - `bucket_folder` (`string`): Set the `bucket_folder` field on the resulting object. When `null`, the `bucket_folder` field will be omitted from the resulting object.\n - `bucket_name` (`string`): Set the `bucket_name` field on the resulting object. When `null`, the `bucket_name` field will be omitted from the resulting object.\n - `canned_acl_for_objects` (`string`): Set the `canned_acl_for_objects` field on the resulting object. When `null`, the `canned_acl_for_objects` field will be omitted from the resulting object.\n - `cdc_inserts_and_updates` (`bool`): Set the `cdc_inserts_and_updates` field on the resulting object. When `null`, the `cdc_inserts_and_updates` field will be omitted from the resulting object.\n - `cdc_inserts_only` (`bool`): Set the `cdc_inserts_only` field on the resulting object. When `null`, the `cdc_inserts_only` field will be omitted from the resulting object.\n - `cdc_max_batch_interval` (`number`): Set the `cdc_max_batch_interval` field on the resulting object. When `null`, the `cdc_max_batch_interval` field will be omitted from the resulting object.\n - `cdc_min_file_size` (`number`): Set the `cdc_min_file_size` field on the resulting object. When `null`, the `cdc_min_file_size` field will be omitted from the resulting object.\n - `cdc_path` (`string`): Set the `cdc_path` field on the resulting object. When `null`, the `cdc_path` field will be omitted from the resulting object.\n - `compression_type` (`string`): Set the `compression_type` field on the resulting object. When `null`, the `compression_type` field will be omitted from the resulting object.\n - `csv_delimiter` (`string`): Set the `csv_delimiter` field on the resulting object. When `null`, the `csv_delimiter` field will be omitted from the resulting object.\n - `csv_no_sup_value` (`string`): Set the `csv_no_sup_value` field on the resulting object. When `null`, the `csv_no_sup_value` field will be omitted from the resulting object.\n - `csv_null_value` (`string`): Set the `csv_null_value` field on the resulting object. When `null`, the `csv_null_value` field will be omitted from the resulting object.\n - `csv_row_delimiter` (`string`): Set the `csv_row_delimiter` field on the resulting object. When `null`, the `csv_row_delimiter` field will be omitted from the resulting object.\n - `data_format` (`string`): Set the `data_format` field on the resulting object. When `null`, the `data_format` field will be omitted from the resulting object.\n - `data_page_size` (`number`): Set the `data_page_size` field on the resulting object. When `null`, the `data_page_size` field will be omitted from the resulting object.\n - `date_partition_delimiter` (`string`): Set the `date_partition_delimiter` field on the resulting object. When `null`, the `date_partition_delimiter` field will be omitted from the resulting object.\n - `date_partition_enabled` (`bool`): Set the `date_partition_enabled` field on the resulting object. When `null`, the `date_partition_enabled` field will be omitted from the resulting object.\n - `date_partition_sequence` (`string`): Set the `date_partition_sequence` field on the resulting object. When `null`, the `date_partition_sequence` field will be omitted from the resulting object.\n - `dict_page_size_limit` (`number`): Set the `dict_page_size_limit` field on the resulting object. When `null`, the `dict_page_size_limit` field will be omitted from the resulting object.\n - `enable_statistics` (`bool`): Set the `enable_statistics` field on the resulting object. When `null`, the `enable_statistics` field will be omitted from the resulting object.\n - `encoding_type` (`string`): Set the `encoding_type` field on the resulting object. When `null`, the `encoding_type` field will be omitted from the resulting object.\n - `encryption_mode` (`string`): Set the `encryption_mode` field on the resulting object. When `null`, the `encryption_mode` field will be omitted from the resulting object.\n - `external_table_definition` (`string`): Set the `external_table_definition` field on the resulting object. When `null`, the `external_table_definition` field will be omitted from the resulting object.\n - `ignore_header_rows` (`number`): Set the `ignore_header_rows` field on the resulting object. When `null`, the `ignore_header_rows` field will be omitted from the resulting object.\n - `ignore_headers_row` (`number`): This setting has no effect, is deprecated, and will be removed in a future version When `null`, the `ignore_headers_row` field will be omitted from the resulting object.\n - `include_op_for_full_load` (`bool`): Set the `include_op_for_full_load` field on the resulting object. When `null`, the `include_op_for_full_load` field will be omitted from the resulting object.\n - `max_file_size` (`number`): Set the `max_file_size` field on the resulting object. When `null`, the `max_file_size` field will be omitted from the resulting object.\n - `parquet_timestamp_in_millisecond` (`bool`): Set the `parquet_timestamp_in_millisecond` field on the resulting object. When `null`, the `parquet_timestamp_in_millisecond` field will be omitted from the resulting object.\n - `parquet_version` (`string`): Set the `parquet_version` field on the resulting object. When `null`, the `parquet_version` field will be omitted from the resulting object.\n - `preserve_transactions` (`bool`): Set the `preserve_transactions` field on the resulting object. When `null`, the `preserve_transactions` field will be omitted from the resulting object.\n - `rfc_4180` (`bool`): Set the `rfc_4180` field on the resulting object. When `null`, the `rfc_4180` field will be omitted from the resulting object.\n - `row_group_length` (`number`): Set the `row_group_length` field on the resulting object. When `null`, the `row_group_length` field will be omitted from the resulting object.\n - `server_side_encryption_kms_key_id` (`string`): Set the `server_side_encryption_kms_key_id` field on the resulting object. When `null`, the `server_side_encryption_kms_key_id` field will be omitted from the resulting object.\n - `service_access_role_arn` (`string`): Set the `service_access_role_arn` field on the resulting object. When `null`, the `service_access_role_arn` field will be omitted from the resulting object.\n - `timestamp_column_name` (`string`): Set the `timestamp_column_name` field on the resulting object. When `null`, the `timestamp_column_name` field will be omitted from the resulting object.\n - `use_csv_no_sup_value` (`bool`): Set the `use_csv_no_sup_value` field on the resulting object. When `null`, the `use_csv_no_sup_value` field will be omitted from the resulting object.\n - `use_task_start_time_for_full_load_timestamp` (`bool`): Set the `use_task_start_time_for_full_load_timestamp` field on the resulting object. When `null`, the `use_task_start_time_for_full_load_timestamp` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `s3_settings` sub block.\n', args=[]), new( add_column_name=null, bucket_folder=null, @@ -278,6 +278,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); encoding_type=null, encryption_mode=null, external_table_definition=null, + ignore_header_rows=null, ignore_headers_row=null, include_op_for_full_load=null, max_file_size=null, @@ -316,6 +317,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); encoding_type: encoding_type, encryption_mode: encryption_mode, external_table_definition: external_table_definition, + ignore_header_rows: ignore_header_rows, ignore_headers_row: ignore_headers_row, include_op_for_full_load: include_op_for_full_load, max_file_size: max_file_size, diff --git a/4.x/_gen/resources/ec2_instance_state.libsonnet b/4.x/_gen/resources/ec2_instance_state.libsonnet new file mode 100644 index 00000000..45577be2 --- /dev/null +++ b/4.x/_gen/resources/ec2_instance_state.libsonnet @@ -0,0 +1,98 @@ +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='ec2_instance_state', url='', help='`ec2_instance_state` represents the `aws_ec2_instance_state` 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.ec2_instance_state.new` injects a new `aws_ec2_instance_state` 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.ec2_instance_state.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.ec2_instance_state` using the reference:\n\n $._ref.aws_ec2_instance_state.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_ec2_instance_state.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 - `force` (`bool`): Set the `force` field on the resulting resource block. When `null`, the `force` field will be omitted from the resulting object.\n - `instance_id` (`string`): Set the `instance_id` field on the resulting resource block.\n - `state` (`string`): Set the `state` field on the resulting resource block.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting resource block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ec2_instance_state.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), + new( + resourceLabel, + instance_id, + state, + force=null, + timeouts=null, + _meta={} + ):: tf.withResource( + type='aws_ec2_instance_state', + label=resourceLabel, + attrs=self.newAttrs( + force=force, + instance_id=instance_id, + state=state, + timeouts=timeouts + ), + _meta=_meta + ), + '#newAttrs':: d.fn(help='\n`aws.ec2_instance_state.newAttrs` constructs a new object with attributes and blocks configured for the `ec2_instance_state`\nTerraform resource.\n\nUnlike [aws.ec2_instance_state.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 - `force` (`bool`): Set the `force` field on the resulting object. When `null`, the `force` field will be omitted from the resulting object.\n - `instance_id` (`string`): Set the `instance_id` field on the resulting object.\n - `state` (`string`): Set the `state` field on the resulting object.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ec2_instance_state.timeouts.new](#fn-timeoutsnew) constructor.\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 `ec2_instance_state` resource into the root Terraform configuration.\n', args=[]), + newAttrs( + instance_id, + state, + force=null, + timeouts=null + ):: std.prune(a={ + force: force, + instance_id: instance_id, + state: state, + timeouts: timeouts, + }), + timeouts:: { + '#new':: d.fn(help='\n`aws.ec2_instance_state.timeouts.new` constructs a new object with attributes and blocks configured for the `timeouts`\nTerraform sub block.\n\n\n\n**Args**:\n - `create` (`string`): Set the `create` field on the resulting object. When `null`, the `create` field will be omitted from the resulting object.\n - `delete` (`string`): Set the `delete` field on the resulting object. When `null`, the `delete` field will be omitted from the resulting object.\n - `update` (`string`): Set the `update` field on the resulting object. When `null`, the `update` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `timeouts` sub block.\n', args=[]), + new( + create=null, + delete=null, + update=null + ):: std.prune(a={ + create: create, + delete: delete, + update: update, + }), + }, + '#withForce':: d.fn(help='`aws.bool.withForce` constructs a mixin object that can be merged into the `bool`\nTerraform resource block to set or update the force field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`bool`): The value to set for the `force` field.\n', args=[]), + withForce(resourceLabel, value): { + resource+: { + aws_ec2_instance_state+: { + [resourceLabel]+: { + force: value, + }, + }, + }, + }, + '#withInstanceId':: d.fn(help='`aws.string.withInstanceId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the instance_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 `instance_id` field.\n', args=[]), + withInstanceId(resourceLabel, value): { + resource+: { + aws_ec2_instance_state+: { + [resourceLabel]+: { + instance_id: value, + }, + }, + }, + }, + '#withState':: d.fn(help='`aws.string.withState` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the state 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 `state` field.\n', args=[]), + withState(resourceLabel, value): { + resource+: { + aws_ec2_instance_state+: { + [resourceLabel]+: { + state: value, + }, + }, + }, + }, + '#withTimeouts':: d.fn(help='`aws.obj.withTimeouts` constructs a mixin object that can be merged into the `obj`\nTerraform resource block to set or update the timeouts field.\n\nThis function will replace the map with the passed in `value`. If you wish to instead merge the\npassed in value to the existing map, use the [aws.obj.withTimeoutsMixin](TODO) function.\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `timeouts` field.\n', args=[]), + withTimeouts(resourceLabel, value): { + resource+: { + aws_ec2_instance_state+: { + [resourceLabel]+: { + timeouts: value, + }, + }, + }, + }, + '#withTimeoutsMixin':: d.fn(help='`aws.obj.withTimeoutsMixin` constructs a mixin object that can be merged into the `obj`\nTerraform resource block to set or update the timeouts field.\n\nThis function will merge the passed in value to the existing map. If you wish\nto instead replace the entire map with the passed in `value`, use the [aws.obj.withTimeouts](TODO)\nfunction.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `timeouts` field.\n', args=[]), + withTimeoutsMixin(resourceLabel, value): { + resource+: { + aws_ec2_instance_state+: { + [resourceLabel]+: { + timeouts+: value, + }, + }, + }, + }, +} diff --git a/4.x/_gen/resources/ecs_service.libsonnet b/4.x/_gen/resources/ecs_service.libsonnet index dc15b6f5..e7970158 100644 --- a/4.x/_gen/resources/ecs_service.libsonnet +++ b/4.x/_gen/resources/ecs_service.libsonnet @@ -2,6 +2,18 @@ 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='ecs_service', url='', help='`ecs_service` represents the `aws_ecs_service` Terraform resource.\n\n\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'), + alarms:: { + '#new':: d.fn(help='\n`aws.ecs_service.alarms.new` constructs a new object with attributes and blocks configured for the `alarms`\nTerraform sub block.\n\n\n\n**Args**:\n - `alarm_names` (`list`): Set the `alarm_names` field on the resulting object.\n - `enable` (`bool`): Set the `enable` field on the resulting object.\n - `rollback` (`bool`): Set the `rollback` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `alarms` sub block.\n', args=[]), + new( + alarm_names, + enable, + rollback + ):: std.prune(a={ + alarm_names: alarm_names, + enable: enable, + rollback: rollback, + }), + }, capacity_provider_strategy:: { '#new':: d.fn(help='\n`aws.ecs_service.capacity_provider_strategy.new` constructs a new object with attributes and blocks configured for the `capacity_provider_strategy`\nTerraform sub block.\n\n\n\n**Args**:\n - `base` (`number`): Set the `base` field on the resulting object. When `null`, the `base` field will be omitted from the resulting object.\n - `capacity_provider` (`string`): Set the `capacity_provider` field on the resulting object.\n - `weight` (`number`): Set the `weight` field on the resulting object. When `null`, the `weight` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `capacity_provider_strategy` sub block.\n', args=[]), new( @@ -58,10 +70,11 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); subnets: subnets, }), }, - '#new':: d.fn(help="\n`aws.ecs_service.new` injects a new `aws_ecs_service` 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.ecs_service.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.ecs_service` using the reference:\n\n $._ref.aws_ecs_service.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_ecs_service.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 - `cluster` (`string`): Set the `cluster` field on the resulting resource block. When `null`, the `cluster` field will be omitted from the resulting object.\n - `deployment_maximum_percent` (`number`): Set the `deployment_maximum_percent` field on the resulting resource block. When `null`, the `deployment_maximum_percent` field will be omitted from the resulting object.\n - `deployment_minimum_healthy_percent` (`number`): Set the `deployment_minimum_healthy_percent` field on the resulting resource block. When `null`, the `deployment_minimum_healthy_percent` field will be omitted from the resulting object.\n - `desired_count` (`number`): Set the `desired_count` field on the resulting resource block. When `null`, the `desired_count` field will be omitted from the resulting object.\n - `enable_ecs_managed_tags` (`bool`): Set the `enable_ecs_managed_tags` field on the resulting resource block. When `null`, the `enable_ecs_managed_tags` field will be omitted from the resulting object.\n - `enable_execute_command` (`bool`): Set the `enable_execute_command` field on the resulting resource block. When `null`, the `enable_execute_command` field will be omitted from the resulting object.\n - `force_new_deployment` (`bool`): Set the `force_new_deployment` field on the resulting resource block. When `null`, the `force_new_deployment` field will be omitted from the resulting object.\n - `health_check_grace_period_seconds` (`number`): Set the `health_check_grace_period_seconds` field on the resulting resource block. When `null`, the `health_check_grace_period_seconds` field will be omitted from the resulting object.\n - `iam_role` (`string`): Set the `iam_role` field on the resulting resource block. When `null`, the `iam_role` field will be omitted from the resulting object.\n - `launch_type` (`string`): Set the `launch_type` field on the resulting resource block. When `null`, the `launch_type` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting resource block.\n - `platform_version` (`string`): Set the `platform_version` field on the resulting resource block. When `null`, the `platform_version` field will be omitted from the resulting object.\n - `propagate_tags` (`string`): Set the `propagate_tags` field on the resulting resource block. When `null`, the `propagate_tags` field will be omitted from the resulting object.\n - `scheduling_strategy` (`string`): Set the `scheduling_strategy` field on the resulting resource block. When `null`, the `scheduling_strategy` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `tags_all` (`obj`): Set the `tags_all` field on the resulting resource block. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `task_definition` (`string`): Set the `task_definition` field on the resulting resource block. When `null`, the `task_definition` field will be omitted from the resulting object.\n - `triggers` (`obj`): Set the `triggers` field on the resulting resource block. When `null`, the `triggers` field will be omitted from the resulting object.\n - `wait_for_steady_state` (`bool`): Set the `wait_for_steady_state` field on the resulting resource block. When `null`, the `wait_for_steady_state` field will be omitted from the resulting object.\n - `capacity_provider_strategy` (`list[obj]`): Set the `capacity_provider_strategy` field on the resulting resource block. When `null`, the `capacity_provider_strategy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.capacity_provider_strategy.new](#fn-capacity_provider_strategynew) constructor.\n - `deployment_circuit_breaker` (`list[obj]`): Set the `deployment_circuit_breaker` field on the resulting resource block. When `null`, the `deployment_circuit_breaker` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_circuit_breaker.new](#fn-deployment_circuit_breakernew) constructor.\n - `deployment_controller` (`list[obj]`): Set the `deployment_controller` field on the resulting resource block. When `null`, the `deployment_controller` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_controller.new](#fn-deployment_controllernew) constructor.\n - `load_balancer` (`list[obj]`): Set the `load_balancer` field on the resulting resource block. When `null`, the `load_balancer` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.load_balancer.new](#fn-load_balancernew) constructor.\n - `network_configuration` (`list[obj]`): Set the `network_configuration` field on the resulting resource block. When `null`, the `network_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.network_configuration.new](#fn-network_configurationnew) constructor.\n - `ordered_placement_strategy` (`list[obj]`): Set the `ordered_placement_strategy` field on the resulting resource block. When `null`, the `ordered_placement_strategy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.ordered_placement_strategy.new](#fn-ordered_placement_strategynew) constructor.\n - `placement_constraints` (`list[obj]`): Set the `placement_constraints` field on the resulting resource block. When `null`, the `placement_constraints` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.placement_constraints.new](#fn-placement_constraintsnew) constructor.\n - `service_connect_configuration` (`list[obj]`): Set the `service_connect_configuration` field on the resulting resource block. When `null`, the `service_connect_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.service_connect_configuration.new](#fn-service_connect_configurationnew) constructor.\n - `service_registries` (`list[obj]`): Set the `service_registries` field on the resulting resource block. When `null`, the `service_registries` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.service_registries.new](#fn-service_registriesnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting resource block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), + '#new':: d.fn(help="\n`aws.ecs_service.new` injects a new `aws_ecs_service` 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.ecs_service.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.ecs_service` using the reference:\n\n $._ref.aws_ecs_service.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_ecs_service.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 - `cluster` (`string`): Set the `cluster` field on the resulting resource block. When `null`, the `cluster` field will be omitted from the resulting object.\n - `deployment_maximum_percent` (`number`): Set the `deployment_maximum_percent` field on the resulting resource block. When `null`, the `deployment_maximum_percent` field will be omitted from the resulting object.\n - `deployment_minimum_healthy_percent` (`number`): Set the `deployment_minimum_healthy_percent` field on the resulting resource block. When `null`, the `deployment_minimum_healthy_percent` field will be omitted from the resulting object.\n - `desired_count` (`number`): Set the `desired_count` field on the resulting resource block. When `null`, the `desired_count` field will be omitted from the resulting object.\n - `enable_ecs_managed_tags` (`bool`): Set the `enable_ecs_managed_tags` field on the resulting resource block. When `null`, the `enable_ecs_managed_tags` field will be omitted from the resulting object.\n - `enable_execute_command` (`bool`): Set the `enable_execute_command` field on the resulting resource block. When `null`, the `enable_execute_command` field will be omitted from the resulting object.\n - `force_new_deployment` (`bool`): Set the `force_new_deployment` field on the resulting resource block. When `null`, the `force_new_deployment` field will be omitted from the resulting object.\n - `health_check_grace_period_seconds` (`number`): Set the `health_check_grace_period_seconds` field on the resulting resource block. When `null`, the `health_check_grace_period_seconds` field will be omitted from the resulting object.\n - `iam_role` (`string`): Set the `iam_role` field on the resulting resource block. When `null`, the `iam_role` field will be omitted from the resulting object.\n - `launch_type` (`string`): Set the `launch_type` field on the resulting resource block. When `null`, the `launch_type` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting resource block.\n - `platform_version` (`string`): Set the `platform_version` field on the resulting resource block. When `null`, the `platform_version` field will be omitted from the resulting object.\n - `propagate_tags` (`string`): Set the `propagate_tags` field on the resulting resource block. When `null`, the `propagate_tags` field will be omitted from the resulting object.\n - `scheduling_strategy` (`string`): Set the `scheduling_strategy` field on the resulting resource block. When `null`, the `scheduling_strategy` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `tags_all` (`obj`): Set the `tags_all` field on the resulting resource block. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `task_definition` (`string`): Set the `task_definition` field on the resulting resource block. When `null`, the `task_definition` field will be omitted from the resulting object.\n - `triggers` (`obj`): Set the `triggers` field on the resulting resource block. When `null`, the `triggers` field will be omitted from the resulting object.\n - `wait_for_steady_state` (`bool`): Set the `wait_for_steady_state` field on the resulting resource block. When `null`, the `wait_for_steady_state` field will be omitted from the resulting object.\n - `alarms` (`list[obj]`): Set the `alarms` field on the resulting resource block. When `null`, the `alarms` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.alarms.new](#fn-alarmsnew) constructor.\n - `capacity_provider_strategy` (`list[obj]`): Set the `capacity_provider_strategy` field on the resulting resource block. When `null`, the `capacity_provider_strategy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.capacity_provider_strategy.new](#fn-capacity_provider_strategynew) constructor.\n - `deployment_circuit_breaker` (`list[obj]`): Set the `deployment_circuit_breaker` field on the resulting resource block. When `null`, the `deployment_circuit_breaker` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_circuit_breaker.new](#fn-deployment_circuit_breakernew) constructor.\n - `deployment_controller` (`list[obj]`): Set the `deployment_controller` field on the resulting resource block. When `null`, the `deployment_controller` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_controller.new](#fn-deployment_controllernew) constructor.\n - `load_balancer` (`list[obj]`): Set the `load_balancer` field on the resulting resource block. When `null`, the `load_balancer` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.load_balancer.new](#fn-load_balancernew) constructor.\n - `network_configuration` (`list[obj]`): Set the `network_configuration` field on the resulting resource block. When `null`, the `network_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.network_configuration.new](#fn-network_configurationnew) constructor.\n - `ordered_placement_strategy` (`list[obj]`): Set the `ordered_placement_strategy` field on the resulting resource block. When `null`, the `ordered_placement_strategy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.ordered_placement_strategy.new](#fn-ordered_placement_strategynew) constructor.\n - `placement_constraints` (`list[obj]`): Set the `placement_constraints` field on the resulting resource block. When `null`, the `placement_constraints` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.placement_constraints.new](#fn-placement_constraintsnew) constructor.\n - `service_connect_configuration` (`list[obj]`): Set the `service_connect_configuration` field on the resulting resource block. When `null`, the `service_connect_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.service_connect_configuration.new](#fn-service_connect_configurationnew) constructor.\n - `service_registries` (`list[obj]`): Set the `service_registries` field on the resulting resource block. When `null`, the `service_registries` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.service_registries.new](#fn-service_registriesnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting resource block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.timeouts.new](#fn-timeoutsnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), new( resourceLabel, name, + alarms=null, capacity_provider_strategy=null, cluster=null, deployment_circuit_breaker=null, @@ -95,6 +108,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); type='aws_ecs_service', label=resourceLabel, attrs=self.newAttrs( + alarms=alarms, capacity_provider_strategy=capacity_provider_strategy, cluster=cluster, deployment_circuit_breaker=deployment_circuit_breaker, @@ -127,9 +141,10 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); ), _meta=_meta ), - '#newAttrs':: d.fn(help='\n`aws.ecs_service.newAttrs` constructs a new object with attributes and blocks configured for the `ecs_service`\nTerraform resource.\n\nUnlike [aws.ecs_service.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 - `cluster` (`string`): Set the `cluster` field on the resulting object. When `null`, the `cluster` field will be omitted from the resulting object.\n - `deployment_maximum_percent` (`number`): Set the `deployment_maximum_percent` field on the resulting object. When `null`, the `deployment_maximum_percent` field will be omitted from the resulting object.\n - `deployment_minimum_healthy_percent` (`number`): Set the `deployment_minimum_healthy_percent` field on the resulting object. When `null`, the `deployment_minimum_healthy_percent` field will be omitted from the resulting object.\n - `desired_count` (`number`): Set the `desired_count` field on the resulting object. When `null`, the `desired_count` field will be omitted from the resulting object.\n - `enable_ecs_managed_tags` (`bool`): Set the `enable_ecs_managed_tags` field on the resulting object. When `null`, the `enable_ecs_managed_tags` field will be omitted from the resulting object.\n - `enable_execute_command` (`bool`): Set the `enable_execute_command` field on the resulting object. When `null`, the `enable_execute_command` field will be omitted from the resulting object.\n - `force_new_deployment` (`bool`): Set the `force_new_deployment` field on the resulting object. When `null`, the `force_new_deployment` field will be omitted from the resulting object.\n - `health_check_grace_period_seconds` (`number`): Set the `health_check_grace_period_seconds` field on the resulting object. When `null`, the `health_check_grace_period_seconds` field will be omitted from the resulting object.\n - `iam_role` (`string`): Set the `iam_role` field on the resulting object. When `null`, the `iam_role` field will be omitted from the resulting object.\n - `launch_type` (`string`): Set the `launch_type` field on the resulting object. When `null`, the `launch_type` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object.\n - `platform_version` (`string`): Set the `platform_version` field on the resulting object. When `null`, the `platform_version` field will be omitted from the resulting object.\n - `propagate_tags` (`string`): Set the `propagate_tags` field on the resulting object. When `null`, the `propagate_tags` field will be omitted from the resulting object.\n - `scheduling_strategy` (`string`): Set the `scheduling_strategy` field on the resulting object. When `null`, the `scheduling_strategy` field will be omitted from 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 - `tags_all` (`obj`): Set the `tags_all` field on the resulting object. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `task_definition` (`string`): Set the `task_definition` field on the resulting object. When `null`, the `task_definition` field will be omitted from the resulting object.\n - `triggers` (`obj`): Set the `triggers` field on the resulting object. When `null`, the `triggers` field will be omitted from the resulting object.\n - `wait_for_steady_state` (`bool`): Set the `wait_for_steady_state` field on the resulting object. When `null`, the `wait_for_steady_state` field will be omitted from the resulting object.\n - `capacity_provider_strategy` (`list[obj]`): Set the `capacity_provider_strategy` field on the resulting object. When `null`, the `capacity_provider_strategy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.capacity_provider_strategy.new](#fn-capacity_provider_strategynew) constructor.\n - `deployment_circuit_breaker` (`list[obj]`): Set the `deployment_circuit_breaker` field on the resulting object. When `null`, the `deployment_circuit_breaker` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_circuit_breaker.new](#fn-deployment_circuit_breakernew) constructor.\n - `deployment_controller` (`list[obj]`): Set the `deployment_controller` field on the resulting object. When `null`, the `deployment_controller` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_controller.new](#fn-deployment_controllernew) constructor.\n - `load_balancer` (`list[obj]`): Set the `load_balancer` field on the resulting object. When `null`, the `load_balancer` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.load_balancer.new](#fn-load_balancernew) constructor.\n - `network_configuration` (`list[obj]`): Set the `network_configuration` field on the resulting object. When `null`, the `network_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.network_configuration.new](#fn-network_configurationnew) constructor.\n - `ordered_placement_strategy` (`list[obj]`): Set the `ordered_placement_strategy` field on the resulting object. When `null`, the `ordered_placement_strategy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.ordered_placement_strategy.new](#fn-ordered_placement_strategynew) constructor.\n - `placement_constraints` (`list[obj]`): Set the `placement_constraints` field on the resulting object. When `null`, the `placement_constraints` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.placement_constraints.new](#fn-placement_constraintsnew) constructor.\n - `service_connect_configuration` (`list[obj]`): Set the `service_connect_configuration` field on the resulting object. When `null`, the `service_connect_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.service_connect_configuration.new](#fn-service_connect_configurationnew) constructor.\n - `service_registries` (`list[obj]`): Set the `service_registries` field on the resulting object. When `null`, the `service_registries` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.service_registries.new](#fn-service_registriesnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.timeouts.new](#fn-timeoutsnew) constructor.\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 `ecs_service` resource into the root Terraform configuration.\n', args=[]), + '#newAttrs':: d.fn(help='\n`aws.ecs_service.newAttrs` constructs a new object with attributes and blocks configured for the `ecs_service`\nTerraform resource.\n\nUnlike [aws.ecs_service.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 - `cluster` (`string`): Set the `cluster` field on the resulting object. When `null`, the `cluster` field will be omitted from the resulting object.\n - `deployment_maximum_percent` (`number`): Set the `deployment_maximum_percent` field on the resulting object. When `null`, the `deployment_maximum_percent` field will be omitted from the resulting object.\n - `deployment_minimum_healthy_percent` (`number`): Set the `deployment_minimum_healthy_percent` field on the resulting object. When `null`, the `deployment_minimum_healthy_percent` field will be omitted from the resulting object.\n - `desired_count` (`number`): Set the `desired_count` field on the resulting object. When `null`, the `desired_count` field will be omitted from the resulting object.\n - `enable_ecs_managed_tags` (`bool`): Set the `enable_ecs_managed_tags` field on the resulting object. When `null`, the `enable_ecs_managed_tags` field will be omitted from the resulting object.\n - `enable_execute_command` (`bool`): Set the `enable_execute_command` field on the resulting object. When `null`, the `enable_execute_command` field will be omitted from the resulting object.\n - `force_new_deployment` (`bool`): Set the `force_new_deployment` field on the resulting object. When `null`, the `force_new_deployment` field will be omitted from the resulting object.\n - `health_check_grace_period_seconds` (`number`): Set the `health_check_grace_period_seconds` field on the resulting object. When `null`, the `health_check_grace_period_seconds` field will be omitted from the resulting object.\n - `iam_role` (`string`): Set the `iam_role` field on the resulting object. When `null`, the `iam_role` field will be omitted from the resulting object.\n - `launch_type` (`string`): Set the `launch_type` field on the resulting object. When `null`, the `launch_type` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object.\n - `platform_version` (`string`): Set the `platform_version` field on the resulting object. When `null`, the `platform_version` field will be omitted from the resulting object.\n - `propagate_tags` (`string`): Set the `propagate_tags` field on the resulting object. When `null`, the `propagate_tags` field will be omitted from the resulting object.\n - `scheduling_strategy` (`string`): Set the `scheduling_strategy` field on the resulting object. When `null`, the `scheduling_strategy` field will be omitted from 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 - `tags_all` (`obj`): Set the `tags_all` field on the resulting object. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `task_definition` (`string`): Set the `task_definition` field on the resulting object. When `null`, the `task_definition` field will be omitted from the resulting object.\n - `triggers` (`obj`): Set the `triggers` field on the resulting object. When `null`, the `triggers` field will be omitted from the resulting object.\n - `wait_for_steady_state` (`bool`): Set the `wait_for_steady_state` field on the resulting object. When `null`, the `wait_for_steady_state` field will be omitted from the resulting object.\n - `alarms` (`list[obj]`): Set the `alarms` field on the resulting object. When `null`, the `alarms` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.alarms.new](#fn-alarmsnew) constructor.\n - `capacity_provider_strategy` (`list[obj]`): Set the `capacity_provider_strategy` field on the resulting object. When `null`, the `capacity_provider_strategy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.capacity_provider_strategy.new](#fn-capacity_provider_strategynew) constructor.\n - `deployment_circuit_breaker` (`list[obj]`): Set the `deployment_circuit_breaker` field on the resulting object. When `null`, the `deployment_circuit_breaker` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_circuit_breaker.new](#fn-deployment_circuit_breakernew) constructor.\n - `deployment_controller` (`list[obj]`): Set the `deployment_controller` field on the resulting object. When `null`, the `deployment_controller` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_controller.new](#fn-deployment_controllernew) constructor.\n - `load_balancer` (`list[obj]`): Set the `load_balancer` field on the resulting object. When `null`, the `load_balancer` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.load_balancer.new](#fn-load_balancernew) constructor.\n - `network_configuration` (`list[obj]`): Set the `network_configuration` field on the resulting object. When `null`, the `network_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.network_configuration.new](#fn-network_configurationnew) constructor.\n - `ordered_placement_strategy` (`list[obj]`): Set the `ordered_placement_strategy` field on the resulting object. When `null`, the `ordered_placement_strategy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.ordered_placement_strategy.new](#fn-ordered_placement_strategynew) constructor.\n - `placement_constraints` (`list[obj]`): Set the `placement_constraints` field on the resulting object. When `null`, the `placement_constraints` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.placement_constraints.new](#fn-placement_constraintsnew) constructor.\n - `service_connect_configuration` (`list[obj]`): Set the `service_connect_configuration` field on the resulting object. When `null`, the `service_connect_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.service_connect_configuration.new](#fn-service_connect_configurationnew) constructor.\n - `service_registries` (`list[obj]`): Set the `service_registries` field on the resulting object. When `null`, the `service_registries` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.service_registries.new](#fn-service_registriesnew) constructor.\n - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.timeouts.new](#fn-timeoutsnew) constructor.\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 `ecs_service` resource into the root Terraform configuration.\n', args=[]), newAttrs( name, + alarms=null, capacity_provider_strategy=null, cluster=null, deployment_circuit_breaker=null, @@ -159,6 +174,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); triggers=null, wait_for_steady_state=null ):: std.prune(a={ + alarms: alarms, capacity_provider_strategy: capacity_provider_strategy, cluster: cluster, deployment_circuit_breaker: deployment_circuit_breaker, @@ -295,6 +311,26 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); update: update, }), }, + '#withAlarms':: d.fn(help='`aws.list[obj].withAlarms` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the alarms 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].withAlarmsMixin](TODO) function.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `alarms` field.\n', args=[]), + withAlarms(resourceLabel, value): { + resource+: { + aws_ecs_service+: { + [resourceLabel]+: { + alarms: value, + }, + }, + }, + }, + '#withAlarmsMixin':: d.fn(help='`aws.list[obj].withAlarmsMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the alarms 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].withAlarms](TODO)\nfunction.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `alarms` field.\n', args=[]), + withAlarmsMixin(resourceLabel, value): { + resource+: { + aws_ecs_service+: { + [resourceLabel]+: { + alarms+: if std.isArray(v=value) then value else [value], + }, + }, + }, + }, '#withCapacityProviderStrategy':: d.fn(help='`aws.list[obj].withCapacityProviderStrategy` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the capacity_provider_strategy 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].withCapacityProviderStrategyMixin](TODO) function.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `capacity_provider_strategy` field.\n', args=[]), withCapacityProviderStrategy(resourceLabel, value): { resource+: { diff --git a/4.x/_gen/resources/lightsail_bucket.libsonnet b/4.x/_gen/resources/lightsail_bucket.libsonnet new file mode 100644 index 00000000..f2989484 --- /dev/null +++ b/4.x/_gen/resources/lightsail_bucket.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='lightsail_bucket', url='', help='`lightsail_bucket` represents the `aws_lightsail_bucket` 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.lightsail_bucket.new` injects a new `aws_lightsail_bucket` 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.lightsail_bucket.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.lightsail_bucket` using the reference:\n\n $._ref.aws_lightsail_bucket.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_lightsail_bucket.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 - `bundle_id` (`string`): Set the `bundle_id` field on the resulting resource block.\n - `name` (`string`): Set the `name` field on the resulting resource block.\n - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `tags_all` (`obj`): Set the `tags_all` field on the resulting resource block. When `null`, the `tags_all` 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, + bundle_id, + name, + tags=null, + tags_all=null, + _meta={} + ):: tf.withResource( + type='aws_lightsail_bucket', + label=resourceLabel, + attrs=self.newAttrs( + bundle_id=bundle_id, + name=name, + tags=tags, + tags_all=tags_all + ), + _meta=_meta + ), + '#newAttrs':: d.fn(help='\n`aws.lightsail_bucket.newAttrs` constructs a new object with attributes and blocks configured for the `lightsail_bucket`\nTerraform resource.\n\nUnlike [aws.lightsail_bucket.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 - `bundle_id` (`string`): Set the `bundle_id` field on the resulting object.\n - `name` (`string`): Set the `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 - `tags_all` (`obj`): Set the `tags_all` field on the resulting object. When `null`, the `tags_all` 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 `lightsail_bucket` resource into the root Terraform configuration.\n', args=[]), + newAttrs( + bundle_id, + name, + tags=null, + tags_all=null + ):: std.prune(a={ + bundle_id: bundle_id, + name: name, + tags: tags, + tags_all: tags_all, + }), + '#withBundleId':: d.fn(help='`aws.string.withBundleId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the bundle_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 `bundle_id` field.\n', args=[]), + withBundleId(resourceLabel, value): { + resource+: { + aws_lightsail_bucket+: { + [resourceLabel]+: { + bundle_id: value, + }, + }, + }, + }, + '#withName':: d.fn(help='`aws.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+: { + aws_lightsail_bucket+: { + [resourceLabel]+: { + name: value, + }, + }, + }, + }, + '#withTags':: d.fn(help='`aws.obj.withTags` constructs a mixin object that can be merged into the `obj`\nTerraform resource block to set or update the tags field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `tags` field.\n', args=[]), + withTags(resourceLabel, value): { + resource+: { + aws_lightsail_bucket+: { + [resourceLabel]+: { + tags: value, + }, + }, + }, + }, + '#withTagsAll':: d.fn(help='`aws.obj.withTagsAll` constructs a mixin object that can be merged into the `obj`\nTerraform resource block to set or update the tags_all field.\n\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`obj`): The value to set for the `tags_all` field.\n', args=[]), + withTagsAll(resourceLabel, value): { + resource+: { + aws_lightsail_bucket+: { + [resourceLabel]+: { + tags_all: value, + }, + }, + }, + }, +} diff --git a/4.x/_gen/resources/lightsail_database.libsonnet b/4.x/_gen/resources/lightsail_database.libsonnet index d3498a73..5f4d0e05 100644 --- a/4.x/_gen/resources/lightsail_database.libsonnet +++ b/4.x/_gen/resources/lightsail_database.libsonnet @@ -2,10 +2,9 @@ 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='lightsail_database', url='', help='`lightsail_database` represents the `aws_lightsail_database` 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.lightsail_database.new` injects a new `aws_lightsail_database` 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.lightsail_database.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.lightsail_database` using the reference:\n\n $._ref.aws_lightsail_database.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_lightsail_database.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 - `apply_immediately` (`bool`): Set the `apply_immediately` field on the resulting resource block. When `null`, the `apply_immediately` field will be omitted from the resulting object.\n - `availability_zone` (`string`): Set the `availability_zone` field on the resulting resource block.\n - `backup_retention_enabled` (`bool`): Set the `backup_retention_enabled` field on the resulting resource block. When `null`, the `backup_retention_enabled` field will be omitted from the resulting object.\n - `blueprint_id` (`string`): Set the `blueprint_id` field on the resulting resource block.\n - `bundle_id` (`string`): Set the `bundle_id` field on the resulting resource block.\n - `final_snapshot_name` (`string`): Set the `final_snapshot_name` field on the resulting resource block. When `null`, the `final_snapshot_name` field will be omitted from the resulting object.\n - `master_database_name` (`string`): Set the `master_database_name` field on the resulting resource block.\n - `master_password` (`string`): Set the `master_password` field on the resulting resource block.\n - `master_username` (`string`): Set the `master_username` field on the resulting resource block.\n - `preferred_backup_window` (`string`): Set the `preferred_backup_window` field on the resulting resource block. When `null`, the `preferred_backup_window` field will be omitted from the resulting object.\n - `preferred_maintenance_window` (`string`): Set the `preferred_maintenance_window` field on the resulting resource block. When `null`, the `preferred_maintenance_window` field will be omitted from the resulting object.\n - `publicly_accessible` (`bool`): Set the `publicly_accessible` field on the resulting resource block. When `null`, the `publicly_accessible` field will be omitted from the resulting object.\n - `relational_database_name` (`string`): Set the `relational_database_name` field on the resulting resource block.\n - `skip_final_snapshot` (`bool`): Set the `skip_final_snapshot` field on the resulting resource block. When `null`, the `skip_final_snapshot` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `tags_all` (`obj`): Set the `tags_all` field on the resulting resource block. When `null`, the `tags_all` 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`aws.lightsail_database.new` injects a new `aws_lightsail_database` 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.lightsail_database.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.lightsail_database` using the reference:\n\n $._ref.aws_lightsail_database.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_lightsail_database.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 - `apply_immediately` (`bool`): Set the `apply_immediately` field on the resulting resource block. When `null`, the `apply_immediately` field will be omitted from the resulting object.\n - `availability_zone` (`string`): Set the `availability_zone` field on the resulting resource block. When `null`, the `availability_zone` field will be omitted from the resulting object.\n - `backup_retention_enabled` (`bool`): Set the `backup_retention_enabled` field on the resulting resource block. When `null`, the `backup_retention_enabled` field will be omitted from the resulting object.\n - `blueprint_id` (`string`): Set the `blueprint_id` field on the resulting resource block.\n - `bundle_id` (`string`): Set the `bundle_id` field on the resulting resource block.\n - `final_snapshot_name` (`string`): Set the `final_snapshot_name` field on the resulting resource block. When `null`, the `final_snapshot_name` field will be omitted from the resulting object.\n - `master_database_name` (`string`): Set the `master_database_name` field on the resulting resource block.\n - `master_password` (`string`): Set the `master_password` field on the resulting resource block.\n - `master_username` (`string`): Set the `master_username` field on the resulting resource block.\n - `preferred_backup_window` (`string`): Set the `preferred_backup_window` field on the resulting resource block. When `null`, the `preferred_backup_window` field will be omitted from the resulting object.\n - `preferred_maintenance_window` (`string`): Set the `preferred_maintenance_window` field on the resulting resource block. When `null`, the `preferred_maintenance_window` field will be omitted from the resulting object.\n - `publicly_accessible` (`bool`): Set the `publicly_accessible` field on the resulting resource block. When `null`, the `publicly_accessible` field will be omitted from the resulting object.\n - `relational_database_name` (`string`): Set the `relational_database_name` field on the resulting resource block.\n - `skip_final_snapshot` (`bool`): Set the `skip_final_snapshot` field on the resulting resource block. When `null`, the `skip_final_snapshot` field will be omitted from the resulting object.\n - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `tags_all` (`obj`): Set the `tags_all` field on the resulting resource block. When `null`, the `tags_all` 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, - availability_zone, blueprint_id, bundle_id, master_database_name, @@ -13,6 +12,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); master_username, relational_database_name, apply_immediately=null, + availability_zone=null, backup_retention_enabled=null, final_snapshot_name=null, preferred_backup_window=null, @@ -45,9 +45,8 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); ), _meta=_meta ), - '#newAttrs':: d.fn(help='\n`aws.lightsail_database.newAttrs` constructs a new object with attributes and blocks configured for the `lightsail_database`\nTerraform resource.\n\nUnlike [aws.lightsail_database.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 - `apply_immediately` (`bool`): Set the `apply_immediately` field on the resulting object. When `null`, the `apply_immediately` field will be omitted from the resulting object.\n - `availability_zone` (`string`): Set the `availability_zone` field on the resulting object.\n - `backup_retention_enabled` (`bool`): Set the `backup_retention_enabled` field on the resulting object. When `null`, the `backup_retention_enabled` field will be omitted from the resulting object.\n - `blueprint_id` (`string`): Set the `blueprint_id` field on the resulting object.\n - `bundle_id` (`string`): Set the `bundle_id` field on the resulting object.\n - `final_snapshot_name` (`string`): Set the `final_snapshot_name` field on the resulting object. When `null`, the `final_snapshot_name` field will be omitted from the resulting object.\n - `master_database_name` (`string`): Set the `master_database_name` field on the resulting object.\n - `master_password` (`string`): Set the `master_password` field on the resulting object.\n - `master_username` (`string`): Set the `master_username` field on the resulting object.\n - `preferred_backup_window` (`string`): Set the `preferred_backup_window` field on the resulting object. When `null`, the `preferred_backup_window` field will be omitted from the resulting object.\n - `preferred_maintenance_window` (`string`): Set the `preferred_maintenance_window` field on the resulting object. When `null`, the `preferred_maintenance_window` field will be omitted from the resulting object.\n - `publicly_accessible` (`bool`): Set the `publicly_accessible` field on the resulting object. When `null`, the `publicly_accessible` field will be omitted from the resulting object.\n - `relational_database_name` (`string`): Set the `relational_database_name` field on the resulting object.\n - `skip_final_snapshot` (`bool`): Set the `skip_final_snapshot` field on the resulting object. When `null`, the `skip_final_snapshot` field will be omitted from 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 - `tags_all` (`obj`): Set the `tags_all` field on the resulting object. When `null`, the `tags_all` 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 `lightsail_database` resource into the root Terraform configuration.\n', args=[]), + '#newAttrs':: d.fn(help='\n`aws.lightsail_database.newAttrs` constructs a new object with attributes and blocks configured for the `lightsail_database`\nTerraform resource.\n\nUnlike [aws.lightsail_database.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 - `apply_immediately` (`bool`): Set the `apply_immediately` field on the resulting object. When `null`, the `apply_immediately` field will be omitted from the resulting object.\n - `availability_zone` (`string`): Set the `availability_zone` field on the resulting object. When `null`, the `availability_zone` field will be omitted from the resulting object.\n - `backup_retention_enabled` (`bool`): Set the `backup_retention_enabled` field on the resulting object. When `null`, the `backup_retention_enabled` field will be omitted from the resulting object.\n - `blueprint_id` (`string`): Set the `blueprint_id` field on the resulting object.\n - `bundle_id` (`string`): Set the `bundle_id` field on the resulting object.\n - `final_snapshot_name` (`string`): Set the `final_snapshot_name` field on the resulting object. When `null`, the `final_snapshot_name` field will be omitted from the resulting object.\n - `master_database_name` (`string`): Set the `master_database_name` field on the resulting object.\n - `master_password` (`string`): Set the `master_password` field on the resulting object.\n - `master_username` (`string`): Set the `master_username` field on the resulting object.\n - `preferred_backup_window` (`string`): Set the `preferred_backup_window` field on the resulting object. When `null`, the `preferred_backup_window` field will be omitted from the resulting object.\n - `preferred_maintenance_window` (`string`): Set the `preferred_maintenance_window` field on the resulting object. When `null`, the `preferred_maintenance_window` field will be omitted from the resulting object.\n - `publicly_accessible` (`bool`): Set the `publicly_accessible` field on the resulting object. When `null`, the `publicly_accessible` field will be omitted from the resulting object.\n - `relational_database_name` (`string`): Set the `relational_database_name` field on the resulting object.\n - `skip_final_snapshot` (`bool`): Set the `skip_final_snapshot` field on the resulting object. When `null`, the `skip_final_snapshot` field will be omitted from 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 - `tags_all` (`obj`): Set the `tags_all` field on the resulting object. When `null`, the `tags_all` 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 `lightsail_database` resource into the root Terraform configuration.\n', args=[]), newAttrs( - availability_zone, blueprint_id, bundle_id, master_database_name, @@ -55,6 +54,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); master_username, relational_database_name, apply_immediately=null, + availability_zone=null, backup_retention_enabled=null, final_snapshot_name=null, preferred_backup_window=null, diff --git a/4.x/_gen/resources/lightsail_instance.libsonnet b/4.x/_gen/resources/lightsail_instance.libsonnet index cd56023c..6a3eaddd 100644 --- a/4.x/_gen/resources/lightsail_instance.libsonnet +++ b/4.x/_gen/resources/lightsail_instance.libsonnet @@ -2,13 +2,26 @@ 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='lightsail_instance', url='', help='`lightsail_instance` represents the `aws_lightsail_instance` 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.lightsail_instance.new` injects a new `aws_lightsail_instance` 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.lightsail_instance.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.lightsail_instance` using the reference:\n\n $._ref.aws_lightsail_instance.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_lightsail_instance.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 - `availability_zone` (`string`): Set the `availability_zone` field on the resulting resource block.\n - `blueprint_id` (`string`): Set the `blueprint_id` field on the resulting resource block.\n - `bundle_id` (`string`): Set the `bundle_id` field on the resulting resource block.\n - `ip_address_type` (`string`): Set the `ip_address_type` field on the resulting resource block. When `null`, the `ip_address_type` field will be omitted from the resulting object.\n - `key_pair_name` (`string`): Set the `key_pair_name` field on the resulting resource block. When `null`, the `key_pair_name` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting resource block.\n - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `tags_all` (`obj`): Set the `tags_all` field on the resulting resource block. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `user_data` (`string`): Set the `user_data` field on the resulting resource block. When `null`, the `user_data` 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=[]), + add_on:: { + '#new':: d.fn(help='\n`aws.lightsail_instance.add_on.new` constructs a new object with attributes and blocks configured for the `add_on`\nTerraform sub block.\n\n\n\n**Args**:\n - `snapshot_time` (`string`): Set the `snapshot_time` field on the resulting object.\n - `status` (`string`): Set the `status` field on the resulting object.\n - `type` (`string`): Set the `type` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `add_on` sub block.\n', args=[]), + new( + snapshot_time, + status, + type + ):: std.prune(a={ + snapshot_time: snapshot_time, + status: status, + type: type, + }), + }, + '#new':: d.fn(help="\n`aws.lightsail_instance.new` injects a new `aws_lightsail_instance` 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.lightsail_instance.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.lightsail_instance` using the reference:\n\n $._ref.aws_lightsail_instance.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_lightsail_instance.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 - `availability_zone` (`string`): Set the `availability_zone` field on the resulting resource block.\n - `blueprint_id` (`string`): Set the `blueprint_id` field on the resulting resource block.\n - `bundle_id` (`string`): Set the `bundle_id` field on the resulting resource block.\n - `ip_address_type` (`string`): Set the `ip_address_type` field on the resulting resource block. When `null`, the `ip_address_type` field will be omitted from the resulting object.\n - `key_pair_name` (`string`): Set the `key_pair_name` field on the resulting resource block. When `null`, the `key_pair_name` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting resource block.\n - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object.\n - `tags_all` (`obj`): Set the `tags_all` field on the resulting resource block. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `user_data` (`string`): Set the `user_data` field on the resulting resource block. When `null`, the `user_data` field will be omitted from the resulting object.\n - `add_on` (`list[obj]`): Set the `add_on` field on the resulting resource block. When `null`, the `add_on` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.lightsail_instance.add_on.new](#fn-add_onnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), new( resourceLabel, availability_zone, blueprint_id, bundle_id, name, + add_on=null, ip_address_type=null, key_pair_name=null, tags=null, @@ -19,6 +32,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); type='aws_lightsail_instance', label=resourceLabel, attrs=self.newAttrs( + add_on=add_on, availability_zone=availability_zone, blueprint_id=blueprint_id, bundle_id=bundle_id, @@ -31,18 +45,20 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); ), _meta=_meta ), - '#newAttrs':: d.fn(help='\n`aws.lightsail_instance.newAttrs` constructs a new object with attributes and blocks configured for the `lightsail_instance`\nTerraform resource.\n\nUnlike [aws.lightsail_instance.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 - `availability_zone` (`string`): Set the `availability_zone` field on the resulting object.\n - `blueprint_id` (`string`): Set the `blueprint_id` field on the resulting object.\n - `bundle_id` (`string`): Set the `bundle_id` field on the resulting object.\n - `ip_address_type` (`string`): Set the `ip_address_type` field on the resulting object. When `null`, the `ip_address_type` field will be omitted from the resulting object.\n - `key_pair_name` (`string`): Set the `key_pair_name` field on the resulting object. When `null`, the `key_pair_name` field will be omitted from the resulting object.\n - `name` (`string`): Set the `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 - `tags_all` (`obj`): Set the `tags_all` field on the resulting object. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `user_data` (`string`): Set the `user_data` field on the resulting object. When `null`, the `user_data` 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 `lightsail_instance` resource into the root Terraform configuration.\n', args=[]), + '#newAttrs':: d.fn(help='\n`aws.lightsail_instance.newAttrs` constructs a new object with attributes and blocks configured for the `lightsail_instance`\nTerraform resource.\n\nUnlike [aws.lightsail_instance.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 - `availability_zone` (`string`): Set the `availability_zone` field on the resulting object.\n - `blueprint_id` (`string`): Set the `blueprint_id` field on the resulting object.\n - `bundle_id` (`string`): Set the `bundle_id` field on the resulting object.\n - `ip_address_type` (`string`): Set the `ip_address_type` field on the resulting object. When `null`, the `ip_address_type` field will be omitted from the resulting object.\n - `key_pair_name` (`string`): Set the `key_pair_name` field on the resulting object. When `null`, the `key_pair_name` field will be omitted from the resulting object.\n - `name` (`string`): Set the `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 - `tags_all` (`obj`): Set the `tags_all` field on the resulting object. When `null`, the `tags_all` field will be omitted from the resulting object.\n - `user_data` (`string`): Set the `user_data` field on the resulting object. When `null`, the `user_data` field will be omitted from the resulting object.\n - `add_on` (`list[obj]`): Set the `add_on` field on the resulting object. When `null`, the `add_on` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.lightsail_instance.add_on.new](#fn-add_onnew) constructor.\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 `lightsail_instance` resource into the root Terraform configuration.\n', args=[]), newAttrs( availability_zone, blueprint_id, bundle_id, name, + add_on=null, ip_address_type=null, key_pair_name=null, tags=null, tags_all=null, user_data=null ):: std.prune(a={ + add_on: add_on, availability_zone: availability_zone, blueprint_id: blueprint_id, bundle_id: bundle_id, @@ -53,6 +69,26 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); tags_all: tags_all, user_data: user_data, }), + '#withAddOn':: d.fn(help='`aws.list[obj].withAddOn` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the add_on 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].withAddOnMixin](TODO) function.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `add_on` field.\n', args=[]), + withAddOn(resourceLabel, value): { + resource+: { + aws_lightsail_instance+: { + [resourceLabel]+: { + add_on: value, + }, + }, + }, + }, + '#withAddOnMixin':: d.fn(help='`aws.list[obj].withAddOnMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the add_on 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].withAddOn](TODO)\nfunction.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `add_on` field.\n', args=[]), + withAddOnMixin(resourceLabel, value): { + resource+: { + aws_lightsail_instance+: { + [resourceLabel]+: { + add_on+: if std.isArray(v=value) then value else [value], + }, + }, + }, + }, '#withAvailabilityZone':: d.fn(help='`aws.string.withAvailabilityZone` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the availability_zone 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 `availability_zone` field.\n', args=[]), withAvailabilityZone(resourceLabel, value): { resource+: { diff --git a/4.x/_gen/resources/lightsail_instance_public_ports.libsonnet b/4.x/_gen/resources/lightsail_instance_public_ports.libsonnet index 27debff5..cc4c9bec 100644 --- a/4.x/_gen/resources/lightsail_instance_public_ports.libsonnet +++ b/4.x/_gen/resources/lightsail_instance_public_ports.libsonnet @@ -23,14 +23,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); port_info: port_info, }), port_info:: { - '#new':: d.fn(help='\n`aws.lightsail_instance_public_ports.port_info.new` constructs a new object with attributes and blocks configured for the `port_info`\nTerraform sub block.\n\n\n\n**Args**:\n - `cidrs` (`list`): Set the `cidrs` field on the resulting object. When `null`, the `cidrs` field will be omitted from the resulting object.\n - `from_port` (`number`): Set the `from_port` field on the resulting object.\n - `ipv6_cidrs` (`list`): Set the `ipv6_cidrs` field on the resulting object. When `null`, the `ipv6_cidrs` field will be omitted from the resulting object.\n - `protocol` (`string`): Set the `protocol` field on the resulting object.\n - `to_port` (`number`): Set the `to_port` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `port_info` sub block.\n', args=[]), + '#new':: d.fn(help='\n`aws.lightsail_instance_public_ports.port_info.new` constructs a new object with attributes and blocks configured for the `port_info`\nTerraform sub block.\n\n\n\n**Args**:\n - `cidr_list_aliases` (`list`): Set the `cidr_list_aliases` field on the resulting object. When `null`, the `cidr_list_aliases` field will be omitted from the resulting object.\n - `cidrs` (`list`): Set the `cidrs` field on the resulting object. When `null`, the `cidrs` field will be omitted from the resulting object.\n - `from_port` (`number`): Set the `from_port` field on the resulting object.\n - `ipv6_cidrs` (`list`): Set the `ipv6_cidrs` field on the resulting object. When `null`, the `ipv6_cidrs` field will be omitted from the resulting object.\n - `protocol` (`string`): Set the `protocol` field on the resulting object.\n - `to_port` (`number`): Set the `to_port` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `port_info` sub block.\n', args=[]), new( from_port, protocol, to_port, + cidr_list_aliases=null, cidrs=null, ipv6_cidrs=null ):: std.prune(a={ + cidr_list_aliases: cidr_list_aliases, cidrs: cidrs, from_port: from_port, ipv6_cidrs: ipv6_cidrs, diff --git a/4.x/_gen/resources/s3_access_point.libsonnet b/4.x/_gen/resources/s3_access_point.libsonnet index bdca08b6..46f202b2 100644 --- a/4.x/_gen/resources/s3_access_point.libsonnet +++ b/4.x/_gen/resources/s3_access_point.libsonnet @@ -2,12 +2,13 @@ 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='s3_access_point', url='', help='`s3_access_point` represents the `aws_s3_access_point` 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.s3_access_point.new` injects a new `aws_s3_access_point` 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.s3_access_point.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.s3_access_point` using the reference:\n\n $._ref.aws_s3_access_point.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_s3_access_point.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 - `account_id` (`string`): Set the `account_id` field on the resulting resource block. When `null`, the `account_id` field will be omitted from the resulting object.\n - `bucket` (`string`): Set the `bucket` field on the resulting resource block.\n - `name` (`string`): Set the `name` field on the resulting resource block.\n - `policy` (`string`): Set the `policy` field on the resulting resource block. When `null`, the `policy` field will be omitted from the resulting object.\n - `public_access_block_configuration` (`list[obj]`): Set the `public_access_block_configuration` field on the resulting resource block. When `null`, the `public_access_block_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3_access_point.public_access_block_configuration.new](#fn-public_access_block_configurationnew) constructor.\n - `vpc_configuration` (`list[obj]`): Set the `vpc_configuration` field on the resulting resource block. When `null`, the `vpc_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3_access_point.vpc_configuration.new](#fn-vpc_configurationnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), + '#new':: d.fn(help="\n`aws.s3_access_point.new` injects a new `aws_s3_access_point` 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.s3_access_point.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.s3_access_point` using the reference:\n\n $._ref.aws_s3_access_point.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_s3_access_point.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 - `account_id` (`string`): Set the `account_id` field on the resulting resource block. When `null`, the `account_id` field will be omitted from the resulting object.\n - `bucket` (`string`): Set the `bucket` field on the resulting resource block.\n - `bucket_account_id` (`string`): Set the `bucket_account_id` field on the resulting resource block. When `null`, the `bucket_account_id` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting resource block.\n - `policy` (`string`): Set the `policy` field on the resulting resource block. When `null`, the `policy` field will be omitted from the resulting object.\n - `public_access_block_configuration` (`list[obj]`): Set the `public_access_block_configuration` field on the resulting resource block. When `null`, the `public_access_block_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3_access_point.public_access_block_configuration.new](#fn-public_access_block_configurationnew) constructor.\n - `vpc_configuration` (`list[obj]`): Set the `vpc_configuration` field on the resulting resource block. When `null`, the `vpc_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3_access_point.vpc_configuration.new](#fn-vpc_configurationnew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), new( resourceLabel, bucket, name, account_id=null, + bucket_account_id=null, policy=null, public_access_block_configuration=null, vpc_configuration=null, @@ -18,6 +19,7 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); attrs=self.newAttrs( account_id=account_id, bucket=bucket, + bucket_account_id=bucket_account_id, name=name, policy=policy, public_access_block_configuration=public_access_block_configuration, @@ -25,17 +27,19 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); ), _meta=_meta ), - '#newAttrs':: d.fn(help='\n`aws.s3_access_point.newAttrs` constructs a new object with attributes and blocks configured for the `s3_access_point`\nTerraform resource.\n\nUnlike [aws.s3_access_point.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 - `account_id` (`string`): Set the `account_id` field on the resulting object. When `null`, the `account_id` field will be omitted from the resulting object.\n - `bucket` (`string`): Set the `bucket` field on the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object.\n - `policy` (`string`): Set the `policy` field on the resulting object. When `null`, the `policy` field will be omitted from the resulting object.\n - `public_access_block_configuration` (`list[obj]`): Set the `public_access_block_configuration` field on the resulting object. When `null`, the `public_access_block_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3_access_point.public_access_block_configuration.new](#fn-public_access_block_configurationnew) constructor.\n - `vpc_configuration` (`list[obj]`): Set the `vpc_configuration` field on the resulting object. When `null`, the `vpc_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3_access_point.vpc_configuration.new](#fn-vpc_configurationnew) constructor.\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 `s3_access_point` resource into the root Terraform configuration.\n', args=[]), + '#newAttrs':: d.fn(help='\n`aws.s3_access_point.newAttrs` constructs a new object with attributes and blocks configured for the `s3_access_point`\nTerraform resource.\n\nUnlike [aws.s3_access_point.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 - `account_id` (`string`): Set the `account_id` field on the resulting object. When `null`, the `account_id` field will be omitted from the resulting object.\n - `bucket` (`string`): Set the `bucket` field on the resulting object.\n - `bucket_account_id` (`string`): Set the `bucket_account_id` field on the resulting object. When `null`, the `bucket_account_id` field will be omitted from the resulting object.\n - `name` (`string`): Set the `name` field on the resulting object.\n - `policy` (`string`): Set the `policy` field on the resulting object. When `null`, the `policy` field will be omitted from the resulting object.\n - `public_access_block_configuration` (`list[obj]`): Set the `public_access_block_configuration` field on the resulting object. When `null`, the `public_access_block_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3_access_point.public_access_block_configuration.new](#fn-public_access_block_configurationnew) constructor.\n - `vpc_configuration` (`list[obj]`): Set the `vpc_configuration` field on the resulting object. When `null`, the `vpc_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3_access_point.vpc_configuration.new](#fn-vpc_configurationnew) constructor.\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 `s3_access_point` resource into the root Terraform configuration.\n', args=[]), newAttrs( bucket, name, account_id=null, + bucket_account_id=null, policy=null, public_access_block_configuration=null, vpc_configuration=null ):: std.prune(a={ account_id: account_id, bucket: bucket, + bucket_account_id: bucket_account_id, name: name, policy: policy, public_access_block_configuration: public_access_block_configuration, @@ -83,6 +87,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); }, }, }, + '#withBucketAccountId':: d.fn(help='`aws.string.withBucketAccountId` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the bucket_account_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 `bucket_account_id` field.\n', args=[]), + withBucketAccountId(resourceLabel, value): { + resource+: { + aws_s3_access_point+: { + [resourceLabel]+: { + bucket_account_id: value, + }, + }, + }, + }, '#withName':: d.fn(help='`aws.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+: { diff --git a/4.x/_gen/resources/s3control_storage_lens_configuration.libsonnet b/4.x/_gen/resources/s3control_storage_lens_configuration.libsonnet index a3b03245..e6a76408 100644 --- a/4.x/_gen/resources/s3control_storage_lens_configuration.libsonnet +++ b/4.x/_gen/resources/s3control_storage_lens_configuration.libsonnet @@ -47,6 +47,22 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); enabled: enabled, }), }, + advanced_cost_optimization_metrics:: { + '#new':: d.fn(help='\n`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.advanced_cost_optimization_metrics.new` constructs a new object with attributes and blocks configured for the `advanced_cost_optimization_metrics`\nTerraform sub block.\n\n\n\n**Args**:\n - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `advanced_cost_optimization_metrics` sub block.\n', args=[]), + new( + enabled=null + ):: std.prune(a={ + enabled: enabled, + }), + }, + advanced_data_protection_metrics:: { + '#new':: d.fn(help='\n`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.advanced_data_protection_metrics.new` constructs a new object with attributes and blocks configured for the `advanced_data_protection_metrics`\nTerraform sub block.\n\n\n\n**Args**:\n - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `advanced_data_protection_metrics` sub block.\n', args=[]), + new( + enabled=null + ):: std.prune(a={ + enabled: enabled, + }), + }, bucket_level:: { activity_metrics:: { '#new':: d.fn(help='\n`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.activity_metrics.new` constructs a new object with attributes and blocks configured for the `activity_metrics`\nTerraform sub block.\n\n\n\n**Args**:\n - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `activity_metrics` sub block.\n', args=[]), @@ -56,12 +72,42 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); enabled: enabled, }), }, - '#new':: d.fn(help='\n`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.new` constructs a new object with attributes and blocks configured for the `bucket_level`\nTerraform sub block.\n\n\n\n**Args**:\n - `activity_metrics` (`list[obj]`): Set the `activity_metrics` field on the resulting object. When `null`, the `activity_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.activity_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_levelactivity_metricsnew) constructor.\n - `prefix_level` (`list[obj]`): Set the `prefix_level` field on the resulting object. When `null`, the `prefix_level` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.prefix_level.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_levelprefix_levelnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `bucket_level` sub block.\n', args=[]), + advanced_cost_optimization_metrics:: { + '#new':: d.fn(help='\n`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.advanced_cost_optimization_metrics.new` constructs a new object with attributes and blocks configured for the `advanced_cost_optimization_metrics`\nTerraform sub block.\n\n\n\n**Args**:\n - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `advanced_cost_optimization_metrics` sub block.\n', args=[]), + new( + enabled=null + ):: std.prune(a={ + enabled: enabled, + }), + }, + advanced_data_protection_metrics:: { + '#new':: d.fn(help='\n`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.advanced_data_protection_metrics.new` constructs a new object with attributes and blocks configured for the `advanced_data_protection_metrics`\nTerraform sub block.\n\n\n\n**Args**:\n - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `advanced_data_protection_metrics` sub block.\n', args=[]), + new( + enabled=null + ):: std.prune(a={ + enabled: enabled, + }), + }, + detailed_status_code_metrics:: { + '#new':: d.fn(help='\n`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.detailed_status_code_metrics.new` constructs a new object with attributes and blocks configured for the `detailed_status_code_metrics`\nTerraform sub block.\n\n\n\n**Args**:\n - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `detailed_status_code_metrics` sub block.\n', args=[]), + new( + enabled=null + ):: std.prune(a={ + enabled: enabled, + }), + }, + '#new':: d.fn(help='\n`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.new` constructs a new object with attributes and blocks configured for the `bucket_level`\nTerraform sub block.\n\n\n\n**Args**:\n - `activity_metrics` (`list[obj]`): Set the `activity_metrics` field on the resulting object. When `null`, the `activity_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.activity_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_levelactivity_metricsnew) constructor.\n - `advanced_cost_optimization_metrics` (`list[obj]`): Set the `advanced_cost_optimization_metrics` field on the resulting object. When `null`, the `advanced_cost_optimization_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.advanced_cost_optimization_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_leveladvanced_cost_optimization_metricsnew) constructor.\n - `advanced_data_protection_metrics` (`list[obj]`): Set the `advanced_data_protection_metrics` field on the resulting object. When `null`, the `advanced_data_protection_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.advanced_data_protection_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_leveladvanced_data_protection_metricsnew) constructor.\n - `detailed_status_code_metrics` (`list[obj]`): Set the `detailed_status_code_metrics` field on the resulting object. When `null`, the `detailed_status_code_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.detailed_status_code_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_leveldetailed_status_code_metricsnew) constructor.\n - `prefix_level` (`list[obj]`): Set the `prefix_level` field on the resulting object. When `null`, the `prefix_level` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.prefix_level.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_levelprefix_levelnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `bucket_level` sub block.\n', args=[]), new( activity_metrics=null, + advanced_cost_optimization_metrics=null, + advanced_data_protection_metrics=null, + detailed_status_code_metrics=null, prefix_level=null ):: std.prune(a={ activity_metrics: activity_metrics, + advanced_cost_optimization_metrics: advanced_cost_optimization_metrics, + advanced_data_protection_metrics: advanced_data_protection_metrics, + detailed_status_code_metrics: detailed_status_code_metrics, prefix_level: prefix_level, }), prefix_level:: { @@ -95,13 +141,27 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); }, }, }, - '#new':: d.fn(help='\n`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.new` constructs a new object with attributes and blocks configured for the `account_level`\nTerraform sub block.\n\n\n\n**Args**:\n - `activity_metrics` (`list[obj]`): Set the `activity_metrics` field on the resulting object. When `null`, the `activity_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.activity_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationactivity_metricsnew) constructor.\n - `bucket_level` (`list[obj]`): Set the `bucket_level` field on the resulting object. When `null`, the `bucket_level` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.new](#fn-storage_lens_configurationstorage_lens_configurationbucket_levelnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `account_level` sub block.\n', args=[]), + detailed_status_code_metrics:: { + '#new':: d.fn(help='\n`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.detailed_status_code_metrics.new` constructs a new object with attributes and blocks configured for the `detailed_status_code_metrics`\nTerraform sub block.\n\n\n\n**Args**:\n - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object.\n\n**Returns**:\n - An attribute object that represents the `detailed_status_code_metrics` sub block.\n', args=[]), + new( + enabled=null + ):: std.prune(a={ + enabled: enabled, + }), + }, + '#new':: d.fn(help='\n`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.new` constructs a new object with attributes and blocks configured for the `account_level`\nTerraform sub block.\n\n\n\n**Args**:\n - `activity_metrics` (`list[obj]`): Set the `activity_metrics` field on the resulting object. When `null`, the `activity_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.activity_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationactivity_metricsnew) constructor.\n - `advanced_cost_optimization_metrics` (`list[obj]`): Set the `advanced_cost_optimization_metrics` field on the resulting object. When `null`, the `advanced_cost_optimization_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.advanced_cost_optimization_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationadvanced_cost_optimization_metricsnew) constructor.\n - `advanced_data_protection_metrics` (`list[obj]`): Set the `advanced_data_protection_metrics` field on the resulting object. When `null`, the `advanced_data_protection_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.advanced_data_protection_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationadvanced_data_protection_metricsnew) constructor.\n - `bucket_level` (`list[obj]`): Set the `bucket_level` field on the resulting object. When `null`, the `bucket_level` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.new](#fn-storage_lens_configurationstorage_lens_configurationbucket_levelnew) constructor.\n - `detailed_status_code_metrics` (`list[obj]`): Set the `detailed_status_code_metrics` field on the resulting object. When `null`, the `detailed_status_code_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.detailed_status_code_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationdetailed_status_code_metricsnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `account_level` sub block.\n', args=[]), new( activity_metrics=null, - bucket_level=null + advanced_cost_optimization_metrics=null, + advanced_data_protection_metrics=null, + bucket_level=null, + detailed_status_code_metrics=null ):: std.prune(a={ activity_metrics: activity_metrics, + advanced_cost_optimization_metrics: advanced_cost_optimization_metrics, + advanced_data_protection_metrics: advanced_data_protection_metrics, bucket_level: bucket_level, + detailed_status_code_metrics: detailed_status_code_metrics, }), }, aws_org:: { diff --git a/4.x/_gen/resources/ssoadmin_instance_access_control_attributes.libsonnet b/4.x/_gen/resources/ssoadmin_instance_access_control_attributes.libsonnet new file mode 100644 index 00000000..e1e55fed --- /dev/null +++ b/4.x/_gen/resources/ssoadmin_instance_access_control_attributes.libsonnet @@ -0,0 +1,73 @@ +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_instance_access_control_attributes', url='', help='`ssoadmin_instance_access_control_attributes` represents the `aws_ssoadmin_instance_access_control_attributes` Terraform resource.\n\n\n\nThis package contains functions and utilities for setting up the resource using Jsonnet code.\n'), + attribute:: { + '#new':: d.fn(help='\n`aws.ssoadmin_instance_access_control_attributes.attribute.new` constructs a new object with attributes and blocks configured for the `attribute`\nTerraform sub block.\n\n\n\n**Args**:\n - `key` (`string`): Set the `key` field on the resulting object.\n - `value` (`list[obj]`): Set the `value` field on the resulting object. When `null`, the `value` 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_instance_access_control_attributes.attribute.value.new](#fn-attributevaluenew) constructor.\n\n**Returns**:\n - An attribute object that represents the `attribute` sub block.\n', args=[]), + new( + key, + value=null + ):: std.prune(a={ + key: key, + value: value, + }), + value:: { + '#new':: d.fn(help='\n`aws.ssoadmin_instance_access_control_attributes.attribute.value.new` constructs a new object with attributes and blocks configured for the `value`\nTerraform sub block.\n\n\n\n**Args**:\n - `source` (`list`): Set the `source` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `value` sub block.\n', args=[]), + new( + source + ):: std.prune(a={ + source: source, + }), + }, + }, + '#new':: d.fn(help="\n`aws.ssoadmin_instance_access_control_attributes.new` injects a new `aws_ssoadmin_instance_access_control_attributes` 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.ssoadmin_instance_access_control_attributes.new('some_id')\n\nYou can get the reference to the `id` field of the created `aws.ssoadmin_instance_access_control_attributes` using the reference:\n\n $._ref.aws_ssoadmin_instance_access_control_attributes.some_id.get('id')\n\nThis is the same as directly entering `\"${ aws_ssoadmin_instance_access_control_attributes.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 - `instance_arn` (`string`): Set the `instance_arn` field on the resulting resource block.\n - `attribute` (`list[obj]`): Set the `attribute` field on the resulting resource block. When `null`, the `attribute` 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_instance_access_control_attributes.attribute.new](#fn-attributenew) constructor.\n\n**Returns**:\n- A mixin object that injects the new resource into the root Terraform configuration.\n", args=[]), + new( + resourceLabel, + instance_arn, + attribute=null, + _meta={} + ):: tf.withResource( + type='aws_ssoadmin_instance_access_control_attributes', + label=resourceLabel, + attrs=self.newAttrs(attribute=attribute, instance_arn=instance_arn), + _meta=_meta + ), + '#newAttrs':: d.fn(help='\n`aws.ssoadmin_instance_access_control_attributes.newAttrs` constructs a new object with attributes and blocks configured for the `ssoadmin_instance_access_control_attributes`\nTerraform resource.\n\nUnlike [aws.ssoadmin_instance_access_control_attributes.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 - `instance_arn` (`string`): Set the `instance_arn` field on the resulting object.\n - `attribute` (`list[obj]`): Set the `attribute` field on the resulting object. When `null`, the `attribute` 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_instance_access_control_attributes.attribute.new](#fn-attributenew) constructor.\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 `ssoadmin_instance_access_control_attributes` resource into the root Terraform configuration.\n', args=[]), + newAttrs( + instance_arn, + attribute=null + ):: std.prune(a={ + attribute: attribute, + instance_arn: instance_arn, + }), + '#withAttribute':: d.fn(help='`aws.list[obj].withAttribute` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the attribute 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].withAttributeMixin](TODO) function.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `attribute` field.\n', args=[]), + withAttribute(resourceLabel, value): { + resource+: { + aws_ssoadmin_instance_access_control_attributes+: { + [resourceLabel]+: { + attribute: value, + }, + }, + }, + }, + '#withAttributeMixin':: d.fn(help='`aws.list[obj].withAttributeMixin` constructs a mixin object that can be merged into the `list[obj]`\nTerraform resource block to set or update the attribute 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].withAttribute](TODO)\nfunction.\n\n\n**Args**:\n - `resourceLabel` (`string`): The name label of the block to update.\n - `value` (`list[obj]`): The value to set for the `attribute` field.\n', args=[]), + withAttributeMixin(resourceLabel, value): { + resource+: { + aws_ssoadmin_instance_access_control_attributes+: { + [resourceLabel]+: { + attribute+: if std.isArray(v=value) then value else [value], + }, + }, + }, + }, + '#withInstanceArn':: d.fn(help='`aws.string.withInstanceArn` constructs a mixin object that can be merged into the `string`\nTerraform resource block to set or update the instance_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 `instance_arn` field.\n', args=[]), + withInstanceArn(resourceLabel, value): { + resource+: { + aws_ssoadmin_instance_access_control_attributes+: { + [resourceLabel]+: { + instance_arn: value, + }, + }, + }, + }, +} diff --git a/4.x/_gen/resources/wafv2_rule_group.libsonnet b/4.x/_gen/resources/wafv2_rule_group.libsonnet index f9db8f33..763b4bee 100644 --- a/4.x/_gen/resources/wafv2_rule_group.libsonnet +++ b/4.x/_gen/resources/wafv2_rule_group.libsonnet @@ -123,6 +123,32 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); custom_response: custom_response, }), }, + captcha:: { + custom_request_handling:: { + insert_header:: { + '#new':: d.fn(help='\n`aws.wafv2_rule_group.rule.action.captcha.custom_request_handling.insert_header.new` constructs a new object with attributes and blocks configured for the `insert_header`\nTerraform sub block.\n\n\n\n**Args**:\n - `name` (`string`): Set the `name` field on the resulting object.\n - `value` (`string`): Set the `value` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `insert_header` sub block.\n', args=[]), + new( + name, + value + ):: std.prune(a={ + name: name, + value: value, + }), + }, + '#new':: d.fn(help='\n`aws.wafv2_rule_group.rule.action.captcha.custom_request_handling.new` constructs a new object with attributes and blocks configured for the `custom_request_handling`\nTerraform sub block.\n\n\n\n**Args**:\n - `insert_header` (`list[obj]`): Set the `insert_header` field on the resulting object. When `null`, the `insert_header` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.captcha.custom_request_handling.insert_header.new](#fn-ruleruleactioncaptchainsert_headernew) constructor.\n\n**Returns**:\n - An attribute object that represents the `custom_request_handling` sub block.\n', args=[]), + new( + insert_header=null + ):: std.prune(a={ + insert_header: insert_header, + }), + }, + '#new':: d.fn(help='\n`aws.wafv2_rule_group.rule.action.captcha.new` constructs a new object with attributes and blocks configured for the `captcha`\nTerraform sub block.\n\n\n\n**Args**:\n - `custom_request_handling` (`list[obj]`): Set the `custom_request_handling` field on the resulting object. When `null`, the `custom_request_handling` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.captcha.custom_request_handling.new](#fn-ruleruleactioncustom_request_handlingnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `captcha` sub block.\n', args=[]), + new( + custom_request_handling=null + ):: std.prune(a={ + custom_request_handling: custom_request_handling, + }), + }, count:: { custom_request_handling:: { insert_header:: { @@ -149,14 +175,16 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); custom_request_handling: custom_request_handling, }), }, - '#new':: d.fn(help='\n`aws.wafv2_rule_group.rule.action.new` constructs a new object with attributes and blocks configured for the `action`\nTerraform sub block.\n\n\n\n**Args**:\n - `allow` (`list[obj]`): Set the `allow` field on the resulting object. When `null`, the `allow` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.allow.new](#fn-ruleruleallownew) constructor.\n - `block` (`list[obj]`): Set the `block` field on the resulting object. When `null`, the `block` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.block.new](#fn-ruleruleblocknew) constructor.\n - `count` (`list[obj]`): Set the `count` field on the resulting object. When `null`, the `count` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.count.new](#fn-rulerulecountnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `action` sub block.\n', args=[]), + '#new':: d.fn(help='\n`aws.wafv2_rule_group.rule.action.new` constructs a new object with attributes and blocks configured for the `action`\nTerraform sub block.\n\n\n\n**Args**:\n - `allow` (`list[obj]`): Set the `allow` field on the resulting object. When `null`, the `allow` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.allow.new](#fn-ruleruleallownew) constructor.\n - `block` (`list[obj]`): Set the `block` field on the resulting object. When `null`, the `block` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.block.new](#fn-ruleruleblocknew) constructor.\n - `captcha` (`list[obj]`): Set the `captcha` field on the resulting object. When `null`, the `captcha` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.captcha.new](#fn-rulerulecaptchanew) constructor.\n - `count` (`list[obj]`): Set the `count` field on the resulting object. When `null`, the `count` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.count.new](#fn-rulerulecountnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `action` sub block.\n', args=[]), new( allow=null, block=null, + captcha=null, count=null ):: std.prune(a={ allow: allow, block: block, + captcha: captcha, count: count, }), }, diff --git a/4.x/_gen/resources/wafv2_web_acl.libsonnet b/4.x/_gen/resources/wafv2_web_acl.libsonnet index a7dca822..1cd9a3c7 100644 --- a/4.x/_gen/resources/wafv2_web_acl.libsonnet +++ b/4.x/_gen/resources/wafv2_web_acl.libsonnet @@ -215,6 +215,32 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); custom_request_handling: custom_request_handling, }), }, + challenge:: { + custom_request_handling:: { + insert_header:: { + '#new':: d.fn(help='\n`aws.wafv2_web_acl.rule.action.challenge.custom_request_handling.insert_header.new` constructs a new object with attributes and blocks configured for the `insert_header`\nTerraform sub block.\n\n\n\n**Args**:\n - `name` (`string`): Set the `name` field on the resulting object.\n - `value` (`string`): Set the `value` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `insert_header` sub block.\n', args=[]), + new( + name, + value + ):: std.prune(a={ + name: name, + value: value, + }), + }, + '#new':: d.fn(help='\n`aws.wafv2_web_acl.rule.action.challenge.custom_request_handling.new` constructs a new object with attributes and blocks configured for the `custom_request_handling`\nTerraform sub block.\n\n\n\n**Args**:\n - `insert_header` (`list[obj]`): Set the `insert_header` field on the resulting object. When `null`, the `insert_header` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.challenge.custom_request_handling.insert_header.new](#fn-ruleruleactionchallengeinsert_headernew) constructor.\n\n**Returns**:\n - An attribute object that represents the `custom_request_handling` sub block.\n', args=[]), + new( + insert_header=null + ):: std.prune(a={ + insert_header: insert_header, + }), + }, + '#new':: d.fn(help='\n`aws.wafv2_web_acl.rule.action.challenge.new` constructs a new object with attributes and blocks configured for the `challenge`\nTerraform sub block.\n\n\n\n**Args**:\n - `custom_request_handling` (`list[obj]`): Set the `custom_request_handling` field on the resulting object. When `null`, the `custom_request_handling` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.challenge.custom_request_handling.new](#fn-ruleruleactioncustom_request_handlingnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `challenge` sub block.\n', args=[]), + new( + custom_request_handling=null + ):: std.prune(a={ + custom_request_handling: custom_request_handling, + }), + }, count:: { custom_request_handling:: { insert_header:: { @@ -241,16 +267,18 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); custom_request_handling: custom_request_handling, }), }, - '#new':: d.fn(help='\n`aws.wafv2_web_acl.rule.action.new` constructs a new object with attributes and blocks configured for the `action`\nTerraform sub block.\n\n\n\n**Args**:\n - `allow` (`list[obj]`): Set the `allow` field on the resulting object. When `null`, the `allow` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.allow.new](#fn-ruleruleallownew) constructor.\n - `block` (`list[obj]`): Set the `block` field on the resulting object. When `null`, the `block` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.block.new](#fn-ruleruleblocknew) constructor.\n - `captcha` (`list[obj]`): Set the `captcha` field on the resulting object. When `null`, the `captcha` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.captcha.new](#fn-rulerulecaptchanew) constructor.\n - `count` (`list[obj]`): Set the `count` field on the resulting object. When `null`, the `count` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.count.new](#fn-rulerulecountnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `action` sub block.\n', args=[]), + '#new':: d.fn(help='\n`aws.wafv2_web_acl.rule.action.new` constructs a new object with attributes and blocks configured for the `action`\nTerraform sub block.\n\n\n\n**Args**:\n - `allow` (`list[obj]`): Set the `allow` field on the resulting object. When `null`, the `allow` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.allow.new](#fn-ruleruleallownew) constructor.\n - `block` (`list[obj]`): Set the `block` field on the resulting object. When `null`, the `block` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.block.new](#fn-ruleruleblocknew) constructor.\n - `captcha` (`list[obj]`): Set the `captcha` field on the resulting object. When `null`, the `captcha` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.captcha.new](#fn-rulerulecaptchanew) constructor.\n - `challenge` (`list[obj]`): Set the `challenge` field on the resulting object. When `null`, the `challenge` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.challenge.new](#fn-rulerulechallengenew) constructor.\n - `count` (`list[obj]`): Set the `count` field on the resulting object. When `null`, the `count` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.count.new](#fn-rulerulecountnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `action` sub block.\n', args=[]), new( allow=null, block=null, captcha=null, + challenge=null, count=null ):: std.prune(a={ allow: allow, block: block, captcha: captcha, + challenge: challenge, count: count, }), }, @@ -16018,16 +16046,58 @@ local d = (import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'); name: name, }), }, - '#new':: d.fn(help='\n`aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.new` constructs a new object with attributes and blocks configured for the `managed_rule_group_statement`\nTerraform sub block.\n\n\n\n**Args**:\n - `name` (`string`): Set the `name` field on the resulting object.\n - `vendor_name` (`string`): Set the `vendor_name` field on the resulting object.\n - `version` (`string`): Set the `version` field on the resulting object. When `null`, the `version` field will be omitted from the resulting object.\n - `excluded_rule` (`list[obj]`): Set the `excluded_rule` field on the resulting object. When `null`, the `excluded_rule` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.excluded_rule.new](#fn-rulerulestatementexcluded_rulenew) constructor.\n - `rule_action_override` (`list[obj]`): Set the `rule_action_override` field on the resulting object. When `null`, the `rule_action_override` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.rule_action_override.new](#fn-rulerulestatementrule_action_overridenew) constructor.\n - `scope_down_statement` (`list[obj]`): Set the `scope_down_statement` field on the resulting object. When `null`, the `scope_down_statement` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.scope_down_statement.new](#fn-rulerulestatementscope_down_statementnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `managed_rule_group_statement` sub block.\n', args=[]), + managed_rule_group_configs:: { + aws_managed_rules_bot_control_rule_set:: { + '#new':: d.fn(help='\n`aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.aws_managed_rules_bot_control_rule_set.new` constructs a new object with attributes and blocks configured for the `aws_managed_rules_bot_control_rule_set`\nTerraform sub block.\n\n\n\n**Args**:\n - `inspection_level` (`string`): Set the `inspection_level` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `aws_managed_rules_bot_control_rule_set` sub block.\n', args=[]), + new( + inspection_level + ):: std.prune(a={ + inspection_level: inspection_level, + }), + }, + '#new':: d.fn(help='\n`aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.new` constructs a new object with attributes and blocks configured for the `managed_rule_group_configs`\nTerraform sub block.\n\n\n\n**Args**:\n - `login_path` (`string`): Set the `login_path` field on the resulting object. When `null`, the `login_path` field will be omitted from the resulting object.\n - `payload_type` (`string`): Set the `payload_type` field on the resulting object. When `null`, the `payload_type` field will be omitted from the resulting object.\n - `aws_managed_rules_bot_control_rule_set` (`list[obj]`): Set the `aws_managed_rules_bot_control_rule_set` field on the resulting object. When `null`, the `aws_managed_rules_bot_control_rule_set` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.aws_managed_rules_bot_control_rule_set.new](#fn-rulerulestatementmanaged_rule_group_statementaws_managed_rules_bot_control_rule_setnew) constructor.\n - `password_field` (`list[obj]`): Set the `password_field` field on the resulting object. When `null`, the `password_field` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.password_field.new](#fn-rulerulestatementmanaged_rule_group_statementpassword_fieldnew) constructor.\n - `username_field` (`list[obj]`): Set the `username_field` field on the resulting object. When `null`, the `username_field` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.username_field.new](#fn-rulerulestatementmanaged_rule_group_statementusername_fieldnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `managed_rule_group_configs` sub block.\n', args=[]), + new( + aws_managed_rules_bot_control_rule_set=null, + login_path=null, + password_field=null, + payload_type=null, + username_field=null + ):: std.prune(a={ + aws_managed_rules_bot_control_rule_set: aws_managed_rules_bot_control_rule_set, + login_path: login_path, + password_field: password_field, + payload_type: payload_type, + username_field: username_field, + }), + password_field:: { + '#new':: d.fn(help='\n`aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.password_field.new` constructs a new object with attributes and blocks configured for the `password_field`\nTerraform sub block.\n\n\n\n**Args**:\n - `identifier` (`string`): Set the `identifier` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `password_field` sub block.\n', args=[]), + new( + identifier + ):: std.prune(a={ + identifier: identifier, + }), + }, + username_field:: { + '#new':: d.fn(help='\n`aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.username_field.new` constructs a new object with attributes and blocks configured for the `username_field`\nTerraform sub block.\n\n\n\n**Args**:\n - `identifier` (`string`): Set the `identifier` field on the resulting object.\n\n**Returns**:\n - An attribute object that represents the `username_field` sub block.\n', args=[]), + new( + identifier + ):: std.prune(a={ + identifier: identifier, + }), + }, + }, + '#new':: d.fn(help='\n`aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.new` constructs a new object with attributes and blocks configured for the `managed_rule_group_statement`\nTerraform sub block.\n\n\n\n**Args**:\n - `name` (`string`): Set the `name` field on the resulting object.\n - `vendor_name` (`string`): Set the `vendor_name` field on the resulting object.\n - `version` (`string`): Set the `version` field on the resulting object. When `null`, the `version` field will be omitted from the resulting object.\n - `excluded_rule` (`list[obj]`): Set the `excluded_rule` field on the resulting object. When `null`, the `excluded_rule` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.excluded_rule.new](#fn-rulerulestatementexcluded_rulenew) constructor.\n - `managed_rule_group_configs` (`list[obj]`): Set the `managed_rule_group_configs` field on the resulting object. When `null`, the `managed_rule_group_configs` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.new](#fn-rulerulestatementmanaged_rule_group_configsnew) constructor.\n - `rule_action_override` (`list[obj]`): Set the `rule_action_override` field on the resulting object. When `null`, the `rule_action_override` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.rule_action_override.new](#fn-rulerulestatementrule_action_overridenew) constructor.\n - `scope_down_statement` (`list[obj]`): Set the `scope_down_statement` field on the resulting object. When `null`, the `scope_down_statement` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.scope_down_statement.new](#fn-rulerulestatementscope_down_statementnew) constructor.\n\n**Returns**:\n - An attribute object that represents the `managed_rule_group_statement` sub block.\n', args=[]), new( name, vendor_name, excluded_rule=null, + managed_rule_group_configs=null, rule_action_override=null, scope_down_statement=null, version=null ):: std.prune(a={ excluded_rule: excluded_rule, + managed_rule_group_configs: managed_rule_group_configs, name: name, rule_action_override: rule_action_override, scope_down_statement: scope_down_statement, diff --git a/docs/4.x/README.md b/docs/4.x/README.md index c2bfdef9..af67d693 100644 --- a/docs/4.x/README.md +++ b/docs/4.x/README.md @@ -117,11 +117,14 @@ project. * [appsync_function](appsync_function.md) * [appsync_graphql_api](appsync_graphql_api.md) * [appsync_resolver](appsync_resolver.md) +* [appsync_type](appsync_type.md) * [athena_data_catalog](athena_data_catalog.md) * [athena_database](athena_database.md) * [athena_named_query](athena_named_query.md) * [athena_workgroup](athena_workgroup.md) * [auditmanager_account_registration](auditmanager_account_registration.md) +* [auditmanager_assessment](auditmanager_assessment.md) +* [auditmanager_assessment_report](auditmanager_assessment_report.md) * [auditmanager_control](auditmanager_control.md) * [auditmanager_framework](auditmanager_framework.md) * [autoscaling_attachment](autoscaling_attachment.md) @@ -384,6 +387,7 @@ project. * [ec2_client_vpn_route](ec2_client_vpn_route.md) * [ec2_fleet](ec2_fleet.md) * [ec2_host](ec2_host.md) +* [ec2_instance_state](ec2_instance_state.md) * [ec2_local_gateway_route](ec2_local_gateway_route.md) * [ec2_local_gateway_route_table_vpc_association](ec2_local_gateway_route_table_vpc_association.md) * [ec2_managed_prefix_list](ec2_managed_prefix_list.md) @@ -657,6 +661,7 @@ project. * [lex_slot_type](lex_slot_type.md) * [licensemanager_association](licensemanager_association.md) * [licensemanager_license_configuration](licensemanager_license_configuration.md) +* [lightsail_bucket](lightsail_bucket.md) * [lightsail_certificate](lightsail_certificate.md) * [lightsail_container_service](lightsail_container_service.md) * [lightsail_container_service_deployment_version](lightsail_container_service_deployment_version.md) @@ -1045,6 +1050,7 @@ project. * [ssm_service_setting](ssm_service_setting.md) * [ssoadmin_account_assignment](ssoadmin_account_assignment.md) * [ssoadmin_customer_managed_policy_attachment](ssoadmin_customer_managed_policy_attachment.md) +* [ssoadmin_instance_access_control_attributes](ssoadmin_instance_access_control_attributes.md) * [ssoadmin_managed_policy_attachment](ssoadmin_managed_policy_attachment.md) * [ssoadmin_permission_set](ssoadmin_permission_set.md) * [ssoadmin_permission_set_inline_policy](ssoadmin_permission_set_inline_policy.md) diff --git a/docs/4.x/appflow_connector_profile.md b/docs/4.x/appflow_connector_profile.md index 85c8e535..9daf8bd8 100644 --- a/docs/4.x/appflow_connector_profile.md +++ b/docs/4.x/appflow_connector_profile.md @@ -1431,6 +1431,9 @@ Terraform sub block. **Args**: - `bucket_name` (`string`): Set the `bucket_name` field on the resulting object. - `bucket_prefix` (`string`): Set the `bucket_prefix` field on the resulting object. When `null`, the `bucket_prefix` field will be omitted from the resulting object. + - `cluster_identifier` (`string`): Set the `cluster_identifier` field on the resulting object. When `null`, the `cluster_identifier` field will be omitted from the resulting object. + - `data_api_role_arn` (`string`): Set the `data_api_role_arn` field on the resulting object. When `null`, the `data_api_role_arn` field will be omitted from the resulting object. + - `database_name` (`string`): Set the `database_name` field on the resulting object. When `null`, the `database_name` field will be omitted from the resulting object. - `database_url` (`string`): Set the `database_url` field on the resulting object. When `null`, the `database_url` field will be omitted from the resulting object. - `role_arn` (`string`): Set the `role_arn` field on the resulting object. diff --git a/docs/4.x/appsync_resolver.md b/docs/4.x/appsync_resolver.md index b68a5398..96b483ba 100644 --- a/docs/4.x/appsync_resolver.md +++ b/docs/4.x/appsync_resolver.md @@ -18,6 +18,7 @@ This package contains functions and utilities for setting up the resource using * [`fn withApiId()`](#fn-withapiid) * [`fn withCachingConfig()`](#fn-withcachingconfig) * [`fn withCachingConfigMixin()`](#fn-withcachingconfigmixin) +* [`fn withCode()`](#fn-withcode) * [`fn withDataSource()`](#fn-withdatasource) * [`fn withField()`](#fn-withfield) * [`fn withKind()`](#fn-withkind) @@ -26,6 +27,8 @@ This package contains functions and utilities for setting up the resource using * [`fn withPipelineConfigMixin()`](#fn-withpipelineconfigmixin) * [`fn withRequestTemplate()`](#fn-withrequesttemplate) * [`fn withResponseTemplate()`](#fn-withresponsetemplate) +* [`fn withRuntime()`](#fn-withruntime) +* [`fn withRuntimeMixin()`](#fn-withruntimemixin) * [`fn withSyncConfig()`](#fn-withsyncconfig) * [`fn withSyncConfigMixin()`](#fn-withsyncconfigmixin) * [`fn withType()`](#fn-withtype) @@ -33,6 +36,8 @@ This package contains functions and utilities for setting up the resource using * [`fn new()`](#fn-caching_confignew) * [`obj pipeline_config`](#obj-pipeline_config) * [`fn new()`](#fn-pipeline_confignew) +* [`obj runtime`](#obj-runtime) + * [`fn new()`](#fn-runtimenew) * [`obj sync_config`](#obj-sync_config) * [`fn new()`](#fn-sync_confignew) * [`obj sync_config.lambda_conflict_handler_config`](#obj-sync_configlambda_conflict_handler_config) @@ -68,6 +73,7 @@ or `$` to refer to the root object. Instead, make an explicit outer object using **Args**: - `resourceLabel` (`string`): The name label of the block. - `api_id` (`string`): Set the `api_id` field on the resulting resource block. + - `code` (`string`): Set the `code` field on the resulting resource block. When `null`, the `code` field will be omitted from the resulting object. - `data_source` (`string`): Set the `data_source` field on the resulting resource block. When `null`, the `data_source` field will be omitted from the resulting object. - `field` (`string`): Set the `field` field on the resulting resource block. - `kind` (`string`): Set the `kind` field on the resulting resource block. When `null`, the `kind` field will be omitted from the resulting object. @@ -77,6 +83,7 @@ or `$` to refer to the root object. Instead, make an explicit outer object using - `type` (`string`): Set the `type` field on the resulting resource block. - `caching_config` (`list[obj]`): Set the `caching_config` field on the resulting resource block. When `null`, the `caching_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.caching_config.new](#fn-caching_confignew) constructor. - `pipeline_config` (`list[obj]`): Set the `pipeline_config` field on the resulting resource block. When `null`, the `pipeline_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.pipeline_config.new](#fn-pipeline_confignew) constructor. + - `runtime` (`list[obj]`): Set the `runtime` field on the resulting resource block. When `null`, the `runtime` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.runtime.new](#fn-runtimenew) constructor. - `sync_config` (`list[obj]`): Set the `sync_config` field on the resulting resource block. When `null`, the `sync_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.sync_config.new](#fn-sync_confignew) constructor. **Returns**: @@ -102,6 +109,7 @@ injecting into a complete block. **Args**: - `api_id` (`string`): Set the `api_id` field on the resulting object. + - `code` (`string`): Set the `code` field on the resulting object. When `null`, the `code` field will be omitted from the resulting object. - `data_source` (`string`): Set the `data_source` field on the resulting object. When `null`, the `data_source` field will be omitted from the resulting object. - `field` (`string`): Set the `field` field on the resulting object. - `kind` (`string`): Set the `kind` field on the resulting object. When `null`, the `kind` field will be omitted from the resulting object. @@ -111,6 +119,7 @@ injecting into a complete block. - `type` (`string`): Set the `type` field on the resulting object. - `caching_config` (`list[obj]`): Set the `caching_config` field on the resulting object. When `null`, the `caching_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.caching_config.new](#fn-caching_confignew) constructor. - `pipeline_config` (`list[obj]`): Set the `pipeline_config` field on the resulting object. When `null`, the `pipeline_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.pipeline_config.new](#fn-pipeline_confignew) constructor. + - `runtime` (`list[obj]`): Set the `runtime` field on the resulting object. When `null`, the `runtime` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.runtime.new](#fn-runtimenew) constructor. - `sync_config` (`list[obj]`): Set the `sync_config` field on the resulting object. When `null`, the `sync_config` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.appsync_resolver.sync_config.new](#fn-sync_confignew) constructor. **Returns**: @@ -170,6 +179,22 @@ function. - `value` (`list[obj]`): The value to set for the `caching_config` field. +### fn withCode + +```ts +withCode() +``` + +`aws.string.withCode` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the code field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `code` field. + + ### fn withDataSource ```ts @@ -303,6 +328,43 @@ Terraform resource block to set or update the response_template field. - `value` (`string`): The value to set for the `response_template` field. +### fn withRuntime + +```ts +withRuntime() +``` + +`aws.list[obj].withRuntime` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the runtime field. + +This function will replace the array with the passed in `value`. If you wish to instead append the +passed in value to the existing array, use the [aws.list[obj].withRuntimeMixin](TODO) function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `runtime` field. + + +### fn withRuntimeMixin + +```ts +withRuntimeMixin() +``` + +`aws.list[obj].withRuntimeMixin` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the runtime field. + +This function will append the passed in array or object to the existing array. If you wish +to instead replace the array with the passed in `value`, use the [aws.list[obj].withRuntime](TODO) +function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `runtime` field. + + ### fn withSyncConfig ```ts @@ -403,6 +465,30 @@ Terraform sub block. - An attribute object that represents the `pipeline_config` sub block. +## obj runtime + + + +### fn runtime.new + +```ts +new() +``` + + +`aws.appsync_resolver.runtime.new` constructs a new object with attributes and blocks configured for the `runtime` +Terraform sub block. + + + +**Args**: + - `name` (`string`): Set the `name` field on the resulting object. + - `runtime_version` (`string`): Set the `runtime_version` field on the resulting object. + +**Returns**: + - An attribute object that represents the `runtime` sub block. + + ## obj sync_config diff --git a/docs/4.x/appsync_type.md b/docs/4.x/appsync_type.md new file mode 100644 index 00000000..714a3908 --- /dev/null +++ b/docs/4.x/appsync_type.md @@ -0,0 +1,130 @@ +--- +permalink: /appsync_type/ +--- + +# appsync_type + +`appsync_type` represents the `aws_appsync_type` 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 withApiId()`](#fn-withapiid) +* [`fn withDefinition()`](#fn-withdefinition) +* [`fn withFormat()`](#fn-withformat) + +## Fields + +### fn new + +```ts +new() +``` + + +`aws.appsync_type.new` injects a new `aws_appsync_type` 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 + aws.appsync_type.new('some_id') + +You can get the reference to the `id` field of the created `aws.appsync_type` using the reference: + + $._ref.aws_appsync_type.some_id.get('id') + +This is the same as directly entering `"${ aws_appsync_type.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. + - `api_id` (`string`): Set the `api_id` field on the resulting resource block. + - `definition` (`string`): Set the `definition` field on the resulting resource block. + - `format` (`string`): Set the `format` field on the resulting resource block. + +**Returns**: +- A mixin object that injects the new resource into the root Terraform configuration. + + +### fn newAttrs + +```ts +newAttrs() +``` + + +`aws.appsync_type.newAttrs` constructs a new object with attributes and blocks configured for the `appsync_type` +Terraform resource. + +Unlike [aws.appsync_type.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**: + - `api_id` (`string`): Set the `api_id` field on the resulting object. + - `definition` (`string`): Set the `definition` field on the resulting object. + - `format` (`string`): Set the `format` field on 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 `appsync_type` resource into the root Terraform configuration. + + +### fn withApiId + +```ts +withApiId() +``` + +`aws.string.withApiId` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the api_id field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `api_id` field. + + +### fn withDefinition + +```ts +withDefinition() +``` + +`aws.string.withDefinition` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the definition field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `definition` field. + + +### fn withFormat + +```ts +withFormat() +``` + +`aws.string.withFormat` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the format field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `format` field. diff --git a/docs/4.x/athena_workgroup.md b/docs/4.x/athena_workgroup.md index a2dca0ea..1dbb116e 100644 --- a/docs/4.x/athena_workgroup.md +++ b/docs/4.x/athena_workgroup.md @@ -257,6 +257,7 @@ Terraform sub block. **Args**: - `bytes_scanned_cutoff_per_query` (`number`): Set the `bytes_scanned_cutoff_per_query` field on the resulting object. When `null`, the `bytes_scanned_cutoff_per_query` field will be omitted from the resulting object. - `enforce_workgroup_configuration` (`bool`): Set the `enforce_workgroup_configuration` field on the resulting object. When `null`, the `enforce_workgroup_configuration` field will be omitted from the resulting object. + - `execution_role` (`string`): Set the `execution_role` field on the resulting object. When `null`, the `execution_role` field will be omitted from the resulting object. - `publish_cloudwatch_metrics_enabled` (`bool`): Set the `publish_cloudwatch_metrics_enabled` field on the resulting object. When `null`, the `publish_cloudwatch_metrics_enabled` field will be omitted from the resulting object. - `requester_pays_enabled` (`bool`): Set the `requester_pays_enabled` field on the resulting object. When `null`, the `requester_pays_enabled` field will be omitted from the resulting object. - `engine_version` (`list[obj]`): Set the `engine_version` field on the resulting object. When `null`, the `engine_version` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.athena_workgroup.configuration.engine_version.new](#fn-configurationengine_versionnew) constructor. diff --git a/docs/4.x/auditmanager_assessment.md b/docs/4.x/auditmanager_assessment.md new file mode 100644 index 00000000..6502ddfc --- /dev/null +++ b/docs/4.x/auditmanager_assessment.md @@ -0,0 +1,349 @@ +--- +permalink: /auditmanager_assessment/ +--- + +# auditmanager_assessment + +`auditmanager_assessment` represents the `aws_auditmanager_assessment` 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 withAssessmentReportsDestination()`](#fn-withassessmentreportsdestination) +* [`fn withAssessmentReportsDestinationMixin()`](#fn-withassessmentreportsdestinationmixin) +* [`fn withDescription()`](#fn-withdescription) +* [`fn withFrameworkId()`](#fn-withframeworkid) +* [`fn withName()`](#fn-withname) +* [`fn withRoles()`](#fn-withroles) +* [`fn withScope()`](#fn-withscope) +* [`fn withScopeMixin()`](#fn-withscopemixin) +* [`fn withTags()`](#fn-withtags) +* [`obj assessment_reports_destination`](#obj-assessment_reports_destination) + * [`fn new()`](#fn-assessment_reports_destinationnew) +* [`obj scope`](#obj-scope) + * [`fn new()`](#fn-scopenew) + * [`obj scope.aws_accounts`](#obj-scopeaws_accounts) + * [`fn new()`](#fn-scopeaws_accountsnew) + * [`obj scope.aws_services`](#obj-scopeaws_services) + * [`fn new()`](#fn-scopeaws_servicesnew) + +## Fields + +### fn new + +```ts +new() +``` + + +`aws.auditmanager_assessment.new` injects a new `aws_auditmanager_assessment` 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 + aws.auditmanager_assessment.new('some_id') + +You can get the reference to the `id` field of the created `aws.auditmanager_assessment` using the reference: + + $._ref.aws_auditmanager_assessment.some_id.get('id') + +This is the same as directly entering `"${ aws_auditmanager_assessment.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. + - `description` (`string`): Set the `description` field on the resulting resource block. When `null`, the `description` field will be omitted from the resulting object. + - `framework_id` (`string`): Set the `framework_id` field on the resulting resource block. + - `name` (`string`): Set the `name` field on the resulting resource block. + - `roles` (`list`): Set the `roles` field on the resulting resource block. + - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object. + - `assessment_reports_destination` (`list[obj]`): Set the `assessment_reports_destination` field on the resulting resource block. When `null`, the `assessment_reports_destination` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.assessment_reports_destination.new](#fn-assessment_reports_destinationnew) constructor. + - `scope` (`list[obj]`): Set the `scope` field on the resulting resource block. When `null`, the `scope` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.scope.new](#fn-scopenew) constructor. + +**Returns**: +- A mixin object that injects the new resource into the root Terraform configuration. + + +### fn newAttrs + +```ts +newAttrs() +``` + + +`aws.auditmanager_assessment.newAttrs` constructs a new object with attributes and blocks configured for the `auditmanager_assessment` +Terraform resource. + +Unlike [aws.auditmanager_assessment.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**: + - `description` (`string`): Set the `description` field on the resulting object. When `null`, the `description` field will be omitted from the resulting object. + - `framework_id` (`string`): Set the `framework_id` field on the resulting object. + - `name` (`string`): Set the `name` field on the resulting object. + - `roles` (`list`): Set the `roles` field on the resulting object. + - `tags` (`obj`): Set the `tags` field on the resulting object. When `null`, the `tags` field will be omitted from the resulting object. + - `assessment_reports_destination` (`list[obj]`): Set the `assessment_reports_destination` field on the resulting object. When `null`, the `assessment_reports_destination` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.assessment_reports_destination.new](#fn-assessment_reports_destinationnew) constructor. + - `scope` (`list[obj]`): Set the `scope` field on the resulting object. When `null`, the `scope` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.scope.new](#fn-scopenew) constructor. + +**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 `auditmanager_assessment` resource into the root Terraform configuration. + + +### fn withAssessmentReportsDestination + +```ts +withAssessmentReportsDestination() +``` + +`aws.list[obj].withAssessmentReportsDestination` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the assessment_reports_destination field. + +This function will replace the array with the passed in `value`. If you wish to instead append the +passed in value to the existing array, use the [aws.list[obj].withAssessmentReportsDestinationMixin](TODO) function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `assessment_reports_destination` field. + + +### fn withAssessmentReportsDestinationMixin + +```ts +withAssessmentReportsDestinationMixin() +``` + +`aws.list[obj].withAssessmentReportsDestinationMixin` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the assessment_reports_destination field. + +This function will append the passed in array or object to the existing array. If you wish +to instead replace the array with the passed in `value`, use the [aws.list[obj].withAssessmentReportsDestination](TODO) +function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `assessment_reports_destination` field. + + +### fn withDescription + +```ts +withDescription() +``` + +`aws.string.withDescription` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the description field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `description` field. + + +### fn withFrameworkId + +```ts +withFrameworkId() +``` + +`aws.string.withFrameworkId` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the framework_id field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `framework_id` field. + + +### fn withName + +```ts +withName() +``` + +`aws.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 withRoles + +```ts +withRoles() +``` + +`aws.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 withScope + +```ts +withScope() +``` + +`aws.list[obj].withScope` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the scope field. + +This function will replace the array with the passed in `value`. If you wish to instead append the +passed in value to the existing array, use the [aws.list[obj].withScopeMixin](TODO) function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `scope` field. + + +### fn withScopeMixin + +```ts +withScopeMixin() +``` + +`aws.list[obj].withScopeMixin` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the scope field. + +This function will append the passed in array or object to the existing array. If you wish +to instead replace the array with the passed in `value`, use the [aws.list[obj].withScope](TODO) +function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `scope` field. + + +### fn withTags + +```ts +withTags() +``` + +`aws.obj.withTags` constructs a mixin object that can be merged into the `obj` +Terraform resource block to set or update the tags field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`obj`): The value to set for the `tags` field. + + +## obj assessment_reports_destination + + + +### fn assessment_reports_destination.new + +```ts +new() +``` + + +`aws.auditmanager_assessment.assessment_reports_destination.new` constructs a new object with attributes and blocks configured for the `assessment_reports_destination` +Terraform sub block. + + + +**Args**: + - `destination` (`string`): Set the `destination` field on the resulting object. + - `destination_type` (`string`): Set the `destination_type` field on the resulting object. + +**Returns**: + - An attribute object that represents the `assessment_reports_destination` sub block. + + +## obj scope + + + +### fn scope.new + +```ts +new() +``` + + +`aws.auditmanager_assessment.scope.new` constructs a new object with attributes and blocks configured for the `scope` +Terraform sub block. + + + +**Args**: + - `aws_accounts` (`list[obj]`): Set the `aws_accounts` field on the resulting object. When `null`, the `aws_accounts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.scope.aws_accounts.new](#fn-scopeaws_accountsnew) constructor. + - `aws_services` (`list[obj]`): Set the `aws_services` field on the resulting object. When `null`, the `aws_services` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.auditmanager_assessment.scope.aws_services.new](#fn-scopeaws_servicesnew) constructor. + +**Returns**: + - An attribute object that represents the `scope` sub block. + + +## obj scope.aws_accounts + + + +### fn scope.aws_accounts.new + +```ts +new() +``` + + +`aws.auditmanager_assessment.scope.aws_accounts.new` constructs a new object with attributes and blocks configured for the `aws_accounts` +Terraform sub block. + + + +**Returns**: + - An attribute object that represents the `aws_accounts` sub block. + + +## obj scope.aws_services + + + +### fn scope.aws_services.new + +```ts +new() +``` + + +`aws.auditmanager_assessment.scope.aws_services.new` constructs a new object with attributes and blocks configured for the `aws_services` +Terraform sub block. + + + +**Args**: + - `service_name` (`string`): Set the `service_name` field on the resulting object. + +**Returns**: + - An attribute object that represents the `aws_services` sub block. diff --git a/docs/4.x/auditmanager_assessment_report.md b/docs/4.x/auditmanager_assessment_report.md new file mode 100644 index 00000000..86705cb9 --- /dev/null +++ b/docs/4.x/auditmanager_assessment_report.md @@ -0,0 +1,130 @@ +--- +permalink: /auditmanager_assessment_report/ +--- + +# auditmanager_assessment_report + +`auditmanager_assessment_report` represents the `aws_auditmanager_assessment_report` 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 withAssessmentId()`](#fn-withassessmentid) +* [`fn withDescription()`](#fn-withdescription) +* [`fn withName()`](#fn-withname) + +## Fields + +### fn new + +```ts +new() +``` + + +`aws.auditmanager_assessment_report.new` injects a new `aws_auditmanager_assessment_report` 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 + aws.auditmanager_assessment_report.new('some_id') + +You can get the reference to the `id` field of the created `aws.auditmanager_assessment_report` using the reference: + + $._ref.aws_auditmanager_assessment_report.some_id.get('id') + +This is the same as directly entering `"${ aws_auditmanager_assessment_report.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. + - `assessment_id` (`string`): Set the `assessment_id` field on the resulting resource block. + - `description` (`string`): Set the `description` field on the resulting resource block. When `null`, the `description` field will be omitted from the resulting object. + - `name` (`string`): Set the `name` field on the resulting resource block. + +**Returns**: +- A mixin object that injects the new resource into the root Terraform configuration. + + +### fn newAttrs + +```ts +newAttrs() +``` + + +`aws.auditmanager_assessment_report.newAttrs` constructs a new object with attributes and blocks configured for the `auditmanager_assessment_report` +Terraform resource. + +Unlike [aws.auditmanager_assessment_report.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**: + - `assessment_id` (`string`): Set the `assessment_id` field on the resulting object. + - `description` (`string`): Set the `description` field on the resulting object. When `null`, the `description` field will be omitted from the resulting object. + - `name` (`string`): Set the `name` field on 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 `auditmanager_assessment_report` resource into the root Terraform configuration. + + +### fn withAssessmentId + +```ts +withAssessmentId() +``` + +`aws.string.withAssessmentId` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the assessment_id field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `assessment_id` field. + + +### fn withDescription + +```ts +withDescription() +``` + +`aws.string.withDescription` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the description field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `description` field. + + +### fn withName + +```ts +withName() +``` + +`aws.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. diff --git a/docs/4.x/autoscaling_group.md b/docs/4.x/autoscaling_group.md index 2b80e37b..e8f5b2ae 100644 --- a/docs/4.x/autoscaling_group.md +++ b/docs/4.x/autoscaling_group.md @@ -21,6 +21,7 @@ This package contains functions and utilities for setting up the resource using * [`fn withDefaultCooldown()`](#fn-withdefaultcooldown) * [`fn withDefaultInstanceWarmup()`](#fn-withdefaultinstancewarmup) * [`fn withDesiredCapacity()`](#fn-withdesiredcapacity) +* [`fn withDesiredCapacityType()`](#fn-withdesiredcapacitytype) * [`fn withEnabledMetrics()`](#fn-withenabledmetrics) * [`fn withForceDelete()`](#fn-withforcedelete) * [`fn withForceDeleteWarmPool()`](#fn-withforcedeletewarmpool) @@ -141,6 +142,7 @@ or `$` to refer to the root object. Instead, make an explicit outer object using - `default_cooldown` (`number`): Set the `default_cooldown` field on the resulting resource block. When `null`, the `default_cooldown` field will be omitted from the resulting object. - `default_instance_warmup` (`number`): Set the `default_instance_warmup` field on the resulting resource block. When `null`, the `default_instance_warmup` field will be omitted from the resulting object. - `desired_capacity` (`number`): Set the `desired_capacity` field on the resulting resource block. When `null`, the `desired_capacity` field will be omitted from the resulting object. + - `desired_capacity_type` (`string`): Set the `desired_capacity_type` field on the resulting resource block. When `null`, the `desired_capacity_type` field will be omitted from the resulting object. - `enabled_metrics` (`list`): Set the `enabled_metrics` field on the resulting resource block. When `null`, the `enabled_metrics` field will be omitted from the resulting object. - `force_delete` (`bool`): Set the `force_delete` field on the resulting resource block. When `null`, the `force_delete` field will be omitted from the resulting object. - `force_delete_warm_pool` (`bool`): Set the `force_delete_warm_pool` field on the resulting resource block. When `null`, the `force_delete_warm_pool` field will be omitted from the resulting object. @@ -201,6 +203,7 @@ injecting into a complete block. - `default_cooldown` (`number`): Set the `default_cooldown` field on the resulting object. When `null`, the `default_cooldown` field will be omitted from the resulting object. - `default_instance_warmup` (`number`): Set the `default_instance_warmup` field on the resulting object. When `null`, the `default_instance_warmup` field will be omitted from the resulting object. - `desired_capacity` (`number`): Set the `desired_capacity` field on the resulting object. When `null`, the `desired_capacity` field will be omitted from the resulting object. + - `desired_capacity_type` (`string`): Set the `desired_capacity_type` field on the resulting object. When `null`, the `desired_capacity_type` field will be omitted from the resulting object. - `enabled_metrics` (`list`): Set the `enabled_metrics` field on the resulting object. When `null`, the `enabled_metrics` field will be omitted from the resulting object. - `force_delete` (`bool`): Set the `force_delete` field on the resulting object. When `null`, the `force_delete` field will be omitted from the resulting object. - `force_delete_warm_pool` (`bool`): Set the `force_delete_warm_pool` field on the resulting object. When `null`, the `force_delete_warm_pool` field will be omitted from the resulting object. @@ -333,6 +336,22 @@ Terraform resource block to set or update the desired_capacity field. - `value` (`number`): The value to set for the `desired_capacity` field. +### fn withDesiredCapacityType + +```ts +withDesiredCapacityType() +``` + +`aws.string.withDesiredCapacityType` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the desired_capacity_type field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `desired_capacity_type` field. + + ### fn withEnabledMetrics ```ts diff --git a/docs/4.x/data/index.md b/docs/4.x/data/index.md index 34383263..76f6daec 100644 --- a/docs/4.x/data/index.md +++ b/docs/4.x/data/index.md @@ -367,6 +367,7 @@ permalink: /data/ * [s3_bucket_policy](s3_bucket_policy.md) * [s3_object](s3_object.md) * [s3_objects](s3_objects.md) +* [s3control_multi_region_access_point](s3control_multi_region_access_point.md) * [sagemaker_prebuilt_ecr_image](sagemaker_prebuilt_ecr_image.md) * [secretsmanager_random_password](secretsmanager_random_password.md) * [secretsmanager_secret](secretsmanager_secret.md) diff --git a/docs/4.x/data/kms_secrets.md b/docs/4.x/data/kms_secrets.md index f09a99ac..efb70e88 100644 --- a/docs/4.x/data/kms_secrets.md +++ b/docs/4.x/data/kms_secrets.md @@ -134,7 +134,9 @@ Terraform sub block. **Args**: - `context` (`obj`): Set the `context` field on the resulting object. When `null`, the `context` field will be omitted from the resulting object. + - `encryption_algorithm` (`string`): Set the `encryption_algorithm` field on the resulting object. When `null`, the `encryption_algorithm` field will be omitted from the resulting object. - `grant_tokens` (`list`): Set the `grant_tokens` field on the resulting object. When `null`, the `grant_tokens` field will be omitted from the resulting object. + - `key_id` (`string`): Set the `key_id` field on the resulting object. When `null`, the `key_id` field will be omitted from the resulting object. - `name` (`string`): Set the `name` field on the resulting object. - `payload` (`string`): Set the `payload` field on the resulting object. diff --git a/docs/4.x/data/s3control_multi_region_access_point.md b/docs/4.x/data/s3control_multi_region_access_point.md new file mode 100644 index 00000000..c6f2dfc3 --- /dev/null +++ b/docs/4.x/data/s3control_multi_region_access_point.md @@ -0,0 +1,111 @@ +--- +permalink: /data/s3control_multi_region_access_point/ +--- + +# data.s3control_multi_region_access_point + +`s3control_multi_region_access_point` represents the `aws_s3control_multi_region_access_point` Terraform data source. + + + +This package contains functions and utilities for setting up the data source using Jsonnet code. + + +## Index + +* [`fn new()`](#fn-new) +* [`fn newAttrs()`](#fn-newattrs) +* [`fn withAccountId()`](#fn-withaccountid) +* [`fn withName()`](#fn-withname) + +## Fields + +### fn new + +```ts +new() +``` + + +`aws.data.s3control_multi_region_access_point.new` injects a new `data_aws_s3control_multi_region_access_point` Terraform `data source` +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 + aws.data.s3control_multi_region_access_point.new('some_id') + +You can get the reference to the `id` field of the created `aws.data.s3control_multi_region_access_point` using the reference: + + $._ref.data_aws_s3control_multi_region_access_point.some_id.get('id') + +This is the same as directly entering `"${ data_aws_s3control_multi_region_access_point.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**: + - `dataSrcLabel` (`string`): The name label of the block. + - `account_id` (`string`): Set the `account_id` field on the resulting data source block. When `null`, the `account_id` field will be omitted from the resulting object. + - `name` (`string`): Set the `name` field on the resulting data source block. + +**Returns**: +- A mixin object that injects the new data source into the root Terraform configuration. + + +### fn newAttrs + +```ts +newAttrs() +``` + + +`aws.data.s3control_multi_region_access_point.newAttrs` constructs a new object with attributes and blocks configured for the `s3control_multi_region_access_point` +Terraform data source. + +Unlike [aws.data.s3control_multi_region_access_point.new](#fn-new), this function will not inject the `data source` +block into the root Terraform document. Instead, this must be passed in as the `attrs` argument for the +[tf.withData](https://github.com/tf-libsonnet/core/tree/main/docs#fn-withdata) 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**: + - `account_id` (`string`): Set the `account_id` field on the resulting object. When `null`, the `account_id` field will be omitted from the resulting object. + - `name` (`string`): Set the `name` field on the resulting object. + +**Returns**: + - 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 `s3control_multi_region_access_point` data source into the root Terraform configuration. + + +### fn withAccountId + +```ts +withAccountId() +``` + +`aws.string.withAccountId` constructs a mixin object that can be merged into the `string` +Terraform data source block to set or update the account_id field. + + + +**Args**: + - `dataSrcLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `account_id` field. + + +### fn withName + +```ts +withName() +``` + +`aws.string.withName` constructs a mixin object that can be merged into the `string` +Terraform data source block to set or update the name field. + + + +**Args**: + - `dataSrcLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `name` field. diff --git a/docs/4.x/dms_endpoint.md b/docs/4.x/dms_endpoint.md index be69c1e1..b1595835 100644 --- a/docs/4.x/dms_endpoint.md +++ b/docs/4.x/dms_endpoint.md @@ -961,7 +961,8 @@ Terraform sub block. - `encoding_type` (`string`): Set the `encoding_type` field on the resulting object. When `null`, the `encoding_type` field will be omitted from the resulting object. - `encryption_mode` (`string`): Set the `encryption_mode` field on the resulting object. When `null`, the `encryption_mode` field will be omitted from the resulting object. - `external_table_definition` (`string`): Set the `external_table_definition` field on the resulting object. When `null`, the `external_table_definition` field will be omitted from the resulting object. - - `ignore_headers_row` (`number`): Set the `ignore_headers_row` field on the resulting object. When `null`, the `ignore_headers_row` field will be omitted from the resulting object. + - `ignore_header_rows` (`number`): Set the `ignore_header_rows` field on the resulting object. When `null`, the `ignore_header_rows` field will be omitted from the resulting object. + - `ignore_headers_row` (`number`): This setting has no effect, is deprecated, and will be removed in a future version When `null`, the `ignore_headers_row` field will be omitted from the resulting object. - `include_op_for_full_load` (`bool`): Set the `include_op_for_full_load` field on the resulting object. When `null`, the `include_op_for_full_load` field will be omitted from the resulting object. - `max_file_size` (`number`): Set the `max_file_size` field on the resulting object. When `null`, the `max_file_size` field will be omitted from the resulting object. - `parquet_timestamp_in_millisecond` (`bool`): Set the `parquet_timestamp_in_millisecond` field on the resulting object. When `null`, the `parquet_timestamp_in_millisecond` field will be omitted from the resulting object. diff --git a/docs/4.x/ec2_instance_state.md b/docs/4.x/ec2_instance_state.md new file mode 100644 index 00000000..ad70af86 --- /dev/null +++ b/docs/4.x/ec2_instance_state.md @@ -0,0 +1,197 @@ +--- +permalink: /ec2_instance_state/ +--- + +# ec2_instance_state + +`ec2_instance_state` represents the `aws_ec2_instance_state` 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 withForce()`](#fn-withforce) +* [`fn withInstanceId()`](#fn-withinstanceid) +* [`fn withState()`](#fn-withstate) +* [`fn withTimeouts()`](#fn-withtimeouts) +* [`fn withTimeoutsMixin()`](#fn-withtimeoutsmixin) +* [`obj timeouts`](#obj-timeouts) + * [`fn new()`](#fn-timeoutsnew) + +## Fields + +### fn new + +```ts +new() +``` + + +`aws.ec2_instance_state.new` injects a new `aws_ec2_instance_state` 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 + aws.ec2_instance_state.new('some_id') + +You can get the reference to the `id` field of the created `aws.ec2_instance_state` using the reference: + + $._ref.aws_ec2_instance_state.some_id.get('id') + +This is the same as directly entering `"${ aws_ec2_instance_state.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. + - `force` (`bool`): Set the `force` field on the resulting resource block. When `null`, the `force` field will be omitted from the resulting object. + - `instance_id` (`string`): Set the `instance_id` field on the resulting resource block. + - `state` (`string`): Set the `state` field on the resulting resource block. + - `timeouts` (`obj`): Set the `timeouts` field on the resulting resource block. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ec2_instance_state.timeouts.new](#fn-timeoutsnew) constructor. + +**Returns**: +- A mixin object that injects the new resource into the root Terraform configuration. + + +### fn newAttrs + +```ts +newAttrs() +``` + + +`aws.ec2_instance_state.newAttrs` constructs a new object with attributes and blocks configured for the `ec2_instance_state` +Terraform resource. + +Unlike [aws.ec2_instance_state.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**: + - `force` (`bool`): Set the `force` field on the resulting object. When `null`, the `force` field will be omitted from the resulting object. + - `instance_id` (`string`): Set the `instance_id` field on the resulting object. + - `state` (`string`): Set the `state` field on the resulting object. + - `timeouts` (`obj`): Set the `timeouts` field on the resulting object. When `null`, the `timeouts` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ec2_instance_state.timeouts.new](#fn-timeoutsnew) constructor. + +**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 `ec2_instance_state` resource into the root Terraform configuration. + + +### fn withForce + +```ts +withForce() +``` + +`aws.bool.withForce` constructs a mixin object that can be merged into the `bool` +Terraform resource block to set or update the force field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`bool`): The value to set for the `force` field. + + +### fn withInstanceId + +```ts +withInstanceId() +``` + +`aws.string.withInstanceId` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the instance_id field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `instance_id` field. + + +### fn withState + +```ts +withState() +``` + +`aws.string.withState` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the state field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `state` field. + + +### fn withTimeouts + +```ts +withTimeouts() +``` + +`aws.obj.withTimeouts` constructs a mixin object that can be merged into the `obj` +Terraform resource block to set or update the timeouts field. + +This function will replace the map with the passed in `value`. If you wish to instead merge the +passed in value to the existing map, use the [aws.obj.withTimeoutsMixin](TODO) function. + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`obj`): The value to set for the `timeouts` field. + + +### fn withTimeoutsMixin + +```ts +withTimeoutsMixin() +``` + +`aws.obj.withTimeoutsMixin` constructs a mixin object that can be merged into the `obj` +Terraform resource block to set or update the timeouts field. + +This function will merge the passed in value to the existing map. If you wish +to instead replace the entire map with the passed in `value`, use the [aws.obj.withTimeouts](TODO) +function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`obj`): The value to set for the `timeouts` field. + + +## obj timeouts + + + +### fn timeouts.new + +```ts +new() +``` + + +`aws.ec2_instance_state.timeouts.new` constructs a new object with attributes and blocks configured for the `timeouts` +Terraform sub block. + + + +**Args**: + - `create` (`string`): Set the `create` field on the resulting object. When `null`, the `create` field will be omitted from the resulting object. + - `delete` (`string`): Set the `delete` field on the resulting object. When `null`, the `delete` field will be omitted from the resulting object. + - `update` (`string`): Set the `update` field on the resulting object. When `null`, the `update` field will be omitted from the resulting object. + +**Returns**: + - An attribute object that represents the `timeouts` sub block. diff --git a/docs/4.x/ecs_service.md b/docs/4.x/ecs_service.md index 0691028a..52ac6df1 100644 --- a/docs/4.x/ecs_service.md +++ b/docs/4.x/ecs_service.md @@ -15,6 +15,8 @@ This package contains functions and utilities for setting up the resource using * [`fn new()`](#fn-new) * [`fn newAttrs()`](#fn-newattrs) +* [`fn withAlarms()`](#fn-withalarms) +* [`fn withAlarmsMixin()`](#fn-withalarmsmixin) * [`fn withCapacityProviderStrategy()`](#fn-withcapacityproviderstrategy) * [`fn withCapacityProviderStrategyMixin()`](#fn-withcapacityproviderstrategymixin) * [`fn withCluster()`](#fn-withcluster) @@ -54,6 +56,8 @@ This package contains functions and utilities for setting up the resource using * [`fn withTimeoutsMixin()`](#fn-withtimeoutsmixin) * [`fn withTriggers()`](#fn-withtriggers) * [`fn withWaitForSteadyState()`](#fn-withwaitforsteadystate) +* [`obj alarms`](#obj-alarms) + * [`fn new()`](#fn-alarmsnew) * [`obj capacity_provider_strategy`](#obj-capacity_provider_strategy) * [`fn new()`](#fn-capacity_provider_strategynew) * [`obj deployment_circuit_breaker`](#obj-deployment_circuit_breaker) @@ -131,6 +135,7 @@ or `$` to refer to the root object. Instead, make an explicit outer object using - `task_definition` (`string`): Set the `task_definition` field on the resulting resource block. When `null`, the `task_definition` field will be omitted from the resulting object. - `triggers` (`obj`): Set the `triggers` field on the resulting resource block. When `null`, the `triggers` field will be omitted from the resulting object. - `wait_for_steady_state` (`bool`): Set the `wait_for_steady_state` field on the resulting resource block. When `null`, the `wait_for_steady_state` field will be omitted from the resulting object. + - `alarms` (`list[obj]`): Set the `alarms` field on the resulting resource block. When `null`, the `alarms` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.alarms.new](#fn-alarmsnew) constructor. - `capacity_provider_strategy` (`list[obj]`): Set the `capacity_provider_strategy` field on the resulting resource block. When `null`, the `capacity_provider_strategy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.capacity_provider_strategy.new](#fn-capacity_provider_strategynew) constructor. - `deployment_circuit_breaker` (`list[obj]`): Set the `deployment_circuit_breaker` field on the resulting resource block. When `null`, the `deployment_circuit_breaker` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_circuit_breaker.new](#fn-deployment_circuit_breakernew) constructor. - `deployment_controller` (`list[obj]`): Set the `deployment_controller` field on the resulting resource block. When `null`, the `deployment_controller` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_controller.new](#fn-deployment_controllernew) constructor. @@ -183,6 +188,7 @@ injecting into a complete block. - `task_definition` (`string`): Set the `task_definition` field on the resulting object. When `null`, the `task_definition` field will be omitted from the resulting object. - `triggers` (`obj`): Set the `triggers` field on the resulting object. When `null`, the `triggers` field will be omitted from the resulting object. - `wait_for_steady_state` (`bool`): Set the `wait_for_steady_state` field on the resulting object. When `null`, the `wait_for_steady_state` field will be omitted from the resulting object. + - `alarms` (`list[obj]`): Set the `alarms` field on the resulting object. When `null`, the `alarms` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.alarms.new](#fn-alarmsnew) constructor. - `capacity_provider_strategy` (`list[obj]`): Set the `capacity_provider_strategy` field on the resulting object. When `null`, the `capacity_provider_strategy` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.capacity_provider_strategy.new](#fn-capacity_provider_strategynew) constructor. - `deployment_circuit_breaker` (`list[obj]`): Set the `deployment_circuit_breaker` field on the resulting object. When `null`, the `deployment_circuit_breaker` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_circuit_breaker.new](#fn-deployment_circuit_breakernew) constructor. - `deployment_controller` (`list[obj]`): Set the `deployment_controller` field on the resulting object. When `null`, the `deployment_controller` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.ecs_service.deployment_controller.new](#fn-deployment_controllernew) constructor. @@ -198,6 +204,43 @@ injecting into a complete block. - 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 `ecs_service` resource into the root Terraform configuration. +### fn withAlarms + +```ts +withAlarms() +``` + +`aws.list[obj].withAlarms` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the alarms field. + +This function will replace the array with the passed in `value`. If you wish to instead append the +passed in value to the existing array, use the [aws.list[obj].withAlarmsMixin](TODO) function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `alarms` field. + + +### fn withAlarmsMixin + +```ts +withAlarmsMixin() +``` + +`aws.list[obj].withAlarmsMixin` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the alarms field. + +This function will append the passed in array or object to the existing array. If you wish +to instead replace the array with the passed in `value`, use the [aws.list[obj].withAlarms](TODO) +function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `alarms` field. + + ### fn withCapacityProviderStrategy ```ts @@ -871,6 +914,31 @@ Terraform resource block to set or update the wait_for_steady_state field. - `value` (`bool`): The value to set for the `wait_for_steady_state` field. +## obj alarms + + + +### fn alarms.new + +```ts +new() +``` + + +`aws.ecs_service.alarms.new` constructs a new object with attributes and blocks configured for the `alarms` +Terraform sub block. + + + +**Args**: + - `alarm_names` (`list`): Set the `alarm_names` field on the resulting object. + - `enable` (`bool`): Set the `enable` field on the resulting object. + - `rollback` (`bool`): Set the `rollback` field on the resulting object. + +**Returns**: + - An attribute object that represents the `alarms` sub block. + + ## obj capacity_provider_strategy diff --git a/docs/4.x/lightsail_bucket.md b/docs/4.x/lightsail_bucket.md new file mode 100644 index 00000000..cfb87cdf --- /dev/null +++ b/docs/4.x/lightsail_bucket.md @@ -0,0 +1,149 @@ +--- +permalink: /lightsail_bucket/ +--- + +# lightsail_bucket + +`lightsail_bucket` represents the `aws_lightsail_bucket` 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 withBundleId()`](#fn-withbundleid) +* [`fn withName()`](#fn-withname) +* [`fn withTags()`](#fn-withtags) +* [`fn withTagsAll()`](#fn-withtagsall) + +## Fields + +### fn new + +```ts +new() +``` + + +`aws.lightsail_bucket.new` injects a new `aws_lightsail_bucket` 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 + aws.lightsail_bucket.new('some_id') + +You can get the reference to the `id` field of the created `aws.lightsail_bucket` using the reference: + + $._ref.aws_lightsail_bucket.some_id.get('id') + +This is the same as directly entering `"${ aws_lightsail_bucket.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. + - `bundle_id` (`string`): Set the `bundle_id` field on the resulting resource block. + - `name` (`string`): Set the `name` field on the resulting resource block. + - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object. + - `tags_all` (`obj`): Set the `tags_all` field on the resulting resource block. When `null`, the `tags_all` 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() +``` + + +`aws.lightsail_bucket.newAttrs` constructs a new object with attributes and blocks configured for the `lightsail_bucket` +Terraform resource. + +Unlike [aws.lightsail_bucket.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**: + - `bundle_id` (`string`): Set the `bundle_id` field on the resulting object. + - `name` (`string`): Set the `name` field on the resulting object. + - `tags` (`obj`): Set the `tags` field on the resulting object. When `null`, the `tags` field will be omitted from the resulting object. + - `tags_all` (`obj`): Set the `tags_all` field on the resulting object. When `null`, the `tags_all` 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 `lightsail_bucket` resource into the root Terraform configuration. + + +### fn withBundleId + +```ts +withBundleId() +``` + +`aws.string.withBundleId` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the bundle_id field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `bundle_id` field. + + +### fn withName + +```ts +withName() +``` + +`aws.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 withTags + +```ts +withTags() +``` + +`aws.obj.withTags` constructs a mixin object that can be merged into the `obj` +Terraform resource block to set or update the tags field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`obj`): The value to set for the `tags` field. + + +### fn withTagsAll + +```ts +withTagsAll() +``` + +`aws.obj.withTagsAll` constructs a mixin object that can be merged into the `obj` +Terraform resource block to set or update the tags_all field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`obj`): The value to set for the `tags_all` field. diff --git a/docs/4.x/lightsail_database.md b/docs/4.x/lightsail_database.md index 96de99a6..2685148a 100644 --- a/docs/4.x/lightsail_database.md +++ b/docs/4.x/lightsail_database.md @@ -62,7 +62,7 @@ or `$` to refer to the root object. Instead, make an explicit outer object using **Args**: - `resourceLabel` (`string`): The name label of the block. - `apply_immediately` (`bool`): Set the `apply_immediately` field on the resulting resource block. When `null`, the `apply_immediately` field will be omitted from the resulting object. - - `availability_zone` (`string`): Set the `availability_zone` field on the resulting resource block. + - `availability_zone` (`string`): Set the `availability_zone` field on the resulting resource block. When `null`, the `availability_zone` field will be omitted from the resulting object. - `backup_retention_enabled` (`bool`): Set the `backup_retention_enabled` field on the resulting resource block. When `null`, the `backup_retention_enabled` field will be omitted from the resulting object. - `blueprint_id` (`string`): Set the `blueprint_id` field on the resulting resource block. - `bundle_id` (`string`): Set the `bundle_id` field on the resulting resource block. @@ -101,7 +101,7 @@ injecting into a complete block. **Args**: - `apply_immediately` (`bool`): Set the `apply_immediately` field on the resulting object. When `null`, the `apply_immediately` field will be omitted from the resulting object. - - `availability_zone` (`string`): Set the `availability_zone` field on the resulting object. + - `availability_zone` (`string`): Set the `availability_zone` field on the resulting object. When `null`, the `availability_zone` field will be omitted from the resulting object. - `backup_retention_enabled` (`bool`): Set the `backup_retention_enabled` field on the resulting object. When `null`, the `backup_retention_enabled` field will be omitted from the resulting object. - `blueprint_id` (`string`): Set the `blueprint_id` field on the resulting object. - `bundle_id` (`string`): Set the `bundle_id` field on the resulting object. diff --git a/docs/4.x/lightsail_instance.md b/docs/4.x/lightsail_instance.md index 7aa9abb1..00fad496 100644 --- a/docs/4.x/lightsail_instance.md +++ b/docs/4.x/lightsail_instance.md @@ -15,6 +15,8 @@ This package contains functions and utilities for setting up the resource using * [`fn new()`](#fn-new) * [`fn newAttrs()`](#fn-newattrs) +* [`fn withAddOn()`](#fn-withaddon) +* [`fn withAddOnMixin()`](#fn-withaddonmixin) * [`fn withAvailabilityZone()`](#fn-withavailabilityzone) * [`fn withBlueprintId()`](#fn-withblueprintid) * [`fn withBundleId()`](#fn-withbundleid) @@ -24,6 +26,8 @@ This package contains functions and utilities for setting up the resource using * [`fn withTags()`](#fn-withtags) * [`fn withTagsAll()`](#fn-withtagsall) * [`fn withUserData()`](#fn-withuserdata) +* [`obj add_on`](#obj-add_on) + * [`fn new()`](#fn-add_onnew) ## Fields @@ -63,6 +67,7 @@ or `$` to refer to the root object. Instead, make an explicit outer object using - `tags` (`obj`): Set the `tags` field on the resulting resource block. When `null`, the `tags` field will be omitted from the resulting object. - `tags_all` (`obj`): Set the `tags_all` field on the resulting resource block. When `null`, the `tags_all` field will be omitted from the resulting object. - `user_data` (`string`): Set the `user_data` field on the resulting resource block. When `null`, the `user_data` field will be omitted from the resulting object. + - `add_on` (`list[obj]`): Set the `add_on` field on the resulting resource block. When `null`, the `add_on` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.lightsail_instance.add_on.new](#fn-add_onnew) constructor. **Returns**: - A mixin object that injects the new resource into the root Terraform configuration. @@ -95,11 +100,49 @@ injecting into a complete block. - `tags` (`obj`): Set the `tags` field on the resulting object. When `null`, the `tags` field will be omitted from the resulting object. - `tags_all` (`obj`): Set the `tags_all` field on the resulting object. When `null`, the `tags_all` field will be omitted from the resulting object. - `user_data` (`string`): Set the `user_data` field on the resulting object. When `null`, the `user_data` field will be omitted from the resulting object. + - `add_on` (`list[obj]`): Set the `add_on` field on the resulting object. When `null`, the `add_on` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.lightsail_instance.add_on.new](#fn-add_onnew) constructor. **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 `lightsail_instance` resource into the root Terraform configuration. +### fn withAddOn + +```ts +withAddOn() +``` + +`aws.list[obj].withAddOn` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the add_on field. + +This function will replace the array with the passed in `value`. If you wish to instead append the +passed in value to the existing array, use the [aws.list[obj].withAddOnMixin](TODO) function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `add_on` field. + + +### fn withAddOnMixin + +```ts +withAddOnMixin() +``` + +`aws.list[obj].withAddOnMixin` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the add_on field. + +This function will append the passed in array or object to the existing array. If you wish +to instead replace the array with the passed in `value`, use the [aws.list[obj].withAddOn](TODO) +function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `add_on` field. + + ### fn withAvailabilityZone ```ts @@ -242,3 +285,28 @@ Terraform resource block to set or update the user_data field. **Args**: - `resourceLabel` (`string`): The name label of the block to update. - `value` (`string`): The value to set for the `user_data` field. + + +## obj add_on + + + +### fn add_on.new + +```ts +new() +``` + + +`aws.lightsail_instance.add_on.new` constructs a new object with attributes and blocks configured for the `add_on` +Terraform sub block. + + + +**Args**: + - `snapshot_time` (`string`): Set the `snapshot_time` field on the resulting object. + - `status` (`string`): Set the `status` field on the resulting object. + - `type` (`string`): Set the `type` field on the resulting object. + +**Returns**: + - An attribute object that represents the `add_on` sub block. diff --git a/docs/4.x/lightsail_instance_public_ports.md b/docs/4.x/lightsail_instance_public_ports.md index 8246d50c..1442afd1 100644 --- a/docs/4.x/lightsail_instance_public_ports.md +++ b/docs/4.x/lightsail_instance_public_ports.md @@ -152,6 +152,7 @@ Terraform sub block. **Args**: + - `cidr_list_aliases` (`list`): Set the `cidr_list_aliases` field on the resulting object. When `null`, the `cidr_list_aliases` field will be omitted from the resulting object. - `cidrs` (`list`): Set the `cidrs` field on the resulting object. When `null`, the `cidrs` field will be omitted from the resulting object. - `from_port` (`number`): Set the `from_port` field on the resulting object. - `ipv6_cidrs` (`list`): Set the `ipv6_cidrs` field on the resulting object. When `null`, the `ipv6_cidrs` field will be omitted from the resulting object. diff --git a/docs/4.x/s3_access_point.md b/docs/4.x/s3_access_point.md index b8a96cf8..a5b5fc92 100644 --- a/docs/4.x/s3_access_point.md +++ b/docs/4.x/s3_access_point.md @@ -17,6 +17,7 @@ This package contains functions and utilities for setting up the resource using * [`fn newAttrs()`](#fn-newattrs) * [`fn withAccountId()`](#fn-withaccountid) * [`fn withBucket()`](#fn-withbucket) +* [`fn withBucketAccountId()`](#fn-withbucketaccountid) * [`fn withName()`](#fn-withname) * [`fn withPolicy()`](#fn-withpolicy) * [`fn withPublicAccessBlockConfiguration()`](#fn-withpublicaccessblockconfiguration) @@ -59,6 +60,7 @@ or `$` to refer to the root object. Instead, make an explicit outer object using - `resourceLabel` (`string`): The name label of the block. - `account_id` (`string`): Set the `account_id` field on the resulting resource block. When `null`, the `account_id` field will be omitted from the resulting object. - `bucket` (`string`): Set the `bucket` field on the resulting resource block. + - `bucket_account_id` (`string`): Set the `bucket_account_id` field on the resulting resource block. When `null`, the `bucket_account_id` field will be omitted from the resulting object. - `name` (`string`): Set the `name` field on the resulting resource block. - `policy` (`string`): Set the `policy` field on the resulting resource block. When `null`, the `policy` field will be omitted from the resulting object. - `public_access_block_configuration` (`list[obj]`): Set the `public_access_block_configuration` field on the resulting resource block. When `null`, the `public_access_block_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3_access_point.public_access_block_configuration.new](#fn-public_access_block_configurationnew) constructor. @@ -88,6 +90,7 @@ injecting into a complete block. **Args**: - `account_id` (`string`): Set the `account_id` field on the resulting object. When `null`, the `account_id` field will be omitted from the resulting object. - `bucket` (`string`): Set the `bucket` field on the resulting object. + - `bucket_account_id` (`string`): Set the `bucket_account_id` field on the resulting object. When `null`, the `bucket_account_id` field will be omitted from the resulting object. - `name` (`string`): Set the `name` field on the resulting object. - `policy` (`string`): Set the `policy` field on the resulting object. When `null`, the `policy` field will be omitted from the resulting object. - `public_access_block_configuration` (`list[obj]`): Set the `public_access_block_configuration` field on the resulting object. When `null`, the `public_access_block_configuration` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3_access_point.public_access_block_configuration.new](#fn-public_access_block_configurationnew) constructor. @@ -129,6 +132,22 @@ Terraform resource block to set or update the bucket field. - `value` (`string`): The value to set for the `bucket` field. +### fn withBucketAccountId + +```ts +withBucketAccountId() +``` + +`aws.string.withBucketAccountId` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the bucket_account_id field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `bucket_account_id` field. + + ### fn withName ```ts diff --git a/docs/4.x/s3control_storage_lens_configuration.md b/docs/4.x/s3control_storage_lens_configuration.md index 658630e6..8ab1cd12 100644 --- a/docs/4.x/s3control_storage_lens_configuration.md +++ b/docs/4.x/s3control_storage_lens_configuration.md @@ -27,16 +27,28 @@ This package contains functions and utilities for setting up the resource using * [`fn new()`](#fn-storage_lens_configurationaccount_levelnew) * [`obj storage_lens_configuration.account_level.activity_metrics`](#obj-storage_lens_configurationaccount_levelactivity_metrics) * [`fn new()`](#fn-storage_lens_configurationaccount_levelactivity_metricsnew) + * [`obj storage_lens_configuration.account_level.advanced_cost_optimization_metrics`](#obj-storage_lens_configurationaccount_leveladvanced_cost_optimization_metrics) + * [`fn new()`](#fn-storage_lens_configurationaccount_leveladvanced_cost_optimization_metricsnew) + * [`obj storage_lens_configuration.account_level.advanced_data_protection_metrics`](#obj-storage_lens_configurationaccount_leveladvanced_data_protection_metrics) + * [`fn new()`](#fn-storage_lens_configurationaccount_leveladvanced_data_protection_metricsnew) * [`obj storage_lens_configuration.account_level.bucket_level`](#obj-storage_lens_configurationaccount_levelbucket_level) * [`fn new()`](#fn-storage_lens_configurationaccount_levelbucket_levelnew) * [`obj storage_lens_configuration.account_level.bucket_level.activity_metrics`](#obj-storage_lens_configurationaccount_levelbucket_levelactivity_metrics) * [`fn new()`](#fn-storage_lens_configurationaccount_levelbucket_levelactivity_metricsnew) + * [`obj storage_lens_configuration.account_level.bucket_level.advanced_cost_optimization_metrics`](#obj-storage_lens_configurationaccount_levelbucket_leveladvanced_cost_optimization_metrics) + * [`fn new()`](#fn-storage_lens_configurationaccount_levelbucket_leveladvanced_cost_optimization_metricsnew) + * [`obj storage_lens_configuration.account_level.bucket_level.advanced_data_protection_metrics`](#obj-storage_lens_configurationaccount_levelbucket_leveladvanced_data_protection_metrics) + * [`fn new()`](#fn-storage_lens_configurationaccount_levelbucket_leveladvanced_data_protection_metricsnew) + * [`obj storage_lens_configuration.account_level.bucket_level.detailed_status_code_metrics`](#obj-storage_lens_configurationaccount_levelbucket_leveldetailed_status_code_metrics) + * [`fn new()`](#fn-storage_lens_configurationaccount_levelbucket_leveldetailed_status_code_metricsnew) * [`obj storage_lens_configuration.account_level.bucket_level.prefix_level`](#obj-storage_lens_configurationaccount_levelbucket_levelprefix_level) * [`fn new()`](#fn-storage_lens_configurationaccount_levelbucket_levelprefix_levelnew) * [`obj storage_lens_configuration.account_level.bucket_level.prefix_level.storage_metrics`](#obj-storage_lens_configurationaccount_levelbucket_levelprefix_levelstorage_metrics) * [`fn new()`](#fn-storage_lens_configurationaccount_levelbucket_levelprefix_levelstorage_metricsnew) * [`obj storage_lens_configuration.account_level.bucket_level.prefix_level.storage_metrics.selection_criteria`](#obj-storage_lens_configurationaccount_levelbucket_levelprefix_levelstorage_metricsselection_criteria) * [`fn new()`](#fn-storage_lens_configurationaccount_levelbucket_levelprefix_levelstorage_metricsselection_criterianew) + * [`obj storage_lens_configuration.account_level.detailed_status_code_metrics`](#obj-storage_lens_configurationaccount_leveldetailed_status_code_metrics) + * [`fn new()`](#fn-storage_lens_configurationaccount_leveldetailed_status_code_metricsnew) * [`obj storage_lens_configuration.aws_org`](#obj-storage_lens_configurationaws_org) * [`fn new()`](#fn-storage_lens_configurationaws_orgnew) * [`obj storage_lens_configuration.data_export`](#obj-storage_lens_configurationdata_export) @@ -270,7 +282,10 @@ Terraform sub block. **Args**: - `activity_metrics` (`list[obj]`): Set the `activity_metrics` field on the resulting object. When `null`, the `activity_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.activity_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationactivity_metricsnew) constructor. + - `advanced_cost_optimization_metrics` (`list[obj]`): Set the `advanced_cost_optimization_metrics` field on the resulting object. When `null`, the `advanced_cost_optimization_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.advanced_cost_optimization_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationadvanced_cost_optimization_metricsnew) constructor. + - `advanced_data_protection_metrics` (`list[obj]`): Set the `advanced_data_protection_metrics` field on the resulting object. When `null`, the `advanced_data_protection_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.advanced_data_protection_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationadvanced_data_protection_metricsnew) constructor. - `bucket_level` (`list[obj]`): Set the `bucket_level` field on the resulting object. When `null`, the `bucket_level` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.new](#fn-storage_lens_configurationstorage_lens_configurationbucket_levelnew) constructor. + - `detailed_status_code_metrics` (`list[obj]`): Set the `detailed_status_code_metrics` field on the resulting object. When `null`, the `detailed_status_code_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.detailed_status_code_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationdetailed_status_code_metricsnew) constructor. **Returns**: - An attribute object that represents the `account_level` sub block. @@ -299,6 +314,52 @@ Terraform sub block. - An attribute object that represents the `activity_metrics` sub block. +## obj storage_lens_configuration.account_level.advanced_cost_optimization_metrics + + + +### fn storage_lens_configuration.account_level.advanced_cost_optimization_metrics.new + +```ts +new() +``` + + +`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.advanced_cost_optimization_metrics.new` constructs a new object with attributes and blocks configured for the `advanced_cost_optimization_metrics` +Terraform sub block. + + + +**Args**: + - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object. + +**Returns**: + - An attribute object that represents the `advanced_cost_optimization_metrics` sub block. + + +## obj storage_lens_configuration.account_level.advanced_data_protection_metrics + + + +### fn storage_lens_configuration.account_level.advanced_data_protection_metrics.new + +```ts +new() +``` + + +`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.advanced_data_protection_metrics.new` constructs a new object with attributes and blocks configured for the `advanced_data_protection_metrics` +Terraform sub block. + + + +**Args**: + - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object. + +**Returns**: + - An attribute object that represents the `advanced_data_protection_metrics` sub block. + + ## obj storage_lens_configuration.account_level.bucket_level @@ -317,6 +378,9 @@ Terraform sub block. **Args**: - `activity_metrics` (`list[obj]`): Set the `activity_metrics` field on the resulting object. When `null`, the `activity_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.activity_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_levelactivity_metricsnew) constructor. + - `advanced_cost_optimization_metrics` (`list[obj]`): Set the `advanced_cost_optimization_metrics` field on the resulting object. When `null`, the `advanced_cost_optimization_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.advanced_cost_optimization_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_leveladvanced_cost_optimization_metricsnew) constructor. + - `advanced_data_protection_metrics` (`list[obj]`): Set the `advanced_data_protection_metrics` field on the resulting object. When `null`, the `advanced_data_protection_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.advanced_data_protection_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_leveladvanced_data_protection_metricsnew) constructor. + - `detailed_status_code_metrics` (`list[obj]`): Set the `detailed_status_code_metrics` field on the resulting object. When `null`, the `detailed_status_code_metrics` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.detailed_status_code_metrics.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_leveldetailed_status_code_metricsnew) constructor. - `prefix_level` (`list[obj]`): Set the `prefix_level` field on the resulting object. When `null`, the `prefix_level` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.prefix_level.new](#fn-storage_lens_configurationstorage_lens_configurationaccount_levelprefix_levelnew) constructor. **Returns**: @@ -346,6 +410,75 @@ Terraform sub block. - An attribute object that represents the `activity_metrics` sub block. +## obj storage_lens_configuration.account_level.bucket_level.advanced_cost_optimization_metrics + + + +### fn storage_lens_configuration.account_level.bucket_level.advanced_cost_optimization_metrics.new + +```ts +new() +``` + + +`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.advanced_cost_optimization_metrics.new` constructs a new object with attributes and blocks configured for the `advanced_cost_optimization_metrics` +Terraform sub block. + + + +**Args**: + - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object. + +**Returns**: + - An attribute object that represents the `advanced_cost_optimization_metrics` sub block. + + +## obj storage_lens_configuration.account_level.bucket_level.advanced_data_protection_metrics + + + +### fn storage_lens_configuration.account_level.bucket_level.advanced_data_protection_metrics.new + +```ts +new() +``` + + +`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.advanced_data_protection_metrics.new` constructs a new object with attributes and blocks configured for the `advanced_data_protection_metrics` +Terraform sub block. + + + +**Args**: + - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object. + +**Returns**: + - An attribute object that represents the `advanced_data_protection_metrics` sub block. + + +## obj storage_lens_configuration.account_level.bucket_level.detailed_status_code_metrics + + + +### fn storage_lens_configuration.account_level.bucket_level.detailed_status_code_metrics.new + +```ts +new() +``` + + +`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.bucket_level.detailed_status_code_metrics.new` constructs a new object with attributes and blocks configured for the `detailed_status_code_metrics` +Terraform sub block. + + + +**Args**: + - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object. + +**Returns**: + - An attribute object that represents the `detailed_status_code_metrics` sub block. + + ## obj storage_lens_configuration.account_level.bucket_level.prefix_level @@ -418,6 +551,29 @@ Terraform sub block. - An attribute object that represents the `selection_criteria` sub block. +## obj storage_lens_configuration.account_level.detailed_status_code_metrics + + + +### fn storage_lens_configuration.account_level.detailed_status_code_metrics.new + +```ts +new() +``` + + +`aws.s3control_storage_lens_configuration.storage_lens_configuration.account_level.detailed_status_code_metrics.new` constructs a new object with attributes and blocks configured for the `detailed_status_code_metrics` +Terraform sub block. + + + +**Args**: + - `enabled` (`bool`): Set the `enabled` field on the resulting object. When `null`, the `enabled` field will be omitted from the resulting object. + +**Returns**: + - An attribute object that represents the `detailed_status_code_metrics` sub block. + + ## obj storage_lens_configuration.aws_org diff --git a/docs/4.x/ssoadmin_instance_access_control_attributes.md b/docs/4.x/ssoadmin_instance_access_control_attributes.md new file mode 100644 index 00000000..5438bd02 --- /dev/null +++ b/docs/4.x/ssoadmin_instance_access_control_attributes.md @@ -0,0 +1,184 @@ +--- +permalink: /ssoadmin_instance_access_control_attributes/ +--- + +# ssoadmin_instance_access_control_attributes + +`ssoadmin_instance_access_control_attributes` represents the `aws_ssoadmin_instance_access_control_attributes` 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 withAttribute()`](#fn-withattribute) +* [`fn withAttributeMixin()`](#fn-withattributemixin) +* [`fn withInstanceArn()`](#fn-withinstancearn) +* [`obj attribute`](#obj-attribute) + * [`fn new()`](#fn-attributenew) + * [`obj attribute.value`](#obj-attributevalue) + * [`fn new()`](#fn-attributevaluenew) + +## Fields + +### fn new + +```ts +new() +``` + + +`aws.ssoadmin_instance_access_control_attributes.new` injects a new `aws_ssoadmin_instance_access_control_attributes` 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 + aws.ssoadmin_instance_access_control_attributes.new('some_id') + +You can get the reference to the `id` field of the created `aws.ssoadmin_instance_access_control_attributes` using the reference: + + $._ref.aws_ssoadmin_instance_access_control_attributes.some_id.get('id') + +This is the same as directly entering `"${ aws_ssoadmin_instance_access_control_attributes.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. + - `instance_arn` (`string`): Set the `instance_arn` field on the resulting resource block. + - `attribute` (`list[obj]`): Set the `attribute` field on the resulting resource block. When `null`, the `attribute` 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_instance_access_control_attributes.attribute.new](#fn-attributenew) constructor. + +**Returns**: +- A mixin object that injects the new resource into the root Terraform configuration. + + +### fn newAttrs + +```ts +newAttrs() +``` + + +`aws.ssoadmin_instance_access_control_attributes.newAttrs` constructs a new object with attributes and blocks configured for the `ssoadmin_instance_access_control_attributes` +Terraform resource. + +Unlike [aws.ssoadmin_instance_access_control_attributes.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**: + - `instance_arn` (`string`): Set the `instance_arn` field on the resulting object. + - `attribute` (`list[obj]`): Set the `attribute` field on the resulting object. When `null`, the `attribute` 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_instance_access_control_attributes.attribute.new](#fn-attributenew) constructor. + +**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 `ssoadmin_instance_access_control_attributes` resource into the root Terraform configuration. + + +### fn withAttribute + +```ts +withAttribute() +``` + +`aws.list[obj].withAttribute` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the attribute field. + +This function will replace the array with the passed in `value`. If you wish to instead append the +passed in value to the existing array, use the [aws.list[obj].withAttributeMixin](TODO) function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `attribute` field. + + +### fn withAttributeMixin + +```ts +withAttributeMixin() +``` + +`aws.list[obj].withAttributeMixin` constructs a mixin object that can be merged into the `list[obj]` +Terraform resource block to set or update the attribute field. + +This function will append the passed in array or object to the existing array. If you wish +to instead replace the array with the passed in `value`, use the [aws.list[obj].withAttribute](TODO) +function. + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`list[obj]`): The value to set for the `attribute` field. + + +### fn withInstanceArn + +```ts +withInstanceArn() +``` + +`aws.string.withInstanceArn` constructs a mixin object that can be merged into the `string` +Terraform resource block to set or update the instance_arn field. + + + +**Args**: + - `resourceLabel` (`string`): The name label of the block to update. + - `value` (`string`): The value to set for the `instance_arn` field. + + +## obj attribute + + + +### fn attribute.new + +```ts +new() +``` + + +`aws.ssoadmin_instance_access_control_attributes.attribute.new` constructs a new object with attributes and blocks configured for the `attribute` +Terraform sub block. + + + +**Args**: + - `key` (`string`): Set the `key` field on the resulting object. + - `value` (`list[obj]`): Set the `value` field on the resulting object. When `null`, the `value` 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_instance_access_control_attributes.attribute.value.new](#fn-attributevaluenew) constructor. + +**Returns**: + - An attribute object that represents the `attribute` sub block. + + +## obj attribute.value + + + +### fn attribute.value.new + +```ts +new() +``` + + +`aws.ssoadmin_instance_access_control_attributes.attribute.value.new` constructs a new object with attributes and blocks configured for the `value` +Terraform sub block. + + + +**Args**: + - `source` (`list`): Set the `source` field on the resulting object. + +**Returns**: + - An attribute object that represents the `value` sub block. diff --git a/docs/4.x/wafv2_rule_group.md b/docs/4.x/wafv2_rule_group.md index 90222a08..2123cb59 100644 --- a/docs/4.x/wafv2_rule_group.md +++ b/docs/4.x/wafv2_rule_group.md @@ -45,6 +45,12 @@ This package contains functions and utilities for setting up the resource using * [`fn new()`](#fn-ruleactionblockcustom_responsenew) * [`obj rule.action.block.custom_response.response_header`](#obj-ruleactionblockcustom_responseresponse_header) * [`fn new()`](#fn-ruleactionblockcustom_responseresponse_headernew) + * [`obj rule.action.captcha`](#obj-ruleactioncaptcha) + * [`fn new()`](#fn-ruleactioncaptchanew) + * [`obj rule.action.captcha.custom_request_handling`](#obj-ruleactioncaptchacustom_request_handling) + * [`fn new()`](#fn-ruleactioncaptchacustom_request_handlingnew) + * [`obj rule.action.captcha.custom_request_handling.insert_header`](#obj-ruleactioncaptchacustom_request_handlinginsert_header) + * [`fn new()`](#fn-ruleactioncaptchacustom_request_handlinginsert_headernew) * [`obj rule.action.count`](#obj-ruleactioncount) * [`fn new()`](#fn-ruleactioncountnew) * [`obj rule.action.count.custom_request_handling`](#obj-ruleactioncountcustom_request_handling) @@ -13238,6 +13244,7 @@ Terraform sub block. **Args**: - `allow` (`list[obj]`): Set the `allow` field on the resulting object. When `null`, the `allow` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.allow.new](#fn-ruleruleallownew) constructor. - `block` (`list[obj]`): Set the `block` field on the resulting object. When `null`, the `block` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.block.new](#fn-ruleruleblocknew) constructor. + - `captcha` (`list[obj]`): Set the `captcha` field on the resulting object. When `null`, the `captcha` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.captcha.new](#fn-rulerulecaptchanew) constructor. - `count` (`list[obj]`): Set the `count` field on the resulting object. When `null`, the `count` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.count.new](#fn-rulerulecountnew) constructor. **Returns**: @@ -13386,6 +13393,76 @@ Terraform sub block. - An attribute object that represents the `response_header` sub block. +## obj rule.action.captcha + + + +### fn rule.action.captcha.new + +```ts +new() +``` + + +`aws.wafv2_rule_group.rule.action.captcha.new` constructs a new object with attributes and blocks configured for the `captcha` +Terraform sub block. + + + +**Args**: + - `custom_request_handling` (`list[obj]`): Set the `custom_request_handling` field on the resulting object. When `null`, the `custom_request_handling` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.captcha.custom_request_handling.new](#fn-ruleruleactioncustom_request_handlingnew) constructor. + +**Returns**: + - An attribute object that represents the `captcha` sub block. + + +## obj rule.action.captcha.custom_request_handling + + + +### fn rule.action.captcha.custom_request_handling.new + +```ts +new() +``` + + +`aws.wafv2_rule_group.rule.action.captcha.custom_request_handling.new` constructs a new object with attributes and blocks configured for the `custom_request_handling` +Terraform sub block. + + + +**Args**: + - `insert_header` (`list[obj]`): Set the `insert_header` field on the resulting object. When `null`, the `insert_header` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_rule_group.rule.action.captcha.custom_request_handling.insert_header.new](#fn-ruleruleactioncaptchainsert_headernew) constructor. + +**Returns**: + - An attribute object that represents the `custom_request_handling` sub block. + + +## obj rule.action.captcha.custom_request_handling.insert_header + + + +### fn rule.action.captcha.custom_request_handling.insert_header.new + +```ts +new() +``` + + +`aws.wafv2_rule_group.rule.action.captcha.custom_request_handling.insert_header.new` constructs a new object with attributes and blocks configured for the `insert_header` +Terraform sub block. + + + +**Args**: + - `name` (`string`): Set the `name` field on the resulting object. + - `value` (`string`): Set the `value` field on the resulting object. + +**Returns**: + - An attribute object that represents the `insert_header` sub block. + + ## obj rule.action.count diff --git a/docs/4.x/wafv2_web_acl.md b/docs/4.x/wafv2_web_acl.md index fad88bf4..031e52f6 100644 --- a/docs/4.x/wafv2_web_acl.md +++ b/docs/4.x/wafv2_web_acl.md @@ -66,6 +66,12 @@ This package contains functions and utilities for setting up the resource using * [`fn new()`](#fn-ruleactioncaptchacustom_request_handlingnew) * [`obj rule.action.captcha.custom_request_handling.insert_header`](#obj-ruleactioncaptchacustom_request_handlinginsert_header) * [`fn new()`](#fn-ruleactioncaptchacustom_request_handlinginsert_headernew) + * [`obj rule.action.challenge`](#obj-ruleactionchallenge) + * [`fn new()`](#fn-ruleactionchallengenew) + * [`obj rule.action.challenge.custom_request_handling`](#obj-ruleactionchallengecustom_request_handling) + * [`fn new()`](#fn-ruleactionchallengecustom_request_handlingnew) + * [`obj rule.action.challenge.custom_request_handling.insert_header`](#obj-ruleactionchallengecustom_request_handlinginsert_header) + * [`fn new()`](#fn-ruleactionchallengecustom_request_handlinginsert_headernew) * [`obj rule.action.count`](#obj-ruleactioncount) * [`fn new()`](#fn-ruleactioncountnew) * [`obj rule.action.count.custom_request_handling`](#obj-ruleactioncountcustom_request_handling) @@ -3280,6 +3286,14 @@ This package contains functions and utilities for setting up the resource using * [`fn new()`](#fn-rulestatementmanaged_rule_group_statementnew) * [`obj rule.statement.managed_rule_group_statement.excluded_rule`](#obj-rulestatementmanaged_rule_group_statementexcluded_rule) * [`fn new()`](#fn-rulestatementmanaged_rule_group_statementexcluded_rulenew) + * [`obj rule.statement.managed_rule_group_statement.managed_rule_group_configs`](#obj-rulestatementmanaged_rule_group_statementmanaged_rule_group_configs) + * [`fn new()`](#fn-rulestatementmanaged_rule_group_statementmanaged_rule_group_configsnew) + * [`obj rule.statement.managed_rule_group_statement.managed_rule_group_configs.aws_managed_rules_bot_control_rule_set`](#obj-rulestatementmanaged_rule_group_statementmanaged_rule_group_configsaws_managed_rules_bot_control_rule_set) + * [`fn new()`](#fn-rulestatementmanaged_rule_group_statementmanaged_rule_group_configsaws_managed_rules_bot_control_rule_setnew) + * [`obj rule.statement.managed_rule_group_statement.managed_rule_group_configs.password_field`](#obj-rulestatementmanaged_rule_group_statementmanaged_rule_group_configspassword_field) + * [`fn new()`](#fn-rulestatementmanaged_rule_group_statementmanaged_rule_group_configspassword_fieldnew) + * [`obj rule.statement.managed_rule_group_statement.managed_rule_group_configs.username_field`](#obj-rulestatementmanaged_rule_group_statementmanaged_rule_group_configsusername_field) + * [`fn new()`](#fn-rulestatementmanaged_rule_group_statementmanaged_rule_group_configsusername_fieldnew) * [`obj rule.statement.managed_rule_group_statement.rule_action_override`](#obj-rulestatementmanaged_rule_group_statementrule_action_override) * [`fn new()`](#fn-rulestatementmanaged_rule_group_statementrule_action_overridenew) * [`obj rule.statement.managed_rule_group_statement.rule_action_override.action_to_use`](#obj-rulestatementmanaged_rule_group_statementrule_action_overrideaction_to_use) @@ -16634,6 +16648,7 @@ Terraform sub block. - `allow` (`list[obj]`): Set the `allow` field on the resulting object. When `null`, the `allow` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.allow.new](#fn-ruleruleallownew) constructor. - `block` (`list[obj]`): Set the `block` field on the resulting object. When `null`, the `block` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.block.new](#fn-ruleruleblocknew) constructor. - `captcha` (`list[obj]`): Set the `captcha` field on the resulting object. When `null`, the `captcha` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.captcha.new](#fn-rulerulecaptchanew) constructor. + - `challenge` (`list[obj]`): Set the `challenge` field on the resulting object. When `null`, the `challenge` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.challenge.new](#fn-rulerulechallengenew) constructor. - `count` (`list[obj]`): Set the `count` field on the resulting object. When `null`, the `count` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.count.new](#fn-rulerulecountnew) constructor. **Returns**: @@ -16844,6 +16859,76 @@ Terraform sub block. +**Args**: + - `name` (`string`): Set the `name` field on the resulting object. + - `value` (`string`): Set the `value` field on the resulting object. + +**Returns**: + - An attribute object that represents the `insert_header` sub block. + + +## obj rule.action.challenge + + + +### fn rule.action.challenge.new + +```ts +new() +``` + + +`aws.wafv2_web_acl.rule.action.challenge.new` constructs a new object with attributes and blocks configured for the `challenge` +Terraform sub block. + + + +**Args**: + - `custom_request_handling` (`list[obj]`): Set the `custom_request_handling` field on the resulting object. When `null`, the `custom_request_handling` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.challenge.custom_request_handling.new](#fn-ruleruleactioncustom_request_handlingnew) constructor. + +**Returns**: + - An attribute object that represents the `challenge` sub block. + + +## obj rule.action.challenge.custom_request_handling + + + +### fn rule.action.challenge.custom_request_handling.new + +```ts +new() +``` + + +`aws.wafv2_web_acl.rule.action.challenge.custom_request_handling.new` constructs a new object with attributes and blocks configured for the `custom_request_handling` +Terraform sub block. + + + +**Args**: + - `insert_header` (`list[obj]`): Set the `insert_header` field on the resulting object. When `null`, the `insert_header` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.action.challenge.custom_request_handling.insert_header.new](#fn-ruleruleactionchallengeinsert_headernew) constructor. + +**Returns**: + - An attribute object that represents the `custom_request_handling` sub block. + + +## obj rule.action.challenge.custom_request_handling.insert_header + + + +### fn rule.action.challenge.custom_request_handling.insert_header.new + +```ts +new() +``` + + +`aws.wafv2_web_acl.rule.action.challenge.custom_request_handling.insert_header.new` constructs a new object with attributes and blocks configured for the `insert_header` +Terraform sub block. + + + **Args**: - `name` (`string`): Set the `name` field on the resulting object. - `value` (`string`): Set the `value` field on the resulting object. @@ -53999,6 +54084,7 @@ Terraform sub block. - `vendor_name` (`string`): Set the `vendor_name` field on the resulting object. - `version` (`string`): Set the `version` field on the resulting object. When `null`, the `version` field will be omitted from the resulting object. - `excluded_rule` (`list[obj]`): Set the `excluded_rule` field on the resulting object. When `null`, the `excluded_rule` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.excluded_rule.new](#fn-rulerulestatementexcluded_rulenew) constructor. + - `managed_rule_group_configs` (`list[obj]`): Set the `managed_rule_group_configs` field on the resulting object. When `null`, the `managed_rule_group_configs` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.new](#fn-rulerulestatementmanaged_rule_group_configsnew) constructor. - `rule_action_override` (`list[obj]`): Set the `rule_action_override` field on the resulting object. When `null`, the `rule_action_override` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.rule_action_override.new](#fn-rulerulestatementrule_action_overridenew) constructor. - `scope_down_statement` (`list[obj]`): Set the `scope_down_statement` field on the resulting object. When `null`, the `scope_down_statement` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.scope_down_statement.new](#fn-rulerulestatementscope_down_statementnew) constructor. @@ -54029,6 +54115,102 @@ Terraform sub block. - An attribute object that represents the `excluded_rule` sub block. +## obj rule.statement.managed_rule_group_statement.managed_rule_group_configs + + + +### fn rule.statement.managed_rule_group_statement.managed_rule_group_configs.new + +```ts +new() +``` + + +`aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.new` constructs a new object with attributes and blocks configured for the `managed_rule_group_configs` +Terraform sub block. + + + +**Args**: + - `login_path` (`string`): Set the `login_path` field on the resulting object. When `null`, the `login_path` field will be omitted from the resulting object. + - `payload_type` (`string`): Set the `payload_type` field on the resulting object. When `null`, the `payload_type` field will be omitted from the resulting object. + - `aws_managed_rules_bot_control_rule_set` (`list[obj]`): Set the `aws_managed_rules_bot_control_rule_set` field on the resulting object. When `null`, the `aws_managed_rules_bot_control_rule_set` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.aws_managed_rules_bot_control_rule_set.new](#fn-rulerulestatementmanaged_rule_group_statementaws_managed_rules_bot_control_rule_setnew) constructor. + - `password_field` (`list[obj]`): Set the `password_field` field on the resulting object. When `null`, the `password_field` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.password_field.new](#fn-rulerulestatementmanaged_rule_group_statementpassword_fieldnew) constructor. + - `username_field` (`list[obj]`): Set the `username_field` field on the resulting object. When `null`, the `username_field` sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the [aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.username_field.new](#fn-rulerulestatementmanaged_rule_group_statementusername_fieldnew) constructor. + +**Returns**: + - An attribute object that represents the `managed_rule_group_configs` sub block. + + +## obj rule.statement.managed_rule_group_statement.managed_rule_group_configs.aws_managed_rules_bot_control_rule_set + + + +### fn rule.statement.managed_rule_group_statement.managed_rule_group_configs.aws_managed_rules_bot_control_rule_set.new + +```ts +new() +``` + + +`aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.aws_managed_rules_bot_control_rule_set.new` constructs a new object with attributes and blocks configured for the `aws_managed_rules_bot_control_rule_set` +Terraform sub block. + + + +**Args**: + - `inspection_level` (`string`): Set the `inspection_level` field on the resulting object. + +**Returns**: + - An attribute object that represents the `aws_managed_rules_bot_control_rule_set` sub block. + + +## obj rule.statement.managed_rule_group_statement.managed_rule_group_configs.password_field + + + +### fn rule.statement.managed_rule_group_statement.managed_rule_group_configs.password_field.new + +```ts +new() +``` + + +`aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.password_field.new` constructs a new object with attributes and blocks configured for the `password_field` +Terraform sub block. + + + +**Args**: + - `identifier` (`string`): Set the `identifier` field on the resulting object. + +**Returns**: + - An attribute object that represents the `password_field` sub block. + + +## obj rule.statement.managed_rule_group_statement.managed_rule_group_configs.username_field + + + +### fn rule.statement.managed_rule_group_statement.managed_rule_group_configs.username_field.new + +```ts +new() +``` + + +`aws.wafv2_web_acl.rule.statement.managed_rule_group_statement.managed_rule_group_configs.username_field.new` constructs a new object with attributes and blocks configured for the `username_field` +Terraform sub block. + + + +**Args**: + - `identifier` (`string`): Set the `identifier` field on the resulting object. + +**Returns**: + - An attribute object that represents the `username_field` sub block. + + ## obj rule.statement.managed_rule_group_statement.rule_action_override