Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
Gets information about SQS for a Project
Examples
Basic
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// For default project
const main = scaleway.mnq.getSqs({});
// For specific project
const forProject = scaleway.mnq.getSqs({
projectId: mainScalewayAccountProject.id,
});
import pulumi
import pulumi_scaleway as scaleway
# For default project
main = scaleway.mnq.get_sqs()
# For specific project
for_project = scaleway.mnq.get_sqs(project_id=main_scaleway_account_project["id"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/mnq"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// For default project
_, err := mnq.LookupSqs(ctx, &mnq.LookupSqsArgs{}, nil)
if err != nil {
return err
}
// For specific project
_, err = mnq.LookupSqs(ctx, &mnq.LookupSqsArgs{
ProjectId: pulumi.StringRef(mainScalewayAccountProject.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
// For default project
var main = Scaleway.Mnq.GetSqs.Invoke();
// For specific project
var forProject = Scaleway.Mnq.GetSqs.Invoke(new()
{
ProjectId = mainScalewayAccountProject.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.mnq.MnqFunctions;
import com.pulumi.scaleway.mnq.inputs.GetSqsArgs;
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) {
// For default project
final var main = MnqFunctions.getSqs(GetSqsArgs.builder()
.build());
// For specific project
final var forProject = MnqFunctions.getSqs(GetSqsArgs.builder()
.projectId(mainScalewayAccountProject.id())
.build());
}
}
variables:
# For default project
main:
fn::invoke:
function: scaleway:mnq:getSqs
arguments: {}
# For specific project
forProject:
fn::invoke:
function: scaleway:mnq:getSqs
arguments:
projectId: ${mainScalewayAccountProject.id}
Using getSqs
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSqs(args: GetSqsArgs, opts?: InvokeOptions): Promise<GetSqsResult>
function getSqsOutput(args: GetSqsOutputArgs, opts?: InvokeOptions): Output<GetSqsResult>def get_sqs(project_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqsResult
def get_sqs_output(project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqsResult]func LookupSqs(ctx *Context, args *LookupSqsArgs, opts ...InvokeOption) (*LookupSqsResult, error)
func LookupSqsOutput(ctx *Context, args *LookupSqsOutputArgs, opts ...InvokeOption) LookupSqsResultOutput> Note: This function is named LookupSqs in the Go SDK.
public static class GetSqs
{
public static Task<GetSqsResult> InvokeAsync(GetSqsArgs args, InvokeOptions? opts = null)
public static Output<GetSqsResult> Invoke(GetSqsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSqsResult> getSqs(GetSqsArgs args, InvokeOptions options)
public static Output<GetSqsResult> getSqs(GetSqsArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:mnq/getSqs:getSqs
arguments:
# arguments dictionaryThe following arguments are supported:
- project_
id str project_id) The ID of the Project in which SQS is enabled.- region str
region). The region in which SQS is enabled.
getSqs Result
The following output properties are available:
- endpoint str
- The endpoint of the SQS service for this Project.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - region str
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
