import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway Transactional Email Webhooks. * 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.TemWebhook("main", { * domainId: "your-domain-id", * eventTypes: [ * "email_delivered", * "email_bounced", * ], * snsArn: "arn:scw:sns:fr-par:project-xxxx:your-sns-topic", * }); * ``` * * ### Complete Example with Dependencies * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const config = new pulumi.Config(); * const domainName = config.require("domainName"); * const sns = new scaleway.MnqSns("sns", {}); * const snsCredentials = new scaleway.MnqSnsCredentials("snsCredentials", {permissions: { * canManage: true, * }}); * const snsTopic = new scaleway.MnqSnsTopic("snsTopic", { * accessKey: snsCredentials.accessKey, * secretKey: snsCredentials.secretKey, * }); * const cr01 = new scaleway.TemDomain("cr01", {acceptTos: true}); * const spf = new scaleway.DomainRecord("spf", { * dnsZone: domainName, * type: "TXT", * data: pulumi.interpolate`v=spf1 ${cr01.spfConfig} -all`, * }); * const dkim = new scaleway.DomainRecord("dkim", { * dnsZone: domainName, * type: "TXT", * data: cr01.dkimConfig, * }); * const mx = new scaleway.DomainRecord("mx", { * dnsZone: domainName, * type: "MX", * data: ".", * }); * const dmarc = new scaleway.DomainRecord("dmarc", { * dnsZone: domainName, * type: "TXT", * data: cr01.dmarcConfig, * }); * const valid = new scaleway.TemDomainValidation("valid", { * domainId: cr01.id, * region: cr01.region, * timeout: 3600, * }); * const webhook = new scaleway.TemWebhook("webhook", { * domainId: cr01.id, * eventTypes: [ * "email_delivered", * "email_bounced", * ], * snsArn: snsTopic.arn, * }, { * dependsOn: [ * valid, * snsTopic, * ], * }); * ``` * * ## Import * * Webhooks can be imported using the {region}/{id}, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/temWebhook:TemWebhook main fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class TemWebhook extends pulumi.CustomResource { /** * Get an existing TemWebhook 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?: TemWebhookState, opts?: pulumi.CustomResourceOptions): TemWebhook; /** * Returns true if the given object is an instance of TemWebhook. 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 TemWebhook; /** * The date and time of the webhook's creation (RFC 3339 format). */ readonly createdAt: pulumi.Output; /** * The ID of the domain the webhook is associated with. */ readonly domainId: pulumi.Output; /** * A list of event types that trigger the webhook. */ readonly eventTypes: pulumi.Output; /** * The name of the webhook. Defaults to an autogenerated name if not provided. */ readonly name: pulumi.Output; /** * The ID of the organization the webhook belongs to. */ readonly organizationId: pulumi.Output; /** * The ID of the project the webhook is associated with. */ readonly projectId: pulumi.Output; /** * . The region in which the webhook should be created. */ readonly region: pulumi.Output; /** * The Amazon Resource Name (ARN) of the SNS topic. */ readonly snsArn: pulumi.Output; /** * The date and time of the webhook's last update (RFC 3339 format). */ readonly updatedAt: pulumi.Output; /** * Create a TemWebhook 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: TemWebhookArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TemWebhook resources. */ export interface TemWebhookState { /** * The date and time of the webhook's creation (RFC 3339 format). */ createdAt?: pulumi.Input; /** * The ID of the domain the webhook is associated with. */ domainId?: pulumi.Input; /** * A list of event types that trigger the webhook. */ eventTypes?: pulumi.Input[]>; /** * The name of the webhook. Defaults to an autogenerated name if not provided. */ name?: pulumi.Input; /** * The ID of the organization the webhook belongs to. */ organizationId?: pulumi.Input; /** * The ID of the project the webhook is associated with. */ projectId?: pulumi.Input; /** * . The region in which the webhook should be created. */ region?: pulumi.Input; /** * The Amazon Resource Name (ARN) of the SNS topic. */ snsArn?: pulumi.Input; /** * The date and time of the webhook's last update (RFC 3339 format). */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a TemWebhook resource. */ export interface TemWebhookArgs { /** * The ID of the domain the webhook is associated with. */ domainId: pulumi.Input; /** * A list of event types that trigger the webhook. */ eventTypes: pulumi.Input[]>; /** * The name of the webhook. Defaults to an autogenerated name if not provided. */ name?: pulumi.Input; /** * The ID of the project the webhook is associated with. */ projectId?: pulumi.Input; /** * . The region in which the webhook should be created. */ region?: pulumi.Input; /** * The Amazon Resource Name (ARN) of the SNS topic. */ snsArn: pulumi.Input; }