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