UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

158 lines 5.1 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.domainsOutput = exports.domains = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query detailed information of cdn domains * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooCdnCertificate = new volcengine.cdn.CdnCertificate("fooCdnCertificate", { * certificate: "", * privateKey: "", * desc: "tftest", * source: "cdn_cert_hosting", * }); * const fooCdnDomain = new volcengine.cdn.CdnDomain("fooCdnDomain", { * domain: "tftest.byte-test.com", * serviceType: "web", * tags: [ * { * key: "tfkey1", * value: "tfvalue1", * }, * { * key: "tfkey2", * value: "tfvalue2", * }, * ], * domainConfig: pulumi.jsonStringify({ * OriginProtocol: "https", * Origin: [{ * OriginAction: { * OriginLines: [{ * Address: "1.1.1.1", * HttpPort: "80", * HttpsPort: "443", * InstanceType: "ip", * OriginType: "primary", * PrivateBucketAccess: false, * Weight: "2", * }], * }, * }], * HTTPS: { * CertInfo: { * CertId: fooCdnCertificate.id, * }, * DisableHttp: false, * HTTP2: true, * Switch: true, * Ocsp: false, * TlsVersion: [ * "tlsv1.1", * "tlsv1.2", * ], * }, * }), * }); * const fooDomains = volcengine.cdn.getDomainsOutput({ * domain: fooCdnDomain.id, * }); * ``` */ /** @deprecated volcengine.cdn.Domains has been deprecated in favor of volcengine.cdn.getDomains */ function domains(args, opts) { pulumi.log.warn("domains is deprecated: volcengine.cdn.Domains has been deprecated in favor of volcengine.cdn.getDomains"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:cdn/domains:Domains", { "domain": args.domain, "https": args.https, "ipv6": args.ipv6, "originProtocol": args.originProtocol, "outputFile": args.outputFile, "primaryOrigin": args.primaryOrigin, "project": args.project, "serviceType": args.serviceType, "status": args.status, "tags": args.tags, }, opts); } exports.domains = domains; /** * Use this data source to query detailed information of cdn domains * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooCdnCertificate = new volcengine.cdn.CdnCertificate("fooCdnCertificate", { * certificate: "", * privateKey: "", * desc: "tftest", * source: "cdn_cert_hosting", * }); * const fooCdnDomain = new volcengine.cdn.CdnDomain("fooCdnDomain", { * domain: "tftest.byte-test.com", * serviceType: "web", * tags: [ * { * key: "tfkey1", * value: "tfvalue1", * }, * { * key: "tfkey2", * value: "tfvalue2", * }, * ], * domainConfig: pulumi.jsonStringify({ * OriginProtocol: "https", * Origin: [{ * OriginAction: { * OriginLines: [{ * Address: "1.1.1.1", * HttpPort: "80", * HttpsPort: "443", * InstanceType: "ip", * OriginType: "primary", * PrivateBucketAccess: false, * Weight: "2", * }], * }, * }], * HTTPS: { * CertInfo: { * CertId: fooCdnCertificate.id, * }, * DisableHttp: false, * HTTP2: true, * Switch: true, * Ocsp: false, * TlsVersion: [ * "tlsv1.1", * "tlsv1.2", * ], * }, * }), * }); * const fooDomains = volcengine.cdn.getDomainsOutput({ * domain: fooCdnDomain.id, * }); * ``` */ /** @deprecated volcengine.cdn.Domains has been deprecated in favor of volcengine.cdn.getDomains */ function domainsOutput(args, opts) { return pulumi.output(args).apply((a) => domains(a, opts)); } exports.domainsOutput = domainsOutput; //# sourceMappingURL=domains.js.map