1. Packages
  2. Scaleway
  3. API Docs
  4. MnqNatsAccount
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

scaleway.MnqNatsAccount

Explore with Pulumi AI

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    Creates and manages Scaleway Messaging and Queuing NATS accounts. For further information, see our main documentation To use the Scaleway provider with the official NATS JetStream provider, check out the corresponding guide.

    Example Usage

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const main = new scaleway.MnqNatsAccount("main", {name: "nats-account"});
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    main = scaleway.MnqNatsAccount("main", name="nats-account")
    
    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.NewMnqNatsAccount(ctx, "main", &scaleway.MnqNatsAccountArgs{
    			Name: pulumi.String("nats-account"),
    		})
    		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 main = new Scaleway.MnqNatsAccount("main", new()
        {
            Name = "nats-account",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.MnqNatsAccount;
    import com.pulumi.scaleway.MnqNatsAccountArgs;
    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 MnqNatsAccount("main", MnqNatsAccountArgs.builder()
                .name("nats-account")
                .build());
    
        }
    }
    
    resources:
      main:
        type: scaleway:MnqNatsAccount
        properties:
          name: nats-account
    

    Create MnqNatsAccount Resource

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

    Constructor syntax

    new MnqNatsAccount(name: string, args?: MnqNatsAccountArgs, opts?: CustomResourceOptions);
    @overload
    def MnqNatsAccount(resource_name: str,
                       args: Optional[MnqNatsAccountArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def MnqNatsAccount(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       name: Optional[str] = None,
                       project_id: Optional[str] = None,
                       region: Optional[str] = None)
    func NewMnqNatsAccount(ctx *Context, name string, args *MnqNatsAccountArgs, opts ...ResourceOption) (*MnqNatsAccount, error)
    public MnqNatsAccount(string name, MnqNatsAccountArgs? args = null, CustomResourceOptions? opts = null)
    public MnqNatsAccount(String name, MnqNatsAccountArgs args)
    public MnqNatsAccount(String name, MnqNatsAccountArgs args, CustomResourceOptions options)
    
    type: scaleway:MnqNatsAccount
    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 MnqNatsAccountArgs
    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 MnqNatsAccountArgs
    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 MnqNatsAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MnqNatsAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MnqNatsAccountArgs
    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 mnqNatsAccountResource = new Scaleway.MnqNatsAccount("mnqNatsAccountResource", new()
    {
        Name = "string",
        ProjectId = "string",
        Region = "string",
    });
    
    example, err := scaleway.NewMnqNatsAccount(ctx, "mnqNatsAccountResource", &scaleway.MnqNatsAccountArgs{
    	Name:      pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    	Region:    pulumi.String("string"),
    })
    
    var mnqNatsAccountResource = new MnqNatsAccount("mnqNatsAccountResource", MnqNatsAccountArgs.builder()
        .name("string")
        .projectId("string")
        .region("string")
        .build());
    
    mnq_nats_account_resource = scaleway.MnqNatsAccount("mnqNatsAccountResource",
        name="string",
        project_id="string",
        region="string")
    
    const mnqNatsAccountResource = new scaleway.MnqNatsAccount("mnqNatsAccountResource", {
        name: "string",
        projectId: "string",
        region: "string",
    });
    
    type: scaleway:MnqNatsAccount
    properties:
        name: string
        projectId: string
        region: string
    

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

    Name string
    The unique name of the NATS account.
    ProjectId string
    project_id) The ID of the Project the account is associated with.
    Region string
    region). The region in which the account should be created.
    Name string
    The unique name of the NATS account.
    ProjectId string
    project_id) The ID of the Project the account is associated with.
    Region string
    region). The region in which the account should be created.
    name String
    The unique name of the NATS account.
    projectId String
    project_id) The ID of the Project the account is associated with.
    region String
    region). The region in which the account should be created.
    name string
    The unique name of the NATS account.
    projectId string
    project_id) The ID of the Project the account is associated with.
    region string
    region). The region in which the account should be created.
    name str
    The unique name of the NATS account.
    project_id str
    project_id) The ID of the Project the account is associated with.
    region str
    region). The region in which the account should be created.
    name String
    The unique name of the NATS account.
    projectId String
    project_id) The ID of the Project the account is associated with.
    region String
    region). The region in which the account should be created.

    Outputs

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

    Endpoint string
    The endpoint of the NATS service for this account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Endpoint string
    The endpoint of the NATS service for this account.
    Id string
    The provider-assigned unique ID for this managed resource.
    endpoint String
    The endpoint of the NATS service for this account.
    id String
    The provider-assigned unique ID for this managed resource.
    endpoint string
    The endpoint of the NATS service for this account.
    id string
    The provider-assigned unique ID for this managed resource.
    endpoint str
    The endpoint of the NATS service for this account.
    id str
    The provider-assigned unique ID for this managed resource.
    endpoint String
    The endpoint of the NATS service for this account.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MnqNatsAccount Resource

    Get an existing MnqNatsAccount 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?: MnqNatsAccountState, opts?: CustomResourceOptions): MnqNatsAccount
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            endpoint: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None) -> MnqNatsAccount
    func GetMnqNatsAccount(ctx *Context, name string, id IDInput, state *MnqNatsAccountState, opts ...ResourceOption) (*MnqNatsAccount, error)
    public static MnqNatsAccount Get(string name, Input<string> id, MnqNatsAccountState? state, CustomResourceOptions? opts = null)
    public static MnqNatsAccount get(String name, Output<String> id, MnqNatsAccountState 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.
    The following state arguments are supported:
    Endpoint string
    The endpoint of the NATS service for this account.
    Name string
    The unique name of the NATS account.
    ProjectId string
    project_id) The ID of the Project the account is associated with.
    Region string
    region). The region in which the account should be created.
    Endpoint string
    The endpoint of the NATS service for this account.
    Name string
    The unique name of the NATS account.
    ProjectId string
    project_id) The ID of the Project the account is associated with.
    Region string
    region). The region in which the account should be created.
    endpoint String
    The endpoint of the NATS service for this account.
    name String
    The unique name of the NATS account.
    projectId String
    project_id) The ID of the Project the account is associated with.
    region String
    region). The region in which the account should be created.
    endpoint string
    The endpoint of the NATS service for this account.
    name string
    The unique name of the NATS account.
    projectId string
    project_id) The ID of the Project the account is associated with.
    region string
    region). The region in which the account should be created.
    endpoint str
    The endpoint of the NATS service for this account.
    name str
    The unique name of the NATS account.
    project_id str
    project_id) The ID of the Project the account is associated with.
    region str
    region). The region in which the account should be created.
    endpoint String
    The endpoint of the NATS service for this account.
    name String
    The unique name of the NATS account.
    projectId String
    project_id) The ID of the Project the account is associated with.
    region String
    region). The region in which the account should be created.

    Import

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

    bash

    $ pulumi import scaleway:index/mnqNatsAccount:MnqNatsAccount 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.
    scaleway logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse