UNPKG

@pulumi/cloudngfwaws

Version:

A Pulumi package for creating and managing Cloud NGFW for AWS resources.

86 lines 2.62 kB
"use strict"; // *** 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"); /** * Data source for retrieving certificate information. * * ## Admin Permission Type * * * `Rulestack` (for `scope="Local"`) * * `Global Rulestack` (for `scope="Global"`) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudngfwaws from "@pulumi/cloudngfwaws"; * * const r = new cloudngfwaws.Rulestack("r", { * name: "my-rulestack", * scope: "Local", * accountId: "12345", * description: "Made by Pulumi", * profileConfig: { * antiSpyware: "BestPractice", * }, * }); * const example = cloudngfwaws.getCertificateOutput({ * rulestack: r.name, * name: "foobar", * }); * ``` */ function getCertificate(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("cloudngfwaws:index/getCertificate:getCertificate", { "configType": args.configType, "name": args.name, "rulestack": args.rulestack, "scope": args.scope, }, opts); } exports.getCertificate = getCertificate; /** * Data source for retrieving certificate information. * * ## Admin Permission Type * * * `Rulestack` (for `scope="Local"`) * * `Global Rulestack` (for `scope="Global"`) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudngfwaws from "@pulumi/cloudngfwaws"; * * const r = new cloudngfwaws.Rulestack("r", { * name: "my-rulestack", * scope: "Local", * accountId: "12345", * description: "Made by Pulumi", * profileConfig: { * antiSpyware: "BestPractice", * }, * }); * const example = cloudngfwaws.getCertificateOutput({ * rulestack: r.name, * name: "foobar", * }); * ``` */ function getCertificateOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("cloudngfwaws:index/getCertificate:getCertificate", { "configType": args.configType, "name": args.name, "rulestack": args.rulestack, "scope": args.scope, }, opts); } exports.getCertificateOutput = getCertificateOutput; //# sourceMappingURL=getCertificate.js.map