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 ._enums import *
  from ._inputs import *
  
  __all__ = ['SecurityContact']
  
  
  class SecurityContact(pulumi.CustomResource):
      def __init__(__self__,
                   resource_name: str,
                   opts: Optional[pulumi.ResourceOptions] = None,
                   alert_notifications: Optional[pulumi.Input[pulumi.InputType['SecurityContactPropertiesAlertNotificationsArgs']]] = None,
                   emails: Optional[pulumi.Input[str]] = None,
                   notifications_by_role: Optional[pulumi.Input[pulumi.InputType['SecurityContactPropertiesNotificationsByRoleArgs']]] = None,
                   phone: Optional[pulumi.Input[str]] = None,
                   security_contact_name: Optional[pulumi.Input[str]] = None,
                   __props__=None,
                   __name__=None,
                   __opts__=None):
          """
          Contact details and configurations for notifications coming from Azure Security Center.
  
          :param str resource_name: The name of the resource.
          :param pulumi.ResourceOptions opts: Options for the resource.
          :param pulumi.Input[pulumi.InputType['SecurityContactPropertiesAlertNotificationsArgs']] alert_notifications: Defines whether to send email notifications about new security alerts
          :param pulumi.Input[str] emails: List of email addresses which will get notifications from Azure Security Center by the configurations defined in this security contact.
          :param pulumi.Input[pulumi.InputType['SecurityContactPropertiesNotificationsByRoleArgs']] notifications_by_role: Defines whether to send email notifications from Azure Security Center to persons with specific RBAC roles on the subscription.
          :param pulumi.Input[str] phone: The security contact's phone number
          :param pulumi.Input[str] security_contact_name: Name of the security contact object
          """
          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__['alert_notifications'] = alert_notifications
              __props__['emails'] = emails
              __props__['notifications_by_role'] = notifications_by_role
              __props__['phone'] = phone
              __props__['security_contact_name'] = security_contact_name
              __props__['name'] = None
              __props__['type'] = None
          alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-nextgen:security/v20200101preview:SecurityContact"), pulumi.Alias(type_="azure-native:security:SecurityContact"), pulumi.Alias(type_="azure-nextgen:security:SecurityContact"), pulumi.Alias(type_="azure-native:security/v20170801preview:SecurityContact"), pulumi.Alias(type_="azure-nextgen:security/v20170801preview:SecurityContact")])
          opts = pulumi.ResourceOptions.merge(opts, alias_opts)
          super(SecurityContact, __self__).__init__(
              'azure-native:security/v20200101preview:SecurityContact',
              resource_name,
              __props__,
              opts)
  
      @staticmethod
      def get(resource_name: str,
              id: pulumi.Input[str],
              opts: Optional[pulumi.ResourceOptions] = None) -> 'SecurityContact':
          """
          Get an existing SecurityContact 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()
  
          __props__["alert_notifications"] = None
          __props__["emails"] = None
          __props__["name"] = None
          __props__["notifications_by_role"] = None
          __props__["phone"] = None
          __props__["type"] = None
          return SecurityContact(resource_name, opts=opts, __props__=__props__)
  
      @property
      @pulumi.getter(name="alertNotifications")
      def alert_notifications(self) -> pulumi.Output[Optional['outputs.SecurityContactPropertiesResponseAlertNotifications']]:
          """
          Defines whether to send email notifications about new security alerts
          """
          return pulumi.get(self, "alert_notifications")
  
      @property
      @pulumi.getter
      def emails(self) -> pulumi.Output[Optional[str]]:
          """
          List of email addresses which will get notifications from Azure Security Center by the configurations defined in this security contact.
          """
          return pulumi.get(self, "emails")
  
      @property
      @pulumi.getter
      def name(self) -> pulumi.Output[str]:
          """
          Resource name
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter(name="notificationsByRole")
      def notifications_by_role(self) -> pulumi.Output[Optional['outputs.SecurityContactPropertiesResponseNotificationsByRole']]:
          """
          Defines whether to send email notifications from Azure Security Center to persons with specific RBAC roles on the subscription.
          """
          return pulumi.get(self, "notifications_by_role")
  
      @property
      @pulumi.getter
      def phone(self) -> pulumi.Output[Optional[str]]:
          """
          The security contact's phone number
          """
          return pulumi.get(self, "phone")
  
      @property
      @pulumi.getter
      def type(self) -> pulumi.Output[str]:
          """
          Resource type
          """
          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
  
  