Skip to content

Commit 87cc429

Browse files
authored
Kotlin: replace CrtAwsSigner with DefaultAwsSigner (#7262)
Replace CrtAwsSigner with DefaultAwsSigner
1 parent be458f8 commit 87cc429

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kotlin/services/s3/src/main/kotlin/com/kotlin/s3/MrapExample.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import aws.sdk.kotlin.services.s3control.model.Region
2727
import aws.sdk.kotlin.services.sts.StsClient
2828
import aws.sdk.kotlin.services.sts.getCallerIdentity
2929
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
3131
import aws.smithy.kotlin.runtime.content.ByteStream
3232
import aws.smithy.kotlin.runtime.content.decodeToString
3333
import aws.smithy.kotlin.runtime.http.auth.SigV4AsymmetricAuthScheme
@@ -204,10 +204,10 @@ class MrapExample {
204204
companion object {
205205
// snippet-start:[s3.kotlin.mrap.create-s3client]
206206
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)
209209
val s3 = S3Client.fromEnvironment {
210-
authSchemes = listOf(sigV4AScheme)
210+
authSchemes = listOf(sigV4aScheme)
211211
}
212212
return s3
213213
}

0 commit comments

Comments
 (0)