@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
68 lines • 3.03 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.getAntiSpywareProfileOutput = exports.getAntiSpywareProfile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* AntiSpywareProfile data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Look up anti-spyware-profile by ID
* const scmAntiSpywareProfileDs = scm.getAntiSpywareProfile({
* id: "7720ab77-d9fe-42c1-8001-6ef2202aae8c",
* });
* export const scmAntiSpywareProfileOutput = {
* profileId: scmAntiSpywareProfileDs.then(scmAntiSpywareProfileDs => scmAntiSpywareProfileDs.id),
* folder: scmAntiSpywareProfileDs.then(scmAntiSpywareProfileDs => scmAntiSpywareProfileDs.folder),
* name: scmAntiSpywareProfileDs.then(scmAntiSpywareProfileDs => scmAntiSpywareProfileDs.name),
* description: scmAntiSpywareProfileDs.then(scmAntiSpywareProfileDs => scmAntiSpywareProfileDs.description),
* cloudInlineAnalysis: scmAntiSpywareProfileDs.then(scmAntiSpywareProfileDs => scmAntiSpywareProfileDs.cloudInlineAnalysis),
* };
* ```
*/
function getAntiSpywareProfile(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scm:index/getAntiSpywareProfile:getAntiSpywareProfile", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getAntiSpywareProfile = getAntiSpywareProfile;
/**
* AntiSpywareProfile data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Look up anti-spyware-profile by ID
* const scmAntiSpywareProfileDs = scm.getAntiSpywareProfile({
* id: "7720ab77-d9fe-42c1-8001-6ef2202aae8c",
* });
* export const scmAntiSpywareProfileOutput = {
* profileId: scmAntiSpywareProfileDs.then(scmAntiSpywareProfileDs => scmAntiSpywareProfileDs.id),
* folder: scmAntiSpywareProfileDs.then(scmAntiSpywareProfileDs => scmAntiSpywareProfileDs.folder),
* name: scmAntiSpywareProfileDs.then(scmAntiSpywareProfileDs => scmAntiSpywareProfileDs.name),
* description: scmAntiSpywareProfileDs.then(scmAntiSpywareProfileDs => scmAntiSpywareProfileDs.description),
* cloudInlineAnalysis: scmAntiSpywareProfileDs.then(scmAntiSpywareProfileDs => scmAntiSpywareProfileDs.cloudInlineAnalysis),
* };
* ```
*/
function getAntiSpywareProfileOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scm:index/getAntiSpywareProfile:getAntiSpywareProfile", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getAntiSpywareProfileOutput = getAntiSpywareProfileOutput;
//# sourceMappingURL=getAntiSpywareProfile.js.map