@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
155 lines • 4.81 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.getDomainsOutput = exports.getDomains = 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,
* });
* ```
*/
function getDomains(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:cdn/getDomains:getDomains", {
"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.getDomains = getDomains;
/**
* 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,
* });
* ```
*/
function getDomainsOutput(args, opts) {
return pulumi.output(args).apply((a) => getDomains(a, opts));
}
exports.getDomainsOutput = getDomainsOutput;
//# sourceMappingURL=getDomains.js.map