@@ -89,14 +89,14 @@ class PresignerGeneratorTest {
8989 import aws.sdk.kotlin.runtime.ClientException
9090 import aws.sdk.kotlin.runtime.auth.CredentialsProvider
9191 import aws.sdk.kotlin.runtime.auth.DefaultChainCredentialsProvider
92- import aws.sdk.kotlin.runtime.auth.PresignedRequest
9392 import aws.sdk.kotlin.runtime.auth.PresignedRequestConfig
9493 import aws.sdk.kotlin.runtime.auth.ServicePresignConfig
9594 import aws.sdk.kotlin.runtime.auth.SigningLocation
9695 import aws.sdk.kotlin.runtime.auth.createPresignedRequest
9796 import aws.sdk.kotlin.runtime.endpoint.EndpointResolver
9897 import aws.smithy.kotlin.runtime.client.ExecutionContext
9998 import aws.smithy.kotlin.runtime.http.QueryParameters
99+ import aws.smithy.kotlin.runtime.http.request.HttpRequest
100100 import smithy.kotlin.traits.internal.DefaultEndpointResolver
101101 import smithy.kotlin.traits.model.GetFooRequest
102102 import smithy.kotlin.traits.model.PostFooRequest
@@ -109,19 +109,19 @@ class PresignerGeneratorTest {
109109 * Presign a [GetFooRequest] using a [ServicePresignConfig].
110110 * @param serviceClientConfig the client configuration used to generate the presigned request
111111 * @param durationSeconds the amount of time from signing for which the request is valid, with seconds granularity.
112- * @return The [PresignedRequest ] that can be invoked within the specified time window.
112+ * @return The [HttpRequest ] that can be invoked within the specified time window.
113113 */
114- suspend fun GetFooRequest.presign(serviceClientConfig: ServicePresignConfig, durationSeconds: ULong): PresignedRequest {
114+ suspend fun GetFooRequest.presign(serviceClientConfig: ServicePresignConfig, durationSeconds: ULong): HttpRequest {
115115 return createPresignedRequest(serviceClientConfig, getFooPresignConfig(this, durationSeconds))
116116 }
117117
118118 /**
119119 * Presign a [GetFooRequest] using a [TestClient].
120120 * @param serviceClient the client providing properties used to generate the presigned request.
121121 * @param durationSeconds the amount of time from signing for which the request is valid, with seconds granularity.
122- * @return The [PresignedRequest ] that can be invoked within the specified time window.
122+ * @return The [HttpRequest ] that can be invoked within the specified time window.
123123 */
124- suspend fun GetFooRequest.presign(serviceClient: TestClient, durationSeconds: ULong): PresignedRequest {
124+ suspend fun GetFooRequest.presign(serviceClient: TestClient, durationSeconds: ULong): HttpRequest {
125125 val serviceClientConfig = TestPresignConfig {
126126 credentialsProvider = serviceClient.config.credentialsProvider ?: DefaultChainCredentialsProvider()
127127 endpointResolver = serviceClient.config.endpointResolver ?: DefaultEndpointResolver()
@@ -147,19 +147,19 @@ class PresignerGeneratorTest {
147147 * Presign a [PostFooRequest] using a [ServicePresignConfig].
148148 * @param serviceClientConfig the client configuration used to generate the presigned request
149149 * @param durationSeconds the amount of time from signing for which the request is valid, with seconds granularity.
150- * @return The [PresignedRequest ] that can be invoked within the specified time window.
150+ * @return The [HttpRequest ] that can be invoked within the specified time window.
151151 */
152- suspend fun PostFooRequest.presign(serviceClientConfig: ServicePresignConfig, durationSeconds: ULong): PresignedRequest {
152+ suspend fun PostFooRequest.presign(serviceClientConfig: ServicePresignConfig, durationSeconds: ULong): HttpRequest {
153153 return createPresignedRequest(serviceClientConfig, postFooPresignConfig(this, durationSeconds))
154154 }
155155
156156 /**
157157 * Presign a [PostFooRequest] using a [TestClient].
158158 * @param serviceClient the client providing properties used to generate the presigned request.
159159 * @param durationSeconds the amount of time from signing for which the request is valid, with seconds granularity.
160- * @return The [PresignedRequest ] that can be invoked within the specified time window.
160+ * @return The [HttpRequest ] that can be invoked within the specified time window.
161161 */
162- suspend fun PostFooRequest.presign(serviceClient: TestClient, durationSeconds: ULong): PresignedRequest {
162+ suspend fun PostFooRequest.presign(serviceClient: TestClient, durationSeconds: ULong): HttpRequest {
163163 val serviceClientConfig = TestPresignConfig {
164164 credentialsProvider = serviceClient.config.credentialsProvider ?: DefaultChainCredentialsProvider()
165165 endpointResolver = serviceClient.config.endpointResolver ?: DefaultEndpointResolver()
@@ -185,19 +185,19 @@ class PresignerGeneratorTest {
185185 * Presign a [PutFooRequest] using a [ServicePresignConfig].
186186 * @param serviceClientConfig the client configuration used to generate the presigned request
187187 * @param durationSeconds the amount of time from signing for which the request is valid, with seconds granularity.
188- * @return The [PresignedRequest ] that can be invoked within the specified time window.
188+ * @return The [HttpRequest ] that can be invoked within the specified time window.
189189 */
190- suspend fun PutFooRequest.presign(serviceClientConfig: ServicePresignConfig, durationSeconds: ULong): PresignedRequest {
190+ suspend fun PutFooRequest.presign(serviceClientConfig: ServicePresignConfig, durationSeconds: ULong): HttpRequest {
191191 return createPresignedRequest(serviceClientConfig, putFooPresignConfig(this, durationSeconds))
192192 }
193193
194194 /**
195195 * Presign a [PutFooRequest] using a [TestClient].
196196 * @param serviceClient the client providing properties used to generate the presigned request.
197197 * @param durationSeconds the amount of time from signing for which the request is valid, with seconds granularity.
198- * @return The [PresignedRequest ] that can be invoked within the specified time window.
198+ * @return The [HttpRequest ] that can be invoked within the specified time window.
199199 */
200- suspend fun PutFooRequest.presign(serviceClient: TestClient, durationSeconds: ULong): PresignedRequest {
200+ suspend fun PutFooRequest.presign(serviceClient: TestClient, durationSeconds: ULong): HttpRequest {
201201 val serviceClientConfig = TestPresignConfig {
202202 credentialsProvider = serviceClient.config.credentialsProvider ?: DefaultChainCredentialsProvider()
203203 endpointResolver = serviceClient.config.endpointResolver ?: DefaultEndpointResolver()
0 commit comments