@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
146 lines • 4.51 kB
JavaScript
"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.getConfigsOutput = exports.getConfigs = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to query detailed information of cdn configs
* ## 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 fooConfigs = volcengine.cdn.getConfigsOutput({
* domain: fooCdnDomain.id,
* });
* ```
*/
function getConfigs(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:cdn/getConfigs:getConfigs", {
"domain": args.domain,
"outputFile": args.outputFile,
}, opts);
}
exports.getConfigs = getConfigs;
/**
* Use this data source to query detailed information of cdn configs
* ## 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 fooConfigs = volcengine.cdn.getConfigsOutput({
* domain: fooCdnDomain.id,
* });
* ```
*/
function getConfigsOutput(args, opts) {
return pulumi.output(args).apply((a) => getConfigs(a, opts));
}
exports.getConfigsOutput = getConfigsOutput;
//# sourceMappingURL=getConfigs.js.map