@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
96 lines • 3.1 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDictionariesOutput = exports.getDictionaries = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to get a list of [Fastly dictionaries](https://developer.fastly.com/reference/api/dictionaries/) for the specified service/version.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fastly from "@pulumi/fastly";
*
* const exampleServiceVcl = new fastly.ServiceVcl("example", {
* name: "Example Service",
* domains: [{
* name: "example.com",
* }],
* dictionaries: [
* {
* name: "example_1",
* },
* {
* name: "example_2",
* },
* {
* name: "example_3",
* },
* ],
* forceDestroy: true,
* });
* const example = fastly.getDictionariesOutput({
* serviceId: exampleServiceVcl.id,
* serviceVersion: exampleServiceVcl.activeVersion,
* });
* export const serviceDictionaries = example;
* ```
*
* [1]: https://developer.fastly.com/reference/api/dictionaries/
*/
function getDictionaries(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("fastly:index/getDictionaries:getDictionaries", {
"serviceId": args.serviceId,
"serviceVersion": args.serviceVersion,
}, opts);
}
exports.getDictionaries = getDictionaries;
/**
* Use this data source to get a list of [Fastly dictionaries](https://developer.fastly.com/reference/api/dictionaries/) for the specified service/version.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fastly from "@pulumi/fastly";
*
* const exampleServiceVcl = new fastly.ServiceVcl("example", {
* name: "Example Service",
* domains: [{
* name: "example.com",
* }],
* dictionaries: [
* {
* name: "example_1",
* },
* {
* name: "example_2",
* },
* {
* name: "example_3",
* },
* ],
* forceDestroy: true,
* });
* const example = fastly.getDictionariesOutput({
* serviceId: exampleServiceVcl.id,
* serviceVersion: exampleServiceVcl.activeVersion,
* });
* export const serviceDictionaries = example;
* ```
*
* [1]: https://developer.fastly.com/reference/api/dictionaries/
*/
function getDictionariesOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("fastly:index/getDictionaries:getDictionaries", {
"serviceId": args.serviceId,
"serviceVersion": args.serviceVersion,
}, opts);
}
exports.getDictionariesOutput = getDictionariesOutput;
//# sourceMappingURL=getDictionaries.js.map