initiateJob
This operation initiates a job of the specified type, which can be a select, an archival retrieval, or a vault retrieval. For more information about using this operation, see the documentation for the underlying REST API Initiate a Job.
Samples
fun main() {
//sampleStart
// The example initiates an inventory retrieval job for the vault named examplevault.
val resp = glacierClient.initiateJob {
accountId = "-"
vaultName = "examplevault"
jobParameters = JobParameters {
type = "inventory-retrieval"
description = "My inventory job"
format = "CSV"
snsTopic = "arn:aws:sns:us-west-2:111111111111:Glacier-InventoryRetrieval-topic-Example"
}
}
//sampleEnd
}