SecretRole

Create a SecretRole Resource

new SecretRole(name: string, args: SecretRoleArgs, opts?: CustomResourceOptions);
@overload
def SecretRole(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               backend: Optional[str] = None,
               role: Optional[str] = None,
               service_account_name: Optional[str] = None,
               ttl: Optional[int] = None)
@overload
def SecretRole(resource_name: str,
               args: SecretRoleArgs,
               opts: Optional[ResourceOptions] = None)
func NewSecretRole(ctx *Context, name string, args SecretRoleArgs, opts ...ResourceOption) (*SecretRole, error)
public SecretRole(string name, SecretRoleArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args SecretRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args SecretRoleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SecretRoleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SecretRoleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

SecretRole Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The SecretRole resource accepts the following input properties:

Backend string
The mount path for the AD backend.
Role string
Name of the role.
ServiceAccountName string
The username/logon name for the service account with which this role will be associated.
Ttl int
In seconds, the default password time-to-live.
Backend string
The mount path for the AD backend.
Role string
Name of the role.
ServiceAccountName string
The username/logon name for the service account with which this role will be associated.
Ttl int
In seconds, the default password time-to-live.
backend string
The mount path for the AD backend.
role string
Name of the role.
serviceAccountName string
The username/logon name for the service account with which this role will be associated.
ttl number
In seconds, the default password time-to-live.
backend str
The mount path for the AD backend.
role str
Name of the role.
service_account_name str
The username/logon name for the service account with which this role will be associated.
ttl int
In seconds, the default password time-to-live.

Outputs

All input properties are implicitly available as output properties. Additionally, the SecretRole resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
LastVaultRotation string
Last time Vault rotated this service account’s password.
PasswordLastSet string
Last time Vault set this service account’s password.
Id string
The provider-assigned unique ID for this managed resource.
LastVaultRotation string
Last time Vault rotated this service account’s password.
PasswordLastSet string
Last time Vault set this service account’s password.
id string
The provider-assigned unique ID for this managed resource.
lastVaultRotation string
Last time Vault rotated this service account’s password.
passwordLastSet string
Last time Vault set this service account’s password.
id str
The provider-assigned unique ID for this managed resource.
last_vault_rotation str
Last time Vault rotated this service account’s password.
password_last_set str
Last time Vault set this service account’s password.

Look up an Existing SecretRole Resource

Get an existing SecretRole 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?: SecretRoleState, opts?: CustomResourceOptions): SecretRole
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backend: Optional[str] = None,
        last_vault_rotation: Optional[str] = None,
        password_last_set: Optional[str] = None,
        role: Optional[str] = None,
        service_account_name: Optional[str] = None,
        ttl: Optional[int] = None) -> SecretRole
func GetSecretRole(ctx *Context, name string, id IDInput, state *SecretRoleState, opts ...ResourceOption) (*SecretRole, error)
public static SecretRole Get(string name, Input<string> id, SecretRoleState? 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:

Backend string
The mount path for the AD backend.
LastVaultRotation string
Last time Vault rotated this service account’s password.
PasswordLastSet string
Last time Vault set this service account’s password.
Role string
Name of the role.
ServiceAccountName string
The username/logon name for the service account with which this role will be associated.
Ttl int
In seconds, the default password time-to-live.
Backend string
The mount path for the AD backend.
LastVaultRotation string
Last time Vault rotated this service account’s password.
PasswordLastSet string
Last time Vault set this service account’s password.
Role string
Name of the role.
ServiceAccountName string
The username/logon name for the service account with which this role will be associated.
Ttl int
In seconds, the default password time-to-live.
backend string
The mount path for the AD backend.
lastVaultRotation string
Last time Vault rotated this service account’s password.
passwordLastSet string
Last time Vault set this service account’s password.
role string
Name of the role.
serviceAccountName string
The username/logon name for the service account with which this role will be associated.
ttl number
In seconds, the default password time-to-live.
backend str
The mount path for the AD backend.
last_vault_rotation str
Last time Vault rotated this service account’s password.
password_last_set str
Last time Vault set this service account’s password.
role str
Name of the role.
service_account_name str
The username/logon name for the service account with which this role will be associated.
ttl int
In seconds, the default password time-to-live.

Package Details

Repository
https://github.com/pulumi/pulumi-vault
License
Apache-2.0
Notes
This Pulumi package is based on the vault Terraform Provider.