@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
78 lines • 3.13 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.getTlsPrivateKeyOutput = exports.getTlsPrivateKey = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to get information on a TLS Private Key uploaded to Fastly.
*
* > **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 demo = fastly.getTlsPrivateKey({
* name: "demo-private-key",
* });
* export const privateKeyNeedsReplacing = demo.then(demo => demo.replace);
* ```
*/
function getTlsPrivateKey(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("fastly:index/getTlsPrivateKey:getTlsPrivateKey", {
"createdAt": args.createdAt,
"id": args.id,
"keyLength": args.keyLength,
"keyType": args.keyType,
"name": args.name,
"publicKeySha1": args.publicKeySha1,
}, opts);
}
exports.getTlsPrivateKey = getTlsPrivateKey;
/**
* Use this data source to get information on a TLS Private Key uploaded to Fastly.
*
* > **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 demo = fastly.getTlsPrivateKey({
* name: "demo-private-key",
* });
* export const privateKeyNeedsReplacing = demo.then(demo => demo.replace);
* ```
*/
function getTlsPrivateKeyOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("fastly:index/getTlsPrivateKey:getTlsPrivateKey", {
"createdAt": args.createdAt,
"id": args.id,
"keyLength": args.keyLength,
"keyType": args.keyType,
"name": args.name,
"publicKeySha1": args.publicKeySha1,
}, opts);
}
exports.getTlsPrivateKeyOutput = getTlsPrivateKeyOutput;
//# sourceMappingURL=getTlsPrivateKey.js.map