Class SecretBackendRole
Creates a role on an PKI Secret Backend for Vault.
Example Usage
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var pki = new Vault.PkiSecret.SecretBackend("pki", new Vault.PkiSecret.SecretBackendArgs
{
DefaultLeaseTtlSeconds = 3600,
MaxLeaseTtlSeconds = 86400,
Path = "%s",
});
var role = new Vault.PkiSecret.SecretBackendRole("role", new Vault.PkiSecret.SecretBackendRoleArgs
{
Backend = pki.Path,
});
}
}
Inherited Members
Namespace: Pulumi.Vault.PkiSecret
Assembly: Pulumi.Vault.dll
Syntax
public class SecretBackendRole : CustomResource
Constructors
View SourceSecretBackendRole(String, SecretBackendRoleArgs, CustomResourceOptions)
Create a SecretBackendRole resource with the given unique name, arguments, and options.
Declaration
public SecretBackendRole(string name, SecretBackendRoleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SecretBackendRoleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAllowAnyName
Flag to allow any name
Declaration
public Output<bool?> AllowAnyName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
AllowBareDomains
Flag to allow certificates matching the actual domain
Declaration
public Output<bool?> AllowBareDomains { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
AllowedDomains
List of allowed domains for certificates
Declaration
public Output<ImmutableArray<string>> AllowedDomains { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
AllowedOtherSans
Defines allowed custom SANs
Declaration
public Output<ImmutableArray<string>> AllowedOtherSans { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
AllowedUriSans
Defines allowed URI SANs
Declaration
public Output<ImmutableArray<string>> AllowedUriSans { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
AllowGlobDomains
Flag to allow names containing glob patterns.
Declaration
public Output<bool?> AllowGlobDomains { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
AllowIpSans
Flag to allow IP SANs
Declaration
public Output<bool?> AllowIpSans { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
AllowLocalhost
Flag to allow certificates for localhost
Declaration
public Output<bool?> AllowLocalhost { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
AllowSubdomains
Flag to allow certificates matching subdomains
Declaration
public Output<bool?> AllowSubdomains { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Backend
The path the PKI secret backend is mounted at, with no leading or trailing /s.
Declaration
public Output<string> Backend { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
BasicConstraintsValidForNonCa
Flag to mark basic constraints valid when issuing non-CA certificates
Declaration
public Output<bool?> BasicConstraintsValidForNonCa { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
ClientFlag
Flag to specify certificates for client use
Declaration
public Output<bool?> ClientFlag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
CodeSigningFlag
Flag to specify certificates for code signing use
Declaration
public Output<bool?> CodeSigningFlag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Countries
The country of generated certificates
Declaration
public Output<ImmutableArray<string>> Countries { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
EmailProtectionFlag
Flag to specify certificates for email protection use
Declaration
public Output<bool?> EmailProtectionFlag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
EnforceHostnames
Flag to allow only valid host names
Declaration
public Output<bool?> EnforceHostnames { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
ExtKeyUsages
Specify the allowed extended key usage constraint on issued certificates
Declaration
public Output<ImmutableArray<string>> ExtKeyUsages { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
GenerateLease
Flag to generate leases with certificates
Declaration
public Output<bool?> GenerateLease { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
KeyBits
The number of bits of generated keys
Declaration
public Output<int?> KeyBits { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
KeyType
The type of generated keys
Declaration
public Output<string> KeyType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyUsages
Specify the allowed key usage constraint on issued certificates
Declaration
public Output<ImmutableArray<string>> KeyUsages { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Localities
The locality of generated certificates
Declaration
public Output<ImmutableArray<string>> Localities { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
MaxTtl
The maximum TTL
Declaration
public Output<string> MaxTtl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name to identify this role within the backend. Must be unique within the backend.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NoStore
Flag to not store certificates in the storage backend
Declaration
public Output<bool?> NoStore { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
NotBeforeDuration
Specifies the duration by which to backdate the NotBefore property.
Declaration
public Output<string> NotBeforeDuration { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Organizations
The organization of generated certificates
Declaration
public Output<ImmutableArray<string>> Organizations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
OrganizationUnit
The organization unit of generated certificates
Declaration
public Output<ImmutableArray<string>> OrganizationUnit { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
PolicyIdentifiers
Specify the list of allowed policies IODs
Declaration
public Output<ImmutableArray<string>> PolicyIdentifiers { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
PostalCodes
The postal code of generated certificates
Declaration
public Output<ImmutableArray<string>> PostalCodes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Provinces
The province of generated certificates
Declaration
public Output<ImmutableArray<string>> Provinces { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
RequireCn
Flag to force CN usage
Declaration
public Output<bool?> RequireCn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
ServerFlag
Flag to specify certificates for server use
Declaration
public Output<bool?> ServerFlag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
StreetAddresses
The street address of generated certificates
Declaration
public Output<ImmutableArray<string>> StreetAddresses { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Ttl
The TTL
Declaration
public Output<string> Ttl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UseCsrCommonName
Flag to use the CN in the CSR
Declaration
public Output<bool?> UseCsrCommonName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
UseCsrSans
Flag to use the SANs in the CSR
Declaration
public Output<bool?> UseCsrSans { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Methods
View SourceGet(String, Input<String>, SecretBackendRoleState, CustomResourceOptions)
Get an existing SecretBackendRole resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SecretBackendRole Get(string name, Input<string> id, SecretBackendRoleState 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. |
| SecretBackendRoleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SecretBackendRole |