Class ServiceUser
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var myserviceuser = new Aiven.ServiceUser("myserviceuser", new Aiven.ServiceUserArgs
{
Project = aiven_project.Myproject.Project,
ServiceName = aiven_service.Myservice.Service_name,
Username = "<USERNAME>",
});
}
}
Inherited Members
Namespace: Pulumi.Aiven
Assembly: Pulumi.Aiven.dll
Syntax
public class ServiceUser : CustomResource
Constructors
View SourceServiceUser(String, ServiceUserArgs, CustomResourceOptions)
Create a ServiceUser resource with the given unique name, arguments, and options.
Declaration
public ServiceUser(string name, ServiceUserArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ServiceUserArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccessCert
Access certificate for the user if applicable for the service in question
Declaration
public Output<string> AccessCert { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AccessKey
Access certificate key for the user if applicable for the service in question
Declaration
public Output<string> AccessKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Password
Password of the user
Declaration
public Output<string> Password { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
Project to link the user to
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServiceName
Service to link the user to
Declaration
public Output<string> ServiceName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Type
Type of the user account
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Username
Name of the user account
Declaration
public Output<string> Username { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ServiceUserState, CustomResourceOptions)
Get an existing ServiceUser resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ServiceUser Get(string name, Input<string> id, ServiceUserState 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. |
| ServiceUserState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ServiceUser |