opentelekomcloud.DdsLtsLogV3
Explore with Pulumi AI
Manages a DDS LTS log resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const ltsGroupId = config.requireObject("ltsGroupId");
const ltsStreamId = config.requireObject("ltsStreamId");
const log = new opentelekomcloud.DdsLtsLogV3("log", {
instanceId: instanceId,
logType: "audit_log",
ltsGroupId: ltsGroupId,
ltsStreamId: ltsStreamId,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
instance_id = config.require_object("instanceId")
lts_group_id = config.require_object("ltsGroupId")
lts_stream_id = config.require_object("ltsStreamId")
log = opentelekomcloud.DdsLtsLogV3("log",
instance_id=instance_id,
log_type="audit_log",
lts_group_id=lts_group_id,
lts_stream_id=lts_stream_id)
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, "")
instanceId := cfg.RequireObject("instanceId")
ltsGroupId := cfg.RequireObject("ltsGroupId")
ltsStreamId := cfg.RequireObject("ltsStreamId")
_, err := opentelekomcloud.NewDdsLtsLogV3(ctx, "log", &opentelekomcloud.DdsLtsLogV3Args{
InstanceId: pulumi.Any(instanceId),
LogType: pulumi.String("audit_log"),
LtsGroupId: pulumi.Any(ltsGroupId),
LtsStreamId: pulumi.Any(ltsStreamId),
})
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 instanceId = config.RequireObject<dynamic>("instanceId");
var ltsGroupId = config.RequireObject<dynamic>("ltsGroupId");
var ltsStreamId = config.RequireObject<dynamic>("ltsStreamId");
var log = new Opentelekomcloud.DdsLtsLogV3("log", new()
{
InstanceId = instanceId,
LogType = "audit_log",
LtsGroupId = ltsGroupId,
LtsStreamId = ltsStreamId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.DdsLtsLogV3;
import com.pulumi.opentelekomcloud.DdsLtsLogV3Args;
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 instanceId = config.get("instanceId");
final var ltsGroupId = config.get("ltsGroupId");
final var ltsStreamId = config.get("ltsStreamId");
var log = new DdsLtsLogV3("log", DdsLtsLogV3Args.builder()
.instanceId(instanceId)
.logType("audit_log")
.ltsGroupId(ltsGroupId)
.ltsStreamId(ltsStreamId)
.build());
}
}
configuration:
instanceId:
type: dynamic
ltsGroupId:
type: dynamic
ltsStreamId:
type: dynamic
resources:
log:
type: opentelekomcloud:DdsLtsLogV3
properties:
instanceId: ${instanceId}
logType: audit_log
ltsGroupId: ${ltsGroupId}
ltsStreamId: ${ltsStreamId}
Create DdsLtsLogV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DdsLtsLogV3(name: string, args: DdsLtsLogV3Args, opts?: CustomResourceOptions);
@overload
def DdsLtsLogV3(resource_name: str,
args: DdsLtsLogV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def DdsLtsLogV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
log_type: Optional[str] = None,
lts_group_id: Optional[str] = None,
lts_stream_id: Optional[str] = None,
dds_lts_log_v3_id: Optional[str] = None,
timeouts: Optional[DdsLtsLogV3TimeoutsArgs] = None)
func NewDdsLtsLogV3(ctx *Context, name string, args DdsLtsLogV3Args, opts ...ResourceOption) (*DdsLtsLogV3, error)
public DdsLtsLogV3(string name, DdsLtsLogV3Args args, CustomResourceOptions? opts = null)
public DdsLtsLogV3(String name, DdsLtsLogV3Args args)
public DdsLtsLogV3(String name, DdsLtsLogV3Args args, CustomResourceOptions options)
type: opentelekomcloud:DdsLtsLogV3
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 DdsLtsLogV3Args
- 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 DdsLtsLogV3Args
- 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 DdsLtsLogV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DdsLtsLogV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DdsLtsLogV3Args
- 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 ddsLtsLogV3Resource = new Opentelekomcloud.DdsLtsLogV3("ddsLtsLogV3Resource", new()
{
InstanceId = "string",
LogType = "string",
LtsGroupId = "string",
LtsStreamId = "string",
DdsLtsLogV3Id = "string",
Timeouts = new Opentelekomcloud.Inputs.DdsLtsLogV3TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := opentelekomcloud.NewDdsLtsLogV3(ctx, "ddsLtsLogV3Resource", &opentelekomcloud.DdsLtsLogV3Args{
InstanceId: pulumi.String("string"),
LogType: pulumi.String("string"),
LtsGroupId: pulumi.String("string"),
LtsStreamId: pulumi.String("string"),
DdsLtsLogV3Id: pulumi.String("string"),
Timeouts: &opentelekomcloud.DdsLtsLogV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var ddsLtsLogV3Resource = new DdsLtsLogV3("ddsLtsLogV3Resource", DdsLtsLogV3Args.builder()
.instanceId("string")
.logType("string")
.ltsGroupId("string")
.ltsStreamId("string")
.ddsLtsLogV3Id("string")
.timeouts(DdsLtsLogV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
dds_lts_log_v3_resource = opentelekomcloud.DdsLtsLogV3("ddsLtsLogV3Resource",
instance_id="string",
log_type="string",
lts_group_id="string",
lts_stream_id="string",
dds_lts_log_v3_id="string",
timeouts={
"create": "string",
"delete": "string",
})
const ddsLtsLogV3Resource = new opentelekomcloud.DdsLtsLogV3("ddsLtsLogV3Resource", {
instanceId: "string",
logType: "string",
ltsGroupId: "string",
ltsStreamId: "string",
ddsLtsLogV3Id: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: opentelekomcloud:DdsLtsLogV3
properties:
ddsLtsLogV3Id: string
instanceId: string
logType: string
ltsGroupId: string
ltsStreamId: string
timeouts:
create: string
delete: string
DdsLtsLogV3 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 DdsLtsLogV3 resource accepts the following input properties:
- Instance
Id string Specifies the ID of the DDS instance.
Changing this creates a new resource.
- Log
Type string Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- Lts
Group stringId - Specifies the ID of the LTS log group.
- Lts
Stream stringId - Specifies the ID of the LTS log stream.
- Dds
Lts stringLog V3Id - The resource ID. The value is DDS instance ID.
- Timeouts
Dds
Lts Log V3Timeouts
- Instance
Id string Specifies the ID of the DDS instance.
Changing this creates a new resource.
- Log
Type string Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- Lts
Group stringId - Specifies the ID of the LTS log group.
- Lts
Stream stringId - Specifies the ID of the LTS log stream.
- Dds
Lts stringLog V3Id - The resource ID. The value is DDS instance ID.
- Timeouts
Dds
Lts Log V3Timeouts Args
- instance
Id String Specifies the ID of the DDS instance.
Changing this creates a new resource.
- log
Type String Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- lts
Group StringId - Specifies the ID of the LTS log group.
- lts
Stream StringId - Specifies the ID of the LTS log stream.
- dds
Lts StringLog V3Id - The resource ID. The value is DDS instance ID.
- timeouts
Dds
Lts Log V3Timeouts
- instance
Id string Specifies the ID of the DDS instance.
Changing this creates a new resource.
- log
Type string Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- lts
Group stringId - Specifies the ID of the LTS log group.
- lts
Stream stringId - Specifies the ID of the LTS log stream.
- dds
Lts stringLog V3Id - The resource ID. The value is DDS instance ID.
- timeouts
Dds
Lts Log V3Timeouts
- instance_
id str Specifies the ID of the DDS instance.
Changing this creates a new resource.
- log_
type str Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- lts_
group_ strid - Specifies the ID of the LTS log group.
- lts_
stream_ strid - Specifies the ID of the LTS log stream.
- dds_
lts_ strlog_ v3_ id - The resource ID. The value is DDS instance ID.
- timeouts
Dds
Lts Log V3Timeouts Args
- instance
Id String Specifies the ID of the DDS instance.
Changing this creates a new resource.
- log
Type String Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- lts
Group StringId - Specifies the ID of the LTS log group.
- lts
Stream StringId - Specifies the ID of the LTS log stream.
- dds
Lts StringLog V3Id - The resource ID. The value is DDS instance ID.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DdsLtsLogV3 resource produces the following output properties:
Look up Existing DdsLtsLogV3 Resource
Get an existing DdsLtsLogV3 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?: DdsLtsLogV3State, opts?: CustomResourceOptions): DdsLtsLogV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dds_lts_log_v3_id: Optional[str] = None,
instance_id: Optional[str] = None,
log_type: Optional[str] = None,
lts_group_id: Optional[str] = None,
lts_stream_id: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[DdsLtsLogV3TimeoutsArgs] = None) -> DdsLtsLogV3
func GetDdsLtsLogV3(ctx *Context, name string, id IDInput, state *DdsLtsLogV3State, opts ...ResourceOption) (*DdsLtsLogV3, error)
public static DdsLtsLogV3 Get(string name, Input<string> id, DdsLtsLogV3State? state, CustomResourceOptions? opts = null)
public static DdsLtsLogV3 get(String name, Output<String> id, DdsLtsLogV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:DdsLtsLogV3 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.
- Dds
Lts stringLog V3Id - The resource ID. The value is DDS instance ID.
- Instance
Id string Specifies the ID of the DDS instance.
Changing this creates a new resource.
- Log
Type string Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- Lts
Group stringId - Specifies the ID of the LTS log group.
- Lts
Stream stringId - Specifies the ID of the LTS log stream.
- Region string
- The region in which created the LTS log resource.
- Timeouts
Dds
Lts Log V3Timeouts
- Dds
Lts stringLog V3Id - The resource ID. The value is DDS instance ID.
- Instance
Id string Specifies the ID of the DDS instance.
Changing this creates a new resource.
- Log
Type string Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- Lts
Group stringId - Specifies the ID of the LTS log group.
- Lts
Stream stringId - Specifies the ID of the LTS log stream.
- Region string
- The region in which created the LTS log resource.
- Timeouts
Dds
Lts Log V3Timeouts Args
- dds
Lts StringLog V3Id - The resource ID. The value is DDS instance ID.
- instance
Id String Specifies the ID of the DDS instance.
Changing this creates a new resource.
- log
Type String Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- lts
Group StringId - Specifies the ID of the LTS log group.
- lts
Stream StringId - Specifies the ID of the LTS log stream.
- region String
- The region in which created the LTS log resource.
- timeouts
Dds
Lts Log V3Timeouts
- dds
Lts stringLog V3Id - The resource ID. The value is DDS instance ID.
- instance
Id string Specifies the ID of the DDS instance.
Changing this creates a new resource.
- log
Type string Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- lts
Group stringId - Specifies the ID of the LTS log group.
- lts
Stream stringId - Specifies the ID of the LTS log stream.
- region string
- The region in which created the LTS log resource.
- timeouts
Dds
Lts Log V3Timeouts
- dds_
lts_ strlog_ v3_ id - The resource ID. The value is DDS instance ID.
- instance_
id str Specifies the ID of the DDS instance.
Changing this creates a new resource.
- log_
type str Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- lts_
group_ strid - Specifies the ID of the LTS log group.
- lts_
stream_ strid - Specifies the ID of the LTS log stream.
- region str
- The region in which created the LTS log resource.
- timeouts
Dds
Lts Log V3Timeouts Args
- dds
Lts StringLog V3Id - The resource ID. The value is DDS instance ID.
- instance
Id String Specifies the ID of the DDS instance.
Changing this creates a new resource.
- log
Type String Specifies the type of the LTS log. The value can be
audit_log
.Changing this creates a new resource.
- lts
Group StringId - Specifies the ID of the LTS log group.
- lts
Stream StringId - Specifies the ID of the LTS log stream.
- region String
- The region in which created the LTS log resource.
- timeouts Property Map
Supporting Types
DdsLtsLogV3Timeouts, DdsLtsLogV3TimeoutsArgs
Import
The DDS LTS log config can be imported using DDS instance ID, e.g.
bash
$ pulumi import opentelekomcloud:index/ddsLtsLogV3:DdsLtsLogV3 log <instance_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.