[Ask] How to set maven url with AwsCredentials (SOLVED)

I have this code at build.gradle

maven {
      url "abc.com"
      credentials(AwsCredentials) {
        accessKey = "a"
        secretKey = "b"
        sessionToken = "c"
      }
    }

I want to migrate it with kotlin-dsl,
any advice to change it to kotlin dsl?

solved by changing it to

maven("abc.com") {
    credentials(AwsCredentials::class) {
        accessKey = "a"
        secretKey = "b"
        sessionToken = "c"
    }
}