1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. LtsTopic
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.LtsTopic

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manage a log topic resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const testGroup = new flexibleengine.LtsGroup("testGroup", {groupName: "test_group"});
    const testTopic = new flexibleengine.LtsTopic("testTopic", {
        groupId: testGroup.ltsGroupId,
        topicName: "test1",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    test_group = flexibleengine.LtsGroup("testGroup", group_name="test_group")
    test_topic = flexibleengine.LtsTopic("testTopic",
        group_id=test_group.lts_group_id,
        topic_name="test1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		testGroup, err := flexibleengine.NewLtsGroup(ctx, "testGroup", &flexibleengine.LtsGroupArgs{
    			GroupName: pulumi.String("test_group"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewLtsTopic(ctx, "testTopic", &flexibleengine.LtsTopicArgs{
    			GroupId:   testGroup.LtsGroupId,
    			TopicName: pulumi.String("test1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var testGroup = new Flexibleengine.LtsGroup("testGroup", new()
        {
            GroupName = "test_group",
        });
    
        var testTopic = new Flexibleengine.LtsTopic("testTopic", new()
        {
            GroupId = testGroup.LtsGroupId,
            TopicName = "test1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.LtsGroup;
    import com.pulumi.flexibleengine.LtsGroupArgs;
    import com.pulumi.flexibleengine.LtsTopic;
    import com.pulumi.flexibleengine.LtsTopicArgs;
    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 testGroup = new LtsGroup("testGroup", LtsGroupArgs.builder()
                .groupName("test_group")
                .build());
    
            var testTopic = new LtsTopic("testTopic", LtsTopicArgs.builder()
                .groupId(testGroup.ltsGroupId())
                .topicName("test1")
                .build());
    
        }
    }
    
    resources:
      testGroup:
        type: flexibleengine:LtsGroup
        properties:
          groupName: test_group
      testTopic:
        type: flexibleengine:LtsTopic
        properties:
          groupId: ${testGroup.ltsGroupId}
          topicName: test1
    

    Create LtsTopic Resource

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

    Constructor syntax

    new LtsTopic(name: string, args: LtsTopicArgs, opts?: CustomResourceOptions);
    @overload
    def LtsTopic(resource_name: str,
                 args: LtsTopicArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def LtsTopic(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 group_id: Optional[str] = None,
                 topic_name: Optional[str] = None,
                 lts_topic_id: Optional[str] = None,
                 region: Optional[str] = None)
    func NewLtsTopic(ctx *Context, name string, args LtsTopicArgs, opts ...ResourceOption) (*LtsTopic, error)
    public LtsTopic(string name, LtsTopicArgs args, CustomResourceOptions? opts = null)
    public LtsTopic(String name, LtsTopicArgs args)
    public LtsTopic(String name, LtsTopicArgs args, CustomResourceOptions options)
    
    type: flexibleengine:LtsTopic
    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 LtsTopicArgs
    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 LtsTopicArgs
    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 LtsTopicArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LtsTopicArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LtsTopicArgs
    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 ltsTopicResource = new Flexibleengine.LtsTopic("ltsTopicResource", new()
    {
        GroupId = "string",
        TopicName = "string",
        LtsTopicId = "string",
        Region = "string",
    });
    
    example, err := flexibleengine.NewLtsTopic(ctx, "ltsTopicResource", &flexibleengine.LtsTopicArgs{
    	GroupId:    pulumi.String("string"),
    	TopicName:  pulumi.String("string"),
    	LtsTopicId: pulumi.String("string"),
    	Region:     pulumi.String("string"),
    })
    
    var ltsTopicResource = new LtsTopic("ltsTopicResource", LtsTopicArgs.builder()
        .groupId("string")
        .topicName("string")
        .ltsTopicId("string")
        .region("string")
        .build());
    
    lts_topic_resource = flexibleengine.LtsTopic("ltsTopicResource",
        group_id="string",
        topic_name="string",
        lts_topic_id="string",
        region="string")
    
    const ltsTopicResource = new flexibleengine.LtsTopic("ltsTopicResource", {
        groupId: "string",
        topicName: "string",
        ltsTopicId: "string",
        region: "string",
    });
    
    type: flexibleengine:LtsTopic
    properties:
        groupId: string
        ltsTopicId: string
        region: string
        topicName: string
    

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

    GroupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    TopicName string
    Specifies the log topic name. Changing this parameter will create a new resource.
    LtsTopicId string
    The log topic ID in UUID format.
    Region string
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.
    GroupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    TopicName string
    Specifies the log topic name. Changing this parameter will create a new resource.
    LtsTopicId string
    The log topic ID in UUID format.
    Region string
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.
    groupId String
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    topicName String
    Specifies the log topic name. Changing this parameter will create a new resource.
    ltsTopicId String
    The log topic ID in UUID format.
    region String
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.
    groupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    topicName string
    Specifies the log topic name. Changing this parameter will create a new resource.
    ltsTopicId string
    The log topic ID in UUID format.
    region string
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.
    group_id str
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    topic_name str
    Specifies the log topic name. Changing this parameter will create a new resource.
    lts_topic_id str
    The log topic ID in UUID format.
    region str
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.
    groupId String
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    topicName String
    Specifies the log topic name. Changing this parameter will create a new resource.
    ltsTopicId String
    The log topic ID in UUID format.
    region String
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.

    Outputs

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

    FilterCount double
    The Number of metric filter.
    Id string
    The provider-assigned unique ID for this managed resource.
    IndexEnabled bool

    Deprecated: Deprecated

    FilterCount float64
    The Number of metric filter.
    Id string
    The provider-assigned unique ID for this managed resource.
    IndexEnabled bool

    Deprecated: Deprecated

    filterCount Double
    The Number of metric filter.
    id String
    The provider-assigned unique ID for this managed resource.
    indexEnabled Boolean

    Deprecated: Deprecated

    filterCount number
    The Number of metric filter.
    id string
    The provider-assigned unique ID for this managed resource.
    indexEnabled boolean

    Deprecated: Deprecated

    filter_count float
    The Number of metric filter.
    id str
    The provider-assigned unique ID for this managed resource.
    index_enabled bool

    Deprecated: Deprecated

    filterCount Number
    The Number of metric filter.
    id String
    The provider-assigned unique ID for this managed resource.
    indexEnabled Boolean

    Deprecated: Deprecated

    Look up Existing LtsTopic Resource

    Get an existing LtsTopic 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?: LtsTopicState, opts?: CustomResourceOptions): LtsTopic
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            filter_count: Optional[float] = None,
            group_id: Optional[str] = None,
            index_enabled: Optional[bool] = None,
            lts_topic_id: Optional[str] = None,
            region: Optional[str] = None,
            topic_name: Optional[str] = None) -> LtsTopic
    func GetLtsTopic(ctx *Context, name string, id IDInput, state *LtsTopicState, opts ...ResourceOption) (*LtsTopic, error)
    public static LtsTopic Get(string name, Input<string> id, LtsTopicState? state, CustomResourceOptions? opts = null)
    public static LtsTopic get(String name, Output<String> id, LtsTopicState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:LtsTopic    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:
    FilterCount double
    The Number of metric filter.
    GroupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    IndexEnabled bool

    Deprecated: Deprecated

    LtsTopicId string
    The log topic ID in UUID format.
    Region string
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.
    TopicName string
    Specifies the log topic name. Changing this parameter will create a new resource.
    FilterCount float64
    The Number of metric filter.
    GroupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    IndexEnabled bool

    Deprecated: Deprecated

    LtsTopicId string
    The log topic ID in UUID format.
    Region string
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.
    TopicName string
    Specifies the log topic name. Changing this parameter will create a new resource.
    filterCount Double
    The Number of metric filter.
    groupId String
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    indexEnabled Boolean

    Deprecated: Deprecated

    ltsTopicId String
    The log topic ID in UUID format.
    region String
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.
    topicName String
    Specifies the log topic name. Changing this parameter will create a new resource.
    filterCount number
    The Number of metric filter.
    groupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    indexEnabled boolean

    Deprecated: Deprecated

    ltsTopicId string
    The log topic ID in UUID format.
    region string
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.
    topicName string
    Specifies the log topic name. Changing this parameter will create a new resource.
    filter_count float
    The Number of metric filter.
    group_id str
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    index_enabled bool

    Deprecated: Deprecated

    lts_topic_id str
    The log topic ID in UUID format.
    region str
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.
    topic_name str
    Specifies the log topic name. Changing this parameter will create a new resource.
    filterCount Number
    The Number of metric filter.
    groupId String
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    indexEnabled Boolean

    Deprecated: Deprecated

    ltsTopicId String
    The log topic ID in UUID format.
    region String
    Specifies the region in which to create the log topic resource. If omitted, the provider-level region will be used. Changing this will create a new log topic resource.
    topicName String
    Specifies the log topic name. Changing this parameter will create a new resource.

    Import

    Log topic can be imported using the group ID and topic ID separated by a slash, e.g.

    $ pulumi import flexibleengine:index/ltsTopic:LtsTopic topic_1 393f2bfd-2244-11ea-adb7-286ed488c87f/137159d3-e3b7-11eb-b952-286ed488cb76
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud