com.pulumi.awsnative.evidently.kotlin.outputs.GetLaunchResult.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.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property arn The ARN of the launch. For example, `arn:aws:evidently:us-west-2:0123455678912:project/myProject/launch/myLaunch`
* @property description An optional description for the launch.
* @property executionStatus Start or Stop Launch Launch. Default is not started.
* @property groups An array of structures that contains the feature and variations that are to be used for the launch. You can up to five launch groups in a launch.
* @property metricMonitors An array of structures that define the metrics that will be used to monitor the launch performance. You can have up to three metric monitors in the array.
* @property randomizationSalt When Evidently assigns a particular user session to a launch, it must use a randomization ID to determine which variation the user session is served. This randomization ID is a combination of the entity ID and `randomizationSalt` . If you omit `randomizationSalt` , Evidently uses the launch name as the `randomizationsSalt` .
* @property scheduledSplitsConfig An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch.
* @property tags An array of key-value pairs to apply to this resource.
*/
public data class GetLaunchResult(
public val arn: String? = null,
public val description: String? = null,
public val executionStatus: LaunchExecutionStatusObject? = null,
public val groups: List? = null,
public val metricMonitors: List? = null,
public val randomizationSalt: String? = null,
public val scheduledSplitsConfig: List? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.evidently.outputs.GetLaunchResult): GetLaunchResult = GetLaunchResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
executionStatus = javaType.executionStatus().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.evidently.kotlin.outputs.LaunchExecutionStatusObject.Companion.toKotlin(args0)
})
}).orElse(null),
groups = javaType.groups().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.evidently.kotlin.outputs.LaunchGroupObject.Companion.toKotlin(args0)
})
}),
metricMonitors = javaType.metricMonitors().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.evidently.kotlin.outputs.LaunchMetricDefinitionObject.Companion.toKotlin(args0)
})
}),
randomizationSalt = javaType.randomizationSalt().map({ args0 -> args0 }).orElse(null),
scheduledSplitsConfig = javaType.scheduledSplitsConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.evidently.kotlin.outputs.LaunchStepConfig.Companion.toKotlin(args0)
})
}),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}