
com.pulumi.awsnative.evidently.kotlin.outputs.GetFeatureResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.evidently.kotlin.outputs
import com.pulumi.awsnative.evidently.kotlin.enums.FeatureEvaluationStrategy
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property arn The ARN of the feature. For example, `arn:aws:evidently:us-west-2:0123455678912:project/myProject/feature/myFeature` .
* @property defaultVariation The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.
* This variation must also be listed in the `Variations` structure.
* If you omit `DefaultVariation` , the first variation listed in the `Variations` structure is used as the default variation.
* @property description An optional description of the feature.
* @property entityOverrides Specify users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.
* @property evaluationStrategy Specify `ALL_RULES` to activate the traffic allocation specified by any ongoing launches or experiments. Specify `DEFAULT_VARIATION` to serve the default variation to all users instead.
* @property tags An array of key-value pairs to apply to this resource.
* @property variations An array of structures that contain the configuration of the feature's different variations.
* Each `VariationObject` in the `Variations` array for a feature must have the same type of value ( `BooleanValue` , `DoubleValue` , `LongValue` or `StringValue` ).
*/
public data class GetFeatureResult(
public val arn: String? = null,
public val defaultVariation: String? = null,
public val description: String? = null,
public val entityOverrides: List? = null,
public val evaluationStrategy: FeatureEvaluationStrategy? = null,
public val tags: List? = null,
public val variations: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.evidently.outputs.GetFeatureResult): GetFeatureResult = GetFeatureResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
defaultVariation = javaType.defaultVariation().map({ args0 -> args0 }).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
entityOverrides = javaType.entityOverrides().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.evidently.kotlin.outputs.FeatureEntityOverride.Companion.toKotlin(args0)
})
}),
evaluationStrategy = javaType.evaluationStrategy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.evidently.kotlin.enums.FeatureEvaluationStrategy.Companion.toKotlin(args0)
})
}).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
variations = javaType.variations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.evidently.kotlin.outputs.FeatureVariationObject.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy