Skip to content

Commit

Permalink
fmt + focs
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Jan 20, 2024
1 parent 7b901bf commit 5047c20
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/service/sagemaker/space.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ func expandSpaceStorageSettings(l []interface{}) *sagemaker.SpaceStorageSettings
config := &sagemaker.SpaceStorageSettings{}

if v, ok := m["ebs_storage_settings"].([]interface{}); ok && len(v) > 0 {
config.EbsStorageSettings = expandEbsStorageSettings(v)
config.EbsStorageSettings = expandEBSStorageSettings(v)
}

return config
Expand All @@ -685,13 +685,13 @@ func flattenSpaceStorageSettings(config *sagemaker.SpaceStorageSettings) []map[s
m := map[string]interface{}{}

if config.EbsStorageSettings != nil {
m["ebs_storage_settings"] = flattenEbsStorageSettings(config.EbsStorageSettings)
m["ebs_storage_settings"] = flattenEBSStorageSettings(config.EbsStorageSettings)
}

return []map[string]interface{}{m}
}

func expandEbsStorageSettings(l []interface{}) *sagemaker.EbsStorageSettings {
func expandEBSStorageSettings(l []interface{}) *sagemaker.EbsStorageSettings {
if len(l) == 0 || l[0] == nil {
return nil
}
Expand All @@ -707,7 +707,7 @@ func expandEbsStorageSettings(l []interface{}) *sagemaker.EbsStorageSettings {
return config
}

func flattenEbsStorageSettings(config *sagemaker.EbsStorageSettings) []map[string]interface{} {
func flattenEBSStorageSettings(config *sagemaker.EbsStorageSettings) []map[string]interface{} {
if config == nil {
return []map[string]interface{}{}
}
Expand Down
14 changes: 14 additions & 0 deletions website/docs/r/sagemaker_space.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,23 @@ This resource supports the following arguments:

### Space Settings

* `app_type` - (Optional) The type of app created within the space.
* `code_editor_app_settings` - (Optional) The Code Editor application settings. See [Code Editor App Settings](#code_editor_app_settings) below.
* `jupyter_lab_app_settings` - (Optional) The settings for the JupyterLab application. See [Jupyter Lab App Settings](#jupyter_lab_app_settings) below.
* `jupyter_server_app_settings` - (Optional) The Jupyter server's app settings. See [Jupyter Server App Settings](#jupyter-server-app-settings) below.
* `kernel_gateway_app_settings` - (Optional) The kernel gateway app settings. See [Kernel Gateway App Settings](#kernel-gateway-app-settings) below.

#### code_editor_app_settings

* `default_resource_spec` - (Optional) The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see [Default Resource Spec](#default-resource-spec) below.
* `lifecycle_config_arns` - (Optional) The Amazon Resource Name (ARN) of the Lifecycle Configurations.

#### jupyter_lab_app_settings

* `code_repository` - (Optional) A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see [Code Repository](#code-repository) below.
* `default_resource_spec` - (Optional) The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see [Default Resource Spec](#default-resource_spec) below.
* `lifecycle_config_arns` - (Optional) The Amazon Resource Name (ARN) of the Lifecycle Configurations.

#### Kernel Gateway App Settings

* `default_resource_spec` - (Optional) The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see [Default Resource Spec](#default-resource-spec) below.
Expand Down

0 comments on commit 5047c20

Please sign in to comment.