published on Thursday, May 14, 2026 by pulumiverse
published on Thursday, May 14, 2026 by pulumiverse
The scaleway.containers.Trigger resource allows you to create and manage triggers for Scaleway Serverless Containers.
Refer to the Containers triggers documentation and API documentation for more information.
Example Usage
SQS
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.containers.Trigger("main", {
containerId: mainScalewayContainer.id,
name: "my-sqs-trigger",
destinationConfig: {
httpPath: "/",
httpMethod: "get",
},
sqs: {
endpoint: mainScalewayMnqSqsQueue.sqsEndpoint,
queueUrl: mainScalewayMnqSqsQueue.url,
accessKey: mainScalewayMnqSqsCredentials.accessKey,
secretKey: mainScalewayMnqSqsCredentials.secretKey,
region: mainScalewayMnqSqs.region,
},
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.containers.Trigger("main",
container_id=main_scaleway_container["id"],
name="my-sqs-trigger",
destination_config={
"http_path": "/",
"http_method": "get",
},
sqs={
"endpoint": main_scaleway_mnq_sqs_queue["sqsEndpoint"],
"queue_url": main_scaleway_mnq_sqs_queue["url"],
"access_key": main_scaleway_mnq_sqs_credentials["accessKey"],
"secret_key": main_scaleway_mnq_sqs_credentials["secretKey"],
"region": main_scaleway_mnq_sqs["region"],
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/containers"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containers.NewTrigger(ctx, "main", &containers.TriggerArgs{
ContainerId: pulumi.Any(mainScalewayContainer.Id),
Name: pulumi.String("my-sqs-trigger"),
DestinationConfig: &containers.TriggerDestinationConfigArgs{
HttpPath: pulumi.String("/"),
HttpMethod: pulumi.String("get"),
},
Sqs: &containers.TriggerSqsArgs{
Endpoint: pulumi.Any(mainScalewayMnqSqsQueue.SqsEndpoint),
QueueUrl: pulumi.Any(mainScalewayMnqSqsQueue.Url),
AccessKey: pulumi.Any(mainScalewayMnqSqsCredentials.AccessKey),
SecretKey: pulumi.Any(mainScalewayMnqSqsCredentials.SecretKey),
Region: pulumi.Any(mainScalewayMnqSqs.Region),
},
})
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.Containers.Trigger("main", new()
{
ContainerId = mainScalewayContainer.Id,
Name = "my-sqs-trigger",
DestinationConfig = new Scaleway.Containers.Inputs.TriggerDestinationConfigArgs
{
HttpPath = "/",
HttpMethod = "get",
},
Sqs = new Scaleway.Containers.Inputs.TriggerSqsArgs
{
Endpoint = mainScalewayMnqSqsQueue.SqsEndpoint,
QueueUrl = mainScalewayMnqSqsQueue.Url,
AccessKey = mainScalewayMnqSqsCredentials.AccessKey,
SecretKey = mainScalewayMnqSqsCredentials.SecretKey,
Region = mainScalewayMnqSqs.Region,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.containers.Trigger;
import com.pulumi.scaleway.containers.TriggerArgs;
import com.pulumi.scaleway.containers.inputs.TriggerDestinationConfigArgs;
import com.pulumi.scaleway.containers.inputs.TriggerSqsArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 Trigger("main", TriggerArgs.builder()
.containerId(mainScalewayContainer.id())
.name("my-sqs-trigger")
.destinationConfig(TriggerDestinationConfigArgs.builder()
.httpPath("/")
.httpMethod("get")
.build())
.sqs(TriggerSqsArgs.builder()
.endpoint(mainScalewayMnqSqsQueue.sqsEndpoint())
.queueUrl(mainScalewayMnqSqsQueue.url())
.accessKey(mainScalewayMnqSqsCredentials.accessKey())
.secretKey(mainScalewayMnqSqsCredentials.secretKey())
.region(mainScalewayMnqSqs.region())
.build())
.build());
}
}
resources:
main:
type: scaleway:containers:Trigger
properties:
containerId: ${mainScalewayContainer.id}
name: my-sqs-trigger
destinationConfig:
httpPath: /
httpMethod: get
sqs:
endpoint: ${mainScalewayMnqSqsQueue.sqsEndpoint}
queueUrl: ${mainScalewayMnqSqsQueue.url}
accessKey: ${mainScalewayMnqSqsCredentials.accessKey}
secretKey: ${mainScalewayMnqSqsCredentials.secretKey}
region: ${mainScalewayMnqSqs.region}
Example coming soon!
NATS
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.containers.Trigger("main", {
containerId: mainScalewayContainer.id,
name: "my-nats-trigger",
destinationConfig: {
httpPath: "/ping",
httpMethod: "get",
},
nats: {
subject: "TestSubject",
serverUrls: [mainScalewayMnqNatsAccount.endpoint],
credentialsFileContent: mainScalewayMnqNatsCredentials.file,
region: mainScalewayMnqNatsAccount.region,
},
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.containers.Trigger("main",
container_id=main_scaleway_container["id"],
name="my-nats-trigger",
destination_config={
"http_path": "/ping",
"http_method": "get",
},
nats={
"subject": "TestSubject",
"server_urls": [main_scaleway_mnq_nats_account["endpoint"]],
"credentials_file_content": main_scaleway_mnq_nats_credentials["file"],
"region": main_scaleway_mnq_nats_account["region"],
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/containers"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containers.NewTrigger(ctx, "main", &containers.TriggerArgs{
ContainerId: pulumi.Any(mainScalewayContainer.Id),
Name: pulumi.String("my-nats-trigger"),
DestinationConfig: &containers.TriggerDestinationConfigArgs{
HttpPath: pulumi.String("/ping"),
HttpMethod: pulumi.String("get"),
},
Nats: &containers.TriggerNatsArgs{
Subject: pulumi.String("TestSubject"),
ServerUrls: pulumi.StringArray{
mainScalewayMnqNatsAccount.Endpoint,
},
CredentialsFileContent: pulumi.Any(mainScalewayMnqNatsCredentials.File),
Region: pulumi.Any(mainScalewayMnqNatsAccount.Region),
},
})
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.Containers.Trigger("main", new()
{
ContainerId = mainScalewayContainer.Id,
Name = "my-nats-trigger",
DestinationConfig = new Scaleway.Containers.Inputs.TriggerDestinationConfigArgs
{
HttpPath = "/ping",
HttpMethod = "get",
},
Nats = new Scaleway.Containers.Inputs.TriggerNatsArgs
{
Subject = "TestSubject",
ServerUrls = new[]
{
mainScalewayMnqNatsAccount.Endpoint,
},
CredentialsFileContent = mainScalewayMnqNatsCredentials.File,
Region = mainScalewayMnqNatsAccount.Region,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.containers.Trigger;
import com.pulumi.scaleway.containers.TriggerArgs;
import com.pulumi.scaleway.containers.inputs.TriggerDestinationConfigArgs;
import com.pulumi.scaleway.containers.inputs.TriggerNatsArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 Trigger("main", TriggerArgs.builder()
.containerId(mainScalewayContainer.id())
.name("my-nats-trigger")
.destinationConfig(TriggerDestinationConfigArgs.builder()
.httpPath("/ping")
.httpMethod("get")
.build())
.nats(TriggerNatsArgs.builder()
.subject("TestSubject")
.serverUrls(mainScalewayMnqNatsAccount.endpoint())
.credentialsFileContent(mainScalewayMnqNatsCredentials.file())
.region(mainScalewayMnqNatsAccount.region())
.build())
.build());
}
}
resources:
main:
type: scaleway:containers:Trigger
properties:
containerId: ${mainScalewayContainer.id}
name: my-nats-trigger
destinationConfig:
httpPath: /ping
httpMethod: get
nats:
subject: TestSubject
serverUrls:
- ${mainScalewayMnqNatsAccount.endpoint}
credentialsFileContent: ${mainScalewayMnqNatsCredentials.file}
region: ${mainScalewayMnqNatsAccount.region}
Example coming soon!
Cron
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.containers.Trigger("main", {
containerId: mainScalewayContainer.id,
name: "my-cron-trigger",
destinationConfig: {
httpPath: "/patch/here",
httpMethod: "patch",
},
cron: {
schedule: "5 4 1 * *",
timezone: "Europe/Paris",
body: "{\"message\": \"This is the content to send to the container.\"}",
headers: {
"Content-Length": "45",
"Content-Type": "application/json",
},
},
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.containers.Trigger("main",
container_id=main_scaleway_container["id"],
name="my-cron-trigger",
destination_config={
"http_path": "/patch/here",
"http_method": "patch",
},
cron={
"schedule": "5 4 1 * *",
"timezone": "Europe/Paris",
"body": "{\"message\": \"This is the content to send to the container.\"}",
"headers": {
"Content-Length": "45",
"Content-Type": "application/json",
},
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/containers"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containers.NewTrigger(ctx, "main", &containers.TriggerArgs{
ContainerId: pulumi.Any(mainScalewayContainer.Id),
Name: pulumi.String("my-cron-trigger"),
DestinationConfig: &containers.TriggerDestinationConfigArgs{
HttpPath: pulumi.String("/patch/here"),
HttpMethod: pulumi.String("patch"),
},
Cron: &containers.TriggerCronArgs{
Schedule: pulumi.String("5 4 1 * *"),
Timezone: pulumi.String("Europe/Paris"),
Body: pulumi.String("{\"message\": \"This is the content to send to the container.\"}"),
Headers: pulumi.StringMap{
"Content-Length": pulumi.String("45"),
"Content-Type": pulumi.String("application/json"),
},
},
})
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.Containers.Trigger("main", new()
{
ContainerId = mainScalewayContainer.Id,
Name = "my-cron-trigger",
DestinationConfig = new Scaleway.Containers.Inputs.TriggerDestinationConfigArgs
{
HttpPath = "/patch/here",
HttpMethod = "patch",
},
Cron = new Scaleway.Containers.Inputs.TriggerCronArgs
{
Schedule = "5 4 1 * *",
Timezone = "Europe/Paris",
Body = "{\"message\": \"This is the content to send to the container.\"}",
Headers =
{
{ "Content-Length", "45" },
{ "Content-Type", "application/json" },
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.containers.Trigger;
import com.pulumi.scaleway.containers.TriggerArgs;
import com.pulumi.scaleway.containers.inputs.TriggerDestinationConfigArgs;
import com.pulumi.scaleway.containers.inputs.TriggerCronArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 Trigger("main", TriggerArgs.builder()
.containerId(mainScalewayContainer.id())
.name("my-cron-trigger")
.destinationConfig(TriggerDestinationConfigArgs.builder()
.httpPath("/patch/here")
.httpMethod("patch")
.build())
.cron(TriggerCronArgs.builder()
.schedule("5 4 1 * *")
.timezone("Europe/Paris")
.body("{\"message\": \"This is the content to send to the container.\"}")
.headers(Map.ofEntries(
Map.entry("Content-Length", "45"),
Map.entry("Content-Type", "application/json")
))
.build())
.build());
}
}
resources:
main:
type: scaleway:containers:Trigger
properties:
containerId: ${mainScalewayContainer.id}
name: my-cron-trigger
destinationConfig:
httpPath: /patch/here
httpMethod: patch
cron:
schedule: 5 4 1 * *
timezone: Europe/Paris
body: '{"message": "This is the content to send to the container."}'
headers:
Content-Length: 45
Content-Type: application/json
Example coming soon!
Create Trigger Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Trigger(name: string, args: TriggerArgs, opts?: CustomResourceOptions);@overload
def Trigger(resource_name: str,
args: TriggerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Trigger(resource_name: str,
opts: Optional[ResourceOptions] = None,
container_id: Optional[str] = None,
destination_config: Optional[TriggerDestinationConfigArgs] = None,
cron: Optional[TriggerCronArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
nats: Optional[TriggerNatsArgs] = None,
region: Optional[str] = None,
sqs: Optional[TriggerSqsArgs] = None,
tags: Optional[Sequence[str]] = None)func NewTrigger(ctx *Context, name string, args TriggerArgs, opts ...ResourceOption) (*Trigger, error)public Trigger(string name, TriggerArgs args, CustomResourceOptions? opts = null)
public Trigger(String name, TriggerArgs args)
public Trigger(String name, TriggerArgs args, CustomResourceOptions options)
type: scaleway:containers:Trigger
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "scaleway_containers_trigger" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TriggerArgs
- 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 TriggerArgs
- 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 TriggerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TriggerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TriggerArgs
- 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 triggerResource = new Scaleway.Containers.Trigger("triggerResource", new()
{
ContainerId = "string",
DestinationConfig = new Scaleway.Containers.Inputs.TriggerDestinationConfigArgs
{
HttpMethod = "string",
HttpPath = "string",
},
Cron = new Scaleway.Containers.Inputs.TriggerCronArgs
{
Schedule = "string",
Timezone = "string",
Body = "string",
Headers =
{
{ "string", "string" },
},
},
Description = "string",
Name = "string",
Nats = new Scaleway.Containers.Inputs.TriggerNatsArgs
{
CredentialsFileContent = "string",
ServerUrls = new[]
{
"string",
},
Subject = "string",
AccountId = "string",
ProjectId = "string",
Region = "string",
},
Region = "string",
Sqs = new Scaleway.Containers.Inputs.TriggerSqsArgs
{
AccessKey = "string",
Endpoint = "string",
QueueUrl = "string",
SecretKey = "string",
ProjectId = "string",
Region = "string",
},
Tags = new[]
{
"string",
},
});
example, err := containers.NewTrigger(ctx, "triggerResource", &containers.TriggerArgs{
ContainerId: pulumi.String("string"),
DestinationConfig: &containers.TriggerDestinationConfigArgs{
HttpMethod: pulumi.String("string"),
HttpPath: pulumi.String("string"),
},
Cron: &containers.TriggerCronArgs{
Schedule: pulumi.String("string"),
Timezone: pulumi.String("string"),
Body: pulumi.String("string"),
Headers: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Nats: &containers.TriggerNatsArgs{
CredentialsFileContent: pulumi.String("string"),
ServerUrls: pulumi.StringArray{
pulumi.String("string"),
},
Subject: pulumi.String("string"),
AccountId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
},
Region: pulumi.String("string"),
Sqs: &containers.TriggerSqsArgs{
AccessKey: pulumi.String("string"),
Endpoint: pulumi.String("string"),
QueueUrl: pulumi.String("string"),
SecretKey: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "scaleway_containers_trigger" "triggerResource" {
container_id = "string"
destination_config = {
http_method = "string"
http_path = "string"
}
cron = {
schedule = "string"
timezone = "string"
body = "string"
headers = {
"string" = "string"
}
}
description = "string"
name = "string"
nats = {
credentials_file_content = "string"
server_urls = ["string"]
subject = "string"
account_id = "string"
project_id = "string"
region = "string"
}
region = "string"
sqs = {
access_key = "string"
endpoint = "string"
queue_url = "string"
secret_key = "string"
project_id = "string"
region = "string"
}
tags = ["string"]
}
var triggerResource = new com.pulumi.scaleway.containers.Trigger("triggerResource", com.pulumi.scaleway.containers.TriggerArgs.builder()
.containerId("string")
.destinationConfig(TriggerDestinationConfigArgs.builder()
.httpMethod("string")
.httpPath("string")
.build())
.cron(TriggerCronArgs.builder()
.schedule("string")
.timezone("string")
.body("string")
.headers(Map.of("string", "string"))
.build())
.description("string")
.name("string")
.nats(TriggerNatsArgs.builder()
.credentialsFileContent("string")
.serverUrls("string")
.subject("string")
.accountId("string")
.projectId("string")
.region("string")
.build())
.region("string")
.sqs(TriggerSqsArgs.builder()
.accessKey("string")
.endpoint("string")
.queueUrl("string")
.secretKey("string")
.projectId("string")
.region("string")
.build())
.tags("string")
.build());
trigger_resource = scaleway.containers.Trigger("triggerResource",
container_id="string",
destination_config={
"http_method": "string",
"http_path": "string",
},
cron={
"schedule": "string",
"timezone": "string",
"body": "string",
"headers": {
"string": "string",
},
},
description="string",
name="string",
nats={
"credentials_file_content": "string",
"server_urls": ["string"],
"subject": "string",
"account_id": "string",
"project_id": "string",
"region": "string",
},
region="string",
sqs={
"access_key": "string",
"endpoint": "string",
"queue_url": "string",
"secret_key": "string",
"project_id": "string",
"region": "string",
},
tags=["string"])
const triggerResource = new scaleway.containers.Trigger("triggerResource", {
containerId: "string",
destinationConfig: {
httpMethod: "string",
httpPath: "string",
},
cron: {
schedule: "string",
timezone: "string",
body: "string",
headers: {
string: "string",
},
},
description: "string",
name: "string",
nats: {
credentialsFileContent: "string",
serverUrls: ["string"],
subject: "string",
accountId: "string",
projectId: "string",
region: "string",
},
region: "string",
sqs: {
accessKey: "string",
endpoint: "string",
queueUrl: "string",
secretKey: "string",
projectId: "string",
region: "string",
},
tags: ["string"],
});
type: scaleway:containers:Trigger
properties:
containerId: string
cron:
body: string
headers:
string: string
schedule: string
timezone: string
description: string
destinationConfig:
httpMethod: string
httpPath: string
name: string
nats:
accountId: string
credentialsFileContent: string
projectId: string
region: string
serverUrls:
- string
subject: string
region: string
sqs:
accessKey: string
endpoint: string
projectId: string
queueUrl: string
region: string
secretKey: string
tags:
- string
Trigger 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 Trigger resource accepts the following input properties:
- Container
Id string The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- Destination
Config Pulumiverse.Scaleway. Containers. Inputs. Trigger Destination Config - The configuration of the destination to trigger.
- Cron
Pulumiverse.
Scaleway. Containers. Inputs. Trigger Cron - The configuration for the cron source of the trigger
- Description string
- The description of the trigger.
- Name string
- The unique name of the trigger. If not provided, a random name is generated.
- Nats
Pulumiverse.
Scaleway. Containers. Inputs. Trigger Nats - The configuration for the Scaleway NATS account used by the trigger
- Region string
region). The region in which the namespace is created.- Sqs
Pulumiverse.
Scaleway. Containers. Inputs. Trigger Sqs - The configuration of the Scaleway SQS queue used by the trigger
- List<string>
- The list of tags associated with the trigger.
- Container
Id string The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- Destination
Config TriggerDestination Config Args - The configuration of the destination to trigger.
- Cron
Trigger
Cron Args - The configuration for the cron source of the trigger
- Description string
- The description of the trigger.
- Name string
- The unique name of the trigger. If not provided, a random name is generated.
- Nats
Trigger
Nats Args - The configuration for the Scaleway NATS account used by the trigger
- Region string
region). The region in which the namespace is created.- Sqs
Trigger
Sqs Args - The configuration of the Scaleway SQS queue used by the trigger
- []string
- The list of tags associated with the trigger.
- container_
id string The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- destination_
config object - The configuration of the destination to trigger.
- cron object
- The configuration for the cron source of the trigger
- description string
- The description of the trigger.
- name string
- The unique name of the trigger. If not provided, a random name is generated.
- nats object
- The configuration for the Scaleway NATS account used by the trigger
- region string
region). The region in which the namespace is created.- sqs object
- The configuration of the Scaleway SQS queue used by the trigger
- list(string)
- The list of tags associated with the trigger.
- container
Id String The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- destination
Config TriggerDestination Config - The configuration of the destination to trigger.
- cron
Trigger
Cron - The configuration for the cron source of the trigger
- description String
- The description of the trigger.
- name String
- The unique name of the trigger. If not provided, a random name is generated.
- nats
Trigger
Nats - The configuration for the Scaleway NATS account used by the trigger
- region String
region). The region in which the namespace is created.- sqs
Trigger
Sqs - The configuration of the Scaleway SQS queue used by the trigger
- List<String>
- The list of tags associated with the trigger.
- container
Id string The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- destination
Config TriggerDestination Config - The configuration of the destination to trigger.
- cron
Trigger
Cron - The configuration for the cron source of the trigger
- description string
- The description of the trigger.
- name string
- The unique name of the trigger. If not provided, a random name is generated.
- nats
Trigger
Nats - The configuration for the Scaleway NATS account used by the trigger
- region string
region). The region in which the namespace is created.- sqs
Trigger
Sqs - The configuration of the Scaleway SQS queue used by the trigger
- string[]
- The list of tags associated with the trigger.
- container_
id str The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- destination_
config TriggerDestination Config Args - The configuration of the destination to trigger.
- cron
Trigger
Cron Args - The configuration for the cron source of the trigger
- description str
- The description of the trigger.
- name str
- The unique name of the trigger. If not provided, a random name is generated.
- nats
Trigger
Nats Args - The configuration for the Scaleway NATS account used by the trigger
- region str
region). The region in which the namespace is created.- sqs
Trigger
Sqs Args - The configuration of the Scaleway SQS queue used by the trigger
- Sequence[str]
- The list of tags associated with the trigger.
- container
Id String The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- destination
Config Property Map - The configuration of the destination to trigger.
- cron Property Map
- The configuration for the cron source of the trigger
- description String
- The description of the trigger.
- name String
- The unique name of the trigger. If not provided, a random name is generated.
- nats Property Map
- The configuration for the Scaleway NATS account used by the trigger
- region String
region). The region in which the namespace is created.- sqs Property Map
- The configuration of the Scaleway SQS queue used by the trigger
- List<String>
- The list of tags associated with the trigger.
Outputs
All input properties are implicitly available as output properties. Additionally, the Trigger resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Trigger Resource
Get an existing Trigger 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?: TriggerState, opts?: CustomResourceOptions): Trigger@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
container_id: Optional[str] = None,
cron: Optional[TriggerCronArgs] = None,
description: Optional[str] = None,
destination_config: Optional[TriggerDestinationConfigArgs] = None,
name: Optional[str] = None,
nats: Optional[TriggerNatsArgs] = None,
region: Optional[str] = None,
sqs: Optional[TriggerSqsArgs] = None,
tags: Optional[Sequence[str]] = None) -> Triggerfunc GetTrigger(ctx *Context, name string, id IDInput, state *TriggerState, opts ...ResourceOption) (*Trigger, error)public static Trigger Get(string name, Input<string> id, TriggerState? state, CustomResourceOptions? opts = null)public static Trigger get(String name, Output<String> id, TriggerState state, CustomResourceOptions options)resources: _: type: scaleway:containers:Trigger get: id: ${id}import {
to = scaleway_containers_trigger.example
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.
- Container
Id string The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- Cron
Pulumiverse.
Scaleway. Containers. Inputs. Trigger Cron - The configuration for the cron source of the trigger
- Description string
- The description of the trigger.
- Destination
Config Pulumiverse.Scaleway. Containers. Inputs. Trigger Destination Config - The configuration of the destination to trigger.
- Name string
- The unique name of the trigger. If not provided, a random name is generated.
- Nats
Pulumiverse.
Scaleway. Containers. Inputs. Trigger Nats - The configuration for the Scaleway NATS account used by the trigger
- Region string
region). The region in which the namespace is created.- Sqs
Pulumiverse.
Scaleway. Containers. Inputs. Trigger Sqs - The configuration of the Scaleway SQS queue used by the trigger
- List<string>
- The list of tags associated with the trigger.
- Container
Id string The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- Cron
Trigger
Cron Args - The configuration for the cron source of the trigger
- Description string
- The description of the trigger.
- Destination
Config TriggerDestination Config Args - The configuration of the destination to trigger.
- Name string
- The unique name of the trigger. If not provided, a random name is generated.
- Nats
Trigger
Nats Args - The configuration for the Scaleway NATS account used by the trigger
- Region string
region). The region in which the namespace is created.- Sqs
Trigger
Sqs Args - The configuration of the Scaleway SQS queue used by the trigger
- []string
- The list of tags associated with the trigger.
- container_
id string The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- cron object
- The configuration for the cron source of the trigger
- description string
- The description of the trigger.
- destination_
config object - The configuration of the destination to trigger.
- name string
- The unique name of the trigger. If not provided, a random name is generated.
- nats object
- The configuration for the Scaleway NATS account used by the trigger
- region string
region). The region in which the namespace is created.- sqs object
- The configuration of the Scaleway SQS queue used by the trigger
- list(string)
- The list of tags associated with the trigger.
- container
Id String The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- cron
Trigger
Cron - The configuration for the cron source of the trigger
- description String
- The description of the trigger.
- destination
Config TriggerDestination Config - The configuration of the destination to trigger.
- name String
- The unique name of the trigger. If not provided, a random name is generated.
- nats
Trigger
Nats - The configuration for the Scaleway NATS account used by the trigger
- region String
region). The region in which the namespace is created.- sqs
Trigger
Sqs - The configuration of the Scaleway SQS queue used by the trigger
- List<String>
- The list of tags associated with the trigger.
- container
Id string The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- cron
Trigger
Cron - The configuration for the cron source of the trigger
- description string
- The description of the trigger.
- destination
Config TriggerDestination Config - The configuration of the destination to trigger.
- name string
- The unique name of the trigger. If not provided, a random name is generated.
- nats
Trigger
Nats - The configuration for the Scaleway NATS account used by the trigger
- region string
region). The region in which the namespace is created.- sqs
Trigger
Sqs - The configuration of the Scaleway SQS queue used by the trigger
- string[]
- The list of tags associated with the trigger.
- container_
id str The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- cron
Trigger
Cron Args - The configuration for the cron source of the trigger
- description str
- The description of the trigger.
- destination_
config TriggerDestination Config Args - The configuration of the destination to trigger.
- name str
- The unique name of the trigger. If not provided, a random name is generated.
- nats
Trigger
Nats Args - The configuration for the Scaleway NATS account used by the trigger
- region str
region). The region in which the namespace is created.- sqs
Trigger
Sqs Args - The configuration of the Scaleway SQS queue used by the trigger
- Sequence[str]
- The list of tags associated with the trigger.
- container
Id String The unique identifier of the container to create a trigger for.
Important: Updates to this field will recreate the resource.
- cron Property Map
- The configuration for the cron source of the trigger
- description String
- The description of the trigger.
- destination
Config Property Map - The configuration of the destination to trigger.
- name String
- The unique name of the trigger. If not provided, a random name is generated.
- nats Property Map
- The configuration for the Scaleway NATS account used by the trigger
- region String
region). The region in which the namespace is created.- sqs Property Map
- The configuration of the Scaleway SQS queue used by the trigger
- List<String>
- The list of tags associated with the trigger.
Supporting Types
TriggerCron, TriggerCronArgs
- Schedule string
- UNIX cron schedule to run job (e.g., "* * * * *").
- Timezone string
- Timezone for the cron schedule, in tz database format (e.g., "Europe/Paris").
- Body string
- Body to send to the container when the trigger is invoked.
- Headers Dictionary<string, string>
- Additional headers to send to the container when the trigger is invoked.
- Schedule string
- UNIX cron schedule to run job (e.g., "* * * * *").
- Timezone string
- Timezone for the cron schedule, in tz database format (e.g., "Europe/Paris").
- Body string
- Body to send to the container when the trigger is invoked.
- Headers map[string]string
- Additional headers to send to the container when the trigger is invoked.
- schedule string
- UNIX cron schedule to run job (e.g., "* * * * *").
- timezone string
- Timezone for the cron schedule, in tz database format (e.g., "Europe/Paris").
- body string
- Body to send to the container when the trigger is invoked.
- headers map(string)
- Additional headers to send to the container when the trigger is invoked.
- schedule String
- UNIX cron schedule to run job (e.g., "* * * * *").
- timezone String
- Timezone for the cron schedule, in tz database format (e.g., "Europe/Paris").
- body String
- Body to send to the container when the trigger is invoked.
- headers Map<String,String>
- Additional headers to send to the container when the trigger is invoked.
- schedule string
- UNIX cron schedule to run job (e.g., "* * * * *").
- timezone string
- Timezone for the cron schedule, in tz database format (e.g., "Europe/Paris").
- body string
- Body to send to the container when the trigger is invoked.
- headers {[key: string]: string}
- Additional headers to send to the container when the trigger is invoked.
- schedule str
- UNIX cron schedule to run job (e.g., "* * * * *").
- timezone str
- Timezone for the cron schedule, in tz database format (e.g., "Europe/Paris").
- body str
- Body to send to the container when the trigger is invoked.
- headers Mapping[str, str]
- Additional headers to send to the container when the trigger is invoked.
- schedule String
- UNIX cron schedule to run job (e.g., "* * * * *").
- timezone String
- Timezone for the cron schedule, in tz database format (e.g., "Europe/Paris").
- body String
- Body to send to the container when the trigger is invoked.
- headers Map<String>
- Additional headers to send to the container when the trigger is invoked.
TriggerDestinationConfig, TriggerDestinationConfigArgs
- Http
Method string - The HTTP method to use when sending the request (e.g., get, post, put, patch, delete).
- Http
Path string - The HTTP path to send the request to (e.g., "/my-webhook-endpoint").
- Http
Method string - The HTTP method to use when sending the request (e.g., get, post, put, patch, delete).
- Http
Path string - The HTTP path to send the request to (e.g., "/my-webhook-endpoint").
- http_
method string - The HTTP method to use when sending the request (e.g., get, post, put, patch, delete).
- http_
path string - The HTTP path to send the request to (e.g., "/my-webhook-endpoint").
- http
Method String - The HTTP method to use when sending the request (e.g., get, post, put, patch, delete).
- http
Path String - The HTTP path to send the request to (e.g., "/my-webhook-endpoint").
- http
Method string - The HTTP method to use when sending the request (e.g., get, post, put, patch, delete).
- http
Path string - The HTTP path to send the request to (e.g., "/my-webhook-endpoint").
- http_
method str - The HTTP method to use when sending the request (e.g., get, post, put, patch, delete).
- http_
path str - The HTTP path to send the request to (e.g., "/my-webhook-endpoint").
- http
Method String - The HTTP method to use when sending the request (e.g., get, post, put, patch, delete).
- http
Path String - The HTTP path to send the request to (e.g., "/my-webhook-endpoint").
TriggerNats, TriggerNatsArgs
- Credentials
File stringContent - The content of the NATS credentials file that will be used to authenticate with the NATS server and subscribe to the specified subject.
- Server
Urls List<string> - The list of URLs of the NATS server (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222").
- Subject string
- NATS subject to subscribe to (e.g., "my-subject")."
- Account
Id string - unique identifier of the Messaging and Queuing NATS account .
- Project
Id string - The ID of the project that contains the Messaging and Queuing NATS account (defaults to provider
projectId) - Region string
- Region where the Messaging and Queuing NATS account is enabled (defaults to provider
region)
- Credentials
File stringContent - The content of the NATS credentials file that will be used to authenticate with the NATS server and subscribe to the specified subject.
- Server
Urls []string - The list of URLs of the NATS server (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222").
- Subject string
- NATS subject to subscribe to (e.g., "my-subject")."
- Account
Id string - unique identifier of the Messaging and Queuing NATS account .
- Project
Id string - The ID of the project that contains the Messaging and Queuing NATS account (defaults to provider
projectId) - Region string
- Region where the Messaging and Queuing NATS account is enabled (defaults to provider
region)
- credentials_
file_ stringcontent - The content of the NATS credentials file that will be used to authenticate with the NATS server and subscribe to the specified subject.
- server_
urls list(string) - The list of URLs of the NATS server (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222").
- subject string
- NATS subject to subscribe to (e.g., "my-subject")."
- account_
id string - unique identifier of the Messaging and Queuing NATS account .
- project_
id string - The ID of the project that contains the Messaging and Queuing NATS account (defaults to provider
projectId) - region string
- Region where the Messaging and Queuing NATS account is enabled (defaults to provider
region)
- credentials
File StringContent - The content of the NATS credentials file that will be used to authenticate with the NATS server and subscribe to the specified subject.
- server
Urls List<String> - The list of URLs of the NATS server (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222").
- subject String
- NATS subject to subscribe to (e.g., "my-subject")."
- account
Id String - unique identifier of the Messaging and Queuing NATS account .
- project
Id String - The ID of the project that contains the Messaging and Queuing NATS account (defaults to provider
projectId) - region String
- Region where the Messaging and Queuing NATS account is enabled (defaults to provider
region)
- credentials
File stringContent - The content of the NATS credentials file that will be used to authenticate with the NATS server and subscribe to the specified subject.
- server
Urls string[] - The list of URLs of the NATS server (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222").
- subject string
- NATS subject to subscribe to (e.g., "my-subject")."
- account
Id string - unique identifier of the Messaging and Queuing NATS account .
- project
Id string - The ID of the project that contains the Messaging and Queuing NATS account (defaults to provider
projectId) - region string
- Region where the Messaging and Queuing NATS account is enabled (defaults to provider
region)
- credentials_
file_ strcontent - The content of the NATS credentials file that will be used to authenticate with the NATS server and subscribe to the specified subject.
- server_
urls Sequence[str] - The list of URLs of the NATS server (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222").
- subject str
- NATS subject to subscribe to (e.g., "my-subject")."
- account_
id str - unique identifier of the Messaging and Queuing NATS account .
- project_
id str - The ID of the project that contains the Messaging and Queuing NATS account (defaults to provider
projectId) - region str
- Region where the Messaging and Queuing NATS account is enabled (defaults to provider
region)
- credentials
File StringContent - The content of the NATS credentials file that will be used to authenticate with the NATS server and subscribe to the specified subject.
- server
Urls List<String> - The list of URLs of the NATS server (e.g., "nats://nats.mnq.fr-par.scaleway.com:4222").
- subject String
- NATS subject to subscribe to (e.g., "my-subject")."
- account
Id String - unique identifier of the Messaging and Queuing NATS account .
- project
Id String - The ID of the project that contains the Messaging and Queuing NATS account (defaults to provider
projectId) - region String
- Region where the Messaging and Queuing NATS account is enabled (defaults to provider
region)
TriggerSqs, TriggerSqsArgs
- Access
Key string - The access key for accessing the SQS queue.
- Endpoint string
- Endpoint URL to use to access SQS (e.g., "https://sqs.mnq.fr-par.scaleway.com").
- Queue
Url string - The URL of the SQS queue to monitor for messages.
- Secret
Key string - The secret key for accessing the SQS queue.
- Project
Id string - The ID of the project in which SQS is enabled, (defaults to provider
projectId) - Queue string
- The name of the SQS queue. This argument is no longer supported.
- Region string
- Region where SQS is enabled (defaults to provider
region)
- Access
Key string - The access key for accessing the SQS queue.
- Endpoint string
- Endpoint URL to use to access SQS (e.g., "https://sqs.mnq.fr-par.scaleway.com").
- Queue
Url string - The URL of the SQS queue to monitor for messages.
- Secret
Key string - The secret key for accessing the SQS queue.
- Project
Id string - The ID of the project in which SQS is enabled, (defaults to provider
projectId) - Queue string
- The name of the SQS queue. This argument is no longer supported.
- Region string
- Region where SQS is enabled (defaults to provider
region)
- access_
key string - The access key for accessing the SQS queue.
- endpoint string
- Endpoint URL to use to access SQS (e.g., "https://sqs.mnq.fr-par.scaleway.com").
- queue_
url string - The URL of the SQS queue to monitor for messages.
- secret_
key string - The secret key for accessing the SQS queue.
- project_
id string - The ID of the project in which SQS is enabled, (defaults to provider
projectId) - queue string
- The name of the SQS queue. This argument is no longer supported.
- region string
- Region where SQS is enabled (defaults to provider
region)
- access
Key String - The access key for accessing the SQS queue.
- endpoint String
- Endpoint URL to use to access SQS (e.g., "https://sqs.mnq.fr-par.scaleway.com").
- queue
Url String - The URL of the SQS queue to monitor for messages.
- secret
Key String - The secret key for accessing the SQS queue.
- project
Id String - The ID of the project in which SQS is enabled, (defaults to provider
projectId) - queue String
- The name of the SQS queue. This argument is no longer supported.
- region String
- Region where SQS is enabled (defaults to provider
region)
- access
Key string - The access key for accessing the SQS queue.
- endpoint string
- Endpoint URL to use to access SQS (e.g., "https://sqs.mnq.fr-par.scaleway.com").
- queue
Url string - The URL of the SQS queue to monitor for messages.
- secret
Key string - The secret key for accessing the SQS queue.
- project
Id string - The ID of the project in which SQS is enabled, (defaults to provider
projectId) - queue string
- The name of the SQS queue. This argument is no longer supported.
- region string
- Region where SQS is enabled (defaults to provider
region)
- access_
key str - The access key for accessing the SQS queue.
- endpoint str
- Endpoint URL to use to access SQS (e.g., "https://sqs.mnq.fr-par.scaleway.com").
- queue_
url str - The URL of the SQS queue to monitor for messages.
- secret_
key str - The secret key for accessing the SQS queue.
- project_
id str - The ID of the project in which SQS is enabled, (defaults to provider
projectId) - queue str
- The name of the SQS queue. This argument is no longer supported.
- region str
- Region where SQS is enabled (defaults to provider
region)
- access
Key String - The access key for accessing the SQS queue.
- endpoint String
- Endpoint URL to use to access SQS (e.g., "https://sqs.mnq.fr-par.scaleway.com").
- queue
Url String - The URL of the SQS queue to monitor for messages.
- secret
Key String - The secret key for accessing the SQS queue.
- project
Id String - The ID of the project in which SQS is enabled, (defaults to provider
projectId) - queue String
- The name of the SQS queue. This argument is no longer supported.
- region String
- Region where SQS is enabled (defaults to provider
region)
Import
Container Triggers can be imported using {region}/{id}, as shown below:
$ pulumi import scaleway:containers/trigger:Trigger 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.
published on Thursday, May 14, 2026 by pulumiverse
