1. Packages
  2. Scaleway
  3. API Docs
  4. TemDomain
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

scaleway.TemDomain

Explore with Pulumi AI

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    Creates and manages Scaleway Transactional Email Domains. For more information refer to the API documentation.

    Example Usage

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const main = new scaleway.TemDomain("main", {
        acceptTos: true,
        name: "example.com",
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    main = scaleway.TemDomain("main",
        accept_tos=True,
        name="example.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.NewTemDomain(ctx, "main", &scaleway.TemDomainArgs{
    			AcceptTos: pulumi.Bool(true),
    			Name:      pulumi.String("example.com"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = new Scaleway.TemDomain("main", new()
        {
            AcceptTos = true,
            Name = "example.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.TemDomain;
    import com.pulumi.scaleway.TemDomainArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var main = new TemDomain("main", TemDomainArgs.builder()
                .acceptTos(true)
                .name("example.com")
                .build());
    
        }
    }
    
    resources:
      main:
        type: scaleway:TemDomain
        properties:
          acceptTos: true
          name: example.com
    

    Add the required records to your DNS zone

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const config = new pulumi.Config();
    const domainName = config.require("domainName");
    const main = new scaleway.TemDomain("main", {
        name: domainName,
        acceptTos: true,
    });
    const spf = new scaleway.DomainRecord("spf", {
        dnsZone: domainName,
        type: "TXT",
        data: pulumi.interpolate`v=spf1 ${main.spfConfig} -all`,
    });
    const dkim = new scaleway.DomainRecord("dkim", {
        dnsZone: domainName,
        name: pulumi.interpolate`${main.projectId}._domainkey`,
        type: "TXT",
        data: main.dkimConfig,
    });
    const mx = new scaleway.DomainRecord("mx", {
        dnsZone: domainName,
        type: "MX",
        data: ".",
    });
    const dmarc = new scaleway.DomainRecord("dmarc", {
        dnsZone: domainName,
        name: main.dmarcName,
        type: "TXT",
        data: main.dmarcConfig,
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    config = pulumi.Config()
    domain_name = config.require("domainName")
    main = scaleway.TemDomain("main",
        name=domain_name,
        accept_tos=True)
    spf = scaleway.DomainRecord("spf",
        dns_zone=domain_name,
        type="TXT",
        data=main.spf_config.apply(lambda spf_config: f"v=spf1 {spf_config} -all"))
    dkim = scaleway.DomainRecord("dkim",
        dns_zone=domain_name,
        name=main.project_id.apply(lambda project_id: f"{project_id}._domainkey"),
        type="TXT",
        data=main.dkim_config)
    mx = scaleway.DomainRecord("mx",
        dns_zone=domain_name,
        type="MX",
        data=".")
    dmarc = scaleway.DomainRecord("dmarc",
        dns_zone=domain_name,
        name=main.dmarc_name,
        type="TXT",
        data=main.dmarc_config)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		domainName := cfg.Require("domainName")
    		main, err := scaleway.NewTemDomain(ctx, "main", &scaleway.TemDomainArgs{
    			Name:      pulumi.String(domainName),
    			AcceptTos: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewDomainRecord(ctx, "spf", &scaleway.DomainRecordArgs{
    			DnsZone: pulumi.String(domainName),
    			Type:    pulumi.String("TXT"),
    			Data: main.SpfConfig.ApplyT(func(spfConfig string) (string, error) {
    				return fmt.Sprintf("v=spf1 %v -all", spfConfig), nil
    			}).(pulumi.StringOutput),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewDomainRecord(ctx, "dkim", &scaleway.DomainRecordArgs{
    			DnsZone: pulumi.String(domainName),
    			Name: main.ProjectId.ApplyT(func(projectId string) (string, error) {
    				return fmt.Sprintf("%v._domainkey", projectId), nil
    			}).(pulumi.StringOutput),
    			Type: pulumi.String("TXT"),
    			Data: main.DkimConfig,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewDomainRecord(ctx, "mx", &scaleway.DomainRecordArgs{
    			DnsZone: pulumi.String(domainName),
    			Type:    pulumi.String("MX"),
    			Data:    pulumi.String("."),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewDomainRecord(ctx, "dmarc", &scaleway.DomainRecordArgs{
    			DnsZone: pulumi.String(domainName),
    			Name:    main.DmarcName,
    			Type:    pulumi.String("TXT"),
    			Data:    main.DmarcConfig,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var domainName = config.Require("domainName");
        var main = new Scaleway.TemDomain("main", new()
        {
            Name = domainName,
            AcceptTos = true,
        });
    
        var spf = new Scaleway.DomainRecord("spf", new()
        {
            DnsZone = domainName,
            Type = "TXT",
            Data = main.SpfConfig.Apply(spfConfig => $"v=spf1 {spfConfig} -all"),
        });
    
        var dkim = new Scaleway.DomainRecord("dkim", new()
        {
            DnsZone = domainName,
            Name = main.ProjectId.Apply(projectId => $"{projectId}._domainkey"),
            Type = "TXT",
            Data = main.DkimConfig,
        });
    
        var mx = new Scaleway.DomainRecord("mx", new()
        {
            DnsZone = domainName,
            Type = "MX",
            Data = ".",
        });
    
        var dmarc = new Scaleway.DomainRecord("dmarc", new()
        {
            DnsZone = domainName,
            Name = main.DmarcName,
            Type = "TXT",
            Data = main.DmarcConfig,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.TemDomain;
    import com.pulumi.scaleway.TemDomainArgs;
    import com.pulumi.scaleway.DomainRecord;
    import com.pulumi.scaleway.DomainRecordArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var domainName = config.get("domainName");
            var main = new TemDomain("main", TemDomainArgs.builder()
                .name(domainName)
                .acceptTos(true)
                .build());
    
            var spf = new DomainRecord("spf", DomainRecordArgs.builder()
                .dnsZone(domainName)
                .type("TXT")
                .data(main.spfConfig().applyValue(spfConfig -> String.format("v=spf1 %s -all", spfConfig)))
                .build());
    
            var dkim = new DomainRecord("dkim", DomainRecordArgs.builder()
                .dnsZone(domainName)
                .name(main.projectId().applyValue(projectId -> String.format("%s._domainkey", projectId)))
                .type("TXT")
                .data(main.dkimConfig())
                .build());
    
            var mx = new DomainRecord("mx", DomainRecordArgs.builder()
                .dnsZone(domainName)
                .type("MX")
                .data(".")
                .build());
    
            var dmarc = new DomainRecord("dmarc", DomainRecordArgs.builder()
                .dnsZone(domainName)
                .name(main.dmarcName())
                .type("TXT")
                .data(main.dmarcConfig())
                .build());
    
        }
    }
    
    configuration:
      domainName:
        type: string
    resources:
      main:
        type: scaleway:TemDomain
        properties:
          name: ${domainName}
          acceptTos: true
      spf:
        type: scaleway:DomainRecord
        properties:
          dnsZone: ${domainName}
          type: TXT
          data: v=spf1 ${main.spfConfig} -all
      dkim:
        type: scaleway:DomainRecord
        properties:
          dnsZone: ${domainName}
          name: ${main.projectId}._domainkey
          type: TXT
          data: ${main.dkimConfig}
      mx:
        type: scaleway:DomainRecord
        properties:
          dnsZone: ${domainName}
          type: MX
          data: .
      dmarc:
        type: scaleway:DomainRecord
        properties:
          dnsZone: ${domainName}
          name: ${main.dmarcName}
          type: TXT
          data: ${main.dmarcConfig}
    

    Automatically Configure DNS Settings for Your Domain

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const config = new pulumi.Config();
    const domainName = config.require("domainName");
    const main = new scaleway.TemDomain("main", {
        name: domainName,
        acceptTos: true,
        autoconfig: true,
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    config = pulumi.Config()
    domain_name = config.require("domainName")
    main = scaleway.TemDomain("main",
        name=domain_name,
        accept_tos=True,
        autoconfig=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		domainName := cfg.Require("domainName")
    		_, err := scaleway.NewTemDomain(ctx, "main", &scaleway.TemDomainArgs{
    			Name:       pulumi.String(domainName),
    			AcceptTos:  pulumi.Bool(true),
    			Autoconfig: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var domainName = config.Require("domainName");
        var main = new Scaleway.TemDomain("main", new()
        {
            Name = domainName,
            AcceptTos = true,
            Autoconfig = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.TemDomain;
    import com.pulumi.scaleway.TemDomainArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var domainName = config.get("domainName");
            var main = new TemDomain("main", TemDomainArgs.builder()
                .name(domainName)
                .acceptTos(true)
                .autoconfig(true)
                .build());
    
        }
    }
    
    configuration:
      domainName:
        type: string
    resources:
      main:
        type: scaleway:TemDomain
        properties:
          name: ${domainName}
          acceptTos: true
          autoconfig: true
    

    Create TemDomain Resource

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

    Constructor syntax

    new TemDomain(name: string, args: TemDomainArgs, opts?: CustomResourceOptions);
    @overload
    def TemDomain(resource_name: str,
                  args: TemDomainArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def TemDomain(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  accept_tos: Optional[bool] = None,
                  autoconfig: Optional[bool] = None,
                  name: Optional[str] = None,
                  project_id: Optional[str] = None,
                  region: Optional[str] = None)
    func NewTemDomain(ctx *Context, name string, args TemDomainArgs, opts ...ResourceOption) (*TemDomain, error)
    public TemDomain(string name, TemDomainArgs args, CustomResourceOptions? opts = null)
    public TemDomain(String name, TemDomainArgs args)
    public TemDomain(String name, TemDomainArgs args, CustomResourceOptions options)
    
    type: scaleway:TemDomain
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TemDomainArgs
    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 TemDomainArgs
    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 TemDomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TemDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TemDomainArgs
    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 temDomainResource = new Scaleway.TemDomain("temDomainResource", new()
    {
        AcceptTos = false,
        Autoconfig = false,
        Name = "string",
        ProjectId = "string",
        Region = "string",
    });
    
    example, err := scaleway.NewTemDomain(ctx, "temDomainResource", &scaleway.TemDomainArgs{
    	AcceptTos:  pulumi.Bool(false),
    	Autoconfig: pulumi.Bool(false),
    	Name:       pulumi.String("string"),
    	ProjectId:  pulumi.String("string"),
    	Region:     pulumi.String("string"),
    })
    
    var temDomainResource = new TemDomain("temDomainResource", TemDomainArgs.builder()
        .acceptTos(false)
        .autoconfig(false)
        .name("string")
        .projectId("string")
        .region("string")
        .build());
    
    tem_domain_resource = scaleway.TemDomain("temDomainResource",
        accept_tos=False,
        autoconfig=False,
        name="string",
        project_id="string",
        region="string")
    
    const temDomainResource = new scaleway.TemDomain("temDomainResource", {
        acceptTos: false,
        autoconfig: false,
        name: "string",
        projectId: "string",
        region: "string",
    });
    
    type: scaleway:TemDomain
    properties:
        acceptTos: false
        autoconfig: false
        name: string
        projectId: string
        region: string
    

    TemDomain 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 TemDomain resource accepts the following input properties:

    AcceptTos bool

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    Autoconfig bool
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    Name string

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    ProjectId string
    project_id) The ID of the project the domain is associated with.
    Region string
    region). The region in which the domain should be created.
    AcceptTos bool

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    Autoconfig bool
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    Name string

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    ProjectId string
    project_id) The ID of the project the domain is associated with.
    Region string
    region). The region in which the domain should be created.
    acceptTos Boolean

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    autoconfig Boolean
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    name String

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    projectId String
    project_id) The ID of the project the domain is associated with.
    region String
    region). The region in which the domain should be created.
    acceptTos boolean

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    autoconfig boolean
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    name string

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    projectId string
    project_id) The ID of the project the domain is associated with.
    region string
    region). The region in which the domain should be created.
    accept_tos bool

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    autoconfig bool
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    name str

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    project_id str
    project_id) The ID of the project the domain is associated with.
    region str
    region). The region in which the domain should be created.
    acceptTos Boolean

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    autoconfig Boolean
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    name String

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    projectId String
    project_id) The ID of the project the domain is associated with.
    region String
    region). The region in which the domain should be created.

    Outputs

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

    CreatedAt string
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    DkimConfig string
    The DKIM public key, as should be recorded in the DNS zone.
    DmarcConfig string
    DMARC record for the domain, as should be recorded in the DNS zone.
    DmarcName string
    DMARC name for the domain, as should be recorded in the DNS zone.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastError string
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    LastValidAt string
    The date and time the domain was last found to be valid (RFC 3339 format).
    MxBlackhole string
    The Scaleway's blackhole MX server to use if you do not have one.
    NextCheckAt string
    The date and time of the next scheduled check (RFC 3339 format).
    Reputations List<Pulumiverse.Scaleway.Outputs.TemDomainReputation>
    The domain's reputation.
    RevokedAt string
    The date and time of the revocation of the domain (RFC 3339 format).
    SmtpHost string
    The SMTP host to use to send emails.
    SmtpPort int
    The SMTP port to use to send emails over TLS.
    SmtpPortAlternative int
    The SMTP port to use to send emails over TLS.
    SmtpPortUnsecure int
    The SMTP port to use to send emails.
    SmtpsAuthUser string
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    SmtpsPort int
    The SMTPS port to use to send emails over TLS Wrapper.
    SmtpsPortAlternative int
    The SMTPS port to use to send emails over TLS Wrapper.
    SpfConfig string
    The snippet of the SPF record that should be registered in the DNS zone.
    Status string
    The status of the domain's reputation.
    CreatedAt string
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    DkimConfig string
    The DKIM public key, as should be recorded in the DNS zone.
    DmarcConfig string
    DMARC record for the domain, as should be recorded in the DNS zone.
    DmarcName string
    DMARC name for the domain, as should be recorded in the DNS zone.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastError string
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    LastValidAt string
    The date and time the domain was last found to be valid (RFC 3339 format).
    MxBlackhole string
    The Scaleway's blackhole MX server to use if you do not have one.
    NextCheckAt string
    The date and time of the next scheduled check (RFC 3339 format).
    Reputations []TemDomainReputation
    The domain's reputation.
    RevokedAt string
    The date and time of the revocation of the domain (RFC 3339 format).
    SmtpHost string
    The SMTP host to use to send emails.
    SmtpPort int
    The SMTP port to use to send emails over TLS.
    SmtpPortAlternative int
    The SMTP port to use to send emails over TLS.
    SmtpPortUnsecure int
    The SMTP port to use to send emails.
    SmtpsAuthUser string
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    SmtpsPort int
    The SMTPS port to use to send emails over TLS Wrapper.
    SmtpsPortAlternative int
    The SMTPS port to use to send emails over TLS Wrapper.
    SpfConfig string
    The snippet of the SPF record that should be registered in the DNS zone.
    Status string
    The status of the domain's reputation.
    createdAt String
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    dkimConfig String
    The DKIM public key, as should be recorded in the DNS zone.
    dmarcConfig String
    DMARC record for the domain, as should be recorded in the DNS zone.
    dmarcName String
    DMARC name for the domain, as should be recorded in the DNS zone.
    id String
    The provider-assigned unique ID for this managed resource.
    lastError String
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    lastValidAt String
    The date and time the domain was last found to be valid (RFC 3339 format).
    mxBlackhole String
    The Scaleway's blackhole MX server to use if you do not have one.
    nextCheckAt String
    The date and time of the next scheduled check (RFC 3339 format).
    reputations List<TemDomainReputation>
    The domain's reputation.
    revokedAt String
    The date and time of the revocation of the domain (RFC 3339 format).
    smtpHost String
    The SMTP host to use to send emails.
    smtpPort Integer
    The SMTP port to use to send emails over TLS.
    smtpPortAlternative Integer
    The SMTP port to use to send emails over TLS.
    smtpPortUnsecure Integer
    The SMTP port to use to send emails.
    smtpsAuthUser String
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    smtpsPort Integer
    The SMTPS port to use to send emails over TLS Wrapper.
    smtpsPortAlternative Integer
    The SMTPS port to use to send emails over TLS Wrapper.
    spfConfig String
    The snippet of the SPF record that should be registered in the DNS zone.
    status String
    The status of the domain's reputation.
    createdAt string
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    dkimConfig string
    The DKIM public key, as should be recorded in the DNS zone.
    dmarcConfig string
    DMARC record for the domain, as should be recorded in the DNS zone.
    dmarcName string
    DMARC name for the domain, as should be recorded in the DNS zone.
    id string
    The provider-assigned unique ID for this managed resource.
    lastError string
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    lastValidAt string
    The date and time the domain was last found to be valid (RFC 3339 format).
    mxBlackhole string
    The Scaleway's blackhole MX server to use if you do not have one.
    nextCheckAt string
    The date and time of the next scheduled check (RFC 3339 format).
    reputations TemDomainReputation[]
    The domain's reputation.
    revokedAt string
    The date and time of the revocation of the domain (RFC 3339 format).
    smtpHost string
    The SMTP host to use to send emails.
    smtpPort number
    The SMTP port to use to send emails over TLS.
    smtpPortAlternative number
    The SMTP port to use to send emails over TLS.
    smtpPortUnsecure number
    The SMTP port to use to send emails.
    smtpsAuthUser string
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    smtpsPort number
    The SMTPS port to use to send emails over TLS Wrapper.
    smtpsPortAlternative number
    The SMTPS port to use to send emails over TLS Wrapper.
    spfConfig string
    The snippet of the SPF record that should be registered in the DNS zone.
    status string
    The status of the domain's reputation.
    created_at str
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    dkim_config str
    The DKIM public key, as should be recorded in the DNS zone.
    dmarc_config str
    DMARC record for the domain, as should be recorded in the DNS zone.
    dmarc_name str
    DMARC name for the domain, as should be recorded in the DNS zone.
    id str
    The provider-assigned unique ID for this managed resource.
    last_error str
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    last_valid_at str
    The date and time the domain was last found to be valid (RFC 3339 format).
    mx_blackhole str
    The Scaleway's blackhole MX server to use if you do not have one.
    next_check_at str
    The date and time of the next scheduled check (RFC 3339 format).
    reputations Sequence[TemDomainReputation]
    The domain's reputation.
    revoked_at str
    The date and time of the revocation of the domain (RFC 3339 format).
    smtp_host str
    The SMTP host to use to send emails.
    smtp_port int
    The SMTP port to use to send emails over TLS.
    smtp_port_alternative int
    The SMTP port to use to send emails over TLS.
    smtp_port_unsecure int
    The SMTP port to use to send emails.
    smtps_auth_user str
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    smtps_port int
    The SMTPS port to use to send emails over TLS Wrapper.
    smtps_port_alternative int
    The SMTPS port to use to send emails over TLS Wrapper.
    spf_config str
    The snippet of the SPF record that should be registered in the DNS zone.
    status str
    The status of the domain's reputation.
    createdAt String
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    dkimConfig String
    The DKIM public key, as should be recorded in the DNS zone.
    dmarcConfig String
    DMARC record for the domain, as should be recorded in the DNS zone.
    dmarcName String
    DMARC name for the domain, as should be recorded in the DNS zone.
    id String
    The provider-assigned unique ID for this managed resource.
    lastError String
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    lastValidAt String
    The date and time the domain was last found to be valid (RFC 3339 format).
    mxBlackhole String
    The Scaleway's blackhole MX server to use if you do not have one.
    nextCheckAt String
    The date and time of the next scheduled check (RFC 3339 format).
    reputations List<Property Map>
    The domain's reputation.
    revokedAt String
    The date and time of the revocation of the domain (RFC 3339 format).
    smtpHost String
    The SMTP host to use to send emails.
    smtpPort Number
    The SMTP port to use to send emails over TLS.
    smtpPortAlternative Number
    The SMTP port to use to send emails over TLS.
    smtpPortUnsecure Number
    The SMTP port to use to send emails.
    smtpsAuthUser String
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    smtpsPort Number
    The SMTPS port to use to send emails over TLS Wrapper.
    smtpsPortAlternative Number
    The SMTPS port to use to send emails over TLS Wrapper.
    spfConfig String
    The snippet of the SPF record that should be registered in the DNS zone.
    status String
    The status of the domain's reputation.

    Look up Existing TemDomain Resource

    Get an existing TemDomain 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?: TemDomainState, opts?: CustomResourceOptions): TemDomain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accept_tos: Optional[bool] = None,
            autoconfig: Optional[bool] = None,
            created_at: Optional[str] = None,
            dkim_config: Optional[str] = None,
            dmarc_config: Optional[str] = None,
            dmarc_name: Optional[str] = None,
            last_error: Optional[str] = None,
            last_valid_at: Optional[str] = None,
            mx_blackhole: Optional[str] = None,
            name: Optional[str] = None,
            next_check_at: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            reputations: Optional[Sequence[TemDomainReputationArgs]] = None,
            revoked_at: Optional[str] = None,
            smtp_host: Optional[str] = None,
            smtp_port: Optional[int] = None,
            smtp_port_alternative: Optional[int] = None,
            smtp_port_unsecure: Optional[int] = None,
            smtps_auth_user: Optional[str] = None,
            smtps_port: Optional[int] = None,
            smtps_port_alternative: Optional[int] = None,
            spf_config: Optional[str] = None,
            status: Optional[str] = None) -> TemDomain
    func GetTemDomain(ctx *Context, name string, id IDInput, state *TemDomainState, opts ...ResourceOption) (*TemDomain, error)
    public static TemDomain Get(string name, Input<string> id, TemDomainState? state, CustomResourceOptions? opts = null)
    public static TemDomain get(String name, Output<String> id, TemDomainState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AcceptTos bool

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    Autoconfig bool
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    CreatedAt string
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    DkimConfig string
    The DKIM public key, as should be recorded in the DNS zone.
    DmarcConfig string
    DMARC record for the domain, as should be recorded in the DNS zone.
    DmarcName string
    DMARC name for the domain, as should be recorded in the DNS zone.
    LastError string
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    LastValidAt string
    The date and time the domain was last found to be valid (RFC 3339 format).
    MxBlackhole string
    The Scaleway's blackhole MX server to use if you do not have one.
    Name string

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    NextCheckAt string
    The date and time of the next scheduled check (RFC 3339 format).
    ProjectId string
    project_id) The ID of the project the domain is associated with.
    Region string
    region). The region in which the domain should be created.
    Reputations List<Pulumiverse.Scaleway.Inputs.TemDomainReputation>
    The domain's reputation.
    RevokedAt string
    The date and time of the revocation of the domain (RFC 3339 format).
    SmtpHost string
    The SMTP host to use to send emails.
    SmtpPort int
    The SMTP port to use to send emails over TLS.
    SmtpPortAlternative int
    The SMTP port to use to send emails over TLS.
    SmtpPortUnsecure int
    The SMTP port to use to send emails.
    SmtpsAuthUser string
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    SmtpsPort int
    The SMTPS port to use to send emails over TLS Wrapper.
    SmtpsPortAlternative int
    The SMTPS port to use to send emails over TLS Wrapper.
    SpfConfig string
    The snippet of the SPF record that should be registered in the DNS zone.
    Status string
    The status of the domain's reputation.
    AcceptTos bool

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    Autoconfig bool
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    CreatedAt string
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    DkimConfig string
    The DKIM public key, as should be recorded in the DNS zone.
    DmarcConfig string
    DMARC record for the domain, as should be recorded in the DNS zone.
    DmarcName string
    DMARC name for the domain, as should be recorded in the DNS zone.
    LastError string
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    LastValidAt string
    The date and time the domain was last found to be valid (RFC 3339 format).
    MxBlackhole string
    The Scaleway's blackhole MX server to use if you do not have one.
    Name string

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    NextCheckAt string
    The date and time of the next scheduled check (RFC 3339 format).
    ProjectId string
    project_id) The ID of the project the domain is associated with.
    Region string
    region). The region in which the domain should be created.
    Reputations []TemDomainReputationArgs
    The domain's reputation.
    RevokedAt string
    The date and time of the revocation of the domain (RFC 3339 format).
    SmtpHost string
    The SMTP host to use to send emails.
    SmtpPort int
    The SMTP port to use to send emails over TLS.
    SmtpPortAlternative int
    The SMTP port to use to send emails over TLS.
    SmtpPortUnsecure int
    The SMTP port to use to send emails.
    SmtpsAuthUser string
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    SmtpsPort int
    The SMTPS port to use to send emails over TLS Wrapper.
    SmtpsPortAlternative int
    The SMTPS port to use to send emails over TLS Wrapper.
    SpfConfig string
    The snippet of the SPF record that should be registered in the DNS zone.
    Status string
    The status of the domain's reputation.
    acceptTos Boolean

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    autoconfig Boolean
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    createdAt String
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    dkimConfig String
    The DKIM public key, as should be recorded in the DNS zone.
    dmarcConfig String
    DMARC record for the domain, as should be recorded in the DNS zone.
    dmarcName String
    DMARC name for the domain, as should be recorded in the DNS zone.
    lastError String
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    lastValidAt String
    The date and time the domain was last found to be valid (RFC 3339 format).
    mxBlackhole String
    The Scaleway's blackhole MX server to use if you do not have one.
    name String

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    nextCheckAt String
    The date and time of the next scheduled check (RFC 3339 format).
    projectId String
    project_id) The ID of the project the domain is associated with.
    region String
    region). The region in which the domain should be created.
    reputations List<TemDomainReputation>
    The domain's reputation.
    revokedAt String
    The date and time of the revocation of the domain (RFC 3339 format).
    smtpHost String
    The SMTP host to use to send emails.
    smtpPort Integer
    The SMTP port to use to send emails over TLS.
    smtpPortAlternative Integer
    The SMTP port to use to send emails over TLS.
    smtpPortUnsecure Integer
    The SMTP port to use to send emails.
    smtpsAuthUser String
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    smtpsPort Integer
    The SMTPS port to use to send emails over TLS Wrapper.
    smtpsPortAlternative Integer
    The SMTPS port to use to send emails over TLS Wrapper.
    spfConfig String
    The snippet of the SPF record that should be registered in the DNS zone.
    status String
    The status of the domain's reputation.
    acceptTos boolean

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    autoconfig boolean
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    createdAt string
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    dkimConfig string
    The DKIM public key, as should be recorded in the DNS zone.
    dmarcConfig string
    DMARC record for the domain, as should be recorded in the DNS zone.
    dmarcName string
    DMARC name for the domain, as should be recorded in the DNS zone.
    lastError string
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    lastValidAt string
    The date and time the domain was last found to be valid (RFC 3339 format).
    mxBlackhole string
    The Scaleway's blackhole MX server to use if you do not have one.
    name string

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    nextCheckAt string
    The date and time of the next scheduled check (RFC 3339 format).
    projectId string
    project_id) The ID of the project the domain is associated with.
    region string
    region). The region in which the domain should be created.
    reputations TemDomainReputation[]
    The domain's reputation.
    revokedAt string
    The date and time of the revocation of the domain (RFC 3339 format).
    smtpHost string
    The SMTP host to use to send emails.
    smtpPort number
    The SMTP port to use to send emails over TLS.
    smtpPortAlternative number
    The SMTP port to use to send emails over TLS.
    smtpPortUnsecure number
    The SMTP port to use to send emails.
    smtpsAuthUser string
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    smtpsPort number
    The SMTPS port to use to send emails over TLS Wrapper.
    smtpsPortAlternative number
    The SMTPS port to use to send emails over TLS Wrapper.
    spfConfig string
    The snippet of the SPF record that should be registered in the DNS zone.
    status string
    The status of the domain's reputation.
    accept_tos bool

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    autoconfig bool
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    created_at str
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    dkim_config str
    The DKIM public key, as should be recorded in the DNS zone.
    dmarc_config str
    DMARC record for the domain, as should be recorded in the DNS zone.
    dmarc_name str
    DMARC name for the domain, as should be recorded in the DNS zone.
    last_error str
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    last_valid_at str
    The date and time the domain was last found to be valid (RFC 3339 format).
    mx_blackhole str
    The Scaleway's blackhole MX server to use if you do not have one.
    name str

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    next_check_at str
    The date and time of the next scheduled check (RFC 3339 format).
    project_id str
    project_id) The ID of the project the domain is associated with.
    region str
    region). The region in which the domain should be created.
    reputations Sequence[TemDomainReputationArgs]
    The domain's reputation.
    revoked_at str
    The date and time of the revocation of the domain (RFC 3339 format).
    smtp_host str
    The SMTP host to use to send emails.
    smtp_port int
    The SMTP port to use to send emails over TLS.
    smtp_port_alternative int
    The SMTP port to use to send emails over TLS.
    smtp_port_unsecure int
    The SMTP port to use to send emails.
    smtps_auth_user str
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    smtps_port int
    The SMTPS port to use to send emails over TLS Wrapper.
    smtps_port_alternative int
    The SMTPS port to use to send emails over TLS Wrapper.
    spf_config str
    The snippet of the SPF record that should be registered in the DNS zone.
    status str
    The status of the domain's reputation.
    acceptTos Boolean

    Acceptation of the Term of Service.

    Important: This attribute must be set to true.

    autoconfig Boolean
    Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations.
    createdAt String
    The date and time of the Transaction Email Domain's creation (RFC 3339 format).
    dkimConfig String
    The DKIM public key, as should be recorded in the DNS zone.
    dmarcConfig String
    DMARC record for the domain, as should be recorded in the DNS zone.
    dmarcName String
    DMARC name for the domain, as should be recorded in the DNS zone.
    lastError String
    (Deprecated) The error message if the last check failed.

    Deprecated: last_error is deprecated

    lastValidAt String
    The date and time the domain was last found to be valid (RFC 3339 format).
    mxBlackhole String
    The Scaleway's blackhole MX server to use if you do not have one.
    name String

    The domain name, must not be used in another Transactional Email Domain.

    Important: Updates to name will recreate the domain.

    nextCheckAt String
    The date and time of the next scheduled check (RFC 3339 format).
    projectId String
    project_id) The ID of the project the domain is associated with.
    region String
    region). The region in which the domain should be created.
    reputations List<Property Map>
    The domain's reputation.
    revokedAt String
    The date and time of the revocation of the domain (RFC 3339 format).
    smtpHost String
    The SMTP host to use to send emails.
    smtpPort Number
    The SMTP port to use to send emails over TLS.
    smtpPortAlternative Number
    The SMTP port to use to send emails over TLS.
    smtpPortUnsecure Number
    The SMTP port to use to send emails.
    smtpsAuthUser String
    SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission.
    smtpsPort Number
    The SMTPS port to use to send emails over TLS Wrapper.
    smtpsPortAlternative Number
    The SMTPS port to use to send emails over TLS Wrapper.
    spfConfig String
    The snippet of the SPF record that should be registered in the DNS zone.
    status String
    The status of the domain's reputation.

    Supporting Types

    TemDomainReputation, TemDomainReputationArgs

    PreviousScore int
    The previously-calculated domain's reputation score.
    PreviousScoredAt string
    The time and date the previous reputation score was calculated.
    Score int
    A range from 0 to 100 that determines your domain's reputation score.
    ScoredAt string
    The time and date the score was calculated.
    Status string
    The status of the domain's reputation.
    PreviousScore int
    The previously-calculated domain's reputation score.
    PreviousScoredAt string
    The time and date the previous reputation score was calculated.
    Score int
    A range from 0 to 100 that determines your domain's reputation score.
    ScoredAt string
    The time and date the score was calculated.
    Status string
    The status of the domain's reputation.
    previousScore Integer
    The previously-calculated domain's reputation score.
    previousScoredAt String
    The time and date the previous reputation score was calculated.
    score Integer
    A range from 0 to 100 that determines your domain's reputation score.
    scoredAt String
    The time and date the score was calculated.
    status String
    The status of the domain's reputation.
    previousScore number
    The previously-calculated domain's reputation score.
    previousScoredAt string
    The time and date the previous reputation score was calculated.
    score number
    A range from 0 to 100 that determines your domain's reputation score.
    scoredAt string
    The time and date the score was calculated.
    status string
    The status of the domain's reputation.
    previous_score int
    The previously-calculated domain's reputation score.
    previous_scored_at str
    The time and date the previous reputation score was calculated.
    score int
    A range from 0 to 100 that determines your domain's reputation score.
    scored_at str
    The time and date the score was calculated.
    status str
    The status of the domain's reputation.
    previousScore Number
    The previously-calculated domain's reputation score.
    previousScoredAt String
    The time and date the previous reputation score was calculated.
    score Number
    A range from 0 to 100 that determines your domain's reputation score.
    scoredAt String
    The time and date the score was calculated.
    status String
    The status of the domain's reputation.

    Import

    Domains can be imported using the {region}/{id}, e.g.

    bash

    $ pulumi import scaleway:index/temDomain:TemDomain main fr-par/11111111-1111-1111-1111-111111111111
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse