JsonFieldWithDefaultArgs

data class JsonFieldWithDefaultArgs(val defaultValue: Output<String>? = null, val sourceField: Output<String>? = null) : ConvertibleToJava<JsonFieldWithDefaultArgs>

This is used to express the source of an input schema mapping for a single target field in the Event Grid Event schema. This is currently used in the mappings for the 'subject', 'eventtype' and 'dataversion' properties. This represents a field in the input event schema along with a default value to be used, and at least one of these two properties should be provided.

Constructors

Link copied to clipboard
constructor(defaultValue: Output<String>? = null, sourceField: Output<String>? = null)

Properties

Link copied to clipboard
val defaultValue: Output<String>? = null

The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.

Link copied to clipboard
val sourceField: Output<String>? = null

Name of a field in the input event schema that's to be used as the source of a mapping.

Functions

Link copied to clipboard
open override fun toJava(): JsonFieldWithDefaultArgs