alicloud.databasefilesystem.Instance
Explore with Pulumi AI
Provides a DBFS Dbfs Instance resource. An instance of a database file system is equivalent to a file system and can store data of file types.
For information about DBFS Dbfs Instance and how to use it, see What is Dbfs Instance.
NOTE: Available since v1.136.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const example = new alicloud.databasefilesystem.Instance("example", {
category: "standard",
zoneId: "cn-hangzhou-i",
performanceLevel: "PL1",
fsName: name,
size: 100,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
example = alicloud.databasefilesystem.Instance("example",
category="standard",
zone_id="cn-hangzhou-i",
performance_level="PL1",
fs_name=name,
size=100)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/databasefilesystem"
"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, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := databasefilesystem.NewInstance(ctx, "example", &databasefilesystem.InstanceArgs{
Category: pulumi.String("standard"),
ZoneId: pulumi.String("cn-hangzhou-i"),
PerformanceLevel: pulumi.String("PL1"),
FsName: pulumi.String(name),
Size: pulumi.Int(100),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var example = new AliCloud.DatabaseFilesystem.Instance("example", new()
{
Category = "standard",
ZoneId = "cn-hangzhou-i",
PerformanceLevel = "PL1",
FsName = name,
Size = 100,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.databasefilesystem.Instance;
import com.pulumi.alicloud.databasefilesystem.InstanceArgs;
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 name = config.get("name").orElse("terraform-example");
var example = new Instance("example", InstanceArgs.builder()
.category("standard")
.zoneId("cn-hangzhou-i")
.performanceLevel("PL1")
.fsName(name)
.size(100)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
example:
type: alicloud:databasefilesystem:Instance
properties:
category: standard
zoneId: cn-hangzhou-i
performanceLevel: PL1
fsName: ${name}
size: 100
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
size: Optional[int] = None,
category: Optional[str] = None,
zone_id: Optional[str] = None,
enable_raid: Optional[bool] = None,
performance_level: Optional[str] = None,
encryption: Optional[bool] = None,
fs_name: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
kms_key_id: Optional[str] = None,
advanced_features: Optional[str] = None,
raid_stripe_unit_number: Optional[int] = None,
ecs_lists: Optional[Sequence[InstanceEcsListArgs]] = None,
snapshot_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
used_scene: Optional[str] = None,
delete_snapshot: Optional[bool] = None)
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: alicloud:databasefilesystem:Instance
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 InstanceArgs
- 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 InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- 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 exampleinstanceResourceResourceFromDatabasefilesysteminstance = new AliCloud.DatabaseFilesystem.Instance("exampleinstanceResourceResourceFromDatabasefilesysteminstance", new()
{
Size = 0,
Category = "string",
ZoneId = "string",
EnableRaid = false,
PerformanceLevel = "string",
Encryption = false,
FsName = "string",
InstanceType = "string",
KmsKeyId = "string",
AdvancedFeatures = "string",
RaidStripeUnitNumber = 0,
SnapshotId = "string",
Tags =
{
{ "string", "string" },
},
UsedScene = "string",
DeleteSnapshot = false,
});
example, err := databasefilesystem.NewInstance(ctx, "exampleinstanceResourceResourceFromDatabasefilesysteminstance", &databasefilesystem.InstanceArgs{
Size: pulumi.Int(0),
Category: pulumi.String("string"),
ZoneId: pulumi.String("string"),
EnableRaid: pulumi.Bool(false),
PerformanceLevel: pulumi.String("string"),
Encryption: pulumi.Bool(false),
FsName: pulumi.String("string"),
InstanceType: pulumi.String("string"),
KmsKeyId: pulumi.String("string"),
AdvancedFeatures: pulumi.String("string"),
RaidStripeUnitNumber: pulumi.Int(0),
SnapshotId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
UsedScene: pulumi.String("string"),
DeleteSnapshot: pulumi.Bool(false),
})
var exampleinstanceResourceResourceFromDatabasefilesysteminstance = new Instance("exampleinstanceResourceResourceFromDatabasefilesysteminstance", InstanceArgs.builder()
.size(0)
.category("string")
.zoneId("string")
.enableRaid(false)
.performanceLevel("string")
.encryption(false)
.fsName("string")
.instanceType("string")
.kmsKeyId("string")
.advancedFeatures("string")
.raidStripeUnitNumber(0)
.snapshotId("string")
.tags(Map.of("string", "string"))
.usedScene("string")
.deleteSnapshot(false)
.build());
exampleinstance_resource_resource_from_databasefilesysteminstance = alicloud.databasefilesystem.Instance("exampleinstanceResourceResourceFromDatabasefilesysteminstance",
size=0,
category="string",
zone_id="string",
enable_raid=False,
performance_level="string",
encryption=False,
fs_name="string",
instance_type="string",
kms_key_id="string",
advanced_features="string",
raid_stripe_unit_number=0,
snapshot_id="string",
tags={
"string": "string",
},
used_scene="string",
delete_snapshot=False)
const exampleinstanceResourceResourceFromDatabasefilesysteminstance = new alicloud.databasefilesystem.Instance("exampleinstanceResourceResourceFromDatabasefilesysteminstance", {
size: 0,
category: "string",
zoneId: "string",
enableRaid: false,
performanceLevel: "string",
encryption: false,
fsName: "string",
instanceType: "string",
kmsKeyId: "string",
advancedFeatures: "string",
raidStripeUnitNumber: 0,
snapshotId: "string",
tags: {
string: "string",
},
usedScene: "string",
deleteSnapshot: false,
});
type: alicloud:databasefilesystem:Instance
properties:
advancedFeatures: string
category: string
deleteSnapshot: false
enableRaid: false
encryption: false
fsName: string
instanceType: string
kmsKeyId: string
performanceLevel: string
raidStripeUnitNumber: 0
size: 0
snapshotId: string
tags:
string: string
usedScene: string
zoneId: string
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Instance resource accepts the following input properties:
- Category string
- Category of database file system.
- Size int
- Size of database file system, unit GiB.
- Zone
Id string - The ID of the zone to which the database file system belongs.
- Advanced
Features string - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- Delete
Snapshot bool - Whether to delete the original snapshot after creating DBFS using the snapshot.
- Ecs
Lists List<Pulumi.Ali Cloud. Database Filesystem. Inputs. Instance Ecs List> - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - Enable
Raid bool - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- Encryption bool
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- Fs
Name string - Database file system name.
- Instance
Name string - Instance
Type string - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- Kms
Key stringId - The ID of the KMS key used by DBFS.
- Performance
Level string - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- Raid
Stripe intUnit Number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- Snapshot
Id string - The ID of the snapshot used to create the DBFS instance.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Used
Scene string - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
- Category string
- Category of database file system.
- Size int
- Size of database file system, unit GiB.
- Zone
Id string - The ID of the zone to which the database file system belongs.
- Advanced
Features string - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- Delete
Snapshot bool - Whether to delete the original snapshot after creating DBFS using the snapshot.
- Ecs
Lists []InstanceEcs List Args - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - Enable
Raid bool - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- Encryption bool
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- Fs
Name string - Database file system name.
- Instance
Name string - Instance
Type string - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- Kms
Key stringId - The ID of the KMS key used by DBFS.
- Performance
Level string - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- Raid
Stripe intUnit Number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- Snapshot
Id string - The ID of the snapshot used to create the DBFS instance.
- map[string]string
- A mapping of tags to assign to the resource.
- Used
Scene string - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
- category String
- Category of database file system.
- size Integer
- Size of database file system, unit GiB.
- zone
Id String - The ID of the zone to which the database file system belongs.
- advanced
Features String - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- delete
Snapshot Boolean - Whether to delete the original snapshot after creating DBFS using the snapshot.
- ecs
Lists List<InstanceEcs List> - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - enable
Raid Boolean - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- encryption Boolean
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- fs
Name String - Database file system name.
- instance
Name String - instance
Type String - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- kms
Key StringId - The ID of the KMS key used by DBFS.
- performance
Level String - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- raid
Stripe IntegerUnit Number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- snapshot
Id String - The ID of the snapshot used to create the DBFS instance.
- Map<String,String>
- A mapping of tags to assign to the resource.
- used
Scene String - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
- category string
- Category of database file system.
- size number
- Size of database file system, unit GiB.
- zone
Id string - The ID of the zone to which the database file system belongs.
- advanced
Features string - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- delete
Snapshot boolean - Whether to delete the original snapshot after creating DBFS using the snapshot.
- ecs
Lists InstanceEcs List[] - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - enable
Raid boolean - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- encryption boolean
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- fs
Name string - Database file system name.
- instance
Name string - instance
Type string - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- kms
Key stringId - The ID of the KMS key used by DBFS.
- performance
Level string - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- raid
Stripe numberUnit Number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- snapshot
Id string - The ID of the snapshot used to create the DBFS instance.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- used
Scene string - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
- category str
- Category of database file system.
- size int
- Size of database file system, unit GiB.
- zone_
id str - The ID of the zone to which the database file system belongs.
- advanced_
features str - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- delete_
snapshot bool - Whether to delete the original snapshot after creating DBFS using the snapshot.
- ecs_
lists Sequence[InstanceEcs List Args] - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - enable_
raid bool - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- encryption bool
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- fs_
name str - Database file system name.
- instance_
name str - instance_
type str - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- kms_
key_ strid - The ID of the KMS key used by DBFS.
- performance_
level str - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- raid_
stripe_ intunit_ number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- snapshot_
id str - The ID of the snapshot used to create the DBFS instance.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- used_
scene str - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
- category String
- Category of database file system.
- size Number
- Size of database file system, unit GiB.
- zone
Id String - The ID of the zone to which the database file system belongs.
- advanced
Features String - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- delete
Snapshot Boolean - Whether to delete the original snapshot after creating DBFS using the snapshot.
- ecs
Lists List<Property Map> - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - enable
Raid Boolean - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- encryption Boolean
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- fs
Name String - Database file system name.
- instance
Name String - instance
Type String - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- kms
Key StringId - The ID of the KMS key used by DBFS.
- performance
Level String - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- raid
Stripe NumberUnit Number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- snapshot
Id String - The ID of the snapshot used to create the DBFS instance.
- Map<String>
- A mapping of tags to assign to the resource.
- used
Scene String - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Create
Time string - The creation time of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the resource.
- Create
Time string - The creation time of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the resource.
- create
Time String - The creation time of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the resource.
- create
Time string - The creation time of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the resource.
- create_
time str - The creation time of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The status of the resource.
- create
Time String - The creation time of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the resource.
Look up Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
advanced_features: Optional[str] = None,
category: Optional[str] = None,
create_time: Optional[str] = None,
delete_snapshot: Optional[bool] = None,
ecs_lists: Optional[Sequence[InstanceEcsListArgs]] = None,
enable_raid: Optional[bool] = None,
encryption: Optional[bool] = None,
fs_name: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
kms_key_id: Optional[str] = None,
performance_level: Optional[str] = None,
raid_stripe_unit_number: Optional[int] = None,
size: Optional[int] = None,
snapshot_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
used_scene: Optional[str] = None,
zone_id: Optional[str] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Advanced
Features string - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- Category string
- Category of database file system.
- Create
Time string - The creation time of the resource.
- Delete
Snapshot bool - Whether to delete the original snapshot after creating DBFS using the snapshot.
- Ecs
Lists List<Pulumi.Ali Cloud. Database Filesystem. Inputs. Instance Ecs List> - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - Enable
Raid bool - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- Encryption bool
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- Fs
Name string - Database file system name.
- Instance
Name string - Instance
Type string - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- Kms
Key stringId - The ID of the KMS key used by DBFS.
- Performance
Level string - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- Raid
Stripe intUnit Number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- Size int
- Size of database file system, unit GiB.
- Snapshot
Id string - The ID of the snapshot used to create the DBFS instance.
- Status string
- The status of the resource.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Used
Scene string - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
- Zone
Id string - The ID of the zone to which the database file system belongs.
- Advanced
Features string - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- Category string
- Category of database file system.
- Create
Time string - The creation time of the resource.
- Delete
Snapshot bool - Whether to delete the original snapshot after creating DBFS using the snapshot.
- Ecs
Lists []InstanceEcs List Args - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - Enable
Raid bool - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- Encryption bool
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- Fs
Name string - Database file system name.
- Instance
Name string - Instance
Type string - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- Kms
Key stringId - The ID of the KMS key used by DBFS.
- Performance
Level string - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- Raid
Stripe intUnit Number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- Size int
- Size of database file system, unit GiB.
- Snapshot
Id string - The ID of the snapshot used to create the DBFS instance.
- Status string
- The status of the resource.
- map[string]string
- A mapping of tags to assign to the resource.
- Used
Scene string - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
- Zone
Id string - The ID of the zone to which the database file system belongs.
- advanced
Features String - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- category String
- Category of database file system.
- create
Time String - The creation time of the resource.
- delete
Snapshot Boolean - Whether to delete the original snapshot after creating DBFS using the snapshot.
- ecs
Lists List<InstanceEcs List> - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - enable
Raid Boolean - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- encryption Boolean
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- fs
Name String - Database file system name.
- instance
Name String - instance
Type String - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- kms
Key StringId - The ID of the KMS key used by DBFS.
- performance
Level String - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- raid
Stripe IntegerUnit Number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- size Integer
- Size of database file system, unit GiB.
- snapshot
Id String - The ID of the snapshot used to create the DBFS instance.
- status String
- The status of the resource.
- Map<String,String>
- A mapping of tags to assign to the resource.
- used
Scene String - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
- zone
Id String - The ID of the zone to which the database file system belongs.
- advanced
Features string - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- category string
- Category of database file system.
- create
Time string - The creation time of the resource.
- delete
Snapshot boolean - Whether to delete the original snapshot after creating DBFS using the snapshot.
- ecs
Lists InstanceEcs List[] - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - enable
Raid boolean - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- encryption boolean
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- fs
Name string - Database file system name.
- instance
Name string - instance
Type string - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- kms
Key stringId - The ID of the KMS key used by DBFS.
- performance
Level string - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- raid
Stripe numberUnit Number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- size number
- Size of database file system, unit GiB.
- snapshot
Id string - The ID of the snapshot used to create the DBFS instance.
- status string
- The status of the resource.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- used
Scene string - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
- zone
Id string - The ID of the zone to which the database file system belongs.
- advanced_
features str - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- category str
- Category of database file system.
- create_
time str - The creation time of the resource.
- delete_
snapshot bool - Whether to delete the original snapshot after creating DBFS using the snapshot.
- ecs_
lists Sequence[InstanceEcs List Args] - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - enable_
raid bool - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- encryption bool
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- fs_
name str - Database file system name.
- instance_
name str - instance_
type str - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- kms_
key_ strid - The ID of the KMS key used by DBFS.
- performance_
level str - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- raid_
stripe_ intunit_ number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- size int
- Size of database file system, unit GiB.
- snapshot_
id str - The ID of the snapshot used to create the DBFS instance.
- status str
- The status of the resource.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- used_
scene str - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
- zone_
id str - The ID of the zone to which the database file system belongs.
- advanced
Features String - The number of CPU cores and the upper limit of memory used by the database file storage instance.
- category String
- Category of database file system.
- create
Time String - The creation time of the resource.
- delete
Snapshot Boolean - Whether to delete the original snapshot after creating DBFS using the snapshot.
- ecs
Lists List<Property Map> - The collection of ECS instances mounted to the Database file system. See
ecs_list
below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS. Seeecs_list
below. - enable
Raid Boolean - Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.
- encryption Boolean
- Whether to encrypt DBFS.Valid values: true or false. Default value: false.
- fs
Name String - Database file system name.
- instance
Name String - instance
Type String - Instance type. Value range:
- dbfs.small
- dbfs.medium
- dbfs.large (default)
- kms
Key StringId - The ID of the KMS key used by DBFS.
- performance
Level String - When you create a DBFS instance, set the performance level of the DBFS instance. Value range:
- PL0: single disk maximum random read-write IOPS 10000
- PL1: highest random read-write IOPS 50000 per disk (default)
- PL2: single disk maximum random read-write IOPS 100000
- PL3: single disk maximum random read-write IOPS 1 million.
- raid
Stripe NumberUnit Number - Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.
- size Number
- Size of database file system, unit GiB.
- snapshot
Id String - The ID of the snapshot used to create the DBFS instance.
- status String
- The status of the resource.
- Map<String>
- A mapping of tags to assign to the resource.
- used
Scene String - The usage scenario of DBFS. Value range:
- MySQL 5.7
- PostgreSQL
- MongoDB.
- zone
Id String - The ID of the zone to which the database file system belongs.
Supporting Types
InstanceEcsList, InstanceEcsListArgs
- Ecs
Id string The ID of the ECS instance.
The following arguments will be discarded. Please use new fields as soon as possible:
- Ecs
Id string The ID of the ECS instance.
The following arguments will be discarded. Please use new fields as soon as possible:
- ecs
Id String The ID of the ECS instance.
The following arguments will be discarded. Please use new fields as soon as possible:
- ecs
Id string The ID of the ECS instance.
The following arguments will be discarded. Please use new fields as soon as possible:
- ecs_
id str The ID of the ECS instance.
The following arguments will be discarded. Please use new fields as soon as possible:
- ecs
Id String The ID of the ECS instance.
The following arguments will be discarded. Please use new fields as soon as possible:
Import
DBFS Dbfs Instance can be imported using the id, e.g.
$ pulumi import alicloud:databasefilesystem/instance:Instance example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.