scaleway.tem.Webhook
Explore with Pulumi AI
Creates and manages Scaleway Transactional Email Webhooks. 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.tem.Webhook("main", {
    domainId: "your-domain-id",
    eventTypes: [
        "email_delivered",
        "email_bounced",
    ],
    snsArn: "arn:scw:sns:fr-par:project-xxxx:your-sns-topic",
    name: "example-webhook",
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.tem.Webhook("main",
    domain_id="your-domain-id",
    event_types=[
        "email_delivered",
        "email_bounced",
    ],
    sns_arn="arn:scw:sns:fr-par:project-xxxx:your-sns-topic",
    name="example-webhook")
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 {
		_, err := tem.NewWebhook(ctx, "main", &tem.WebhookArgs{
			DomainId: pulumi.String("your-domain-id"),
			EventTypes: pulumi.StringArray{
				pulumi.String("email_delivered"),
				pulumi.String("email_bounced"),
			},
			SnsArn: pulumi.String("arn:scw:sns:fr-par:project-xxxx:your-sns-topic"),
			Name:   pulumi.String("example-webhook"),
		})
		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.Tem.Webhook("main", new()
    {
        DomainId = "your-domain-id",
        EventTypes = new[]
        {
            "email_delivered",
            "email_bounced",
        },
        SnsArn = "arn:scw:sns:fr-par:project-xxxx:your-sns-topic",
        Name = "example-webhook",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.tem.Webhook;
import com.pulumi.scaleway.tem.WebhookArgs;
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 Webhook("main", WebhookArgs.builder()
            .domainId("your-domain-id")
            .eventTypes(            
                "email_delivered",
                "email_bounced")
            .snsArn("arn:scw:sns:fr-par:project-xxxx:your-sns-topic")
            .name("example-webhook")
            .build());
    }
}
resources:
  main:
    type: scaleway:tem:Webhook
    properties:
      domainId: your-domain-id
      eventTypes:
        - email_delivered
        - email_bounced
      snsArn: arn:scw:sns:fr-par:project-xxxx:your-sns-topic
      name: example-webhook
Complete Example with Dependencies
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const config = new pulumi.Config();
const domainName = config.require("domainName");
const sns = new scaleway.mnq.Sns("sns", {});
const snsCredentials = new scaleway.mnq.SnsCredentials("sns_credentials", {permissions: {
    canManage: true,
}});
const snsTopic = new scaleway.mnq.SnsTopic("sns_topic", {
    name: "test-mnq-sns-topic-basic",
    accessKey: snsCredentials.accessKey,
    secretKey: snsCredentials.secretKey,
});
const cr01 = new scaleway.tem.Domain("cr01", {
    name: domainName,
    acceptTos: true,
});
const spf = new scaleway.domain.Record("spf", {
    dnsZone: domainName,
    type: "TXT",
    data: pulumi.interpolate`v=spf1 ${cr01.spfConfig} -all`,
});
const dkim = new scaleway.domain.Record("dkim", {
    dnsZone: domainName,
    name: pulumi.interpolate`${cr01.projectId}._domainkey`,
    type: "TXT",
    data: cr01.dkimConfig,
});
const mx = new scaleway.domain.Record("mx", {
    dnsZone: domainName,
    type: "MX",
    data: ".",
});
const dmarc = new scaleway.domain.Record("dmarc", {
    dnsZone: domainName,
    name: cr01.dmarcName,
    type: "TXT",
    data: cr01.dmarcConfig,
});
const valid = new scaleway.tem.DomainValidation("valid", {
    domainId: cr01.id,
    region: cr01.region,
    timeout: 3600,
});
const webhook = new scaleway.tem.Webhook("webhook", {
    name: "example-webhook",
    domainId: cr01.id,
    eventTypes: [
        "email_delivered",
        "email_bounced",
    ],
    snsArn: snsTopic.arn,
}, {
    dependsOn: [
        valid,
        snsTopic,
    ],
});
import pulumi
import pulumiverse_scaleway as scaleway
config = pulumi.Config()
domain_name = config.require("domainName")
sns = scaleway.mnq.Sns("sns")
sns_credentials = scaleway.mnq.SnsCredentials("sns_credentials", permissions={
    "can_manage": True,
})
sns_topic = scaleway.mnq.SnsTopic("sns_topic",
    name="test-mnq-sns-topic-basic",
    access_key=sns_credentials.access_key,
    secret_key=sns_credentials.secret_key)
cr01 = scaleway.tem.Domain("cr01",
    name=domain_name,
    accept_tos=True)
spf = scaleway.domain.Record("spf",
    dns_zone=domain_name,
    type="TXT",
    data=cr01.spf_config.apply(lambda spf_config: f"v=spf1 {spf_config} -all"))
dkim = scaleway.domain.Record("dkim",
    dns_zone=domain_name,
    name=cr01.project_id.apply(lambda project_id: f"{project_id}._domainkey"),
    type="TXT",
    data=cr01.dkim_config)
mx = scaleway.domain.Record("mx",
    dns_zone=domain_name,
    type="MX",
    data=".")
dmarc = scaleway.domain.Record("dmarc",
    dns_zone=domain_name,
    name=cr01.dmarc_name,
    type="TXT",
    data=cr01.dmarc_config)
valid = scaleway.tem.DomainValidation("valid",
    domain_id=cr01.id,
    region=cr01.region,
    timeout=3600)
webhook = scaleway.tem.Webhook("webhook",
    name="example-webhook",
    domain_id=cr01.id,
    event_types=[
        "email_delivered",
        "email_bounced",
    ],
    sns_arn=sns_topic.arn,
    opts = pulumi.ResourceOptions(depends_on=[
            valid,
            sns_topic,
        ]))
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/domain"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/mnq"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/tem"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		domainName := cfg.Require("domainName")
		_, err := mnq.NewSns(ctx, "sns", nil)
		if err != nil {
			return err
		}
		snsCredentials, err := mnq.NewSnsCredentials(ctx, "sns_credentials", &mnq.SnsCredentialsArgs{
			Permissions: &mnq.SnsCredentialsPermissionsArgs{
				CanManage: pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		snsTopic, err := mnq.NewSnsTopic(ctx, "sns_topic", &mnq.SnsTopicArgs{
			Name:      pulumi.String("test-mnq-sns-topic-basic"),
			AccessKey: snsCredentials.AccessKey,
			SecretKey: snsCredentials.SecretKey,
		})
		if err != nil {
			return err
		}
		cr01, err := tem.NewDomain(ctx, "cr01", &tem.DomainArgs{
			Name:      pulumi.String(domainName),
			AcceptTos: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = domain.NewRecord(ctx, "spf", &domain.RecordArgs{
			DnsZone: pulumi.String(domainName),
			Type:    pulumi.String("TXT"),
			Data: cr01.SpfConfig.ApplyT(func(spfConfig string) (string, error) {
				return fmt.Sprintf("v=spf1 %v -all", spfConfig), nil
			}).(pulumi.StringOutput),
		})
		if err != nil {
			return err
		}
		_, err = domain.NewRecord(ctx, "dkim", &domain.RecordArgs{
			DnsZone: pulumi.String(domainName),
			Name: cr01.ProjectId.ApplyT(func(projectId string) (string, error) {
				return fmt.Sprintf("%v._domainkey", projectId), nil
			}).(pulumi.StringOutput),
			Type: pulumi.String("TXT"),
			Data: cr01.DkimConfig,
		})
		if err != nil {
			return err
		}
		_, err = domain.NewRecord(ctx, "mx", &domain.RecordArgs{
			DnsZone: pulumi.String(domainName),
			Type:    pulumi.String("MX"),
			Data:    pulumi.String("."),
		})
		if err != nil {
			return err
		}
		_, err = domain.NewRecord(ctx, "dmarc", &domain.RecordArgs{
			DnsZone: pulumi.String(domainName),
			Name:    cr01.DmarcName,
			Type:    pulumi.String("TXT"),
			Data:    cr01.DmarcConfig,
		})
		if err != nil {
			return err
		}
		valid, err := tem.NewDomainValidation(ctx, "valid", &tem.DomainValidationArgs{
			DomainId: cr01.ID(),
			Region:   cr01.Region,
			Timeout:  pulumi.Int(3600),
		})
		if err != nil {
			return err
		}
		_, err = tem.NewWebhook(ctx, "webhook", &tem.WebhookArgs{
			Name:     pulumi.String("example-webhook"),
			DomainId: cr01.ID(),
			EventTypes: pulumi.StringArray{
				pulumi.String("email_delivered"),
				pulumi.String("email_bounced"),
			},
			SnsArn: snsTopic.Arn,
		}, pulumi.DependsOn([]pulumi.Resource{
			valid,
			snsTopic,
		}))
		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 sns = new Scaleway.Mnq.Sns("sns");
    var snsCredentials = new Scaleway.Mnq.SnsCredentials("sns_credentials", new()
    {
        Permissions = new Scaleway.Mnq.Inputs.SnsCredentialsPermissionsArgs
        {
            CanManage = true,
        },
    });
    var snsTopic = new Scaleway.Mnq.SnsTopic("sns_topic", new()
    {
        Name = "test-mnq-sns-topic-basic",
        AccessKey = snsCredentials.AccessKey,
        SecretKey = snsCredentials.SecretKey,
    });
    var cr01 = new Scaleway.Tem.Domain("cr01", new()
    {
        Name = domainName,
        AcceptTos = true,
    });
    var spf = new Scaleway.Domain.Record("spf", new()
    {
        DnsZone = domainName,
        Type = "TXT",
        Data = cr01.SpfConfig.Apply(spfConfig => $"v=spf1 {spfConfig} -all"),
    });
    var dkim = new Scaleway.Domain.Record("dkim", new()
    {
        DnsZone = domainName,
        Name = cr01.ProjectId.Apply(projectId => $"{projectId}._domainkey"),
        Type = "TXT",
        Data = cr01.DkimConfig,
    });
    var mx = new Scaleway.Domain.Record("mx", new()
    {
        DnsZone = domainName,
        Type = "MX",
        Data = ".",
    });
    var dmarc = new Scaleway.Domain.Record("dmarc", new()
    {
        DnsZone = domainName,
        Name = cr01.DmarcName,
        Type = "TXT",
        Data = cr01.DmarcConfig,
    });
    var valid = new Scaleway.Tem.DomainValidation("valid", new()
    {
        DomainId = cr01.Id,
        Region = cr01.Region,
        Timeout = 3600,
    });
    var webhook = new Scaleway.Tem.Webhook("webhook", new()
    {
        Name = "example-webhook",
        DomainId = cr01.Id,
        EventTypes = new[]
        {
            "email_delivered",
            "email_bounced",
        },
        SnsArn = snsTopic.Arn,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            valid,
            snsTopic,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.mnq.Sns;
import com.pulumi.scaleway.mnq.SnsCredentials;
import com.pulumi.scaleway.mnq.SnsCredentialsArgs;
import com.pulumi.scaleway.mnq.inputs.SnsCredentialsPermissionsArgs;
import com.pulumi.scaleway.mnq.SnsTopic;
import com.pulumi.scaleway.mnq.SnsTopicArgs;
import com.pulumi.scaleway.tem.Domain;
import com.pulumi.scaleway.tem.DomainArgs;
import com.pulumi.scaleway.domain.Record;
import com.pulumi.scaleway.domain.RecordArgs;
import com.pulumi.scaleway.tem.DomainValidation;
import com.pulumi.scaleway.tem.DomainValidationArgs;
import com.pulumi.scaleway.tem.Webhook;
import com.pulumi.scaleway.tem.WebhookArgs;
import com.pulumi.resources.CustomResourceOptions;
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 sns = new Sns("sns");
        var snsCredentials = new SnsCredentials("snsCredentials", SnsCredentialsArgs.builder()
            .permissions(SnsCredentialsPermissionsArgs.builder()
                .canManage(true)
                .build())
            .build());
        var snsTopic = new SnsTopic("snsTopic", SnsTopicArgs.builder()
            .name("test-mnq-sns-topic-basic")
            .accessKey(snsCredentials.accessKey())
            .secretKey(snsCredentials.secretKey())
            .build());
        var cr01 = new Domain("cr01", DomainArgs.builder()
            .name(domainName)
            .acceptTos(true)
            .build());
        var spf = new Record("spf", RecordArgs.builder()
            .dnsZone(domainName)
            .type("TXT")
            .data(cr01.spfConfig().applyValue(spfConfig -> String.format("v=spf1 %s -all", spfConfig)))
            .build());
        var dkim = new Record("dkim", RecordArgs.builder()
            .dnsZone(domainName)
            .name(cr01.projectId().applyValue(projectId -> String.format("%s._domainkey", projectId)))
            .type("TXT")
            .data(cr01.dkimConfig())
            .build());
        var mx = new Record("mx", RecordArgs.builder()
            .dnsZone(domainName)
            .type("MX")
            .data(".")
            .build());
        var dmarc = new Record("dmarc", RecordArgs.builder()
            .dnsZone(domainName)
            .name(cr01.dmarcName())
            .type("TXT")
            .data(cr01.dmarcConfig())
            .build());
        var valid = new DomainValidation("valid", DomainValidationArgs.builder()
            .domainId(cr01.id())
            .region(cr01.region())
            .timeout(3600)
            .build());
        var webhook = new Webhook("webhook", WebhookArgs.builder()
            .name("example-webhook")
            .domainId(cr01.id())
            .eventTypes(            
                "email_delivered",
                "email_bounced")
            .snsArn(snsTopic.arn())
            .build(), CustomResourceOptions.builder()
                .dependsOn(                
                    valid,
                    snsTopic)
                .build());
    }
}
configuration:
  domainName:
    type: string
resources:
  sns:
    type: scaleway:mnq:Sns
  snsCredentials:
    type: scaleway:mnq:SnsCredentials
    name: sns_credentials
    properties:
      permissions:
        canManage: true
  snsTopic:
    type: scaleway:mnq:SnsTopic
    name: sns_topic
    properties:
      name: test-mnq-sns-topic-basic
      accessKey: ${snsCredentials.accessKey}
      secretKey: ${snsCredentials.secretKey}
  cr01:
    type: scaleway:tem:Domain
    properties:
      name: ${domainName}
      acceptTos: true
  spf:
    type: scaleway:domain:Record
    properties:
      dnsZone: ${domainName}
      type: TXT
      data: v=spf1 ${cr01.spfConfig} -all
  dkim:
    type: scaleway:domain:Record
    properties:
      dnsZone: ${domainName}
      name: ${cr01.projectId}._domainkey
      type: TXT
      data: ${cr01.dkimConfig}
  mx:
    type: scaleway:domain:Record
    properties:
      dnsZone: ${domainName}
      type: MX
      data: .
  dmarc:
    type: scaleway:domain:Record
    properties:
      dnsZone: ${domainName}
      name: ${cr01.dmarcName}
      type: TXT
      data: ${cr01.dmarcConfig}
  valid:
    type: scaleway:tem:DomainValidation
    properties:
      domainId: ${cr01.id}
      region: ${cr01.region}
      timeout: 3600
  webhook:
    type: scaleway:tem:Webhook
    properties:
      name: example-webhook
      domainId: ${cr01.id}
      eventTypes:
        - email_delivered
        - email_bounced
      snsArn: ${snsTopic.arn}
    options:
      dependsOn:
        - ${valid}
        - ${snsTopic}
Create Webhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Webhook(name: string, args: WebhookArgs, opts?: CustomResourceOptions);@overload
def Webhook(resource_name: str,
            args: WebhookArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Webhook(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            domain_id: Optional[str] = None,
            event_types: Optional[Sequence[str]] = None,
            sns_arn: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None)func NewWebhook(ctx *Context, name string, args WebhookArgs, opts ...ResourceOption) (*Webhook, error)public Webhook(string name, WebhookArgs args, CustomResourceOptions? opts = null)
public Webhook(String name, WebhookArgs args)
public Webhook(String name, WebhookArgs args, CustomResourceOptions options)
type: scaleway:tem:Webhook
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 WebhookArgs
- 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 WebhookArgs
- 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 WebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebhookArgs
- 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 webhookResource = new Scaleway.Tem.Webhook("webhookResource", new()
{
    DomainId = "string",
    EventTypes = new[]
    {
        "string",
    },
    SnsArn = "string",
    Name = "string",
    ProjectId = "string",
    Region = "string",
});
example, err := tem.NewWebhook(ctx, "webhookResource", &tem.WebhookArgs{
	DomainId: pulumi.String("string"),
	EventTypes: pulumi.StringArray{
		pulumi.String("string"),
	},
	SnsArn:    pulumi.String("string"),
	Name:      pulumi.String("string"),
	ProjectId: pulumi.String("string"),
	Region:    pulumi.String("string"),
})
var webhookResource = new Webhook("webhookResource", WebhookArgs.builder()
    .domainId("string")
    .eventTypes("string")
    .snsArn("string")
    .name("string")
    .projectId("string")
    .region("string")
    .build());
webhook_resource = scaleway.tem.Webhook("webhookResource",
    domain_id="string",
    event_types=["string"],
    sns_arn="string",
    name="string",
    project_id="string",
    region="string")
const webhookResource = new scaleway.tem.Webhook("webhookResource", {
    domainId: "string",
    eventTypes: ["string"],
    snsArn: "string",
    name: "string",
    projectId: "string",
    region: "string",
});
type: scaleway:tem:Webhook
properties:
    domainId: string
    eventTypes:
        - string
    name: string
    projectId: string
    region: string
    snsArn: string
Webhook 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 Webhook resource accepts the following input properties:
- DomainId string
- The ID of the domain the webhook is associated with.
- EventTypes List<string>
- A list of event types that trigger the webhook.
- SnsArn string
- The Amazon Resource Name (ARN) of the SNS topic.
- Name string
- The name of the webhook. Defaults to an autogenerated name if not provided.
- ProjectId string
- The ID of the project the webhook is associated with.
- Region string
- . The region in which the webhook should be created.
- DomainId string
- The ID of the domain the webhook is associated with.
- EventTypes []string
- A list of event types that trigger the webhook.
- SnsArn string
- The Amazon Resource Name (ARN) of the SNS topic.
- Name string
- The name of the webhook. Defaults to an autogenerated name if not provided.
- ProjectId string
- The ID of the project the webhook is associated with.
- Region string
- . The region in which the webhook should be created.
- domainId String
- The ID of the domain the webhook is associated with.
- eventTypes List<String>
- A list of event types that trigger the webhook.
- snsArn String
- The Amazon Resource Name (ARN) of the SNS topic.
- name String
- The name of the webhook. Defaults to an autogenerated name if not provided.
- projectId String
- The ID of the project the webhook is associated with.
- region String
- . The region in which the webhook should be created.
- domainId string
- The ID of the domain the webhook is associated with.
- eventTypes string[]
- A list of event types that trigger the webhook.
- snsArn string
- The Amazon Resource Name (ARN) of the SNS topic.
- name string
- The name of the webhook. Defaults to an autogenerated name if not provided.
- projectId string
- The ID of the project the webhook is associated with.
- region string
- . The region in which the webhook should be created.
- domain_id str
- The ID of the domain the webhook is associated with.
- event_types Sequence[str]
- A list of event types that trigger the webhook.
- sns_arn str
- The Amazon Resource Name (ARN) of the SNS topic.
- name str
- The name of the webhook. Defaults to an autogenerated name if not provided.
- project_id str
- The ID of the project the webhook is associated with.
- region str
- . The region in which the webhook should be created.
- domainId String
- The ID of the domain the webhook is associated with.
- eventTypes List<String>
- A list of event types that trigger the webhook.
- snsArn String
- The Amazon Resource Name (ARN) of the SNS topic.
- name String
- The name of the webhook. Defaults to an autogenerated name if not provided.
- projectId String
- The ID of the project the webhook is associated with.
- region String
- . The region in which the webhook should be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the Webhook resource produces the following output properties:
- CreatedAt string
- The date and time of the webhook's creation (RFC 3339 format).
- Id string
- The provider-assigned unique ID for this managed resource.
- OrganizationId string
- The ID of the organization the webhook belongs to.
- UpdatedAt string
- The date and time of the webhook's last update (RFC 3339 format).
- CreatedAt string
- The date and time of the webhook's creation (RFC 3339 format).
- Id string
- The provider-assigned unique ID for this managed resource.
- OrganizationId string
- The ID of the organization the webhook belongs to.
- UpdatedAt string
- The date and time of the webhook's last update (RFC 3339 format).
- createdAt String
- The date and time of the webhook's creation (RFC 3339 format).
- id String
- The provider-assigned unique ID for this managed resource.
- organizationId String
- The ID of the organization the webhook belongs to.
- updatedAt String
- The date and time of the webhook's last update (RFC 3339 format).
- createdAt string
- The date and time of the webhook's creation (RFC 3339 format).
- id string
- The provider-assigned unique ID for this managed resource.
- organizationId string
- The ID of the organization the webhook belongs to.
- updatedAt string
- The date and time of the webhook's last update (RFC 3339 format).
- created_at str
- The date and time of the webhook's creation (RFC 3339 format).
- id str
- The provider-assigned unique ID for this managed resource.
- organization_id str
- The ID of the organization the webhook belongs to.
- updated_at str
- The date and time of the webhook's last update (RFC 3339 format).
- createdAt String
- The date and time of the webhook's creation (RFC 3339 format).
- id String
- The provider-assigned unique ID for this managed resource.
- organizationId String
- The ID of the organization the webhook belongs to.
- updatedAt String
- The date and time of the webhook's last update (RFC 3339 format).
Look up Existing Webhook Resource
Get an existing Webhook 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?: WebhookState, opts?: CustomResourceOptions): Webhook@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        domain_id: Optional[str] = None,
        event_types: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        organization_id: Optional[str] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None,
        sns_arn: Optional[str] = None,
        updated_at: Optional[str] = None) -> Webhookfunc GetWebhook(ctx *Context, name string, id IDInput, state *WebhookState, opts ...ResourceOption) (*Webhook, error)public static Webhook Get(string name, Input<string> id, WebhookState? state, CustomResourceOptions? opts = null)public static Webhook get(String name, Output<String> id, WebhookState state, CustomResourceOptions options)resources:  _:    type: scaleway:tem:Webhook    get:      id: ${id}- 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.
- CreatedAt string
- The date and time of the webhook's creation (RFC 3339 format).
- DomainId string
- The ID of the domain the webhook is associated with.
- EventTypes List<string>
- A list of event types that trigger the webhook.
- Name string
- The name of the webhook. Defaults to an autogenerated name if not provided.
- OrganizationId string
- The ID of the organization the webhook belongs to.
- ProjectId string
- The ID of the project the webhook is associated with.
- Region string
- . The region in which the webhook should be created.
- SnsArn string
- The Amazon Resource Name (ARN) of the SNS topic.
- UpdatedAt string
- The date and time of the webhook's last update (RFC 3339 format).
- CreatedAt string
- The date and time of the webhook's creation (RFC 3339 format).
- DomainId string
- The ID of the domain the webhook is associated with.
- EventTypes []string
- A list of event types that trigger the webhook.
- Name string
- The name of the webhook. Defaults to an autogenerated name if not provided.
- OrganizationId string
- The ID of the organization the webhook belongs to.
- ProjectId string
- The ID of the project the webhook is associated with.
- Region string
- . The region in which the webhook should be created.
- SnsArn string
- The Amazon Resource Name (ARN) of the SNS topic.
- UpdatedAt string
- The date and time of the webhook's last update (RFC 3339 format).
- createdAt String
- The date and time of the webhook's creation (RFC 3339 format).
- domainId String
- The ID of the domain the webhook is associated with.
- eventTypes List<String>
- A list of event types that trigger the webhook.
- name String
- The name of the webhook. Defaults to an autogenerated name if not provided.
- organizationId String
- The ID of the organization the webhook belongs to.
- projectId String
- The ID of the project the webhook is associated with.
- region String
- . The region in which the webhook should be created.
- snsArn String
- The Amazon Resource Name (ARN) of the SNS topic.
- updatedAt String
- The date and time of the webhook's last update (RFC 3339 format).
- createdAt string
- The date and time of the webhook's creation (RFC 3339 format).
- domainId string
- The ID of the domain the webhook is associated with.
- eventTypes string[]
- A list of event types that trigger the webhook.
- name string
- The name of the webhook. Defaults to an autogenerated name if not provided.
- organizationId string
- The ID of the organization the webhook belongs to.
- projectId string
- The ID of the project the webhook is associated with.
- region string
- . The region in which the webhook should be created.
- snsArn string
- The Amazon Resource Name (ARN) of the SNS topic.
- updatedAt string
- The date and time of the webhook's last update (RFC 3339 format).
- created_at str
- The date and time of the webhook's creation (RFC 3339 format).
- domain_id str
- The ID of the domain the webhook is associated with.
- event_types Sequence[str]
- A list of event types that trigger the webhook.
- name str
- The name of the webhook. Defaults to an autogenerated name if not provided.
- organization_id str
- The ID of the organization the webhook belongs to.
- project_id str
- The ID of the project the webhook is associated with.
- region str
- . The region in which the webhook should be created.
- sns_arn str
- The Amazon Resource Name (ARN) of the SNS topic.
- updated_at str
- The date and time of the webhook's last update (RFC 3339 format).
- createdAt String
- The date and time of the webhook's creation (RFC 3339 format).
- domainId String
- The ID of the domain the webhook is associated with.
- eventTypes List<String>
- A list of event types that trigger the webhook.
- name String
- The name of the webhook. Defaults to an autogenerated name if not provided.
- organizationId String
- The ID of the organization the webhook belongs to.
- projectId String
- The ID of the project the webhook is associated with.
- region String
- . The region in which the webhook should be created.
- snsArn String
- The Amazon Resource Name (ARN) of the SNS topic.
- updatedAt String
- The date and time of the webhook's last update (RFC 3339 format).
Import
Webhooks can be imported using the {region}/{id}, e.g.
bash
$ pulumi import scaleway:tem/webhook:Webhook 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 scalewayTerraform Provider.
