UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

70 lines 2.88 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.getVulnerabilityProtectionProfileOutput = exports.getVulnerabilityProtectionProfile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * VulnerabilityProtectionProfile data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // * // Data source to retrieve a single SCM Vulnerability Protection Profile object by its ID. * // * // Replace the ID with the UUID of the SCM Vulnerability Protection Profile you want to find. * const scmVpProfile = scm.getVulnerabilityProtectionProfile({ * id: "f2a337e2-f3a6-45aa-9273-de3d216f8d9c", * }); * export const scmVulnerabilityProtectionProfileDetails = { * profileId: scmVpProfile.then(scmVpProfile => scmVpProfile.id), * folder: scmVpProfile.then(scmVpProfile => scmVpProfile.folder), * name: scmVpProfile.then(scmVpProfile => scmVpProfile.name), * }; * ``` */ function getVulnerabilityProtectionProfile(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scm:index/getVulnerabilityProtectionProfile:getVulnerabilityProtectionProfile", { "id": args.id, "name": args.name, }, opts); } exports.getVulnerabilityProtectionProfile = getVulnerabilityProtectionProfile; /** * VulnerabilityProtectionProfile data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // * // Data source to retrieve a single SCM Vulnerability Protection Profile object by its ID. * // * // Replace the ID with the UUID of the SCM Vulnerability Protection Profile you want to find. * const scmVpProfile = scm.getVulnerabilityProtectionProfile({ * id: "f2a337e2-f3a6-45aa-9273-de3d216f8d9c", * }); * export const scmVulnerabilityProtectionProfileDetails = { * profileId: scmVpProfile.then(scmVpProfile => scmVpProfile.id), * folder: scmVpProfile.then(scmVpProfile => scmVpProfile.folder), * name: scmVpProfile.then(scmVpProfile => scmVpProfile.name), * }; * ``` */ function getVulnerabilityProtectionProfileOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scm:index/getVulnerabilityProtectionProfile:getVulnerabilityProtectionProfile", { "id": args.id, "name": args.name, }, opts); } exports.getVulnerabilityProtectionProfileOutput = getVulnerabilityProtectionProfileOutput; //# sourceMappingURL=getVulnerabilityProtectionProfile.js.map