text: # coding=utf-8
  # *** WARNING: this file was generated by the Kulado Terraform Bridge (tfgen) Tool. ***
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
  
  import json
  import warnings
  import kulado
  import kulado.runtime
  from .. import utilities, tables
  
  class ServicePrincipalPassword(kulado.CustomResource):
      end_date: kulado.Output[str]
      """
      The End Date which the Password is valid until, formatted as a RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
      """
      key_id: kulado.Output[str]
      """
      A GUID used to uniquely identify this Key. If not specified a GUID will be created. Changing this field forces a new resource to be created.
      """
      service_principal_id: kulado.Output[str]
      """
      The ID of the Service Principal for which this password should be created. Changing this field forces a new resource to be created.
      """
      start_date: kulado.Output[str]
      """
      The Start Date which the Password is valid from, formatted as a RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used.  Changing this field forces a new resource to be created.
      """
      value: kulado.Output[str]
      """
      The Password for this Service Principal.
      """
      def __init__(__self__, resource_name, opts=None, end_date=None, key_id=None, service_principal_id=None, start_date=None, value=None, __name__=None, __opts__=None):
          """
          Create a ServicePrincipalPassword resource with the given unique name, props, and options.
          
          :param str resource_name: The name of the resource.
          :param kulado.ResourceOptions opts: Options for the resource.
          :param kulado.Input[str] end_date: The End Date which the Password is valid until, formatted as a RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
          :param kulado.Input[str] key_id: A GUID used to uniquely identify this Key. If not specified a GUID will be created. Changing this field forces a new resource to be created.
          :param kulado.Input[str] service_principal_id: The ID of the Service Principal for which this password should be created. Changing this field forces a new resource to be created.
          :param kulado.Input[str] start_date: The Start Date which the Password is valid from, formatted as a RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used.  Changing this field forces a new resource to be created.
          :param kulado.Input[str] value: The Password for this Service Principal.
  
          > This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/azuread_service_principal_password.html.markdown.
          """
          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 not resource_name:
              raise TypeError('Missing resource name argument (for URN creation)')
          if not isinstance(resource_name, str):
              raise TypeError('Expected resource name to be a string')
          if opts and not isinstance(opts, kulado.ResourceOptions):
              raise TypeError('Expected resource options to be a ResourceOptions instance')
  
          __props__ = dict()
  
          if end_date is None:
              raise TypeError("Missing required property 'end_date'")
          __props__['end_date'] = end_date
  
          __props__['key_id'] = key_id
  
          if service_principal_id is None:
              raise TypeError("Missing required property 'service_principal_id'")
          __props__['service_principal_id'] = service_principal_id
  
          __props__['start_date'] = start_date
  
          if value is None:
              raise TypeError("Missing required property 'value'")
          __props__['value'] = value
  
          super(ServicePrincipalPassword, __self__).__init__(
              'azure:ad/servicePrincipalPassword:ServicePrincipalPassword',
              resource_name,
              __props__,
              opts)
  
  
      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
  
  