published on Sunday, Oct 11, 2026 by Descope
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:
- 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
truewill 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 stringId - 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 stringId - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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 stringId - 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 stringId - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. 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
truewill 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 stringId - 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 stringId - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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 stringId - 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 stringId - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. 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
truewill 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_ stringid - 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_ stringid - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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_ stringid - 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_ stringid - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. 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 Boolean
- Setting this to
truewill 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 StringId - 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 StringId - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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 StringId - 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 StringId - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. 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 boolean
- Setting this to
truewill 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 stringId - 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 stringId - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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 stringId - 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 stringId - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. 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
truewill 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_ strid - 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_ strid - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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_ strid - 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_ strid - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. 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 Boolean
- Setting this to
truewill 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 StringId - 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 StringId - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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 StringId - 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 StringId - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. 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) -> EnchantedlinkSettingsfunc 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.
- Disabled bool
- Setting this to
truewill 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 stringId - 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 stringId - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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 stringId - 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 stringId - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. An empty value (the default) selects the built-in System template.
- Disabled bool
- Setting this to
truewill 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 stringId - 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 stringId - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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 stringId - 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 stringId - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. An empty value (the default) selects the built-in System template.
- disabled bool
- Setting this to
truewill 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_ stringid - 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_ stringid - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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_ stringid - 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_ stringid - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. An empty value (the default) selects the built-in System template.
- disabled Boolean
- Setting this to
truewill 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 StringId - 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 StringId - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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 StringId - 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 StringId - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. An empty value (the default) selects the built-in System template.
- disabled boolean
- Setting this to
truewill 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 stringId - 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 stringId - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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 stringId - 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 stringId - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. An empty value (the default) selects the built-in System template.
- disabled bool
- Setting this to
truewill 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_ strid - 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_ strid - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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_ strid - 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_ strid - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. An empty value (the default) selects the built-in System template.
- disabled Boolean
- Setting this to
truewill 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 StringId - 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 StringId - The ID of the email template to send to users, taken from a
descope.EmailTemplateresource with itsmethodset toenchantedlink. 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 StringId - 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 StringId - The ID of the text template to send to users, taken from a
descope.TextTemplateresource with itsmethodset toenchantedlink. 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
descopeTerraform Provider.
published on Sunday, Oct 11, 2026 by Descope