AuthBackend
Example Usage
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var example = new Vault.AuthBackend("example", new Vault.AuthBackendArgs
{
Tune = new Vault.Inputs.AuthBackendTuneArgs
{
ListingVisibility = "unauth",
MaxLeaseTtl = "90000s",
},
Type = "github",
});
}
}
Coming soon!
import pulumi
import pulumi_vault as vault
example = vault.AuthBackend("example",
tune={
"listing_visibility": "unauth",
"maxLeaseTtl": "90000s",
},
type="github")import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const example = new vault.AuthBackend("example", {
tune: {
listingVisibility: "unauth",
maxLeaseTtl: "90000s",
},
type: "github",
});Create a AuthBackend Resource
new AuthBackend(name: string, args: AuthBackendArgs, opts?: CustomResourceOptions);def AuthBackend(resource_name, opts=None, default_lease_ttl_seconds=None, description=None, listing_visibility=None, local=None, max_lease_ttl_seconds=None, path=None, tune=None, type=None, __props__=None);func NewAuthBackend(ctx *Context, name string, args AuthBackendArgs, opts ...ResourceOption) (*AuthBackend, error)public AuthBackend(string name, AuthBackendArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AuthBackendArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AuthBackendArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthBackendArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AuthBackend Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AuthBackend resource accepts the following input properties:
- Type string
The name of the auth method type
- Default
Lease intTtl Seconds (Optional; Deprecated, use
tune.default_lease_ttlif you are using Vault provider version >= 1.8) The default lease duration in seconds.- Description string
A description of the auth method
- Listing
Visibility string Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- Local bool
Specifies if the auth method is local only.
- Max
Lease intTtl Seconds (Optional; Deprecated, use
tune.max_lease_ttlif you are using Vault provider version >= 1.8) The maximum lease duration in seconds.- Path string
The path to mount the auth method — this defaults to the name of the type
- Tune
Auth
Backend Tune Args Extra configuration block. Structure is documented below.
- Type string
The name of the auth method type
- Default
Lease intTtl Seconds (Optional; Deprecated, use
tune.default_lease_ttlif you are using Vault provider version >= 1.8) The default lease duration in seconds.- Description string
A description of the auth method
- Listing
Visibility string Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- Local bool
Specifies if the auth method is local only.
- Max
Lease intTtl Seconds (Optional; Deprecated, use
tune.max_lease_ttlif you are using Vault provider version >= 1.8) The maximum lease duration in seconds.- Path string
The path to mount the auth method — this defaults to the name of the type
- Tune
Auth
Backend Tune Extra configuration block. Structure is documented below.
- type string
The name of the auth method type
- default
Lease numberTtl Seconds (Optional; Deprecated, use
tune.default_lease_ttlif you are using Vault provider version >= 1.8) The default lease duration in seconds.- description string
A description of the auth method
- listing
Visibility string Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- local boolean
Specifies if the auth method is local only.
- max
Lease numberTtl Seconds (Optional; Deprecated, use
tune.max_lease_ttlif you are using Vault provider version >= 1.8) The maximum lease duration in seconds.- path string
The path to mount the auth method — this defaults to the name of the type
- tune
Auth
Backend Tune Extra configuration block. Structure is documented below.
- type str
The name of the auth method type
- default_
lease_ floatttl_ seconds (Optional; Deprecated, use
tune.default_lease_ttlif you are using Vault provider version >= 1.8) The default lease duration in seconds.- description str
A description of the auth method
- listing_
visibility str Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- local bool
Specifies if the auth method is local only.
- max_
lease_ floatttl_ seconds (Optional; Deprecated, use
tune.max_lease_ttlif you are using Vault provider version >= 1.8) The maximum lease duration in seconds.- path str
The path to mount the auth method — this defaults to the name of the type
- tune
Dict[Auth
Backend Tune] Extra configuration block. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthBackend resource produces the following output properties:
Look up an Existing AuthBackend Resource
Get an existing AuthBackend resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AuthBackendState, opts?: CustomResourceOptions): AuthBackendstatic get(resource_name, id, opts=None, accessor=None, default_lease_ttl_seconds=None, description=None, listing_visibility=None, local=None, max_lease_ttl_seconds=None, path=None, tune=None, type=None, __props__=None);func GetAuthBackend(ctx *Context, name string, id IDInput, state *AuthBackendState, opts ...ResourceOption) (*AuthBackend, error)public static AuthBackend Get(string name, Input<string> id, AuthBackendState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Accessor string
The accessor for this auth method
- Default
Lease intTtl Seconds (Optional; Deprecated, use
tune.default_lease_ttlif you are using Vault provider version >= 1.8) The default lease duration in seconds.- Description string
A description of the auth method
- Listing
Visibility string Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- Local bool
Specifies if the auth method is local only.
- Max
Lease intTtl Seconds (Optional; Deprecated, use
tune.max_lease_ttlif you are using Vault provider version >= 1.8) The maximum lease duration in seconds.- Path string
The path to mount the auth method — this defaults to the name of the type
- Tune
Auth
Backend Tune Args Extra configuration block. Structure is documented below.
- Type string
The name of the auth method type
- Accessor string
The accessor for this auth method
- Default
Lease intTtl Seconds (Optional; Deprecated, use
tune.default_lease_ttlif you are using Vault provider version >= 1.8) The default lease duration in seconds.- Description string
A description of the auth method
- Listing
Visibility string Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- Local bool
Specifies if the auth method is local only.
- Max
Lease intTtl Seconds (Optional; Deprecated, use
tune.max_lease_ttlif you are using Vault provider version >= 1.8) The maximum lease duration in seconds.- Path string
The path to mount the auth method — this defaults to the name of the type
- Tune
Auth
Backend Tune Extra configuration block. Structure is documented below.
- Type string
The name of the auth method type
- accessor string
The accessor for this auth method
- default
Lease numberTtl Seconds (Optional; Deprecated, use
tune.default_lease_ttlif you are using Vault provider version >= 1.8) The default lease duration in seconds.- description string
A description of the auth method
- listing
Visibility string Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- local boolean
Specifies if the auth method is local only.
- max
Lease numberTtl Seconds (Optional; Deprecated, use
tune.max_lease_ttlif you are using Vault provider version >= 1.8) The maximum lease duration in seconds.- path string
The path to mount the auth method — this defaults to the name of the type
- tune
Auth
Backend Tune Extra configuration block. Structure is documented below.
- type string
The name of the auth method type
- accessor str
The accessor for this auth method
- default_
lease_ floatttl_ seconds (Optional; Deprecated, use
tune.default_lease_ttlif you are using Vault provider version >= 1.8) The default lease duration in seconds.- description str
A description of the auth method
- listing_
visibility str Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- local bool
Specifies if the auth method is local only.
- max_
lease_ floatttl_ seconds (Optional; Deprecated, use
tune.max_lease_ttlif you are using Vault provider version >= 1.8) The maximum lease duration in seconds.- path str
The path to mount the auth method — this defaults to the name of the type
- tune
Dict[Auth
Backend Tune] Extra configuration block. Structure is documented below.
- type str
The name of the auth method type
Supporting Types
AuthBackendTune
- Allowed
Response List<string>Headers List of headers to whitelist and allowing a plugin to include them in the response.
- Audit
Non List<string>Hmac Request Keys Specifies the list of keys that will not be HMAC’d by audit devices in the request data object.
- Audit
Non List<string>Hmac Response Keys Specifies the list of keys that will not be HMAC’d by audit devices in the response data object.
- Default
Lease stringTtl Specifies the default time-to-live. If set, this overrides the global default. Must be a valid duration string
- Listing
Visibility string Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- Max
Lease stringTtl Specifies the maximum time-to-live. If set, this overrides the global default. Must be a valid duration string
- Passthrough
Request List<string>Headers List of headers to whitelist and pass from the request to the backend.
- Token
Type string Specifies the type of tokens that should be returned by the mount. Valid values are “default-service”, “default-batch”, “service”, “batch”.
- Allowed
Response []stringHeaders List of headers to whitelist and allowing a plugin to include them in the response.
- Audit
Non []stringHmac Request Keys Specifies the list of keys that will not be HMAC’d by audit devices in the request data object.
- Audit
Non []stringHmac Response Keys Specifies the list of keys that will not be HMAC’d by audit devices in the response data object.
- Default
Lease stringTtl Specifies the default time-to-live. If set, this overrides the global default. Must be a valid duration string
- Listing
Visibility string Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- Max
Lease stringTtl Specifies the maximum time-to-live. If set, this overrides the global default. Must be a valid duration string
- Passthrough
Request []stringHeaders List of headers to whitelist and pass from the request to the backend.
- Token
Type string Specifies the type of tokens that should be returned by the mount. Valid values are “default-service”, “default-batch”, “service”, “batch”.
- allowed
Response string[]Headers List of headers to whitelist and allowing a plugin to include them in the response.
- audit
Non string[]Hmac Request Keys Specifies the list of keys that will not be HMAC’d by audit devices in the request data object.
- audit
Non string[]Hmac Response Keys Specifies the list of keys that will not be HMAC’d by audit devices in the response data object.
- default
Lease stringTtl Specifies the default time-to-live. If set, this overrides the global default. Must be a valid duration string
- listing
Visibility string Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- max
Lease stringTtl Specifies the maximum time-to-live. If set, this overrides the global default. Must be a valid duration string
- passthrough
Request string[]Headers List of headers to whitelist and pass from the request to the backend.
- token
Type string Specifies the type of tokens that should be returned by the mount. Valid values are “default-service”, “default-batch”, “service”, “batch”.
- allowed
Response List[str]Headers List of headers to whitelist and allowing a plugin to include them in the response.
- audit
Non List[str]Hmac Request Keys Specifies the list of keys that will not be HMAC’d by audit devices in the request data object.
- audit
Non List[str]Hmac Response Keys Specifies the list of keys that will not be HMAC’d by audit devices in the response data object.
- default
Lease strTtl Specifies the default time-to-live. If set, this overrides the global default. Must be a valid duration string
- listing_
visibility str Specifies whether to show this mount in the UI-specific listing endpoint. Valid values are “unauth” or “hidden”.
- max
Lease strTtl Specifies the maximum time-to-live. If set, this overrides the global default. Must be a valid duration string
- passthrough
Request List[str]Headers List of headers to whitelist and pass from the request to the backend.
- token_
type str Specifies the type of tokens that should be returned by the mount. Valid values are “default-service”, “default-batch”, “service”, “batch”.
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vaultTerraform Provider.