@@ -168,7 +168,7 @@ func ResourceMNQSQSQueueCreate(ctx context.Context, d *schema.ResourceData, m in
168168 Attributes : attributes ,
169169 QueueName : scw .StringPtr (queueName ),
170170 }
171- _ , err = transport .RetryWhenAWSErrCodeEquals (ctx , []string {"AWS.SimpleQueueService.QueueDeletedRecently" }, & transport.RetryWhenConfig [* sqs.CreateQueueOutput ]{
171+ _ , err = transport .RetryWhenAWSErrCodeEquals (ctx , []string {AWSErrQueueDeletedRecently }, & transport.RetryWhenConfig [* sqs.CreateQueueOutput ]{
172172 Timeout : d .Timeout (schema .TimeoutCreate ),
173173 Interval : defaultMNQQueueRetryInterval ,
174174 Function : func () (* sqs.CreateQueueOutput , error ) {
@@ -195,7 +195,7 @@ func ResourceMNQSQSQueueRead(ctx context.Context, d *schema.ResourceData, m inte
195195 return diag .FromErr (err )
196196 }
197197
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 ]{
199199 Timeout : d .Timeout (schema .TimeoutRead ),
200200 Interval : defaultMNQQueueRetryInterval ,
201201 Function : func () (* sqs.GetQueueUrlOutput , error ) {
@@ -244,7 +244,7 @@ func ResourceMNQSQSQueueUpdate(ctx context.Context, d *schema.ResourceData, m in
244244 return diag .FromErr (err )
245245 }
246246
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 ]{
248248 Timeout : d .Timeout (schema .TimeoutUpdate ),
249249 Interval : defaultMNQQueueRetryInterval ,
250250 Function : func () (* sqs.GetQueueUrlOutput , error ) {
@@ -288,7 +288,7 @@ func ResourceMNQSQSQueueDelete(ctx context.Context, d *schema.ResourceData, m in
288288 QueueName : & queueName ,
289289 })
290290 if err != nil {
291- if IsAWSErrorCode (err , "AWS.SimpleQueueService.NonExistentQueue" ) {
291+ if IsAWSErrorCode (err , AWSErrNonExistentQueue ) {
292292 return nil
293293 }
294294
@@ -299,13 +299,13 @@ func ResourceMNQSQSQueueDelete(ctx context.Context, d *schema.ResourceData, m in
299299 QueueUrl : queue .QueueUrl ,
300300 })
301301 if err != nil {
302- if IsAWSErrorCode (err , "AWS.SimpleQueueService.NonExistentQueue" ) {
302+ if IsAWSErrorCode (err , AWSErrNonExistentQueue ) {
303303 return nil
304304 }
305305 return diag .Errorf ("failed to delete SQS Queue (%s): %s" , d .Id (), err )
306306 }
307307
308- _ , _ = transport .RetryWhenAWSErrCodeNotEquals (ctx , []string {"AWS.SimpleQueueService.NonExistentQueue" }, & transport.RetryWhenConfig [* sqs.GetQueueUrlOutput ]{
308+ _ , _ = transport .RetryWhenAWSErrCodeNotEquals (ctx , []string {AWSErrNonExistentQueue }, & transport.RetryWhenConfig [* sqs.GetQueueUrlOutput ]{
309309 Timeout : d .Timeout (schema .TimeoutCreate ),
310310 Interval : defaultMNQQueueRetryInterval ,
311311 Function : func () (* sqs.GetQueueUrlOutput , error ) {
0 commit comments