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

com.pulumi.azurenative.security.kotlin.inputs.UserDefinedResourcesPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.security.kotlin.inputs

import com.pulumi.azurenative.security.inputs.UserDefinedResourcesPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Properties of the IoT Security solution's user defined resources.
 * @property query Azure Resource Graph query which represents the security solution's user defined resources. Required to start with "where type != "Microsoft.Devices/IotHubs""
 * @property querySubscriptions List of Azure subscription ids on which the user defined resources query should be executed.
 */
public data class UserDefinedResourcesPropertiesArgs(
    public val query: Output,
    public val querySubscriptions: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.security.inputs.UserDefinedResourcesPropertiesArgs =
        com.pulumi.azurenative.security.inputs.UserDefinedResourcesPropertiesArgs.builder()
            .query(query.applyValue({ args0 -> args0 }))
            .querySubscriptions(querySubscriptions.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [UserDefinedResourcesPropertiesArgs].
 */
@PulumiTagMarker
public class UserDefinedResourcesPropertiesArgsBuilder internal constructor() {
    private var query: Output? = null

    private var querySubscriptions: Output>? = null

    /**
     * @param value Azure Resource Graph query which represents the security solution's user defined resources. Required to start with "where type != "Microsoft.Devices/IotHubs""
     */
    @JvmName("rnfydsvjnserimgn")
    public suspend fun query(`value`: Output) {
        this.query = value
    }

    /**
     * @param value List of Azure subscription ids on which the user defined resources query should be executed.
     */
    @JvmName("kwjgkmsvkjcirsox")
    public suspend fun querySubscriptions(`value`: Output>) {
        this.querySubscriptions = value
    }

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

    /**
     * @param values List of Azure subscription ids on which the user defined resources query should be executed.
     */
    @JvmName("duviawtgccrvacpw")
    public suspend fun querySubscriptions(values: List>) {
        this.querySubscriptions = Output.all(values)
    }

    /**
     * @param value Azure Resource Graph query which represents the security solution's user defined resources. Required to start with "where type != "Microsoft.Devices/IotHubs""
     */
    @JvmName("vfhkchqcemtfcxcp")
    public suspend fun query(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.query = mapped
    }

    /**
     * @param value List of Azure subscription ids on which the user defined resources query should be executed.
     */
    @JvmName("kwqdsyscqlhdphqg")
    public suspend fun querySubscriptions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.querySubscriptions = mapped
    }

    /**
     * @param values List of Azure subscription ids on which the user defined resources query should be executed.
     */
    @JvmName("gdxjebsumkdlvdca")
    public suspend fun querySubscriptions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.querySubscriptions = mapped
    }

    internal fun build(): UserDefinedResourcesPropertiesArgs = UserDefinedResourcesPropertiesArgs(
        query = query ?: throw PulumiNullFieldException("query"),
        querySubscriptions = querySubscriptions ?: throw PulumiNullFieldException("querySubscriptions"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy