@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
44 lines • 1.75 kB
JavaScript
;
// *** 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.getCdnOriginGroupOutput = exports.getCdnOriginGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information about a Yandex CDN Origin Group. For more information, see
* [the official documentation](https://cloud.yandex.ru/docs/cdn/concepts/origins).
*
* > **_NOTE:_** CDN provider must be activated prior usage of CDN resources, either via UI console or via yc cli command: ```yc cdn provider activate --folder-id <folder-id> --type gcore```
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const myGroup = pulumi.output(yandex.getCdnOriginGroup({
* originGroupId: Number.parseFloat("some_instance_id"),
* }));
*
* export const originGroupName = myGroup.name!;
* ```
*/
function getCdnOriginGroup(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("yandex:index/getCdnOriginGroup:getCdnOriginGroup", {
"folderId": args.folderId,
"name": args.name,
"originGroupId": args.originGroupId,
}, opts);
}
exports.getCdnOriginGroup = getCdnOriginGroup;
function getCdnOriginGroupOutput(args, opts) {
return pulumi.output(args).apply(a => getCdnOriginGroup(a, opts));
}
exports.getCdnOriginGroupOutput = getCdnOriginGroupOutput;
//# sourceMappingURL=getCdnOriginGroup.js.map