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

com.pulumi.azure.kusto.IotHubDataConnectionArgs 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;

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


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

    public static final IotHubDataConnectionArgs Empty = new IotHubDataConnectionArgs();

    /**
     * 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", required=true)
    private 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 Output clusterName() {
        return this.clusterName;
    }

    /**
     * Specifies the IotHub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="consumerGroup", required=true)
    private Output consumerGroup;

    /**
     * @return Specifies the IotHub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
     * 
     */
    public Output consumerGroup() {
        return this.consumerGroup;
    }

    /**
     * Specifies the data format of the IoTHub messages. Allowed values: `APACHEAVRO`, `AVRO`, `CSV`, `JSON`, `MULTIJSON`, `ORC`, `PARQUET`, `PSV`, `RAW`, `SCSV`, `SINGLEJSON`, `SOHSV`, `TSV`, `TSVE`, `TXT` and `W3CLOGFILE`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="dataFormat")
    private @Nullable Output dataFormat;

    /**
     * @return Specifies the data format of the IoTHub messages. Allowed values: `APACHEAVRO`, `AVRO`, `CSV`, `JSON`, `MULTIJSON`, `ORC`, `PARQUET`, `PSV`, `RAW`, `SCSV`, `SINGLEJSON`, `SOHSV`, `TSV`, `TSVE`, `TXT` and `W3CLOGFILE`. Changing this forces a new resource to be created.
     * 
     */
    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", required=true)
    private 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 Output databaseName() {
        return 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);
    }

    /**
     * Specifies the System Properties that each IoT Hub message should contain. Changing this forces a new resource to be created. Possible values are `message-id`, `sequence-number`, `to`, `absolute-expiry-time`, `iothub-enqueuedtime`, `correlation-id`, `user-id`, `iothub-ack`, `iothub-connection-device-id`, `iothub-connection-auth-generation-id` and `iothub-connection-auth-method`.
     * 
     */
    @Import(name="eventSystemProperties")
    private @Nullable Output> eventSystemProperties;

    /**
     * @return Specifies the System Properties that each IoT Hub message should contain. Changing this forces a new resource to be created. Possible values are `message-id`, `sequence-number`, `to`, `absolute-expiry-time`, `iothub-enqueuedtime`, `correlation-id`, `user-id`, `iothub-ack`, `iothub-connection-device-id`, `iothub-connection-auth-generation-id` and `iothub-connection-auth-method`.
     * 
     */
    public Optional>> eventSystemProperties() {
        return Optional.ofNullable(this.eventSystemProperties);
    }

    /**
     * Specifies the resource id of the IotHub this data connection will use for ingestion. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="iothubId", required=true)
    private Output iothubId;

    /**
     * @return Specifies the resource id of the IotHub this data connection will use for ingestion. Changing this forces a new resource to be created.
     * 
     */
    public Output iothubId() {
        return this.iothubId;
    }

    /**
     * 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);
    }

    /**
     * Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created. Changing this forces a new resource to be 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. Changing this forces a new resource to be created.
     * 
     */
    public Optional> mappingRuleName() {
        return Optional.ofNullable(this.mappingRuleName);
    }

    /**
     * The name of the Kusto IotHub 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 IotHub 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", required=true)
    private Output resourceGroupName;

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

    /**
     * Specifies the IotHub Shared Access Policy this data connection will use for ingestion, which must have read permission. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="sharedAccessPolicyName", required=true)
    private Output sharedAccessPolicyName;

    /**
     * @return Specifies the IotHub Shared Access Policy this data connection will use for ingestion, which must have read permission. Changing this forces a new resource to be created.
     * 
     */
    public Output sharedAccessPolicyName() {
        return this.sharedAccessPolicyName;
    }

    /**
     * Specifies the target table name used for the message ingestion. Table must exist before resource is created. Changing this forces a new resource to be 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. Changing this forces a new resource to be created.
     * 
     */
    public Optional> tableName() {
        return Optional.ofNullable(this.tableName);
    }

    private IotHubDataConnectionArgs() {}

    private IotHubDataConnectionArgs(IotHubDataConnectionArgs $) {
        this.clusterName = $.clusterName;
        this.consumerGroup = $.consumerGroup;
        this.dataFormat = $.dataFormat;
        this.databaseName = $.databaseName;
        this.databaseRoutingType = $.databaseRoutingType;
        this.eventSystemProperties = $.eventSystemProperties;
        this.iothubId = $.iothubId;
        this.location = $.location;
        this.mappingRuleName = $.mappingRuleName;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.sharedAccessPolicyName = $.sharedAccessPolicyName;
        this.tableName = $.tableName;
    }

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

    public static final class Builder {
        private IotHubDataConnectionArgs $;

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

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

        /**
         * @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(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 consumerGroup Specifies the IotHub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder consumerGroup(Output consumerGroup) {
            $.consumerGroup = consumerGroup;
            return this;
        }

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

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

        /**
         * @param dataFormat Specifies the data format of the IoTHub messages. Allowed values: `APACHEAVRO`, `AVRO`, `CSV`, `JSON`, `MULTIJSON`, `ORC`, `PARQUET`, `PSV`, `RAW`, `SCSV`, `SINGLEJSON`, `SOHSV`, `TSV`, `TSVE`, `TXT` and `W3CLOGFILE`. Changing this forces a new resource to be created.
         * 
         * @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(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 eventSystemProperties Specifies the System Properties that each IoT Hub message should contain. Changing this forces a new resource to be created. Possible values are `message-id`, `sequence-number`, `to`, `absolute-expiry-time`, `iothub-enqueuedtime`, `correlation-id`, `user-id`, `iothub-ack`, `iothub-connection-device-id`, `iothub-connection-auth-generation-id` and `iothub-connection-auth-method`.
         * 
         * @return builder
         * 
         */
        public Builder eventSystemProperties(@Nullable Output> eventSystemProperties) {
            $.eventSystemProperties = eventSystemProperties;
            return this;
        }

        /**
         * @param eventSystemProperties Specifies the System Properties that each IoT Hub message should contain. Changing this forces a new resource to be created. Possible values are `message-id`, `sequence-number`, `to`, `absolute-expiry-time`, `iothub-enqueuedtime`, `correlation-id`, `user-id`, `iothub-ack`, `iothub-connection-device-id`, `iothub-connection-auth-generation-id` and `iothub-connection-auth-method`.
         * 
         * @return builder
         * 
         */
        public Builder eventSystemProperties(List eventSystemProperties) {
            return eventSystemProperties(Output.of(eventSystemProperties));
        }

        /**
         * @param eventSystemProperties Specifies the System Properties that each IoT Hub message should contain. Changing this forces a new resource to be created. Possible values are `message-id`, `sequence-number`, `to`, `absolute-expiry-time`, `iothub-enqueuedtime`, `correlation-id`, `user-id`, `iothub-ack`, `iothub-connection-device-id`, `iothub-connection-auth-generation-id` and `iothub-connection-auth-method`.
         * 
         * @return builder
         * 
         */
        public Builder eventSystemProperties(String... eventSystemProperties) {
            return eventSystemProperties(List.of(eventSystemProperties));
        }

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

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

        /**
         * @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 mappingRuleName Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created. Changing this forces a new resource to be 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. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder mappingRuleName(String mappingRuleName) {
            return mappingRuleName(Output.of(mappingRuleName));
        }

        /**
         * @param name The name of the Kusto IotHub 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 IotHub 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(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 sharedAccessPolicyName Specifies the IotHub Shared Access Policy this data connection will use for ingestion, which must have read permission. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sharedAccessPolicyName(Output sharedAccessPolicyName) {
            $.sharedAccessPolicyName = sharedAccessPolicyName;
            return this;
        }

        /**
         * @param sharedAccessPolicyName Specifies the IotHub Shared Access Policy this data connection will use for ingestion, which must have read permission. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sharedAccessPolicyName(String sharedAccessPolicyName) {
            return sharedAccessPolicyName(Output.of(sharedAccessPolicyName));
        }

        /**
         * @param tableName Specifies the target table name used for the message ingestion. Table must exist before resource is created. Changing this forces a new resource to be 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. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder tableName(String tableName) {
            return tableName(Output.of(tableName));
        }

        public IotHubDataConnectionArgs build() {
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("IotHubDataConnectionArgs", "clusterName");
            }
            if ($.consumerGroup == null) {
                throw new MissingRequiredPropertyException("IotHubDataConnectionArgs", "consumerGroup");
            }
            if ($.databaseName == null) {
                throw new MissingRequiredPropertyException("IotHubDataConnectionArgs", "databaseName");
            }
            if ($.iothubId == null) {
                throw new MissingRequiredPropertyException("IotHubDataConnectionArgs", "iothubId");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("IotHubDataConnectionArgs", "resourceGroupName");
            }
            if ($.sharedAccessPolicyName == null) {
                throw new MissingRequiredPropertyException("IotHubDataConnectionArgs", "sharedAccessPolicyName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy