@pulumi/consul
Version:
A Pulumi package for creating and managing consul resources.
58 lines • 2.1 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAclAuthMethodOutput = exports.getAclAuthMethod = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The `consul.AclAuthMethod` data source returns the information related to a
* [Consul Auth Method](https://www.consul.io/docs/acl/acl-auth-methods.html).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as consul from "@pulumi/consul";
*
* const test = consul.getAclAuthMethod({
* name: "minikube",
* });
* export const consulAclAuthMethod = test.then(test => test.config);
* ```
*/
function getAclAuthMethod(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("consul:index/getAclAuthMethod:getAclAuthMethod", {
"name": args.name,
"namespace": args.namespace,
"partition": args.partition,
}, opts);
}
exports.getAclAuthMethod = getAclAuthMethod;
/**
* The `consul.AclAuthMethod` data source returns the information related to a
* [Consul Auth Method](https://www.consul.io/docs/acl/acl-auth-methods.html).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as consul from "@pulumi/consul";
*
* const test = consul.getAclAuthMethod({
* name: "minikube",
* });
* export const consulAclAuthMethod = test.then(test => test.config);
* ```
*/
function getAclAuthMethodOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("consul:index/getAclAuthMethod:getAclAuthMethod", {
"name": args.name,
"namespace": args.namespace,
"partition": args.partition,
}, opts);
}
exports.getAclAuthMethodOutput = getAclAuthMethodOutput;
//# sourceMappingURL=getAclAuthMethod.js.map