Skip to content

Commit 5110143

Browse files
committed
Implement remote_access argument
1 parent 27fd727 commit 5110143

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

internal/service/sagemaker/space.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,12 @@ func resourceSpace() *schema.Resource {
418418
},
419419
},
420420
},
421+
"remote_access": {
422+
Type: schema.TypeString,
423+
Optional: true,
424+
Computed: true,
425+
ValidateDiagFunc: enum.Validate[awstypes.FeatureStatus](),
426+
},
421427
},
422428
},
423429
},
@@ -679,6 +685,10 @@ func expandSpaceSettings(l []any) *awstypes.SpaceSettings {
679685
config.KernelGatewayAppSettings = expandDomainKernelGatewayAppSettings(v)
680686
}
681687

688+
if v, ok := m["remote_access"].(string); ok {
689+
config.RemoteAccess = awstypes.FeatureStatus(v)
690+
}
691+
682692
if v, ok := m["space_storage_settings"].([]any); ok && len(v) > 0 {
683693
config.SpaceStorageSettings = expandSpaceStorageSettings(v)
684694
}
@@ -715,6 +725,10 @@ func flattenSpaceSettings(config *awstypes.SpaceSettings) []map[string]any {
715725
m["kernel_gateway_app_settings"] = flattenDomainKernelGatewayAppSettings(config.KernelGatewayAppSettings)
716726
}
717727

728+
if config.RemoteAccess != "" {
729+
m["remote_access"] = config.RemoteAccess
730+
}
731+
718732
if config.SpaceStorageSettings != nil {
719733
m["space_storage_settings"] = flattenSpaceStorageSettings(config.SpaceStorageSettings)
720734
}

0 commit comments

Comments
 (0)