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

com.pulumi.azure.appconfiguration.kotlin.ConfigurationFeatureArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appconfiguration.kotlin

import com.pulumi.azure.appconfiguration.ConfigurationFeatureArgs.builder
import com.pulumi.azure.appconfiguration.kotlin.inputs.ConfigurationFeatureTargetingFilterArgs
import com.pulumi.azure.appconfiguration.kotlin.inputs.ConfigurationFeatureTargetingFilterArgsBuilder
import com.pulumi.azure.appconfiguration.kotlin.inputs.ConfigurationFeatureTimewindowFilterArgs
import com.pulumi.azure.appconfiguration.kotlin.inputs.ConfigurationFeatureTimewindowFilterArgsBuilder
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.Boolean
import kotlin.Double
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages an Azure App Configuration Feature.
 * > **Note:** App Configuration Features are provisioned using a Data Plane API which requires the role `App Configuration Data Owner` on either the App Configuration or a parent scope (such as the Resource Group/Subscription). [More information can be found in the Azure Documentation for App Configuration](https://docs.microsoft.com/azure/azure-app-configuration/concept-enable-rbac#azure-built-in-roles-for-azure-app-configuration). This is similar to providing App Configuration Keys.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const appconf = new azure.appconfiguration.ConfigurationStore("appconf", {
 *     name: "appConf1",
 *     resourceGroupName: example.name,
 *     location: example.location,
 * });
 * const current = azure.core.getClientConfig({});
 * const appconfDataowner = new azure.authorization.Assignment("appconf_dataowner", {
 *     scope: appconf.id,
 *     roleDefinitionName: "App Configuration Data Owner",
 *     principalId: current.then(current => current.objectId),
 * });
 * const test = new azure.appconfiguration.ConfigurationFeature("test", {
 *     configurationStoreId: appconf.id,
 *     description: "test description",
 *     name: "test-ackey",
 *     label: "test-ackeylabel",
 *     enabled: true,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * appconf = azure.appconfiguration.ConfigurationStore("appconf",
 *     name="appConf1",
 *     resource_group_name=example.name,
 *     location=example.location)
 * current = azure.core.get_client_config()
 * appconf_dataowner = azure.authorization.Assignment("appconf_dataowner",
 *     scope=appconf.id,
 *     role_definition_name="App Configuration Data Owner",
 *     principal_id=current.object_id)
 * test = azure.appconfiguration.ConfigurationFeature("test",
 *     configuration_store_id=appconf.id,
 *     description="test description",
 *     name="test-ackey",
 *     label="test-ackeylabel",
 *     enabled=True)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var appconf = new Azure.AppConfiguration.ConfigurationStore("appconf", new()
 *     {
 *         Name = "appConf1",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *     });
 *     var current = Azure.Core.GetClientConfig.Invoke();
 *     var appconfDataowner = new Azure.Authorization.Assignment("appconf_dataowner", new()
 *     {
 *         Scope = appconf.Id,
 *         RoleDefinitionName = "App Configuration Data Owner",
 *         PrincipalId = current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
 *     });
 *     var test = new Azure.AppConfiguration.ConfigurationFeature("test", new()
 *     {
 *         ConfigurationStoreId = appconf.Id,
 *         Description = "test description",
 *         Name = "test-ackey",
 *         Label = "test-ackeylabel",
 *         Enabled = true,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appconfiguration"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		appconf, err := appconfiguration.NewConfigurationStore(ctx, "appconf", &appconfiguration.ConfigurationStoreArgs{
 * 			Name:              pulumi.String("appConf1"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		current, err := core.GetClientConfig(ctx, nil, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = authorization.NewAssignment(ctx, "appconf_dataowner", &authorization.AssignmentArgs{
 * 			Scope:              appconf.ID(),
 * 			RoleDefinitionName: pulumi.String("App Configuration Data Owner"),
 * 			PrincipalId:        pulumi.String(current.ObjectId),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = appconfiguration.NewConfigurationFeature(ctx, "test", &appconfiguration.ConfigurationFeatureArgs{
 * 			ConfigurationStoreId: appconf.ID(),
 * 			Description:          pulumi.String("test description"),
 * 			Name:                 pulumi.String("test-ackey"),
 * 			Label:                pulumi.String("test-ackeylabel"),
 * 			Enabled:              pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.appconfiguration.ConfigurationStore;
 * import com.pulumi.azure.appconfiguration.ConfigurationStoreArgs;
 * import com.pulumi.azure.core.CoreFunctions;
 * import com.pulumi.azure.authorization.Assignment;
 * import com.pulumi.azure.authorization.AssignmentArgs;
 * import com.pulumi.azure.appconfiguration.ConfigurationFeature;
 * import com.pulumi.azure.appconfiguration.ConfigurationFeatureArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var appconf = new ConfigurationStore("appconf", ConfigurationStoreArgs.builder()
 *             .name("appConf1")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .build());
 *         final var current = CoreFunctions.getClientConfig();
 *         var appconfDataowner = new Assignment("appconfDataowner", AssignmentArgs.builder()
 *             .scope(appconf.id())
 *             .roleDefinitionName("App Configuration Data Owner")
 *             .principalId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
 *             .build());
 *         var test = new ConfigurationFeature("test", ConfigurationFeatureArgs.builder()
 *             .configurationStoreId(appconf.id())
 *             .description("test description")
 *             .name("test-ackey")
 *             .label("test-ackeylabel")
 *             .enabled(true)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   appconf:
 *     type: azure:appconfiguration:ConfigurationStore
 *     properties:
 *       name: appConf1
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *   appconfDataowner:
 *     type: azure:authorization:Assignment
 *     name: appconf_dataowner
 *     properties:
 *       scope: ${appconf.id}
 *       roleDefinitionName: App Configuration Data Owner
 *       principalId: ${current.objectId}
 *   test:
 *     type: azure:appconfiguration:ConfigurationFeature
 *     properties:
 *       configurationStoreId: ${appconf.id}
 *       description: test description
 *       name: test-ackey
 *       label: test-ackeylabel
 *       enabled: true
 * variables:
 *   current:
 *     fn::invoke:
 *       Function: azure:core:getClientConfig
 *       Arguments: {}
 * ```
 * 
 * ## Import
 * App Configuration Features can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:appconfiguration/configurationFeature:ConfigurationFeature test https://appconfname1.azconfig.io/kv/.appconfig.featureflag%2FkeyName?label=labelName
 * ```
 * If you wish to import with an empty label then simply leave the label's name blank:
 * ```sh
 * $ pulumi import azure:appconfiguration/configurationFeature:ConfigurationFeature test https://appconfname1.azconfig.io/kv/.appconfig.featureflag%2FkeyName?label=
 * ```
 * @property configurationStoreId Specifies the id of the App Configuration. Changing this forces a new resource to be created.
 * @property description The description of the App Configuration Feature.
 * @property enabled The status of the App Configuration Feature. By default, this is set to false.
 * @property etag
 * @property key The key of the App Configuration Feature. The value for `name` will be used if this is unspecified. Changing this forces a new resource to be created.
 * @property label The label of the App Configuration Feature. Changing this forces a new resource to be created.
 * @property locked Should this App Configuration Feature be Locked to prevent changes?
 * @property name The name of the App Configuration Feature. Changing this forces a new resource to be created.
 * @property percentageFilterValue A number representing the value of the percentage required to enable this feature.
 * @property tags A mapping of tags to assign to the resource.
 * @property targetingFilters A `targeting_filter` block as defined below.
 * @property timewindowFilters A `timewindow_filter` block as defined below.
 */
public data class ConfigurationFeatureArgs(
    public val configurationStoreId: Output? = null,
    public val description: Output? = null,
    public val enabled: Output? = null,
    public val etag: Output? = null,
    public val key: Output? = null,
    public val label: Output? = null,
    public val locked: Output? = null,
    public val name: Output? = null,
    public val percentageFilterValue: Output? = null,
    public val tags: Output>? = null,
    public val targetingFilters: Output>? = null,
    public val timewindowFilters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appconfiguration.ConfigurationFeatureArgs =
        com.pulumi.azure.appconfiguration.ConfigurationFeatureArgs.builder()
            .configurationStoreId(configurationStoreId?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .etag(etag?.applyValue({ args0 -> args0 }))
            .key(key?.applyValue({ args0 -> args0 }))
            .label(label?.applyValue({ args0 -> args0 }))
            .locked(locked?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .percentageFilterValue(percentageFilterValue?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .targetingFilters(
                targetingFilters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .timewindowFilters(
                timewindowFilters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ConfigurationFeatureArgs].
 */
@PulumiTagMarker
public class ConfigurationFeatureArgsBuilder internal constructor() {
    private var configurationStoreId: Output? = null

    private var description: Output? = null

    private var enabled: Output? = null

    private var etag: Output? = null

    private var key: Output? = null

    private var label: Output? = null

    private var locked: Output? = null

    private var name: Output? = null

    private var percentageFilterValue: Output? = null

    private var tags: Output>? = null

    private var targetingFilters: Output>? = null

    private var timewindowFilters: Output>? = null

    /**
     * @param value Specifies the id of the App Configuration. Changing this forces a new resource to be created.
     */
    @JvmName("gkwvgxyhnehtklbt")
    public suspend fun configurationStoreId(`value`: Output) {
        this.configurationStoreId = value
    }

    /**
     * @param value The description of the App Configuration Feature.
     */
    @JvmName("wjowhjtyssdgjsgd")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The status of the App Configuration Feature. By default, this is set to false.
     */
    @JvmName("cbgvhxtbscvfkjwx")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value
     */
    @JvmName("mpcdalxusobqdiwx")
    public suspend fun etag(`value`: Output) {
        this.etag = value
    }

    /**
     * @param value The key of the App Configuration Feature. The value for `name` will be used if this is unspecified. Changing this forces a new resource to be created.
     */
    @JvmName("npmprncaswgmtwhd")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value The label of the App Configuration Feature. Changing this forces a new resource to be created.
     */
    @JvmName("ljcbcbldduwjfjxj")
    public suspend fun label(`value`: Output) {
        this.label = value
    }

    /**
     * @param value Should this App Configuration Feature be Locked to prevent changes?
     */
    @JvmName("tvehswquumxblkkj")
    public suspend fun locked(`value`: Output) {
        this.locked = value
    }

    /**
     * @param value The name of the App Configuration Feature. Changing this forces a new resource to be created.
     */
    @JvmName("gvfrqieslvallrse")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A number representing the value of the percentage required to enable this feature.
     */
    @JvmName("ismnvyvotsbtdjpl")
    public suspend fun percentageFilterValue(`value`: Output) {
        this.percentageFilterValue = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("ylxtcwjobffmwjba")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value A `targeting_filter` block as defined below.
     */
    @JvmName("evasuqpbcishojul")
    public suspend
    fun targetingFilters(`value`: Output>) {
        this.targetingFilters = value
    }

    @JvmName("hnomuycjlukxlqqp")
    public suspend fun targetingFilters(
        vararg
        values: Output,
    ) {
        this.targetingFilters = Output.all(values.asList())
    }

    /**
     * @param values A `targeting_filter` block as defined below.
     */
    @JvmName("ttshcsubxxhmhigr")
    public suspend
    fun targetingFilters(values: List>) {
        this.targetingFilters = Output.all(values)
    }

    /**
     * @param value A `timewindow_filter` block as defined below.
     */
    @JvmName("fvdjjtgkgybyiawb")
    public suspend
    fun timewindowFilters(`value`: Output>) {
        this.timewindowFilters = value
    }

    @JvmName("qjsjeqtdysoembgj")
    public suspend fun timewindowFilters(
        vararg
        values: Output,
    ) {
        this.timewindowFilters = Output.all(values.asList())
    }

    /**
     * @param values A `timewindow_filter` block as defined below.
     */
    @JvmName("nyeyafwqswqftaha")
    public suspend
    fun timewindowFilters(values: List>) {
        this.timewindowFilters = Output.all(values)
    }

    /**
     * @param value Specifies the id of the App Configuration. Changing this forces a new resource to be created.
     */
    @JvmName("otlbckuglbxhnbmf")
    public suspend fun configurationStoreId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configurationStoreId = mapped
    }

    /**
     * @param value The description of the App Configuration Feature.
     */
    @JvmName("usknascbjqxhtrin")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The status of the App Configuration Feature. By default, this is set to false.
     */
    @JvmName("tyjieskvwsdsetbu")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value
     */
    @JvmName("qjbhtftwnigqkhim")
    public suspend fun etag(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.etag = mapped
    }

    /**
     * @param value The key of the App Configuration Feature. The value for `name` will be used if this is unspecified. Changing this forces a new resource to be created.
     */
    @JvmName("cgwjehipwwpnsuwd")
    public suspend fun key(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.key = mapped
    }

    /**
     * @param value The label of the App Configuration Feature. Changing this forces a new resource to be created.
     */
    @JvmName("rwsfmuoxfrwvvipo")
    public suspend fun label(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.label = mapped
    }

    /**
     * @param value Should this App Configuration Feature be Locked to prevent changes?
     */
    @JvmName("vgfsrljfoqgnyuby")
    public suspend fun locked(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locked = mapped
    }

    /**
     * @param value The name of the App Configuration Feature. Changing this forces a new resource to be created.
     */
    @JvmName("xsmlpyfwhipkkskr")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A number representing the value of the percentage required to enable this feature.
     */
    @JvmName("gvjbotxtpemvlrfl")
    public suspend fun percentageFilterValue(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.percentageFilterValue = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("kbgiywkvjmtyaqby")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the resource.
     */
    @JvmName("frftlgnwgyeqdjbv")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A `targeting_filter` block as defined below.
     */
    @JvmName("icbmyfewqotqjdlu")
    public suspend fun targetingFilters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetingFilters = mapped
    }

    /**
     * @param argument A `targeting_filter` block as defined below.
     */
    @JvmName("ambtnomfhwxjhaqk")
    public suspend
    fun targetingFilters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConfigurationFeatureTargetingFilterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.targetingFilters = mapped
    }

    /**
     * @param argument A `targeting_filter` block as defined below.
     */
    @JvmName("getnbogacggtxtxo")
    public suspend fun targetingFilters(
        vararg
        argument: suspend ConfigurationFeatureTargetingFilterArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            ConfigurationFeatureTargetingFilterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.targetingFilters = mapped
    }

    /**
     * @param argument A `targeting_filter` block as defined below.
     */
    @JvmName("rqatjetjgtqtbakg")
    public suspend
    fun targetingFilters(argument: suspend ConfigurationFeatureTargetingFilterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ConfigurationFeatureTargetingFilterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.targetingFilters = mapped
    }

    /**
     * @param values A `targeting_filter` block as defined below.
     */
    @JvmName("tliyuhjjsclxisth")
    public suspend fun targetingFilters(vararg values: ConfigurationFeatureTargetingFilterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetingFilters = mapped
    }

    /**
     * @param value A `timewindow_filter` block as defined below.
     */
    @JvmName("rllnwebyxayppovi")
    public suspend fun timewindowFilters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timewindowFilters = mapped
    }

    /**
     * @param argument A `timewindow_filter` block as defined below.
     */
    @JvmName("tytercljihmkdjhd")
    public suspend
    fun timewindowFilters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConfigurationFeatureTimewindowFilterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.timewindowFilters = mapped
    }

    /**
     * @param argument A `timewindow_filter` block as defined below.
     */
    @JvmName("ewglldaqgakmcivp")
    public suspend fun timewindowFilters(
        vararg
        argument: suspend ConfigurationFeatureTimewindowFilterArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            ConfigurationFeatureTimewindowFilterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.timewindowFilters = mapped
    }

    /**
     * @param argument A `timewindow_filter` block as defined below.
     */
    @JvmName("oafmdhtnlxgshdol")
    public suspend
    fun timewindowFilters(argument: suspend ConfigurationFeatureTimewindowFilterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ConfigurationFeatureTimewindowFilterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.timewindowFilters = mapped
    }

    /**
     * @param values A `timewindow_filter` block as defined below.
     */
    @JvmName("qwdafrwpgfqbqcjw")
    public suspend fun timewindowFilters(vararg values: ConfigurationFeatureTimewindowFilterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timewindowFilters = mapped
    }

    internal fun build(): ConfigurationFeatureArgs = ConfigurationFeatureArgs(
        configurationStoreId = configurationStoreId,
        description = description,
        enabled = enabled,
        etag = etag,
        key = key,
        label = label,
        locked = locked,
        name = name,
        percentageFilterValue = percentageFilterValue,
        tags = tags,
        targetingFilters = targetingFilters,
        timewindowFilters = timewindowFilters,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy