1. Packages
  2. Scaleway
  3. API Docs
  4. functions
  5. Trigger
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.functions.Trigger

Explore with Pulumi AI

The scaleway.functions.Trigger resource allows you to create and manage triggers for Scaleway Serverless Functions.

Refer to the Functions 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.functions.Trigger("main", {
    functionId: mainScalewayFunction.id,
    name: "my-trigger",
    sqs: {
        projectId: mainScalewayMnqSqs.projectId,
        queue: "MyQueue",
        region: mainScalewayMnqSqs.region,
    },
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.functions.Trigger("main",
    function_id=main_scaleway_function["id"],
    name="my-trigger",
    sqs={
        "project_id": main_scaleway_mnq_sqs["projectId"],
        "queue": "MyQueue",
        "region": main_scaleway_mnq_sqs["region"],
    })
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/functions"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := functions.NewTrigger(ctx, "main", &functions.TriggerArgs{
			FunctionId: pulumi.Any(mainScalewayFunction.Id),
			Name:       pulumi.String("my-trigger"),
			Sqs: &functions.TriggerSqsArgs{
				ProjectId: pulumi.Any(mainScalewayMnqSqs.ProjectId),
				Queue:     pulumi.String("MyQueue"),
				Region:    pulumi.Any(mainScalewayMnqSqs.Region),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Functions.Trigger("main", new()
    {
        FunctionId = mainScalewayFunction.Id,
        Name = "my-trigger",
        Sqs = new Scaleway.Functions.Inputs.TriggerSqsArgs
        {
            ProjectId = mainScalewayMnqSqs.ProjectId,
            Queue = "MyQueue",
            Region = mainScalewayMnqSqs.Region,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.functions.Trigger;
import com.pulumi.scaleway.functions.TriggerArgs;
import com.pulumi.scaleway.functions.inputs.TriggerSqsArgs;
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 Trigger("main", TriggerArgs.builder()
            .functionId(mainScalewayFunction.id())
            .name("my-trigger")
            .sqs(TriggerSqsArgs.builder()
                .projectId(mainScalewayMnqSqs.projectId())
                .queue("MyQueue")
                .region(mainScalewayMnqSqs.region())
                .build())
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:functions:Trigger
    properties:
      functionId: ${mainScalewayFunction.id}
      name: my-trigger
      sqs:
        projectId: ${mainScalewayMnqSqs.projectId}
        queue: MyQueue
        region: ${mainScalewayMnqSqs.region}
Copy

NATS

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const main = new scaleway.functions.Trigger("main", {
    functionId: mainScalewayFunction.id,
    name: "my-trigger",
    nats: {
        accountId: mainScalewayMnqNatsAccount.id,
        subject: "MySubject",
        region: mainScalewayMnqNatsAccount.region,
    },
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.functions.Trigger("main",
    function_id=main_scaleway_function["id"],
    name="my-trigger",
    nats={
        "account_id": main_scaleway_mnq_nats_account["id"],
        "subject": "MySubject",
        "region": main_scaleway_mnq_nats_account["region"],
    })
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/functions"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := functions.NewTrigger(ctx, "main", &functions.TriggerArgs{
			FunctionId: pulumi.Any(mainScalewayFunction.Id),
			Name:       pulumi.String("my-trigger"),
			Nats: &functions.TriggerNatsArgs{
				AccountId: pulumi.Any(mainScalewayMnqNatsAccount.Id),
				Subject:   pulumi.String("MySubject"),
				Region:    pulumi.Any(mainScalewayMnqNatsAccount.Region),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Functions.Trigger("main", new()
    {
        FunctionId = mainScalewayFunction.Id,
        Name = "my-trigger",
        Nats = new Scaleway.Functions.Inputs.TriggerNatsArgs
        {
            AccountId = mainScalewayMnqNatsAccount.Id,
            Subject = "MySubject",
            Region = mainScalewayMnqNatsAccount.Region,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.functions.Trigger;
import com.pulumi.scaleway.functions.TriggerArgs;
import com.pulumi.scaleway.functions.inputs.TriggerNatsArgs;
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 Trigger("main", TriggerArgs.builder()
            .functionId(mainScalewayFunction.id())
            .name("my-trigger")
            .nats(TriggerNatsArgs.builder()
                .accountId(mainScalewayMnqNatsAccount.id())
                .subject("MySubject")
                .region(mainScalewayMnqNatsAccount.region())
                .build())
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:functions:Trigger
    properties:
      functionId: ${mainScalewayFunction.id}
      name: my-trigger
      nats:
        accountId: ${mainScalewayMnqNatsAccount.id}
        subject: MySubject
        region: ${mainScalewayMnqNatsAccount.region}
Copy

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,
            function_id: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            nats: Optional[TriggerNatsArgs] = None,
            region: Optional[str] = None,
            sqs: Optional[TriggerSqsArgs] = 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:functions:Trigger
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TriggerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. TriggerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TriggerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 scalewayTriggerResource = new Scaleway.Functions.Trigger("scalewayTriggerResource", new()
{
    FunctionId = "string",
    Description = "string",
    Name = "string",
    Nats = new Scaleway.Functions.Inputs.TriggerNatsArgs
    {
        Subject = "string",
        AccountId = "string",
        ProjectId = "string",
        Region = "string",
    },
    Region = "string",
    Sqs = new Scaleway.Functions.Inputs.TriggerSqsArgs
    {
        Queue = "string",
        ProjectId = "string",
        Region = "string",
    },
});
Copy
example, err := functions.NewTrigger(ctx, "scalewayTriggerResource", &functions.TriggerArgs{
	FunctionId:  pulumi.String("string"),
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
	Nats: &functions.TriggerNatsArgs{
		Subject:   pulumi.String("string"),
		AccountId: pulumi.String("string"),
		ProjectId: pulumi.String("string"),
		Region:    pulumi.String("string"),
	},
	Region: pulumi.String("string"),
	Sqs: &functions.TriggerSqsArgs{
		Queue:     pulumi.String("string"),
		ProjectId: pulumi.String("string"),
		Region:    pulumi.String("string"),
	},
})
Copy
var scalewayTriggerResource = new Trigger("scalewayTriggerResource", TriggerArgs.builder()
    .functionId("string")
    .description("string")
    .name("string")
    .nats(TriggerNatsArgs.builder()
        .subject("string")
        .accountId("string")
        .projectId("string")
        .region("string")
        .build())
    .region("string")
    .sqs(TriggerSqsArgs.builder()
        .queue("string")
        .projectId("string")
        .region("string")
        .build())
    .build());
Copy
scaleway_trigger_resource = scaleway.functions.Trigger("scalewayTriggerResource",
    function_id="string",
    description="string",
    name="string",
    nats={
        "subject": "string",
        "account_id": "string",
        "project_id": "string",
        "region": "string",
    },
    region="string",
    sqs={
        "queue": "string",
        "project_id": "string",
        "region": "string",
    })
Copy
const scalewayTriggerResource = new scaleway.functions.Trigger("scalewayTriggerResource", {
    functionId: "string",
    description: "string",
    name: "string",
    nats: {
        subject: "string",
        accountId: "string",
        projectId: "string",
        region: "string",
    },
    region: "string",
    sqs: {
        queue: "string",
        projectId: "string",
        region: "string",
    },
});
Copy
type: scaleway:functions:Trigger
properties:
    description: string
    functionId: string
    name: string
    nats:
        accountId: string
        projectId: string
        region: string
        subject: string
    region: string
    sqs:
        projectId: string
        queue: string
        region: string
Copy

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:

FunctionId This property is required. string
The unique identifier of the function to create a trigger for.
Description string
The description of the trigger.
Name string
The unique name of the trigger. If not provided, a random name is generated.
Nats Changes to this property will trigger replacement. Pulumiverse.Scaleway.Functions.Inputs.TriggerNats
The configuration for the Scaleway NATS account used by the trigger
Region Changes to this property will trigger replacement. string
region). The region in which the namespace is created.
Sqs Changes to this property will trigger replacement. Pulumiverse.Scaleway.Functions.Inputs.TriggerSqs
The configuration of the Scaleway SQS queue used by the trigger
FunctionId This property is required. string
The unique identifier of the function to create a trigger for.
Description string
The description of the trigger.
Name string
The unique name of the trigger. If not provided, a random name is generated.
Nats Changes to this property will trigger replacement. TriggerNatsArgs
The configuration for the Scaleway NATS account used by the trigger
Region Changes to this property will trigger replacement. string
region). The region in which the namespace is created.
Sqs Changes to this property will trigger replacement. TriggerSqsArgs
The configuration of the Scaleway SQS queue used by the trigger
functionId This property is required. String
The unique identifier of the function to create a trigger for.
description String
The description of the trigger.
name String
The unique name of the trigger. If not provided, a random name is generated.
nats Changes to this property will trigger replacement. TriggerNats
The configuration for the Scaleway NATS account used by the trigger
region Changes to this property will trigger replacement. String
region). The region in which the namespace is created.
sqs Changes to this property will trigger replacement. TriggerSqs
The configuration of the Scaleway SQS queue used by the trigger
functionId This property is required. string
The unique identifier of the function to create a trigger for.
description string
The description of the trigger.
name string
The unique name of the trigger. If not provided, a random name is generated.
nats Changes to this property will trigger replacement. TriggerNats
The configuration for the Scaleway NATS account used by the trigger
region Changes to this property will trigger replacement. string
region). The region in which the namespace is created.
sqs Changes to this property will trigger replacement. TriggerSqs
The configuration of the Scaleway SQS queue used by the trigger
function_id This property is required. str
The unique identifier of the function to create a trigger for.
description str
The description of the trigger.
name str
The unique name of the trigger. If not provided, a random name is generated.
nats Changes to this property will trigger replacement. TriggerNatsArgs
The configuration for the Scaleway NATS account used by the trigger
region Changes to this property will trigger replacement. str
region). The region in which the namespace is created.
sqs Changes to this property will trigger replacement. TriggerSqsArgs
The configuration of the Scaleway SQS queue used by the trigger
functionId This property is required. String
The unique identifier of the function to create a trigger for.
description String
The description of the trigger.
name String
The unique name of the trigger. If not provided, a random name is generated.
nats Changes to this property will trigger replacement. Property Map
The configuration for the Scaleway NATS account used by the trigger
region Changes to this property will trigger replacement. String
region). The region in which the namespace is created.
sqs Changes to this property will trigger replacement. Property Map
The configuration of the Scaleway SQS queue used by 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 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,
        description: Optional[str] = None,
        function_id: Optional[str] = None,
        name: Optional[str] = None,
        nats: Optional[TriggerNatsArgs] = None,
        region: Optional[str] = None,
        sqs: Optional[TriggerSqsArgs] = None) -> Trigger
func 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:functions:Trigger    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Description string
The description of the trigger.
FunctionId string
The unique identifier of the function to create a trigger for.
Name string
The unique name of the trigger. If not provided, a random name is generated.
Nats Changes to this property will trigger replacement. Pulumiverse.Scaleway.Functions.Inputs.TriggerNats
The configuration for the Scaleway NATS account used by the trigger
Region Changes to this property will trigger replacement. string
region). The region in which the namespace is created.
Sqs Changes to this property will trigger replacement. Pulumiverse.Scaleway.Functions.Inputs.TriggerSqs
The configuration of the Scaleway SQS queue used by the trigger
Description string
The description of the trigger.
FunctionId string
The unique identifier of the function to create a trigger for.
Name string
The unique name of the trigger. If not provided, a random name is generated.
Nats Changes to this property will trigger replacement. TriggerNatsArgs
The configuration for the Scaleway NATS account used by the trigger
Region Changes to this property will trigger replacement. string
region). The region in which the namespace is created.
Sqs Changes to this property will trigger replacement. TriggerSqsArgs
The configuration of the Scaleway SQS queue used by the trigger
description String
The description of the trigger.
functionId String
The unique identifier of the function to create a trigger for.
name String
The unique name of the trigger. If not provided, a random name is generated.
nats Changes to this property will trigger replacement. TriggerNats
The configuration for the Scaleway NATS account used by the trigger
region Changes to this property will trigger replacement. String
region). The region in which the namespace is created.
sqs Changes to this property will trigger replacement. TriggerSqs
The configuration of the Scaleway SQS queue used by the trigger
description string
The description of the trigger.
functionId string
The unique identifier of the function to create a trigger for.
name string
The unique name of the trigger. If not provided, a random name is generated.
nats Changes to this property will trigger replacement. TriggerNats
The configuration for the Scaleway NATS account used by the trigger
region Changes to this property will trigger replacement. string
region). The region in which the namespace is created.
sqs Changes to this property will trigger replacement. TriggerSqs
The configuration of the Scaleway SQS queue used by the trigger
description str
The description of the trigger.
function_id str
The unique identifier of the function to create a trigger for.
name str
The unique name of the trigger. If not provided, a random name is generated.
nats Changes to this property will trigger replacement. TriggerNatsArgs
The configuration for the Scaleway NATS account used by the trigger
region Changes to this property will trigger replacement. str
region). The region in which the namespace is created.
sqs Changes to this property will trigger replacement. TriggerSqsArgs
The configuration of the Scaleway SQS queue used by the trigger
description String
The description of the trigger.
functionId String
The unique identifier of the function to create a trigger for.
name String
The unique name of the trigger. If not provided, a random name is generated.
nats Changes to this property will trigger replacement. Property Map
The configuration for the Scaleway NATS account used by the trigger
region Changes to this property will trigger replacement. String
region). The region in which the namespace is created.
sqs Changes to this property will trigger replacement. Property Map
The configuration of the Scaleway SQS queue used by the trigger

Supporting Types

TriggerNats
, TriggerNatsArgs

Subject
This property is required.
Changes to this property will trigger replacement.
string
The subject to listen to.
AccountId Changes to this property will trigger replacement. string
unique identifier of the Messaging and Queuing NATS account.
ProjectId Changes to this property will trigger replacement. string
THe ID of the project that contains the Messaging and Queuing NATS account (defaults to provider project_id)
Region Changes to this property will trigger replacement. string
Region where the Messaging and Queuing NATS account is enabled (defaults to provider region)
Subject
This property is required.
Changes to this property will trigger replacement.
string
The subject to listen to.
AccountId Changes to this property will trigger replacement. string
unique identifier of the Messaging and Queuing NATS account.
ProjectId Changes to this property will trigger replacement. string
THe ID of the project that contains the Messaging and Queuing NATS account (defaults to provider project_id)
Region Changes to this property will trigger replacement. string
Region where the Messaging and Queuing NATS account is enabled (defaults to provider region)
subject
This property is required.
Changes to this property will trigger replacement.
String
The subject to listen to.
accountId Changes to this property will trigger replacement. String
unique identifier of the Messaging and Queuing NATS account.
projectId Changes to this property will trigger replacement. String
THe ID of the project that contains the Messaging and Queuing NATS account (defaults to provider project_id)
region Changes to this property will trigger replacement. String
Region where the Messaging and Queuing NATS account is enabled (defaults to provider region)
subject
This property is required.
Changes to this property will trigger replacement.
string
The subject to listen to.
accountId Changes to this property will trigger replacement. string
unique identifier of the Messaging and Queuing NATS account.
projectId Changes to this property will trigger replacement. string
THe ID of the project that contains the Messaging and Queuing NATS account (defaults to provider project_id)
region Changes to this property will trigger replacement. string
Region where the Messaging and Queuing NATS account is enabled (defaults to provider region)
subject
This property is required.
Changes to this property will trigger replacement.
str
The subject to listen to.
account_id Changes to this property will trigger replacement. str
unique identifier of the Messaging and Queuing NATS account.
project_id Changes to this property will trigger replacement. str
THe ID of the project that contains the Messaging and Queuing NATS account (defaults to provider project_id)
region Changes to this property will trigger replacement. str
Region where the Messaging and Queuing NATS account is enabled (defaults to provider region)
subject
This property is required.
Changes to this property will trigger replacement.
String
The subject to listen to.
accountId Changes to this property will trigger replacement. String
unique identifier of the Messaging and Queuing NATS account.
projectId Changes to this property will trigger replacement. String
THe ID of the project that contains the Messaging and Queuing NATS account (defaults to provider project_id)
region Changes to this property will trigger replacement. String
Region where the Messaging and Queuing NATS account is enabled (defaults to provider region)

TriggerSqs
, TriggerSqsArgs

Queue
This property is required.
Changes to this property will trigger replacement.
string
The name of the SQS queue.
NamespaceId string
ID of the Messaging and Queuing namespace. This argument is deprecated.

Deprecated: The 'namespace_id' field is deprecated and will be removed in the next major version. It is no longer necessary to specify it

ProjectId Changes to this property will trigger replacement. string
The ID of the project in which SQS is enabled, (defaults to provider project_id)
Region Changes to this property will trigger replacement. string
Region where SQS is enabled (defaults to provider region)
Queue
This property is required.
Changes to this property will trigger replacement.
string
The name of the SQS queue.
NamespaceId string
ID of the Messaging and Queuing namespace. This argument is deprecated.

Deprecated: The 'namespace_id' field is deprecated and will be removed in the next major version. It is no longer necessary to specify it

ProjectId Changes to this property will trigger replacement. string
The ID of the project in which SQS is enabled, (defaults to provider project_id)
Region Changes to this property will trigger replacement. string
Region where SQS is enabled (defaults to provider region)
queue
This property is required.
Changes to this property will trigger replacement.
String
The name of the SQS queue.
namespaceId String
ID of the Messaging and Queuing namespace. This argument is deprecated.

Deprecated: The 'namespace_id' field is deprecated and will be removed in the next major version. It is no longer necessary to specify it

projectId Changes to this property will trigger replacement. String
The ID of the project in which SQS is enabled, (defaults to provider project_id)
region Changes to this property will trigger replacement. String
Region where SQS is enabled (defaults to provider region)
queue
This property is required.
Changes to this property will trigger replacement.
string
The name of the SQS queue.
namespaceId string
ID of the Messaging and Queuing namespace. This argument is deprecated.

Deprecated: The 'namespace_id' field is deprecated and will be removed in the next major version. It is no longer necessary to specify it

projectId Changes to this property will trigger replacement. string
The ID of the project in which SQS is enabled, (defaults to provider project_id)
region Changes to this property will trigger replacement. string
Region where SQS is enabled (defaults to provider region)
queue
This property is required.
Changes to this property will trigger replacement.
str
The name of the SQS queue.
namespace_id str
ID of the Messaging and Queuing namespace. This argument is deprecated.

Deprecated: The 'namespace_id' field is deprecated and will be removed in the next major version. It is no longer necessary to specify it

project_id Changes to this property will trigger replacement. str
The ID of the project in which SQS is enabled, (defaults to provider project_id)
region Changes to this property will trigger replacement. str
Region where SQS is enabled (defaults to provider region)
queue
This property is required.
Changes to this property will trigger replacement.
String
The name of the SQS queue.
namespaceId String
ID of the Messaging and Queuing namespace. This argument is deprecated.

Deprecated: The 'namespace_id' field is deprecated and will be removed in the next major version. It is no longer necessary to specify it

projectId Changes to this property will trigger replacement. String
The ID of the project in which SQS is enabled, (defaults to provider project_id)
region Changes to this property will trigger replacement. String
Region where SQS is enabled (defaults to provider region)

Import

Function Triggers can be imported using {region}/{id}, as shown below:

bash

$ pulumi import scaleway:functions/trigger:Trigger main fr-par/11111111-1111-1111-1111-111111111111
Copy

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 scaleway Terraform Provider.