flexibleengine.DdsDatabaseRole
Explore with Pulumi AI
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:
- Db
Name string - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
- Instance
Id string - Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
- Dds
Database stringRole Id - The resource ID.
- Name string
- Specifies the name of role owned by the current role.
The name can contain
1
to64
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<Dds
Database Role Role> 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
Dds
Database Role Timeouts
- Db
Name string - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
- Instance
Id string - Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
- Dds
Database stringRole Id - The resource ID.
- Name string
- Specifies the name of role owned by the current role.
The name can contain
1
to64
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
[]Dds
Database Role Role Args 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
Dds
Database Role Timeouts Args
- db
Name String - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
- instance
Id String - Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
- dds
Database StringRole Id - The resource ID.
- name String
- Specifies the name of role owned by the current role.
The name can contain
1
to64
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<Dds
Database Role Role> 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
Dds
Database Role Timeouts
- db
Name string - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
- instance
Id string - Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
- dds
Database stringRole Id - The resource ID.
- name string
- Specifies the name of role owned by the current role.
The name can contain
1
to64
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
Dds
Database Role Role[] 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
Dds
Database Role Timeouts
- 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_ strrole_ id - The resource ID.
- name str
- Specifies the name of role owned by the current role.
The name can contain
1
to64
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[Dds
Database Role Role Args] 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
Dds
Database Role Timeouts Args
- db
Name String - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
- instance
Id String - Specifies the DDS instance ID to which the role belongs. Changing this parameter will create a new role.
- dds
Database StringRole Id - The resource ID.
- name String
- Specifies the name of role owned by the current role.
The name can contain
1
to64
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.
- Inherited
Privileges List<DdsDatabase Role Inherited Privilege> - 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<Dds
Database Role Privilege> - 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.
- Inherited
Privileges []DdsDatabase Role Inherited Privilege - The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
- Privileges
[]Dds
Database Role Privilege - 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.
- inherited
Privileges List<DdsDatabase Role Inherited Privilege> - 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<Dds
Database Role Privilege> - 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.
- inherited
Privileges DdsDatabase Role Inherited Privilege[] - The list of database privileges owned by the current role, includes all privileges inherited by owned roles. The object structure is documented below.
- privileges
Dds
Database Role Privilege[] - 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[DdsDatabase Role Inherited Privilege] - 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[Dds
Database Role Privilege] - 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.
- inherited
Privileges 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.
- Db
Name string - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
- Dds
Database stringRole Id - The resource ID.
- Inherited
Privileges List<DdsDatabase Role Inherited Privilege> - 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 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
to64
characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role. - Privileges
List<Dds
Database Role Privilege> - 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<Dds
Database Role Role> 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
Dds
Database Role Timeouts
- Db
Name string - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
- Dds
Database stringRole Id - The resource ID.
- Inherited
Privileges []DdsDatabase Role Inherited Privilege Args - 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 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
to64
characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role. - Privileges
[]Dds
Database Role Privilege Args - 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
[]Dds
Database Role Role Args 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
Dds
Database Role Timeouts Args
- db
Name String - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
- dds
Database StringRole Id - The resource ID.
- inherited
Privileges List<DdsDatabase Role Inherited Privilege> - 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 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
to64
characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role. - privileges
List<Dds
Database Role Privilege> - 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<Dds
Database Role Role> 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
Dds
Database Role Timeouts
- db
Name string - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
- dds
Database stringRole Id - The resource ID.
- inherited
Privileges DdsDatabase Role Inherited Privilege[] - 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 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
to64
characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role. - privileges
Dds
Database Role Privilege[] - 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
Dds
Database Role Role[] 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
Dds
Database Role Timeouts
- db_
name str - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
- dds_
database_ strrole_ id - The resource ID.
- inherited_
privileges Sequence[DdsDatabase Role Inherited Privilege Args] - 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
to64
characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role. - privileges
Sequence[Dds
Database Role Privilege Args] - 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[Dds
Database Role Role Args] 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
Dds
Database Role Timeouts Args
- db
Name String - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
- dds
Database StringRole Id - The resource ID.
- inherited
Privileges 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.
- instance
Id 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
to64
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<Dds
Database Role Inherited Privilege Resource> - The details of the resource to which the privilege belongs. The object structure is documented below.
- Actions []string
- The operation permission list.
- Resources
[]Dds
Database Role Inherited Privilege Resource - 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<Dds
Database Role Inherited Privilege Resource> - The details of the resource to which the privilege belongs. The object structure is documented below.
- actions string[]
- The operation permission list.
- resources
Dds
Database Role Inherited Privilege Resource[] - 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[Dds
Database Role Inherited Privilege Resource] - 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.
- Db
Name 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.
- Db
Name 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.
- db
Name 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.
- db
Name 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.
- db
Name 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<Dds
Database Role Privilege Resource> - The details of the resource to which the privilege belongs. The object structure is documented below.
- Actions []string
- The operation permission list.
- Resources
[]Dds
Database Role Privilege Resource - 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<Dds
Database Role Privilege Resource> - The details of the resource to which the privilege belongs. The object structure is documented below.
- actions string[]
- The operation permission list.
- resources
Dds
Database Role Privilege Resource[] - 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[Dds
Database Role Privilege Resource] - 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.
- Db
Name 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.
- Db
Name 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.
- db
Name 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.
- db
Name 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.
- db
Name String - Specifies the database name to which this owned role belongs. Changing this parameter will create a new role.
DdsDatabaseRoleRole, DdsDatabaseRoleRoleArgs
- Db
Name 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
to64
characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
- Db
Name 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
to64
characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
- db
Name 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
to64
characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
- db
Name 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
to64
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
to64
characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
- db
Name 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
to64
characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are allowed. Changing this parameter will create a new role.
DdsDatabaseRoleTimeouts, DdsDatabaseRoleTimeoutsArgs
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.