opentelekomcloud.LtsTransferV2
Explore with Pulumi AI
Up-to-date reference of API arguments for LTS log transfer you can get at documentation portal
Manages an LTS transfer task resource within OpenTelekomCloud.
Example Usage
Create an OBS transfer task
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const ltsGroupId = config.requireObject("ltsGroupId");
const ltsStreamId = config.requireObject("ltsStreamId");
const obsBuket = config.requireObject("obsBuket");
const test = new opentelekomcloud.LtsTransferV2("test", {
logGroupId: ltsGroupId,
logStreams: [{
logStreamId: ltsStreamId,
}],
logTransferInfo: {
logTransferType: "OBS",
logTransferMode: "cycle",
logStorageFormat: "RAW",
logTransferStatus: "ENABLE",
logTransferDetail: {
obsPeriod: 3,
obsPeriodUnit: "hour",
obsBucketName: obsBuket,
obsDirPrefixName: "dir_prefix_",
obsPrefixName: "prefix_",
obsTimeZone: "UTC",
obsTimeZoneId: "Etc/GMT",
},
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
lts_group_id = config.require_object("ltsGroupId")
lts_stream_id = config.require_object("ltsStreamId")
obs_buket = config.require_object("obsBuket")
test = opentelekomcloud.LtsTransferV2("test",
log_group_id=lts_group_id,
log_streams=[{
"log_stream_id": lts_stream_id,
}],
log_transfer_info={
"log_transfer_type": "OBS",
"log_transfer_mode": "cycle",
"log_storage_format": "RAW",
"log_transfer_status": "ENABLE",
"log_transfer_detail": {
"obs_period": 3,
"obs_period_unit": "hour",
"obs_bucket_name": obs_buket,
"obs_dir_prefix_name": "dir_prefix_",
"obs_prefix_name": "prefix_",
"obs_time_zone": "UTC",
"obs_time_zone_id": "Etc/GMT",
},
})
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, "")
ltsGroupId := cfg.RequireObject("ltsGroupId")
ltsStreamId := cfg.RequireObject("ltsStreamId")
obsBuket := cfg.RequireObject("obsBuket")
_, err := opentelekomcloud.NewLtsTransferV2(ctx, "test", &opentelekomcloud.LtsTransferV2Args{
LogGroupId: pulumi.Any(ltsGroupId),
LogStreams: opentelekomcloud.LtsTransferV2LogStreamArray{
&opentelekomcloud.LtsTransferV2LogStreamArgs{
LogStreamId: pulumi.Any(ltsStreamId),
},
},
LogTransferInfo: &opentelekomcloud.LtsTransferV2LogTransferInfoArgs{
LogTransferType: pulumi.String("OBS"),
LogTransferMode: pulumi.String("cycle"),
LogStorageFormat: pulumi.String("RAW"),
LogTransferStatus: pulumi.String("ENABLE"),
LogTransferDetail: &opentelekomcloud.LtsTransferV2LogTransferInfoLogTransferDetailArgs{
ObsPeriod: pulumi.Float64(3),
ObsPeriodUnit: pulumi.String("hour"),
ObsBucketName: pulumi.Any(obsBuket),
ObsDirPrefixName: pulumi.String("dir_prefix_"),
ObsPrefixName: pulumi.String("prefix_"),
ObsTimeZone: pulumi.String("UTC"),
ObsTimeZoneId: pulumi.String("Etc/GMT"),
},
},
})
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 ltsGroupId = config.RequireObject<dynamic>("ltsGroupId");
var ltsStreamId = config.RequireObject<dynamic>("ltsStreamId");
var obsBuket = config.RequireObject<dynamic>("obsBuket");
var test = new Opentelekomcloud.LtsTransferV2("test", new()
{
LogGroupId = ltsGroupId,
LogStreams = new[]
{
new Opentelekomcloud.Inputs.LtsTransferV2LogStreamArgs
{
LogStreamId = ltsStreamId,
},
},
LogTransferInfo = new Opentelekomcloud.Inputs.LtsTransferV2LogTransferInfoArgs
{
LogTransferType = "OBS",
LogTransferMode = "cycle",
LogStorageFormat = "RAW",
LogTransferStatus = "ENABLE",
LogTransferDetail = new Opentelekomcloud.Inputs.LtsTransferV2LogTransferInfoLogTransferDetailArgs
{
ObsPeriod = 3,
ObsPeriodUnit = "hour",
ObsBucketName = obsBuket,
ObsDirPrefixName = "dir_prefix_",
ObsPrefixName = "prefix_",
ObsTimeZone = "UTC",
ObsTimeZoneId = "Etc/GMT",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.LtsTransferV2;
import com.pulumi.opentelekomcloud.LtsTransferV2Args;
import com.pulumi.opentelekomcloud.inputs.LtsTransferV2LogStreamArgs;
import com.pulumi.opentelekomcloud.inputs.LtsTransferV2LogTransferInfoArgs;
import com.pulumi.opentelekomcloud.inputs.LtsTransferV2LogTransferInfoLogTransferDetailArgs;
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 ltsGroupId = config.get("ltsGroupId");
final var ltsStreamId = config.get("ltsStreamId");
final var obsBuket = config.get("obsBuket");
var test = new LtsTransferV2("test", LtsTransferV2Args.builder()
.logGroupId(ltsGroupId)
.logStreams(LtsTransferV2LogStreamArgs.builder()
.logStreamId(ltsStreamId)
.build())
.logTransferInfo(LtsTransferV2LogTransferInfoArgs.builder()
.logTransferType("OBS")
.logTransferMode("cycle")
.logStorageFormat("RAW")
.logTransferStatus("ENABLE")
.logTransferDetail(LtsTransferV2LogTransferInfoLogTransferDetailArgs.builder()
.obsPeriod(3)
.obsPeriodUnit("hour")
.obsBucketName(obsBuket)
.obsDirPrefixName("dir_prefix_")
.obsPrefixName("prefix_")
.obsTimeZone("UTC")
.obsTimeZoneId("Etc/GMT")
.build())
.build())
.build());
}
}
configuration:
ltsGroupId:
type: dynamic
ltsStreamId:
type: dynamic
obsBuket:
type: dynamic
resources:
test:
type: opentelekomcloud:LtsTransferV2
properties:
logGroupId: ${ltsGroupId}
logStreams:
- logStreamId: ${ltsStreamId}
logTransferInfo:
logTransferType: OBS
logTransferMode: cycle
logStorageFormat: RAW
logTransferStatus: ENABLE
logTransferDetail:
obsPeriod: 3
obsPeriodUnit: hour
obsBucketName: ${obsBuket}
obsDirPrefixName: dir_prefix_
obsPrefixName: prefix_
obsTimeZone: UTC
obsTimeZoneId: Etc/GMT
Create a delegated OBS transfer task
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const ltsGroupId = config.requireObject("ltsGroupId");
const ltsStreamId = config.requireObject("ltsStreamId");
const obsBuket = config.requireObject("obsBuket");
const agencyDomainId = config.requireObject("agencyDomainId");
const agencyDomainName = config.requireObject("agencyDomainName");
const agencyName = config.requireObject("agencyName");
const agencyProjectId = config.requireObject("agencyProjectId");
const obsAgency = new opentelekomcloud.LtsTransferV2("obsAgency", {
logGroupId: ltsGroupId,
logStreams: [{
logStreamId: ltsStreamId,
}],
logTransferInfo: {
logTransferType: "OBS",
logTransferMode: "cycle",
logStorageFormat: "RAW",
logTransferStatus: "ENABLE",
logTransferDetail: {
obsPeriod: 3,
obsPeriodUnit: "hour",
obsBucketName: obsBuket,
obsDirPrefixName: "dir_prefix_",
obsPrefixName: "prefix_",
obsTimeZone: "UTC",
obsTimeZoneId: "Etc/GMT",
},
logAgencyTransfer: {
agencyDomainId: agencyDomainId,
agencyDomainName: agencyDomainName,
agencyName: agencyName,
agencyProjectId: agencyProjectId,
},
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
lts_group_id = config.require_object("ltsGroupId")
lts_stream_id = config.require_object("ltsStreamId")
obs_buket = config.require_object("obsBuket")
agency_domain_id = config.require_object("agencyDomainId")
agency_domain_name = config.require_object("agencyDomainName")
agency_name = config.require_object("agencyName")
agency_project_id = config.require_object("agencyProjectId")
obs_agency = opentelekomcloud.LtsTransferV2("obsAgency",
log_group_id=lts_group_id,
log_streams=[{
"log_stream_id": lts_stream_id,
}],
log_transfer_info={
"log_transfer_type": "OBS",
"log_transfer_mode": "cycle",
"log_storage_format": "RAW",
"log_transfer_status": "ENABLE",
"log_transfer_detail": {
"obs_period": 3,
"obs_period_unit": "hour",
"obs_bucket_name": obs_buket,
"obs_dir_prefix_name": "dir_prefix_",
"obs_prefix_name": "prefix_",
"obs_time_zone": "UTC",
"obs_time_zone_id": "Etc/GMT",
},
"log_agency_transfer": {
"agency_domain_id": agency_domain_id,
"agency_domain_name": agency_domain_name,
"agency_name": agency_name,
"agency_project_id": agency_project_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, "")
ltsGroupId := cfg.RequireObject("ltsGroupId")
ltsStreamId := cfg.RequireObject("ltsStreamId")
obsBuket := cfg.RequireObject("obsBuket")
agencyDomainId := cfg.RequireObject("agencyDomainId")
agencyDomainName := cfg.RequireObject("agencyDomainName")
agencyName := cfg.RequireObject("agencyName")
agencyProjectId := cfg.RequireObject("agencyProjectId")
_, err := opentelekomcloud.NewLtsTransferV2(ctx, "obsAgency", &opentelekomcloud.LtsTransferV2Args{
LogGroupId: pulumi.Any(ltsGroupId),
LogStreams: opentelekomcloud.LtsTransferV2LogStreamArray{
&opentelekomcloud.LtsTransferV2LogStreamArgs{
LogStreamId: pulumi.Any(ltsStreamId),
},
},
LogTransferInfo: &opentelekomcloud.LtsTransferV2LogTransferInfoArgs{
LogTransferType: pulumi.String("OBS"),
LogTransferMode: pulumi.String("cycle"),
LogStorageFormat: pulumi.String("RAW"),
LogTransferStatus: pulumi.String("ENABLE"),
LogTransferDetail: &opentelekomcloud.LtsTransferV2LogTransferInfoLogTransferDetailArgs{
ObsPeriod: pulumi.Float64(3),
ObsPeriodUnit: pulumi.String("hour"),
ObsBucketName: pulumi.Any(obsBuket),
ObsDirPrefixName: pulumi.String("dir_prefix_"),
ObsPrefixName: pulumi.String("prefix_"),
ObsTimeZone: pulumi.String("UTC"),
ObsTimeZoneId: pulumi.String("Etc/GMT"),
},
LogAgencyTransfer: &opentelekomcloud.LtsTransferV2LogTransferInfoLogAgencyTransferArgs{
AgencyDomainId: pulumi.Any(agencyDomainId),
AgencyDomainName: pulumi.Any(agencyDomainName),
AgencyName: pulumi.Any(agencyName),
AgencyProjectId: pulumi.Any(agencyProjectId),
},
},
})
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 ltsGroupId = config.RequireObject<dynamic>("ltsGroupId");
var ltsStreamId = config.RequireObject<dynamic>("ltsStreamId");
var obsBuket = config.RequireObject<dynamic>("obsBuket");
var agencyDomainId = config.RequireObject<dynamic>("agencyDomainId");
var agencyDomainName = config.RequireObject<dynamic>("agencyDomainName");
var agencyName = config.RequireObject<dynamic>("agencyName");
var agencyProjectId = config.RequireObject<dynamic>("agencyProjectId");
var obsAgency = new Opentelekomcloud.LtsTransferV2("obsAgency", new()
{
LogGroupId = ltsGroupId,
LogStreams = new[]
{
new Opentelekomcloud.Inputs.LtsTransferV2LogStreamArgs
{
LogStreamId = ltsStreamId,
},
},
LogTransferInfo = new Opentelekomcloud.Inputs.LtsTransferV2LogTransferInfoArgs
{
LogTransferType = "OBS",
LogTransferMode = "cycle",
LogStorageFormat = "RAW",
LogTransferStatus = "ENABLE",
LogTransferDetail = new Opentelekomcloud.Inputs.LtsTransferV2LogTransferInfoLogTransferDetailArgs
{
ObsPeriod = 3,
ObsPeriodUnit = "hour",
ObsBucketName = obsBuket,
ObsDirPrefixName = "dir_prefix_",
ObsPrefixName = "prefix_",
ObsTimeZone = "UTC",
ObsTimeZoneId = "Etc/GMT",
},
LogAgencyTransfer = new Opentelekomcloud.Inputs.LtsTransferV2LogTransferInfoLogAgencyTransferArgs
{
AgencyDomainId = agencyDomainId,
AgencyDomainName = agencyDomainName,
AgencyName = agencyName,
AgencyProjectId = agencyProjectId,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.LtsTransferV2;
import com.pulumi.opentelekomcloud.LtsTransferV2Args;
import com.pulumi.opentelekomcloud.inputs.LtsTransferV2LogStreamArgs;
import com.pulumi.opentelekomcloud.inputs.LtsTransferV2LogTransferInfoArgs;
import com.pulumi.opentelekomcloud.inputs.LtsTransferV2LogTransferInfoLogTransferDetailArgs;
import com.pulumi.opentelekomcloud.inputs.LtsTransferV2LogTransferInfoLogAgencyTransferArgs;
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 ltsGroupId = config.get("ltsGroupId");
final var ltsStreamId = config.get("ltsStreamId");
final var obsBuket = config.get("obsBuket");
final var agencyDomainId = config.get("agencyDomainId");
final var agencyDomainName = config.get("agencyDomainName");
final var agencyName = config.get("agencyName");
final var agencyProjectId = config.get("agencyProjectId");
var obsAgency = new LtsTransferV2("obsAgency", LtsTransferV2Args.builder()
.logGroupId(ltsGroupId)
.logStreams(LtsTransferV2LogStreamArgs.builder()
.logStreamId(ltsStreamId)
.build())
.logTransferInfo(LtsTransferV2LogTransferInfoArgs.builder()
.logTransferType("OBS")
.logTransferMode("cycle")
.logStorageFormat("RAW")
.logTransferStatus("ENABLE")
.logTransferDetail(LtsTransferV2LogTransferInfoLogTransferDetailArgs.builder()
.obsPeriod(3)
.obsPeriodUnit("hour")
.obsBucketName(obsBuket)
.obsDirPrefixName("dir_prefix_")
.obsPrefixName("prefix_")
.obsTimeZone("UTC")
.obsTimeZoneId("Etc/GMT")
.build())
.logAgencyTransfer(LtsTransferV2LogTransferInfoLogAgencyTransferArgs.builder()
.agencyDomainId(agencyDomainId)
.agencyDomainName(agencyDomainName)
.agencyName(agencyName)
.agencyProjectId(agencyProjectId)
.build())
.build())
.build());
}
}
configuration:
ltsGroupId:
type: dynamic
ltsStreamId:
type: dynamic
obsBuket:
type: dynamic
agencyDomainId:
type: dynamic
agencyDomainName:
type: dynamic
agencyName:
type: dynamic
agencyProjectId:
type: dynamic
resources:
obsAgency:
type: opentelekomcloud:LtsTransferV2
properties:
logGroupId: ${ltsGroupId}
logStreams:
- logStreamId: ${ltsStreamId}
logTransferInfo:
logTransferType: OBS
logTransferMode: cycle
logStorageFormat: RAW
logTransferStatus: ENABLE
logTransferDetail:
obsPeriod: 3
obsPeriodUnit: hour
obsBucketName: ${obsBuket}
obsDirPrefixName: dir_prefix_
obsPrefixName: prefix_
obsTimeZone: UTC
obsTimeZoneId: Etc/GMT
logAgencyTransfer:
agencyDomainId: ${agencyDomainId}
agencyDomainName: ${agencyDomainName}
agencyName: ${agencyName}
agencyProjectId: ${agencyProjectId}
Create LtsTransferV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LtsTransferV2(name: string, args: LtsTransferV2Args, opts?: CustomResourceOptions);
@overload
def LtsTransferV2(resource_name: str,
args: LtsTransferV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def LtsTransferV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
log_group_id: Optional[str] = None,
log_streams: Optional[Sequence[LtsTransferV2LogStreamArgs]] = None,
log_transfer_info: Optional[LtsTransferV2LogTransferInfoArgs] = None,
lts_transfer_v2_id: Optional[str] = None)
func NewLtsTransferV2(ctx *Context, name string, args LtsTransferV2Args, opts ...ResourceOption) (*LtsTransferV2, error)
public LtsTransferV2(string name, LtsTransferV2Args args, CustomResourceOptions? opts = null)
public LtsTransferV2(String name, LtsTransferV2Args args)
public LtsTransferV2(String name, LtsTransferV2Args args, CustomResourceOptions options)
type: opentelekomcloud:LtsTransferV2
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 LtsTransferV2Args
- 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 LtsTransferV2Args
- 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 LtsTransferV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LtsTransferV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LtsTransferV2Args
- 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 ltsTransferV2Resource = new Opentelekomcloud.LtsTransferV2("ltsTransferV2Resource", new()
{
LogGroupId = "string",
LogStreams = new[]
{
new Opentelekomcloud.Inputs.LtsTransferV2LogStreamArgs
{
LogStreamId = "string",
LogStreamName = "string",
},
},
LogTransferInfo = new Opentelekomcloud.Inputs.LtsTransferV2LogTransferInfoArgs
{
LogStorageFormat = "string",
LogTransferDetail = new Opentelekomcloud.Inputs.LtsTransferV2LogTransferInfoLogTransferDetailArgs
{
ObsBucketName = "string",
ObsDirPrefixName = "string",
ObsEncryptedEnable = false,
ObsEncryptedId = "string",
ObsEpsId = "string",
ObsPeriod = 0,
ObsPeriodUnit = "string",
ObsPrefixName = "string",
ObsTimeZone = "string",
ObsTimeZoneId = "string",
ObsTransferPath = "string",
Tags = new[]
{
"string",
},
},
LogTransferMode = "string",
LogTransferStatus = "string",
LogTransferType = "string",
LogAgencyTransfer = new Opentelekomcloud.Inputs.LtsTransferV2LogTransferInfoLogAgencyTransferArgs
{
AgencyDomainId = "string",
AgencyDomainName = "string",
AgencyName = "string",
AgencyProjectId = "string",
},
LogCreatedAt = "string",
},
LtsTransferV2Id = "string",
});
example, err := opentelekomcloud.NewLtsTransferV2(ctx, "ltsTransferV2Resource", &opentelekomcloud.LtsTransferV2Args{
LogGroupId: pulumi.String("string"),
LogStreams: opentelekomcloud.LtsTransferV2LogStreamArray{
&opentelekomcloud.LtsTransferV2LogStreamArgs{
LogStreamId: pulumi.String("string"),
LogStreamName: pulumi.String("string"),
},
},
LogTransferInfo: &opentelekomcloud.LtsTransferV2LogTransferInfoArgs{
LogStorageFormat: pulumi.String("string"),
LogTransferDetail: &opentelekomcloud.LtsTransferV2LogTransferInfoLogTransferDetailArgs{
ObsBucketName: pulumi.String("string"),
ObsDirPrefixName: pulumi.String("string"),
ObsEncryptedEnable: pulumi.Bool(false),
ObsEncryptedId: pulumi.String("string"),
ObsEpsId: pulumi.String("string"),
ObsPeriod: pulumi.Float64(0),
ObsPeriodUnit: pulumi.String("string"),
ObsPrefixName: pulumi.String("string"),
ObsTimeZone: pulumi.String("string"),
ObsTimeZoneId: pulumi.String("string"),
ObsTransferPath: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
},
LogTransferMode: pulumi.String("string"),
LogTransferStatus: pulumi.String("string"),
LogTransferType: pulumi.String("string"),
LogAgencyTransfer: &opentelekomcloud.LtsTransferV2LogTransferInfoLogAgencyTransferArgs{
AgencyDomainId: pulumi.String("string"),
AgencyDomainName: pulumi.String("string"),
AgencyName: pulumi.String("string"),
AgencyProjectId: pulumi.String("string"),
},
LogCreatedAt: pulumi.String("string"),
},
LtsTransferV2Id: pulumi.String("string"),
})
var ltsTransferV2Resource = new LtsTransferV2("ltsTransferV2Resource", LtsTransferV2Args.builder()
.logGroupId("string")
.logStreams(LtsTransferV2LogStreamArgs.builder()
.logStreamId("string")
.logStreamName("string")
.build())
.logTransferInfo(LtsTransferV2LogTransferInfoArgs.builder()
.logStorageFormat("string")
.logTransferDetail(LtsTransferV2LogTransferInfoLogTransferDetailArgs.builder()
.obsBucketName("string")
.obsDirPrefixName("string")
.obsEncryptedEnable(false)
.obsEncryptedId("string")
.obsEpsId("string")
.obsPeriod(0)
.obsPeriodUnit("string")
.obsPrefixName("string")
.obsTimeZone("string")
.obsTimeZoneId("string")
.obsTransferPath("string")
.tags("string")
.build())
.logTransferMode("string")
.logTransferStatus("string")
.logTransferType("string")
.logAgencyTransfer(LtsTransferV2LogTransferInfoLogAgencyTransferArgs.builder()
.agencyDomainId("string")
.agencyDomainName("string")
.agencyName("string")
.agencyProjectId("string")
.build())
.logCreatedAt("string")
.build())
.ltsTransferV2Id("string")
.build());
lts_transfer_v2_resource = opentelekomcloud.LtsTransferV2("ltsTransferV2Resource",
log_group_id="string",
log_streams=[{
"log_stream_id": "string",
"log_stream_name": "string",
}],
log_transfer_info={
"log_storage_format": "string",
"log_transfer_detail": {
"obs_bucket_name": "string",
"obs_dir_prefix_name": "string",
"obs_encrypted_enable": False,
"obs_encrypted_id": "string",
"obs_eps_id": "string",
"obs_period": 0,
"obs_period_unit": "string",
"obs_prefix_name": "string",
"obs_time_zone": "string",
"obs_time_zone_id": "string",
"obs_transfer_path": "string",
"tags": ["string"],
},
"log_transfer_mode": "string",
"log_transfer_status": "string",
"log_transfer_type": "string",
"log_agency_transfer": {
"agency_domain_id": "string",
"agency_domain_name": "string",
"agency_name": "string",
"agency_project_id": "string",
},
"log_created_at": "string",
},
lts_transfer_v2_id="string")
const ltsTransferV2Resource = new opentelekomcloud.LtsTransferV2("ltsTransferV2Resource", {
logGroupId: "string",
logStreams: [{
logStreamId: "string",
logStreamName: "string",
}],
logTransferInfo: {
logStorageFormat: "string",
logTransferDetail: {
obsBucketName: "string",
obsDirPrefixName: "string",
obsEncryptedEnable: false,
obsEncryptedId: "string",
obsEpsId: "string",
obsPeriod: 0,
obsPeriodUnit: "string",
obsPrefixName: "string",
obsTimeZone: "string",
obsTimeZoneId: "string",
obsTransferPath: "string",
tags: ["string"],
},
logTransferMode: "string",
logTransferStatus: "string",
logTransferType: "string",
logAgencyTransfer: {
agencyDomainId: "string",
agencyDomainName: "string",
agencyName: "string",
agencyProjectId: "string",
},
logCreatedAt: "string",
},
ltsTransferV2Id: "string",
});
type: opentelekomcloud:LtsTransferV2
properties:
logGroupId: string
logStreams:
- logStreamId: string
logStreamName: string
logTransferInfo:
logAgencyTransfer:
agencyDomainId: string
agencyDomainName: string
agencyName: string
agencyProjectId: string
logCreatedAt: string
logStorageFormat: string
logTransferDetail:
obsBucketName: string
obsDirPrefixName: string
obsEncryptedEnable: false
obsEncryptedId: string
obsEpsId: string
obsPeriod: 0
obsPeriodUnit: string
obsPrefixName: string
obsTimeZone: string
obsTimeZoneId: string
obsTransferPath: string
tags:
- string
logTransferMode: string
logTransferStatus: string
logTransferType: string
ltsTransferV2Id: string
LtsTransferV2 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 LtsTransferV2 resource accepts the following input properties:
- Log
Group stringId Log group ID.
Changing this parameter will create a new resource.
- Log
Streams List<LtsTransfer V2Log Stream> The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- Log
Transfer LtsInfo Transfer V2Log Transfer Info Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- Lts
Transfer stringV2Id - The resource ID.
- Log
Group stringId Log group ID.
Changing this parameter will create a new resource.
- Log
Streams []LtsTransfer V2Log Stream Args The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- Log
Transfer LtsInfo Transfer V2Log Transfer Info Args Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- Lts
Transfer stringV2Id - The resource ID.
- log
Group StringId Log group ID.
Changing this parameter will create a new resource.
- log
Streams List<LtsTransfer V2Log Stream> The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- log
Transfer LtsInfo Transfer V2Log Transfer Info Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- lts
Transfer StringV2Id - The resource ID.
- log
Group stringId Log group ID.
Changing this parameter will create a new resource.
- log
Streams LtsTransfer V2Log Stream[] The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- log
Transfer LtsInfo Transfer V2Log Transfer Info Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- lts
Transfer stringV2Id - The resource ID.
- log_
group_ strid Log group ID.
Changing this parameter will create a new resource.
- log_
streams Sequence[LtsTransfer V2Log Stream Args] The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- log_
transfer_ Ltsinfo Transfer V2Log Transfer Info Args Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- lts_
transfer_ strv2_ id - The resource ID.
- log
Group StringId Log group ID.
Changing this parameter will create a new resource.
- log
Streams List<Property Map> The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- log
Transfer Property MapInfo Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- lts
Transfer StringV2Id - The resource ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the LtsTransferV2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Group stringName - Log group name.
- Region string
- Shows the region in the log group resource created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Group stringName - Log group name.
- Region string
- Shows the region in the log group resource created.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Group StringName - Log group name.
- region String
- Shows the region in the log group resource created.
- id string
- The provider-assigned unique ID for this managed resource.
- log
Group stringName - Log group name.
- region string
- Shows the region in the log group resource created.
- id str
- The provider-assigned unique ID for this managed resource.
- log_
group_ strname - Log group name.
- region str
- Shows the region in the log group resource created.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Group StringName - Log group name.
- region String
- Shows the region in the log group resource created.
Look up Existing LtsTransferV2 Resource
Get an existing LtsTransferV2 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?: LtsTransferV2State, opts?: CustomResourceOptions): LtsTransferV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
log_group_id: Optional[str] = None,
log_group_name: Optional[str] = None,
log_streams: Optional[Sequence[LtsTransferV2LogStreamArgs]] = None,
log_transfer_info: Optional[LtsTransferV2LogTransferInfoArgs] = None,
lts_transfer_v2_id: Optional[str] = None,
region: Optional[str] = None) -> LtsTransferV2
func GetLtsTransferV2(ctx *Context, name string, id IDInput, state *LtsTransferV2State, opts ...ResourceOption) (*LtsTransferV2, error)
public static LtsTransferV2 Get(string name, Input<string> id, LtsTransferV2State? state, CustomResourceOptions? opts = null)
public static LtsTransferV2 get(String name, Output<String> id, LtsTransferV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:LtsTransferV2 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.
- Log
Group stringId Log group ID.
Changing this parameter will create a new resource.
- Log
Group stringName - Log group name.
- Log
Streams List<LtsTransfer V2Log Stream> The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- Log
Transfer LtsInfo Transfer V2Log Transfer Info Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- Lts
Transfer stringV2Id - The resource ID.
- Region string
- Shows the region in the log group resource created.
- Log
Group stringId Log group ID.
Changing this parameter will create a new resource.
- Log
Group stringName - Log group name.
- Log
Streams []LtsTransfer V2Log Stream Args The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- Log
Transfer LtsInfo Transfer V2Log Transfer Info Args Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- Lts
Transfer stringV2Id - The resource ID.
- Region string
- Shows the region in the log group resource created.
- log
Group StringId Log group ID.
Changing this parameter will create a new resource.
- log
Group StringName - Log group name.
- log
Streams List<LtsTransfer V2Log Stream> The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- log
Transfer LtsInfo Transfer V2Log Transfer Info Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- lts
Transfer StringV2Id - The resource ID.
- region String
- Shows the region in the log group resource created.
- log
Group stringId Log group ID.
Changing this parameter will create a new resource.
- log
Group stringName - Log group name.
- log
Streams LtsTransfer V2Log Stream[] The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- log
Transfer LtsInfo Transfer V2Log Transfer Info Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- lts
Transfer stringV2Id - The resource ID.
- region string
- Shows the region in the log group resource created.
- log_
group_ strid Log group ID.
Changing this parameter will create a new resource.
- log_
group_ strname - Log group name.
- log_
streams Sequence[LtsTransfer V2Log Stream Args] The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- log_
transfer_ Ltsinfo Transfer V2Log Transfer Info Args Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- lts_
transfer_ strv2_ id - The resource ID.
- region str
- Shows the region in the log group resource created.
- log
Group StringId Log group ID.
Changing this parameter will create a new resource.
- log
Group StringName - Log group name.
- log
Streams List<Property Map> The list of log streams.
Changing this parameter will create a new resource. The log_streams structure is documented below.
- log
Transfer Property MapInfo Log transfer information. The log_transfer_info structure is documented below.
The
log_streams
block supports:- lts
Transfer StringV2Id - The resource ID.
- region String
- Shows the region in the log group resource created.
Supporting Types
LtsTransferV2LogStream, LtsTransferV2LogStreamArgs
- Log
Stream stringId Log stream ID.
Changing this parameter will create a new resource.
- Log
Stream stringName Log stream name.
Changing this parameter will create a new resource.
The
log_transfer_info
block supports:
- Log
Stream stringId Log stream ID.
Changing this parameter will create a new resource.
- Log
Stream stringName Log stream name.
Changing this parameter will create a new resource.
The
log_transfer_info
block supports:
- log
Stream StringId Log stream ID.
Changing this parameter will create a new resource.
- log
Stream StringName Log stream name.
Changing this parameter will create a new resource.
The
log_transfer_info
block supports:
- log
Stream stringId Log stream ID.
Changing this parameter will create a new resource.
- log
Stream stringName Log stream name.
Changing this parameter will create a new resource.
The
log_transfer_info
block supports:
- log_
stream_ strid Log stream ID.
Changing this parameter will create a new resource.
- log_
stream_ strname Log stream name.
Changing this parameter will create a new resource.
The
log_transfer_info
block supports:
- log
Stream StringId Log stream ID.
Changing this parameter will create a new resource.
- log
Stream StringName Log stream name.
Changing this parameter will create a new resource.
The
log_transfer_info
block supports:
LtsTransferV2LogTransferInfo, LtsTransferV2LogTransferInfoArgs
- Log
Storage stringFormat - Log transfer format.
Value options are as follows:
JSON
: JSON format.RAW
: Raw log format.
- Log
Transfer LtsDetail Transfer V2Log Transfer Info Log Transfer Detail Log transfer details. The log_transfer_detail structure is documented below.
The
log_agency_transfer
block supports:- Log
Transfer stringMode - Log transfer mode. Value options are as follows:
- Log
Transfer stringStatus - Log transfer status.
Value options are as follows:
ENABLE
: Log transfer is enabled.DISABLE
: Log transfer is disabled
- Log
Transfer stringType Log transfer type. The valid values are
OBS
.Changing this parameter will create a new resource.
- Log
Agency LtsTransfer Transfer V2Log Transfer Info Log Agency Transfer Information about agency which lets an account delegate resource management to other accounts. This parameter is mandatory if you transfer logs for another account. The log_agency_transfer structure is documented below.
Changing this parameter will create a new resource.
- Log
Created stringAt
- Log
Storage stringFormat - Log transfer format.
Value options are as follows:
JSON
: JSON format.RAW
: Raw log format.
- Log
Transfer LtsDetail Transfer V2Log Transfer Info Log Transfer Detail Log transfer details. The log_transfer_detail structure is documented below.
The
log_agency_transfer
block supports:- Log
Transfer stringMode - Log transfer mode. Value options are as follows:
- Log
Transfer stringStatus - Log transfer status.
Value options are as follows:
ENABLE
: Log transfer is enabled.DISABLE
: Log transfer is disabled
- Log
Transfer stringType Log transfer type. The valid values are
OBS
.Changing this parameter will create a new resource.
- Log
Agency LtsTransfer Transfer V2Log Transfer Info Log Agency Transfer Information about agency which lets an account delegate resource management to other accounts. This parameter is mandatory if you transfer logs for another account. The log_agency_transfer structure is documented below.
Changing this parameter will create a new resource.
- Log
Created stringAt
- log
Storage StringFormat - Log transfer format.
Value options are as follows:
JSON
: JSON format.RAW
: Raw log format.
- log
Transfer LtsDetail Transfer V2Log Transfer Info Log Transfer Detail Log transfer details. The log_transfer_detail structure is documented below.
The
log_agency_transfer
block supports:- log
Transfer StringMode - Log transfer mode. Value options are as follows:
- log
Transfer StringStatus - Log transfer status.
Value options are as follows:
ENABLE
: Log transfer is enabled.DISABLE
: Log transfer is disabled
- log
Transfer StringType Log transfer type. The valid values are
OBS
.Changing this parameter will create a new resource.
- log
Agency LtsTransfer Transfer V2Log Transfer Info Log Agency Transfer Information about agency which lets an account delegate resource management to other accounts. This parameter is mandatory if you transfer logs for another account. The log_agency_transfer structure is documented below.
Changing this parameter will create a new resource.
- log
Created StringAt
- log
Storage stringFormat - Log transfer format.
Value options are as follows:
JSON
: JSON format.RAW
: Raw log format.
- log
Transfer LtsDetail Transfer V2Log Transfer Info Log Transfer Detail Log transfer details. The log_transfer_detail structure is documented below.
The
log_agency_transfer
block supports:- log
Transfer stringMode - Log transfer mode. Value options are as follows:
- log
Transfer stringStatus - Log transfer status.
Value options are as follows:
ENABLE
: Log transfer is enabled.DISABLE
: Log transfer is disabled
- log
Transfer stringType Log transfer type. The valid values are
OBS
.Changing this parameter will create a new resource.
- log
Agency LtsTransfer Transfer V2Log Transfer Info Log Agency Transfer Information about agency which lets an account delegate resource management to other accounts. This parameter is mandatory if you transfer logs for another account. The log_agency_transfer structure is documented below.
Changing this parameter will create a new resource.
- log
Created stringAt
- log_
storage_ strformat - Log transfer format.
Value options are as follows:
JSON
: JSON format.RAW
: Raw log format.
- log_
transfer_ Ltsdetail Transfer V2Log Transfer Info Log Transfer Detail Log transfer details. The log_transfer_detail structure is documented below.
The
log_agency_transfer
block supports:- log_
transfer_ strmode - Log transfer mode. Value options are as follows:
- log_
transfer_ strstatus - Log transfer status.
Value options are as follows:
ENABLE
: Log transfer is enabled.DISABLE
: Log transfer is disabled
- log_
transfer_ strtype Log transfer type. The valid values are
OBS
.Changing this parameter will create a new resource.
- log_
agency_ Ltstransfer Transfer V2Log Transfer Info Log Agency Transfer Information about agency which lets an account delegate resource management to other accounts. This parameter is mandatory if you transfer logs for another account. The log_agency_transfer structure is documented below.
Changing this parameter will create a new resource.
- log_
created_ strat
- log
Storage StringFormat - Log transfer format.
Value options are as follows:
JSON
: JSON format.RAW
: Raw log format.
- log
Transfer Property MapDetail Log transfer details. The log_transfer_detail structure is documented below.
The
log_agency_transfer
block supports:- log
Transfer StringMode - Log transfer mode. Value options are as follows:
- log
Transfer StringStatus - Log transfer status.
Value options are as follows:
ENABLE
: Log transfer is enabled.DISABLE
: Log transfer is disabled
- log
Transfer StringType Log transfer type. The valid values are
OBS
.Changing this parameter will create a new resource.
- log
Agency Property MapTransfer Information about agency which lets an account delegate resource management to other accounts. This parameter is mandatory if you transfer logs for another account. The log_agency_transfer structure is documented below.
Changing this parameter will create a new resource.
- log
Created StringAt
LtsTransferV2LogTransferInfoLogAgencyTransfer, LtsTransferV2LogTransferInfoLogAgencyTransferArgs
- Agency
Domain stringId Delegator account ID.
Changing this parameter will create a new resource.
- Agency
Domain stringName Delegator account name.
Changing this parameter will create a new resource.
- Agency
Name string The agency name created by the delegator.
Changing this parameter will create a new resource.
- Agency
Project stringId Project ID of the delegator.
Changing this parameter will create a new resource.
The
log_transfer_detail
block supports:
- Agency
Domain stringId Delegator account ID.
Changing this parameter will create a new resource.
- Agency
Domain stringName Delegator account name.
Changing this parameter will create a new resource.
- Agency
Name string The agency name created by the delegator.
Changing this parameter will create a new resource.
- Agency
Project stringId Project ID of the delegator.
Changing this parameter will create a new resource.
The
log_transfer_detail
block supports:
- agency
Domain StringId Delegator account ID.
Changing this parameter will create a new resource.
- agency
Domain StringName Delegator account name.
Changing this parameter will create a new resource.
- agency
Name String The agency name created by the delegator.
Changing this parameter will create a new resource.
- agency
Project StringId Project ID of the delegator.
Changing this parameter will create a new resource.
The
log_transfer_detail
block supports:
- agency
Domain stringId Delegator account ID.
Changing this parameter will create a new resource.
- agency
Domain stringName Delegator account name.
Changing this parameter will create a new resource.
- agency
Name string The agency name created by the delegator.
Changing this parameter will create a new resource.
- agency
Project stringId Project ID of the delegator.
Changing this parameter will create a new resource.
The
log_transfer_detail
block supports:
- agency_
domain_ strid Delegator account ID.
Changing this parameter will create a new resource.
- agency_
domain_ strname Delegator account name.
Changing this parameter will create a new resource.
- agency_
name str The agency name created by the delegator.
Changing this parameter will create a new resource.
- agency_
project_ strid Project ID of the delegator.
Changing this parameter will create a new resource.
The
log_transfer_detail
block supports:
- agency
Domain StringId Delegator account ID.
Changing this parameter will create a new resource.
- agency
Domain StringName Delegator account name.
Changing this parameter will create a new resource.
- agency
Name String The agency name created by the delegator.
Changing this parameter will create a new resource.
- agency
Project StringId Project ID of the delegator.
Changing this parameter will create a new resource.
The
log_transfer_detail
block supports:
LtsTransferV2LogTransferInfoLogTransferDetail, LtsTransferV2LogTransferInfoLogTransferDetailArgs
- Obs
Bucket stringName - OBS bucket name. This parameter is mandatory when you create an OBS transfer task.
- Obs
Dir stringPrefix Name - Custom transfer path of an OBS transfer task.
- Obs
Encrypted boolEnable - Whether OBS bucket encryption is enabled.
- Obs
Encrypted stringId - KMS key ID for an OBS transfer task. This parameter is mandatory if encryption is enabled for the target OBS bucket.
- Obs
Eps stringId - Enterprise project ID of an OBS transfer task.
- Obs
Period double - Length of the transfer interval for an OBS transfer task. This parameter is mandatory when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. Value options are as follows:
- Obs
Period stringUnit - Unit of the transfer interval for an OBS transfer task.
This parameter is mandatory when you create an OBS transfer task.
The log transfer interval is specified by the combination of the values of
obs_period
andobs_period_unit
, and must be set to one of the following:2 min
,5 min
,30 min
,1 hour
,3 hours
,6 hours
, and12 hours
. Value options are as follows: - Obs
Prefix stringName - Transfer file prefix of an OBS transfer task.
- Obs
Time stringZone - Time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone_id
must also be specified. - Obs
Time stringZone Id - ID of the time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone
must also be specified. - Obs
Transfer stringPath - OBS bucket path, which is the log transfer destination.
- List<string>
- The list of tag fields will be delivered when transferring.
This field must contain the following host information:
hostIP
,hostId
,hostName
,pathFile
, andcollectTime
. The common fields includelogStreamName
,regionName
,logGroupName
, andprojectId
, which are optional. The transfer tag:streamTag
, which is optional.
- Obs
Bucket stringName - OBS bucket name. This parameter is mandatory when you create an OBS transfer task.
- Obs
Dir stringPrefix Name - Custom transfer path of an OBS transfer task.
- Obs
Encrypted boolEnable - Whether OBS bucket encryption is enabled.
- Obs
Encrypted stringId - KMS key ID for an OBS transfer task. This parameter is mandatory if encryption is enabled for the target OBS bucket.
- Obs
Eps stringId - Enterprise project ID of an OBS transfer task.
- Obs
Period float64 - Length of the transfer interval for an OBS transfer task. This parameter is mandatory when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. Value options are as follows:
- Obs
Period stringUnit - Unit of the transfer interval for an OBS transfer task.
This parameter is mandatory when you create an OBS transfer task.
The log transfer interval is specified by the combination of the values of
obs_period
andobs_period_unit
, and must be set to one of the following:2 min
,5 min
,30 min
,1 hour
,3 hours
,6 hours
, and12 hours
. Value options are as follows: - Obs
Prefix stringName - Transfer file prefix of an OBS transfer task.
- Obs
Time stringZone - Time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone_id
must also be specified. - Obs
Time stringZone Id - ID of the time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone
must also be specified. - Obs
Transfer stringPath - OBS bucket path, which is the log transfer destination.
- []string
- The list of tag fields will be delivered when transferring.
This field must contain the following host information:
hostIP
,hostId
,hostName
,pathFile
, andcollectTime
. The common fields includelogStreamName
,regionName
,logGroupName
, andprojectId
, which are optional. The transfer tag:streamTag
, which is optional.
- obs
Bucket StringName - OBS bucket name. This parameter is mandatory when you create an OBS transfer task.
- obs
Dir StringPrefix Name - Custom transfer path of an OBS transfer task.
- obs
Encrypted BooleanEnable - Whether OBS bucket encryption is enabled.
- obs
Encrypted StringId - KMS key ID for an OBS transfer task. This parameter is mandatory if encryption is enabled for the target OBS bucket.
- obs
Eps StringId - Enterprise project ID of an OBS transfer task.
- obs
Period Double - Length of the transfer interval for an OBS transfer task. This parameter is mandatory when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. Value options are as follows:
- obs
Period StringUnit - Unit of the transfer interval for an OBS transfer task.
This parameter is mandatory when you create an OBS transfer task.
The log transfer interval is specified by the combination of the values of
obs_period
andobs_period_unit
, and must be set to one of the following:2 min
,5 min
,30 min
,1 hour
,3 hours
,6 hours
, and12 hours
. Value options are as follows: - obs
Prefix StringName - Transfer file prefix of an OBS transfer task.
- obs
Time StringZone - Time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone_id
must also be specified. - obs
Time StringZone Id - ID of the time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone
must also be specified. - obs
Transfer StringPath - OBS bucket path, which is the log transfer destination.
- List<String>
- The list of tag fields will be delivered when transferring.
This field must contain the following host information:
hostIP
,hostId
,hostName
,pathFile
, andcollectTime
. The common fields includelogStreamName
,regionName
,logGroupName
, andprojectId
, which are optional. The transfer tag:streamTag
, which is optional.
- obs
Bucket stringName - OBS bucket name. This parameter is mandatory when you create an OBS transfer task.
- obs
Dir stringPrefix Name - Custom transfer path of an OBS transfer task.
- obs
Encrypted booleanEnable - Whether OBS bucket encryption is enabled.
- obs
Encrypted stringId - KMS key ID for an OBS transfer task. This parameter is mandatory if encryption is enabled for the target OBS bucket.
- obs
Eps stringId - Enterprise project ID of an OBS transfer task.
- obs
Period number - Length of the transfer interval for an OBS transfer task. This parameter is mandatory when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. Value options are as follows:
- obs
Period stringUnit - Unit of the transfer interval for an OBS transfer task.
This parameter is mandatory when you create an OBS transfer task.
The log transfer interval is specified by the combination of the values of
obs_period
andobs_period_unit
, and must be set to one of the following:2 min
,5 min
,30 min
,1 hour
,3 hours
,6 hours
, and12 hours
. Value options are as follows: - obs
Prefix stringName - Transfer file prefix of an OBS transfer task.
- obs
Time stringZone - Time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone_id
must also be specified. - obs
Time stringZone Id - ID of the time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone
must also be specified. - obs
Transfer stringPath - OBS bucket path, which is the log transfer destination.
- string[]
- The list of tag fields will be delivered when transferring.
This field must contain the following host information:
hostIP
,hostId
,hostName
,pathFile
, andcollectTime
. The common fields includelogStreamName
,regionName
,logGroupName
, andprojectId
, which are optional. The transfer tag:streamTag
, which is optional.
- obs_
bucket_ strname - OBS bucket name. This parameter is mandatory when you create an OBS transfer task.
- obs_
dir_ strprefix_ name - Custom transfer path of an OBS transfer task.
- obs_
encrypted_ boolenable - Whether OBS bucket encryption is enabled.
- obs_
encrypted_ strid - KMS key ID for an OBS transfer task. This parameter is mandatory if encryption is enabled for the target OBS bucket.
- obs_
eps_ strid - Enterprise project ID of an OBS transfer task.
- obs_
period float - Length of the transfer interval for an OBS transfer task. This parameter is mandatory when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. Value options are as follows:
- obs_
period_ strunit - Unit of the transfer interval for an OBS transfer task.
This parameter is mandatory when you create an OBS transfer task.
The log transfer interval is specified by the combination of the values of
obs_period
andobs_period_unit
, and must be set to one of the following:2 min
,5 min
,30 min
,1 hour
,3 hours
,6 hours
, and12 hours
. Value options are as follows: - obs_
prefix_ strname - Transfer file prefix of an OBS transfer task.
- obs_
time_ strzone - Time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone_id
must also be specified. - obs_
time_ strzone_ id - ID of the time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone
must also be specified. - obs_
transfer_ strpath - OBS bucket path, which is the log transfer destination.
- Sequence[str]
- The list of tag fields will be delivered when transferring.
This field must contain the following host information:
hostIP
,hostId
,hostName
,pathFile
, andcollectTime
. The common fields includelogStreamName
,regionName
,logGroupName
, andprojectId
, which are optional. The transfer tag:streamTag
, which is optional.
- obs
Bucket StringName - OBS bucket name. This parameter is mandatory when you create an OBS transfer task.
- obs
Dir StringPrefix Name - Custom transfer path of an OBS transfer task.
- obs
Encrypted BooleanEnable - Whether OBS bucket encryption is enabled.
- obs
Encrypted StringId - KMS key ID for an OBS transfer task. This parameter is mandatory if encryption is enabled for the target OBS bucket.
- obs
Eps StringId - Enterprise project ID of an OBS transfer task.
- obs
Period Number - Length of the transfer interval for an OBS transfer task. This parameter is mandatory when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. Value options are as follows:
- obs
Period StringUnit - Unit of the transfer interval for an OBS transfer task.
This parameter is mandatory when you create an OBS transfer task.
The log transfer interval is specified by the combination of the values of
obs_period
andobs_period_unit
, and must be set to one of the following:2 min
,5 min
,30 min
,1 hour
,3 hours
,6 hours
, and12 hours
. Value options are as follows: - obs
Prefix StringName - Transfer file prefix of an OBS transfer task.
- obs
Time StringZone - Time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone_id
must also be specified. - obs
Time StringZone Id - ID of the time zone for an OBS transfer task.
If this parameter is specified,
obs_time_zone
must also be specified. - obs
Transfer StringPath - OBS bucket path, which is the log transfer destination.
- List<String>
- The list of tag fields will be delivered when transferring.
This field must contain the following host information:
hostIP
,hostId
,hostName
,pathFile
, andcollectTime
. The common fields includelogStreamName
,regionName
,logGroupName
, andprojectId
, which are optional. The transfer tag:streamTag
, which is optional.
Import
The LTS transfer task can be imported using the id
, e.g.
bash
$ pulumi import opentelekomcloud:index/ltsTransferV2:LtsTransferV2 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.