1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. DdsDatabaseRole
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.DdsDatabaseRole

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a database role resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const instanceId = config.requireObject("instanceId");
    const roleName = config.requireObject("roleName");
    const dbName = config.requireObject("dbName");
    const ownedRoleName = config.requireObject("ownedRoleName");
    const ownedRoleDbName = config.requireObject("ownedRoleDbName");
    const test = new flexibleengine.DdsDatabaseRole("test", {
        instanceId: instanceId,
        dbName: dbName,
        roles: [{
            name: ownedRoleName,
            dbName: ownedRoleDbName,
        }],
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    instance_id = config.require_object("instanceId")
    role_name = config.require_object("roleName")
    db_name = config.require_object("dbName")
    owned_role_name = config.require_object("ownedRoleName")
    owned_role_db_name = config.require_object("ownedRoleDbName")
    test = flexibleengine.DdsDatabaseRole("test",
        instance_id=instance_id,
        db_name=db_name,
        roles=[{
            "name": owned_role_name,
            "db_name": owned_role_db_name,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		instanceId := cfg.RequireObject("instanceId")
    		roleName := cfg.RequireObject("roleName")
    		dbName := cfg.RequireObject("dbName")
    		ownedRoleName := cfg.RequireObject("ownedRoleName")
    		ownedRoleDbName := cfg.RequireObject("ownedRoleDbName")
    		_, err := flexibleengine.NewDdsDatabaseRole(ctx, "test", &flexibleengine.DdsDatabaseRoleArgs{
    			InstanceId: pulumi.Any(instanceId),
    			DbName:     pulumi.Any(dbName),
    			Roles: flexibleengine.DdsDatabaseRoleRoleArray{
    				&flexibleengine.DdsDatabaseRoleRoleArgs{
    					Name:   pulumi.Any(ownedRoleName),
    					DbName: pulumi.Any(ownedRoleDbName),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var instanceId = config.RequireObject<dynamic>("instanceId");
        var roleName = config.RequireObject<dynamic>("roleName");
        var dbName = config.RequireObject<dynamic>("dbName");
        var ownedRoleName = config.RequireObject<dynamic>("ownedRoleName");
        var ownedRoleDbName = config.RequireObject<dynamic>("ownedRoleDbName");
        var test = new Flexibleengine.DdsDatabaseRole("test", new()
        {
            InstanceId = instanceId,
            DbName = dbName,
            Roles = new[]
            {
                new Flexibleengine.Inputs.DdsDatabaseRoleRoleArgs
                {
                    Name = ownedRoleName,
                    DbName = ownedRoleDbName,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.DdsDatabaseRole;
    import com.pulumi.flexibleengine.DdsDatabaseRoleArgs;
    import com.pulumi.flexibleengine.inputs.DdsDatabaseRoleRoleArgs;
    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) {
            final var config = ctx.config();
            final var instanceId = config.get("instanceId");
            final var roleName = config.get("roleName");
            final var dbName = config.get("dbName");
            final var ownedRoleName = config.get("ownedRoleName");
            final var ownedRoleDbName = config.get("ownedRoleDbName");
            var test = new DdsDatabaseRole("test", DdsDatabaseRoleArgs.builder()
                .instanceId(instanceId)
                .dbName(dbName)
                .roles(DdsDatabaseRoleRoleArgs.builder()
                    .name(ownedRoleName)
                    .dbName(ownedRoleDbName)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      instanceId:
        type: dynamic
      roleName:
        type: dynamic
      dbName:
        type: dynamic
      ownedRoleName:
        type: dynamic
      ownedRoleDbName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:DdsDatabaseRole
        properties:
          instanceId: ${instanceId}
          dbName: ${dbName}
          roles:
            - name: ${ownedRoleName}
              dbName: ${ownedRoleDbName}
    

    Create DdsDatabaseRole Resource

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

    Constructor syntax

    new DdsDatabaseRole(name: string, args: DdsDatabaseRoleArgs, opts?: CustomResourceOptions);
    @overload
    def DdsDatabaseRole(resource_name: str,
                        args: DdsDatabaseRoleArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def DdsDatabaseRole(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        db_name: Optional[str] = None,
                        instance_id: Optional[str] = None,
                        dds_database_role_id: Optional[str] = None,
                        name: Optional[str] = None,
                        region: Optional[str] = None,
                        roles: Optional[Sequence[DdsDatabaseRoleRoleArgs]] = None,
                        timeouts: Optional[DdsDatabaseRoleTimeoutsArgs] = None)
    func NewDdsDatabaseRole(ctx *Context, name string, args DdsDatabaseRoleArgs, opts ...ResourceOption) (*DdsDatabaseRole, error)
    public DdsDatabaseRole(string name, DdsDatabaseRoleArgs args, CustomResourceOptions? opts = null)
    public DdsDatabaseRole(String name, DdsDatabaseRoleArgs args)
    public DdsDatabaseRole(String name, DdsDatabaseRoleArgs args, CustomResourceOptions options)
    
    type: flexibleengine:DdsDatabaseRole
    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 DdsDatabaseRoleArgs
    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 DdsDatabaseRoleArgs
    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 DdsDatabaseRoleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DdsDatabaseRoleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DdsDatabaseRoleArgs
    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 ddsDatabaseRoleResource = new Flexibleengine.DdsDatabaseRole("ddsDatabaseRoleResource", new()
    {
        DbName = "string",
        InstanceId = "string",
        DdsDatabaseRoleId = "string",
        Name = "string",
        Region = "string",
        Roles = new[]
        {
            new Flexibleengine.Inputs.DdsDatabaseRoleRoleArgs
            {
                DbName = "string",
                Name = "string",
            },
        },
        Timeouts = new Flexibleengine.Inputs.DdsDatabaseRoleTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := flexibleengine.NewDdsDatabaseRole(ctx, "ddsDatabaseRoleResource", &flexibleengine.DdsDatabaseRoleArgs{
    	DbName:            pulumi.String("string"),
    	InstanceId:        pulumi.String("string"),
    	DdsDatabaseRoleId: pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Region:            pulumi.String("string"),
    	Roles: flexibleengine.DdsDatabaseRoleRoleArray{
    		&flexibleengine.DdsDatabaseRoleRoleArgs{
    			DbName: pulumi.String("string"),
    			Name:   pulumi.String("string"),
    		},
    	},
    	Timeouts: &flexibleengine.DdsDatabaseRoleTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var ddsDatabaseRoleResource = new DdsDatabaseRole("ddsDatabaseRoleResource", DdsDatabaseRoleArgs.builder()
        .dbName("string")
        .instanceId("string")
        .ddsDatabaseRoleId("string")
        .name("string")
        .region("string")
        .roles(DdsDatabaseRoleRoleArgs.builder()
            .dbName("string")
            .name("string")
            .build())
        .timeouts(DdsDatabaseRoleTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    dds_database_role_resource = flexibleengine.DdsDatabaseRole("ddsDatabaseRoleResource",
        db_name="string",
        instance_id="string",
        dds_database_role_id="string",
        name="string",
        region="string",
        roles=[{
            "db_name": "string",
            "name": "string",
        }],
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const ddsDatabaseRoleResource = new flexibleengine.DdsDatabaseRole("ddsDatabaseRoleResource", {
        dbName: "string",
        instanceId: "string",
        ddsDatabaseRoleId: "string",
        name: "string",
        region: "string",
        roles: [{
            dbName: "string",
            name: "string",
        }],
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: flexibleengine:DdsDatabaseRole
    properties:
        dbName: string
        ddsDatabaseRoleId: string
        instanceId: string
        name: string
        region: string
        roles:
            - dbName: string
              name: string
        timeouts:
            create: string
            delete: string
    

    DdsDatabaseRole 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 DdsDatabaseRole resource accepts the following input properties:

    DbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    InstanceId string
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    DdsDatabaseRoleId string
    The resource ID.
    Name string
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    Region string
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    Roles List<DdsDatabaseRoleRole>

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    Timeouts DdsDatabaseRoleTimeouts
    DbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    InstanceId string
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    DdsDatabaseRoleId string
    The resource ID.
    Name string
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    Region string
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    Roles []DdsDatabaseRoleRoleArgs

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    Timeouts DdsDatabaseRoleTimeoutsArgs
    dbName String
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    instanceId String
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    ddsDatabaseRoleId String
    The resource ID.
    name String
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    region String
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    roles List<DdsDatabaseRoleRole>

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    timeouts DdsDatabaseRoleTimeouts
    dbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    instanceId string
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    ddsDatabaseRoleId string
    The resource ID.
    name string
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    region string
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    roles DdsDatabaseRoleRole[]

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    timeouts DdsDatabaseRoleTimeouts
    db_name str
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    instance_id str
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    dds_database_role_id str
    The resource ID.
    name str
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    region str
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    roles Sequence[DdsDatabaseRoleRoleArgs]

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    timeouts DdsDatabaseRoleTimeoutsArgs
    dbName String
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    instanceId String
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    ddsDatabaseRoleId String
    The resource ID.
    name String
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    region String
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    roles List<Property Map>

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    InheritedPrivileges List<DdsDatabaseRoleInheritedPrivilege>
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    Privileges List<DdsDatabaseRolePrivilege>
    The list of database privileges owned by the current role. The object structure is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    InheritedPrivileges []DdsDatabaseRoleInheritedPrivilege
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    Privileges []DdsDatabaseRolePrivilege
    The list of database privileges owned by the current role. The object structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    inheritedPrivileges List<DdsDatabaseRoleInheritedPrivilege>
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    privileges List<DdsDatabaseRolePrivilege>
    The list of database privileges owned by the current role. The object structure is documented below.
    id string
    The provider-assigned unique ID for this managed resource.
    inheritedPrivileges DdsDatabaseRoleInheritedPrivilege[]
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    privileges DdsDatabaseRolePrivilege[]
    The list of database privileges owned by the current role. The object structure is documented below.
    id str
    The provider-assigned unique ID for this managed resource.
    inherited_privileges Sequence[DdsDatabaseRoleInheritedPrivilege]
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    privileges Sequence[DdsDatabaseRolePrivilege]
    The list of database privileges owned by the current role. The object structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    inheritedPrivileges List<Property Map>
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    privileges List<Property Map>
    The list of database privileges owned by the current role. The object structure is documented below.

    Look up Existing DdsDatabaseRole Resource

    Get an existing DdsDatabaseRole 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?: DdsDatabaseRoleState, opts?: CustomResourceOptions): DdsDatabaseRole
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            db_name: Optional[str] = None,
            dds_database_role_id: Optional[str] = None,
            inherited_privileges: Optional[Sequence[DdsDatabaseRoleInheritedPrivilegeArgs]] = None,
            instance_id: Optional[str] = None,
            name: Optional[str] = None,
            privileges: Optional[Sequence[DdsDatabaseRolePrivilegeArgs]] = None,
            region: Optional[str] = None,
            roles: Optional[Sequence[DdsDatabaseRoleRoleArgs]] = None,
            timeouts: Optional[DdsDatabaseRoleTimeoutsArgs] = None) -> DdsDatabaseRole
    func GetDdsDatabaseRole(ctx *Context, name string, id IDInput, state *DdsDatabaseRoleState, opts ...ResourceOption) (*DdsDatabaseRole, error)
    public static DdsDatabaseRole Get(string name, Input<string> id, DdsDatabaseRoleState? state, CustomResourceOptions? opts = null)
    public static DdsDatabaseRole get(String name, Output<String> id, DdsDatabaseRoleState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:DdsDatabaseRole    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:
    DbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    DdsDatabaseRoleId string
    The resource ID.
    InheritedPrivileges List<DdsDatabaseRoleInheritedPrivilege>
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    InstanceId string
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    Name string
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    Privileges List<DdsDatabaseRolePrivilege>
    The list of database privileges owned by the current role. The object structure is documented below.
    Region string
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    Roles List<DdsDatabaseRoleRole>

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    Timeouts DdsDatabaseRoleTimeouts
    DbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    DdsDatabaseRoleId string
    The resource ID.
    InheritedPrivileges []DdsDatabaseRoleInheritedPrivilegeArgs
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    InstanceId string
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    Name string
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    Privileges []DdsDatabaseRolePrivilegeArgs
    The list of database privileges owned by the current role. The object structure is documented below.
    Region string
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    Roles []DdsDatabaseRoleRoleArgs

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    Timeouts DdsDatabaseRoleTimeoutsArgs
    dbName String
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    ddsDatabaseRoleId String
    The resource ID.
    inheritedPrivileges List<DdsDatabaseRoleInheritedPrivilege>
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    instanceId String
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    name String
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    privileges List<DdsDatabaseRolePrivilege>
    The list of database privileges owned by the current role. The object structure is documented below.
    region String
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    roles List<DdsDatabaseRoleRole>

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    timeouts DdsDatabaseRoleTimeouts
    dbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    ddsDatabaseRoleId string
    The resource ID.
    inheritedPrivileges DdsDatabaseRoleInheritedPrivilege[]
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    instanceId string
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    name string
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    privileges DdsDatabaseRolePrivilege[]
    The list of database privileges owned by the current role. The object structure is documented below.
    region string
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    roles DdsDatabaseRoleRole[]

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    timeouts DdsDatabaseRoleTimeouts
    db_name str
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    dds_database_role_id str
    The resource ID.
    inherited_privileges Sequence[DdsDatabaseRoleInheritedPrivilegeArgs]
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    instance_id str
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    name str
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    privileges Sequence[DdsDatabaseRolePrivilegeArgs]
    The list of database privileges owned by the current role. The object structure is documented below.
    region str
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    roles Sequence[DdsDatabaseRoleRoleArgs]

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    timeouts DdsDatabaseRoleTimeoutsArgs
    dbName String
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    ddsDatabaseRoleId String
    The resource ID.
    inheritedPrivileges List<Property Map>
    The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
    instanceId String
    Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
    name String
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    privileges List<Property Map>
    The list of database privileges owned by the current role. The object structure is documented below.
    region String
    Specifies the region where the DDS instance is located. Changing this parameter will create a new role.
    roles List<Property Map>

    Specifies the list of roles owned by the current role. The object structure is documented below. Changing this parameter will create a new role.

    The roles block supports:

    timeouts Property Map

    Supporting Types

    DdsDatabaseRoleInheritedPrivilege, DdsDatabaseRoleInheritedPrivilegeArgs

    Actions List<string>
    The operation permission list.
    Resources List<DdsDatabaseRoleInheritedPrivilegeResource>
    The details of the resource to which the privilege belongs. The object structure is documented below.
    Actions []string
    The operation permission list.
    Resources []DdsDatabaseRoleInheritedPrivilegeResource
    The details of the resource to which the privilege belongs. The object structure is documented below.
    actions List<String>
    The operation permission list.
    resources List<DdsDatabaseRoleInheritedPrivilegeResource>
    The details of the resource to which the privilege belongs. The object structure is documented below.
    actions string[]
    The operation permission list.
    resources DdsDatabaseRoleInheritedPrivilegeResource[]
    The details of the resource to which the privilege belongs. The object structure is documented below.
    actions Sequence[str]
    The operation permission list.
    resources Sequence[DdsDatabaseRoleInheritedPrivilegeResource]
    The details of the resource to which the privilege belongs. The object structure is documented below.
    actions List<String>
    The operation permission list.
    resources List<Property Map>
    The details of the resource to which the privilege belongs. The object structure is documented below.

    DdsDatabaseRoleInheritedPrivilegeResource, DdsDatabaseRoleInheritedPrivilegeResourceArgs

    Collection string
    The database collection type.
    DbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    Collection string
    The database collection type.
    DbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    collection String
    The database collection type.
    dbName String
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    collection string
    The database collection type.
    dbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    collection str
    The database collection type.
    db_name str
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    collection String
    The database collection type.
    dbName String
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.

    DdsDatabaseRolePrivilege, DdsDatabaseRolePrivilegeArgs

    Actions List<string>
    The operation permission list.
    Resources List<DdsDatabaseRolePrivilegeResource>
    The details of the resource to which the privilege belongs. The object structure is documented below.
    Actions []string
    The operation permission list.
    Resources []DdsDatabaseRolePrivilegeResource
    The details of the resource to which the privilege belongs. The object structure is documented below.
    actions List<String>
    The operation permission list.
    resources List<DdsDatabaseRolePrivilegeResource>
    The details of the resource to which the privilege belongs. The object structure is documented below.
    actions string[]
    The operation permission list.
    resources DdsDatabaseRolePrivilegeResource[]
    The details of the resource to which the privilege belongs. The object structure is documented below.
    actions Sequence[str]
    The operation permission list.
    resources Sequence[DdsDatabaseRolePrivilegeResource]
    The details of the resource to which the privilege belongs. The object structure is documented below.
    actions List<String>
    The operation permission list.
    resources List<Property Map>
    The details of the resource to which the privilege belongs. The object structure is documented below.

    DdsDatabaseRolePrivilegeResource, DdsDatabaseRolePrivilegeResourceArgs

    Collection string
    The database collection type.
    DbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    Collection string
    The database collection type.
    DbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    collection String
    The database collection type.
    dbName String
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    collection string
    The database collection type.
    dbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    collection str
    The database collection type.
    db_name str
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    collection String
    The database collection type.
    dbName String
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.

    DdsDatabaseRoleRole, DdsDatabaseRoleRoleArgs

    DbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    Name string
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    DbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    Name string
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    dbName String
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    name String
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    dbName string
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    name string
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    db_name str
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    name str
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
    dbName String
    Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
    name String
    Specifies the name of role owned by the current role. The name can contain 1 to 64 characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.

    DdsDatabaseRoleTimeouts, DdsDatabaseRoleTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    Database roles can be imported using their id (combination of instance_id, db_name and name), separated by a

    slash (/), e.g.

    $ pulumi import flexibleengine:index/ddsDatabaseRole:DdsDatabaseRole test <instance_id>/<db_name>/<name>
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud