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

com.pulumi.digitalocean.kotlin.inputs.DatabaseUserSettingAclArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.digitalocean.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.DatabaseUserSettingAclArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property id An identifier for the ACL, this will be automatically assigned when you create an ACL entry
 * @property permission The permission level applied to the ACL. This includes "admin", "consume", "produce", and "produceconsume". "admin" allows for producing and consuming as well as add/delete/update permission for topics. "consume" allows only for reading topic messages. "produce" allows only for writing topic messages. "produceconsume" allows for both reading and writing topic messages.
 * @property topic A regex for matching the topic(s) that this ACL should apply to. The regex can assume one of 3 patterns: "*", "*", or "". "*" is a special value indicating a wildcard that matches on all topics. "*" defines a regex that matches all topics with the prefix. "" performs an exact match on a topic name and only applies to that topic.
 */
public data class DatabaseUserSettingAclArgs(
    public val id: Output? = null,
    public val permission: Output,
    public val topic: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.DatabaseUserSettingAclArgs =
        com.pulumi.digitalocean.inputs.DatabaseUserSettingAclArgs.builder()
            .id(id?.applyValue({ args0 -> args0 }))
            .permission(permission.applyValue({ args0 -> args0 }))
            .topic(topic.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatabaseUserSettingAclArgs].
 */
@PulumiTagMarker
public class DatabaseUserSettingAclArgsBuilder internal constructor() {
    private var id: Output? = null

    private var permission: Output? = null

    private var topic: Output? = null

    /**
     * @param value An identifier for the ACL, this will be automatically assigned when you create an ACL entry
     */
    @JvmName("wegwkicweecutjex")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The permission level applied to the ACL. This includes "admin", "consume", "produce", and "produceconsume". "admin" allows for producing and consuming as well as add/delete/update permission for topics. "consume" allows only for reading topic messages. "produce" allows only for writing topic messages. "produceconsume" allows for both reading and writing topic messages.
     */
    @JvmName("ooonbhtctmthautb")
    public suspend fun permission(`value`: Output) {
        this.permission = value
    }

    /**
     * @param value A regex for matching the topic(s) that this ACL should apply to. The regex can assume one of 3 patterns: "*", "*", or "". "*" is a special value indicating a wildcard that matches on all topics. "*" defines a regex that matches all topics with the prefix. "" performs an exact match on a topic name and only applies to that topic.
     */
    @JvmName("jgeqwvgyquujgiea")
    public suspend fun topic(`value`: Output) {
        this.topic = value
    }

    /**
     * @param value An identifier for the ACL, this will be automatically assigned when you create an ACL entry
     */
    @JvmName("wfyujchqscxalaev")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The permission level applied to the ACL. This includes "admin", "consume", "produce", and "produceconsume". "admin" allows for producing and consuming as well as add/delete/update permission for topics. "consume" allows only for reading topic messages. "produce" allows only for writing topic messages. "produceconsume" allows for both reading and writing topic messages.
     */
    @JvmName("reunddhbsvuldquc")
    public suspend fun permission(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.permission = mapped
    }

    /**
     * @param value A regex for matching the topic(s) that this ACL should apply to. The regex can assume one of 3 patterns: "*", "*", or "". "*" is a special value indicating a wildcard that matches on all topics. "*" defines a regex that matches all topics with the prefix. "" performs an exact match on a topic name and only applies to that topic.
     */
    @JvmName("lbmpttfxxcbeovax")
    public suspend fun topic(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.topic = mapped
    }

    internal fun build(): DatabaseUserSettingAclArgs = DatabaseUserSettingAclArgs(
        id = id,
        permission = permission ?: throw PulumiNullFieldException("permission"),
        topic = topic ?: throw PulumiNullFieldException("topic"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy