UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

280 lines 8.56 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getRuleAppliersOutput = exports.getRuleAppliers = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query detailed information of tls rule appliers * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const config = new pulumi.Config(); * const name = config.get("name") || "tf-test-rule-applier"; * const fooProject = new volcengine.tls.Project("fooProject", { * projectName: name, * description: "tf-test-project-desc", * }); * const fooTopic = new volcengine.tls.Topic("fooTopic", { * projectId: fooProject.id, * topicName: name, * ttl: 60, * shardCount: 2, * autoSplit: true, * maxSplitShard: 10, * enableTracking: true, * timeKey: "request_time", * timeFormat: "%Y-%m-%dT%H:%M:%S,%f", * tags: [{ * key: "k1", * value: "v1", * }], * logPublicIp: true, * enableHotTtl: true, * hotTtl: 30, * coldTtl: 30, * archiveTtl: 0, * }); * const fooRule = new volcengine.tls.Rule("fooRule", { * topicId: fooTopic.id, * ruleName: "tf-test-rule", * logType: "delimiter_log", * logSample: "2018-05-22 15:35:53.850,INFO,XXXX", * inputType: 1, * extractRule: { * delimiter: ",", * keys: [ * "time", * "level", * "msg", * ], * timeKey: "time", * timeFormat: "%Y-%m-%d %H:%M:%S.%f", * quote: "\"", * timeZone: "GMT+08:00", * }, * userDefineRule: { * enableRawLog: true, * tailFiles: true, * shardHashKey: { * hashKey: "3C", * }, * advanced: { * closeInactive: 10, * closeRemoved: false, * closeRenamed: false, * closeEof: false, * closeTimeout: 1, * }, * }, * containerRule: { * stream: "all", * containerNameRegex: ".*test.*", * includeContainerLabelRegex: { * Key1: "Value12", * Key2: "Value23", * }, * excludeContainerLabelRegex: { * Key1: "Value12", * Key2: "Value22", * }, * includeContainerEnvRegex: { * Key1: "Value1", * Key2: "Value2", * }, * excludeContainerEnvRegex: { * Key1: "Value1", * Key2: "Value2", * }, * envTag: { * Key1: "Value1", * Key2: "Value2", * }, * kubernetesRule: { * namespaceNameRegex: ".*test.*", * workloadType: "Deployment", * workloadNameRegex: ".*test.*", * includePodLabelRegex: { * Key1: "Value1", * Key2: "Value2", * }, * excludePodLabelRegex: { * Key1: "Value1", * Key2: "Value2", * }, * podNameRegex: ".*test.*", * labelTag: { * Key1: "Value1", * Key2: "Value2", * }, * annotationTag: { * Key1: "Value1", * Key2: "Value2", * }, * }, * }, * }); * const fooHostGroup = new volcengine.tls.HostGroup("fooHostGroup", { * hostGroupName: name, * hostGroupType: "Label", * hostIdentifier: "tf-controller", * autoUpdate: false, * serviceLogging: false, * }); * // resource "volcengine_tls_rule_applier" "foo" { * // rule_id = volcengine_tls_rule.foo.id * // host_group_id = volcengine_tls_host_group.foo.id * // } * const fooRuleAppliers = volcengine.tls.getRuleAppliersOutput({ * ruleId: fooRule.id, * }); * ``` */ function getRuleAppliers(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:tls/getRuleAppliers:getRuleAppliers", { "outputFile": args.outputFile, "ruleId": args.ruleId, }, opts); } exports.getRuleAppliers = getRuleAppliers; /** * Use this data source to query detailed information of tls rule appliers * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const config = new pulumi.Config(); * const name = config.get("name") || "tf-test-rule-applier"; * const fooProject = new volcengine.tls.Project("fooProject", { * projectName: name, * description: "tf-test-project-desc", * }); * const fooTopic = new volcengine.tls.Topic("fooTopic", { * projectId: fooProject.id, * topicName: name, * ttl: 60, * shardCount: 2, * autoSplit: true, * maxSplitShard: 10, * enableTracking: true, * timeKey: "request_time", * timeFormat: "%Y-%m-%dT%H:%M:%S,%f", * tags: [{ * key: "k1", * value: "v1", * }], * logPublicIp: true, * enableHotTtl: true, * hotTtl: 30, * coldTtl: 30, * archiveTtl: 0, * }); * const fooRule = new volcengine.tls.Rule("fooRule", { * topicId: fooTopic.id, * ruleName: "tf-test-rule", * logType: "delimiter_log", * logSample: "2018-05-22 15:35:53.850,INFO,XXXX", * inputType: 1, * extractRule: { * delimiter: ",", * keys: [ * "time", * "level", * "msg", * ], * timeKey: "time", * timeFormat: "%Y-%m-%d %H:%M:%S.%f", * quote: "\"", * timeZone: "GMT+08:00", * }, * userDefineRule: { * enableRawLog: true, * tailFiles: true, * shardHashKey: { * hashKey: "3C", * }, * advanced: { * closeInactive: 10, * closeRemoved: false, * closeRenamed: false, * closeEof: false, * closeTimeout: 1, * }, * }, * containerRule: { * stream: "all", * containerNameRegex: ".*test.*", * includeContainerLabelRegex: { * Key1: "Value12", * Key2: "Value23", * }, * excludeContainerLabelRegex: { * Key1: "Value12", * Key2: "Value22", * }, * includeContainerEnvRegex: { * Key1: "Value1", * Key2: "Value2", * }, * excludeContainerEnvRegex: { * Key1: "Value1", * Key2: "Value2", * }, * envTag: { * Key1: "Value1", * Key2: "Value2", * }, * kubernetesRule: { * namespaceNameRegex: ".*test.*", * workloadType: "Deployment", * workloadNameRegex: ".*test.*", * includePodLabelRegex: { * Key1: "Value1", * Key2: "Value2", * }, * excludePodLabelRegex: { * Key1: "Value1", * Key2: "Value2", * }, * podNameRegex: ".*test.*", * labelTag: { * Key1: "Value1", * Key2: "Value2", * }, * annotationTag: { * Key1: "Value1", * Key2: "Value2", * }, * }, * }, * }); * const fooHostGroup = new volcengine.tls.HostGroup("fooHostGroup", { * hostGroupName: name, * hostGroupType: "Label", * hostIdentifier: "tf-controller", * autoUpdate: false, * serviceLogging: false, * }); * // resource "volcengine_tls_rule_applier" "foo" { * // rule_id = volcengine_tls_rule.foo.id * // host_group_id = volcengine_tls_host_group.foo.id * // } * const fooRuleAppliers = volcengine.tls.getRuleAppliersOutput({ * ruleId: fooRule.id, * }); * ``` */ function getRuleAppliersOutput(args, opts) { return pulumi.output(args).apply((a) => getRuleAppliers(a, opts)); } exports.getRuleAppliersOutput = getRuleAppliersOutput; //# sourceMappingURL=getRuleAppliers.js.map