@@ -168,7 +168,7 @@ func ResourceMNQSQSQueueCreate(ctx context.Context, d *schema.ResourceData, m in
168
168
Attributes : attributes ,
169
169
QueueName : scw .StringPtr (queueName ),
170
170
}
171
- _ , err = transport .RetryWhenAWSErrCodeEquals (ctx , []string {"AWS.SimpleQueueService.QueueDeletedRecently" }, & transport.RetryWhenConfig [* sqs.CreateQueueOutput ]{
171
+ _ , err = transport .RetryWhenAWSErrCodeEquals (ctx , []string {AWSErrQueueDeletedRecently }, & transport.RetryWhenConfig [* sqs.CreateQueueOutput ]{
172
172
Timeout : d .Timeout (schema .TimeoutCreate ),
173
173
Interval : defaultMNQQueueRetryInterval ,
174
174
Function : func () (* sqs.CreateQueueOutput , error ) {
@@ -195,7 +195,7 @@ func ResourceMNQSQSQueueRead(ctx context.Context, d *schema.ResourceData, m inte
195
195
return diag .FromErr (err )
196
196
}
197
197
198
- queue , err := transport .RetryWhenAWSErrCodeEquals (ctx , []string {"AWS.SimpleQueueService.NonExistentQueue" }, & transport.RetryWhenConfig [* sqs.GetQueueUrlOutput ]{
198
+ queue , err := transport .RetryWhenAWSErrCodeEquals (ctx , []string {AWSErrNonExistentQueue }, & transport.RetryWhenConfig [* sqs.GetQueueUrlOutput ]{
199
199
Timeout : d .Timeout (schema .TimeoutRead ),
200
200
Interval : defaultMNQQueueRetryInterval ,
201
201
Function : func () (* sqs.GetQueueUrlOutput , error ) {
@@ -244,7 +244,7 @@ func ResourceMNQSQSQueueUpdate(ctx context.Context, d *schema.ResourceData, m in
244
244
return diag .FromErr (err )
245
245
}
246
246
247
- queue , err := transport .RetryWhenAWSErrCodeEquals (ctx , []string {"AWS.SimpleQueueService.NonExistentQueue" }, & transport.RetryWhenConfig [* sqs.GetQueueUrlOutput ]{
247
+ queue , err := transport .RetryWhenAWSErrCodeEquals (ctx , []string {AWSErrNonExistentQueue }, & transport.RetryWhenConfig [* sqs.GetQueueUrlOutput ]{
248
248
Timeout : d .Timeout (schema .TimeoutUpdate ),
249
249
Interval : defaultMNQQueueRetryInterval ,
250
250
Function : func () (* sqs.GetQueueUrlOutput , error ) {
@@ -288,7 +288,7 @@ func ResourceMNQSQSQueueDelete(ctx context.Context, d *schema.ResourceData, m in
288
288
QueueName : & queueName ,
289
289
})
290
290
if err != nil {
291
- if IsAWSErrorCode (err , "AWS.SimpleQueueService.NonExistentQueue" ) {
291
+ if IsAWSErrorCode (err , AWSErrNonExistentQueue ) {
292
292
return nil
293
293
}
294
294
@@ -299,13 +299,13 @@ func ResourceMNQSQSQueueDelete(ctx context.Context, d *schema.ResourceData, m in
299
299
QueueUrl : queue .QueueUrl ,
300
300
})
301
301
if err != nil {
302
- if IsAWSErrorCode (err , "AWS.SimpleQueueService.NonExistentQueue" ) {
302
+ if IsAWSErrorCode (err , AWSErrNonExistentQueue ) {
303
303
return nil
304
304
}
305
305
return diag .Errorf ("failed to delete SQS Queue (%s): %s" , d .Id (), err )
306
306
}
307
307
308
- _ , _ = transport .RetryWhenAWSErrCodeNotEquals (ctx , []string {"AWS.SimpleQueueService.NonExistentQueue" }, & transport.RetryWhenConfig [* sqs.GetQueueUrlOutput ]{
308
+ _ , _ = transport .RetryWhenAWSErrCodeNotEquals (ctx , []string {AWSErrNonExistentQueue }, & transport.RetryWhenConfig [* sqs.GetQueueUrlOutput ]{
309
309
Timeout : d .Timeout (schema .TimeoutCreate ),
310
310
Interval : defaultMNQQueueRetryInterval ,
311
311
Function : func () (* sqs.GetQueueUrlOutput , error ) {
0 commit comments