commonMain.aws.sdk.kotlin.services.finspacedata.serde.GetProgrammaticAccessCredentialsOperationSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspacedata-jvm Show documentation
Show all versions of finspacedata-jvm Show documentation
The AWS SDK for Kotlin client for finspace data
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspacedata.serde
import aws.sdk.kotlin.services.finspacedata.model.GetProgrammaticAccessCredentialsRequest
import aws.smithy.kotlin.runtime.http.HttpBody
import aws.smithy.kotlin.runtime.http.HttpMethod
import aws.smithy.kotlin.runtime.http.operation.HttpSerialize
import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder
import aws.smithy.kotlin.runtime.http.request.url
import aws.smithy.kotlin.runtime.operation.ExecutionContext
import aws.smithy.kotlin.runtime.text.encoding.PercentEncoding
internal class GetProgrammaticAccessCredentialsOperationSerializer: HttpSerialize {
override suspend fun serialize(context: ExecutionContext, input: GetProgrammaticAccessCredentialsRequest): HttpRequestBuilder {
val builder = HttpRequestBuilder()
builder.method = HttpMethod.GET
builder.url {
path.encoded = "/credentials/programmatic"
parameters.decodedParameters(PercentEncoding.SmithyLabel) {
if (input.durationInMinutes != null) add("durationInMinutes", "${input.durationInMinutes}")
if (input.environmentId != null) add("environmentId", input.environmentId)
}
}
return builder
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy