File tree 1 file changed +4
-4
lines changed
kotlin/services/s3/src/main/kotlin/com/kotlin/s3
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import aws.sdk.kotlin.services.s3control.model.Region
27
27
import aws.sdk.kotlin.services.sts.StsClient
28
28
import aws.sdk.kotlin.services.sts.getCallerIdentity
29
29
import aws.sdk.kotlin.services.sts.model.GetCallerIdentityRequest
30
- import aws.smithy.kotlin.runtime.auth.awssigning.crt.CrtAwsSigner
30
+ import aws.smithy.kotlin.runtime.auth.awssigning.DefaultAwsSigner
31
31
import aws.smithy.kotlin.runtime.content.ByteStream
32
32
import aws.smithy.kotlin.runtime.content.decodeToString
33
33
import aws.smithy.kotlin.runtime.http.auth.SigV4AsymmetricAuthScheme
@@ -204,10 +204,10 @@ class MrapExample {
204
204
companion object {
205
205
// snippet-start:[s3.kotlin.mrap.create-s3client]
206
206
suspend fun createS3Client (): S3Client {
207
- // Configure your S3Client to use the Asymmetric Sigv4 (Sigv4a ) signing algorithm.
208
- val sigV4AScheme = SigV4AsymmetricAuthScheme (CrtAwsSigner )
207
+ // Configure your S3Client to use the Asymmetric SigV4 (SigV4a ) signing algorithm.
208
+ val sigV4aScheme = SigV4AsymmetricAuthScheme (DefaultAwsSigner )
209
209
val s3 = S3Client .fromEnvironment {
210
- authSchemes = listOf (sigV4AScheme )
210
+ authSchemes = listOf (sigV4aScheme )
211
211
}
212
212
return s3
213
213
}
You can’t perform that action at this time.
0 commit comments