All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.xray.kotlin.GroupArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.xray.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.xray.GroupArgs.builder
import com.pulumi.awsnative.xray.kotlin.inputs.GroupInsightsConfigurationArgs
import com.pulumi.awsnative.xray.kotlin.inputs.GroupInsightsConfigurationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * This schema provides construct and validation rules for AWS-XRay Group resource parameters.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property filterExpression The filter expression defining criteria by which to group traces.
 * @property groupName The case-sensitive name of the new group. Names must be unique.
 * @property insightsConfiguration The structure containing configurations related to insights.
 * - The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group.
 * - The NotificationsEnabled boolean can be set to true to enable insights notifications through Amazon EventBridge for the group.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class GroupArgs(
    public val filterExpression: Output? = null,
    public val groupName: Output? = null,
    public val insightsConfiguration: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.xray.GroupArgs =
        com.pulumi.awsnative.xray.GroupArgs.builder()
            .filterExpression(filterExpression?.applyValue({ args0 -> args0 }))
            .groupName(groupName?.applyValue({ args0 -> args0 }))
            .insightsConfiguration(
                insightsConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GroupArgs].
 */
@PulumiTagMarker
public class GroupArgsBuilder internal constructor() {
    private var filterExpression: Output? = null

    private var groupName: Output? = null

    private var insightsConfiguration: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The filter expression defining criteria by which to group traces.
     */
    @JvmName("aiynrifwxbvvadiv")
    public suspend fun filterExpression(`value`: Output) {
        this.filterExpression = value
    }

    /**
     * @param value The case-sensitive name of the new group. Names must be unique.
     */
    @JvmName("ptxvaftnfxjfhjso")
    public suspend fun groupName(`value`: Output) {
        this.groupName = value
    }

    /**
     * @param value The structure containing configurations related to insights.
     * - The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group.
     * - The NotificationsEnabled boolean can be set to true to enable insights notifications through Amazon EventBridge for the group.
     */
    @JvmName("onykuybbvtinvgrd")
    public suspend fun insightsConfiguration(`value`: Output) {
        this.insightsConfiguration = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("yrliesndkbhjswda")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("xkmnpleeeregxguc")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("lmlyyjpjdmxxadbr")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The filter expression defining criteria by which to group traces.
     */
    @JvmName("qoeslvtatinkcbft")
    public suspend fun filterExpression(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filterExpression = mapped
    }

    /**
     * @param value The case-sensitive name of the new group. Names must be unique.
     */
    @JvmName("kdvarbeoesnphjgn")
    public suspend fun groupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupName = mapped
    }

    /**
     * @param value The structure containing configurations related to insights.
     * - The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group.
     * - The NotificationsEnabled boolean can be set to true to enable insights notifications through Amazon EventBridge for the group.
     */
    @JvmName("fsxidyqrwwqxmqht")
    public suspend fun insightsConfiguration(`value`: GroupInsightsConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.insightsConfiguration = mapped
    }

    /**
     * @param argument The structure containing configurations related to insights.
     * - The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group.
     * - The NotificationsEnabled boolean can be set to true to enable insights notifications through Amazon EventBridge for the group.
     */
    @JvmName("iwbkvwxwsnkklrby")
    public suspend fun insightsConfiguration(argument: suspend GroupInsightsConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = GroupInsightsConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.insightsConfiguration = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("uuwioumifoyyflkp")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("bbovjvvliorgvxrn")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("kdxbbnrsthrcuyvw")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("oykeuljgqetqsdmo")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("jgapmxbtfsypenxy")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): GroupArgs = GroupArgs(
        filterExpression = filterExpression,
        groupName = groupName,
        insightsConfiguration = insightsConfiguration,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy