1. Registry
  2. Packages
  3. Descope Provider
  4. API Docs
  5. EnchantedlinkSettings
Viewing docs for Descope v1.0.1
published on Sunday, Oct 11, 2026 by Descope
descope logo Descope
Viewing docs for Descope v1.0.1
published on Sunday, Oct 11, 2026 by Descope

    Manages the project-level enchanted link authentication settings. This is a singleton resource, and its id is always the project ID.

    Create EnchantedlinkSettings Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EnchantedlinkSettings(name: string, args: EnchantedlinkSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def EnchantedlinkSettings(resource_name: str,
                              args: EnchantedlinkSettingsArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnchantedlinkSettings(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              project_id: Optional[str] = None,
                              disabled: Optional[bool] = None,
                              email_connector_id: Optional[str] = None,
                              email_template_id: Optional[str] = None,
                              expiration_time: Optional[str] = None,
                              redirect_url: Optional[str] = None,
                              text_connector_id: Optional[str] = None,
                              text_template_id: Optional[str] = None)
    func NewEnchantedlinkSettings(ctx *Context, name string, args EnchantedlinkSettingsArgs, opts ...ResourceOption) (*EnchantedlinkSettings, error)
    public EnchantedlinkSettings(string name, EnchantedlinkSettingsArgs args, CustomResourceOptions? opts = null)
    public EnchantedlinkSettings(String name, EnchantedlinkSettingsArgs args)
    public EnchantedlinkSettings(String name, EnchantedlinkSettingsArgs args, CustomResourceOptions options)
    
    type: descope:EnchantedlinkSettings
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "descope_enchantedlink_settings" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EnchantedlinkSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EnchantedlinkSettingsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EnchantedlinkSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnchantedlinkSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnchantedlinkSettingsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var enchantedlinkSettingsResource = new Descope.EnchantedlinkSettings("enchantedlinkSettingsResource", new()
    {
        ProjectId = "string",
        Disabled = false,
        EmailConnectorId = "string",
        EmailTemplateId = "string",
        ExpirationTime = "string",
        RedirectUrl = "string",
        TextConnectorId = "string",
        TextTemplateId = "string",
    });
    
    example, err := descope.NewEnchantedlinkSettings(ctx, "enchantedlinkSettingsResource", &descope.EnchantedlinkSettingsArgs{
    	ProjectId:        pulumi.String("string"),
    	Disabled:         pulumi.Bool(false),
    	EmailConnectorId: pulumi.String("string"),
    	EmailTemplateId:  pulumi.String("string"),
    	ExpirationTime:   pulumi.String("string"),
    	RedirectUrl:      pulumi.String("string"),
    	TextConnectorId:  pulumi.String("string"),
    	TextTemplateId:   pulumi.String("string"),
    })
    
    resource "descope_enchantedlink_settings" "enchantedlinkSettingsResource" {
      lifecycle {
        create_before_destroy = true
      }
      project_id         = "string"
      disabled           = false
      email_connector_id = "string"
      email_template_id  = "string"
      expiration_time    = "string"
      redirect_url       = "string"
      text_connector_id  = "string"
      text_template_id   = "string"
    }
    
    var enchantedlinkSettingsResource = new EnchantedlinkSettings("enchantedlinkSettingsResource", EnchantedlinkSettingsArgs.builder()
        .projectId("string")
        .disabled(false)
        .emailConnectorId("string")
        .emailTemplateId("string")
        .expirationTime("string")
        .redirectUrl("string")
        .textConnectorId("string")
        .textTemplateId("string")
        .build());
    
    enchantedlink_settings_resource = descope.EnchantedlinkSettings("enchantedlinkSettingsResource",
        project_id="string",
        disabled=False,
        email_connector_id="string",
        email_template_id="string",
        expiration_time="string",
        redirect_url="string",
        text_connector_id="string",
        text_template_id="string")
    
    const enchantedlinkSettingsResource = new descope.EnchantedlinkSettings("enchantedlinkSettingsResource", {
        projectId: "string",
        disabled: false,
        emailConnectorId: "string",
        emailTemplateId: "string",
        expirationTime: "string",
        redirectUrl: "string",
        textConnectorId: "string",
        textTemplateId: "string",
    });
    
    type: descope:EnchantedlinkSettings
    properties:
        disabled: false
        emailConnectorId: string
        emailTemplateId: string
        expirationTime: string
        projectId: string
        redirectUrl: string
        textConnectorId: string
        textTemplateId: string
    

    EnchantedlinkSettings Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EnchantedlinkSettings resource accepts the following input properties:

    ProjectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    Disabled bool
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    EmailConnectorId string
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    EmailTemplateId string
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    ExpirationTime string
    How long the enchanted link remains valid before it expires.
    RedirectUrl string
    The URL to redirect users to after they log in using the enchanted link.
    TextConnectorId string
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    TextTemplateId string
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    ProjectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    Disabled bool
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    EmailConnectorId string
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    EmailTemplateId string
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    ExpirationTime string
    How long the enchanted link remains valid before it expires.
    RedirectUrl string
    The URL to redirect users to after they log in using the enchanted link.
    TextConnectorId string
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    TextTemplateId string
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    project_id string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    disabled bool
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    email_connector_id string
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    email_template_id string
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    expiration_time string
    How long the enchanted link remains valid before it expires.
    redirect_url string
    The URL to redirect users to after they log in using the enchanted link.
    text_connector_id string
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    text_template_id string
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    projectId String
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    disabled Boolean
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    emailConnectorId String
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    emailTemplateId String
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    expirationTime String
    How long the enchanted link remains valid before it expires.
    redirectUrl String
    The URL to redirect users to after they log in using the enchanted link.
    textConnectorId String
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    textTemplateId String
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    projectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    disabled boolean
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    emailConnectorId string
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    emailTemplateId string
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    expirationTime string
    How long the enchanted link remains valid before it expires.
    redirectUrl string
    The URL to redirect users to after they log in using the enchanted link.
    textConnectorId string
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    textTemplateId string
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    project_id str
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    disabled bool
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    email_connector_id str
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    email_template_id str
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    expiration_time str
    How long the enchanted link remains valid before it expires.
    redirect_url str
    The URL to redirect users to after they log in using the enchanted link.
    text_connector_id str
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    text_template_id str
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    projectId String
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    disabled Boolean
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    emailConnectorId String
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    emailTemplateId String
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    expirationTime String
    How long the enchanted link remains valid before it expires.
    redirectUrl String
    The URL to redirect users to after they log in using the enchanted link.
    textConnectorId String
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    textTemplateId String
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EnchantedlinkSettings resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EnchantedlinkSettings Resource

    Get an existing EnchantedlinkSettings resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EnchantedlinkSettingsState, opts?: CustomResourceOptions): EnchantedlinkSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            disabled: Optional[bool] = None,
            email_connector_id: Optional[str] = None,
            email_template_id: Optional[str] = None,
            expiration_time: Optional[str] = None,
            project_id: Optional[str] = None,
            redirect_url: Optional[str] = None,
            text_connector_id: Optional[str] = None,
            text_template_id: Optional[str] = None) -> EnchantedlinkSettings
    func GetEnchantedlinkSettings(ctx *Context, name string, id IDInput, state *EnchantedlinkSettingsState, opts ...ResourceOption) (*EnchantedlinkSettings, error)
    public static EnchantedlinkSettings Get(string name, Input<string> id, EnchantedlinkSettingsState? state, CustomResourceOptions? opts = null)
    public static EnchantedlinkSettings get(String name, Output<String> id, EnchantedlinkSettingsState state, CustomResourceOptions options)
    resources:  existingEnchantedlinkSettings:    type: descope:EnchantedlinkSettings    get:      id: ${id}
    import {
      to = descope_enchantedlink_settings.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state EnchantedlinkSettingsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state EnchantedlinkSettingsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state EnchantedlinkSettingsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state EnchantedlinkSettingsState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    Disabled bool
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    EmailConnectorId string
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    EmailTemplateId string
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    ExpirationTime string
    How long the enchanted link remains valid before it expires.
    ProjectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    RedirectUrl string
    The URL to redirect users to after they log in using the enchanted link.
    TextConnectorId string
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    TextTemplateId string
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    Disabled bool
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    EmailConnectorId string
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    EmailTemplateId string
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    ExpirationTime string
    How long the enchanted link remains valid before it expires.
    ProjectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    RedirectUrl string
    The URL to redirect users to after they log in using the enchanted link.
    TextConnectorId string
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    TextTemplateId string
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    disabled bool
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    email_connector_id string
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    email_template_id string
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    expiration_time string
    How long the enchanted link remains valid before it expires.
    project_id string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    redirect_url string
    The URL to redirect users to after they log in using the enchanted link.
    text_connector_id string
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    text_template_id string
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    disabled Boolean
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    emailConnectorId String
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    emailTemplateId String
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    expirationTime String
    How long the enchanted link remains valid before it expires.
    projectId String
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    redirectUrl String
    The URL to redirect users to after they log in using the enchanted link.
    textConnectorId String
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    textTemplateId String
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    disabled boolean
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    emailConnectorId string
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    emailTemplateId string
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    expirationTime string
    How long the enchanted link remains valid before it expires.
    projectId string
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    redirectUrl string
    The URL to redirect users to after they log in using the enchanted link.
    textConnectorId string
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    textTemplateId string
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    disabled bool
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    email_connector_id str
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    email_template_id str
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    expiration_time str
    How long the enchanted link remains valid before it expires.
    project_id str
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    redirect_url str
    The URL to redirect users to after they log in using the enchanted link.
    text_connector_id str
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    text_template_id str
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    disabled Boolean
    Setting this to true will disallow using enchanted link authentication directly via API and SDK calls. Note that this does not affect authentication flows that are configured to use enchanted links.
    emailConnectorId String
    The ID of an email connector to use for sending emails. An empty value (the default) selects the built-in Descope delivery service.
    emailTemplateId String
    The ID of the email template to send to users, taken from a descope.EmailTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.
    expirationTime String
    How long the enchanted link remains valid before it expires.
    projectId String
    The ID of the project that these settings belong to. Changing this value will require the resource to be deleted and recreated.
    redirectUrl String
    The URL to redirect users to after they log in using the enchanted link.
    textConnectorId String
    The ID of an SMS connector to use for sending text messages. An empty value (the default) selects the built-in Descope delivery service.
    textTemplateId String
    The ID of the text template to send to users, taken from a descope.TextTemplate resource with its method set to enchantedlink. An empty value (the default) selects the built-in System template.

    Package Details

    Repository
    descope descope/pulumi-descope
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the descope Terraform Provider.
    descope logo Descope
    Viewing docs for Descope v1.0.1
    published on Sunday, Oct 11, 2026 by Descope

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial