@pulumi/consul
Version:
A Pulumi package for creating and managing consul resources.
94 lines (93 loc) • 2.51 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The `consul.AclPolicy` data source returns the information related to a
* [Consul ACL Policy](https://www.consul.io/docs/acl/acl-system.html#acl-policies).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as consul from "@pulumi/consul";
*
* const agent = consul.getAclPolicy({
* name: "agent",
* });
* export const consulAclPolicy = agent.then(agent => agent.rules);
* ```
*/
export declare function getAclPolicy(args: GetAclPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetAclPolicyResult>;
/**
* A collection of arguments for invoking getAclPolicy.
*/
export interface GetAclPolicyArgs {
/**
* The name of the ACL Policy.
*/
name: string;
/**
* The namespace to lookup the policy.
*/
namespace?: string;
/**
* The partition to lookup the policy.
*/
partition?: string;
}
/**
* A collection of values returned by getAclPolicy.
*/
export interface GetAclPolicyResult {
/**
* The datacenters associated with the ACL Policy.
*/
readonly datacenters: string[];
/**
* The description of the ACL Policy.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
readonly namespace?: string;
readonly partition?: string;
/**
* The rules associated with the ACL Policy.
*/
readonly rules: string;
}
/**
* The `consul.AclPolicy` data source returns the information related to a
* [Consul ACL Policy](https://www.consul.io/docs/acl/acl-system.html#acl-policies).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as consul from "@pulumi/consul";
*
* const agent = consul.getAclPolicy({
* name: "agent",
* });
* export const consulAclPolicy = agent.then(agent => agent.rules);
* ```
*/
export declare function getAclPolicyOutput(args: GetAclPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAclPolicyResult>;
/**
* A collection of arguments for invoking getAclPolicy.
*/
export interface GetAclPolicyOutputArgs {
/**
* The name of the ACL Policy.
*/
name: pulumi.Input<string>;
/**
* The namespace to lookup the policy.
*/
namespace?: pulumi.Input<string>;
/**
* The partition to lookup the policy.
*/
partition?: pulumi.Input<string>;
}