putSolFunctionPackageContent
inline suspend fun TnbClient.putSolFunctionPackageContent(crossinline block: PutSolFunctionPackageContentRequest.Builder.() -> Unit): PutSolFunctionPackageContentResponse
Uploads the contents of a 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.PackageContentType
fun main() {
//sampleStart
// Upload a function package content
val resp = tnbClient.putSolFunctionPackageContent {
vnfPkgId = "fp-07aa863e53460a2a6"
contentType = PackageContentType.fromValue("application/zip")
file = "UEsDBBQAAAAAAPqLiVMAAAAAAAAAAAAAAAAMACAAZnJlZTVnYy1hbWYvVVQNAAcIrrJhBK".encodeAsByteArray()
}
//sampleEnd
}