addCache
inline suspend fun StorageGatewayClient.addCache(crossinline block: AddCacheRequest.Builder.() -> Unit): AddCacheResponse
Configures one or more gateway local disks as cache for a gateway. This operation is only supported in the cached volume, tape, and file gateway type (see How Storage Gateway works (architecture).
In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add cache, and one or more disk IDs that you want to configure as cache.
Samples
fun main() {
//sampleStart
// The following example shows a request that activates a gateway stored volume.
val resp = storageGatewayClient.addCache {
gatewayArn = "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"
diskIds = listOf<String>(
"pci-0000:03:00.0-scsi-0:0:0:0",
"pci-0000:03:00.0-scsi-0:0:1:0"
)
}
//sampleEnd
}