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

com.pulumi.azure.kusto.inputs.EventGridDataConnectionState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.kusto.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class EventGridDataConnectionState extends com.pulumi.resources.ResourceArgs {

    public static final EventGridDataConnectionState Empty = new EventGridDataConnectionState();

    /**
     * Specifies the blob storage event type that needs to be processed. Possible Values are `Microsoft.Storage.BlobCreated` and `Microsoft.Storage.BlobRenamed`. Defaults to `Microsoft.Storage.BlobCreated`.
     * 
     */
    @Import(name="blobStorageEventType")
    private @Nullable Output blobStorageEventType;

    /**
     * @return Specifies the blob storage event type that needs to be processed. Possible Values are `Microsoft.Storage.BlobCreated` and `Microsoft.Storage.BlobRenamed`. Defaults to `Microsoft.Storage.BlobCreated`.
     * 
     */
    public Optional> blobStorageEventType() {
        return Optional.ofNullable(this.blobStorageEventType);
    }

    /**
     * Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="clusterName")
    private @Nullable Output clusterName;

    /**
     * @return Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
     * 
     */
    public Optional> clusterName() {
        return Optional.ofNullable(this.clusterName);
    }

    /**
     * Specifies the data format of the EventHub messages. Allowed values: `APACHEAVRO`, `AVRO`, `CSV`, `JSON`, `MULTIJSON`, `ORC`, `PARQUET`, `PSV`, `RAW`, `SCSV`, `SINGLEJSON`, `SOHSV`, `TSV`, `TSVE`, `TXT` and `W3CLOGFILE`.
     * 
     */
    @Import(name="dataFormat")
    private @Nullable Output dataFormat;

    /**
     * @return Specifies the data format of the EventHub messages. Allowed values: `APACHEAVRO`, `AVRO`, `CSV`, `JSON`, `MULTIJSON`, `ORC`, `PARQUET`, `PSV`, `RAW`, `SCSV`, `SINGLEJSON`, `SOHSV`, `TSV`, `TSVE`, `TXT` and `W3CLOGFILE`.
     * 
     */
    public Optional> dataFormat() {
        return Optional.ofNullable(this.dataFormat);
    }

    /**
     * Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="databaseName")
    private @Nullable Output databaseName;

    /**
     * @return Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
     * 
     */
    public Optional> databaseName() {
        return Optional.ofNullable(this.databaseName);
    }

    /**
     * Indication for database routing information from the data connection, by default only database routing information is allowed. Allowed values: `Single`, `Multi`. Changing this forces a new resource to be created. Defaults to `Single`.
     * 
     */
    @Import(name="databaseRoutingType")
    private @Nullable Output databaseRoutingType;

    /**
     * @return Indication for database routing information from the data connection, by default only database routing information is allowed. Allowed values: `Single`, `Multi`. Changing this forces a new resource to be created. Defaults to `Single`.
     * 
     */
    public Optional> databaseRoutingType() {
        return Optional.ofNullable(this.databaseRoutingType);
    }

    /**
     * The resource ID of the event grid that is subscribed to the storage account events.
     * 
     */
    @Import(name="eventgridResourceId")
    private @Nullable Output eventgridResourceId;

    /**
     * @return The resource ID of the event grid that is subscribed to the storage account events.
     * 
     */
    public Optional> eventgridResourceId() {
        return Optional.ofNullable(this.eventgridResourceId);
    }

    /**
     * Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="eventhubConsumerGroupName")
    private @Nullable Output eventhubConsumerGroupName;

    /**
     * @return Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
     * 
     */
    public Optional> eventhubConsumerGroupName() {
        return Optional.ofNullable(this.eventhubConsumerGroupName);
    }

    /**
     * Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="eventhubId")
    private @Nullable Output eventhubId;

    /**
     * @return Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
     * 
     */
    public Optional> eventhubId() {
        return Optional.ofNullable(this.eventhubId);
    }

    /**
     * The location where the Kusto Database should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location where the Kusto Database should be created. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Empty for non-managed identity based data connection. For system assigned identity, provide cluster resource Id. For user assigned identity (UAI) provide the UAI resource Id.
     * 
     */
    @Import(name="managedIdentityResourceId")
    private @Nullable Output managedIdentityResourceId;

    /**
     * @return Empty for non-managed identity based data connection. For system assigned identity, provide cluster resource Id. For user assigned identity (UAI) provide the UAI resource Id.
     * 
     */
    public Optional> managedIdentityResourceId() {
        return Optional.ofNullable(this.managedIdentityResourceId);
    }

    /**
     * Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
     * 
     */
    @Import(name="mappingRuleName")
    private @Nullable Output mappingRuleName;

    /**
     * @return Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
     * 
     */
    public Optional> mappingRuleName() {
        return Optional.ofNullable(this.mappingRuleName);
    }

    /**
     * The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * is the first record of every file ignored? Defaults to `false`.
     * 
     */
    @Import(name="skipFirstRecord")
    private @Nullable Output skipFirstRecord;

    /**
     * @return is the first record of every file ignored? Defaults to `false`.
     * 
     */
    public Optional> skipFirstRecord() {
        return Optional.ofNullable(this.skipFirstRecord);
    }

    /**
     * Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="storageAccountId")
    private @Nullable Output storageAccountId;

    /**
     * @return Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
     * 
     */
    public Optional> storageAccountId() {
        return Optional.ofNullable(this.storageAccountId);
    }

    /**
     * Specifies the target table name used for the message ingestion. Table must exist before resource is created.
     * 
     */
    @Import(name="tableName")
    private @Nullable Output tableName;

    /**
     * @return Specifies the target table name used for the message ingestion. Table must exist before resource is created.
     * 
     */
    public Optional> tableName() {
        return Optional.ofNullable(this.tableName);
    }

    private EventGridDataConnectionState() {}

    private EventGridDataConnectionState(EventGridDataConnectionState $) {
        this.blobStorageEventType = $.blobStorageEventType;
        this.clusterName = $.clusterName;
        this.dataFormat = $.dataFormat;
        this.databaseName = $.databaseName;
        this.databaseRoutingType = $.databaseRoutingType;
        this.eventgridResourceId = $.eventgridResourceId;
        this.eventhubConsumerGroupName = $.eventhubConsumerGroupName;
        this.eventhubId = $.eventhubId;
        this.location = $.location;
        this.managedIdentityResourceId = $.managedIdentityResourceId;
        this.mappingRuleName = $.mappingRuleName;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.skipFirstRecord = $.skipFirstRecord;
        this.storageAccountId = $.storageAccountId;
        this.tableName = $.tableName;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(EventGridDataConnectionState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private EventGridDataConnectionState $;

        public Builder() {
            $ = new EventGridDataConnectionState();
        }

        public Builder(EventGridDataConnectionState defaults) {
            $ = new EventGridDataConnectionState(Objects.requireNonNull(defaults));
        }

        /**
         * @param blobStorageEventType Specifies the blob storage event type that needs to be processed. Possible Values are `Microsoft.Storage.BlobCreated` and `Microsoft.Storage.BlobRenamed`. Defaults to `Microsoft.Storage.BlobCreated`.
         * 
         * @return builder
         * 
         */
        public Builder blobStorageEventType(@Nullable Output blobStorageEventType) {
            $.blobStorageEventType = blobStorageEventType;
            return this;
        }

        /**
         * @param blobStorageEventType Specifies the blob storage event type that needs to be processed. Possible Values are `Microsoft.Storage.BlobCreated` and `Microsoft.Storage.BlobRenamed`. Defaults to `Microsoft.Storage.BlobCreated`.
         * 
         * @return builder
         * 
         */
        public Builder blobStorageEventType(String blobStorageEventType) {
            return blobStorageEventType(Output.of(blobStorageEventType));
        }

        /**
         * @param clusterName Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(@Nullable Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        /**
         * @param dataFormat Specifies the data format of the EventHub messages. Allowed values: `APACHEAVRO`, `AVRO`, `CSV`, `JSON`, `MULTIJSON`, `ORC`, `PARQUET`, `PSV`, `RAW`, `SCSV`, `SINGLEJSON`, `SOHSV`, `TSV`, `TSVE`, `TXT` and `W3CLOGFILE`.
         * 
         * @return builder
         * 
         */
        public Builder dataFormat(@Nullable Output dataFormat) {
            $.dataFormat = dataFormat;
            return this;
        }

        /**
         * @param dataFormat Specifies the data format of the EventHub messages. Allowed values: `APACHEAVRO`, `AVRO`, `CSV`, `JSON`, `MULTIJSON`, `ORC`, `PARQUET`, `PSV`, `RAW`, `SCSV`, `SINGLEJSON`, `SOHSV`, `TSV`, `TSVE`, `TXT` and `W3CLOGFILE`.
         * 
         * @return builder
         * 
         */
        public Builder dataFormat(String dataFormat) {
            return dataFormat(Output.of(dataFormat));
        }

        /**
         * @param databaseName Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(@Nullable Output databaseName) {
            $.databaseName = databaseName;
            return this;
        }

        /**
         * @param databaseName Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(String databaseName) {
            return databaseName(Output.of(databaseName));
        }

        /**
         * @param databaseRoutingType Indication for database routing information from the data connection, by default only database routing information is allowed. Allowed values: `Single`, `Multi`. Changing this forces a new resource to be created. Defaults to `Single`.
         * 
         * @return builder
         * 
         */
        public Builder databaseRoutingType(@Nullable Output databaseRoutingType) {
            $.databaseRoutingType = databaseRoutingType;
            return this;
        }

        /**
         * @param databaseRoutingType Indication for database routing information from the data connection, by default only database routing information is allowed. Allowed values: `Single`, `Multi`. Changing this forces a new resource to be created. Defaults to `Single`.
         * 
         * @return builder
         * 
         */
        public Builder databaseRoutingType(String databaseRoutingType) {
            return databaseRoutingType(Output.of(databaseRoutingType));
        }

        /**
         * @param eventgridResourceId The resource ID of the event grid that is subscribed to the storage account events.
         * 
         * @return builder
         * 
         */
        public Builder eventgridResourceId(@Nullable Output eventgridResourceId) {
            $.eventgridResourceId = eventgridResourceId;
            return this;
        }

        /**
         * @param eventgridResourceId The resource ID of the event grid that is subscribed to the storage account events.
         * 
         * @return builder
         * 
         */
        public Builder eventgridResourceId(String eventgridResourceId) {
            return eventgridResourceId(Output.of(eventgridResourceId));
        }

        /**
         * @param eventhubConsumerGroupName Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubConsumerGroupName(@Nullable Output eventhubConsumerGroupName) {
            $.eventhubConsumerGroupName = eventhubConsumerGroupName;
            return this;
        }

        /**
         * @param eventhubConsumerGroupName Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubConsumerGroupName(String eventhubConsumerGroupName) {
            return eventhubConsumerGroupName(Output.of(eventhubConsumerGroupName));
        }

        /**
         * @param eventhubId Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubId(@Nullable Output eventhubId) {
            $.eventhubId = eventhubId;
            return this;
        }

        /**
         * @param eventhubId Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubId(String eventhubId) {
            return eventhubId(Output.of(eventhubId));
        }

        /**
         * @param location The location where the Kusto Database should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The location where the Kusto Database should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param managedIdentityResourceId Empty for non-managed identity based data connection. For system assigned identity, provide cluster resource Id. For user assigned identity (UAI) provide the UAI resource Id.
         * 
         * @return builder
         * 
         */
        public Builder managedIdentityResourceId(@Nullable Output managedIdentityResourceId) {
            $.managedIdentityResourceId = managedIdentityResourceId;
            return this;
        }

        /**
         * @param managedIdentityResourceId Empty for non-managed identity based data connection. For system assigned identity, provide cluster resource Id. For user assigned identity (UAI) provide the UAI resource Id.
         * 
         * @return builder
         * 
         */
        public Builder managedIdentityResourceId(String managedIdentityResourceId) {
            return managedIdentityResourceId(Output.of(managedIdentityResourceId));
        }

        /**
         * @param mappingRuleName Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
         * 
         * @return builder
         * 
         */
        public Builder mappingRuleName(@Nullable Output mappingRuleName) {
            $.mappingRuleName = mappingRuleName;
            return this;
        }

        /**
         * @param mappingRuleName Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
         * 
         * @return builder
         * 
         */
        public Builder mappingRuleName(String mappingRuleName) {
            return mappingRuleName(Output.of(mappingRuleName));
        }

        /**
         * @param name The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param skipFirstRecord is the first record of every file ignored? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder skipFirstRecord(@Nullable Output skipFirstRecord) {
            $.skipFirstRecord = skipFirstRecord;
            return this;
        }

        /**
         * @param skipFirstRecord is the first record of every file ignored? Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder skipFirstRecord(Boolean skipFirstRecord) {
            return skipFirstRecord(Output.of(skipFirstRecord));
        }

        /**
         * @param storageAccountId Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(@Nullable Output storageAccountId) {
            $.storageAccountId = storageAccountId;
            return this;
        }

        /**
         * @param storageAccountId Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(String storageAccountId) {
            return storageAccountId(Output.of(storageAccountId));
        }

        /**
         * @param tableName Specifies the target table name used for the message ingestion. Table must exist before resource is created.
         * 
         * @return builder
         * 
         */
        public Builder tableName(@Nullable Output tableName) {
            $.tableName = tableName;
            return this;
        }

        /**
         * @param tableName Specifies the target table name used for the message ingestion. Table must exist before resource is created.
         * 
         * @return builder
         * 
         */
        public Builder tableName(String tableName) {
            return tableName(Output.of(tableName));
        }

        public EventGridDataConnectionState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy