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

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

import com.pulumi.azure.synapse.inputs.SqlPoolVulnerabilityAssessmentRecurringScansArgs;
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 SqlPoolVulnerabilityAssessmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final SqlPoolVulnerabilityAssessmentArgs Empty = new SqlPoolVulnerabilityAssessmentArgs();

    /**
     * The recurring scans settings. The `recurring_scans` block supports fields documented below.
     * 
     */
    @Import(name="recurringScans")
    private @Nullable Output recurringScans;

    /**
     * @return The recurring scans settings. The `recurring_scans` block supports fields documented below.
     * 
     */
    public Optional> recurringScans() {
        return Optional.ofNullable(this.recurringScans);
    }

    /**
     * The ID of the security alert policy of the Synapse SQL Pool. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="sqlPoolSecurityAlertPolicyId", required=true)
    private Output sqlPoolSecurityAlertPolicyId;

    /**
     * @return The ID of the security alert policy of the Synapse SQL Pool. Changing this forces a new resource to be created.
     * 
     */
    public Output sqlPoolSecurityAlertPolicyId() {
        return this.sqlPoolSecurityAlertPolicyId;
    }

    /**
     * Specifies the identifier key of the storage account for vulnerability assessment scan results. If `storage_container_sas_key` isn't specified, `storage_account_access_key` is required.
     * 
     */
    @Import(name="storageAccountAccessKey")
    private @Nullable Output storageAccountAccessKey;

    /**
     * @return Specifies the identifier key of the storage account for vulnerability assessment scan results. If `storage_container_sas_key` isn't specified, `storage_account_access_key` is required.
     * 
     */
    public Optional> storageAccountAccessKey() {
        return Optional.ofNullable(this.storageAccountAccessKey);
    }

    /**
     * A blob storage container path to hold the scan results (e.g. <https://example.blob.core.windows.net/VaScans/>).
     * 
     */
    @Import(name="storageContainerPath", required=true)
    private Output storageContainerPath;

    /**
     * @return A blob storage container path to hold the scan results (e.g. <https://example.blob.core.windows.net/VaScans/>).
     * 
     */
    public Output storageContainerPath() {
        return this.storageContainerPath;
    }

    /**
     * A shared access signature (SAS Key) that has write access to the blob container specified in `storage_container_path` parameter. If `storage_account_access_key` isn't specified, `storage_container_sas_key` is required.
     * 
     */
    @Import(name="storageContainerSasKey")
    private @Nullable Output storageContainerSasKey;

    /**
     * @return A shared access signature (SAS Key) that has write access to the blob container specified in `storage_container_path` parameter. If `storage_account_access_key` isn't specified, `storage_container_sas_key` is required.
     * 
     */
    public Optional> storageContainerSasKey() {
        return Optional.ofNullable(this.storageContainerSasKey);
    }

    private SqlPoolVulnerabilityAssessmentArgs() {}

    private SqlPoolVulnerabilityAssessmentArgs(SqlPoolVulnerabilityAssessmentArgs $) {
        this.recurringScans = $.recurringScans;
        this.sqlPoolSecurityAlertPolicyId = $.sqlPoolSecurityAlertPolicyId;
        this.storageAccountAccessKey = $.storageAccountAccessKey;
        this.storageContainerPath = $.storageContainerPath;
        this.storageContainerSasKey = $.storageContainerSasKey;
    }

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

    public static final class Builder {
        private SqlPoolVulnerabilityAssessmentArgs $;

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

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

        /**
         * @param recurringScans The recurring scans settings. The `recurring_scans` block supports fields documented below.
         * 
         * @return builder
         * 
         */
        public Builder recurringScans(@Nullable Output recurringScans) {
            $.recurringScans = recurringScans;
            return this;
        }

        /**
         * @param recurringScans The recurring scans settings. The `recurring_scans` block supports fields documented below.
         * 
         * @return builder
         * 
         */
        public Builder recurringScans(SqlPoolVulnerabilityAssessmentRecurringScansArgs recurringScans) {
            return recurringScans(Output.of(recurringScans));
        }

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

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

        /**
         * @param storageAccountAccessKey Specifies the identifier key of the storage account for vulnerability assessment scan results. If `storage_container_sas_key` isn't specified, `storage_account_access_key` is required.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountAccessKey(@Nullable Output storageAccountAccessKey) {
            $.storageAccountAccessKey = storageAccountAccessKey;
            return this;
        }

        /**
         * @param storageAccountAccessKey Specifies the identifier key of the storage account for vulnerability assessment scan results. If `storage_container_sas_key` isn't specified, `storage_account_access_key` is required.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountAccessKey(String storageAccountAccessKey) {
            return storageAccountAccessKey(Output.of(storageAccountAccessKey));
        }

        /**
         * @param storageContainerPath A blob storage container path to hold the scan results (e.g. <https://example.blob.core.windows.net/VaScans/>).
         * 
         * @return builder
         * 
         */
        public Builder storageContainerPath(Output storageContainerPath) {
            $.storageContainerPath = storageContainerPath;
            return this;
        }

        /**
         * @param storageContainerPath A blob storage container path to hold the scan results (e.g. <https://example.blob.core.windows.net/VaScans/>).
         * 
         * @return builder
         * 
         */
        public Builder storageContainerPath(String storageContainerPath) {
            return storageContainerPath(Output.of(storageContainerPath));
        }

        /**
         * @param storageContainerSasKey A shared access signature (SAS Key) that has write access to the blob container specified in `storage_container_path` parameter. If `storage_account_access_key` isn't specified, `storage_container_sas_key` is required.
         * 
         * @return builder
         * 
         */
        public Builder storageContainerSasKey(@Nullable Output storageContainerSasKey) {
            $.storageContainerSasKey = storageContainerSasKey;
            return this;
        }

        /**
         * @param storageContainerSasKey A shared access signature (SAS Key) that has write access to the blob container specified in `storage_container_path` parameter. If `storage_account_access_key` isn't specified, `storage_container_sas_key` is required.
         * 
         * @return builder
         * 
         */
        public Builder storageContainerSasKey(String storageContainerSasKey) {
            return storageContainerSasKey(Output.of(storageContainerSasKey));
        }

        public SqlPoolVulnerabilityAssessmentArgs build() {
            if ($.sqlPoolSecurityAlertPolicyId == null) {
                throw new MissingRequiredPropertyException("SqlPoolVulnerabilityAssessmentArgs", "sqlPoolSecurityAlertPolicyId");
            }
            if ($.storageContainerPath == null) {
                throw new MissingRequiredPropertyException("SqlPoolVulnerabilityAssessmentArgs", "storageContainerPath");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy