@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.57 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.getDecryptionProfileOutput = exports.getDecryptionProfile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* DecryptionProfile data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* //
* // Data source to retrieve a single SCM Decryption Profile object by its ID.
* //
* // Replace the ID with the UUID of the SCM Decryption Profile you want to find.
* const scmDpProfile = scm.getDecryptionProfile({
* id: "c7629092-d286-400b-ba3f-1d57b8065645",
* });
* export const scmDecryptionProfileDetails = {
* profileId: scmDpProfile.then(scmDpProfile => scmDpProfile.id),
* folder: scmDpProfile.then(scmDpProfile => scmDpProfile.folder),
* name: scmDpProfile.then(scmDpProfile => scmDpProfile.name),
* };
* ```
*/
function getDecryptionProfile(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scm:index/getDecryptionProfile:getDecryptionProfile", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getDecryptionProfile = getDecryptionProfile;
/**
* DecryptionProfile data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* //
* // Data source to retrieve a single SCM Decryption Profile object by its ID.
* //
* // Replace the ID with the UUID of the SCM Decryption Profile you want to find.
* const scmDpProfile = scm.getDecryptionProfile({
* id: "c7629092-d286-400b-ba3f-1d57b8065645",
* });
* export const scmDecryptionProfileDetails = {
* profileId: scmDpProfile.then(scmDpProfile => scmDpProfile.id),
* folder: scmDpProfile.then(scmDpProfile => scmDpProfile.folder),
* name: scmDpProfile.then(scmDpProfile => scmDpProfile.name),
* };
* ```
*/
function getDecryptionProfileOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scm:index/getDecryptionProfile:getDecryptionProfile", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getDecryptionProfileOutput = getDecryptionProfileOutput;
//# sourceMappingURL=getDecryptionProfile.js.map