commonMain.aws.sdk.kotlin.runtime.config.profile.AwsConfigValue.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-config-jvm Show documentation
Show all versions of aws-config-jvm Show documentation
Support for AWS configuration
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.sdk.kotlin.runtime.config.profile
import aws.sdk.kotlin.runtime.InternalSdkApi
/**
* Container for the different types of property values within an AWS config profile.
* A property can either be a string or mapping of strings. Maps cannot be nested.
*/
@InternalSdkApi
public sealed class AwsConfigValue {
@InternalSdkApi
public data class String(public val value: kotlin.String) : AwsConfigValue() {
override fun toString(): kotlin.String = value
}
@InternalSdkApi
public data class Map(public val value: kotlin.collections.Map) :
AwsConfigValue(),
kotlin.collections.Map by value {
override fun toString(): kotlin.String = value.toString()
}
}