updateSolNetworkInstance
abstract suspend fun updateSolNetworkInstance(input: UpdateSolNetworkInstanceRequest): UpdateSolNetworkInstanceResponse
Update a network instance.
A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.
Choose the updateType parameter to target the necessary update of the network instance.
Samples
import aws.sdk.kotlin.services.tnb.model.UpdateSolNetworkModify
import aws.sdk.kotlin.services.tnb.model.UpdateSolNetworkServiceData
import aws.sdk.kotlin.services.tnb.model.UpdateSolNetworkType
import aws.smithy.kotlin.runtime.content.Document
import aws.smithy.kotlin.runtime.content.buildDocument
fun main() {
//sampleStart
// Update a Sol Network Instance
val resp = tnbClient.updateSolNetworkInstance {
nsInstanceId = "ni-0d5b823eb5c2a9241"
updateType = UpdateSolNetworkType.fromValue("MODIFY_VNF_INFORMATION")
modifyVnfInfoData = UpdateSolNetworkModify {
vnfInstanceId = "fi-0d5b823eb5c2a9241"
vnfConfigurableProperties = buildDocument {
"pcf.port" to Document("8080")
"pcf.pods" to Document("10")
}
}
tags = mapOf<String, String>(
"Name" to "Resource"
)
}
//sampleEnd
}
import aws.sdk.kotlin.services.tnb.model.UpdateSolNetworkModify
import aws.sdk.kotlin.services.tnb.model.UpdateSolNetworkServiceData
import aws.sdk.kotlin.services.tnb.model.UpdateSolNetworkType
import aws.smithy.kotlin.runtime.content.Document
import aws.smithy.kotlin.runtime.content.buildDocument
fun main() {
//sampleStart
// Update a Sol Network Instance
val resp = tnbClient.updateSolNetworkInstance {
nsInstanceId = "ni-0d5b823eb5c2a9241"
updateType = UpdateSolNetworkType.fromValue("UPDATE_NS")
updateNs = UpdateSolNetworkServiceData {
nsdInfoId = "np-0d5b823eb5c2a9241"
additionalParamsForNs = buildDocument {
"cidr_block" to Document("10.0.0.0/16")
"availability_zone" to Document("us-west-2a")
}
}
tags = mapOf<String, String>(
"Name" to "Resource"
)
}
//sampleEnd
}