scaleway.TemDomainValidation
Explore with Pulumi AI
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",
});
const example = new scaleway.TemDomainValidation("example", {
domainId: main.id,
region: "fr-par",
timeout: 300,
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.TemDomain("main",
accept_tos=True,
name="example.com")
example = scaleway.TemDomainValidation("example",
domain_id=main.id,
region="fr-par",
timeout=300)
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 {
main, err := scaleway.NewTemDomain(ctx, "main", &scaleway.TemDomainArgs{
AcceptTos: pulumi.Bool(true),
Name: pulumi.String("example.com"),
})
if err != nil {
return err
}
_, err = scaleway.NewTemDomainValidation(ctx, "example", &scaleway.TemDomainValidationArgs{
DomainId: main.ID(),
Region: pulumi.String("fr-par"),
Timeout: pulumi.Int(300),
})
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",
});
var example = new Scaleway.TemDomainValidation("example", new()
{
DomainId = main.Id,
Region = "fr-par",
Timeout = 300,
});
});
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.TemDomainValidation;
import com.pulumi.scaleway.TemDomainValidationArgs;
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());
var example = new TemDomainValidation("example", TemDomainValidationArgs.builder()
.domainId(main.id())
.region("fr-par")
.timeout(300)
.build());
}
}
resources:
main:
type: scaleway:TemDomain
properties:
acceptTos: true
name: example.com
example:
type: scaleway:TemDomainValidation
properties:
domainId: ${main.id}
region: fr-par
timeout: 300
Create TemDomainValidation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TemDomainValidation(name: string, args: TemDomainValidationArgs, opts?: CustomResourceOptions);
@overload
def TemDomainValidation(resource_name: str,
args: TemDomainValidationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TemDomainValidation(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_id: Optional[str] = None,
region: Optional[str] = None,
timeout: Optional[int] = None)
func NewTemDomainValidation(ctx *Context, name string, args TemDomainValidationArgs, opts ...ResourceOption) (*TemDomainValidation, error)
public TemDomainValidation(string name, TemDomainValidationArgs args, CustomResourceOptions? opts = null)
public TemDomainValidation(String name, TemDomainValidationArgs args)
public TemDomainValidation(String name, TemDomainValidationArgs args, CustomResourceOptions options)
type: scaleway:TemDomainValidation
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 TemDomainValidationArgs
- 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 TemDomainValidationArgs
- 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 TemDomainValidationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TemDomainValidationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TemDomainValidationArgs
- 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 temDomainValidationResource = new Scaleway.TemDomainValidation("temDomainValidationResource", new()
{
DomainId = "string",
Region = "string",
Timeout = 0,
});
example, err := scaleway.NewTemDomainValidation(ctx, "temDomainValidationResource", &scaleway.TemDomainValidationArgs{
DomainId: pulumi.String("string"),
Region: pulumi.String("string"),
Timeout: pulumi.Int(0),
})
var temDomainValidationResource = new TemDomainValidation("temDomainValidationResource", TemDomainValidationArgs.builder()
.domainId("string")
.region("string")
.timeout(0)
.build());
tem_domain_validation_resource = scaleway.TemDomainValidation("temDomainValidationResource",
domain_id="string",
region="string",
timeout=0)
const temDomainValidationResource = new scaleway.TemDomainValidation("temDomainValidationResource", {
domainId: "string",
region: "string",
timeout: 0,
});
type: scaleway:TemDomainValidation
properties:
domainId: string
region: string
timeout: 0
TemDomainValidation 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 TemDomainValidation resource accepts the following input properties:
- Domain
Id 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 string
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- Timeout int
- The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
- Domain
Id 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 string
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- Timeout int
- The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
- domain
Id 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 String
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- timeout Integer
- The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
- domain
Id 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 string
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- timeout 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 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 str
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- timeout int
- The maximum wait time in seconds before returning an error if the domain validation does not complete. The default is 300 seconds.
- domain
Id 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 String
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- timeout 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 TemDomainValidation resource produces the following output properties:
Look up Existing TemDomainValidation Resource
Get an existing TemDomainValidation 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?: TemDomainValidationState, opts?: CustomResourceOptions): TemDomainValidation
@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) -> TemDomainValidation
func GetTemDomainValidation(ctx *Context, name string, id IDInput, state *TemDomainValidationState, opts ...ResourceOption) (*TemDomainValidation, error)
public static TemDomainValidation Get(string name, Input<string> id, TemDomainValidationState? state, CustomResourceOptions? opts = null)
public static TemDomainValidation get(String name, Output<String> id, TemDomainValidationState 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.
- Domain
Id 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 string
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- Timeout 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.
- Domain
Id 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 string
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- Timeout 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.
- domain
Id 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 String
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- timeout 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.
- domain
Id 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 string
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- timeout 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 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 str
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- timeout 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.
- domain
Id 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 String
region
). Specifies the region where the domain is registered. If not specified, it defaults to the provider's region.- timeout 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.