UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

119 lines 5.03 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.Shipper = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides a resource to manage tls shipper * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.tls.Shipper("foo", { * contentInfo: { * format: "json", * jsonInfo: { * enable: true, * keys: [ * "__content", * "__pod_name__", * "__path__", * "__tf-test__", * ], * }, * }, * shipperEndTime: 1751255700021, * shipperName: "tf-test", * shipperStartTime: 1750737324521, * shipperType: "tos", * topicId: "8ba48bd7-2493-4300-b1d0-cb7xxxxxx", * tosShipperInfo: { * bucket: "tf-test", * compress: "snappy", * interval: 100, * maxSize: 100, * partitionFormat: "%Y/%m/%d/%H/%M", * prefix: "terraform_1.9.4_linux_amd64.zip", * }, * }); * ``` * * ## Import * * Shipper can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:tls/shipper:Shipper default resource_id * ``` */ class Shipper extends pulumi.CustomResource { /** * Get an existing Shipper resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new Shipper(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Shipper. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Shipper.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["contentInfo"] = state ? state.contentInfo : undefined; resourceInputs["kafkaShipperInfo"] = state ? state.kafkaShipperInfo : undefined; resourceInputs["shipperEndTime"] = state ? state.shipperEndTime : undefined; resourceInputs["shipperName"] = state ? state.shipperName : undefined; resourceInputs["shipperStartTime"] = state ? state.shipperStartTime : undefined; resourceInputs["shipperType"] = state ? state.shipperType : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["topicId"] = state ? state.topicId : undefined; resourceInputs["tosShipperInfo"] = state ? state.tosShipperInfo : undefined; } else { const args = argsOrState; if ((!args || args.contentInfo === undefined) && !opts.urn) { throw new Error("Missing required property 'contentInfo'"); } if ((!args || args.shipperName === undefined) && !opts.urn) { throw new Error("Missing required property 'shipperName'"); } if ((!args || args.topicId === undefined) && !opts.urn) { throw new Error("Missing required property 'topicId'"); } resourceInputs["contentInfo"] = args ? args.contentInfo : undefined; resourceInputs["kafkaShipperInfo"] = args ? args.kafkaShipperInfo : undefined; resourceInputs["shipperEndTime"] = args ? args.shipperEndTime : undefined; resourceInputs["shipperName"] = args ? args.shipperName : undefined; resourceInputs["shipperStartTime"] = args ? args.shipperStartTime : undefined; resourceInputs["shipperType"] = args ? args.shipperType : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["topicId"] = args ? args.topicId : undefined; resourceInputs["tosShipperInfo"] = args ? args.tosShipperInfo : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Shipper.__pulumiType, name, resourceInputs, opts); } } exports.Shipper = Shipper; /** @internal */ Shipper.__pulumiType = 'volcengine:tls/shipper:Shipper'; //# sourceMappingURL=shipper.js.map