Skip to content

Commit bd418c9

Browse files
committed
Deprecates the s3crypto client
1 parent 9d23340 commit bd418c9

File tree

3 files changed

+7
-22
lines changed

3 files changed

+7
-22
lines changed

CHANGELOG_PENDING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Services
22
---
33

4+
Deprecations
5+
---
6+
* `service/s3/s3crypto`: Deprecates the crypto client from the SDK ([#394](https://github.com/aws/aws-sdk-go-v2/pull/394))
7+
* s3crypto client is now deprecated and may be removed from the future versions of the SDK.
8+
49
SDK Features
510
---
611

service/s3/doc_custom.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -84,26 +84,4 @@
8484
// See the s3manager package's GetBucketRegion function documentation for more information
8585
// https://docs.aws.amazon.com/sdk-for-go/api/service/s3/s3manager/#GetBucketRegion
8686
//
87-
// S3 Crypto Client
88-
//
89-
// The s3crypto package provides the tools to upload and download encrypted
90-
// content from S3. The Encryption and Decryption clients can be used concurrently
91-
// once the client is created.
92-
//
93-
// cfg, err := external.LoadDefaultAWSConfig()
94-
//
95-
// // Create the decryption client.
96-
// svc := s3crypto.NewDecryptionClient(cfg)
97-
//
98-
// // The object will be downloaded from S3 and decrypted locally. By metadata
99-
// // about the object's encryption will instruct the decryption client how
100-
// // decrypt the content of the object. By default KMS is used for keys.
101-
// result, err := svc.GetObject(&s3.GetObjectInput {
102-
// Bucket: aws.String(myBucket),
103-
// Key: aws.String(myKey),
104-
// })
105-
//
106-
// See the s3crypto package documentation for more information.
107-
// https://docs.aws.amazon.com/sdk-for-go/api/service/s3/s3crypto/
108-
//
10987
package s3

service/s3/s3crypto/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/*
2+
Package s3crypto is deprecated and may be removed from the future versions of the SDK.
3+
24
Package s3crypto provides encryption to S3 using KMS and AES GCM.
35
46
Keyproviders are interfaces that handle masterkeys. Masterkeys are used to encrypt and decrypt the randomly

0 commit comments

Comments
 (0)