Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b/fix constant drift when nested required attributes have no defaults #2022

Merged
merged 21 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 50 additions & 71 deletions docs/resources/dynamodb_table.md

Large diffs are not rendered by default.

20 changes: 7 additions & 13 deletions docs/resources/lambda_function.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,15 @@ Optional:
<a id="nestedatt--ephemeral_storage"></a>
### Nested Schema for `ephemeral_storage`

Required:
Optional:

- `size` (Number) The size of the function's ``/tmp`` directory.


<a id="nestedatt--file_system_configs"></a>
### Nested Schema for `file_system_configs`

Required:
Optional:

- `arn` (String) The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system.
- `local_mount_path` (String) The path where the function can access the file system, starting with ``/mnt/``.
Expand Down Expand Up @@ -291,38 +291,32 @@ Optional:
<a id="nestedatt--runtime_management_config"></a>
### Nested Schema for `runtime_management_config`

Required:
Optional:

- `runtime_version_arn` (String) The ARN of the runtime version you want the function to use.
This is only required if you're using the *Manual* runtime update mode.
- `update_runtime_on` (String) Specify the runtime update mode.
+ *Auto (default)* - Automatically update to the most recent and secure runtime version using a [Two-phase runtime version rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase). This is the best choice for most customers to ensure they always benefit from runtime updates.
+ *FunctionUpdate* - LAM updates the runtime of you function to the most recent and secure runtime version when you update your function. This approach synchronizes runtime updates with function deployments, giving you control over when runtime updates are applied and allowing you to detect and mitigate rare runtime update incompatibilities early. When using this setting, you need to regularly update your functions to keep their runtime up-to-date.
+ *Manual* - You specify a runtime version in your function configuration. The function will use this runtime version indefinitely. In the rare case where a new runtime version is incompatible with an existing function, this allows you to roll back your function to an earlier runtime version. For more information, see [Roll back a runtime version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback).

*Valid Values*: ``Auto`` | ``FunctionUpdate`` | ``Manual``

Optional:

- `runtime_version_arn` (String) The ARN of the runtime version you want the function to use.
This is only required if you're using the *Manual* runtime update mode.


<a id="nestedatt--snap_start"></a>
### Nested Schema for `snap_start`

Required:
Optional:

- `apply_on` (String) Set ``ApplyOn`` to ``PublishedVersions`` to create a snapshot of the initialized execution environment when you publish a function version.


<a id="nestedatt--tags"></a>
### Nested Schema for `tags`

Required:

- `key` (String)

Optional:

- `key` (String)
- `value` (String)


Expand Down
230 changes: 82 additions & 148 deletions docs/resources/s3_bucket.md

Large diffs are not rendered by default.

64 changes: 17 additions & 47 deletions docs/resources/sagemaker_domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,10 @@ Optional:
<a id="nestedatt--default_user_settings--code_editor_app_settings--custom_images"></a>
### Nested Schema for `default_user_settings.code_editor_app_settings.custom_images`

Required:
Optional:

- `app_image_config_name` (String) The Name of the AppImageConfig.
- `image_name` (String) The name of the CustomImage. Must be unique to your account.

Optional:

- `image_version_number` (Number) The version number of the CustomImage.


Expand All @@ -241,20 +238,17 @@ Optional:
<a id="nestedatt--default_user_settings--custom_file_system_configs--efs_file_system_config"></a>
### Nested Schema for `default_user_settings.custom_file_system_configs.efs_file_system_config`

Required:

- `file_system_id` (String)

Optional:

- `file_system_id` (String)
- `file_system_path` (String)



<a id="nestedatt--default_user_settings--custom_posix_user_config"></a>
### Nested Schema for `default_user_settings.custom_posix_user_config`

Required:
Optional:

- `gid` (Number)
- `uid` (Number)
Expand Down Expand Up @@ -293,21 +287,18 @@ Optional:
<a id="nestedatt--default_user_settings--jupyter_lab_app_settings--code_repositories"></a>
### Nested Schema for `default_user_settings.jupyter_lab_app_settings.code_repositories`

Required:
Optional:

- `repository_url` (String) A CodeRepository (valid URL) to be used within Jupyter's Git extension.


<a id="nestedatt--default_user_settings--jupyter_lab_app_settings--custom_images"></a>
### Nested Schema for `default_user_settings.jupyter_lab_app_settings.custom_images`

Required:
Optional:

- `app_image_config_name` (String) The Name of the AppImageConfig.
- `image_name` (String) The name of the CustomImage. Must be unique to your account.

Optional:

- `image_version_number` (Number) The version number of the CustomImage.


Expand Down Expand Up @@ -355,13 +346,10 @@ Optional:
<a id="nestedatt--default_user_settings--kernel_gateway_app_settings--custom_images"></a>
### Nested Schema for `default_user_settings.kernel_gateway_app_settings.custom_images`

Required:
Optional:

- `app_image_config_name` (String) The Name of the AppImageConfig.
- `image_name` (String) The name of the CustomImage. Must be unique to your account.

Optional:

- `image_version_number` (Number) The version number of the CustomImage.


Expand All @@ -388,13 +376,10 @@ Optional:
<a id="nestedatt--default_user_settings--r_session_app_settings--custom_images"></a>
### Nested Schema for `default_user_settings.r_session_app_settings.custom_images`

Required:
Optional:

- `app_image_config_name` (String) The Name of the AppImageConfig.
- `image_name` (String) The name of the CustomImage. Must be unique to your account.

Optional:

- `image_version_number` (Number) The version number of the CustomImage.


Expand Down Expand Up @@ -439,7 +424,7 @@ Optional:
<a id="nestedatt--default_user_settings--space_storage_settings--default_ebs_storage_settings"></a>
### Nested Schema for `default_user_settings.space_storage_settings.default_ebs_storage_settings`

Required:
Optional:

- `default_ebs_volume_size_in_gb` (Number) Default size of the Amazon EBS volume in Gb
- `maximum_ebs_volume_size_in_gb` (Number) Maximum size of the Amazon EBS volume in Gb. Must be greater than or equal to the DefaultEbsVolumeSizeInGb.
Expand All @@ -459,14 +444,11 @@ Optional:
<a id="nestedatt--default_space_settings"></a>
### Nested Schema for `default_space_settings`

Required:

- `execution_role` (String) The execution role for the space.

Optional:

- `custom_file_system_configs` (Attributes List) (see [below for nested schema](#nestedatt--default_space_settings--custom_file_system_configs))
- `custom_posix_user_config` (Attributes) The Jupyter lab's custom posix user configurations. (see [below for nested schema](#nestedatt--default_space_settings--custom_posix_user_config))
- `execution_role` (String) The execution role for the space.
- `jupyter_lab_app_settings` (Attributes) The Jupyter lab's app settings. (see [below for nested schema](#nestedatt--default_space_settings--jupyter_lab_app_settings))
- `jupyter_server_app_settings` (Attributes) The Jupyter server's app settings. (see [below for nested schema](#nestedatt--default_space_settings--jupyter_server_app_settings))
- `kernel_gateway_app_settings` (Attributes) The kernel gateway app settings. (see [below for nested schema](#nestedatt--default_space_settings--kernel_gateway_app_settings))
Expand All @@ -483,20 +465,17 @@ Optional:
<a id="nestedatt--default_space_settings--custom_file_system_configs--efs_file_system_config"></a>
### Nested Schema for `default_space_settings.custom_file_system_configs.efs_file_system_config`

Required:

- `file_system_id` (String)

Optional:

- `file_system_id` (String)
- `file_system_path` (String)



<a id="nestedatt--default_space_settings--custom_posix_user_config"></a>
### Nested Schema for `default_space_settings.custom_posix_user_config`

Required:
Optional:

- `gid` (Number)
- `uid` (Number)
Expand Down Expand Up @@ -535,21 +514,18 @@ Optional:
<a id="nestedatt--default_space_settings--jupyter_lab_app_settings--code_repositories"></a>
### Nested Schema for `default_space_settings.jupyter_lab_app_settings.code_repositories`

Required:
Optional:

- `repository_url` (String) A CodeRepository (valid URL) to be used within Jupyter's Git extension.


<a id="nestedatt--default_space_settings--jupyter_lab_app_settings--custom_images"></a>
### Nested Schema for `default_space_settings.jupyter_lab_app_settings.custom_images`

Required:
Optional:

- `app_image_config_name` (String) The Name of the AppImageConfig.
- `image_name` (String) The name of the CustomImage. Must be unique to your account.

Optional:

- `image_version_number` (Number) The version number of the CustomImage.


Expand Down Expand Up @@ -597,13 +573,10 @@ Optional:
<a id="nestedatt--default_space_settings--kernel_gateway_app_settings--custom_images"></a>
### Nested Schema for `default_space_settings.kernel_gateway_app_settings.custom_images`

Required:
Optional:

- `app_image_config_name` (String) The Name of the AppImageConfig.
- `image_name` (String) The name of the CustomImage. Must be unique to your account.

Optional:

- `image_version_number` (Number) The version number of the CustomImage.


Expand All @@ -629,7 +602,7 @@ Optional:
<a id="nestedatt--default_space_settings--space_storage_settings--default_ebs_storage_settings"></a>
### Nested Schema for `default_space_settings.space_storage_settings.default_ebs_storage_settings`

Required:
Optional:

- `default_ebs_volume_size_in_gb` (Number) Default size of the Amazon EBS volume in Gb
- `maximum_ebs_volume_size_in_gb` (Number) Maximum size of the Amazon EBS volume in Gb. Must be greater than or equal to the DefaultEbsVolumeSizeInGb.
Expand Down Expand Up @@ -658,13 +631,10 @@ Optional:
<a id="nestedatt--domain_settings--r_studio_server_pro_domain_settings"></a>
### Nested Schema for `domain_settings.r_studio_server_pro_domain_settings`

Required:

- `domain_execution_role_arn` (String) The ARN of the execution role for the RStudioServerPro Domain-level app.

Optional:

- `default_resource_spec` (Attributes) (see [below for nested schema](#nestedatt--domain_settings--r_studio_server_pro_domain_settings--default_resource_spec))
- `domain_execution_role_arn` (String) The ARN of the execution role for the RStudioServerPro Domain-level app.
- `r_studio_connect_url` (String) A URL pointing to an RStudio Connect server.
- `r_studio_package_manager_url` (String) A URL pointing to an RStudio Package Manager server.

Expand All @@ -684,7 +654,7 @@ Optional:
<a id="nestedatt--tags"></a>
### Nested Schema for `tags`

Required:
Optional:

- `key` (String)
- `value` (String)
Expand Down
Loading
Loading