@pulumi/fastly
Version:
A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4
70 lines • 2.96 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.getTlsActivationOutput = exports.getTlsActivation = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled.
*
* > **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.getTlsActivation({
* domain: "example.com",
* });
* ```
*/
function getTlsActivation(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("fastly:index/getTlsActivation:getTlsActivation", {
"certificateId": args.certificateId,
"configurationId": args.configurationId,
"domain": args.domain,
"id": args.id,
}, opts);
}
exports.getTlsActivation = getTlsActivation;
/**
* Use this data source to get information on a TLS activation, including the certificate used, and the domain on which TLS was enabled.
*
* > **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.getTlsActivation({
* domain: "example.com",
* });
* ```
*/
function getTlsActivationOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("fastly:index/getTlsActivation:getTlsActivation", {
"certificateId": args.certificateId,
"configurationId": args.configurationId,
"domain": args.domain,
"id": args.id,
}, opts);
}
exports.getTlsActivationOutput = getTlsActivationOutput;
//# sourceMappingURL=getTlsActivation.js.map