1. Packages
  2. Scaleway
  3. API Docs
  4. tem
  5. DomainValidation
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.tem.DomainValidation

Explore with Pulumi AI

Example Usage

Basic

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const main = new scaleway.tem.Domain("main", {
    acceptTos: true,
    name: "example.com",
});
const example = new scaleway.tem.DomainValidation("example", {
    domainId: main.id,
    region: "fr-par",
    timeout: 300,
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.tem.Domain("main",
    accept_tos=True,
    name="example.com")
example = scaleway.tem.DomainValidation("example",
    domain_id=main.id,
    region="fr-par",
    timeout=300)
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/tem"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := tem.NewDomain(ctx, "main", &tem.DomainArgs{
			AcceptTos: pulumi.Bool(true),
			Name:      pulumi.String("example.com"),
		})
		if err != nil {
			return err
		}
		_, err = tem.NewDomainValidation(ctx, "example", &tem.DomainValidationArgs{
			DomainId: main.ID(),
			Region:   pulumi.String("fr-par"),
			Timeout:  pulumi.Int(300),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Tem.Domain("main", new()
    {
        AcceptTos = true,
        Name = "example.com",
    });

    var example = new Scaleway.Tem.DomainValidation("example", new()
    {
        DomainId = main.Id,
        Region = "fr-par",
        Timeout = 300,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.tem.Domain;
import com.pulumi.scaleway.tem.DomainArgs;
import com.pulumi.scaleway.tem.DomainValidation;
import com.pulumi.scaleway.tem.DomainValidationArgs;
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 Domain("main", DomainArgs.builder()
            .acceptTos(true)
            .name("example.com")
            .build());

        var example = new DomainValidation("example", DomainValidationArgs.builder()
            .domainId(main.id())
            .region("fr-par")
            .timeout(300)
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:tem:Domain
    properties:
      acceptTos: true
      name: example.com
  example:
    type: scaleway:tem:DomainValidation
    properties:
      domainId: ${main.id}
      region: fr-par
      timeout: 300
Copy

Create DomainValidation Resource

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

Constructor syntax

new DomainValidation(name: string, args: DomainValidationArgs, opts?: CustomResourceOptions);
@overload
def DomainValidation(resource_name: str,
                     args: DomainValidationArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def DomainValidation(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     domain_id: Optional[str] = None,
                     region: Optional[str] = None,
                     timeout: Optional[int] = None)
func NewDomainValidation(ctx *Context, name string, args DomainValidationArgs, opts ...ResourceOption) (*DomainValidation, error)
public DomainValidation(string name, DomainValidationArgs args, CustomResourceOptions? opts = null)
public DomainValidation(String name, DomainValidationArgs args)
public DomainValidation(String name, DomainValidationArgs args, CustomResourceOptions options)
type: scaleway:tem:DomainValidation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DomainValidationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DomainValidationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DomainValidationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DomainValidationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DomainValidationArgs
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 domainValidationResource = new Scaleway.Tem.DomainValidation("domainValidationResource", new()
{
    DomainId = "string",
    Region = "string",
    Timeout = 0,
});
Copy
example, err := tem.NewDomainValidation(ctx, "domainValidationResource", &tem.DomainValidationArgs{
	DomainId: pulumi.String("string"),
	Region:   pulumi.String("string"),
	Timeout:  pulumi.Int(0),
})
Copy
var domainValidationResource = new DomainValidation("domainValidationResource", DomainValidationArgs.builder()
    .domainId("string")
    .region("string")
    .timeout(0)
    .build());
Copy
domain_validation_resource = scaleway.tem.DomainValidation("domainValidationResource",
    domain_id="string",
    region="string",
    timeout=0)
Copy
const domainValidationResource = new scaleway.tem.DomainValidation("domainValidationResource", {
    domainId: "string",
    region: "string",
    timeout: 0,
});
Copy
type: scaleway:tem:DomainValidation
properties:
    domainId: string
    region: string
    timeout: 0
Copy

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

DomainId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
Region Changes to this property will trigger replacement. string
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
Timeout Changes to this property will trigger replacement. int
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
DomainId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
Region Changes to this property will trigger replacement. string
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
Timeout Changes to this property will trigger replacement. int
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
domainId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
region Changes to this property will trigger replacement. String
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
timeout Changes to this property will trigger replacement. Integer
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
domainId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
region Changes to this property will trigger replacement. string
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
timeout Changes to this property will trigger replacement. number
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
domain_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
region Changes to this property will trigger replacement. str
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
timeout Changes to this property will trigger replacement. int
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
domainId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
region Changes to this property will trigger replacement. String
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
timeout Changes to this property will trigger replacement. Number
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Validated bool
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.
Id string
The provider-assigned unique ID for this managed resource.
Validated bool
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.
id String
The provider-assigned unique ID for this managed resource.
validated Boolean
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.
id string
The provider-assigned unique ID for this managed resource.
validated boolean
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.
id str
The provider-assigned unique ID for this managed resource.
validated bool
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.
id String
The provider-assigned unique ID for this managed resource.
validated Boolean
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.

Look up Existing DomainValidation Resource

Get an existing DomainValidation 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?: DomainValidationState, opts?: CustomResourceOptions): DomainValidation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain_id: Optional[str] = None,
        region: Optional[str] = None,
        timeout: Optional[int] = None,
        validated: Optional[bool] = None) -> DomainValidation
func GetDomainValidation(ctx *Context, name string, id IDInput, state *DomainValidationState, opts ...ResourceOption) (*DomainValidation, error)
public static DomainValidation Get(string name, Input<string> id, DomainValidationState? state, CustomResourceOptions? opts = null)
public static DomainValidation get(String name, Output<String> id, DomainValidationState state, CustomResourceOptions options)
resources:  _:    type: scaleway:tem:DomainValidation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DomainId Changes to this property will trigger replacement. string
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
Region Changes to this property will trigger replacement. string
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
Timeout Changes to this property will trigger replacement. int
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
Validated bool
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.
DomainId Changes to this property will trigger replacement. string
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
Region Changes to this property will trigger replacement. string
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
Timeout Changes to this property will trigger replacement. int
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
Validated bool
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.
domainId Changes to this property will trigger replacement. String
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
region Changes to this property will trigger replacement. String
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
timeout Changes to this property will trigger replacement. Integer
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
validated Boolean
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.
domainId Changes to this property will trigger replacement. string
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
region Changes to this property will trigger replacement. string
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
timeout Changes to this property will trigger replacement. number
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
validated boolean
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.
domain_id Changes to this property will trigger replacement. str
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
region Changes to this property will trigger replacement. str
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
timeout Changes to this property will trigger replacement. int
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
validated bool
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.
domainId Changes to this property will trigger replacement. String
The ID of the domain name used when sending emails. This ID must correspond to a domain already registered with Scaleway's Transactional Email service.
region Changes to this property will trigger replacement. String
region). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.
timeout Changes to this property will trigger replacement. Number
The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
validated Boolean
Indicates if the domain has been verified for email sending. This is computed after the creation or update of the domain validation resource.

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.