updateSolFunctionPackage
abstract suspend fun updateSolFunctionPackage(input: UpdateSolFunctionPackageRequest): UpdateSolFunctionPackageResponse
Updates the operational state of function package.
A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.
Samples
import aws.sdk.kotlin.services.tnb.model.OperationalState
fun main() {
//sampleStart
// Enable a function package s Operational State
val resp = tnbClient.updateSolFunctionPackage {
vnfPkgId = "fp-07aa863e53460a2a6"
operationalState = OperationalState.fromValue("ENABLED")
}
//sampleEnd
}
import aws.sdk.kotlin.services.tnb.model.OperationalState
fun main() {
//sampleStart
// Disable a function package s Operational State
val resp = tnbClient.updateSolFunctionPackage {
vnfPkgId = "fp-07aa863e53460a2a6"
operationalState = OperationalState.fromValue("DISABLED")
}
//sampleEnd
}