tencentcloud.ClsCosShipper
Explore with Pulumi AI
Provides a resource to create a cls cos shipper.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const info = tencentcloud.getUserInfo({});
const appId = info.then(info => info.appId);
const exampleCosBucket = new tencentcloud.CosBucket("exampleCosBucket", {
bucket: appId.then(appId => `private-bucket-${appId}`),
acl: "private",
});
const exampleClsLogset = new tencentcloud.ClsLogset("exampleClsLogset", {
logsetName: "tf-example",
tags: {
createBy: "Terraform",
},
});
const exampleClsTopic = new tencentcloud.ClsTopic("exampleClsTopic", {
topicName: "tf-example",
logsetId: exampleClsLogset.clsLogsetId,
autoSplit: false,
maxSplitPartitions: 20,
partitionCount: 1,
period: 10,
storageType: "hot",
tags: {
createBy: "Terraform",
},
});
const exampleClsCosShipper = new tencentcloud.ClsCosShipper("exampleClsCosShipper", {
bucket: exampleCosBucket.cosBucketId,
topicId: exampleClsTopic.clsTopicId,
interval: 300,
maxSize: 200,
partition: "/%Y/%m/%d/%H/",
prefix: "ap-guangzhou-fffsasad-1649734752",
shipperName: "ap-guangzhou-fffsasad-1649734752",
compress: {
format: "lzop",
},
content: {
format: "json",
json: {
enableTag: true,
metaFields: [
"__FILENAME__",
"__SOURCE__",
"__TIMESTAMP__",
],
},
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
info = tencentcloud.get_user_info()
app_id = info.app_id
example_cos_bucket = tencentcloud.CosBucket("exampleCosBucket",
bucket=f"private-bucket-{app_id}",
acl="private")
example_cls_logset = tencentcloud.ClsLogset("exampleClsLogset",
logset_name="tf-example",
tags={
"createBy": "Terraform",
})
example_cls_topic = tencentcloud.ClsTopic("exampleClsTopic",
topic_name="tf-example",
logset_id=example_cls_logset.cls_logset_id,
auto_split=False,
max_split_partitions=20,
partition_count=1,
period=10,
storage_type="hot",
tags={
"createBy": "Terraform",
})
example_cls_cos_shipper = tencentcloud.ClsCosShipper("exampleClsCosShipper",
bucket=example_cos_bucket.cos_bucket_id,
topic_id=example_cls_topic.cls_topic_id,
interval=300,
max_size=200,
partition="/%Y/%m/%d/%H/",
prefix="ap-guangzhou-fffsasad-1649734752",
shipper_name="ap-guangzhou-fffsasad-1649734752",
compress={
"format": "lzop",
},
content={
"format": "json",
"json": {
"enable_tag": True,
"meta_fields": [
"__FILENAME__",
"__SOURCE__",
"__TIMESTAMP__",
],
},
})
package main
import (
"fmt"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
info, err := tencentcloud.GetUserInfo(ctx, &tencentcloud.GetUserInfoArgs{}, nil)
if err != nil {
return err
}
appId := info.AppId
exampleCosBucket, err := tencentcloud.NewCosBucket(ctx, "exampleCosBucket", &tencentcloud.CosBucketArgs{
Bucket: pulumi.Sprintf("private-bucket-%v", appId),
Acl: pulumi.String("private"),
})
if err != nil {
return err
}
exampleClsLogset, err := tencentcloud.NewClsLogset(ctx, "exampleClsLogset", &tencentcloud.ClsLogsetArgs{
LogsetName: pulumi.String("tf-example"),
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
})
if err != nil {
return err
}
exampleClsTopic, err := tencentcloud.NewClsTopic(ctx, "exampleClsTopic", &tencentcloud.ClsTopicArgs{
TopicName: pulumi.String("tf-example"),
LogsetId: exampleClsLogset.ClsLogsetId,
AutoSplit: pulumi.Bool(false),
MaxSplitPartitions: pulumi.Float64(20),
PartitionCount: pulumi.Float64(1),
Period: pulumi.Float64(10),
StorageType: pulumi.String("hot"),
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewClsCosShipper(ctx, "exampleClsCosShipper", &tencentcloud.ClsCosShipperArgs{
Bucket: exampleCosBucket.CosBucketId,
TopicId: exampleClsTopic.ClsTopicId,
Interval: pulumi.Float64(300),
MaxSize: pulumi.Float64(200),
Partition: pulumi.String("/%Y/%m/%d/%H/"),
Prefix: pulumi.String("ap-guangzhou-fffsasad-1649734752"),
ShipperName: pulumi.String("ap-guangzhou-fffsasad-1649734752"),
Compress: &tencentcloud.ClsCosShipperCompressArgs{
Format: pulumi.String("lzop"),
},
Content: &tencentcloud.ClsCosShipperContentArgs{
Format: pulumi.String("json"),
Json: &tencentcloud.ClsCosShipperContentJsonArgs{
EnableTag: pulumi.Bool(true),
MetaFields: pulumi.StringArray{
pulumi.String("__FILENAME__"),
pulumi.String("__SOURCE__"),
pulumi.String("__TIMESTAMP__"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var info = Tencentcloud.GetUserInfo.Invoke();
var appId = info.Apply(getUserInfoResult => getUserInfoResult.AppId);
var exampleCosBucket = new Tencentcloud.CosBucket("exampleCosBucket", new()
{
Bucket = appId.Apply(appId => $"private-bucket-{appId}"),
Acl = "private",
});
var exampleClsLogset = new Tencentcloud.ClsLogset("exampleClsLogset", new()
{
LogsetName = "tf-example",
Tags =
{
{ "createBy", "Terraform" },
},
});
var exampleClsTopic = new Tencentcloud.ClsTopic("exampleClsTopic", new()
{
TopicName = "tf-example",
LogsetId = exampleClsLogset.ClsLogsetId,
AutoSplit = false,
MaxSplitPartitions = 20,
PartitionCount = 1,
Period = 10,
StorageType = "hot",
Tags =
{
{ "createBy", "Terraform" },
},
});
var exampleClsCosShipper = new Tencentcloud.ClsCosShipper("exampleClsCosShipper", new()
{
Bucket = exampleCosBucket.CosBucketId,
TopicId = exampleClsTopic.ClsTopicId,
Interval = 300,
MaxSize = 200,
Partition = "/%Y/%m/%d/%H/",
Prefix = "ap-guangzhou-fffsasad-1649734752",
ShipperName = "ap-guangzhou-fffsasad-1649734752",
Compress = new Tencentcloud.Inputs.ClsCosShipperCompressArgs
{
Format = "lzop",
},
Content = new Tencentcloud.Inputs.ClsCosShipperContentArgs
{
Format = "json",
Json = new Tencentcloud.Inputs.ClsCosShipperContentJsonArgs
{
EnableTag = true,
MetaFields = new[]
{
"__FILENAME__",
"__SOURCE__",
"__TIMESTAMP__",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetUserInfoArgs;
import com.pulumi.tencentcloud.CosBucket;
import com.pulumi.tencentcloud.CosBucketArgs;
import com.pulumi.tencentcloud.ClsLogset;
import com.pulumi.tencentcloud.ClsLogsetArgs;
import com.pulumi.tencentcloud.ClsTopic;
import com.pulumi.tencentcloud.ClsTopicArgs;
import com.pulumi.tencentcloud.ClsCosShipper;
import com.pulumi.tencentcloud.ClsCosShipperArgs;
import com.pulumi.tencentcloud.inputs.ClsCosShipperCompressArgs;
import com.pulumi.tencentcloud.inputs.ClsCosShipperContentArgs;
import com.pulumi.tencentcloud.inputs.ClsCosShipperContentJsonArgs;
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 info = TencentcloudFunctions.getUserInfo();
final var appId = info.applyValue(getUserInfoResult -> getUserInfoResult.appId());
var exampleCosBucket = new CosBucket("exampleCosBucket", CosBucketArgs.builder()
.bucket(String.format("private-bucket-%s", appId))
.acl("private")
.build());
var exampleClsLogset = new ClsLogset("exampleClsLogset", ClsLogsetArgs.builder()
.logsetName("tf-example")
.tags(Map.of("createBy", "Terraform"))
.build());
var exampleClsTopic = new ClsTopic("exampleClsTopic", ClsTopicArgs.builder()
.topicName("tf-example")
.logsetId(exampleClsLogset.clsLogsetId())
.autoSplit(false)
.maxSplitPartitions(20)
.partitionCount(1)
.period(10)
.storageType("hot")
.tags(Map.of("createBy", "Terraform"))
.build());
var exampleClsCosShipper = new ClsCosShipper("exampleClsCosShipper", ClsCosShipperArgs.builder()
.bucket(exampleCosBucket.cosBucketId())
.topicId(exampleClsTopic.clsTopicId())
.interval(300)
.maxSize(200)
.partition("/%Y/%m/%d/%H/")
.prefix("ap-guangzhou-fffsasad-1649734752")
.shipperName("ap-guangzhou-fffsasad-1649734752")
.compress(ClsCosShipperCompressArgs.builder()
.format("lzop")
.build())
.content(ClsCosShipperContentArgs.builder()
.format("json")
.json(ClsCosShipperContentJsonArgs.builder()
.enableTag(true)
.metaFields(
"__FILENAME__",
"__SOURCE__",
"__TIMESTAMP__")
.build())
.build())
.build());
}
}
resources:
exampleCosBucket:
type: tencentcloud:CosBucket
properties:
bucket: private-bucket-${appId}
acl: private
exampleClsLogset:
type: tencentcloud:ClsLogset
properties:
logsetName: tf-example
tags:
createBy: Terraform
exampleClsTopic:
type: tencentcloud:ClsTopic
properties:
topicName: tf-example
logsetId: ${exampleClsLogset.clsLogsetId}
autoSplit: false
maxSplitPartitions: 20
partitionCount: 1
period: 10
storageType: hot
tags:
createBy: Terraform
exampleClsCosShipper:
type: tencentcloud:ClsCosShipper
properties:
bucket: ${exampleCosBucket.cosBucketId}
topicId: ${exampleClsTopic.clsTopicId}
interval: 300
maxSize: 200
partition: /%Y/%m/%d/%H/
prefix: ap-guangzhou-fffsasad-1649734752
shipperName: ap-guangzhou-fffsasad-1649734752
compress:
format: lzop
content:
format: json
json:
enableTag: true
metaFields:
- __FILENAME__
- __SOURCE__
- __TIMESTAMP__
variables:
info:
fn::invoke:
function: tencentcloud:getUserInfo
arguments: {}
appId: ${info.appId}
Create ClsCosShipper Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClsCosShipper(name: string, args: ClsCosShipperArgs, opts?: CustomResourceOptions);
@overload
def ClsCosShipper(resource_name: str,
args: ClsCosShipperArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClsCosShipper(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
topic_id: Optional[str] = None,
shipper_name: Optional[str] = None,
prefix: Optional[str] = None,
filter_rules: Optional[Sequence[ClsCosShipperFilterRuleArgs]] = None,
filename_mode: Optional[float] = None,
end_time: Optional[float] = None,
interval: Optional[float] = None,
max_size: Optional[float] = None,
partition: Optional[str] = None,
content: Optional[ClsCosShipperContentArgs] = None,
compress: Optional[ClsCosShipperCompressArgs] = None,
start_time: Optional[float] = None,
storage_type: Optional[str] = None,
cls_cos_shipper_id: Optional[str] = None)
func NewClsCosShipper(ctx *Context, name string, args ClsCosShipperArgs, opts ...ResourceOption) (*ClsCosShipper, error)
public ClsCosShipper(string name, ClsCosShipperArgs args, CustomResourceOptions? opts = null)
public ClsCosShipper(String name, ClsCosShipperArgs args)
public ClsCosShipper(String name, ClsCosShipperArgs args, CustomResourceOptions options)
type: tencentcloud:ClsCosShipper
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 ClsCosShipperArgs
- 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 ClsCosShipperArgs
- 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 ClsCosShipperArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClsCosShipperArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClsCosShipperArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ClsCosShipper 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 ClsCosShipper resource accepts the following input properties:
- Bucket string
- Destination bucket in the shipping rule to be created.
- Prefix string
- Prefix of the shipping directory in the shipping rule to be created.
- Shipper
Name string - Shipping rule name.
- Topic
Id string - ID of the log topic to which the shipping rule to be created belongs.
- Cls
Cos stringShipper Id - ID of the resource.
- Compress
Cls
Cos Shipper Compress - Compression configuration of shipped log.
- Content
Cls
Cos Shipper Content - Format configuration of shipped log content.
- End
Time double - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- Filename
Mode double - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- Filter
Rules List<ClsCos Shipper Filter Rule> - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- Interval double
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- Max
Size double - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- Partition string
- Partition rule of shipped log, which can be represented in strftime time format.
- Start
Time double - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- Storage
Type string - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
- Bucket string
- Destination bucket in the shipping rule to be created.
- Prefix string
- Prefix of the shipping directory in the shipping rule to be created.
- Shipper
Name string - Shipping rule name.
- Topic
Id string - ID of the log topic to which the shipping rule to be created belongs.
- Cls
Cos stringShipper Id - ID of the resource.
- Compress
Cls
Cos Shipper Compress Args - Compression configuration of shipped log.
- Content
Cls
Cos Shipper Content Args - Format configuration of shipped log content.
- End
Time float64 - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- Filename
Mode float64 - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- Filter
Rules []ClsCos Shipper Filter Rule Args - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- Interval float64
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- Max
Size float64 - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- Partition string
- Partition rule of shipped log, which can be represented in strftime time format.
- Start
Time float64 - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- Storage
Type string - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
- bucket String
- Destination bucket in the shipping rule to be created.
- prefix String
- Prefix of the shipping directory in the shipping rule to be created.
- shipper
Name String - Shipping rule name.
- topic
Id String - ID of the log topic to which the shipping rule to be created belongs.
- cls
Cos StringShipper Id - ID of the resource.
- compress
Cls
Cos Shipper Compress - Compression configuration of shipped log.
- content
Cls
Cos Shipper Content - Format configuration of shipped log content.
- end
Time Double - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- filename
Mode Double - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- filter
Rules List<ClsCos Shipper Filter Rule> - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- interval Double
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- max
Size Double - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- partition String
- Partition rule of shipped log, which can be represented in strftime time format.
- start
Time Double - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- storage
Type String - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
- bucket string
- Destination bucket in the shipping rule to be created.
- prefix string
- Prefix of the shipping directory in the shipping rule to be created.
- shipper
Name string - Shipping rule name.
- topic
Id string - ID of the log topic to which the shipping rule to be created belongs.
- cls
Cos stringShipper Id - ID of the resource.
- compress
Cls
Cos Shipper Compress - Compression configuration of shipped log.
- content
Cls
Cos Shipper Content - Format configuration of shipped log content.
- end
Time number - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- filename
Mode number - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- filter
Rules ClsCos Shipper Filter Rule[] - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- interval number
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- max
Size number - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- partition string
- Partition rule of shipped log, which can be represented in strftime time format.
- start
Time number - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- storage
Type string - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
- bucket str
- Destination bucket in the shipping rule to be created.
- prefix str
- Prefix of the shipping directory in the shipping rule to be created.
- shipper_
name str - Shipping rule name.
- topic_
id str - ID of the log topic to which the shipping rule to be created belongs.
- cls_
cos_ strshipper_ id - ID of the resource.
- compress
Cls
Cos Shipper Compress Args - Compression configuration of shipped log.
- content
Cls
Cos Shipper Content Args - Format configuration of shipped log content.
- end_
time float - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- filename_
mode float - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- filter_
rules Sequence[ClsCos Shipper Filter Rule Args] - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- interval float
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- max_
size float - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- partition str
- Partition rule of shipped log, which can be represented in strftime time format.
- start_
time float - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- storage_
type str - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
- bucket String
- Destination bucket in the shipping rule to be created.
- prefix String
- Prefix of the shipping directory in the shipping rule to be created.
- shipper
Name String - Shipping rule name.
- topic
Id String - ID of the log topic to which the shipping rule to be created belongs.
- cls
Cos StringShipper Id - ID of the resource.
- compress Property Map
- Compression configuration of shipped log.
- content Property Map
- Format configuration of shipped log content.
- end
Time Number - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- filename
Mode Number - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- filter
Rules List<Property Map> - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- interval Number
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- max
Size Number - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- partition String
- Partition rule of shipped log, which can be represented in strftime time format.
- start
Time Number - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- storage
Type String - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClsCosShipper resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ClsCosShipper Resource
Get an existing ClsCosShipper 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?: ClsCosShipperState, opts?: CustomResourceOptions): ClsCosShipper
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
cls_cos_shipper_id: Optional[str] = None,
compress: Optional[ClsCosShipperCompressArgs] = None,
content: Optional[ClsCosShipperContentArgs] = None,
end_time: Optional[float] = None,
filename_mode: Optional[float] = None,
filter_rules: Optional[Sequence[ClsCosShipperFilterRuleArgs]] = None,
interval: Optional[float] = None,
max_size: Optional[float] = None,
partition: Optional[str] = None,
prefix: Optional[str] = None,
shipper_name: Optional[str] = None,
start_time: Optional[float] = None,
storage_type: Optional[str] = None,
topic_id: Optional[str] = None) -> ClsCosShipper
func GetClsCosShipper(ctx *Context, name string, id IDInput, state *ClsCosShipperState, opts ...ResourceOption) (*ClsCosShipper, error)
public static ClsCosShipper Get(string name, Input<string> id, ClsCosShipperState? state, CustomResourceOptions? opts = null)
public static ClsCosShipper get(String name, Output<String> id, ClsCosShipperState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ClsCosShipper 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.
- Bucket string
- Destination bucket in the shipping rule to be created.
- Cls
Cos stringShipper Id - ID of the resource.
- Compress
Cls
Cos Shipper Compress - Compression configuration of shipped log.
- Content
Cls
Cos Shipper Content - Format configuration of shipped log content.
- End
Time double - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- Filename
Mode double - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- Filter
Rules List<ClsCos Shipper Filter Rule> - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- Interval double
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- Max
Size double - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- Partition string
- Partition rule of shipped log, which can be represented in strftime time format.
- Prefix string
- Prefix of the shipping directory in the shipping rule to be created.
- Shipper
Name string - Shipping rule name.
- Start
Time double - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- Storage
Type string - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
- Topic
Id string - ID of the log topic to which the shipping rule to be created belongs.
- Bucket string
- Destination bucket in the shipping rule to be created.
- Cls
Cos stringShipper Id - ID of the resource.
- Compress
Cls
Cos Shipper Compress Args - Compression configuration of shipped log.
- Content
Cls
Cos Shipper Content Args - Format configuration of shipped log content.
- End
Time float64 - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- Filename
Mode float64 - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- Filter
Rules []ClsCos Shipper Filter Rule Args - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- Interval float64
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- Max
Size float64 - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- Partition string
- Partition rule of shipped log, which can be represented in strftime time format.
- Prefix string
- Prefix of the shipping directory in the shipping rule to be created.
- Shipper
Name string - Shipping rule name.
- Start
Time float64 - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- Storage
Type string - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
- Topic
Id string - ID of the log topic to which the shipping rule to be created belongs.
- bucket String
- Destination bucket in the shipping rule to be created.
- cls
Cos StringShipper Id - ID of the resource.
- compress
Cls
Cos Shipper Compress - Compression configuration of shipped log.
- content
Cls
Cos Shipper Content - Format configuration of shipped log content.
- end
Time Double - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- filename
Mode Double - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- filter
Rules List<ClsCos Shipper Filter Rule> - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- interval Double
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- max
Size Double - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- partition String
- Partition rule of shipped log, which can be represented in strftime time format.
- prefix String
- Prefix of the shipping directory in the shipping rule to be created.
- shipper
Name String - Shipping rule name.
- start
Time Double - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- storage
Type String - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
- topic
Id String - ID of the log topic to which the shipping rule to be created belongs.
- bucket string
- Destination bucket in the shipping rule to be created.
- cls
Cos stringShipper Id - ID of the resource.
- compress
Cls
Cos Shipper Compress - Compression configuration of shipped log.
- content
Cls
Cos Shipper Content - Format configuration of shipped log content.
- end
Time number - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- filename
Mode number - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- filter
Rules ClsCos Shipper Filter Rule[] - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- interval number
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- max
Size number - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- partition string
- Partition rule of shipped log, which can be represented in strftime time format.
- prefix string
- Prefix of the shipping directory in the shipping rule to be created.
- shipper
Name string - Shipping rule name.
- start
Time number - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- storage
Type string - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
- topic
Id string - ID of the log topic to which the shipping rule to be created belongs.
- bucket str
- Destination bucket in the shipping rule to be created.
- cls_
cos_ strshipper_ id - ID of the resource.
- compress
Cls
Cos Shipper Compress Args - Compression configuration of shipped log.
- content
Cls
Cos Shipper Content Args - Format configuration of shipped log content.
- end_
time float - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- filename_
mode float - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- filter_
rules Sequence[ClsCos Shipper Filter Rule Args] - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- interval float
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- max_
size float - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- partition str
- Partition rule of shipped log, which can be represented in strftime time format.
- prefix str
- Prefix of the shipping directory in the shipping rule to be created.
- shipper_
name str - Shipping rule name.
- start_
time float - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- storage_
type str - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
- topic_
id str - ID of the log topic to which the shipping rule to be created belongs.
- bucket String
- Destination bucket in the shipping rule to be created.
- cls
Cos StringShipper Id - ID of the resource.
- compress Property Map
- Compression configuration of shipped log.
- content Property Map
- Format configuration of shipped log content.
- end
Time Number - End time for data shipping, which cannot be set to a future time. If you do not specify this parameter, it indicates continuous data shipping.
- filename
Mode Number - Naming a shipping file. Valid values: 0 (by random number); 1 (by shipping time). Default value: 0.
- filter
Rules List<Property Map> - Filter rules for shipped logs. Only logs matching the rules can be shipped. All rules are in the AND relationship, and up to five rules can be added. If the array is empty, no filtering will be performed, and all logs will be shipped.
- interval Number
- Shipping time interval in seconds. Default value: 300. Value range: 300~900.
- max
Size Number - Maximum size of a file to be shipped, in MB. Default value: 256. Value range: 100~256.
- partition String
- Partition rule of shipped log, which can be represented in strftime time format.
- prefix String
- Prefix of the shipping directory in the shipping rule to be created.
- shipper
Name String - Shipping rule name.
- start
Time Number - Start time for data shipping, which cannot be earlier than the lifecycle start time of the log topic. If you do not specify this parameter, it will be set to the time when you create the data shipping task.
- storage
Type String - COS bucket storage type. support: STANDARD_IA, ARCHIVE, DEEP_ARCHIVE, STANDARD, MAZ_STANDARD, MAZ_STANDARD_IA, INTELLIGENT_TIERING.
- topic
Id String - ID of the log topic to which the shipping rule to be created belongs.
Supporting Types
ClsCosShipperCompress, ClsCosShipperCompressArgs
- Format string
- Compression format. Valid values: gzip, lzop, none (no compression).
- Format string
- Compression format. Valid values: gzip, lzop, none (no compression).
- format String
- Compression format. Valid values: gzip, lzop, none (no compression).
- format string
- Compression format. Valid values: gzip, lzop, none (no compression).
- format str
- Compression format. Valid values: gzip, lzop, none (no compression).
- format String
- Compression format. Valid values: gzip, lzop, none (no compression).
ClsCosShipperContent, ClsCosShipperContentArgs
- Format string
- Content format. Valid values: json, csv.
- Csv
Cls
Cos Shipper Content Csv - CSV format content description.Note: this field may return null, indicating that no valid values can be obtained.
- Json
Cls
Cos Shipper Content Json - JSON format content description.Note: this field may return null, indicating that no valid values can be obtained.
- Format string
- Content format. Valid values: json, csv.
- Csv
Cls
Cos Shipper Content Csv - CSV format content description.Note: this field may return null, indicating that no valid values can be obtained.
- Json
Cls
Cos Shipper Content Json - JSON format content description.Note: this field may return null, indicating that no valid values can be obtained.
- format String
- Content format. Valid values: json, csv.
- csv
Cls
Cos Shipper Content Csv - CSV format content description.Note: this field may return null, indicating that no valid values can be obtained.
- json
Cls
Cos Shipper Content Json - JSON format content description.Note: this field may return null, indicating that no valid values can be obtained.
- format string
- Content format. Valid values: json, csv.
- csv
Cls
Cos Shipper Content Csv - CSV format content description.Note: this field may return null, indicating that no valid values can be obtained.
- json
Cls
Cos Shipper Content Json - JSON format content description.Note: this field may return null, indicating that no valid values can be obtained.
- format str
- Content format. Valid values: json, csv.
- csv
Cls
Cos Shipper Content Csv - CSV format content description.Note: this field may return null, indicating that no valid values can be obtained.
- json
Cls
Cos Shipper Content Json - JSON format content description.Note: this field may return null, indicating that no valid values can be obtained.
- format String
- Content format. Valid values: json, csv.
- csv Property Map
- CSV format content description.Note: this field may return null, indicating that no valid values can be obtained.
- json Property Map
- JSON format content description.Note: this field may return null, indicating that no valid values can be obtained.
ClsCosShipperContentCsv, ClsCosShipperContentCsvArgs
- Delimiter string
- Field delimiter.
- Escape
Char string - Field delimiter.
- Keys List<string>
- Names of keys.Note: this field may return null, indicating that no valid values can be obtained.
- Non
Existing stringField - Content used to populate non-existing fields.
- Print
Key bool - Whether to print key on the first row of the CSV file.
- Delimiter string
- Field delimiter.
- Escape
Char string - Field delimiter.
- Keys []string
- Names of keys.Note: this field may return null, indicating that no valid values can be obtained.
- Non
Existing stringField - Content used to populate non-existing fields.
- Print
Key bool - Whether to print key on the first row of the CSV file.
- delimiter String
- Field delimiter.
- escape
Char String - Field delimiter.
- keys List<String>
- Names of keys.Note: this field may return null, indicating that no valid values can be obtained.
- non
Existing StringField - Content used to populate non-existing fields.
- print
Key Boolean - Whether to print key on the first row of the CSV file.
- delimiter string
- Field delimiter.
- escape
Char string - Field delimiter.
- keys string[]
- Names of keys.Note: this field may return null, indicating that no valid values can be obtained.
- non
Existing stringField - Content used to populate non-existing fields.
- print
Key boolean - Whether to print key on the first row of the CSV file.
- delimiter str
- Field delimiter.
- escape_
char str - Field delimiter.
- keys Sequence[str]
- Names of keys.Note: this field may return null, indicating that no valid values can be obtained.
- non_
existing_ strfield - Content used to populate non-existing fields.
- print_
key bool - Whether to print key on the first row of the CSV file.
- delimiter String
- Field delimiter.
- escape
Char String - Field delimiter.
- keys List<String>
- Names of keys.Note: this field may return null, indicating that no valid values can be obtained.
- non
Existing StringField - Content used to populate non-existing fields.
- print
Key Boolean - Whether to print key on the first row of the CSV file.
ClsCosShipperContentJson, ClsCosShipperContentJsonArgs
- Enable
Tag bool - Enablement flag.
- Meta
Fields List<string> - Metadata information list Note: this field may return null, indicating that no valid values can be obtained..
- Enable
Tag bool - Enablement flag.
- Meta
Fields []string - Metadata information list Note: this field may return null, indicating that no valid values can be obtained..
- enable
Tag Boolean - Enablement flag.
- meta
Fields List<String> - Metadata information list Note: this field may return null, indicating that no valid values can be obtained..
- enable
Tag boolean - Enablement flag.
- meta
Fields string[] - Metadata information list Note: this field may return null, indicating that no valid values can be obtained..
- enable_
tag bool - Enablement flag.
- meta_
fields Sequence[str] - Metadata information list Note: this field may return null, indicating that no valid values can be obtained..
- enable
Tag Boolean - Enablement flag.
- meta
Fields List<String> - Metadata information list Note: this field may return null, indicating that no valid values can be obtained..
ClsCosShipperFilterRule, ClsCosShipperFilterRuleArgs
Import
cls cos shipper can be imported using the id, e.g.
$ pulumi import tencentcloud:index/clsCosShipper:ClsCosShipper example 5d1b7b2a-c163-4c48-bb01-9ee00584d761
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.