Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit bb0168e

Browse files
authored
Add deprecation warnings everywhere and remove some README content
2 parents 6d9a26d + 7ce44f3 commit bb0168e

File tree

412 files changed

+2132
-987
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

412 files changed

+2132
-987
lines changed

README.md

Lines changed: 64 additions & 142 deletions
Large diffs are not rendered by default.

aws/arn/arn.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// Package arn provides a parser for interacting with Amazon Resource Names.
2+
//
3+
// Deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2.
4+
// See https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/.
25
package arn
36

47
import (

aws/auth/bearer/token.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
// Deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2.
2+
// See https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/.
13
package bearer
24

35
import (
4-
"github.com/aws/aws-sdk-go/aws"
56
"time"
7+
8+
"github.com/aws/aws-sdk-go/aws"
69
)
710

811
// Token provides a type wrapping a bearer token and expiration metadata.

aws/awserr/error.go

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// Package awserr represents API error interface accessors for the SDK.
2+
//
3+
// Deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2.
4+
// See https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/.
25
package awserr
36

47
// An Error wraps lower level errors with code, message and an original error.
@@ -10,24 +13,23 @@ package awserr
1013
//
1114
// Example:
1215
//
13-
// output, err := s3manage.Upload(svc, input, opts)
14-
// if err != nil {
15-
// if awsErr, ok := err.(awserr.Error); ok {
16-
// // Get error details
17-
// log.Println("Error:", awsErr.Code(), awsErr.Message())
18-
//
19-
// // Prints out full error message, including original error if there was one.
20-
// log.Println("Error:", awsErr.Error())
21-
//
22-
// // Get original error
23-
// if origErr := awsErr.OrigErr(); origErr != nil {
24-
// // operate on original error.
25-
// }
26-
// } else {
27-
// fmt.Println(err.Error())
28-
// }
29-
// }
30-
//
16+
// output, err := s3manage.Upload(svc, input, opts)
17+
// if err != nil {
18+
// if awsErr, ok := err.(awserr.Error); ok {
19+
// // Get error details
20+
// log.Println("Error:", awsErr.Code(), awsErr.Message())
21+
//
22+
// // Prints out full error message, including original error if there was one.
23+
// log.Println("Error:", awsErr.Error())
24+
//
25+
// // Get original error
26+
// if origErr := awsErr.OrigErr(); origErr != nil {
27+
// // operate on original error.
28+
// }
29+
// } else {
30+
// fmt.Println(err.Error())
31+
// }
32+
// }
3133
type Error interface {
3234
// Satisfy the generic error interface.
3335
error
@@ -100,32 +102,31 @@ func NewBatchError(code, message string, errs []error) BatchedErrors {
100102
//
101103
// Example:
102104
//
103-
// output, err := s3manage.Upload(svc, input, opts)
104-
// if err != nil {
105-
// if reqerr, ok := err.(RequestFailure); ok {
106-
// log.Println("Request failed", reqerr.Code(), reqerr.Message(), reqerr.RequestID())
107-
// } else {
108-
// log.Println("Error:", err.Error())
109-
// }
110-
// }
105+
// output, err := s3manage.Upload(svc, input, opts)
106+
// if err != nil {
107+
// if reqerr, ok := err.(RequestFailure); ok {
108+
// log.Println("Request failed", reqerr.Code(), reqerr.Message(), reqerr.RequestID())
109+
// } else {
110+
// log.Println("Error:", err.Error())
111+
// }
112+
// }
111113
//
112114
// Combined with awserr.Error:
113115
//
114-
// output, err := s3manage.Upload(svc, input, opts)
115-
// if err != nil {
116-
// if awsErr, ok := err.(awserr.Error); ok {
117-
// // Generic AWS Error with Code, Message, and original error (if any)
118-
// fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
119-
//
120-
// if reqErr, ok := err.(awserr.RequestFailure); ok {
121-
// // A service error occurred
122-
// fmt.Println(reqErr.StatusCode(), reqErr.RequestID())
123-
// }
124-
// } else {
125-
// fmt.Println(err.Error())
126-
// }
127-
// }
128-
//
116+
// output, err := s3manage.Upload(svc, input, opts)
117+
// if err != nil {
118+
// if awsErr, ok := err.(awserr.Error); ok {
119+
// // Generic AWS Error with Code, Message, and original error (if any)
120+
// fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
121+
//
122+
// if reqErr, ok := err.(awserr.RequestFailure); ok {
123+
// // A service error occurred
124+
// fmt.Println(reqErr.StatusCode(), reqErr.RequestID())
125+
// }
126+
// } else {
127+
// fmt.Println(err.Error())
128+
// }
129+
// }
129130
type RequestFailure interface {
130131
Error
131132

aws/awsutil/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2.
2+
// See https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/.
3+
package awsutil

aws/client/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2.
2+
// See https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/.
13
package client
24

35
import (

aws/client/metadata/client_info.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2.
2+
// See https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/.
13
package metadata
24

35
// ClientInfo wraps immutable data from the client.Client structure.

aws/corehandlers/handlers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2.
2+
// See https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/.
13
package corehandlers
24

35
import (

aws/credentials/credentials.go

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,39 @@
1414
//
1515
// Example of using the environment variable credentials.
1616
//
17-
// creds := credentials.NewEnvCredentials()
17+
// creds := credentials.NewEnvCredentials()
1818
//
19-
// // Retrieve the credentials value
20-
// credValue, err := creds.Get()
21-
// if err != nil {
22-
// // handle error
23-
// }
19+
// // Retrieve the credentials value
20+
// credValue, err := creds.Get()
21+
// if err != nil {
22+
// // handle error
23+
// }
2424
//
2525
// Example of forcing credentials to expire and be refreshed on the next Get().
2626
// This may be helpful to proactively expire credentials and refresh them sooner
2727
// than they would naturally expire on their own.
2828
//
29-
// creds := credentials.NewCredentials(&ec2rolecreds.EC2RoleProvider{})
30-
// creds.Expire()
31-
// credsValue, err := creds.Get()
32-
// // New credentials will be retrieved instead of from cache.
29+
// creds := credentials.NewCredentials(&ec2rolecreds.EC2RoleProvider{})
30+
// creds.Expire()
31+
// credsValue, err := creds.Get()
32+
// // New credentials will be retrieved instead of from cache.
3333
//
34-
//
35-
// Custom Provider
34+
// # Custom Provider
3635
//
3736
// Each Provider built into this package also provides a helper method to generate
3837
// a Credentials pointer setup with the provider. To use a custom Provider just
3938
// create a type which satisfies the Provider interface and pass it to the
4039
// NewCredentials method.
4140
//
42-
// type MyProvider struct{}
43-
// func (m *MyProvider) Retrieve() (Value, error) {...}
44-
// func (m *MyProvider) IsExpired() bool {...}
41+
// type MyProvider struct{}
42+
// func (m *MyProvider) Retrieve() (Value, error) {...}
43+
// func (m *MyProvider) IsExpired() bool {...}
4544
//
46-
// creds := credentials.NewCredentials(&MyProvider{})
47-
// credValue, err := creds.Get()
45+
// creds := credentials.NewCredentials(&MyProvider{})
46+
// credValue, err := creds.Get()
4847
//
48+
// Deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2.
49+
// See https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/.
4950
package credentials
5051

5152
import (
@@ -64,10 +65,10 @@ import (
6465
// when making service API calls. For example, when accessing public
6566
// s3 buckets.
6667
//
67-
// svc := s3.New(session.Must(session.NewSession(&aws.Config{
68-
// Credentials: credentials.AnonymousCredentials,
69-
// })))
70-
// // Access public S3 buckets.
68+
// svc := s3.New(session.Must(session.NewSession(&aws.Config{
69+
// Credentials: credentials.AnonymousCredentials,
70+
// })))
71+
// // Access public S3 buckets.
7172
var AnonymousCredentials = NewStaticCredentials("", "", "")
7273

7374
// A Value is the AWS credentials value for individual credential fields.
@@ -150,10 +151,11 @@ func (p ErrorProvider) IsExpired() bool {
150151
// provider's struct.
151152
//
152153
// Example:
153-
// type EC2RoleProvider struct {
154-
// Expiry
155-
// ...
156-
// }
154+
//
155+
// type EC2RoleProvider struct {
156+
// Expiry
157+
// ...
158+
// }
157159
type Expiry struct {
158160
// The date/time when to expire on
159161
expiration time.Time

aws/crr/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Deprecated: aws-sdk-go is deprecated. Use aws-sdk-go-v2.
2+
// See https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/.
3+
package crr

0 commit comments

Comments
 (0)