1. Packages
  2. Scaleway
  3. API Docs
  4. getMnqSqs
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

scaleway.getMnqSqs

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

    Gets information about SQS for a project

    Examples

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const main = scaleway.getMnqSqs({});
    const forProject = scaleway.getMnqSqs({
        projectId: scaleway_account_project.main.id,
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    main = scaleway.get_mnq_sqs()
    for_project = scaleway.get_mnq_sqs(project_id=scaleway_account_project["main"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.LookupMnqSqs(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.LookupMnqSqs(ctx, &scaleway.LookupMnqSqsArgs{
    			ProjectId: pulumi.StringRef(scaleway_account_project.Main.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(() => 
    {
        var main = Scaleway.GetMnqSqs.Invoke();
    
        var forProject = Scaleway.GetMnqSqs.Invoke(new()
        {
            ProjectId = scaleway_account_project.Main.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetMnqSqsArgs;
    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 main = ScalewayFunctions.getMnqSqs();
    
            final var forProject = ScalewayFunctions.getMnqSqs(GetMnqSqsArgs.builder()
                .projectId(scaleway_account_project.main().id())
                .build());
    
        }
    }
    
    variables:
      main:
        fn::invoke:
          Function: scaleway:getMnqSqs
          Arguments: {}
      forProject:
        fn::invoke:
          Function: scaleway:getMnqSqs
          Arguments:
            projectId: ${scaleway_account_project.main.id}
    

    Using getMnqSqs

    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 getMnqSqs(args: GetMnqSqsArgs, opts?: InvokeOptions): Promise<GetMnqSqsResult>
    function getMnqSqsOutput(args: GetMnqSqsOutputArgs, opts?: InvokeOptions): Output<GetMnqSqsResult>
    def get_mnq_sqs(project_id: Optional[str] = None,
                    region: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetMnqSqsResult
    def get_mnq_sqs_output(project_id: Optional[pulumi.Input[str]] = None,
                    region: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetMnqSqsResult]
    func LookupMnqSqs(ctx *Context, args *LookupMnqSqsArgs, opts ...InvokeOption) (*LookupMnqSqsResult, error)
    func LookupMnqSqsOutput(ctx *Context, args *LookupMnqSqsOutputArgs, opts ...InvokeOption) LookupMnqSqsResultOutput

    > Note: This function is named LookupMnqSqs in the Go SDK.

    public static class GetMnqSqs 
    {
        public static Task<GetMnqSqsResult> InvokeAsync(GetMnqSqsArgs args, InvokeOptions? opts = null)
        public static Output<GetMnqSqsResult> Invoke(GetMnqSqsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMnqSqsResult> getMnqSqs(GetMnqSqsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getMnqSqs:getMnqSqs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    project_id) The ID of the project for which sqs is enabled.
    Region string
    region). The region in which sqs is enabled.
    ProjectId string
    project_id) The ID of the project for which sqs is enabled.
    Region string
    region). The region in which sqs is enabled.
    projectId String
    project_id) The ID of the project for which sqs is enabled.
    region String
    region). The region in which sqs is enabled.
    projectId string
    project_id) The ID of the project for which sqs is enabled.
    region string
    region). The region in which sqs is enabled.
    project_id str
    project_id) The ID of the project for which sqs is enabled.
    region str
    region). The region in which sqs is enabled.
    projectId String
    project_id) The ID of the project for which sqs is enabled.
    region String
    region). The region in which sqs is enabled.

    getMnqSqs Result

    The following output properties are available:

    Endpoint string
    The endpoint of the SQS service for this project.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Region string
    Endpoint string
    The endpoint of the SQS service for this project.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Region string
    endpoint String
    The endpoint of the SQS service for this project.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    region String
    endpoint string
    The endpoint of the SQS service for this project.
    id string
    The provider-assigned unique ID for this managed resource.
    projectId string
    region string
    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
    endpoint String
    The endpoint of the SQS service for this project.
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    region String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse