Skip to content

Commit 779ce34

Browse files
committed
Update for refactored polling library
1 parent 8f4258f commit 779ce34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/service/transcribe/start_transcription_job_action.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,17 +240,17 @@ func (a *startTranscriptionJobAction) Invoke(ctx context.Context, req action.Inv
240240
})
241241
if err != nil {
242242
switch e := err.(type) {
243-
case *actionwait.ErrTimeout:
243+
case *actionwait.TimeoutError:
244244
resp.Diagnostics.AddError(
245245
"Timeout Waiting for Transcription Job",
246246
fmt.Sprintf("Transcription job %s did not reach a running state within %v", transcriptionJobName, timeout),
247247
)
248-
case *actionwait.ErrFailureState:
248+
case *actionwait.FailureStateError:
249249
resp.Diagnostics.AddError(
250250
"Transcription Job Failed",
251251
fmt.Sprintf("Transcription job %s failed: %s", transcriptionJobName, e.Status),
252252
)
253-
case *actionwait.ErrUnexpectedState:
253+
case *actionwait.UnexpectedStateError:
254254
resp.Diagnostics.AddError(
255255
"Unexpected Transcription Job Status",
256256
fmt.Sprintf("Transcription job %s entered unexpected status: %s", transcriptionJobName, e.Status),

0 commit comments

Comments
 (0)