opentelekomcloud.LtsStreamV2
Explore with Pulumi AI
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:
- Group
Id string - Specifies the ID of a created log group. Changing this parameter will create a new resource.
- Stream
Name string - Specifies the log stream name. Changing this parameter will create a new resource.
- Lts
Stream stringV2Id - The log stream ID.
- Stream
Alias string - Dictionary<string, string>
- Specifies the key/value pairs of the log stream.
- Ttl
In doubleDays - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, defaults to-1
which means inherit the log group settings.
- Group
Id string - Specifies the ID of a created log group. Changing this parameter will create a new resource.
- Stream
Name string - Specifies the log stream name. Changing this parameter will create a new resource.
- Lts
Stream stringV2Id - The log stream ID.
- Stream
Alias string - map[string]string
- Specifies the key/value pairs of the log stream.
- Ttl
In float64Days - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, defaults to-1
which means inherit the log group settings.
- group
Id String - Specifies the ID of a created log group. Changing this parameter will create a new resource.
- stream
Name String - Specifies the log stream name. Changing this parameter will create a new resource.
- lts
Stream StringV2Id - The log stream ID.
- stream
Alias String - Map<String,String>
- Specifies the key/value pairs of the log stream.
- ttl
In DoubleDays - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, defaults to-1
which means inherit the log group settings.
- group
Id string - Specifies the ID of a created log group. Changing this parameter will create a new resource.
- stream
Name string - Specifies the log stream name. Changing this parameter will create a new resource.
- lts
Stream stringV2Id - The log stream ID.
- stream
Alias string - {[key: string]: string}
- Specifies the key/value pairs of the log stream.
- ttl
In numberDays - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, 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_ strv2_ id - The log stream ID.
- stream_
alias str - Mapping[str, str]
- Specifies the key/value pairs of the log stream.
- ttl_
in_ floatdays - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, defaults to-1
which means inherit the log group settings.
- group
Id String - Specifies the ID of a created log group. Changing this parameter will create a new resource.
- stream
Name String - Specifies the log stream name. Changing this parameter will create a new resource.
- lts
Stream StringV2Id - The log stream ID.
- stream
Alias String - Map<String>
- Specifies the key/value pairs of the log stream.
- ttl
In NumberDays - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, 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:
- Created
At string - The creation time of the log stream.
- Enterprise
Project stringId - Shows the enterprise project ID to which the log stream belongs.
- Filter
Count 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.
- Created
At string - The creation time of the log stream.
- Enterprise
Project stringId - Shows the enterprise project ID to which the log stream belongs.
- Filter
Count 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.
- created
At String - The creation time of the log stream.
- enterprise
Project StringId - Shows the enterprise project ID to which the log stream belongs.
- filter
Count 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.
- created
At string - The creation time of the log stream.
- enterprise
Project stringId - Shows the enterprise project ID to which the log stream belongs.
- filter
Count 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_ strid - 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.
- created
At String - The creation time of the log stream.
- enterprise
Project StringId - Shows the enterprise project ID to which the log stream belongs.
- filter
Count 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.
- Created
At string - The creation time of the log stream.
- Enterprise
Project stringId - Shows the enterprise project ID to which the log stream belongs.
- Filter
Count double - Number of log stream filters.
- Group
Id string - Specifies the ID of a created log group. Changing this parameter will create a new resource.
- Lts
Stream stringV2Id - The log stream ID.
- Region string
- Shows the region in the log group resource created.
- Stream
Alias string - Stream
Name string - Specifies the log stream name. Changing this parameter will create a new resource.
- Dictionary<string, string>
- Specifies the key/value pairs of the log stream.
- Ttl
In doubleDays - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, defaults to-1
which means inherit the log group settings.
- Created
At string - The creation time of the log stream.
- Enterprise
Project stringId - Shows the enterprise project ID to which the log stream belongs.
- Filter
Count float64 - Number of log stream filters.
- Group
Id string - Specifies the ID of a created log group. Changing this parameter will create a new resource.
- Lts
Stream stringV2Id - The log stream ID.
- Region string
- Shows the region in the log group resource created.
- Stream
Alias string - Stream
Name string - Specifies the log stream name. Changing this parameter will create a new resource.
- map[string]string
- Specifies the key/value pairs of the log stream.
- Ttl
In float64Days - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, defaults to-1
which means inherit the log group settings.
- created
At String - The creation time of the log stream.
- enterprise
Project StringId - Shows the enterprise project ID to which the log stream belongs.
- filter
Count Double - Number of log stream filters.
- group
Id String - Specifies the ID of a created log group. Changing this parameter will create a new resource.
- lts
Stream StringV2Id - The log stream ID.
- region String
- Shows the region in the log group resource created.
- stream
Alias String - stream
Name String - Specifies the log stream name. Changing this parameter will create a new resource.
- Map<String,String>
- Specifies the key/value pairs of the log stream.
- ttl
In DoubleDays - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, defaults to-1
which means inherit the log group settings.
- created
At string - The creation time of the log stream.
- enterprise
Project stringId - Shows the enterprise project ID to which the log stream belongs.
- filter
Count number - Number of log stream filters.
- group
Id string - Specifies the ID of a created log group. Changing this parameter will create a new resource.
- lts
Stream stringV2Id - The log stream ID.
- region string
- Shows the region in the log group resource created.
- stream
Alias string - stream
Name string - Specifies the log stream name. Changing this parameter will create a new resource.
- {[key: string]: string}
- Specifies the key/value pairs of the log stream.
- ttl
In numberDays - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, defaults to-1
which means inherit the log group settings.
- created_
at str - The creation time of the log stream.
- enterprise_
project_ strid - 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_ strv2_ id - 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.
- Mapping[str, str]
- Specifies the key/value pairs of the log stream.
- ttl_
in_ floatdays - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, defaults to-1
which means inherit the log group settings.
- created
At String - The creation time of the log stream.
- enterprise
Project StringId - Shows the enterprise project ID to which the log stream belongs.
- filter
Count Number - Number of log stream filters.
- group
Id String - Specifies the ID of a created log group. Changing this parameter will create a new resource.
- lts
Stream StringV2Id - The log stream ID.
- region String
- Shows the region in the log group resource created.
- stream
Alias String - stream
Name String - Specifies the log stream name. Changing this parameter will create a new resource.
- Map<String>
- Specifies the key/value pairs of the log stream.
- ttl
In NumberDays - Specifies the log expiration time (days).
The valid value is a non-zero integer from
-1
to365
, 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.