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

com.pulumi.azure.mssql.inputs.ServerVulnerabilityAssessmentState 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.mssql.inputs;

import com.pulumi.azure.mssql.inputs.ServerVulnerabilityAssessmentRecurringScansArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ServerVulnerabilityAssessmentState Empty = new ServerVulnerabilityAssessmentState();

    /**
     * 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 MS SQL Server. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="serverSecurityAlertPolicyId")
    private @Nullable Output serverSecurityAlertPolicyId;

    /**
     * @return The id of the security alert policy of the MS SQL Server. Changing this forces a new resource to be created.
     * 
     */
    public Optional> serverSecurityAlertPolicyId() {
        return Optional.ofNullable(this.serverSecurityAlertPolicyId);
    }

    /**
     * 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.
     * 
     * > **NOTE** The `storage_account_access_key` only applies if the storage account is not behind a virtual network or a firewall.
     * 
     */
    @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.
     * 
     * > **NOTE** The `storage_account_access_key` only applies if the storage account is not behind a virtual network or a firewall.
     * 
     */
    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")
    private @Nullable Output storageContainerPath;

    /**
     * @return A blob storage container path to hold the scan results (e.g. <https://example.blob.core.windows.net/VaScans/>).
     * 
     */
    public Optional> storageContainerPath() {
        return Optional.ofNullable(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.
     * 
     * > **NOTE** The `storage_container_sas_key` only applies if the storage account is not behind a virtual network or a firewall.
     * 
     */
    @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.
     * 
     * > **NOTE** The `storage_container_sas_key` only applies if the storage account is not behind a virtual network or a firewall.
     * 
     */
    public Optional> storageContainerSasKey() {
        return Optional.ofNullable(this.storageContainerSasKey);
    }

    private ServerVulnerabilityAssessmentState() {}

    private ServerVulnerabilityAssessmentState(ServerVulnerabilityAssessmentState $) {
        this.recurringScans = $.recurringScans;
        this.serverSecurityAlertPolicyId = $.serverSecurityAlertPolicyId;
        this.storageAccountAccessKey = $.storageAccountAccessKey;
        this.storageContainerPath = $.storageContainerPath;
        this.storageContainerSasKey = $.storageContainerSasKey;
    }

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

    public static final class Builder {
        private ServerVulnerabilityAssessmentState $;

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

        public Builder(ServerVulnerabilityAssessmentState defaults) {
            $ = new ServerVulnerabilityAssessmentState(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(ServerVulnerabilityAssessmentRecurringScansArgs recurringScans) {
            return recurringScans(Output.of(recurringScans));
        }

        /**
         * @param serverSecurityAlertPolicyId The id of the security alert policy of the MS SQL Server. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder serverSecurityAlertPolicyId(@Nullable Output serverSecurityAlertPolicyId) {
            $.serverSecurityAlertPolicyId = serverSecurityAlertPolicyId;
            return this;
        }

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

        /**
         * @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.
         * 
         * > **NOTE** The `storage_account_access_key` only applies if the storage account is not behind a virtual network or a firewall.
         * 
         * @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.
         * 
         * > **NOTE** The `storage_account_access_key` only applies if the storage account is not behind a virtual network or a firewall.
         * 
         * @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(@Nullable 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.
         * 
         * > **NOTE** The `storage_container_sas_key` only applies if the storage account is not behind a virtual network or a firewall.
         * 
         * @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.
         * 
         * > **NOTE** The `storage_container_sas_key` only applies if the storage account is not behind a virtual network or a firewall.
         * 
         * @return builder
         * 
         */
        public Builder storageContainerSasKey(String storageContainerSasKey) {
            return storageContainerSasKey(Output.of(storageContainerSasKey));
        }

        public ServerVulnerabilityAssessmentState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy