1. Packages
  2. Gcorelabs Provider
  3. API Docs
  4. LaasTopic
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

gcorelabs.LaasTopic

Explore with Pulumi AI

gcorelabs logo
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

    Represent LaaS topic

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const test = new gcore.index.Gcore_laas_topic("test", {
        regionId: 1,
        projectId: 1,
        name: "test",
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    test = gcore.index.Gcore_laas_topic("test",
        region_id=1,
        project_id=1,
        name=test)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcore/sdk/go/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gcore.NewGcore_laas_topic(ctx, "test", &gcore.Gcore_laas_topicArgs{
    			RegionId:  1,
    			ProjectId: 1,
    			Name:      "test",
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Gcore.Index.Gcore_laas_topic("test", new()
        {
            RegionId = 1,
            ProjectId = 1,
            Name = "test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.gcore_laas_topic;
    import com.pulumi.gcore.Gcore_laas_topicArgs;
    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 test = new Gcore_laas_topic("test", Gcore_laas_topicArgs.builder()
                .regionId(1)
                .projectId(1)
                .name("test")
                .build());
    
        }
    }
    
    resources:
      test:
        type: gcore:gcore_laas_topic
        properties:
          regionId: 1
          projectId: 1
          name: test
    

    Create LaasTopic Resource

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

    Constructor syntax

    new LaasTopic(name: string, args?: LaasTopicArgs, opts?: CustomResourceOptions);
    @overload
    def LaasTopic(resource_name: str,
                  args: Optional[LaasTopicArgs] = None,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def LaasTopic(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  laas_topic_id: Optional[str] = None,
                  name: Optional[str] = None,
                  project_id: Optional[float] = None,
                  project_name: Optional[str] = None,
                  region_id: Optional[float] = None,
                  region_name: Optional[str] = None)
    func NewLaasTopic(ctx *Context, name string, args *LaasTopicArgs, opts ...ResourceOption) (*LaasTopic, error)
    public LaasTopic(string name, LaasTopicArgs? args = null, CustomResourceOptions? opts = null)
    public LaasTopic(String name, LaasTopicArgs args)
    public LaasTopic(String name, LaasTopicArgs args, CustomResourceOptions options)
    
    type: gcorelabs:LaasTopic
    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 LaasTopicArgs
    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 LaasTopicArgs
    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 LaasTopicArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LaasTopicArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LaasTopicArgs
    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 laasTopicResource = new Gcorelabs.LaasTopic("laasTopicResource", new()
    {
        LaasTopicId = "string",
        Name = "string",
        ProjectId = 0,
        ProjectName = "string",
        RegionId = 0,
        RegionName = "string",
    });
    
    example, err := gcorelabs.NewLaasTopic(ctx, "laasTopicResource", &gcorelabs.LaasTopicArgs{
    	LaasTopicId: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	ProjectId:   pulumi.Float64(0),
    	ProjectName: pulumi.String("string"),
    	RegionId:    pulumi.Float64(0),
    	RegionName:  pulumi.String("string"),
    })
    
    var laasTopicResource = new LaasTopic("laasTopicResource", LaasTopicArgs.builder()
        .laasTopicId("string")
        .name("string")
        .projectId(0)
        .projectName("string")
        .regionId(0)
        .regionName("string")
        .build());
    
    laas_topic_resource = gcorelabs.LaasTopic("laasTopicResource",
        laas_topic_id="string",
        name="string",
        project_id=0,
        project_name="string",
        region_id=0,
        region_name="string")
    
    const laasTopicResource = new gcorelabs.LaasTopic("laasTopicResource", {
        laasTopicId: "string",
        name: "string",
        projectId: 0,
        projectName: "string",
        regionId: 0,
        regionName: "string",
    });
    
    type: gcorelabs:LaasTopic
    properties:
        laasTopicId: string
        name: string
        projectId: 0
        projectName: string
        regionId: 0
        regionName: string
    

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

    LaasTopicId string
    The ID of this resource.
    Name string
    ProjectId double
    ProjectName string
    RegionId double
    RegionName string
    LaasTopicId string
    The ID of this resource.
    Name string
    ProjectId float64
    ProjectName string
    RegionId float64
    RegionName string
    laasTopicId String
    The ID of this resource.
    name String
    projectId Double
    projectName String
    regionId Double
    regionName String
    laasTopicId string
    The ID of this resource.
    name string
    projectId number
    projectName string
    regionId number
    regionName string
    laas_topic_id str
    The ID of this resource.
    name str
    project_id float
    project_name str
    region_id float
    region_name str
    laasTopicId String
    The ID of this resource.
    name String
    projectId Number
    projectName String
    regionId Number
    regionName String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LaasTopic Resource

    Get an existing LaasTopic 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?: LaasTopicState, opts?: CustomResourceOptions): LaasTopic
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            laas_topic_id: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[float] = None,
            project_name: Optional[str] = None,
            region_id: Optional[float] = None,
            region_name: Optional[str] = None) -> LaasTopic
    func GetLaasTopic(ctx *Context, name string, id IDInput, state *LaasTopicState, opts ...ResourceOption) (*LaasTopic, error)
    public static LaasTopic Get(string name, Input<string> id, LaasTopicState? state, CustomResourceOptions? opts = null)
    public static LaasTopic get(String name, Output<String> id, LaasTopicState state, CustomResourceOptions options)
    resources:  _:    type: gcorelabs:LaasTopic    get:      id: ${id}
    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:
    LaasTopicId string
    The ID of this resource.
    Name string
    ProjectId double
    ProjectName string
    RegionId double
    RegionName string
    LaasTopicId string
    The ID of this resource.
    Name string
    ProjectId float64
    ProjectName string
    RegionId float64
    RegionName string
    laasTopicId String
    The ID of this resource.
    name String
    projectId Double
    projectName String
    regionId Double
    regionName String
    laasTopicId string
    The ID of this resource.
    name string
    projectId number
    projectName string
    regionId number
    regionName string
    laas_topic_id str
    The ID of this resource.
    name str
    project_id float
    project_name str
    region_id float
    region_name str
    laasTopicId String
    The ID of this resource.
    name String
    projectId Number
    projectName String
    regionId Number
    regionName String

    Import

    import using <project_id>:<region_id>:<topic_name> format

    $ pulumi import gcorelabs:index/laasTopic:LaasTopic test 1:6:test_topic
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    gcorelabs g-core/terraform-provider-gcorelabs
    License
    Notes
    This Pulumi package is based on the gcorelabs Terraform Provider.
    gcorelabs logo
    gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core