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

scaleway.mnq.SqsCredentials

Explore with Pulumi AI

Creates and manages Scaleway Messaging and Queuing SQS credentials. For further information, see our main documentation

Example Usage

Basic

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

const main = new scaleway.mnq.Sqs("main", {});
const mainSqsCredentials = new scaleway.mnq.SqsCredentials("main", {
    projectId: main.projectId,
    name: "sqs-credentials",
    permissions: {
        canManage: false,
        canReceive: true,
        canPublish: false,
    },
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.mnq.Sqs("main")
main_sqs_credentials = scaleway.mnq.SqsCredentials("main",
    project_id=main.project_id,
    name="sqs-credentials",
    permissions={
        "can_manage": False,
        "can_receive": True,
        "can_publish": False,
    })
Copy
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 {
		main, err := mnq.NewSqs(ctx, "main", nil)
		if err != nil {
			return err
		}
		_, err = mnq.NewSqsCredentials(ctx, "main", &mnq.SqsCredentialsArgs{
			ProjectId: main.ProjectId,
			Name:      pulumi.String("sqs-credentials"),
			Permissions: &mnq.SqsCredentialsPermissionsArgs{
				CanManage:  pulumi.Bool(false),
				CanReceive: pulumi.Bool(true),
				CanPublish: pulumi.Bool(false),
			},
		})
		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.Mnq.Sqs("main");

    var mainSqsCredentials = new Scaleway.Mnq.SqsCredentials("main", new()
    {
        ProjectId = main.ProjectId,
        Name = "sqs-credentials",
        Permissions = new Scaleway.Mnq.Inputs.SqsCredentialsPermissionsArgs
        {
            CanManage = false,
            CanReceive = true,
            CanPublish = false,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.mnq.Sqs;
import com.pulumi.scaleway.mnq.SqsCredentials;
import com.pulumi.scaleway.mnq.SqsCredentialsArgs;
import com.pulumi.scaleway.mnq.inputs.SqsCredentialsPermissionsArgs;
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 Sqs("main");

        var mainSqsCredentials = new SqsCredentials("mainSqsCredentials", SqsCredentialsArgs.builder()
            .projectId(main.projectId())
            .name("sqs-credentials")
            .permissions(SqsCredentialsPermissionsArgs.builder()
                .canManage(false)
                .canReceive(true)
                .canPublish(false)
                .build())
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:mnq:Sqs
  mainSqsCredentials:
    type: scaleway:mnq:SqsCredentials
    name: main
    properties:
      projectId: ${main.projectId}
      name: sqs-credentials
      permissions:
        canManage: false
        canReceive: true
        canPublish: false
Copy

Create SqsCredentials Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SqsCredentials(name: string, args?: SqsCredentialsArgs, opts?: CustomResourceOptions);
@overload
def SqsCredentials(resource_name: str,
                   args: Optional[SqsCredentialsArgs] = None,
                   opts: Optional[ResourceOptions] = None)

@overload
def SqsCredentials(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   name: Optional[str] = None,
                   permissions: Optional[SqsCredentialsPermissionsArgs] = None,
                   project_id: Optional[str] = None,
                   region: Optional[str] = None)
func NewSqsCredentials(ctx *Context, name string, args *SqsCredentialsArgs, opts ...ResourceOption) (*SqsCredentials, error)
public SqsCredentials(string name, SqsCredentialsArgs? args = null, CustomResourceOptions? opts = null)
public SqsCredentials(String name, SqsCredentialsArgs args)
public SqsCredentials(String name, SqsCredentialsArgs args, CustomResourceOptions options)
type: scaleway:mnq:SqsCredentials
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 SqsCredentialsArgs
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 SqsCredentialsArgs
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 SqsCredentialsArgs
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 SqsCredentialsArgs
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. SqsCredentialsArgs
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 sqsCredentialsResource = new Scaleway.Mnq.SqsCredentials("sqsCredentialsResource", new()
{
    Name = "string",
    Permissions = new Scaleway.Mnq.Inputs.SqsCredentialsPermissionsArgs
    {
        CanManage = false,
        CanPublish = false,
        CanReceive = false,
    },
    ProjectId = "string",
    Region = "string",
});
Copy
example, err := mnq.NewSqsCredentials(ctx, "sqsCredentialsResource", &mnq.SqsCredentialsArgs{
	Name: pulumi.String("string"),
	Permissions: &mnq.SqsCredentialsPermissionsArgs{
		CanManage:  pulumi.Bool(false),
		CanPublish: pulumi.Bool(false),
		CanReceive: pulumi.Bool(false),
	},
	ProjectId: pulumi.String("string"),
	Region:    pulumi.String("string"),
})
Copy
var sqsCredentialsResource = new SqsCredentials("sqsCredentialsResource", SqsCredentialsArgs.builder()
    .name("string")
    .permissions(SqsCredentialsPermissionsArgs.builder()
        .canManage(false)
        .canPublish(false)
        .canReceive(false)
        .build())
    .projectId("string")
    .region("string")
    .build());
Copy
sqs_credentials_resource = scaleway.mnq.SqsCredentials("sqsCredentialsResource",
    name="string",
    permissions={
        "can_manage": False,
        "can_publish": False,
        "can_receive": False,
    },
    project_id="string",
    region="string")
Copy
const sqsCredentialsResource = new scaleway.mnq.SqsCredentials("sqsCredentialsResource", {
    name: "string",
    permissions: {
        canManage: false,
        canPublish: false,
        canReceive: false,
    },
    projectId: "string",
    region: "string",
});
Copy
type: scaleway:mnq:SqsCredentials
properties:
    name: string
    permissions:
        canManage: false
        canPublish: false
        canReceive: false
    projectId: string
    region: string
Copy

SqsCredentials 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 SqsCredentials resource accepts the following input properties:

Name string
The unique name of the SQS credentials.
Permissions Pulumiverse.Scaleway.Mnq.Inputs.SqsCredentialsPermissions
. List of permissions associated with these credentials. Only one of the following permissions may be set:
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project in which SQS is enabled.
Region Changes to this property will trigger replacement. string
region). The region in which SQS is enabled.
Name string
The unique name of the SQS credentials.
Permissions SqsCredentialsPermissionsArgs
. List of permissions associated with these credentials. Only one of the following permissions may be set:
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project in which SQS is enabled.
Region Changes to this property will trigger replacement. string
region). The region in which SQS is enabled.
name String
The unique name of the SQS credentials.
permissions SqsCredentialsPermissions
. List of permissions associated with these credentials. Only one of the following permissions may be set:
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project in which SQS is enabled.
region Changes to this property will trigger replacement. String
region). The region in which SQS is enabled.
name string
The unique name of the SQS credentials.
permissions SqsCredentialsPermissions
. List of permissions associated with these credentials. Only one of the following permissions may be set:
projectId Changes to this property will trigger replacement. string
project_id) The ID of the Project in which SQS is enabled.
region Changes to this property will trigger replacement. string
region). The region in which SQS is enabled.
name str
The unique name of the SQS credentials.
permissions SqsCredentialsPermissionsArgs
. List of permissions associated with these credentials. Only one of the following permissions may be set:
project_id Changes to this property will trigger replacement. str
project_id) The ID of the Project in which SQS is enabled.
region Changes to this property will trigger replacement. str
region). The region in which SQS is enabled.
name String
The unique name of the SQS credentials.
permissions Property Map
. List of permissions associated with these credentials. Only one of the following permissions may be set:
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project in which SQS is enabled.
region Changes to this property will trigger replacement. String
region). The region in which SQS is enabled.

Outputs

All input properties are implicitly available as output properties. Additionally, the SqsCredentials resource produces the following output properties:

AccessKey string
The ID of the key.
Id string
The provider-assigned unique ID for this managed resource.
SecretKey string
The secret value of the key.
AccessKey string
The ID of the key.
Id string
The provider-assigned unique ID for this managed resource.
SecretKey string
The secret value of the key.
accessKey String
The ID of the key.
id String
The provider-assigned unique ID for this managed resource.
secretKey String
The secret value of the key.
accessKey string
The ID of the key.
id string
The provider-assigned unique ID for this managed resource.
secretKey string
The secret value of the key.
access_key str
The ID of the key.
id str
The provider-assigned unique ID for this managed resource.
secret_key str
The secret value of the key.
accessKey String
The ID of the key.
id String
The provider-assigned unique ID for this managed resource.
secretKey String
The secret value of the key.

Look up Existing SqsCredentials Resource

Get an existing SqsCredentials 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?: SqsCredentialsState, opts?: CustomResourceOptions): SqsCredentials
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_key: Optional[str] = None,
        name: Optional[str] = None,
        permissions: Optional[SqsCredentialsPermissionsArgs] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None,
        secret_key: Optional[str] = None) -> SqsCredentials
func GetSqsCredentials(ctx *Context, name string, id IDInput, state *SqsCredentialsState, opts ...ResourceOption) (*SqsCredentials, error)
public static SqsCredentials Get(string name, Input<string> id, SqsCredentialsState? state, CustomResourceOptions? opts = null)
public static SqsCredentials get(String name, Output<String> id, SqsCredentialsState state, CustomResourceOptions options)
resources:  _:    type: scaleway:mnq:SqsCredentials    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:
AccessKey string
The ID of the key.
Name string
The unique name of the SQS credentials.
Permissions Pulumiverse.Scaleway.Mnq.Inputs.SqsCredentialsPermissions
. List of permissions associated with these credentials. Only one of the following permissions may be set:
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project in which SQS is enabled.
Region Changes to this property will trigger replacement. string
region). The region in which SQS is enabled.
SecretKey string
The secret value of the key.
AccessKey string
The ID of the key.
Name string
The unique name of the SQS credentials.
Permissions SqsCredentialsPermissionsArgs
. List of permissions associated with these credentials. Only one of the following permissions may be set:
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project in which SQS is enabled.
Region Changes to this property will trigger replacement. string
region). The region in which SQS is enabled.
SecretKey string
The secret value of the key.
accessKey String
The ID of the key.
name String
The unique name of the SQS credentials.
permissions SqsCredentialsPermissions
. List of permissions associated with these credentials. Only one of the following permissions may be set:
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project in which SQS is enabled.
region Changes to this property will trigger replacement. String
region). The region in which SQS is enabled.
secretKey String
The secret value of the key.
accessKey string
The ID of the key.
name string
The unique name of the SQS credentials.
permissions SqsCredentialsPermissions
. List of permissions associated with these credentials. Only one of the following permissions may be set:
projectId Changes to this property will trigger replacement. string
project_id) The ID of the Project in which SQS is enabled.
region Changes to this property will trigger replacement. string
region). The region in which SQS is enabled.
secretKey string
The secret value of the key.
access_key str
The ID of the key.
name str
The unique name of the SQS credentials.
permissions SqsCredentialsPermissionsArgs
. List of permissions associated with these credentials. Only one of the following permissions may be set:
project_id Changes to this property will trigger replacement. str
project_id) The ID of the Project in which SQS is enabled.
region Changes to this property will trigger replacement. str
region). The region in which SQS is enabled.
secret_key str
The secret value of the key.
accessKey String
The ID of the key.
name String
The unique name of the SQS credentials.
permissions Property Map
. List of permissions associated with these credentials. Only one of the following permissions may be set:
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project in which SQS is enabled.
region Changes to this property will trigger replacement. String
region). The region in which SQS is enabled.
secretKey String
The secret value of the key.

Supporting Types

SqsCredentialsPermissions
, SqsCredentialsPermissionsArgs

CanManage bool
. Defines whether the user can manage the associated resource(s).
CanPublish bool
. Defines whether the user can publish messages to the service.
CanReceive bool
. Defines whether the user can receive messages from the service.
CanManage bool
. Defines whether the user can manage the associated resource(s).
CanPublish bool
. Defines whether the user can publish messages to the service.
CanReceive bool
. Defines whether the user can receive messages from the service.
canManage Boolean
. Defines whether the user can manage the associated resource(s).
canPublish Boolean
. Defines whether the user can publish messages to the service.
canReceive Boolean
. Defines whether the user can receive messages from the service.
canManage boolean
. Defines whether the user can manage the associated resource(s).
canPublish boolean
. Defines whether the user can publish messages to the service.
canReceive boolean
. Defines whether the user can receive messages from the service.
can_manage bool
. Defines whether the user can manage the associated resource(s).
can_publish bool
. Defines whether the user can publish messages to the service.
can_receive bool
. Defines whether the user can receive messages from the service.
canManage Boolean
. Defines whether the user can manage the associated resource(s).
canPublish Boolean
. Defines whether the user can publish messages to the service.
canReceive Boolean
. Defines whether the user can receive messages from the service.

Import

SQS credentials can be imported using {region}/{id}, e.g.

bash

$ pulumi import scaleway:mnq/sqsCredentials:SqsCredentials main fr-par/11111111111111111111111111111111
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.