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

com.pulumi.azure.eventgrid.kotlin.SystemTopicEventSubscriptionArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.eventgrid.kotlin

import com.pulumi.azure.eventgrid.SystemTopicEventSubscriptionArgs.builder
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionAdvancedFilterArgs
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionAdvancedFilterArgsBuilder
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionAzureFunctionEndpointArgs
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionAzureFunctionEndpointArgsBuilder
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionDeadLetterIdentityArgs
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionDeadLetterIdentityArgsBuilder
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionDeliveryIdentityArgs
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionDeliveryIdentityArgsBuilder
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionDeliveryPropertyArgs
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionDeliveryPropertyArgsBuilder
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionRetryPolicyArgs
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionRetryPolicyArgsBuilder
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionStorageBlobDeadLetterDestinationArgs
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionStorageBlobDeadLetterDestinationArgsBuilder
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionStorageQueueEndpointArgs
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionStorageQueueEndpointArgsBuilder
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionSubjectFilterArgs
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionSubjectFilterArgsBuilder
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionWebhookEndpointArgs
import com.pulumi.azure.eventgrid.kotlin.inputs.SystemTopicEventSubscriptionWebhookEndpointArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Manages an EventGrid System Topic Event Subscription.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-rg",
 *     location: "West Europe",
 * });
 * const exampleAccount = new azure.storage.Account("example", {
 *     name: "examplestorageaccount",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountReplicationType: "LRS",
 *     tags: {
 *         environment: "staging",
 *     },
 * });
 * const exampleQueue = new azure.storage.Queue("example", {
 *     name: "examplestoragequeue",
 *     storageAccountName: exampleAccount.name,
 * });
 * const exampleSystemTopic = new azure.eventgrid.SystemTopic("example", {
 *     name: "example-system-topic",
 *     location: "Global",
 *     resourceGroupName: example.name,
 *     sourceArmResourceId: example.id,
 *     topicType: "Microsoft.Resources.ResourceGroups",
 * });
 * const exampleSystemTopicEventSubscription = new azure.eventgrid.SystemTopicEventSubscription("example", {
 *     name: "example-event-subscription",
 *     systemTopic: exampleSystemTopic.name,
 *     resourceGroupName: example.name,
 *     storageQueueEndpoint: {
 *         storageAccountId: exampleAccount.id,
 *         queueName: exampleQueue.name,
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-rg",
 *     location="West Europe")
 * example_account = azure.storage.Account("example",
 *     name="examplestorageaccount",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_replication_type="LRS",
 *     tags={
 *         "environment": "staging",
 *     })
 * example_queue = azure.storage.Queue("example",
 *     name="examplestoragequeue",
 *     storage_account_name=example_account.name)
 * example_system_topic = azure.eventgrid.SystemTopic("example",
 *     name="example-system-topic",
 *     location="Global",
 *     resource_group_name=example.name,
 *     source_arm_resource_id=example.id,
 *     topic_type="Microsoft.Resources.ResourceGroups")
 * example_system_topic_event_subscription = azure.eventgrid.SystemTopicEventSubscription("example",
 *     name="example-event-subscription",
 *     system_topic=example_system_topic.name,
 *     resource_group_name=example.name,
 *     storage_queue_endpoint=azure.eventgrid.SystemTopicEventSubscriptionStorageQueueEndpointArgs(
 *         storage_account_id=example_account.id,
 *         queue_name=example_queue.name,
 *     ))
 * ```
 * ```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-rg",
 *         Location = "West Europe",
 *     });
 *     var exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "examplestorageaccount",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountReplicationType = "LRS",
 *         Tags =
 *         {
 *             { "environment", "staging" },
 *         },
 *     });
 *     var exampleQueue = new Azure.Storage.Queue("example", new()
 *     {
 *         Name = "examplestoragequeue",
 *         StorageAccountName = exampleAccount.Name,
 *     });
 *     var exampleSystemTopic = new Azure.EventGrid.SystemTopic("example", new()
 *     {
 *         Name = "example-system-topic",
 *         Location = "Global",
 *         ResourceGroupName = example.Name,
 *         SourceArmResourceId = example.Id,
 *         TopicType = "Microsoft.Resources.ResourceGroups",
 *     });
 *     var exampleSystemTopicEventSubscription = new Azure.EventGrid.SystemTopicEventSubscription("example", new()
 *     {
 *         Name = "example-event-subscription",
 *         SystemTopic = exampleSystemTopic.Name,
 *         ResourceGroupName = example.Name,
 *         StorageQueueEndpoint = new Azure.EventGrid.Inputs.SystemTopicEventSubscriptionStorageQueueEndpointArgs
 *         {
 *             StorageAccountId = exampleAccount.Id,
 *             QueueName = exampleQueue.Name,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/eventgrid"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
 * 	"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-rg"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("examplestorageaccount"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountReplicationType: pulumi.String("LRS"),
 * 			Tags: pulumi.StringMap{
 * 				"environment": pulumi.String("staging"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleQueue, err := storage.NewQueue(ctx, "example", &storage.QueueArgs{
 * 			Name:               pulumi.String("examplestoragequeue"),
 * 			StorageAccountName: exampleAccount.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleSystemTopic, err := eventgrid.NewSystemTopic(ctx, "example", &eventgrid.SystemTopicArgs{
 * 			Name:                pulumi.String("example-system-topic"),
 * 			Location:            pulumi.String("Global"),
 * 			ResourceGroupName:   example.Name,
 * 			SourceArmResourceId: example.ID(),
 * 			TopicType:           pulumi.String("Microsoft.Resources.ResourceGroups"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = eventgrid.NewSystemTopicEventSubscription(ctx, "example", &eventgrid.SystemTopicEventSubscriptionArgs{
 * 			Name:              pulumi.String("example-event-subscription"),
 * 			SystemTopic:       exampleSystemTopic.Name,
 * 			ResourceGroupName: example.Name,
 * 			StorageQueueEndpoint: &eventgrid.SystemTopicEventSubscriptionStorageQueueEndpointArgs{
 * 				StorageAccountId: exampleAccount.ID(),
 * 				QueueName:        exampleQueue.Name,
 * 			},
 * 		})
 * 		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.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.storage.Queue;
 * import com.pulumi.azure.storage.QueueArgs;
 * import com.pulumi.azure.eventgrid.SystemTopic;
 * import com.pulumi.azure.eventgrid.SystemTopicArgs;
 * import com.pulumi.azure.eventgrid.SystemTopicEventSubscription;
 * import com.pulumi.azure.eventgrid.SystemTopicEventSubscriptionArgs;
 * import com.pulumi.azure.eventgrid.inputs.SystemTopicEventSubscriptionStorageQueueEndpointArgs;
 * 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-rg")
 *             .location("West Europe")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("examplestorageaccount")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .tags(Map.of("environment", "staging"))
 *             .build());
 *         var exampleQueue = new Queue("exampleQueue", QueueArgs.builder()
 *             .name("examplestoragequeue")
 *             .storageAccountName(exampleAccount.name())
 *             .build());
 *         var exampleSystemTopic = new SystemTopic("exampleSystemTopic", SystemTopicArgs.builder()
 *             .name("example-system-topic")
 *             .location("Global")
 *             .resourceGroupName(example.name())
 *             .sourceArmResourceId(example.id())
 *             .topicType("Microsoft.Resources.ResourceGroups")
 *             .build());
 *         var exampleSystemTopicEventSubscription = new SystemTopicEventSubscription("exampleSystemTopicEventSubscription", SystemTopicEventSubscriptionArgs.builder()
 *             .name("example-event-subscription")
 *             .systemTopic(exampleSystemTopic.name())
 *             .resourceGroupName(example.name())
 *             .storageQueueEndpoint(SystemTopicEventSubscriptionStorageQueueEndpointArgs.builder()
 *                 .storageAccountId(exampleAccount.id())
 *                 .queueName(exampleQueue.name())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-rg
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: examplestorageaccount
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: LRS
 *       tags:
 *         environment: staging
 *   exampleQueue:
 *     type: azure:storage:Queue
 *     name: example
 *     properties:
 *       name: examplestoragequeue
 *       storageAccountName: ${exampleAccount.name}
 *   exampleSystemTopic:
 *     type: azure:eventgrid:SystemTopic
 *     name: example
 *     properties:
 *       name: example-system-topic
 *       location: Global
 *       resourceGroupName: ${example.name}
 *       sourceArmResourceId: ${example.id}
 *       topicType: Microsoft.Resources.ResourceGroups
 *   exampleSystemTopicEventSubscription:
 *     type: azure:eventgrid:SystemTopicEventSubscription
 *     name: example
 *     properties:
 *       name: example-event-subscription
 *       systemTopic: ${exampleSystemTopic.name}
 *       resourceGroupName: ${example.name}
 *       storageQueueEndpoint:
 *         storageAccountId: ${exampleAccount.id}
 *         queueName: ${exampleQueue.name}
 * ```
 * 
 * ## Import
 * EventGrid System Topic Event Subscriptions can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:eventgrid/systemTopicEventSubscription:SystemTopicEventSubscription example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventGrid/systemTopics/topic1/eventSubscriptions/subscription1
 * ```
 * @property advancedFilter A `advanced_filter` block as defined below.
 * @property advancedFilteringOnArraysEnabled Specifies whether advanced filters should be evaluated against an array of values instead of expecting a singular value. Defaults to `false`.
 * @property azureFunctionEndpoint An `azure_function_endpoint` block as defined below.
 * @property deadLetterIdentity A `dead_letter_identity` block as defined below.
 * > **Note:** `storage_blob_dead_letter_destination` must be specified when a `dead_letter_identity` is specified
 * @property deliveryIdentity A `delivery_identity` block as defined below.
 * @property deliveryProperties One or more `delivery_property` blocks as defined below.
 * @property eventDeliverySchema Specifies the event delivery schema for the event subscription. Possible values include: `EventGridSchema`, `CloudEventSchemaV1_0`, `CustomInputSchema`. Defaults to `EventGridSchema`. Changing this forces a new resource to be created.
 * @property eventhubEndpointId Specifies the id where the Event Hub is located.
 * @property expirationTimeUtc Specifies the expiration time of the event subscription (Datetime Format `RFC 3339`).
 * @property hybridConnectionEndpointId Specifies the id where the Hybrid Connection is located.
 * @property includedEventTypes A list of applicable event types that need to be part of the event subscription.
 * @property labels A list of labels to assign to the event subscription.
 * @property name The name which should be used for this Event Subscription. Changing this forces a new Event Subscription to be created.
 * @property resourceGroupName The name of the Resource Group where the System Topic exists. Changing this forces a new Event Subscription to be created.
 * @property retryPolicy A `retry_policy` block as defined below.
 * @property serviceBusQueueEndpointId Specifies the id where the Service Bus Queue is located.
 * @property serviceBusTopicEndpointId Specifies the id where the Service Bus Topic is located.
 * @property storageBlobDeadLetterDestination A `storage_blob_dead_letter_destination` block as defined below.
 * @property storageQueueEndpoint A `storage_queue_endpoint` block as defined below.
 * @property subjectFilter A `subject_filter` block as defined below.
 * @property systemTopic The System Topic where the Event Subscription should be created in. Changing this forces a new Event Subscription to be created.
 * @property webhookEndpoint A `webhook_endpoint` block as defined below.
 * > **NOTE:** One of `azure_function_endpoint`, `eventhub_endpoint_id`, `hybrid_connection_endpoint`, `hybrid_connection_endpoint_id`, `service_bus_queue_endpoint_id`, `service_bus_topic_endpoint_id`, `storage_queue_endpoint` or `webhook_endpoint` must be specified.
 */
public data class SystemTopicEventSubscriptionArgs(
    public val advancedFilter: Output? = null,
    public val advancedFilteringOnArraysEnabled: Output? = null,
    public val azureFunctionEndpoint: Output? =
        null,
    public val deadLetterIdentity: Output? = null,
    public val deliveryIdentity: Output? = null,
    public val deliveryProperties: Output>? =
        null,
    public val eventDeliverySchema: Output? = null,
    public val eventhubEndpointId: Output? = null,
    public val expirationTimeUtc: Output? = null,
    public val hybridConnectionEndpointId: Output? = null,
    public val includedEventTypes: Output>? = null,
    public val labels: Output>? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val retryPolicy: Output? = null,
    public val serviceBusQueueEndpointId: Output? = null,
    public val serviceBusTopicEndpointId: Output? = null,
    public val storageBlobDeadLetterDestination:
    Output? = null,
    public val storageQueueEndpoint: Output? =
        null,
    public val subjectFilter: Output? = null,
    public val systemTopic: Output? = null,
    public val webhookEndpoint: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.eventgrid.SystemTopicEventSubscriptionArgs =
        com.pulumi.azure.eventgrid.SystemTopicEventSubscriptionArgs.builder()
            .advancedFilter(advancedFilter?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .advancedFilteringOnArraysEnabled(advancedFilteringOnArraysEnabled?.applyValue({ args0 -> args0 }))
            .azureFunctionEndpoint(
                azureFunctionEndpoint?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .deadLetterIdentity(
                deadLetterIdentity?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .deliveryIdentity(deliveryIdentity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .deliveryProperties(
                deliveryProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .eventDeliverySchema(eventDeliverySchema?.applyValue({ args0 -> args0 }))
            .eventhubEndpointId(eventhubEndpointId?.applyValue({ args0 -> args0 }))
            .expirationTimeUtc(expirationTimeUtc?.applyValue({ args0 -> args0 }))
            .hybridConnectionEndpointId(hybridConnectionEndpointId?.applyValue({ args0 -> args0 }))
            .includedEventTypes(includedEventTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .retryPolicy(retryPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .serviceBusQueueEndpointId(serviceBusQueueEndpointId?.applyValue({ args0 -> args0 }))
            .serviceBusTopicEndpointId(serviceBusTopicEndpointId?.applyValue({ args0 -> args0 }))
            .storageBlobDeadLetterDestination(
                storageBlobDeadLetterDestination?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .storageQueueEndpoint(
                storageQueueEndpoint?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .subjectFilter(subjectFilter?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .systemTopic(systemTopic?.applyValue({ args0 -> args0 }))
            .webhookEndpoint(
                webhookEndpoint?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [SystemTopicEventSubscriptionArgs].
 */
@PulumiTagMarker
public class SystemTopicEventSubscriptionArgsBuilder internal constructor() {
    private var advancedFilter: Output? = null

    private var advancedFilteringOnArraysEnabled: Output? = null

    private var azureFunctionEndpoint: Output? =
        null

    private var deadLetterIdentity: Output? = null

    private var deliveryIdentity: Output? = null

    private var deliveryProperties: Output>? =
        null

    private var eventDeliverySchema: Output? = null

    private var eventhubEndpointId: Output? = null

    private var expirationTimeUtc: Output? = null

    private var hybridConnectionEndpointId: Output? = null

    private var includedEventTypes: Output>? = null

    private var labels: Output>? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var retryPolicy: Output? = null

    private var serviceBusQueueEndpointId: Output? = null

    private var serviceBusTopicEndpointId: Output? = null

    private var storageBlobDeadLetterDestination:
        Output? = null

    private var storageQueueEndpoint: Output? =
        null

    private var subjectFilter: Output? = null

    private var systemTopic: Output? = null

    private var webhookEndpoint: Output? = null

    /**
     * @param value A `advanced_filter` block as defined below.
     */
    @JvmName("fjshguvfkqdqucdp")
    public suspend
    fun advancedFilter(`value`: Output) {
        this.advancedFilter = value
    }

    /**
     * @param value Specifies whether advanced filters should be evaluated against an array of values instead of expecting a singular value. Defaults to `false`.
     */
    @JvmName("iduneeyqbwrixmwq")
    public suspend fun advancedFilteringOnArraysEnabled(`value`: Output) {
        this.advancedFilteringOnArraysEnabled = value
    }

    /**
     * @param value An `azure_function_endpoint` block as defined below.
     */
    @JvmName("riulchklqjveuqih")
    public suspend
    fun azureFunctionEndpoint(`value`: Output) {
        this.azureFunctionEndpoint = value
    }

    /**
     * @param value A `dead_letter_identity` block as defined below.
     * > **Note:** `storage_blob_dead_letter_destination` must be specified when a `dead_letter_identity` is specified
     */
    @JvmName("kmdypdqbdkovnuik")
    public suspend
    fun deadLetterIdentity(`value`: Output) {
        this.deadLetterIdentity = value
    }

    /**
     * @param value A `delivery_identity` block as defined below.
     */
    @JvmName("nhxgdodwwqxljvhp")
    public suspend
    fun deliveryIdentity(`value`: Output) {
        this.deliveryIdentity = value
    }

    /**
     * @param value One or more `delivery_property` blocks as defined below.
     */
    @JvmName("iavliqowioypldvb")
    public suspend
    fun deliveryProperties(`value`: Output>) {
        this.deliveryProperties = value
    }

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

    /**
     * @param values One or more `delivery_property` blocks as defined below.
     */
    @JvmName("dltrcrurjxxafqok")
    public suspend
    fun deliveryProperties(values: List>) {
        this.deliveryProperties = Output.all(values)
    }

    /**
     * @param value Specifies the event delivery schema for the event subscription. Possible values include: `EventGridSchema`, `CloudEventSchemaV1_0`, `CustomInputSchema`. Defaults to `EventGridSchema`. Changing this forces a new resource to be created.
     */
    @JvmName("tojpdkekcgmrumsr")
    public suspend fun eventDeliverySchema(`value`: Output) {
        this.eventDeliverySchema = value
    }

    /**
     * @param value Specifies the id where the Event Hub is located.
     */
    @JvmName("njkxmyqmskwkowpy")
    public suspend fun eventhubEndpointId(`value`: Output) {
        this.eventhubEndpointId = value
    }

    /**
     * @param value Specifies the expiration time of the event subscription (Datetime Format `RFC 3339`).
     */
    @JvmName("ylipgjmpotwwqxhc")
    public suspend fun expirationTimeUtc(`value`: Output) {
        this.expirationTimeUtc = value
    }

    /**
     * @param value Specifies the id where the Hybrid Connection is located.
     */
    @JvmName("rrxmxndmyahvmsup")
    public suspend fun hybridConnectionEndpointId(`value`: Output) {
        this.hybridConnectionEndpointId = value
    }

    /**
     * @param value A list of applicable event types that need to be part of the event subscription.
     */
    @JvmName("smvrawjpdpjhjxmd")
    public suspend fun includedEventTypes(`value`: Output>) {
        this.includedEventTypes = value
    }

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

    /**
     * @param values A list of applicable event types that need to be part of the event subscription.
     */
    @JvmName("xxyvjelkkrgwgulh")
    public suspend fun includedEventTypes(values: List>) {
        this.includedEventTypes = Output.all(values)
    }

    /**
     * @param value A list of labels to assign to the event subscription.
     */
    @JvmName("lyqfjofaeanwvfbc")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

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

    /**
     * @param values A list of labels to assign to the event subscription.
     */
    @JvmName("bwkjjcfjmllrqtio")
    public suspend fun labels(values: List>) {
        this.labels = Output.all(values)
    }

    /**
     * @param value The name which should be used for this Event Subscription. Changing this forces a new Event Subscription to be created.
     */
    @JvmName("bluqbmxvsosijrcc")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the Resource Group where the System Topic exists. Changing this forces a new Event Subscription to be created.
     */
    @JvmName("ctsnjgqwavtrofbp")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A `retry_policy` block as defined below.
     */
    @JvmName("udlmswbeipliwira")
    public suspend fun retryPolicy(`value`: Output) {
        this.retryPolicy = value
    }

    /**
     * @param value Specifies the id where the Service Bus Queue is located.
     */
    @JvmName("wrnqeahpuusshhmv")
    public suspend fun serviceBusQueueEndpointId(`value`: Output) {
        this.serviceBusQueueEndpointId = value
    }

    /**
     * @param value Specifies the id where the Service Bus Topic is located.
     */
    @JvmName("aqrbotevqylrsspg")
    public suspend fun serviceBusTopicEndpointId(`value`: Output) {
        this.serviceBusTopicEndpointId = value
    }

    /**
     * @param value A `storage_blob_dead_letter_destination` block as defined below.
     */
    @JvmName("qvqllfsawqlyvcsb")
    public suspend
    fun storageBlobDeadLetterDestination(`value`: Output) {
        this.storageBlobDeadLetterDestination = value
    }

    /**
     * @param value A `storage_queue_endpoint` block as defined below.
     */
    @JvmName("aqmkphpnncgetrng")
    public suspend
    fun storageQueueEndpoint(`value`: Output) {
        this.storageQueueEndpoint = value
    }

    /**
     * @param value A `subject_filter` block as defined below.
     */
    @JvmName("kgamjwofuqkcurbq")
    public suspend fun subjectFilter(`value`: Output) {
        this.subjectFilter = value
    }

    /**
     * @param value The System Topic where the Event Subscription should be created in. Changing this forces a new Event Subscription to be created.
     */
    @JvmName("qcqojqhqcnthjbst")
    public suspend fun systemTopic(`value`: Output) {
        this.systemTopic = value
    }

    /**
     * @param value A `webhook_endpoint` block as defined below.
     * > **NOTE:** One of `azure_function_endpoint`, `eventhub_endpoint_id`, `hybrid_connection_endpoint`, `hybrid_connection_endpoint_id`, `service_bus_queue_endpoint_id`, `service_bus_topic_endpoint_id`, `storage_queue_endpoint` or `webhook_endpoint` must be specified.
     */
    @JvmName("qkpfcyemuedcyacu")
    public suspend
    fun webhookEndpoint(`value`: Output) {
        this.webhookEndpoint = value
    }

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

    /**
     * @param argument A `advanced_filter` block as defined below.
     */
    @JvmName("slruwkdwgqyeveft")
    public suspend
    fun advancedFilter(argument: suspend SystemTopicEventSubscriptionAdvancedFilterArgsBuilder.() -> Unit) {
        val toBeMapped = SystemTopicEventSubscriptionAdvancedFilterArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.advancedFilter = mapped
    }

    /**
     * @param value Specifies whether advanced filters should be evaluated against an array of values instead of expecting a singular value. Defaults to `false`.
     */
    @JvmName("mwpsweqvlcyyjewk")
    public suspend fun advancedFilteringOnArraysEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.advancedFilteringOnArraysEnabled = mapped
    }

    /**
     * @param value An `azure_function_endpoint` block as defined below.
     */
    @JvmName("qfbojnnclhaeicuj")
    public suspend
    fun azureFunctionEndpoint(`value`: SystemTopicEventSubscriptionAzureFunctionEndpointArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureFunctionEndpoint = mapped
    }

    /**
     * @param argument An `azure_function_endpoint` block as defined below.
     */
    @JvmName("auykukpdpwadjomg")
    public suspend
    fun azureFunctionEndpoint(argument: suspend SystemTopicEventSubscriptionAzureFunctionEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = SystemTopicEventSubscriptionAzureFunctionEndpointArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.azureFunctionEndpoint = mapped
    }

    /**
     * @param value A `dead_letter_identity` block as defined below.
     * > **Note:** `storage_blob_dead_letter_destination` must be specified when a `dead_letter_identity` is specified
     */
    @JvmName("xmbjcirqqhltldlb")
    public suspend
    fun deadLetterIdentity(`value`: SystemTopicEventSubscriptionDeadLetterIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deadLetterIdentity = mapped
    }

    /**
     * @param argument A `dead_letter_identity` block as defined below.
     * > **Note:** `storage_blob_dead_letter_destination` must be specified when a `dead_letter_identity` is specified
     */
    @JvmName("oqnljejrsuriktmd")
    public suspend
    fun deadLetterIdentity(argument: suspend SystemTopicEventSubscriptionDeadLetterIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = SystemTopicEventSubscriptionDeadLetterIdentityArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.deadLetterIdentity = mapped
    }

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

    /**
     * @param argument A `delivery_identity` block as defined below.
     */
    @JvmName("smowewenjhuynwbb")
    public suspend
    fun deliveryIdentity(argument: suspend SystemTopicEventSubscriptionDeliveryIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = SystemTopicEventSubscriptionDeliveryIdentityArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.deliveryIdentity = mapped
    }

    /**
     * @param value One or more `delivery_property` blocks as defined below.
     */
    @JvmName("fwlgefppgompyivh")
    public suspend
    fun deliveryProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deliveryProperties = mapped
    }

    /**
     * @param argument One or more `delivery_property` blocks as defined below.
     */
    @JvmName("eivfcoyfujjgeguc")
    public suspend
    fun deliveryProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SystemTopicEventSubscriptionDeliveryPropertyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.deliveryProperties = mapped
    }

    /**
     * @param argument One or more `delivery_property` blocks as defined below.
     */
    @JvmName("wrgduhpxoehfrgbo")
    public suspend fun deliveryProperties(
        vararg
        argument: suspend SystemTopicEventSubscriptionDeliveryPropertyArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            SystemTopicEventSubscriptionDeliveryPropertyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.deliveryProperties = mapped
    }

    /**
     * @param argument One or more `delivery_property` blocks as defined below.
     */
    @JvmName("qpfqemafnhrhbkbk")
    public suspend
    fun deliveryProperties(argument: suspend SystemTopicEventSubscriptionDeliveryPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SystemTopicEventSubscriptionDeliveryPropertyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.deliveryProperties = mapped
    }

    /**
     * @param values One or more `delivery_property` blocks as defined below.
     */
    @JvmName("dfblisumqnpwtyrv")
    public suspend fun deliveryProperties(
        vararg
        values: SystemTopicEventSubscriptionDeliveryPropertyArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deliveryProperties = mapped
    }

    /**
     * @param value Specifies the event delivery schema for the event subscription. Possible values include: `EventGridSchema`, `CloudEventSchemaV1_0`, `CustomInputSchema`. Defaults to `EventGridSchema`. Changing this forces a new resource to be created.
     */
    @JvmName("tyvsyvqjhjyfxdgp")
    public suspend fun eventDeliverySchema(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventDeliverySchema = mapped
    }

    /**
     * @param value Specifies the id where the Event Hub is located.
     */
    @JvmName("hvjidpxmnxsvgxtw")
    public suspend fun eventhubEndpointId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventhubEndpointId = mapped
    }

    /**
     * @param value Specifies the expiration time of the event subscription (Datetime Format `RFC 3339`).
     */
    @JvmName("icynqvjdkimuruuj")
    public suspend fun expirationTimeUtc(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expirationTimeUtc = mapped
    }

    /**
     * @param value Specifies the id where the Hybrid Connection is located.
     */
    @JvmName("kdyiftyxlwftgyxg")
    public suspend fun hybridConnectionEndpointId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hybridConnectionEndpointId = mapped
    }

    /**
     * @param value A list of applicable event types that need to be part of the event subscription.
     */
    @JvmName("tdpqcmsbpacrulvl")
    public suspend fun includedEventTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includedEventTypes = mapped
    }

    /**
     * @param values A list of applicable event types that need to be part of the event subscription.
     */
    @JvmName("vaxqbjbfqneslucd")
    public suspend fun includedEventTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includedEventTypes = mapped
    }

    /**
     * @param value A list of labels to assign to the event subscription.
     */
    @JvmName("jmraesrpolvwsehf")
    public suspend fun labels(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values A list of labels to assign to the event subscription.
     */
    @JvmName("qkgcekatdanvitfv")
    public suspend fun labels(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The name which should be used for this Event Subscription. Changing this forces a new Event Subscription to be created.
     */
    @JvmName("yiugfqxjwqjmspni")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the Resource Group where the System Topic exists. Changing this forces a new Event Subscription to be created.
     */
    @JvmName("uyifcaqrhknpufkv")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

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

    /**
     * @param argument A `retry_policy` block as defined below.
     */
    @JvmName("wdfmvjpegvarqqek")
    public suspend
    fun retryPolicy(argument: suspend SystemTopicEventSubscriptionRetryPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = SystemTopicEventSubscriptionRetryPolicyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.retryPolicy = mapped
    }

    /**
     * @param value Specifies the id where the Service Bus Queue is located.
     */
    @JvmName("gcpbksskgynbakim")
    public suspend fun serviceBusQueueEndpointId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceBusQueueEndpointId = mapped
    }

    /**
     * @param value Specifies the id where the Service Bus Topic is located.
     */
    @JvmName("vgybmlwmkfnbkodf")
    public suspend fun serviceBusTopicEndpointId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceBusTopicEndpointId = mapped
    }

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

    /**
     * @param argument A `storage_blob_dead_letter_destination` block as defined below.
     */
    @JvmName("hewxylpbeymejynu")
    public suspend
    fun storageBlobDeadLetterDestination(argument: suspend SystemTopicEventSubscriptionStorageBlobDeadLetterDestinationArgsBuilder.() -> Unit) {
        val toBeMapped =
            SystemTopicEventSubscriptionStorageBlobDeadLetterDestinationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.storageBlobDeadLetterDestination = mapped
    }

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

    /**
     * @param argument A `storage_queue_endpoint` block as defined below.
     */
    @JvmName("dctmpxrsjfhmtrfq")
    public suspend
    fun storageQueueEndpoint(argument: suspend SystemTopicEventSubscriptionStorageQueueEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = SystemTopicEventSubscriptionStorageQueueEndpointArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.storageQueueEndpoint = mapped
    }

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

    /**
     * @param argument A `subject_filter` block as defined below.
     */
    @JvmName("riwoddtefjbkqgog")
    public suspend
    fun subjectFilter(argument: suspend SystemTopicEventSubscriptionSubjectFilterArgsBuilder.() -> Unit) {
        val toBeMapped = SystemTopicEventSubscriptionSubjectFilterArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.subjectFilter = mapped
    }

    /**
     * @param value The System Topic where the Event Subscription should be created in. Changing this forces a new Event Subscription to be created.
     */
    @JvmName("yubwhawakocsgwes")
    public suspend fun systemTopic(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.systemTopic = mapped
    }

    /**
     * @param value A `webhook_endpoint` block as defined below.
     * > **NOTE:** One of `azure_function_endpoint`, `eventhub_endpoint_id`, `hybrid_connection_endpoint`, `hybrid_connection_endpoint_id`, `service_bus_queue_endpoint_id`, `service_bus_topic_endpoint_id`, `storage_queue_endpoint` or `webhook_endpoint` must be specified.
     */
    @JvmName("ureoxqycbtiouudp")
    public suspend fun webhookEndpoint(`value`: SystemTopicEventSubscriptionWebhookEndpointArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webhookEndpoint = mapped
    }

    /**
     * @param argument A `webhook_endpoint` block as defined below.
     * > **NOTE:** One of `azure_function_endpoint`, `eventhub_endpoint_id`, `hybrid_connection_endpoint`, `hybrid_connection_endpoint_id`, `service_bus_queue_endpoint_id`, `service_bus_topic_endpoint_id`, `storage_queue_endpoint` or `webhook_endpoint` must be specified.
     */
    @JvmName("gujhuwiwcwhhgrie")
    public suspend
    fun webhookEndpoint(argument: suspend SystemTopicEventSubscriptionWebhookEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = SystemTopicEventSubscriptionWebhookEndpointArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.webhookEndpoint = mapped
    }

    internal fun build(): SystemTopicEventSubscriptionArgs = SystemTopicEventSubscriptionArgs(
        advancedFilter = advancedFilter,
        advancedFilteringOnArraysEnabled = advancedFilteringOnArraysEnabled,
        azureFunctionEndpoint = azureFunctionEndpoint,
        deadLetterIdentity = deadLetterIdentity,
        deliveryIdentity = deliveryIdentity,
        deliveryProperties = deliveryProperties,
        eventDeliverySchema = eventDeliverySchema,
        eventhubEndpointId = eventhubEndpointId,
        expirationTimeUtc = expirationTimeUtc,
        hybridConnectionEndpointId = hybridConnectionEndpointId,
        includedEventTypes = includedEventTypes,
        labels = labels,
        name = name,
        resourceGroupName = resourceGroupName,
        retryPolicy = retryPolicy,
        serviceBusQueueEndpointId = serviceBusQueueEndpointId,
        serviceBusTopicEndpointId = serviceBusTopicEndpointId,
        storageBlobDeadLetterDestination = storageBlobDeadLetterDestination,
        storageQueueEndpoint = storageQueueEndpoint,
        subjectFilter = subjectFilter,
        systemTopic = systemTopic,
        webhookEndpoint = webhookEndpoint,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy