()
| 44 | ); |
| 45 | |
| 46 | async function checkStateImportJob() { |
| 47 | const [importJob] = await client.getImportJob({ |
| 48 | name: importJobName, |
| 49 | }); |
| 50 | |
| 51 | console.log( |
| 52 | `Current state of import job ${importJob.name}: ${importJob.state}` |
| 53 | ); |
| 54 | return importJob; |
| 55 | } |
| 56 | |
| 57 | return checkStateImportJob(); |
| 58 | // [END kms_check_state_import_job] |