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

com.pulumi.gcp.eventarc.kotlin.outputs.TriggerMatchingCriteria.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.eventarc.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property attribute Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute.
 * @property operator Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
 * @property value Required. The value for the attribute. See https://cloud.google.com/eventarc/docs/creating-triggers#trigger-gcloud for available values.
 * - - -
 */
public data class TriggerMatchingCriteria(
    public val attribute: String,
    public val `operator`: String? = null,
    public val `value`: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.eventarc.outputs.TriggerMatchingCriteria): TriggerMatchingCriteria = TriggerMatchingCriteria(
            attribute = javaType.attribute(),
            `operator` = javaType.`operator`().map({ args0 -> args0 }).orElse(null),
            `value` = javaType.`value`(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy