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

com.pulumi.azure.securitycenter.inputs.AutomationActionArgs Maven / Gradle / Ivy

// *** 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.securitycenter.inputs;

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


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

    public static final AutomationActionArgs Empty = new AutomationActionArgs();

    /**
     * (Optional, but required when `type` is `eventhub`) A connection string to send data to the target Event Hub namespace, this should include a key with send permissions.
     * 
     */
    @Import(name="connectionString")
    private @Nullable Output connectionString;

    /**
     * @return (Optional, but required when `type` is `eventhub`) A connection string to send data to the target Event Hub namespace, this should include a key with send permissions.
     * 
     */
    public Optional> connectionString() {
        return Optional.ofNullable(this.connectionString);
    }

    /**
     * The resource id of the target Logic App, Event Hub namespace or Log Analytics workspace.
     * 
     */
    @Import(name="resourceId", required=true)
    private Output resourceId;

    /**
     * @return The resource id of the target Logic App, Event Hub namespace or Log Analytics workspace.
     * 
     */
    public Output resourceId() {
        return this.resourceId;
    }

    /**
     * (Optional, but required when `type` is `logicapp`) The callback URL to trigger the Logic App that will receive and process data sent by this automation. This can be found in the Azure Portal under "See trigger history"
     * 
     */
    @Import(name="triggerUrl")
    private @Nullable Output triggerUrl;

    /**
     * @return (Optional, but required when `type` is `logicapp`) The callback URL to trigger the Logic App that will receive and process data sent by this automation. This can be found in the Azure Portal under "See trigger history"
     * 
     */
    public Optional> triggerUrl() {
        return Optional.ofNullable(this.triggerUrl);
    }

    /**
     * Type of Azure resource to send data to. Must be set to one of: `logicapp`, `eventhub` or `loganalytics`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of Azure resource to send data to. Must be set to one of: `logicapp`, `eventhub` or `loganalytics`.
     * 
     */
    public Output type() {
        return this.type;
    }

    private AutomationActionArgs() {}

    private AutomationActionArgs(AutomationActionArgs $) {
        this.connectionString = $.connectionString;
        this.resourceId = $.resourceId;
        this.triggerUrl = $.triggerUrl;
        this.type = $.type;
    }

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

    public static final class Builder {
        private AutomationActionArgs $;

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

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

        /**
         * @param connectionString (Optional, but required when `type` is `eventhub`) A connection string to send data to the target Event Hub namespace, this should include a key with send permissions.
         * 
         * @return builder
         * 
         */
        public Builder connectionString(@Nullable Output connectionString) {
            $.connectionString = connectionString;
            return this;
        }

        /**
         * @param connectionString (Optional, but required when `type` is `eventhub`) A connection string to send data to the target Event Hub namespace, this should include a key with send permissions.
         * 
         * @return builder
         * 
         */
        public Builder connectionString(String connectionString) {
            return connectionString(Output.of(connectionString));
        }

        /**
         * @param resourceId The resource id of the target Logic App, Event Hub namespace or Log Analytics workspace.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The resource id of the target Logic App, Event Hub namespace or Log Analytics workspace.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        /**
         * @param triggerUrl (Optional, but required when `type` is `logicapp`) The callback URL to trigger the Logic App that will receive and process data sent by this automation. This can be found in the Azure Portal under "See trigger history"
         * 
         * @return builder
         * 
         */
        public Builder triggerUrl(@Nullable Output triggerUrl) {
            $.triggerUrl = triggerUrl;
            return this;
        }

        /**
         * @param triggerUrl (Optional, but required when `type` is `logicapp`) The callback URL to trigger the Logic App that will receive and process data sent by this automation. This can be found in the Azure Portal under "See trigger history"
         * 
         * @return builder
         * 
         */
        public Builder triggerUrl(String triggerUrl) {
            return triggerUrl(Output.of(triggerUrl));
        }

        /**
         * @param type Type of Azure resource to send data to. Must be set to one of: `logicapp`, `eventhub` or `loganalytics`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of Azure resource to send data to. Must be set to one of: `logicapp`, `eventhub` or `loganalytics`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public AutomationActionArgs build() {
            if ($.resourceId == null) {
                throw new MissingRequiredPropertyException("AutomationActionArgs", "resourceId");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("AutomationActionArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy