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

com.pulumi.azure.synapse.inputs.SqlPoolSecurityAlertPolicyState 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.synapse.inputs;

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


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

    public static final SqlPoolSecurityAlertPolicyState Empty = new SqlPoolSecurityAlertPolicyState();

    /**
     * Specifies an array of alerts that are disabled. Allowed values are: `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration`, `Unsafe_Action`.
     * 
     */
    @Import(name="disabledAlerts")
    private @Nullable Output> disabledAlerts;

    /**
     * @return Specifies an array of alerts that are disabled. Allowed values are: `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration`, `Unsafe_Action`.
     * 
     */
    public Optional>> disabledAlerts() {
        return Optional.ofNullable(this.disabledAlerts);
    }

    /**
     * Boolean flag which specifies if the alert is sent to the account administrators or not. Defaults to `false`.
     * 
     */
    @Import(name="emailAccountAdminsEnabled")
    private @Nullable Output emailAccountAdminsEnabled;

    /**
     * @return Boolean flag which specifies if the alert is sent to the account administrators or not. Defaults to `false`.
     * 
     */
    public Optional> emailAccountAdminsEnabled() {
        return Optional.ofNullable(this.emailAccountAdminsEnabled);
    }

    /**
     * Specifies an array of email addresses to which the alert is sent.
     * 
     */
    @Import(name="emailAddresses")
    private @Nullable Output> emailAddresses;

    /**
     * @return Specifies an array of email addresses to which the alert is sent.
     * 
     */
    public Optional>> emailAddresses() {
        return Optional.ofNullable(this.emailAddresses);
    }

    /**
     * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific SQL pool. Possible values are `Disabled`, `Enabled` and `New`.
     * 
     */
    @Import(name="policyState")
    private @Nullable Output policyState;

    /**
     * @return Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific SQL pool. Possible values are `Disabled`, `Enabled` and `New`.
     * 
     */
    public Optional> policyState() {
        return Optional.ofNullable(this.policyState);
    }

    /**
     * Specifies the number of days to keep in the Threat Detection audit logs. Defaults to `0`.
     * 
     */
    @Import(name="retentionDays")
    private @Nullable Output retentionDays;

    /**
     * @return Specifies the number of days to keep in the Threat Detection audit logs. Defaults to `0`.
     * 
     */
    public Optional> retentionDays() {
        return Optional.ofNullable(this.retentionDays);
    }

    /**
     * Specifies the ID of the Synapse SQL Pool. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="sqlPoolId")
    private @Nullable Output sqlPoolId;

    /**
     * @return Specifies the ID of the Synapse SQL Pool. Changing this forces a new resource to be created.
     * 
     */
    public Optional> sqlPoolId() {
        return Optional.ofNullable(this.sqlPoolId);
    }

    /**
     * Specifies the identifier key of the Threat Detection audit storage account.
     * 
     */
    @Import(name="storageAccountAccessKey")
    private @Nullable Output storageAccountAccessKey;

    /**
     * @return Specifies the identifier key of the Threat Detection audit storage account.
     * 
     */
    public Optional> storageAccountAccessKey() {
        return Optional.ofNullable(this.storageAccountAccessKey);
    }

    /**
     * Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs.
     * 
     */
    @Import(name="storageEndpoint")
    private @Nullable Output storageEndpoint;

    /**
     * @return Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs.
     * 
     */
    public Optional> storageEndpoint() {
        return Optional.ofNullable(this.storageEndpoint);
    }

    private SqlPoolSecurityAlertPolicyState() {}

    private SqlPoolSecurityAlertPolicyState(SqlPoolSecurityAlertPolicyState $) {
        this.disabledAlerts = $.disabledAlerts;
        this.emailAccountAdminsEnabled = $.emailAccountAdminsEnabled;
        this.emailAddresses = $.emailAddresses;
        this.policyState = $.policyState;
        this.retentionDays = $.retentionDays;
        this.sqlPoolId = $.sqlPoolId;
        this.storageAccountAccessKey = $.storageAccountAccessKey;
        this.storageEndpoint = $.storageEndpoint;
    }

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

    public static final class Builder {
        private SqlPoolSecurityAlertPolicyState $;

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

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

        /**
         * @param disabledAlerts Specifies an array of alerts that are disabled. Allowed values are: `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration`, `Unsafe_Action`.
         * 
         * @return builder
         * 
         */
        public Builder disabledAlerts(@Nullable Output> disabledAlerts) {
            $.disabledAlerts = disabledAlerts;
            return this;
        }

        /**
         * @param disabledAlerts Specifies an array of alerts that are disabled. Allowed values are: `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration`, `Unsafe_Action`.
         * 
         * @return builder
         * 
         */
        public Builder disabledAlerts(List disabledAlerts) {
            return disabledAlerts(Output.of(disabledAlerts));
        }

        /**
         * @param disabledAlerts Specifies an array of alerts that are disabled. Allowed values are: `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration`, `Unsafe_Action`.
         * 
         * @return builder
         * 
         */
        public Builder disabledAlerts(String... disabledAlerts) {
            return disabledAlerts(List.of(disabledAlerts));
        }

        /**
         * @param emailAccountAdminsEnabled Boolean flag which specifies if the alert is sent to the account administrators or not. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder emailAccountAdminsEnabled(@Nullable Output emailAccountAdminsEnabled) {
            $.emailAccountAdminsEnabled = emailAccountAdminsEnabled;
            return this;
        }

        /**
         * @param emailAccountAdminsEnabled Boolean flag which specifies if the alert is sent to the account administrators or not. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder emailAccountAdminsEnabled(Boolean emailAccountAdminsEnabled) {
            return emailAccountAdminsEnabled(Output.of(emailAccountAdminsEnabled));
        }

        /**
         * @param emailAddresses Specifies an array of email addresses to which the alert is sent.
         * 
         * @return builder
         * 
         */
        public Builder emailAddresses(@Nullable Output> emailAddresses) {
            $.emailAddresses = emailAddresses;
            return this;
        }

        /**
         * @param emailAddresses Specifies an array of email addresses to which the alert is sent.
         * 
         * @return builder
         * 
         */
        public Builder emailAddresses(List emailAddresses) {
            return emailAddresses(Output.of(emailAddresses));
        }

        /**
         * @param emailAddresses Specifies an array of email addresses to which the alert is sent.
         * 
         * @return builder
         * 
         */
        public Builder emailAddresses(String... emailAddresses) {
            return emailAddresses(List.of(emailAddresses));
        }

        /**
         * @param policyState Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific SQL pool. Possible values are `Disabled`, `Enabled` and `New`.
         * 
         * @return builder
         * 
         */
        public Builder policyState(@Nullable Output policyState) {
            $.policyState = policyState;
            return this;
        }

        /**
         * @param policyState Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific SQL pool. Possible values are `Disabled`, `Enabled` and `New`.
         * 
         * @return builder
         * 
         */
        public Builder policyState(String policyState) {
            return policyState(Output.of(policyState));
        }

        /**
         * @param retentionDays Specifies the number of days to keep in the Threat Detection audit logs. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder retentionDays(@Nullable Output retentionDays) {
            $.retentionDays = retentionDays;
            return this;
        }

        /**
         * @param retentionDays Specifies the number of days to keep in the Threat Detection audit logs. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder retentionDays(Integer retentionDays) {
            return retentionDays(Output.of(retentionDays));
        }

        /**
         * @param sqlPoolId Specifies the ID of the Synapse SQL Pool. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sqlPoolId(@Nullable Output sqlPoolId) {
            $.sqlPoolId = sqlPoolId;
            return this;
        }

        /**
         * @param sqlPoolId Specifies the ID of the Synapse SQL Pool. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sqlPoolId(String sqlPoolId) {
            return sqlPoolId(Output.of(sqlPoolId));
        }

        /**
         * @param storageAccountAccessKey Specifies the identifier key of the Threat Detection audit storage account.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountAccessKey(@Nullable Output storageAccountAccessKey) {
            $.storageAccountAccessKey = storageAccountAccessKey;
            return this;
        }

        /**
         * @param storageAccountAccessKey Specifies the identifier key of the Threat Detection audit storage account.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountAccessKey(String storageAccountAccessKey) {
            return storageAccountAccessKey(Output.of(storageAccountAccessKey));
        }

        /**
         * @param storageEndpoint Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs.
         * 
         * @return builder
         * 
         */
        public Builder storageEndpoint(@Nullable Output storageEndpoint) {
            $.storageEndpoint = storageEndpoint;
            return this;
        }

        /**
         * @param storageEndpoint Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs.
         * 
         * @return builder
         * 
         */
        public Builder storageEndpoint(String storageEndpoint) {
            return storageEndpoint(Output.of(storageEndpoint));
        }

        public SqlPoolSecurityAlertPolicyState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy