setLocalConsolePassword
inline suspend fun StorageGatewayClient.setLocalConsolePassword(crossinline block: SetLocalConsolePasswordRequest.Builder.() -> Unit): SetLocalConsolePasswordResponse
Sets the password for your VM local console. When you log in to the local console for the first time, you log in to the VM with the default credentials. We recommend that you set a new password. You don't need to know the default password to set a new password.
Samples
fun main() {
//sampleStart
// Sets the password for your VM local console.
val resp = storageGatewayClient.setLocalConsolePassword {
gatewayArn = "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"
localConsolePassword = "PassWordMustBeAtLeast6Chars."
}
//sampleEnd
}