createTapes
inline suspend fun StorageGatewayClient.createTapes(crossinline block: CreateTapesRequest.Builder.() -> Unit): CreateTapesResponse
Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes. This operation is only supported in the tape gateway type.
Cache storage must be allocated to the gateway before you can create virtual tapes. Use the AddCache operation to add cache storage to a gateway.
Samples
fun main() {
//sampleStart
// Creates one or more virtual tapes.
val resp = storageGatewayClient.createTapes {
gatewayArn = "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"
tapeSizeInBytes = 107374182400
clientToken = "77777"
numTapesToCreate = 3
tapeBarcodePrefix = "TEST"
}
//sampleEnd
}