Class AclAuthMethod
Starting with Consul 1.5.0, the consul..AclAuthMethod resource can be used to managed Consul ACL auth methods.
Example Usage
using Pulumi;
using Consul = Pulumi.Consul;
class MyStack : Stack
{
public MyStack()
{
var minikube = new Consul.AclAuthMethod("minikube", new Consul.AclAuthMethodArgs
{
Config =
{
{ "CACert", @"-----BEGIN CERTIFICATE-----
...-----END CERTIFICATE-----
" },
{ "Host", "https://192.0.2.42:8443" },
{ "ServiceAccountJWT", "eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9..." },
},
Description = "dev minikube cluster",
Type = "kubernetes",
});
}
}
Inherited Members
Namespace: Pulumi.Consul
Assembly: Pulumi.Consul.dll
Syntax
public class AclAuthMethod : CustomResource
Constructors
View SourceAclAuthMethod(String, AclAuthMethodArgs, CustomResourceOptions)
Create a AclAuthMethod resource with the given unique name, arguments, and options.
Declaration
public AclAuthMethod(string name, AclAuthMethodArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AclAuthMethodArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceConfig
The raw configuration for this ACL auth method.
Declaration
public Output<ImmutableDictionary<string, string>> Config { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Description
A free form human readable description of the auth method.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the ACL auth method.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Namespace
The namespace to create the policy within.
Declaration
public Output<string> Namespace { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Type
The type of the ACL auth method.
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AclAuthMethodState, CustomResourceOptions)
Get an existing AclAuthMethod resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AclAuthMethod Get(string name, Input<string> id, AclAuthMethodState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AclAuthMethodState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AclAuthMethod |