import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages Scaleway Transactional Email Domains. * For more information refer to [the API documentation](https://www.scaleway.com/en/developers/api/transactional-email). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const main = new scaleway.TemDomain("main", {acceptTos: true}); * ``` * * ### Add the required records to your DNS zone * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const config = new pulumi.Config(); * const domainName = config.require("domainName"); * const main = new scaleway.TemDomain("main", {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, * type: "TXT", * data: main.dkimConfig, * }); * const mx = new scaleway.DomainRecord("mx", { * dnsZone: domainName, * type: "MX", * data: ".", * }); * const dmarc = new scaleway.DomainRecord("dmarc", { * dnsZone: domainName, * type: "TXT", * data: main.dmarcConfig, * }); * ``` * * ### Automatically Configure DNS Settings for Your Domain * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const config = new pulumi.Config(); * const domainName = config.require("domainName"); * const main = new scaleway.TemDomain("main", { * acceptTos: true, * autoconfig: true, * }); * ``` * * ## Import * * Domains can be imported using the `{region}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/temDomain:TemDomain main fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class TemDomain extends pulumi.CustomResource { /** * Get an existing TemDomain resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: TemDomainState, opts?: pulumi.CustomResourceOptions): TemDomain; /** * Returns true if the given object is an instance of TemDomain. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is TemDomain; /** * Acceptation of the [Term of Service](https://tem.s3.fr-par.scw.cloud/antispam_policy.pdf). * > **Important:** This attribute must be set to `true`. */ readonly acceptTos: pulumi.Output; /** * Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations. */ readonly autoconfig: pulumi.Output; /** * The date and time of the Transaction Email Domain's creation (RFC 3339 format). */ readonly createdAt: pulumi.Output; /** * The DKIM public key, as should be recorded in the DNS zone. */ readonly dkimConfig: pulumi.Output; /** * DMARC record for the domain, as should be recorded in the DNS zone. */ readonly dmarcConfig: pulumi.Output; /** * DMARC name for the domain, as should be recorded in the DNS zone. */ readonly dmarcName: pulumi.Output; /** * (Deprecated) The error message if the last check failed. * * @deprecated last_error is deprecated */ readonly lastError: pulumi.Output; /** * The date and time the domain was last found to be valid (RFC 3339 format). */ readonly lastValidAt: pulumi.Output; /** * The Scaleway's blackhole MX server to use if you do not have one. */ readonly mxBlackhole: pulumi.Output; /** * The domain name, must not be used in another Transactional Email Domain. * > **Important:** Updates to `name` will recreate the domain. */ readonly name: pulumi.Output; /** * The date and time of the next scheduled check (RFC 3339 format). */ readonly nextCheckAt: pulumi.Output; /** * `projectId`) The ID of the project the domain is associated with. */ readonly projectId: pulumi.Output; /** * `region`). The region in which the domain should be created. */ readonly region: pulumi.Output; /** * The domain's reputation. */ readonly reputations: pulumi.Output; /** * The date and time of the revocation of the domain (RFC 3339 format). */ readonly revokedAt: pulumi.Output; /** * The SMTP host to use to send emails. */ readonly smtpHost: pulumi.Output; /** * The SMTP port to use to send emails over TLS. */ readonly smtpPort: pulumi.Output; /** * The SMTP port to use to send emails over TLS. */ readonly smtpPortAlternative: pulumi.Output; /** * The SMTP port to use to send emails. */ readonly smtpPortUnsecure: pulumi.Output; /** * SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission. */ readonly smtpsAuthUser: pulumi.Output; /** * The SMTPS port to use to send emails over TLS Wrapper. */ readonly smtpsPort: pulumi.Output; /** * The SMTPS port to use to send emails over TLS Wrapper. */ readonly smtpsPortAlternative: pulumi.Output; /** * The snippet of the SPF record that should be registered in the DNS zone. */ readonly spfConfig: pulumi.Output; /** * The status of the domain's reputation. */ readonly status: pulumi.Output; /** * Create a TemDomain resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TemDomainArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TemDomain resources. */ export interface TemDomainState { /** * Acceptation of the [Term of Service](https://tem.s3.fr-par.scw.cloud/antispam_policy.pdf). * > **Important:** This attribute must be set to `true`. */ acceptTos?: pulumi.Input; /** * Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations. */ autoconfig?: pulumi.Input; /** * The date and time of the Transaction Email Domain's creation (RFC 3339 format). */ createdAt?: pulumi.Input; /** * The DKIM public key, as should be recorded in the DNS zone. */ dkimConfig?: pulumi.Input; /** * DMARC record for the domain, as should be recorded in the DNS zone. */ dmarcConfig?: pulumi.Input; /** * DMARC name for the domain, as should be recorded in the DNS zone. */ dmarcName?: pulumi.Input; /** * (Deprecated) The error message if the last check failed. * * @deprecated last_error is deprecated */ lastError?: pulumi.Input; /** * The date and time the domain was last found to be valid (RFC 3339 format). */ lastValidAt?: pulumi.Input; /** * The Scaleway's blackhole MX server to use if you do not have one. */ mxBlackhole?: pulumi.Input; /** * The domain name, must not be used in another Transactional Email Domain. * > **Important:** Updates to `name` will recreate the domain. */ name?: pulumi.Input; /** * The date and time of the next scheduled check (RFC 3339 format). */ nextCheckAt?: pulumi.Input; /** * `projectId`) The ID of the project the domain is associated with. */ projectId?: pulumi.Input; /** * `region`). The region in which the domain should be created. */ region?: pulumi.Input; /** * The domain's reputation. */ reputations?: pulumi.Input[]>; /** * The date and time of the revocation of the domain (RFC 3339 format). */ revokedAt?: pulumi.Input; /** * The SMTP host to use to send emails. */ smtpHost?: pulumi.Input; /** * The SMTP port to use to send emails over TLS. */ smtpPort?: pulumi.Input; /** * The SMTP port to use to send emails over TLS. */ smtpPortAlternative?: pulumi.Input; /** * The SMTP port to use to send emails. */ smtpPortUnsecure?: pulumi.Input; /** * SMTPS auth user refers to the identifier for a user authorized to send emails via SMTPS, ensuring secure email transmission. */ smtpsAuthUser?: pulumi.Input; /** * The SMTPS port to use to send emails over TLS Wrapper. */ smtpsPort?: pulumi.Input; /** * The SMTPS port to use to send emails over TLS Wrapper. */ smtpsPortAlternative?: pulumi.Input; /** * The snippet of the SPF record that should be registered in the DNS zone. */ spfConfig?: pulumi.Input; /** * The status of the domain's reputation. */ status?: pulumi.Input; } /** * The set of arguments for constructing a TemDomain resource. */ export interface TemDomainArgs { /** * Acceptation of the [Term of Service](https://tem.s3.fr-par.scw.cloud/antispam_policy.pdf). * > **Important:** This attribute must be set to `true`. */ acceptTos: pulumi.Input; /** * Automatically configures DNS settings for the domain, simplifying the setup process by applying predefined configurations. */ autoconfig?: pulumi.Input; /** * The domain name, must not be used in another Transactional Email Domain. * > **Important:** Updates to `name` will recreate the domain. */ name?: pulumi.Input; /** * `projectId`) The ID of the project the domain is associated with. */ projectId?: pulumi.Input; /** * `region`). The region in which the domain should be created. */ region?: pulumi.Input; }