Skip to content

Commit f661199

Browse files
handle NotImplemented error code for AWS Snowball for object lock
1 parent 14c139d commit f661199

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

aws/resource_aws_s3_bucket.go

+5
Original file line numberDiff line numberDiff line change
@@ -2681,6 +2681,11 @@ func readS3ObjectLockConfiguration(conn *s3.S3, bucket string) ([]interface{}, e
26812681
return nil, nil
26822682
}
26832683

2684+
// AWS Snowball doesn't implement this API and returns NotImplemented
2685+
if isAWSErr(err, "NotImplemented", "") {
2686+
return nil, nil
2687+
}
2688+
26842689
if isAWSErr(err, "ObjectLockConfigurationNotFoundError", "") {
26852690
return nil, nil
26862691
}

0 commit comments

Comments
 (0)