opentelekomcloud.LogtankGroupV2
Explore with Pulumi AI
Create LogtankGroupV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogtankGroupV2(name: string, args: LogtankGroupV2Args, opts?: CustomResourceOptions);
@overload
def LogtankGroupV2(resource_name: str,
args: LogtankGroupV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def LogtankGroupV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_name: Optional[str] = None,
ttl_in_days: Optional[float] = None,
logtank_group_v2_id: Optional[str] = None)
func NewLogtankGroupV2(ctx *Context, name string, args LogtankGroupV2Args, opts ...ResourceOption) (*LogtankGroupV2, error)
public LogtankGroupV2(string name, LogtankGroupV2Args args, CustomResourceOptions? opts = null)
public LogtankGroupV2(String name, LogtankGroupV2Args args)
public LogtankGroupV2(String name, LogtankGroupV2Args args, CustomResourceOptions options)
type: opentelekomcloud:LogtankGroupV2
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 LogtankGroupV2Args
- 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 LogtankGroupV2Args
- 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 LogtankGroupV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogtankGroupV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogtankGroupV2Args
- 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 logtankGroupV2Resource = new Opentelekomcloud.LogtankGroupV2("logtankGroupV2Resource", new()
{
GroupName = "string",
TtlInDays = 0,
LogtankGroupV2Id = "string",
});
example, err := opentelekomcloud.NewLogtankGroupV2(ctx, "logtankGroupV2Resource", &opentelekomcloud.LogtankGroupV2Args{
GroupName: pulumi.String("string"),
TtlInDays: pulumi.Float64(0),
LogtankGroupV2Id: pulumi.String("string"),
})
var logtankGroupV2Resource = new LogtankGroupV2("logtankGroupV2Resource", LogtankGroupV2Args.builder()
.groupName("string")
.ttlInDays(0)
.logtankGroupV2Id("string")
.build());
logtank_group_v2_resource = opentelekomcloud.LogtankGroupV2("logtankGroupV2Resource",
group_name="string",
ttl_in_days=0,
logtank_group_v2_id="string")
const logtankGroupV2Resource = new opentelekomcloud.LogtankGroupV2("logtankGroupV2Resource", {
groupName: "string",
ttlInDays: 0,
logtankGroupV2Id: "string",
});
type: opentelekomcloud:LogtankGroupV2
properties:
groupName: string
logtankGroupV2Id: string
ttlInDays: 0
LogtankGroupV2 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 LogtankGroupV2 resource accepts the following input properties:
- Group
Name string - Ttl
In doubleDays - Logtank
Group stringV2Id
- Group
Name string - Ttl
In float64Days - Logtank
Group stringV2Id
- group
Name String - ttl
In DoubleDays - logtank
Group StringV2Id
- group
Name string - ttl
In numberDays - logtank
Group stringV2Id
- group_
name str - ttl_
in_ floatdays - logtank_
group_ strv2_ id
- group
Name String - ttl
In NumberDays - logtank
Group StringV2Id
Outputs
All input properties are implicitly available as output properties. Additionally, the LogtankGroupV2 resource produces the following output properties:
- Creation
Time double - Id string
- The provider-assigned unique ID for this managed resource.
- Creation
Time float64 - Id string
- The provider-assigned unique ID for this managed resource.
- creation
Time Double - id String
- The provider-assigned unique ID for this managed resource.
- creation
Time number - id string
- The provider-assigned unique ID for this managed resource.
- creation_
time float - id str
- The provider-assigned unique ID for this managed resource.
- creation
Time Number - id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LogtankGroupV2 Resource
Get an existing LogtankGroupV2 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?: LogtankGroupV2State, opts?: CustomResourceOptions): LogtankGroupV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
creation_time: Optional[float] = None,
group_name: Optional[str] = None,
logtank_group_v2_id: Optional[str] = None,
ttl_in_days: Optional[float] = None) -> LogtankGroupV2
func GetLogtankGroupV2(ctx *Context, name string, id IDInput, state *LogtankGroupV2State, opts ...ResourceOption) (*LogtankGroupV2, error)
public static LogtankGroupV2 Get(string name, Input<string> id, LogtankGroupV2State? state, CustomResourceOptions? opts = null)
public static LogtankGroupV2 get(String name, Output<String> id, LogtankGroupV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:LogtankGroupV2 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.
- Creation
Time double - Group
Name string - Logtank
Group stringV2Id - Ttl
In doubleDays
- Creation
Time float64 - Group
Name string - Logtank
Group stringV2Id - Ttl
In float64Days
- creation
Time Double - group
Name String - logtank
Group StringV2Id - ttl
In DoubleDays
- creation
Time number - group
Name string - logtank
Group stringV2Id - ttl
In numberDays
- creation_
time float - group_
name str - logtank_
group_ strv2_ id - ttl_
in_ floatdays
- creation
Time Number - group
Name String - logtank
Group StringV2Id - ttl
In NumberDays
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.