@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
112 lines • 3.78 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.getSecretOutput = exports.getSecret = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const example = openstack.keymanager.getSecret({
* mode: "cbc",
* secretType: "passphrase",
* });
* ```
*
* ## Date Filters
*
* The values for the `expirationFilter`, `createdAtFilter`, and
* `updatedAtFilter` parameters are comma-separated lists of time stamps in
* RFC3339 format. The time stamps can be prefixed with any of these comparison
* operators: *gt:* (greater-than), *gte:* (greater-than-or-equal), *lt:*
* (less-than), *lte:* (less-than-or-equal).
*
* For example, to get a passphrase a Secret with CBC moda, that will expire in
* January of 2020:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const dateFilterExample = openstack.keymanager.getSecret({
* mode: "cbc",
* secretType: "passphrase",
* expirationFilter: "gt:2020-01-01T00:00:00Z",
* });
* ```
*/
function getSecret(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:keymanager/getSecret:getSecret", {
"aclOnly": args.aclOnly,
"algorithm": args.algorithm,
"bitLength": args.bitLength,
"createdAtFilter": args.createdAtFilter,
"expirationFilter": args.expirationFilter,
"mode": args.mode,
"name": args.name,
"region": args.region,
"secretType": args.secretType,
"updatedAtFilter": args.updatedAtFilter,
}, opts);
}
exports.getSecret = getSecret;
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const example = openstack.keymanager.getSecret({
* mode: "cbc",
* secretType: "passphrase",
* });
* ```
*
* ## Date Filters
*
* The values for the `expirationFilter`, `createdAtFilter`, and
* `updatedAtFilter` parameters are comma-separated lists of time stamps in
* RFC3339 format. The time stamps can be prefixed with any of these comparison
* operators: *gt:* (greater-than), *gte:* (greater-than-or-equal), *lt:*
* (less-than), *lte:* (less-than-or-equal).
*
* For example, to get a passphrase a Secret with CBC moda, that will expire in
* January of 2020:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const dateFilterExample = openstack.keymanager.getSecret({
* mode: "cbc",
* secretType: "passphrase",
* expirationFilter: "gt:2020-01-01T00:00:00Z",
* });
* ```
*/
function getSecretOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:keymanager/getSecret:getSecret", {
"aclOnly": args.aclOnly,
"algorithm": args.algorithm,
"bitLength": args.bitLength,
"createdAtFilter": args.createdAtFilter,
"expirationFilter": args.expirationFilter,
"mode": args.mode,
"name": args.name,
"region": args.region,
"secretType": args.secretType,
"updatedAtFilter": args.updatedAtFilter,
}, opts);
}
exports.getSecretOutput = getSecretOutput;
//# sourceMappingURL=getSecret.js.map