@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
64 lines • 2.35 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.getCertificateOutput = exports.getCertificate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information on a certificate. This data source provides the name, type, state,
* domains, expiry date, and the sha1 fingerprint as configured on your DigitalOcean account.
* This is useful if the certificate in question is not managed by this provider or you need to utilize
* any of the certificates data.
*
* An error is triggered if the provided certificate name does not exist.
*
* ## Example Usage
*
* Get the certificate:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const example = digitalocean.getCertificate({
* name: "example",
* });
* ```
*/
function getCertificate(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("digitalocean:index/getCertificate:getCertificate", {
"name": args.name,
}, opts);
}
exports.getCertificate = getCertificate;
/**
* Get information on a certificate. This data source provides the name, type, state,
* domains, expiry date, and the sha1 fingerprint as configured on your DigitalOcean account.
* This is useful if the certificate in question is not managed by this provider or you need to utilize
* any of the certificates data.
*
* An error is triggered if the provided certificate name does not exist.
*
* ## Example Usage
*
* Get the certificate:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const example = digitalocean.getCertificate({
* name: "example",
* });
* ```
*/
function getCertificateOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("digitalocean:index/getCertificate:getCertificate", {
"name": args.name,
}, opts);
}
exports.getCertificateOutput = getCertificateOutput;
//# sourceMappingURL=getCertificate.js.map