@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
66 lines • 2.85 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.getTlsPlatformCertificateOutput = exports.getTlsPlatformCertificate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to get information of a Platform TLS certificate 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.getTlsPlatformCertificate({
* domains: ["example.com"],
* });
* ```
*/
function getTlsPlatformCertificate(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", {
"domains": args.domains,
"id": args.id,
}, opts);
}
exports.getTlsPlatformCertificate = getTlsPlatformCertificate;
/**
* Use this data source to get information of a Platform TLS certificate 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.getTlsPlatformCertificate({
* domains: ["example.com"],
* });
* ```
*/
function getTlsPlatformCertificateOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("fastly:index/getTlsPlatformCertificate:getTlsPlatformCertificate", {
"domains": args.domains,
"id": args.id,
}, opts);
}
exports.getTlsPlatformCertificateOutput = getTlsPlatformCertificateOutput;
//# sourceMappingURL=getTlsPlatformCertificate.js.map