UNPKG

@pulumi/fastly

Version:

A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4

76 lines 3.27 kB
"use strict"; // *** 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.getTlsConfigurationOutput = exports.getTlsConfiguration = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to get the ID of a TLS configuration for use with other resources. * * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination * with any of the others. * * > **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fastly from "@pulumi/fastly"; * * const example = fastly.getTlsConfiguration({ * "default": true, * }); * const exampleTlsActivation = new fastly.TlsActivation("example", {configurationId: example.then(example => example.id)}); * ``` */ function getTlsConfiguration(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("fastly:index/getTlsConfiguration:getTlsConfiguration", { "default": args.default, "httpProtocols": args.httpProtocols, "id": args.id, "name": args.name, "tlsProtocols": args.tlsProtocols, "tlsService": args.tlsService, }, opts); } exports.getTlsConfiguration = getTlsConfiguration; /** * Use this data source to get the ID of a TLS configuration for use with other resources. * * > **Warning:** The data source's filters are applied using an **AND** boolean operator, so depending on the combination * of filters, they may become mutually exclusive. The exception to this is `id` which must not be specified in combination * with any of the others. * * > **Note:** If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fastly from "@pulumi/fastly"; * * const example = fastly.getTlsConfiguration({ * "default": true, * }); * const exampleTlsActivation = new fastly.TlsActivation("example", {configurationId: example.then(example => example.id)}); * ``` */ function getTlsConfigurationOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("fastly:index/getTlsConfiguration:getTlsConfiguration", { "default": args.default, "httpProtocols": args.httpProtocols, "id": args.id, "name": args.name, "tlsProtocols": args.tlsProtocols, "tlsService": args.tlsService, }, opts); } exports.getTlsConfigurationOutput = getTlsConfigurationOutput; //# sourceMappingURL=getTlsConfiguration.js.map