flexibleengine.DdmAccount
Explore with Pulumi AI
Manages a DDM account resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const ddmInstanceId = config.requireObject("ddmInstanceId");
const name = config.requireObject("name");
const password = config.requireObject("password");
const schemaName = config.requireObject("schemaName");
const test = new flexibleengine.DdmAccount("test", {
instanceId: ddmInstanceId,
password: password,
permissions: [
"CREATE",
"SELECT",
],
schemas: [{
name: schemaName,
}],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
ddm_instance_id = config.require_object("ddmInstanceId")
name = config.require_object("name")
password = config.require_object("password")
schema_name = config.require_object("schemaName")
test = flexibleengine.DdmAccount("test",
instance_id=ddm_instance_id,
password=password,
permissions=[
"CREATE",
"SELECT",
],
schemas=[{
"name": schema_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, "")
ddmInstanceId := cfg.RequireObject("ddmInstanceId")
name := cfg.RequireObject("name")
password := cfg.RequireObject("password")
schemaName := cfg.RequireObject("schemaName")
_, err := flexibleengine.NewDdmAccount(ctx, "test", &flexibleengine.DdmAccountArgs{
InstanceId: pulumi.Any(ddmInstanceId),
Password: pulumi.Any(password),
Permissions: pulumi.StringArray{
pulumi.String("CREATE"),
pulumi.String("SELECT"),
},
Schemas: flexibleengine.DdmAccountSchemaArray{
&flexibleengine.DdmAccountSchemaArgs{
Name: pulumi.Any(schemaName),
},
},
})
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 ddmInstanceId = config.RequireObject<dynamic>("ddmInstanceId");
var name = config.RequireObject<dynamic>("name");
var password = config.RequireObject<dynamic>("password");
var schemaName = config.RequireObject<dynamic>("schemaName");
var test = new Flexibleengine.DdmAccount("test", new()
{
InstanceId = ddmInstanceId,
Password = password,
Permissions = new[]
{
"CREATE",
"SELECT",
},
Schemas = new[]
{
new Flexibleengine.Inputs.DdmAccountSchemaArgs
{
Name = schemaName,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.DdmAccount;
import com.pulumi.flexibleengine.DdmAccountArgs;
import com.pulumi.flexibleengine.inputs.DdmAccountSchemaArgs;
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 ddmInstanceId = config.get("ddmInstanceId");
final var name = config.get("name");
final var password = config.get("password");
final var schemaName = config.get("schemaName");
var test = new DdmAccount("test", DdmAccountArgs.builder()
.instanceId(ddmInstanceId)
.password(password)
.permissions(
"CREATE",
"SELECT")
.schemas(DdmAccountSchemaArgs.builder()
.name(schemaName)
.build())
.build());
}
}
configuration:
ddmInstanceId:
type: dynamic
name:
type: dynamic
password:
type: dynamic
schemaName:
type: dynamic
resources:
test:
type: flexibleengine:DdmAccount
properties:
instanceId: ${ddmInstanceId}
password: ${password}
permissions:
- CREATE
- SELECT
schemas:
- name: ${schemaName}
Create DdmAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DdmAccount(name: string, args: DdmAccountArgs, opts?: CustomResourceOptions);
@overload
def DdmAccount(resource_name: str,
args: DdmAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DdmAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
password: Optional[str] = None,
permissions: Optional[Sequence[str]] = None,
ddm_account_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
schemas: Optional[Sequence[DdmAccountSchemaArgs]] = None,
timeouts: Optional[DdmAccountTimeoutsArgs] = None)
func NewDdmAccount(ctx *Context, name string, args DdmAccountArgs, opts ...ResourceOption) (*DdmAccount, error)
public DdmAccount(string name, DdmAccountArgs args, CustomResourceOptions? opts = null)
public DdmAccount(String name, DdmAccountArgs args)
public DdmAccount(String name, DdmAccountArgs args, CustomResourceOptions options)
type: flexibleengine:DdmAccount
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 DdmAccountArgs
- 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 DdmAccountArgs
- 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 DdmAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DdmAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DdmAccountArgs
- 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 ddmAccountResource = new Flexibleengine.DdmAccount("ddmAccountResource", new()
{
InstanceId = "string",
Password = "string",
Permissions = new[]
{
"string",
},
DdmAccountId = "string",
Description = "string",
Name = "string",
Region = "string",
Schemas = new[]
{
new Flexibleengine.Inputs.DdmAccountSchemaArgs
{
Description = "string",
Name = "string",
},
},
Timeouts = new Flexibleengine.Inputs.DdmAccountTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := flexibleengine.NewDdmAccount(ctx, "ddmAccountResource", &flexibleengine.DdmAccountArgs{
InstanceId: pulumi.String("string"),
Password: pulumi.String("string"),
Permissions: pulumi.StringArray{
pulumi.String("string"),
},
DdmAccountId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Schemas: flexibleengine.DdmAccountSchemaArray{
&flexibleengine.DdmAccountSchemaArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Timeouts: &flexibleengine.DdmAccountTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var ddmAccountResource = new DdmAccount("ddmAccountResource", DdmAccountArgs.builder()
.instanceId("string")
.password("string")
.permissions("string")
.ddmAccountId("string")
.description("string")
.name("string")
.region("string")
.schemas(DdmAccountSchemaArgs.builder()
.description("string")
.name("string")
.build())
.timeouts(DdmAccountTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
ddm_account_resource = flexibleengine.DdmAccount("ddmAccountResource",
instance_id="string",
password="string",
permissions=["string"],
ddm_account_id="string",
description="string",
name="string",
region="string",
schemas=[{
"description": "string",
"name": "string",
}],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const ddmAccountResource = new flexibleengine.DdmAccount("ddmAccountResource", {
instanceId: "string",
password: "string",
permissions: ["string"],
ddmAccountId: "string",
description: "string",
name: "string",
region: "string",
schemas: [{
description: "string",
name: "string",
}],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: flexibleengine:DdmAccount
properties:
ddmAccountId: string
description: string
instanceId: string
name: string
password: string
permissions:
- string
region: string
schemas:
- description: string
name: string
timeouts:
create: string
delete: string
update: string
DdmAccount 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 DdmAccount resource accepts the following input properties:
- Instance
Id string - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- Password string
- Specifies the DDM account password.
- Permissions List<string>
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- Ddm
Account stringId - The resource ID.
- Description string
- Specifies the description of the DDM account.
- Name string
- Specifies the name of the associated schema.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Schemas
List<Ddm
Account Schema> Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- Timeouts
Ddm
Account Timeouts
- Instance
Id string - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- Password string
- Specifies the DDM account password.
- Permissions []string
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- Ddm
Account stringId - The resource ID.
- Description string
- Specifies the description of the DDM account.
- Name string
- Specifies the name of the associated schema.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Schemas
[]Ddm
Account Schema Args Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- Timeouts
Ddm
Account Timeouts Args
- instance
Id String - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- password String
- Specifies the DDM account password.
- permissions List<String>
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- ddm
Account StringId - The resource ID.
- description String
- Specifies the description of the DDM account.
- name String
- Specifies the name of the associated schema.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- schemas
List<Ddm
Account Schema> Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- timeouts
Ddm
Account Timeouts
- instance
Id string - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- password string
- Specifies the DDM account password.
- permissions string[]
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- ddm
Account stringId - The resource ID.
- description string
- Specifies the description of the DDM account.
- name string
- Specifies the name of the associated schema.
- region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- schemas
Ddm
Account Schema[] Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- timeouts
Ddm
Account Timeouts
- instance_
id str - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- password str
- Specifies the DDM account password.
- permissions Sequence[str]
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- ddm_
account_ strid - The resource ID.
- description str
- Specifies the description of the DDM account.
- name str
- Specifies the name of the associated schema.
- region str
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- schemas
Sequence[Ddm
Account Schema Args] Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- timeouts
Ddm
Account Timeouts Args
- instance
Id String - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- password String
- Specifies the DDM account password.
- permissions List<String>
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- ddm
Account StringId - The resource ID.
- description String
- Specifies the description of the DDM account.
- name String
- Specifies the name of the associated schema.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- schemas List<Property Map>
Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DdmAccount resource produces the following output properties:
Look up Existing DdmAccount Resource
Get an existing DdmAccount 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?: DdmAccountState, opts?: CustomResourceOptions): DdmAccount
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ddm_account_id: Optional[str] = None,
description: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
permissions: Optional[Sequence[str]] = None,
region: Optional[str] = None,
schemas: Optional[Sequence[DdmAccountSchemaArgs]] = None,
status: Optional[str] = None,
timeouts: Optional[DdmAccountTimeoutsArgs] = None) -> DdmAccount
func GetDdmAccount(ctx *Context, name string, id IDInput, state *DdmAccountState, opts ...ResourceOption) (*DdmAccount, error)
public static DdmAccount Get(string name, Input<string> id, DdmAccountState? state, CustomResourceOptions? opts = null)
public static DdmAccount get(String name, Output<String> id, DdmAccountState state, CustomResourceOptions options)
resources: _: type: flexibleengine:DdmAccount 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.
- Ddm
Account stringId - The resource ID.
- Description string
- Specifies the description of the DDM account.
- Instance
Id string - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- Name string
- Specifies the name of the associated schema.
- Password string
- Specifies the DDM account password.
- Permissions List<string>
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Schemas
List<Ddm
Account Schema> Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- Status string
- Indicates the status of the DDM account.
- Timeouts
Ddm
Account Timeouts
- Ddm
Account stringId - The resource ID.
- Description string
- Specifies the description of the DDM account.
- Instance
Id string - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- Name string
- Specifies the name of the associated schema.
- Password string
- Specifies the DDM account password.
- Permissions []string
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Schemas
[]Ddm
Account Schema Args Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- Status string
- Indicates the status of the DDM account.
- Timeouts
Ddm
Account Timeouts Args
- ddm
Account StringId - The resource ID.
- description String
- Specifies the description of the DDM account.
- instance
Id String - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- name String
- Specifies the name of the associated schema.
- password String
- Specifies the DDM account password.
- permissions List<String>
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- schemas
List<Ddm
Account Schema> Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- status String
- Indicates the status of the DDM account.
- timeouts
Ddm
Account Timeouts
- ddm
Account stringId - The resource ID.
- description string
- Specifies the description of the DDM account.
- instance
Id string - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- name string
- Specifies the name of the associated schema.
- password string
- Specifies the DDM account password.
- permissions string[]
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- schemas
Ddm
Account Schema[] Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- status string
- Indicates the status of the DDM account.
- timeouts
Ddm
Account Timeouts
- ddm_
account_ strid - The resource ID.
- description str
- Specifies the description of the DDM account.
- instance_
id str - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- name str
- Specifies the name of the associated schema.
- password str
- Specifies the DDM account password.
- permissions Sequence[str]
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- region str
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- schemas
Sequence[Ddm
Account Schema Args] Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- status str
- Indicates the status of the DDM account.
- timeouts
Ddm
Account Timeouts Args
- ddm
Account StringId - The resource ID.
- description String
- Specifies the description of the DDM account.
- instance
Id String - Specifies the ID of a DDM instance. Changing this parameter will create a new resource.
- name String
- Specifies the name of the associated schema.
- password String
- Specifies the DDM account password.
- permissions List<String>
- Specifies the basic permissions of the DDM account. Value options: CREATE DROP、ALTER、INDEX、INSERT、DELETE、UPDATE、SELECT.
- region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- schemas List<Property Map>
Specifies the schemas that associated with the account. The Schema structure is documented below.
The
Schema
block supports:- status String
- Indicates the status of the DDM account.
- timeouts Property Map
Supporting Types
DdmAccountSchema, DdmAccountSchemaArgs
- Description string
- Specifies the description of the DDM account.
- Name string
- Specifies the name of the associated schema.
- Description string
- Specifies the description of the DDM account.
- Name string
- Specifies the name of the associated schema.
- description String
- Specifies the description of the DDM account.
- name String
- Specifies the name of the associated schema.
- description string
- Specifies the description of the DDM account.
- name string
- Specifies the name of the associated schema.
- description str
- Specifies the description of the DDM account.
- name str
- Specifies the name of the associated schema.
- description String
- Specifies the description of the DDM account.
- name String
- Specifies the name of the associated schema.
DdmAccountTimeouts, DdmAccountTimeoutsArgs
Import
The DDM account can be imported using the instance ID and account name separated by a slash, e.g.:
bash
$ pulumi import flexibleengine:index/ddmAccount:DdmAccount test 0a8f1c6baa124e99853719d9257324dfin09/account_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.