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

com.pulumi.azure.loganalytics.DataExportRuleArgs 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.loganalytics;

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


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

    public static final DataExportRuleArgs Empty = new DataExportRuleArgs();

    /**
     * The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.
     * 
     */
    @Import(name="destinationResourceId", required=true)
    private Output destinationResourceId;

    /**
     * @return The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.
     * 
     */
    public Output destinationResourceId() {
        return this.destinationResourceId;
    }

    /**
     * Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the Resource Group where the Log Analytics Data Export should exist. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Resource Group where the Log Analytics Data Export should exist. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
     * 
     */
    @Import(name="tableNames", required=true)
    private Output> tableNames;

    /**
     * @return A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
     * 
     */
    public Output> tableNames() {
        return this.tableNames;
    }

    /**
     * The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    @Import(name="workspaceResourceId", required=true)
    private Output workspaceResourceId;

    /**
     * @return The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    public Output workspaceResourceId() {
        return this.workspaceResourceId;
    }

    private DataExportRuleArgs() {}

    private DataExportRuleArgs(DataExportRuleArgs $) {
        this.destinationResourceId = $.destinationResourceId;
        this.enabled = $.enabled;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.tableNames = $.tableNames;
        this.workspaceResourceId = $.workspaceResourceId;
    }

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

    public static final class Builder {
        private DataExportRuleArgs $;

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

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

        /**
         * @param destinationResourceId The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.
         * 
         * @return builder
         * 
         */
        public Builder destinationResourceId(Output destinationResourceId) {
            $.destinationResourceId = destinationResourceId;
            return this;
        }

        /**
         * @param destinationResourceId The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.
         * 
         * @return builder
         * 
         */
        public Builder destinationResourceId(String destinationResourceId) {
            return destinationResourceId(Output.of(destinationResourceId));
        }

        /**
         * @param enabled Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param name The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Log Analytics Data Export should exist. Changing this forces a new Log Analytics Data Export Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Log Analytics Data Export should exist. Changing this forces a new Log Analytics Data Export Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tableNames A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
         * 
         * @return builder
         * 
         */
        public Builder tableNames(Output> tableNames) {
            $.tableNames = tableNames;
            return this;
        }

        /**
         * @param tableNames A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
         * 
         * @return builder
         * 
         */
        public Builder tableNames(List tableNames) {
            return tableNames(Output.of(tableNames));
        }

        /**
         * @param tableNames A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
         * 
         * @return builder
         * 
         */
        public Builder tableNames(String... tableNames) {
            return tableNames(List.of(tableNames));
        }

        /**
         * @param workspaceResourceId The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder workspaceResourceId(Output workspaceResourceId) {
            $.workspaceResourceId = workspaceResourceId;
            return this;
        }

        /**
         * @param workspaceResourceId The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder workspaceResourceId(String workspaceResourceId) {
            return workspaceResourceId(Output.of(workspaceResourceId));
        }

        public DataExportRuleArgs build() {
            if ($.destinationResourceId == null) {
                throw new MissingRequiredPropertyException("DataExportRuleArgs", "destinationResourceId");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DataExportRuleArgs", "resourceGroupName");
            }
            if ($.tableNames == null) {
                throw new MissingRequiredPropertyException("DataExportRuleArgs", "tableNames");
            }
            if ($.workspaceResourceId == null) {
                throw new MissingRequiredPropertyException("DataExportRuleArgs", "workspaceResourceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy