1. Packages
  2. Aiven Provider
  3. API Docs
  4. PgUser
Viewing docs for Aiven v6.51.0
published on Tuesday, Mar 17, 2026 by Pulumi
aiven logo
Viewing docs for Aiven v6.51.0
published on Tuesday, Mar 17, 2026 by Pulumi

    Creates and manages an Aiven for PostgreSQL® service user. If this resource is missing (for example, after a service power off), it’s removed from the state and a new create plan is generated.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const exampleUser = new aiven.PgUser("example_user", {
        serviceName: examplePostgres.serviceName,
        project: exampleProject.project,
        username: "example-service-user",
        password: serviceUserPassword,
    });
    // Each service has a default admin user with the username avnadmin.
    const adminUser = new aiven.PgUser("admin_user", {
        serviceName: examplePostgres.serviceName,
        project: exampleProject.project,
        username: "avnadmin",
        password: serviceUserPassword,
        pgAllowReplication: true,
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example_user = aiven.PgUser("example_user",
        service_name=example_postgres["serviceName"],
        project=example_project["project"],
        username="example-service-user",
        password=service_user_password)
    # Each service has a default admin user with the username avnadmin.
    admin_user = aiven.PgUser("admin_user",
        service_name=example_postgres["serviceName"],
        project=example_project["project"],
        username="avnadmin",
        password=service_user_password,
        pg_allow_replication=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aiven.NewPgUser(ctx, "example_user", &aiven.PgUserArgs{
    			ServiceName: pulumi.Any(examplePostgres.ServiceName),
    			Project:     pulumi.Any(exampleProject.Project),
    			Username:    pulumi.String("example-service-user"),
    			Password:    pulumi.Any(serviceUserPassword),
    		})
    		if err != nil {
    			return err
    		}
    		// Each service has a default admin user with the username avnadmin.
    		_, err = aiven.NewPgUser(ctx, "admin_user", &aiven.PgUserArgs{
    			ServiceName:        pulumi.Any(examplePostgres.ServiceName),
    			Project:            pulumi.Any(exampleProject.Project),
    			Username:           pulumi.String("avnadmin"),
    			Password:           pulumi.Any(serviceUserPassword),
    			PgAllowReplication: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleUser = new Aiven.PgUser("example_user", new()
        {
            ServiceName = examplePostgres.ServiceName,
            Project = exampleProject.Project,
            Username = "example-service-user",
            Password = serviceUserPassword,
        });
    
        // Each service has a default admin user with the username avnadmin.
        var adminUser = new Aiven.PgUser("admin_user", new()
        {
            ServiceName = examplePostgres.ServiceName,
            Project = exampleProject.Project,
            Username = "avnadmin",
            Password = serviceUserPassword,
            PgAllowReplication = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.PgUser;
    import com.pulumi.aiven.PgUserArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleUser = new PgUser("exampleUser", PgUserArgs.builder()
                .serviceName(examplePostgres.serviceName())
                .project(exampleProject.project())
                .username("example-service-user")
                .password(serviceUserPassword)
                .build());
    
            // Each service has a default admin user with the username avnadmin.
            var adminUser = new PgUser("adminUser", PgUserArgs.builder()
                .serviceName(examplePostgres.serviceName())
                .project(exampleProject.project())
                .username("avnadmin")
                .password(serviceUserPassword)
                .pgAllowReplication(true)
                .build());
    
        }
    }
    
    resources:
      exampleUser:
        type: aiven:PgUser
        name: example_user
        properties:
          serviceName: ${examplePostgres.serviceName}
          project: ${exampleProject.project}
          username: example-service-user
          password: ${serviceUserPassword}
      # Each service has a default admin user with the username avnadmin.
      adminUser:
        type: aiven:PgUser
        name: admin_user
        properties:
          serviceName: ${examplePostgres.serviceName}
          project: ${exampleProject.project}
          username: avnadmin
          password: ${serviceUserPassword}
          pgAllowReplication: true
    

    Create PgUser Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PgUser(name: string, args: PgUserArgs, opts?: CustomResourceOptions);
    @overload
    def PgUser(resource_name: str,
               args: PgUserArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def PgUser(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               project: Optional[str] = None,
               service_name: Optional[str] = None,
               username: Optional[str] = None,
               password: Optional[str] = None,
               password_wo: Optional[str] = None,
               password_wo_version: Optional[int] = None,
               pg_allow_replication: Optional[bool] = None,
               timeouts: Optional[PgUserTimeoutsArgs] = None)
    func NewPgUser(ctx *Context, name string, args PgUserArgs, opts ...ResourceOption) (*PgUser, error)
    public PgUser(string name, PgUserArgs args, CustomResourceOptions? opts = null)
    public PgUser(String name, PgUserArgs args)
    public PgUser(String name, PgUserArgs args, CustomResourceOptions options)
    
    type: aiven:PgUser
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PgUserArgs
    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 PgUserArgs
    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 PgUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PgUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PgUserArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var pgUserResource = new Aiven.Index.PgUser("pgUserResource", new()
    {
        Project = "string",
        ServiceName = "string",
        Username = "string",
        Password = "string",
        PasswordWo = "string",
        PasswordWoVersion = 0,
        PgAllowReplication = false,
        Timeouts = new Aiven.Inputs.PgUserTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := aiven.NewPgUser(ctx, "pgUserResource", &aiven.PgUserArgs{
    	Project:            pulumi.String("string"),
    	ServiceName:        pulumi.String("string"),
    	Username:           pulumi.String("string"),
    	Password:           pulumi.String("string"),
    	PasswordWo:         pulumi.String("string"),
    	PasswordWoVersion:  pulumi.Int(0),
    	PgAllowReplication: pulumi.Bool(false),
    	Timeouts: &aiven.PgUserTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var pgUserResource = new PgUser("pgUserResource", PgUserArgs.builder()
        .project("string")
        .serviceName("string")
        .username("string")
        .password("string")
        .passwordWo("string")
        .passwordWoVersion(0)
        .pgAllowReplication(false)
        .timeouts(PgUserTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    pg_user_resource = aiven.PgUser("pgUserResource",
        project="string",
        service_name="string",
        username="string",
        password="string",
        password_wo="string",
        password_wo_version=0,
        pg_allow_replication=False,
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const pgUserResource = new aiven.PgUser("pgUserResource", {
        project: "string",
        serviceName: "string",
        username: "string",
        password: "string",
        passwordWo: "string",
        passwordWoVersion: 0,
        pgAllowReplication: false,
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: aiven:PgUser
    properties:
        password: string
        passwordWo: string
        passwordWoVersion: 0
        pgAllowReplication: false
        project: string
        serviceName: string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
        username: string
    

    PgUser Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PgUser resource accepts the following input properties:

    Project string
    Project name. Changing this property forces recreation of the resource.
    ServiceName string
    The name of the service. Changing this property forces recreation of the resource.
    Username string
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.
    Password string
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    PasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    PasswordWoVersion int
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    PgAllowReplication bool
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    Timeouts PgUserTimeouts
    Project string
    Project name. Changing this property forces recreation of the resource.
    ServiceName string
    The name of the service. Changing this property forces recreation of the resource.
    Username string
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.
    Password string
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    PasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    PasswordWoVersion int
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    PgAllowReplication bool
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    Timeouts PgUserTimeoutsArgs
    project String
    Project name. Changing this property forces recreation of the resource.
    serviceName String
    The name of the service. Changing this property forces recreation of the resource.
    username String
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.
    password String
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    passwordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    passwordWoVersion Integer
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    pgAllowReplication Boolean
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    timeouts PgUserTimeouts
    project string
    Project name. Changing this property forces recreation of the resource.
    serviceName string
    The name of the service. Changing this property forces recreation of the resource.
    username string
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.
    password string
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    passwordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    passwordWoVersion number
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    pgAllowReplication boolean
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    timeouts PgUserTimeouts
    project str
    Project name. Changing this property forces recreation of the resource.
    service_name str
    The name of the service. Changing this property forces recreation of the resource.
    username str
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.
    password str
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    password_wo str
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    password_wo_version int
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    pg_allow_replication bool
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    timeouts PgUserTimeoutsArgs
    project String
    Project name. Changing this property forces recreation of the resource.
    serviceName String
    The name of the service. Changing this property forces recreation of the resource.
    username String
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.
    password String
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    passwordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    passwordWoVersion Number
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    pgAllowReplication Boolean
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    timeouts Property Map

    Outputs

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

    AccessCert string
    Access certificate for TLS client authentication.
    AccessKey string
    Access key for TLS client authentication.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    The service user account type, either primary or regular.
    AccessCert string
    Access certificate for TLS client authentication.
    AccessKey string
    Access key for TLS client authentication.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    The service user account type, either primary or regular.
    accessCert String
    Access certificate for TLS client authentication.
    accessKey String
    Access key for TLS client authentication.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    The service user account type, either primary or regular.
    accessCert string
    Access certificate for TLS client authentication.
    accessKey string
    Access key for TLS client authentication.
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    The service user account type, either primary or regular.
    access_cert str
    Access certificate for TLS client authentication.
    access_key str
    Access key for TLS client authentication.
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    The service user account type, either primary or regular.
    accessCert String
    Access certificate for TLS client authentication.
    accessKey String
    Access key for TLS client authentication.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    The service user account type, either primary or regular.

    Look up Existing PgUser Resource

    Get an existing PgUser 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?: PgUserState, opts?: CustomResourceOptions): PgUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_cert: Optional[str] = None,
            access_key: Optional[str] = None,
            password: Optional[str] = None,
            password_wo: Optional[str] = None,
            password_wo_version: Optional[int] = None,
            pg_allow_replication: Optional[bool] = None,
            project: Optional[str] = None,
            service_name: Optional[str] = None,
            timeouts: Optional[PgUserTimeoutsArgs] = None,
            type: Optional[str] = None,
            username: Optional[str] = None) -> PgUser
    func GetPgUser(ctx *Context, name string, id IDInput, state *PgUserState, opts ...ResourceOption) (*PgUser, error)
    public static PgUser Get(string name, Input<string> id, PgUserState? state, CustomResourceOptions? opts = null)
    public static PgUser get(String name, Output<String> id, PgUserState state, CustomResourceOptions options)
    resources:  _:    type: aiven:PgUser    get:      id: ${id}
    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.
    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:
    AccessCert string
    Access certificate for TLS client authentication.
    AccessKey string
    Access key for TLS client authentication.
    Password string
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    PasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    PasswordWoVersion int
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    PgAllowReplication bool
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    Project string
    Project name. Changing this property forces recreation of the resource.
    ServiceName string
    The name of the service. Changing this property forces recreation of the resource.
    Timeouts PgUserTimeouts
    Type string
    The service user account type, either primary or regular.
    Username string
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.
    AccessCert string
    Access certificate for TLS client authentication.
    AccessKey string
    Access key for TLS client authentication.
    Password string
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    PasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    PasswordWoVersion int
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    PgAllowReplication bool
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    Project string
    Project name. Changing this property forces recreation of the resource.
    ServiceName string
    The name of the service. Changing this property forces recreation of the resource.
    Timeouts PgUserTimeoutsArgs
    Type string
    The service user account type, either primary or regular.
    Username string
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.
    accessCert String
    Access certificate for TLS client authentication.
    accessKey String
    Access key for TLS client authentication.
    password String
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    passwordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    passwordWoVersion Integer
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    pgAllowReplication Boolean
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    project String
    Project name. Changing this property forces recreation of the resource.
    serviceName String
    The name of the service. Changing this property forces recreation of the resource.
    timeouts PgUserTimeouts
    type String
    The service user account type, either primary or regular.
    username String
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.
    accessCert string
    Access certificate for TLS client authentication.
    accessKey string
    Access key for TLS client authentication.
    password string
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    passwordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    passwordWoVersion number
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    pgAllowReplication boolean
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    project string
    Project name. Changing this property forces recreation of the resource.
    serviceName string
    The name of the service. Changing this property forces recreation of the resource.
    timeouts PgUserTimeouts
    type string
    The service user account type, either primary or regular.
    username string
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.
    access_cert str
    Access certificate for TLS client authentication.
    access_key str
    Access key for TLS client authentication.
    password str
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    password_wo str
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    password_wo_version int
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    pg_allow_replication bool
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    project str
    Project name. Changing this property forces recreation of the resource.
    service_name str
    The name of the service. Changing this property forces recreation of the resource.
    timeouts PgUserTimeoutsArgs
    type str
    The service user account type, either primary or regular.
    username str
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.
    accessCert String
    Access certificate for TLS client authentication.
    accessKey String
    Access key for TLS client authentication.
    password String
    The password of the service user (auto-generated if not provided). The field conflicts with password_wo. Value must be between 8 and 256.
    passwordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). The field is required with password_wo_version. The field conflicts with password. Value must be between 8 and 256.
    passwordWoVersion Number
    Version number for password_wo. Increment this to rotate the password. The field is required with password_wo. Minimum value: 1.
    pgAllowReplication Boolean
    Allows replication. For the default avnadmin user this attribute is required and is always true.
    project String
    Project name. Changing this property forces recreation of the resource.
    serviceName String
    The name of the service. Changing this property forces recreation of the resource.
    timeouts Property Map
    type String
    The service user account type, either primary or regular.
    username String
    The name of the service user for this service. Maximum length: 64. Changing this property forces recreation of the resource.

    Supporting Types

    PgUserTimeouts, PgUserTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Default string
    Timeout for all operations. Deprecated, use operation-specific timeouts instead.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Default string
    Timeout for all operations. Deprecated, use operation-specific timeouts instead.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    default_ String
    Timeout for all operations. Deprecated, use operation-specific timeouts instead.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    default string
    Timeout for all operations. Deprecated, use operation-specific timeouts instead.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    default str
    Timeout for all operations. Deprecated, use operation-specific timeouts instead.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    default String
    Timeout for all operations. Deprecated, use operation-specific timeouts instead.

    Deprecated: Use operation-specific timeouts instead. This field will be removed in the next major version.

    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    $ pulumi import aiven:index/pgUser:PgUser example PROJECT/SERVICE_NAME/USERNAME
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Viewing docs for Aiven v6.51.0
    published on Tuesday, Mar 17, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.