opentelekomcloud.LtsGroupV2
Explore with Pulumi AI
Up-to-date reference of API arguments for LTS log group you can get at documentation portal
Manages a log group resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const test = new opentelekomcloud.LtsGroupV2("test", {
groupName: "log_group_1",
ttlInDays: 30,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
test = opentelekomcloud.LtsGroupV2("test",
group_name="log_group_1",
ttl_in_days=30)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewLtsGroupV2(ctx, "test", &opentelekomcloud.LtsGroupV2Args{
GroupName: pulumi.String("log_group_1"),
TtlInDays: pulumi.Float64(30),
})
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 test = new Opentelekomcloud.LtsGroupV2("test", new()
{
GroupName = "log_group_1",
TtlInDays = 30,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.LtsGroupV2;
import com.pulumi.opentelekomcloud.LtsGroupV2Args;
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 LtsGroupV2("test", LtsGroupV2Args.builder()
.groupName("log_group_1")
.ttlInDays(30)
.build());
}
}
resources:
test:
type: opentelekomcloud:LtsGroupV2
properties:
groupName: log_group_1
ttlInDays: 30
Create LtsGroupV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LtsGroupV2(name: string, args: LtsGroupV2Args, opts?: CustomResourceOptions);
@overload
def LtsGroupV2(resource_name: str,
args: LtsGroupV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def LtsGroupV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_name: Optional[str] = None,
ttl_in_days: Optional[float] = None,
group_alias: Optional[str] = None,
lts_group_v2_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewLtsGroupV2(ctx *Context, name string, args LtsGroupV2Args, opts ...ResourceOption) (*LtsGroupV2, error)
public LtsGroupV2(string name, LtsGroupV2Args args, CustomResourceOptions? opts = null)
public LtsGroupV2(String name, LtsGroupV2Args args)
public LtsGroupV2(String name, LtsGroupV2Args args, CustomResourceOptions options)
type: opentelekomcloud:LtsGroupV2
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 LtsGroupV2Args
- 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 LtsGroupV2Args
- 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 LtsGroupV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LtsGroupV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LtsGroupV2Args
- 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 ltsGroupV2Resource = new Opentelekomcloud.LtsGroupV2("ltsGroupV2Resource", new()
{
GroupName = "string",
TtlInDays = 0,
GroupAlias = "string",
LtsGroupV2Id = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := opentelekomcloud.NewLtsGroupV2(ctx, "ltsGroupV2Resource", &opentelekomcloud.LtsGroupV2Args{
GroupName: pulumi.String("string"),
TtlInDays: pulumi.Float64(0),
GroupAlias: pulumi.String("string"),
LtsGroupV2Id: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var ltsGroupV2Resource = new LtsGroupV2("ltsGroupV2Resource", LtsGroupV2Args.builder()
.groupName("string")
.ttlInDays(0)
.groupAlias("string")
.ltsGroupV2Id("string")
.tags(Map.of("string", "string"))
.build());
lts_group_v2_resource = opentelekomcloud.LtsGroupV2("ltsGroupV2Resource",
group_name="string",
ttl_in_days=0,
group_alias="string",
lts_group_v2_id="string",
tags={
"string": "string",
})
const ltsGroupV2Resource = new opentelekomcloud.LtsGroupV2("ltsGroupV2Resource", {
groupName: "string",
ttlInDays: 0,
groupAlias: "string",
ltsGroupV2Id: "string",
tags: {
string: "string",
},
});
type: opentelekomcloud:LtsGroupV2
properties:
groupAlias: string
groupName: string
ltsGroupV2Id: string
tags:
string: string
ttlInDays: 0
LtsGroupV2 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 LtsGroupV2 resource accepts the following input properties:
- Group
Name string - Specifies the log group name. Changing this parameter will create a new resource.
- Ttl
In doubleDays - Specifies the log expiration time(days).
The value is range from
1
to365
. - Group
Alias string - Lts
Group stringV2Id - The log group ID.
- Dictionary<string, string>
- Specifies the key/value pairs to associate with the log group.
- Group
Name string - Specifies the log group name. Changing this parameter will create a new resource.
- Ttl
In float64Days - Specifies the log expiration time(days).
The value is range from
1
to365
. - Group
Alias string - Lts
Group stringV2Id - The log group ID.
- map[string]string
- Specifies the key/value pairs to associate with the log group.
- group
Name String - Specifies the log group name. Changing this parameter will create a new resource.
- ttl
In DoubleDays - Specifies the log expiration time(days).
The value is range from
1
to365
. - group
Alias String - lts
Group StringV2Id - The log group ID.
- Map<String,String>
- Specifies the key/value pairs to associate with the log group.
- group
Name string - Specifies the log group name. Changing this parameter will create a new resource.
- ttl
In numberDays - Specifies the log expiration time(days).
The value is range from
1
to365
. - group
Alias string - lts
Group stringV2Id - The log group ID.
- {[key: string]: string}
- Specifies the key/value pairs to associate with the log group.
- group_
name str - Specifies the log group name. Changing this parameter will create a new resource.
- ttl_
in_ floatdays - Specifies the log expiration time(days).
The value is range from
1
to365
. - group_
alias str - lts_
group_ strv2_ id - The log group ID.
- Mapping[str, str]
- Specifies the key/value pairs to associate with the log group.
- group
Name String - Specifies the log group name. Changing this parameter will create a new resource.
- ttl
In NumberDays - Specifies the log expiration time(days).
The value is range from
1
to365
. - group
Alias String - lts
Group StringV2Id - The log group ID.
- Map<String>
- Specifies the key/value pairs to associate with the log group.
Outputs
All input properties are implicitly available as output properties. Additionally, the LtsGroupV2 resource produces the following output properties:
- Created
At string - The creation time of the log group.
- Enterprise
Project stringId - Shows the enterprise project ID to which the log group belongs.
- 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 group.
- Enterprise
Project stringId - Shows the enterprise project ID to which the log group belongs.
- 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 group.
- enterprise
Project StringId - Shows the enterprise project ID to which the log group belongs.
- 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 group.
- enterprise
Project stringId - Shows the enterprise project ID to which the log group belongs.
- 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 group.
- enterprise_
project_ strid - Shows the enterprise project ID to which the log group belongs.
- 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 group.
- enterprise
Project StringId - Shows the enterprise project ID to which the log group belongs.
- 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 LtsGroupV2 Resource
Get an existing LtsGroupV2 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?: LtsGroupV2State, opts?: CustomResourceOptions): LtsGroupV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
group_alias: Optional[str] = None,
group_name: Optional[str] = None,
lts_group_v2_id: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
ttl_in_days: Optional[float] = None) -> LtsGroupV2
func GetLtsGroupV2(ctx *Context, name string, id IDInput, state *LtsGroupV2State, opts ...ResourceOption) (*LtsGroupV2, error)
public static LtsGroupV2 Get(string name, Input<string> id, LtsGroupV2State? state, CustomResourceOptions? opts = null)
public static LtsGroupV2 get(String name, Output<String> id, LtsGroupV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:LtsGroupV2 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 group.
- Enterprise
Project stringId - Shows the enterprise project ID to which the log group belongs.
- Group
Alias string - Group
Name string - Specifies the log group name. Changing this parameter will create a new resource.
- Lts
Group stringV2Id - The log group ID.
- Region string
- Shows the region in the log group resource created.
- Dictionary<string, string>
- Specifies the key/value pairs to associate with the log group.
- Ttl
In doubleDays - Specifies the log expiration time(days).
The value is range from
1
to365
.
- Created
At string - The creation time of the log group.
- Enterprise
Project stringId - Shows the enterprise project ID to which the log group belongs.
- Group
Alias string - Group
Name string - Specifies the log group name. Changing this parameter will create a new resource.
- Lts
Group stringV2Id - The log group ID.
- Region string
- Shows the region in the log group resource created.
- map[string]string
- Specifies the key/value pairs to associate with the log group.
- Ttl
In float64Days - Specifies the log expiration time(days).
The value is range from
1
to365
.
- created
At String - The creation time of the log group.
- enterprise
Project StringId - Shows the enterprise project ID to which the log group belongs.
- group
Alias String - group
Name String - Specifies the log group name. Changing this parameter will create a new resource.
- lts
Group StringV2Id - The log group ID.
- region String
- Shows the region in the log group resource created.
- Map<String,String>
- Specifies the key/value pairs to associate with the log group.
- ttl
In DoubleDays - Specifies the log expiration time(days).
The value is range from
1
to365
.
- created
At string - The creation time of the log group.
- enterprise
Project stringId - Shows the enterprise project ID to which the log group belongs.
- group
Alias string - group
Name string - Specifies the log group name. Changing this parameter will create a new resource.
- lts
Group stringV2Id - The log group ID.
- region string
- Shows the region in the log group resource created.
- {[key: string]: string}
- Specifies the key/value pairs to associate with the log group.
- ttl
In numberDays - Specifies the log expiration time(days).
The value is range from
1
to365
.
- created_
at str - The creation time of the log group.
- enterprise_
project_ strid - Shows the enterprise project ID to which the log group belongs.
- group_
alias str - group_
name str - Specifies the log group name. Changing this parameter will create a new resource.
- lts_
group_ strv2_ id - The log group ID.
- region str
- Shows the region in the log group resource created.
- Mapping[str, str]
- Specifies the key/value pairs to associate with the log group.
- ttl_
in_ floatdays - Specifies the log expiration time(days).
The value is range from
1
to365
.
- created
At String - The creation time of the log group.
- enterprise
Project StringId - Shows the enterprise project ID to which the log group belongs.
- group
Alias String - group
Name String - Specifies the log group name. Changing this parameter will create a new resource.
- lts
Group StringV2Id - The log group ID.
- region String
- Shows the region in the log group resource created.
- Map<String>
- Specifies the key/value pairs to associate with the log group.
- ttl
In NumberDays - Specifies the log expiration time(days).
The value is range from
1
to365
.
Import
The log group can be imported using the id
, e.g.
bash
$ pulumi import opentelekomcloud:index/ltsGroupV2:LtsGroupV2 test <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.