@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
60 lines • 1.89 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.getSecretsOutput = exports.getSecrets = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the ARNs and names of Secrets Manager secrets matching the specified criteria.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.secretsmanager.getSecrets({
* filters: [{
* name: "name",
* values: ["example"],
* }],
* });
* ```
*/
function getSecrets(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:secretsmanager/getSecrets:getSecrets", {
"filters": args.filters,
"region": args.region,
}, opts);
}
exports.getSecrets = getSecrets;
/**
* Use this data source to get the ARNs and names of Secrets Manager secrets matching the specified criteria.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.secretsmanager.getSecrets({
* filters: [{
* name: "name",
* values: ["example"],
* }],
* });
* ```
*/
function getSecretsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:secretsmanager/getSecrets:getSecrets", {
"filters": args.filters,
"region": args.region,
}, opts);
}
exports.getSecretsOutput = getSecretsOutput;
//# sourceMappingURL=getSecrets.js.map
;