text: # coding=utf-8
  # *** WARNING: this file was generated by the Pulumi SDK Generator. ***
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
  
  import warnings
  import pulumi
  import pulumi.runtime
  from typing import Any, Mapping, Optional, Sequence, Union
  from ... import _utilities, _tables
  from . import outputs
  from ._inputs import *
  
  __all__ = ['SqlPoolVulnerabilityAssessment']
  
  
  class SqlPoolVulnerabilityAssessment(pulumi.CustomResource):
      def __init__(__self__,
                   resource_name: str,
                   opts: Optional[pulumi.ResourceOptions] = None,
                   recurring_scans: Optional[pulumi.Input[pulumi.InputType['VulnerabilityAssessmentRecurringScansPropertiesArgs']]] = None,
                   resource_group_name: Optional[pulumi.Input[str]] = None,
                   sql_pool_name: Optional[pulumi.Input[str]] = None,
                   storage_account_access_key: Optional[pulumi.Input[str]] = None,
                   storage_container_path: Optional[pulumi.Input[str]] = None,
                   storage_container_sas_key: Optional[pulumi.Input[str]] = None,
                   vulnerability_assessment_name: Optional[pulumi.Input[str]] = None,
                   workspace_name: Optional[pulumi.Input[str]] = None,
                   __props__=None,
                   __name__=None,
                   __opts__=None):
          """
          A Sql pool vulnerability assessment.
  
          :param str resource_name: The name of the resource.
          :param pulumi.ResourceOptions opts: Options for the resource.
          :param pulumi.Input[pulumi.InputType['VulnerabilityAssessmentRecurringScansPropertiesArgs']] recurring_scans: The recurring scans settings
          :param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive.
          :param pulumi.Input[str] sql_pool_name: SQL pool name
          :param pulumi.Input[str] storage_account_access_key: Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.
          :param pulumi.Input[str] storage_container_path: A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).  It is required if server level vulnerability assessment policy doesn't set
          :param pulumi.Input[str] storage_container_sas_key: A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.
          :param pulumi.Input[str] vulnerability_assessment_name: The name of the vulnerability assessment.
          :param pulumi.Input[str] workspace_name: The name of the workspace
          """
          if __name__ is not None:
              warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning)
              resource_name = __name__
          if __opts__ is not None:
              warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning)
              opts = __opts__
          if opts is None:
              opts = pulumi.ResourceOptions()
          if not isinstance(opts, pulumi.ResourceOptions):
              raise TypeError('Expected resource options to be a ResourceOptions instance')
          if opts.version is None:
              opts.version = _utilities.get_version()
          if opts.id is None:
              if __props__ is not None:
                  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
              __props__ = dict()
  
              __props__['recurring_scans'] = recurring_scans
              if resource_group_name is None and not opts.urn:
                  raise TypeError("Missing required property 'resource_group_name'")
              __props__['resource_group_name'] = resource_group_name
              if sql_pool_name is None and not opts.urn:
                  raise TypeError("Missing required property 'sql_pool_name'")
              __props__['sql_pool_name'] = sql_pool_name
              __props__['storage_account_access_key'] = storage_account_access_key
              __props__['storage_container_path'] = storage_container_path
              __props__['storage_container_sas_key'] = storage_container_sas_key
              __props__['vulnerability_assessment_name'] = vulnerability_assessment_name
              if workspace_name is None and not opts.urn:
                  raise TypeError("Missing required property 'workspace_name'")
              __props__['workspace_name'] = workspace_name
              __props__['name'] = None
              __props__['type'] = None
          alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-nextgen:synapse:SqlPoolVulnerabilityAssessment"), pulumi.Alias(type_="azure-nextgen:synapse/latest:SqlPoolVulnerabilityAssessment"), pulumi.Alias(type_="azure-nextgen:synapse/v20190601preview:SqlPoolVulnerabilityAssessment")])
          opts = pulumi.ResourceOptions.merge(opts, alias_opts)
          super(SqlPoolVulnerabilityAssessment, __self__).__init__(
              'azure-nextgen:synapse/v20201201:SqlPoolVulnerabilityAssessment',
              resource_name,
              __props__,
              opts)
  
      @staticmethod
      def get(resource_name: str,
              id: pulumi.Input[str],
              opts: Optional[pulumi.ResourceOptions] = None) -> 'SqlPoolVulnerabilityAssessment':
          """
          Get an existing SqlPoolVulnerabilityAssessment resource's state with the given name, id, and optional extra
          properties used to qualify the lookup.
  
          :param str resource_name: The unique name of the resulting resource.
          :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
          :param pulumi.ResourceOptions opts: Options for the resource.
          """
          opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
  
          __props__ = dict()
  
          return SqlPoolVulnerabilityAssessment(resource_name, opts=opts, __props__=__props__)
  
      @property
      @pulumi.getter
      def name(self) -> pulumi.Output[str]:
          """
          The name of the resource
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter(name="recurringScans")
      def recurring_scans(self) -> pulumi.Output[Optional['outputs.VulnerabilityAssessmentRecurringScansPropertiesResponse']]:
          """
          The recurring scans settings
          """
          return pulumi.get(self, "recurring_scans")
  
      @property
      @pulumi.getter(name="storageAccountAccessKey")
      def storage_account_access_key(self) -> pulumi.Output[Optional[str]]:
          """
          Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.
          """
          return pulumi.get(self, "storage_account_access_key")
  
      @property
      @pulumi.getter(name="storageContainerPath")
      def storage_container_path(self) -> pulumi.Output[Optional[str]]:
          """
          A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).  It is required if server level vulnerability assessment policy doesn't set
          """
          return pulumi.get(self, "storage_container_path")
  
      @property
      @pulumi.getter(name="storageContainerSasKey")
      def storage_container_sas_key(self) -> pulumi.Output[Optional[str]]:
          """
          A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.
          """
          return pulumi.get(self, "storage_container_sas_key")
  
      @property
      @pulumi.getter
      def type(self) -> pulumi.Output[str]:
          """
          The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
          """
          return pulumi.get(self, "type")
  
      def translate_output_property(self, prop):
          return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
  
      def translate_input_property(self, prop):
          return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
  
  