1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. LtsStreamV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.LtsStreamV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for LTS log group you can get at documentation portal

    Manage a log stream resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const groupId = config.requireObject("groupId");
    const test = new opentelekomcloud.LtsStreamV2("test", {
        groupId: groupId,
        streamName: "test_stream",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    group_id = config.require_object("groupId")
    test = opentelekomcloud.LtsStreamV2("test",
        group_id=group_id,
        stream_name="test_stream")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		groupId := cfg.RequireObject("groupId")
    		_, err := opentelekomcloud.NewLtsStreamV2(ctx, "test", &opentelekomcloud.LtsStreamV2Args{
    			GroupId:    pulumi.Any(groupId),
    			StreamName: pulumi.String("test_stream"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var groupId = config.RequireObject<dynamic>("groupId");
        var test = new Opentelekomcloud.LtsStreamV2("test", new()
        {
            GroupId = groupId,
            StreamName = "test_stream",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LtsStreamV2;
    import com.pulumi.opentelekomcloud.LtsStreamV2Args;
    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) {
            final var config = ctx.config();
            final var groupId = config.get("groupId");
            var test = new LtsStreamV2("test", LtsStreamV2Args.builder()
                .groupId(groupId)
                .streamName("test_stream")
                .build());
    
        }
    }
    
    configuration:
      groupId:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:LtsStreamV2
        properties:
          groupId: ${groupId}
          streamName: test_stream
    

    Create LtsStreamV2 Resource

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

    Constructor syntax

    new LtsStreamV2(name: string, args: LtsStreamV2Args, opts?: CustomResourceOptions);
    @overload
    def LtsStreamV2(resource_name: str,
                    args: LtsStreamV2Args,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def LtsStreamV2(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    group_id: Optional[str] = None,
                    stream_name: Optional[str] = None,
                    lts_stream_v2_id: Optional[str] = None,
                    stream_alias: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    ttl_in_days: Optional[float] = None)
    func NewLtsStreamV2(ctx *Context, name string, args LtsStreamV2Args, opts ...ResourceOption) (*LtsStreamV2, error)
    public LtsStreamV2(string name, LtsStreamV2Args args, CustomResourceOptions? opts = null)
    public LtsStreamV2(String name, LtsStreamV2Args args)
    public LtsStreamV2(String name, LtsStreamV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:LtsStreamV2
    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 LtsStreamV2Args
    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 LtsStreamV2Args
    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 LtsStreamV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LtsStreamV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LtsStreamV2Args
    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 ltsStreamV2Resource = new Opentelekomcloud.LtsStreamV2("ltsStreamV2Resource", new()
    {
        GroupId = "string",
        StreamName = "string",
        LtsStreamV2Id = "string",
        StreamAlias = "string",
        Tags = 
        {
            { "string", "string" },
        },
        TtlInDays = 0,
    });
    
    example, err := opentelekomcloud.NewLtsStreamV2(ctx, "ltsStreamV2Resource", &opentelekomcloud.LtsStreamV2Args{
    	GroupId:       pulumi.String("string"),
    	StreamName:    pulumi.String("string"),
    	LtsStreamV2Id: pulumi.String("string"),
    	StreamAlias:   pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TtlInDays: pulumi.Float64(0),
    })
    
    var ltsStreamV2Resource = new LtsStreamV2("ltsStreamV2Resource", LtsStreamV2Args.builder()
        .groupId("string")
        .streamName("string")
        .ltsStreamV2Id("string")
        .streamAlias("string")
        .tags(Map.of("string", "string"))
        .ttlInDays(0)
        .build());
    
    lts_stream_v2_resource = opentelekomcloud.LtsStreamV2("ltsStreamV2Resource",
        group_id="string",
        stream_name="string",
        lts_stream_v2_id="string",
        stream_alias="string",
        tags={
            "string": "string",
        },
        ttl_in_days=0)
    
    const ltsStreamV2Resource = new opentelekomcloud.LtsStreamV2("ltsStreamV2Resource", {
        groupId: "string",
        streamName: "string",
        ltsStreamV2Id: "string",
        streamAlias: "string",
        tags: {
            string: "string",
        },
        ttlInDays: 0,
    });
    
    type: opentelekomcloud:LtsStreamV2
    properties:
        groupId: string
        ltsStreamV2Id: string
        streamAlias: string
        streamName: string
        tags:
            string: string
        ttlInDays: 0
    

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

    GroupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    StreamName string
    Specifies the log stream name. Changing this parameter will create a new resource.
    LtsStreamV2Id string
    The log stream ID.
    StreamAlias string
    Tags Dictionary<string, string>
    Specifies the key/value pairs of the log stream.
    TtlInDays double
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.
    GroupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    StreamName string
    Specifies the log stream name. Changing this parameter will create a new resource.
    LtsStreamV2Id string
    The log stream ID.
    StreamAlias string
    Tags map[string]string
    Specifies the key/value pairs of the log stream.
    TtlInDays float64
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.
    groupId String
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    streamName String
    Specifies the log stream name. Changing this parameter will create a new resource.
    ltsStreamV2Id String
    The log stream ID.
    streamAlias String
    tags Map<String,String>
    Specifies the key/value pairs of the log stream.
    ttlInDays Double
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.
    groupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    streamName string
    Specifies the log stream name. Changing this parameter will create a new resource.
    ltsStreamV2Id string
    The log stream ID.
    streamAlias string
    tags {[key: string]: string}
    Specifies the key/value pairs of the log stream.
    ttlInDays number
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.
    group_id str
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    stream_name str
    Specifies the log stream name. Changing this parameter will create a new resource.
    lts_stream_v2_id str
    The log stream ID.
    stream_alias str
    tags Mapping[str, str]
    Specifies the key/value pairs of the log stream.
    ttl_in_days float
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.
    groupId String
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    streamName String
    Specifies the log stream name. Changing this parameter will create a new resource.
    ltsStreamV2Id String
    The log stream ID.
    streamAlias String
    tags Map<String>
    Specifies the key/value pairs of the log stream.
    ttlInDays Number
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.

    Outputs

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

    CreatedAt string
    The creation time of the log stream.
    EnterpriseProjectId string
    Shows the enterprise project ID to which the log stream belongs.
    FilterCount double
    Number of log stream filters.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    Shows the region in the log group resource created.
    CreatedAt string
    The creation time of the log stream.
    EnterpriseProjectId string
    Shows the enterprise project ID to which the log stream belongs.
    FilterCount float64
    Number of log stream filters.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    Shows the region in the log group resource created.
    createdAt String
    The creation time of the log stream.
    enterpriseProjectId String
    Shows the enterprise project ID to which the log stream belongs.
    filterCount Double
    Number of log stream filters.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    Shows the region in the log group resource created.
    createdAt string
    The creation time of the log stream.
    enterpriseProjectId string
    Shows the enterprise project ID to which the log stream belongs.
    filterCount number
    Number of log stream filters.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    Shows the region in the log group resource created.
    created_at str
    The creation time of the log stream.
    enterprise_project_id str
    Shows the enterprise project ID to which the log stream belongs.
    filter_count float
    Number of log stream filters.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    Shows the region in the log group resource created.
    createdAt String
    The creation time of the log stream.
    enterpriseProjectId String
    Shows the enterprise project ID to which the log stream belongs.
    filterCount Number
    Number of log stream filters.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    Shows the region in the log group resource created.

    Look up Existing LtsStreamV2 Resource

    Get an existing LtsStreamV2 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?: LtsStreamV2State, opts?: CustomResourceOptions): LtsStreamV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            enterprise_project_id: Optional[str] = None,
            filter_count: Optional[float] = None,
            group_id: Optional[str] = None,
            lts_stream_v2_id: Optional[str] = None,
            region: Optional[str] = None,
            stream_alias: Optional[str] = None,
            stream_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            ttl_in_days: Optional[float] = None) -> LtsStreamV2
    func GetLtsStreamV2(ctx *Context, name string, id IDInput, state *LtsStreamV2State, opts ...ResourceOption) (*LtsStreamV2, error)
    public static LtsStreamV2 Get(string name, Input<string> id, LtsStreamV2State? state, CustomResourceOptions? opts = null)
    public static LtsStreamV2 get(String name, Output<String> id, LtsStreamV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:LtsStreamV2    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:
    CreatedAt string
    The creation time of the log stream.
    EnterpriseProjectId string
    Shows the enterprise project ID to which the log stream belongs.
    FilterCount double
    Number of log stream filters.
    GroupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    LtsStreamV2Id string
    The log stream ID.
    Region string
    Shows the region in the log group resource created.
    StreamAlias string
    StreamName string
    Specifies the log stream name. Changing this parameter will create a new resource.
    Tags Dictionary<string, string>
    Specifies the key/value pairs of the log stream.
    TtlInDays double
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.
    CreatedAt string
    The creation time of the log stream.
    EnterpriseProjectId string
    Shows the enterprise project ID to which the log stream belongs.
    FilterCount float64
    Number of log stream filters.
    GroupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    LtsStreamV2Id string
    The log stream ID.
    Region string
    Shows the region in the log group resource created.
    StreamAlias string
    StreamName string
    Specifies the log stream name. Changing this parameter will create a new resource.
    Tags map[string]string
    Specifies the key/value pairs of the log stream.
    TtlInDays float64
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.
    createdAt String
    The creation time of the log stream.
    enterpriseProjectId String
    Shows the enterprise project ID to which the log stream belongs.
    filterCount Double
    Number of log stream filters.
    groupId String
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    ltsStreamV2Id String
    The log stream ID.
    region String
    Shows the region in the log group resource created.
    streamAlias String
    streamName String
    Specifies the log stream name. Changing this parameter will create a new resource.
    tags Map<String,String>
    Specifies the key/value pairs of the log stream.
    ttlInDays Double
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.
    createdAt string
    The creation time of the log stream.
    enterpriseProjectId string
    Shows the enterprise project ID to which the log stream belongs.
    filterCount number
    Number of log stream filters.
    groupId string
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    ltsStreamV2Id string
    The log stream ID.
    region string
    Shows the region in the log group resource created.
    streamAlias string
    streamName string
    Specifies the log stream name. Changing this parameter will create a new resource.
    tags {[key: string]: string}
    Specifies the key/value pairs of the log stream.
    ttlInDays number
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.
    created_at str
    The creation time of the log stream.
    enterprise_project_id str
    Shows the enterprise project ID to which the log stream belongs.
    filter_count float
    Number of log stream filters.
    group_id str
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    lts_stream_v2_id str
    The log stream ID.
    region str
    Shows the region in the log group resource created.
    stream_alias str
    stream_name str
    Specifies the log stream name. Changing this parameter will create a new resource.
    tags Mapping[str, str]
    Specifies the key/value pairs of the log stream.
    ttl_in_days float
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.
    createdAt String
    The creation time of the log stream.
    enterpriseProjectId String
    Shows the enterprise project ID to which the log stream belongs.
    filterCount Number
    Number of log stream filters.
    groupId String
    Specifies the ID of a created log group. Changing this parameter will create a new resource.
    ltsStreamV2Id String
    The log stream ID.
    region String
    Shows the region in the log group resource created.
    streamAlias String
    streamName String
    Specifies the log stream name. Changing this parameter will create a new resource.
    tags Map<String>
    Specifies the key/value pairs of the log stream.
    ttlInDays Number
    Specifies the log expiration time (days). The valid value is a non-zero integer from -1 to 365, defaults to -1 which means inherit the log group settings.

    Import

    The log stream can be imported using the group ID and stream ID separated by a slash, e.g.

    bash

    $ pulumi import opentelekomcloud:index/ltsStreamV2:LtsStreamV2 test <group_id>/<id>
    

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud