scaleway.MnqSqsCredentials
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 mainMnqSqs = new scaleway.MnqSqs("mainMnqSqs", {});
const mainMnqSqsCredentials = new scaleway.MnqSqsCredentials("mainMnqSqsCredentials", {
projectId: mainMnqSqs.projectId,
permissions: {
canManage: false,
canReceive: true,
canPublish: false,
},
});
import pulumi
import pulumiverse_scaleway as scaleway
main_mnq_sqs = scaleway.MnqSqs("mainMnqSqs")
main_mnq_sqs_credentials = scaleway.MnqSqsCredentials("mainMnqSqsCredentials",
project_id=main_mnq_sqs.project_id,
permissions=scaleway.MnqSqsCredentialsPermissionsArgs(
can_manage=False,
can_receive=True,
can_publish=False,
))
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 {
mainMnqSqs, err := scaleway.NewMnqSqs(ctx, "mainMnqSqs", nil)
if err != nil {
return err
}
_, err = scaleway.NewMnqSqsCredentials(ctx, "mainMnqSqsCredentials", &scaleway.MnqSqsCredentialsArgs{
ProjectId: mainMnqSqs.ProjectId,
Permissions: &scaleway.MnqSqsCredentialsPermissionsArgs{
CanManage: pulumi.Bool(false),
CanReceive: pulumi.Bool(true),
CanPublish: pulumi.Bool(false),
},
})
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 mainMnqSqs = new Scaleway.MnqSqs("mainMnqSqs");
var mainMnqSqsCredentials = new Scaleway.MnqSqsCredentials("mainMnqSqsCredentials", new()
{
ProjectId = mainMnqSqs.ProjectId,
Permissions = new Scaleway.Inputs.MnqSqsCredentialsPermissionsArgs
{
CanManage = false,
CanReceive = true,
CanPublish = false,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.MnqSqs;
import com.pulumi.scaleway.MnqSqsCredentials;
import com.pulumi.scaleway.MnqSqsCredentialsArgs;
import com.pulumi.scaleway.inputs.MnqSqsCredentialsPermissionsArgs;
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 mainMnqSqs = new MnqSqs("mainMnqSqs");
var mainMnqSqsCredentials = new MnqSqsCredentials("mainMnqSqsCredentials", MnqSqsCredentialsArgs.builder()
.projectId(mainMnqSqs.projectId())
.permissions(MnqSqsCredentialsPermissionsArgs.builder()
.canManage(false)
.canReceive(true)
.canPublish(false)
.build())
.build());
}
}
resources:
mainMnqSqs:
type: scaleway:MnqSqs
mainMnqSqsCredentials:
type: scaleway:MnqSqsCredentials
properties:
projectId: ${mainMnqSqs.projectId}
permissions:
canManage: false
canReceive: true
canPublish: false
Create MnqSqsCredentials Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MnqSqsCredentials(name: string, args?: MnqSqsCredentialsArgs, opts?: CustomResourceOptions);
@overload
def MnqSqsCredentials(resource_name: str,
args: Optional[MnqSqsCredentialsArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def MnqSqsCredentials(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
permissions: Optional[MnqSqsCredentialsPermissionsArgs] = None,
project_id: Optional[str] = None,
region: Optional[str] = None)
func NewMnqSqsCredentials(ctx *Context, name string, args *MnqSqsCredentialsArgs, opts ...ResourceOption) (*MnqSqsCredentials, error)
public MnqSqsCredentials(string name, MnqSqsCredentialsArgs? args = null, CustomResourceOptions? opts = null)
public MnqSqsCredentials(String name, MnqSqsCredentialsArgs args)
public MnqSqsCredentials(String name, MnqSqsCredentialsArgs args, CustomResourceOptions options)
type: scaleway:MnqSqsCredentials
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MnqSqsCredentialsArgs
- 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 MnqSqsCredentialsArgs
- 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 MnqSqsCredentialsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MnqSqsCredentialsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MnqSqsCredentialsArgs
- 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 mnqSqsCredentialsResource = new Scaleway.MnqSqsCredentials("mnqSqsCredentialsResource", new()
{
Name = "string",
Permissions = new Scaleway.Inputs.MnqSqsCredentialsPermissionsArgs
{
CanManage = false,
CanPublish = false,
CanReceive = false,
},
ProjectId = "string",
Region = "string",
});
example, err := scaleway.NewMnqSqsCredentials(ctx, "mnqSqsCredentialsResource", &scaleway.MnqSqsCredentialsArgs{
Name: pulumi.String("string"),
Permissions: &scaleway.MnqSqsCredentialsPermissionsArgs{
CanManage: pulumi.Bool(false),
CanPublish: pulumi.Bool(false),
CanReceive: pulumi.Bool(false),
},
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
})
var mnqSqsCredentialsResource = new MnqSqsCredentials("mnqSqsCredentialsResource", MnqSqsCredentialsArgs.builder()
.name("string")
.permissions(MnqSqsCredentialsPermissionsArgs.builder()
.canManage(false)
.canPublish(false)
.canReceive(false)
.build())
.projectId("string")
.region("string")
.build());
mnq_sqs_credentials_resource = scaleway.MnqSqsCredentials("mnqSqsCredentialsResource",
name="string",
permissions=scaleway.MnqSqsCredentialsPermissionsArgs(
can_manage=False,
can_publish=False,
can_receive=False,
),
project_id="string",
region="string")
const mnqSqsCredentialsResource = new scaleway.MnqSqsCredentials("mnqSqsCredentialsResource", {
name: "string",
permissions: {
canManage: false,
canPublish: false,
canReceive: false,
},
projectId: "string",
region: "string",
});
type: scaleway:MnqSqsCredentials
properties:
name: string
permissions:
canManage: false
canPublish: false
canReceive: false
projectId: string
region: string
MnqSqsCredentials Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The MnqSqsCredentials resource accepts the following input properties:
- Name string
- The unique name of the SQS credentials.
- Permissions
Pulumiverse.
Scaleway. Inputs. Mnq Sqs Credentials Permissions - . List of permissions associated with these credentials. Only one of the following permissions may be set:
- Project
Id string project_id
) The ID of the Project in which SQS is enabled.- Region string
region
). The region in which SQS is enabled.
- Name string
- The unique name of the SQS credentials.
- Permissions
Mnq
Sqs Credentials Permissions Args - . List of permissions associated with these credentials. Only one of the following permissions may be set:
- Project
Id string project_id
) The ID of the Project in which SQS is enabled.- Region string
region
). The region in which SQS is enabled.
- name String
- The unique name of the SQS credentials.
- permissions
Mnq
Sqs Credentials Permissions - . List of permissions associated with these credentials. Only one of the following permissions may be set:
- project
Id String project_id
) The ID of the Project in which SQS is enabled.- region String
region
). The region in which SQS is enabled.
- name string
- The unique name of the SQS credentials.
- permissions
Mnq
Sqs Credentials Permissions - . List of permissions associated with these credentials. Only one of the following permissions may be set:
- project
Id string project_id
) The ID of the Project in which SQS is enabled.- region string
region
). The region in which SQS is enabled.
- name str
- The unique name of the SQS credentials.
- permissions
Mnq
Sqs Credentials Permissions Args - . List of permissions associated with these credentials. Only one of the following permissions may be set:
- 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.
- 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:
- project
Id String project_id
) The ID of the Project in which SQS is enabled.- region String
region
). The region in which SQS is enabled.
Outputs
All input properties are implicitly available as output properties. Additionally, the MnqSqsCredentials resource produces the following output properties:
- 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.
Look up Existing MnqSqsCredentials Resource
Get an existing MnqSqsCredentials 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?: MnqSqsCredentialsState, opts?: CustomResourceOptions): MnqSqsCredentials
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_key: Optional[str] = None,
name: Optional[str] = None,
permissions: Optional[MnqSqsCredentialsPermissionsArgs] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
secret_key: Optional[str] = None) -> MnqSqsCredentials
func GetMnqSqsCredentials(ctx *Context, name string, id IDInput, state *MnqSqsCredentialsState, opts ...ResourceOption) (*MnqSqsCredentials, error)
public static MnqSqsCredentials Get(string name, Input<string> id, MnqSqsCredentialsState? state, CustomResourceOptions? opts = null)
public static MnqSqsCredentials get(String name, Output<String> id, MnqSqsCredentialsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Access
Key string - The ID of the key.
- Name string
- The unique name of the SQS credentials.
- Permissions
Pulumiverse.
Scaleway. Inputs. Mnq Sqs Credentials Permissions - . List of permissions associated with these credentials. Only one of the following permissions may be set:
- Project
Id string project_id
) The ID of the Project in which SQS is enabled.- Region string
region
). The region in which SQS is enabled.- Secret
Key string - The secret value of the key.
- Access
Key string - The ID of the key.
- Name string
- The unique name of the SQS credentials.
- Permissions
Mnq
Sqs Credentials Permissions Args - . List of permissions associated with these credentials. Only one of the following permissions may be set:
- Project
Id string project_id
) The ID of the Project in which SQS is enabled.- Region string
region
). The region in which SQS is enabled.- Secret
Key string - The secret value of the key.
- access
Key String - The ID of the key.
- name String
- The unique name of the SQS credentials.
- permissions
Mnq
Sqs Credentials Permissions - . List of permissions associated with these credentials. Only one of the following permissions may be set:
- project
Id String project_id
) The ID of the Project in which SQS is enabled.- region String
region
). The region in which SQS is enabled.- secret
Key String - The secret value of the key.
- access
Key string - The ID of the key.
- name string
- The unique name of the SQS credentials.
- permissions
Mnq
Sqs Credentials Permissions - . List of permissions associated with these credentials. Only one of the following permissions may be set:
- project
Id string project_id
) The ID of the Project in which SQS is enabled.- region string
region
). The region in which SQS is enabled.- secret
Key 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
Mnq
Sqs Credentials Permissions Args - . List of permissions associated with these credentials. Only one of the following permissions may be set:
- 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.- secret_
key str - The secret value of the key.
- access
Key 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:
- project
Id String project_id
) The ID of the Project in which SQS is enabled.- region String
region
). The region in which SQS is enabled.- secret
Key String - The secret value of the key.
Supporting Types
MnqSqsCredentialsPermissions, MnqSqsCredentialsPermissionsArgs
- 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.
- 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.
- can
Manage Boolean - . Defines whether the user can manage the associated resource(s).
- can
Publish Boolean - . Defines whether the user can publish messages to the service.
- can
Receive Boolean - . Defines whether the user can receive messages from the service.
- can
Manage boolean - . Defines whether the user can manage the associated resource(s).
- can
Publish boolean - . Defines whether the user can publish messages to the service.
- can
Receive 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.
- can
Manage Boolean - . Defines whether the user can manage the associated resource(s).
- can
Publish Boolean - . Defines whether the user can publish messages to the service.
- can
Receive 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:index/mnqSqsCredentials:MnqSqsCredentials main fr-par/11111111111111111111111111111111
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.