You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticbeanstalk.model
sealed class ConfigurationOptionValueType {
abstract val value: kotlin.String
object List : aws.sdk.kotlin.services.elasticbeanstalk.model.ConfigurationOptionValueType() {
override val value: kotlin.String = "List"
override fun toString(): kotlin.String = value
}
object Scalar : aws.sdk.kotlin.services.elasticbeanstalk.model.ConfigurationOptionValueType() {
override val value: kotlin.String = "Scalar"
override fun toString(): kotlin.String = value
}
data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.elasticbeanstalk.model.ConfigurationOptionValueType() {
override fun toString(): kotlin.String = value
}
companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.elasticbeanstalk.model.ConfigurationOptionValueType = when(str) {
"List" -> List
"Scalar" -> Scalar
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
fun values(): List<aws.sdk.kotlin.services.elasticbeanstalk.model.ConfigurationOptionValueType> = listOf(
List,
Scalar
)
}
}
Error:
e: ...aws-sdk-kotlin/services/elasticbeanstalk/generated-src/main/kotlin/aws/sdk/kotlin/services/elasticbeanstalk/model/ConfigurationOptionValueType.kt: (38, 27): No type arguments expected for object List
The text was updated successfully, but these errors were encountered:
When testing the single-phase build branch, I found that elasticbeanstalk generates an enum type with name collisions.
Shape from model: https://github.com/awslabs/aws-sdk-kotlin/blob/88a469e20503e7763439789a31621a8d17c3b72c/codegen/sdk/aws-models/elasticbeanstalk.2010-12-01.json#L1230-L1244
Codegen output:
Error:
The text was updated successfully, but these errors were encountered: