databasefilesystem

package
v3.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInstancesArgs

type GetInstancesArgs struct {
	// A list of Instance IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Instance name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the Database file system.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getInstances.

type GetInstancesInstance

type GetInstancesInstance struct {
	// the number of nodes of the Database file system.
	AttachNodeNumber int `pulumi:"attachNodeNumber"`
	// The type of the Database file system. Valid values: `standard`.
	Category string `pulumi:"category"`
	// The create time of the Database file system.
	CreateTime string `pulumi:"createTime"`
	// The cluster ID of the Database file system.
	DbfsClusterId string `pulumi:"dbfsClusterId"`
	// The collection of ECS instances mounted to the Database file system.
	EcsLists []GetInstancesInstanceEcsList `pulumi:"ecsLists"`
	// Whether to create the Database file system in RAID way. Valid values : `true` anf `false`.
	EnableRaid bool `pulumi:"enableRaid"`
	// Whether to encrypt the Database file system. Valid values: `true` and `false`.
	Encryption bool `pulumi:"encryption"`
	// The ID of the Instance.
	Id string `pulumi:"id"`
	// The ID of the Database File System
	InstanceId string `pulumi:"instanceId"`
	// The name of the Database file system.
	InstanceName string `pulumi:"instanceName"`
	// The KMS key ID of the Database file system used. This parameter is valid When `encryption` parameter is set to `true`.
	KmsKeyId string `pulumi:"kmsKeyId"`
	// Thr payment type of the Database file system. Valid value: `PayAsYouGo`.
	PaymentType string `pulumi:"paymentType"`
	// The performance level of the Database file system. Valid values: `PL0`, `PL1`, `PL2`, `PL3`.
	PerformanceLevel string `pulumi:"performanceLevel"`
	// The number of strip . When `enableRaid` parameter is set to `true` will transfer. This parameter is valid When `enableRaid` parameter is set to `true`.
	RaidStripeUnitNumber string `pulumi:"raidStripeUnitNumber"`
	// The size Of the Database file system. Unit: GiB.
	Size int `pulumi:"size"`
	// The status of the Database file system.
	Status string `pulumi:"status"`
	// The Zone ID of the Database file system.
	ZoneId string `pulumi:"zoneId"`
}

type GetInstancesInstanceArgs

type GetInstancesInstanceArgs struct {
	// the number of nodes of the Database file system.
	AttachNodeNumber pulumi.IntInput `pulumi:"attachNodeNumber"`
	// The type of the Database file system. Valid values: `standard`.
	Category pulumi.StringInput `pulumi:"category"`
	// The create time of the Database file system.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The cluster ID of the Database file system.
	DbfsClusterId pulumi.StringInput `pulumi:"dbfsClusterId"`
	// The collection of ECS instances mounted to the Database file system.
	EcsLists GetInstancesInstanceEcsListArrayInput `pulumi:"ecsLists"`
	// Whether to create the Database file system in RAID way. Valid values : `true` anf `false`.
	EnableRaid pulumi.BoolInput `pulumi:"enableRaid"`
	// Whether to encrypt the Database file system. Valid values: `true` and `false`.
	Encryption pulumi.BoolInput `pulumi:"encryption"`
	// The ID of the Instance.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the Database File System
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The name of the Database file system.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// The KMS key ID of the Database file system used. This parameter is valid When `encryption` parameter is set to `true`.
	KmsKeyId pulumi.StringInput `pulumi:"kmsKeyId"`
	// Thr payment type of the Database file system. Valid value: `PayAsYouGo`.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// The performance level of the Database file system. Valid values: `PL0`, `PL1`, `PL2`, `PL3`.
	PerformanceLevel pulumi.StringInput `pulumi:"performanceLevel"`
	// The number of strip . When `enableRaid` parameter is set to `true` will transfer. This parameter is valid When `enableRaid` parameter is set to `true`.
	RaidStripeUnitNumber pulumi.StringInput `pulumi:"raidStripeUnitNumber"`
	// The size Of the Database file system. Unit: GiB.
	Size pulumi.IntInput `pulumi:"size"`
	// The status of the Database file system.
	Status pulumi.StringInput `pulumi:"status"`
	// The Zone ID of the Database file system.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetInstancesInstanceArgs) ElementType

func (GetInstancesInstanceArgs) ElementType() reflect.Type

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutput

func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext

func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput

type GetInstancesInstanceArray

type GetInstancesInstanceArray []GetInstancesInstanceInput

func (GetInstancesInstanceArray) ElementType

func (GetInstancesInstanceArray) ElementType() reflect.Type

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput

func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext

func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput

type GetInstancesInstanceArrayInput

type GetInstancesInstanceArrayInput interface {
	pulumi.Input

	ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput
	ToGetInstancesInstanceArrayOutputWithContext(context.Context) GetInstancesInstanceArrayOutput
}

GetInstancesInstanceArrayInput is an input type that accepts GetInstancesInstanceArray and GetInstancesInstanceArrayOutput values. You can construct a concrete instance of `GetInstancesInstanceArrayInput` via:

GetInstancesInstanceArray{ GetInstancesInstanceArgs{...} }

type GetInstancesInstanceArrayOutput

type GetInstancesInstanceArrayOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceArrayOutput) ElementType

func (GetInstancesInstanceArrayOutput) Index

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput

func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext

func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput

type GetInstancesInstanceEcsList

type GetInstancesInstanceEcsList struct {
	// The ID of the ECS instance.
	EcsId string `pulumi:"ecsId"`
}

type GetInstancesInstanceEcsListArgs

type GetInstancesInstanceEcsListArgs struct {
	// The ID of the ECS instance.
	EcsId pulumi.StringInput `pulumi:"ecsId"`
}

func (GetInstancesInstanceEcsListArgs) ElementType

func (GetInstancesInstanceEcsListArgs) ToGetInstancesInstanceEcsListOutput

func (i GetInstancesInstanceEcsListArgs) ToGetInstancesInstanceEcsListOutput() GetInstancesInstanceEcsListOutput

func (GetInstancesInstanceEcsListArgs) ToGetInstancesInstanceEcsListOutputWithContext

func (i GetInstancesInstanceEcsListArgs) ToGetInstancesInstanceEcsListOutputWithContext(ctx context.Context) GetInstancesInstanceEcsListOutput

type GetInstancesInstanceEcsListArray

type GetInstancesInstanceEcsListArray []GetInstancesInstanceEcsListInput

func (GetInstancesInstanceEcsListArray) ElementType

func (GetInstancesInstanceEcsListArray) ToGetInstancesInstanceEcsListArrayOutput

func (i GetInstancesInstanceEcsListArray) ToGetInstancesInstanceEcsListArrayOutput() GetInstancesInstanceEcsListArrayOutput

func (GetInstancesInstanceEcsListArray) ToGetInstancesInstanceEcsListArrayOutputWithContext

func (i GetInstancesInstanceEcsListArray) ToGetInstancesInstanceEcsListArrayOutputWithContext(ctx context.Context) GetInstancesInstanceEcsListArrayOutput

type GetInstancesInstanceEcsListArrayInput

type GetInstancesInstanceEcsListArrayInput interface {
	pulumi.Input

	ToGetInstancesInstanceEcsListArrayOutput() GetInstancesInstanceEcsListArrayOutput
	ToGetInstancesInstanceEcsListArrayOutputWithContext(context.Context) GetInstancesInstanceEcsListArrayOutput
}

GetInstancesInstanceEcsListArrayInput is an input type that accepts GetInstancesInstanceEcsListArray and GetInstancesInstanceEcsListArrayOutput values. You can construct a concrete instance of `GetInstancesInstanceEcsListArrayInput` via:

GetInstancesInstanceEcsListArray{ GetInstancesInstanceEcsListArgs{...} }

type GetInstancesInstanceEcsListArrayOutput

type GetInstancesInstanceEcsListArrayOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceEcsListArrayOutput) ElementType

func (GetInstancesInstanceEcsListArrayOutput) Index

func (GetInstancesInstanceEcsListArrayOutput) ToGetInstancesInstanceEcsListArrayOutput

func (o GetInstancesInstanceEcsListArrayOutput) ToGetInstancesInstanceEcsListArrayOutput() GetInstancesInstanceEcsListArrayOutput

func (GetInstancesInstanceEcsListArrayOutput) ToGetInstancesInstanceEcsListArrayOutputWithContext

func (o GetInstancesInstanceEcsListArrayOutput) ToGetInstancesInstanceEcsListArrayOutputWithContext(ctx context.Context) GetInstancesInstanceEcsListArrayOutput

type GetInstancesInstanceEcsListInput

type GetInstancesInstanceEcsListInput interface {
	pulumi.Input

	ToGetInstancesInstanceEcsListOutput() GetInstancesInstanceEcsListOutput
	ToGetInstancesInstanceEcsListOutputWithContext(context.Context) GetInstancesInstanceEcsListOutput
}

GetInstancesInstanceEcsListInput is an input type that accepts GetInstancesInstanceEcsListArgs and GetInstancesInstanceEcsListOutput values. You can construct a concrete instance of `GetInstancesInstanceEcsListInput` via:

GetInstancesInstanceEcsListArgs{...}

type GetInstancesInstanceEcsListOutput

type GetInstancesInstanceEcsListOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceEcsListOutput) EcsId

The ID of the ECS instance.

func (GetInstancesInstanceEcsListOutput) ElementType

func (GetInstancesInstanceEcsListOutput) ToGetInstancesInstanceEcsListOutput

func (o GetInstancesInstanceEcsListOutput) ToGetInstancesInstanceEcsListOutput() GetInstancesInstanceEcsListOutput

func (GetInstancesInstanceEcsListOutput) ToGetInstancesInstanceEcsListOutputWithContext

func (o GetInstancesInstanceEcsListOutput) ToGetInstancesInstanceEcsListOutputWithContext(ctx context.Context) GetInstancesInstanceEcsListOutput

type GetInstancesInstanceInput

type GetInstancesInstanceInput interface {
	pulumi.Input

	ToGetInstancesInstanceOutput() GetInstancesInstanceOutput
	ToGetInstancesInstanceOutputWithContext(context.Context) GetInstancesInstanceOutput
}

GetInstancesInstanceInput is an input type that accepts GetInstancesInstanceArgs and GetInstancesInstanceOutput values. You can construct a concrete instance of `GetInstancesInstanceInput` via:

GetInstancesInstanceArgs{...}

type GetInstancesInstanceOutput

type GetInstancesInstanceOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceOutput) AttachNodeNumber

func (o GetInstancesInstanceOutput) AttachNodeNumber() pulumi.IntOutput

the number of nodes of the Database file system.

func (GetInstancesInstanceOutput) Category

The type of the Database file system. Valid values: `standard`.

func (GetInstancesInstanceOutput) CreateTime

The create time of the Database file system.

func (GetInstancesInstanceOutput) DbfsClusterId

The cluster ID of the Database file system.

func (GetInstancesInstanceOutput) EcsLists

The collection of ECS instances mounted to the Database file system.

func (GetInstancesInstanceOutput) ElementType

func (GetInstancesInstanceOutput) ElementType() reflect.Type

func (GetInstancesInstanceOutput) EnableRaid

Whether to create the Database file system in RAID way. Valid values : `true` anf `false`.

func (GetInstancesInstanceOutput) Encryption

Whether to encrypt the Database file system. Valid values: `true` and `false`.

func (GetInstancesInstanceOutput) Id

The ID of the Instance.

func (GetInstancesInstanceOutput) InstanceId

The ID of the Database File System

func (GetInstancesInstanceOutput) InstanceName

The name of the Database file system.

func (GetInstancesInstanceOutput) KmsKeyId

The KMS key ID of the Database file system used. This parameter is valid When `encryption` parameter is set to `true`.

func (GetInstancesInstanceOutput) PaymentType

Thr payment type of the Database file system. Valid value: `PayAsYouGo`.

func (GetInstancesInstanceOutput) PerformanceLevel

func (o GetInstancesInstanceOutput) PerformanceLevel() pulumi.StringOutput

The performance level of the Database file system. Valid values: `PL0`, `PL1`, `PL2`, `PL3`.

func (GetInstancesInstanceOutput) RaidStripeUnitNumber

func (o GetInstancesInstanceOutput) RaidStripeUnitNumber() pulumi.StringOutput

The number of strip . When `enableRaid` parameter is set to `true` will transfer. This parameter is valid When `enableRaid` parameter is set to `true`.

func (GetInstancesInstanceOutput) Size

The size Of the Database file system. Unit: GiB.

func (GetInstancesInstanceOutput) Status

The status of the Database file system.

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutput

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput

func (GetInstancesInstanceOutput) ZoneId

The Zone ID of the Database file system.

type GetInstancesOutputArgs added in v3.9.0

type GetInstancesOutputArgs struct {
	// A list of Instance IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Instance name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of the Database file system.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getInstances.

func (GetInstancesOutputArgs) ElementType added in v3.9.0

func (GetInstancesOutputArgs) ElementType() reflect.Type

type GetInstancesResult

type GetInstancesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                 `pulumi:"id"`
	Ids        []string               `pulumi:"ids"`
	Instances  []GetInstancesInstance `pulumi:"instances"`
	NameRegex  *string                `pulumi:"nameRegex"`
	Names      []string               `pulumi:"names"`
	OutputFile *string                `pulumi:"outputFile"`
	Status     *string                `pulumi:"status"`
}

A collection of values returned by getInstances.

func GetInstances

func GetInstances(ctx *pulumi.Context, args *GetInstancesArgs, opts ...pulumi.InvokeOption) (*GetInstancesResult, error)

This data source provides the DBFS Instances of the current Alibaba Cloud user.

> **NOTE:** Available in v1.136.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/databasefilesystem"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := databasefilesystem.GetInstances(ctx, &databasefilesystem.GetInstancesArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dbfsInstanceId1", ids.Instances[0].Id)
		nameRegex, err := databasefilesystem.GetInstances(ctx, &databasefilesystem.GetInstancesArgs{
			NameRegex: pulumi.StringRef("^my-Instance"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dbfsInstanceId2", nameRegex.Instances[0].Id)
		return nil
	})
}

```

type GetInstancesResultOutput added in v3.9.0

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func GetInstancesOutput added in v3.9.0

func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput

func (GetInstancesResultOutput) ElementType added in v3.9.0

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) Ids added in v3.9.0

func (GetInstancesResultOutput) Instances added in v3.9.0

func (GetInstancesResultOutput) NameRegex added in v3.9.0

func (GetInstancesResultOutput) Names added in v3.9.0

func (GetInstancesResultOutput) OutputFile added in v3.9.0

func (GetInstancesResultOutput) Status added in v3.9.0

func (GetInstancesResultOutput) ToGetInstancesResultOutput added in v3.9.0

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext added in v3.9.0

func (o GetInstancesResultOutput) ToGetInstancesResultOutputWithContext(ctx context.Context) GetInstancesResultOutput

type GetSnapshotsArgs added in v3.19.0

type GetSnapshotsArgs struct {
	// A list of Snapshot IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Snapshot name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the snapshot. Possible values: `progressing`, `accomplished`, `failed`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getSnapshots.

type GetSnapshotsOutputArgs added in v3.19.0

type GetSnapshotsOutputArgs struct {
	// A list of Snapshot IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Snapshot name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of the snapshot. Possible values: `progressing`, `accomplished`, `failed`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getSnapshots.

func (GetSnapshotsOutputArgs) ElementType added in v3.19.0

func (GetSnapshotsOutputArgs) ElementType() reflect.Type

type GetSnapshotsResult added in v3.19.0

type GetSnapshotsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                 `pulumi:"id"`
	Ids        []string               `pulumi:"ids"`
	NameRegex  *string                `pulumi:"nameRegex"`
	Names      []string               `pulumi:"names"`
	OutputFile *string                `pulumi:"outputFile"`
	Snapshots  []GetSnapshotsSnapshot `pulumi:"snapshots"`
	Status     *string                `pulumi:"status"`
}

A collection of values returned by getSnapshots.

func GetSnapshots added in v3.19.0

func GetSnapshots(ctx *pulumi.Context, args *GetSnapshotsArgs, opts ...pulumi.InvokeOption) (*GetSnapshotsResult, error)

This data source provides the Dbfs Snapshots of the current Alibaba Cloud user.

> **NOTE:** Available in v1.156.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/databasefilesystem"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := databasefilesystem.GetSnapshots(ctx, &databasefilesystem.GetSnapshotsArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dbfsSnapshotId1", ids.Snapshots[0].Id)
		nameRegex, err := databasefilesystem.GetSnapshots(ctx, &databasefilesystem.GetSnapshotsArgs{
			NameRegex: pulumi.StringRef("^my-Snapshot"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dbfsSnapshotId2", nameRegex.Snapshots[0].Id)
		status, err := databasefilesystem.GetSnapshots(ctx, &databasefilesystem.GetSnapshotsArgs{
			Status: pulumi.StringRef("accomplished"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dbfsSnapshotId3", status.Snapshots[0].Id)
		return nil
	})
}

```

type GetSnapshotsResultOutput added in v3.19.0

type GetSnapshotsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSnapshots.

func GetSnapshotsOutput added in v3.19.0

func GetSnapshotsOutput(ctx *pulumi.Context, args GetSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetSnapshotsResultOutput

func (GetSnapshotsResultOutput) ElementType added in v3.19.0

func (GetSnapshotsResultOutput) ElementType() reflect.Type

func (GetSnapshotsResultOutput) Id added in v3.19.0

The provider-assigned unique ID for this managed resource.

func (GetSnapshotsResultOutput) Ids added in v3.19.0

func (GetSnapshotsResultOutput) NameRegex added in v3.19.0

func (GetSnapshotsResultOutput) Names added in v3.19.0

func (GetSnapshotsResultOutput) OutputFile added in v3.19.0

func (GetSnapshotsResultOutput) Snapshots added in v3.19.0

func (GetSnapshotsResultOutput) Status added in v3.19.0

func (GetSnapshotsResultOutput) ToGetSnapshotsResultOutput added in v3.19.0

func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutput() GetSnapshotsResultOutput

func (GetSnapshotsResultOutput) ToGetSnapshotsResultOutputWithContext added in v3.19.0

func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutputWithContext(ctx context.Context) GetSnapshotsResultOutput

type GetSnapshotsSnapshot added in v3.19.0

type GetSnapshotsSnapshot struct {
	// The type of the Snapshot.
	Category string `pulumi:"category"`
	// The creation time of the snapshot.
	CreateTime string `pulumi:"createTime"`
	// The description of the snapshot.
	Description string `pulumi:"description"`
	// The ID of the Snapshot.
	Id string `pulumi:"id"`
	// The ID of the database file system.
	InstanceId string `pulumi:"instanceId"`
	// The last modification time of the snapshot.
	LastModifiedTime string `pulumi:"lastModifiedTime"`
	// The progress of the snapshot.
	Progress string `pulumi:"progress"`
	// The remaining completion time of the snapshot being created, in seconds.
	RemainTime int `pulumi:"remainTime"`
	// The retention days of the snapshot.
	RetentionDays int `pulumi:"retentionDays"`
	// The ID of the snapshot.
	SnapshotId string `pulumi:"snapshotId"`
	// The name of the snapshot.
	SnapshotName string `pulumi:"snapshotName"`
	// The creation of the snapshot.
	SnapshotType string `pulumi:"snapshotType"`
	// Source database file system capacity.
	SourceFsSize int `pulumi:"sourceFsSize"`
	// The status of the snapshot. Possible values: `progressing`, `accomplished`, `failed`.
	Status string `pulumi:"status"`
}

type GetSnapshotsSnapshotArgs added in v3.19.0

type GetSnapshotsSnapshotArgs struct {
	// The type of the Snapshot.
	Category pulumi.StringInput `pulumi:"category"`
	// The creation time of the snapshot.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The description of the snapshot.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the Snapshot.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the database file system.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The last modification time of the snapshot.
	LastModifiedTime pulumi.StringInput `pulumi:"lastModifiedTime"`
	// The progress of the snapshot.
	Progress pulumi.StringInput `pulumi:"progress"`
	// The remaining completion time of the snapshot being created, in seconds.
	RemainTime pulumi.IntInput `pulumi:"remainTime"`
	// The retention days of the snapshot.
	RetentionDays pulumi.IntInput `pulumi:"retentionDays"`
	// The ID of the snapshot.
	SnapshotId pulumi.StringInput `pulumi:"snapshotId"`
	// The name of the snapshot.
	SnapshotName pulumi.StringInput `pulumi:"snapshotName"`
	// The creation of the snapshot.
	SnapshotType pulumi.StringInput `pulumi:"snapshotType"`
	// Source database file system capacity.
	SourceFsSize pulumi.IntInput `pulumi:"sourceFsSize"`
	// The status of the snapshot. Possible values: `progressing`, `accomplished`, `failed`.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetSnapshotsSnapshotArgs) ElementType added in v3.19.0

func (GetSnapshotsSnapshotArgs) ElementType() reflect.Type

func (GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutput added in v3.19.0

func (i GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutput() GetSnapshotsSnapshotOutput

func (GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutputWithContext added in v3.19.0

func (i GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutputWithContext(ctx context.Context) GetSnapshotsSnapshotOutput

type GetSnapshotsSnapshotArray added in v3.19.0

type GetSnapshotsSnapshotArray []GetSnapshotsSnapshotInput

func (GetSnapshotsSnapshotArray) ElementType added in v3.19.0

func (GetSnapshotsSnapshotArray) ElementType() reflect.Type

func (GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutput added in v3.19.0

func (i GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutput() GetSnapshotsSnapshotArrayOutput

func (GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutputWithContext added in v3.19.0

func (i GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotArrayOutput

type GetSnapshotsSnapshotArrayInput added in v3.19.0

type GetSnapshotsSnapshotArrayInput interface {
	pulumi.Input

	ToGetSnapshotsSnapshotArrayOutput() GetSnapshotsSnapshotArrayOutput
	ToGetSnapshotsSnapshotArrayOutputWithContext(context.Context) GetSnapshotsSnapshotArrayOutput
}

GetSnapshotsSnapshotArrayInput is an input type that accepts GetSnapshotsSnapshotArray and GetSnapshotsSnapshotArrayOutput values. You can construct a concrete instance of `GetSnapshotsSnapshotArrayInput` via:

GetSnapshotsSnapshotArray{ GetSnapshotsSnapshotArgs{...} }

type GetSnapshotsSnapshotArrayOutput added in v3.19.0

type GetSnapshotsSnapshotArrayOutput struct{ *pulumi.OutputState }

func (GetSnapshotsSnapshotArrayOutput) ElementType added in v3.19.0

func (GetSnapshotsSnapshotArrayOutput) Index added in v3.19.0

func (GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutput added in v3.19.0

func (o GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutput() GetSnapshotsSnapshotArrayOutput

func (GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutputWithContext added in v3.19.0

func (o GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotArrayOutput

type GetSnapshotsSnapshotInput added in v3.19.0

type GetSnapshotsSnapshotInput interface {
	pulumi.Input

	ToGetSnapshotsSnapshotOutput() GetSnapshotsSnapshotOutput
	ToGetSnapshotsSnapshotOutputWithContext(context.Context) GetSnapshotsSnapshotOutput
}

GetSnapshotsSnapshotInput is an input type that accepts GetSnapshotsSnapshotArgs and GetSnapshotsSnapshotOutput values. You can construct a concrete instance of `GetSnapshotsSnapshotInput` via:

GetSnapshotsSnapshotArgs{...}

type GetSnapshotsSnapshotOutput added in v3.19.0

type GetSnapshotsSnapshotOutput struct{ *pulumi.OutputState }

func (GetSnapshotsSnapshotOutput) Category added in v3.19.0

The type of the Snapshot.

func (GetSnapshotsSnapshotOutput) CreateTime added in v3.19.0

The creation time of the snapshot.

func (GetSnapshotsSnapshotOutput) Description added in v3.19.0

The description of the snapshot.

func (GetSnapshotsSnapshotOutput) ElementType added in v3.19.0

func (GetSnapshotsSnapshotOutput) ElementType() reflect.Type

func (GetSnapshotsSnapshotOutput) Id added in v3.19.0

The ID of the Snapshot.

func (GetSnapshotsSnapshotOutput) InstanceId added in v3.19.0

The ID of the database file system.

func (GetSnapshotsSnapshotOutput) LastModifiedTime added in v3.19.0

func (o GetSnapshotsSnapshotOutput) LastModifiedTime() pulumi.StringOutput

The last modification time of the snapshot.

func (GetSnapshotsSnapshotOutput) Progress added in v3.19.0

The progress of the snapshot.

func (GetSnapshotsSnapshotOutput) RemainTime added in v3.19.0

The remaining completion time of the snapshot being created, in seconds.

func (GetSnapshotsSnapshotOutput) RetentionDays added in v3.19.0

func (o GetSnapshotsSnapshotOutput) RetentionDays() pulumi.IntOutput

The retention days of the snapshot.

func (GetSnapshotsSnapshotOutput) SnapshotId added in v3.19.0

The ID of the snapshot.

func (GetSnapshotsSnapshotOutput) SnapshotName added in v3.19.0

The name of the snapshot.

func (GetSnapshotsSnapshotOutput) SnapshotType added in v3.19.0

The creation of the snapshot.

func (GetSnapshotsSnapshotOutput) SourceFsSize added in v3.19.0

func (o GetSnapshotsSnapshotOutput) SourceFsSize() pulumi.IntOutput

Source database file system capacity.

func (GetSnapshotsSnapshotOutput) Status added in v3.19.0

The status of the snapshot. Possible values: `progressing`, `accomplished`, `failed`.

func (GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutput added in v3.19.0

func (o GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutput() GetSnapshotsSnapshotOutput

func (GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutputWithContext added in v3.19.0

func (o GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutputWithContext(ctx context.Context) GetSnapshotsSnapshotOutput

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// The type of the Database file system. Valid values: `standard`.
	Category pulumi.StringOutput `pulumi:"category"`
	// Whether to delete the original snapshot after the DBFS is created using the snapshot. Valid values : `true` anf `false`.
	DeleteSnapshot pulumi.BoolPtrOutput `pulumi:"deleteSnapshot"`
	// The collection of ECS instances mounted to the Database file system. See the following `Block ecsList`. **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.
	//
	// Deprecated: 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.
	EcsLists InstanceEcsListArrayOutput `pulumi:"ecsLists"`
	// Whether to create the Database file system in RAID way. Valid values : `true` anf `false`.
	EnableRaid pulumi.BoolPtrOutput `pulumi:"enableRaid"`
	// Whether to encrypt the database file system. Valid values: `true` and `false`.
	Encryption pulumi.BoolPtrOutput `pulumi:"encryption"`
	// The name of the Database file system.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// The KMS key ID of the Database file system used. This parameter is valid When `encryption` parameter is set to `true`.
	KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"`
	// The performance level of the Database file system. Valid values: `PL0`, `PL1`, `PL2`, `PL3`.
	PerformanceLevel pulumi.StringOutput `pulumi:"performanceLevel"`
	// The number of strip. This parameter is valid When `enableRaid` parameter is set to `true`.
	RaidStripeUnitNumber pulumi.StringPtrOutput `pulumi:"raidStripeUnitNumber"`
	// The size Of the Database file system. Unit: GiB.
	Size pulumi.IntOutput `pulumi:"size"`
	// The snapshot id of the Database file system.
	SnapshotId pulumi.StringPtrOutput `pulumi:"snapshotId"`
	Status     pulumi.StringOutput    `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The Zone ID of the Database file system.
	ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}

Provides a DBFS Instance resource.

For information about DBFS Instance and how to use it, see [What is Instance](https://help.aliyun.com/document_detail/149726.html).

> **NOTE:** Available in v1.136.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/databasefilesystem"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databasefilesystem.NewInstance(ctx, "example", &databasefilesystem.InstanceArgs{
			Category:     pulumi.String("standard"),
			InstanceName: pulumi.String("example_value"),
			Size:         pulumi.Int(1),
			ZoneId:       pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DBFS Instance can be imported using the id, e.g.

```sh

$ pulumi import alicloud:databasefilesystem/instance:Instance example <id>

```

func GetInstance

func GetInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)

GetInstance gets an existing Instance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInstance

func NewInstance(ctx *pulumi.Context,
	name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)

NewInstance registers a new resource with the given unique name, arguments, and options.

func (*Instance) ElementType

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

type InstanceArgs

type InstanceArgs struct {
	// The type of the Database file system. Valid values: `standard`.
	Category pulumi.StringPtrInput
	// Whether to delete the original snapshot after the DBFS is created using the snapshot. Valid values : `true` anf `false`.
	DeleteSnapshot pulumi.BoolPtrInput
	// The collection of ECS instances mounted to the Database file system. See the following `Block ecsList`. **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.
	//
	// Deprecated: 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.
	EcsLists InstanceEcsListArrayInput
	// Whether to create the Database file system in RAID way. Valid values : `true` anf `false`.
	EnableRaid pulumi.BoolPtrInput
	// Whether to encrypt the database file system. Valid values: `true` and `false`.
	Encryption pulumi.BoolPtrInput
	// The name of the Database file system.
	InstanceName pulumi.StringInput
	// The KMS key ID of the Database file system used. This parameter is valid When `encryption` parameter is set to `true`.
	KmsKeyId pulumi.StringPtrInput
	// The performance level of the Database file system. Valid values: `PL0`, `PL1`, `PL2`, `PL3`.
	PerformanceLevel pulumi.StringPtrInput
	// The number of strip. This parameter is valid When `enableRaid` parameter is set to `true`.
	RaidStripeUnitNumber pulumi.StringPtrInput
	// The size Of the Database file system. Unit: GiB.
	Size pulumi.IntInput
	// The snapshot id of the Database file system.
	SnapshotId pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The Zone ID of the Database file system.
	ZoneId pulumi.StringInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray

type InstanceArray []InstanceInput

func (InstanceArray) ElementType

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext

func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceArrayInput

type InstanceArrayInput interface {
	pulumi.Input

	ToInstanceArrayOutput() InstanceArrayOutput
	ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput
}

InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index

func (InstanceArrayOutput) ToInstanceArrayOutput

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext

func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceAttachment added in v3.18.0

type InstanceAttachment struct {
	pulumi.CustomResourceState

	// The ID of the ECS instance.
	EcsId pulumi.StringOutput `pulumi:"ecsId"`
	// The ID of the database file system.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	Status     pulumi.StringOutput `pulumi:"status"`
}

Provides a DBFS Instance Attachment resource.

For information about DBFS Instance Attachment and how to use it, see [What is Instance Attachment](https://help.aliyun.com/document_detail/149726.html).

> **NOTE:** Available in v1.156.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/databasefilesystem"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		zoneId := "cn-hangzhou-i"
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(zoneId),
		}, nil)
		if err != nil {
			return err
		}
		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
			Description: pulumi.String("tf test"),
			VpcId:       pulumi.String(defaultNetworks.Ids[0]),
		})
		if err != nil {
			return err
		}
		defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
			Owners:     pulumi.StringRef("system"),
			NameRegex:  pulumi.StringRef("^centos_8"),
			MostRecent: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		defaultInstance, err := ecs.NewInstance(ctx, "defaultInstance", &ecs.InstanceArgs{
			ImageId:            pulumi.String(defaultImages.Images[0].Id),
			InstanceName:       pulumi.Any(_var.Name),
			InstanceType:       pulumi.String("ecs.g7se.large"),
			AvailabilityZone:   pulumi.String(zoneId),
			VswitchId:          pulumi.String(defaultSwitches.Ids[0]),
			SystemDiskCategory: pulumi.String("cloud_essd"),
			SecurityGroups: pulumi.StringArray{
				defaultSecurityGroup.ID(),
			},
		})
		if err != nil {
			return err
		}
		_, err = databasefilesystem.NewInstance(ctx, "defaultDatabasefilesystem/instanceInstance", &databasefilesystem.InstanceArgs{
			Category:         pulumi.String("standard"),
			ZoneId:           defaultInstance.AvailabilityZone,
			PerformanceLevel: pulumi.String("PL1"),
			InstanceName:     pulumi.Any(_var.Name),
			Size:             pulumi.Int(100),
		})
		if err != nil {
			return err
		}
		_, err = databasefilesystem.NewInstanceAttachment(ctx, "example", &databasefilesystem.InstanceAttachmentArgs{
			EcsId:      defaultInstance.ID(),
			InstanceId: defaultDatabasefilesystem / instanceInstance.Id,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DBFS Instance Attachment can be imported using the id, e.g.

```sh

$ pulumi import alicloud:databasefilesystem/instanceAttachment:InstanceAttachment example <instance_id>:<ecs_id>

```

func GetInstanceAttachment added in v3.18.0

func GetInstanceAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceAttachmentState, opts ...pulumi.ResourceOption) (*InstanceAttachment, error)

GetInstanceAttachment gets an existing InstanceAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInstanceAttachment added in v3.18.0

func NewInstanceAttachment(ctx *pulumi.Context,
	name string, args *InstanceAttachmentArgs, opts ...pulumi.ResourceOption) (*InstanceAttachment, error)

NewInstanceAttachment registers a new resource with the given unique name, arguments, and options.

func (*InstanceAttachment) ElementType added in v3.18.0

func (*InstanceAttachment) ElementType() reflect.Type

func (*InstanceAttachment) ToInstanceAttachmentOutput added in v3.18.0

func (i *InstanceAttachment) ToInstanceAttachmentOutput() InstanceAttachmentOutput

func (*InstanceAttachment) ToInstanceAttachmentOutputWithContext added in v3.18.0

func (i *InstanceAttachment) ToInstanceAttachmentOutputWithContext(ctx context.Context) InstanceAttachmentOutput

type InstanceAttachmentArgs added in v3.18.0

type InstanceAttachmentArgs struct {
	// The ID of the ECS instance.
	EcsId pulumi.StringInput
	// The ID of the database file system.
	InstanceId pulumi.StringInput
}

The set of arguments for constructing a InstanceAttachment resource.

func (InstanceAttachmentArgs) ElementType added in v3.18.0

func (InstanceAttachmentArgs) ElementType() reflect.Type

type InstanceAttachmentArray added in v3.18.0

type InstanceAttachmentArray []InstanceAttachmentInput

func (InstanceAttachmentArray) ElementType added in v3.18.0

func (InstanceAttachmentArray) ElementType() reflect.Type

func (InstanceAttachmentArray) ToInstanceAttachmentArrayOutput added in v3.18.0

func (i InstanceAttachmentArray) ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput

func (InstanceAttachmentArray) ToInstanceAttachmentArrayOutputWithContext added in v3.18.0

func (i InstanceAttachmentArray) ToInstanceAttachmentArrayOutputWithContext(ctx context.Context) InstanceAttachmentArrayOutput

type InstanceAttachmentArrayInput added in v3.18.0

type InstanceAttachmentArrayInput interface {
	pulumi.Input

	ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput
	ToInstanceAttachmentArrayOutputWithContext(context.Context) InstanceAttachmentArrayOutput
}

InstanceAttachmentArrayInput is an input type that accepts InstanceAttachmentArray and InstanceAttachmentArrayOutput values. You can construct a concrete instance of `InstanceAttachmentArrayInput` via:

InstanceAttachmentArray{ InstanceAttachmentArgs{...} }

type InstanceAttachmentArrayOutput added in v3.18.0

type InstanceAttachmentArrayOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentArrayOutput) ElementType added in v3.18.0

func (InstanceAttachmentArrayOutput) Index added in v3.18.0

func (InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutput added in v3.18.0

func (o InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput

func (InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutputWithContext added in v3.18.0

func (o InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutputWithContext(ctx context.Context) InstanceAttachmentArrayOutput

type InstanceAttachmentInput added in v3.18.0

type InstanceAttachmentInput interface {
	pulumi.Input

	ToInstanceAttachmentOutput() InstanceAttachmentOutput
	ToInstanceAttachmentOutputWithContext(ctx context.Context) InstanceAttachmentOutput
}

type InstanceAttachmentMap added in v3.18.0

type InstanceAttachmentMap map[string]InstanceAttachmentInput

func (InstanceAttachmentMap) ElementType added in v3.18.0

func (InstanceAttachmentMap) ElementType() reflect.Type

func (InstanceAttachmentMap) ToInstanceAttachmentMapOutput added in v3.18.0

func (i InstanceAttachmentMap) ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput

func (InstanceAttachmentMap) ToInstanceAttachmentMapOutputWithContext added in v3.18.0

func (i InstanceAttachmentMap) ToInstanceAttachmentMapOutputWithContext(ctx context.Context) InstanceAttachmentMapOutput

type InstanceAttachmentMapInput added in v3.18.0

type InstanceAttachmentMapInput interface {
	pulumi.Input

	ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput
	ToInstanceAttachmentMapOutputWithContext(context.Context) InstanceAttachmentMapOutput
}

InstanceAttachmentMapInput is an input type that accepts InstanceAttachmentMap and InstanceAttachmentMapOutput values. You can construct a concrete instance of `InstanceAttachmentMapInput` via:

InstanceAttachmentMap{ "key": InstanceAttachmentArgs{...} }

type InstanceAttachmentMapOutput added in v3.18.0

type InstanceAttachmentMapOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentMapOutput) ElementType added in v3.18.0

func (InstanceAttachmentMapOutput) MapIndex added in v3.18.0

func (InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutput added in v3.18.0

func (o InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput

func (InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutputWithContext added in v3.18.0

func (o InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutputWithContext(ctx context.Context) InstanceAttachmentMapOutput

type InstanceAttachmentOutput added in v3.18.0

type InstanceAttachmentOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentOutput) EcsId added in v3.27.0

The ID of the ECS instance.

func (InstanceAttachmentOutput) ElementType added in v3.18.0

func (InstanceAttachmentOutput) ElementType() reflect.Type

func (InstanceAttachmentOutput) InstanceId added in v3.27.0

The ID of the database file system.

func (InstanceAttachmentOutput) Status added in v3.27.0

func (InstanceAttachmentOutput) ToInstanceAttachmentOutput added in v3.18.0

func (o InstanceAttachmentOutput) ToInstanceAttachmentOutput() InstanceAttachmentOutput

func (InstanceAttachmentOutput) ToInstanceAttachmentOutputWithContext added in v3.18.0

func (o InstanceAttachmentOutput) ToInstanceAttachmentOutputWithContext(ctx context.Context) InstanceAttachmentOutput

type InstanceAttachmentState added in v3.18.0

type InstanceAttachmentState struct {
	// The ID of the ECS instance.
	EcsId pulumi.StringPtrInput
	// The ID of the database file system.
	InstanceId pulumi.StringPtrInput
	Status     pulumi.StringPtrInput
}

func (InstanceAttachmentState) ElementType added in v3.18.0

func (InstanceAttachmentState) ElementType() reflect.Type

type InstanceEcsList

type InstanceEcsList struct {
	// The ID of the ECS instance.
	EcsId *string `pulumi:"ecsId"`
}

type InstanceEcsListArgs

type InstanceEcsListArgs struct {
	// The ID of the ECS instance.
	EcsId pulumi.StringPtrInput `pulumi:"ecsId"`
}

func (InstanceEcsListArgs) ElementType

func (InstanceEcsListArgs) ElementType() reflect.Type

func (InstanceEcsListArgs) ToInstanceEcsListOutput

func (i InstanceEcsListArgs) ToInstanceEcsListOutput() InstanceEcsListOutput

func (InstanceEcsListArgs) ToInstanceEcsListOutputWithContext

func (i InstanceEcsListArgs) ToInstanceEcsListOutputWithContext(ctx context.Context) InstanceEcsListOutput

type InstanceEcsListArray

type InstanceEcsListArray []InstanceEcsListInput

func (InstanceEcsListArray) ElementType

func (InstanceEcsListArray) ElementType() reflect.Type

func (InstanceEcsListArray) ToInstanceEcsListArrayOutput

func (i InstanceEcsListArray) ToInstanceEcsListArrayOutput() InstanceEcsListArrayOutput

func (InstanceEcsListArray) ToInstanceEcsListArrayOutputWithContext

func (i InstanceEcsListArray) ToInstanceEcsListArrayOutputWithContext(ctx context.Context) InstanceEcsListArrayOutput

type InstanceEcsListArrayInput

type InstanceEcsListArrayInput interface {
	pulumi.Input

	ToInstanceEcsListArrayOutput() InstanceEcsListArrayOutput
	ToInstanceEcsListArrayOutputWithContext(context.Context) InstanceEcsListArrayOutput
}

InstanceEcsListArrayInput is an input type that accepts InstanceEcsListArray and InstanceEcsListArrayOutput values. You can construct a concrete instance of `InstanceEcsListArrayInput` via:

InstanceEcsListArray{ InstanceEcsListArgs{...} }

type InstanceEcsListArrayOutput

type InstanceEcsListArrayOutput struct{ *pulumi.OutputState }

func (InstanceEcsListArrayOutput) ElementType

func (InstanceEcsListArrayOutput) ElementType() reflect.Type

func (InstanceEcsListArrayOutput) Index

func (InstanceEcsListArrayOutput) ToInstanceEcsListArrayOutput

func (o InstanceEcsListArrayOutput) ToInstanceEcsListArrayOutput() InstanceEcsListArrayOutput

func (InstanceEcsListArrayOutput) ToInstanceEcsListArrayOutputWithContext

func (o InstanceEcsListArrayOutput) ToInstanceEcsListArrayOutputWithContext(ctx context.Context) InstanceEcsListArrayOutput

type InstanceEcsListInput

type InstanceEcsListInput interface {
	pulumi.Input

	ToInstanceEcsListOutput() InstanceEcsListOutput
	ToInstanceEcsListOutputWithContext(context.Context) InstanceEcsListOutput
}

InstanceEcsListInput is an input type that accepts InstanceEcsListArgs and InstanceEcsListOutput values. You can construct a concrete instance of `InstanceEcsListInput` via:

InstanceEcsListArgs{...}

type InstanceEcsListOutput

type InstanceEcsListOutput struct{ *pulumi.OutputState }

func (InstanceEcsListOutput) EcsId

The ID of the ECS instance.

func (InstanceEcsListOutput) ElementType

func (InstanceEcsListOutput) ElementType() reflect.Type

func (InstanceEcsListOutput) ToInstanceEcsListOutput

func (o InstanceEcsListOutput) ToInstanceEcsListOutput() InstanceEcsListOutput

func (InstanceEcsListOutput) ToInstanceEcsListOutputWithContext

func (o InstanceEcsListOutput) ToInstanceEcsListOutputWithContext(ctx context.Context) InstanceEcsListOutput

type InstanceInput

type InstanceInput interface {
	pulumi.Input

	ToInstanceOutput() InstanceOutput
	ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
}

type InstanceMap

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext

func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceMapInput

type InstanceMapInput interface {
	pulumi.Input

	ToInstanceMapOutput() InstanceMapOutput
	ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput
}

InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:

InstanceMap{ "key": InstanceArgs{...} }

type InstanceMapOutput

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex

func (InstanceMapOutput) ToInstanceMapOutput

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext

func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceOutput

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) Category added in v3.27.0

func (o InstanceOutput) Category() pulumi.StringOutput

The type of the Database file system. Valid values: `standard`.

func (InstanceOutput) DeleteSnapshot added in v3.27.0

func (o InstanceOutput) DeleteSnapshot() pulumi.BoolPtrOutput

Whether to delete the original snapshot after the DBFS is created using the snapshot. Valid values : `true` anf `false`.

func (InstanceOutput) EcsLists deprecated added in v3.27.0

The collection of ECS instances mounted to the Database file system. See the following `Block ecsList`. **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.

Deprecated: 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.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) EnableRaid added in v3.27.0

func (o InstanceOutput) EnableRaid() pulumi.BoolPtrOutput

Whether to create the Database file system in RAID way. Valid values : `true` anf `false`.

func (InstanceOutput) Encryption added in v3.27.0

func (o InstanceOutput) Encryption() pulumi.BoolPtrOutput

Whether to encrypt the database file system. Valid values: `true` and `false`.

func (InstanceOutput) InstanceName added in v3.27.0

func (o InstanceOutput) InstanceName() pulumi.StringOutput

The name of the Database file system.

func (InstanceOutput) KmsKeyId added in v3.27.0

func (o InstanceOutput) KmsKeyId() pulumi.StringPtrOutput

The KMS key ID of the Database file system used. This parameter is valid When `encryption` parameter is set to `true`.

func (InstanceOutput) PerformanceLevel added in v3.27.0

func (o InstanceOutput) PerformanceLevel() pulumi.StringOutput

The performance level of the Database file system. Valid values: `PL0`, `PL1`, `PL2`, `PL3`.

func (InstanceOutput) RaidStripeUnitNumber added in v3.27.0

func (o InstanceOutput) RaidStripeUnitNumber() pulumi.StringPtrOutput

The number of strip. This parameter is valid When `enableRaid` parameter is set to `true`.

func (InstanceOutput) Size added in v3.27.0

func (o InstanceOutput) Size() pulumi.IntOutput

The size Of the Database file system. Unit: GiB.

func (InstanceOutput) SnapshotId added in v3.27.0

func (o InstanceOutput) SnapshotId() pulumi.StringPtrOutput

The snapshot id of the Database file system.

func (InstanceOutput) Status added in v3.27.0

func (o InstanceOutput) Status() pulumi.StringOutput

func (InstanceOutput) Tags added in v3.27.0

func (o InstanceOutput) Tags() pulumi.MapOutput

A mapping of tags to assign to the resource.

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

func (InstanceOutput) ZoneId added in v3.27.0

func (o InstanceOutput) ZoneId() pulumi.StringOutput

The Zone ID of the Database file system.

type InstanceState

type InstanceState struct {
	// The type of the Database file system. Valid values: `standard`.
	Category pulumi.StringPtrInput
	// Whether to delete the original snapshot after the DBFS is created using the snapshot. Valid values : `true` anf `false`.
	DeleteSnapshot pulumi.BoolPtrInput
	// The collection of ECS instances mounted to the Database file system. See the following `Block ecsList`. **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.
	//
	// Deprecated: 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.
	EcsLists InstanceEcsListArrayInput
	// Whether to create the Database file system in RAID way. Valid values : `true` anf `false`.
	EnableRaid pulumi.BoolPtrInput
	// Whether to encrypt the database file system. Valid values: `true` and `false`.
	Encryption pulumi.BoolPtrInput
	// The name of the Database file system.
	InstanceName pulumi.StringPtrInput
	// The KMS key ID of the Database file system used. This parameter is valid When `encryption` parameter is set to `true`.
	KmsKeyId pulumi.StringPtrInput
	// The performance level of the Database file system. Valid values: `PL0`, `PL1`, `PL2`, `PL3`.
	PerformanceLevel pulumi.StringPtrInput
	// The number of strip. This parameter is valid When `enableRaid` parameter is set to `true`.
	RaidStripeUnitNumber pulumi.StringPtrInput
	// The size Of the Database file system. Unit: GiB.
	Size pulumi.IntPtrInput
	// The snapshot id of the Database file system.
	SnapshotId pulumi.StringPtrInput
	Status     pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The Zone ID of the Database file system.
	ZoneId pulumi.StringPtrInput
}

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

type ServiceLinkedRole added in v3.18.0

type ServiceLinkedRole struct {
	pulumi.CustomResourceState

	// The product name for SLR. Dbfs can automatically create the following service-linked roles: `AliyunServiceRoleForDbfs`.
	ProductName pulumi.StringOutput `pulumi:"productName"`
	// The status of the service Associated role. Valid Values: `true`: Created. `false`: not created.
	Status pulumi.BoolOutput `pulumi:"status"`
}

Using this data source can create Dbfs service-linked roles(SLR). Dbfs may need to access another Alibaba Cloud service to implement a specific feature. In this case, Dbfs must assume a specific service-linked role, which is a Resource Access Management (RAM) role, to obtain permissions to access another Alibaba Cloud service.

For information about Dbfs service-linked roles(SLR) and how to use it, see [What is service-linked roles](https://www.alibabacloud.com/help/doc-detail/181425.htm).

> **NOTE:** Available in v1.157.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/databasefilesystem"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databasefilesystem.NewServiceLinkedRole(ctx, "serviceLinkedRole", &databasefilesystem.ServiceLinkedRoleArgs{
			ProductName: pulumi.String("AliyunServiceRoleForDbfs"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Dbfs service-linked roles(SLR) can be imported using the id, e.g.

```sh

$ pulumi import alicloud:databasefilesystem/serviceLinkedRole:ServiceLinkedRole example <product_name>

```

func GetServiceLinkedRole added in v3.18.0

func GetServiceLinkedRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServiceLinkedRoleState, opts ...pulumi.ResourceOption) (*ServiceLinkedRole, error)

GetServiceLinkedRole gets an existing ServiceLinkedRole resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewServiceLinkedRole added in v3.18.0

func NewServiceLinkedRole(ctx *pulumi.Context,
	name string, args *ServiceLinkedRoleArgs, opts ...pulumi.ResourceOption) (*ServiceLinkedRole, error)

NewServiceLinkedRole registers a new resource with the given unique name, arguments, and options.

func (*ServiceLinkedRole) ElementType added in v3.18.0

func (*ServiceLinkedRole) ElementType() reflect.Type

func (*ServiceLinkedRole) ToServiceLinkedRoleOutput added in v3.18.0

func (i *ServiceLinkedRole) ToServiceLinkedRoleOutput() ServiceLinkedRoleOutput

func (*ServiceLinkedRole) ToServiceLinkedRoleOutputWithContext added in v3.18.0

func (i *ServiceLinkedRole) ToServiceLinkedRoleOutputWithContext(ctx context.Context) ServiceLinkedRoleOutput

type ServiceLinkedRoleArgs added in v3.18.0

type ServiceLinkedRoleArgs struct {
	// The product name for SLR. Dbfs can automatically create the following service-linked roles: `AliyunServiceRoleForDbfs`.
	ProductName pulumi.StringInput
}

The set of arguments for constructing a ServiceLinkedRole resource.

func (ServiceLinkedRoleArgs) ElementType added in v3.18.0

func (ServiceLinkedRoleArgs) ElementType() reflect.Type

type ServiceLinkedRoleArray added in v3.18.0

type ServiceLinkedRoleArray []ServiceLinkedRoleInput

func (ServiceLinkedRoleArray) ElementType added in v3.18.0

func (ServiceLinkedRoleArray) ElementType() reflect.Type

func (ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutput added in v3.18.0

func (i ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutput() ServiceLinkedRoleArrayOutput

func (ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutputWithContext added in v3.18.0

func (i ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutputWithContext(ctx context.Context) ServiceLinkedRoleArrayOutput

type ServiceLinkedRoleArrayInput added in v3.18.0

type ServiceLinkedRoleArrayInput interface {
	pulumi.Input

	ToServiceLinkedRoleArrayOutput() ServiceLinkedRoleArrayOutput
	ToServiceLinkedRoleArrayOutputWithContext(context.Context) ServiceLinkedRoleArrayOutput
}

ServiceLinkedRoleArrayInput is an input type that accepts ServiceLinkedRoleArray and ServiceLinkedRoleArrayOutput values. You can construct a concrete instance of `ServiceLinkedRoleArrayInput` via:

ServiceLinkedRoleArray{ ServiceLinkedRoleArgs{...} }

type ServiceLinkedRoleArrayOutput added in v3.18.0

type ServiceLinkedRoleArrayOutput struct{ *pulumi.OutputState }

func (ServiceLinkedRoleArrayOutput) ElementType added in v3.18.0

func (ServiceLinkedRoleArrayOutput) Index added in v3.18.0

func (ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutput added in v3.18.0

func (o ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutput() ServiceLinkedRoleArrayOutput

func (ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutputWithContext added in v3.18.0

func (o ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutputWithContext(ctx context.Context) ServiceLinkedRoleArrayOutput

type ServiceLinkedRoleInput added in v3.18.0

type ServiceLinkedRoleInput interface {
	pulumi.Input

	ToServiceLinkedRoleOutput() ServiceLinkedRoleOutput
	ToServiceLinkedRoleOutputWithContext(ctx context.Context) ServiceLinkedRoleOutput
}

type ServiceLinkedRoleMap added in v3.18.0

type ServiceLinkedRoleMap map[string]ServiceLinkedRoleInput

func (ServiceLinkedRoleMap) ElementType added in v3.18.0

func (ServiceLinkedRoleMap) ElementType() reflect.Type

func (ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutput added in v3.18.0

func (i ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutput() ServiceLinkedRoleMapOutput

func (ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutputWithContext added in v3.18.0

func (i ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutputWithContext(ctx context.Context) ServiceLinkedRoleMapOutput

type ServiceLinkedRoleMapInput added in v3.18.0

type ServiceLinkedRoleMapInput interface {
	pulumi.Input

	ToServiceLinkedRoleMapOutput() ServiceLinkedRoleMapOutput
	ToServiceLinkedRoleMapOutputWithContext(context.Context) ServiceLinkedRoleMapOutput
}

ServiceLinkedRoleMapInput is an input type that accepts ServiceLinkedRoleMap and ServiceLinkedRoleMapOutput values. You can construct a concrete instance of `ServiceLinkedRoleMapInput` via:

ServiceLinkedRoleMap{ "key": ServiceLinkedRoleArgs{...} }

type ServiceLinkedRoleMapOutput added in v3.18.0

type ServiceLinkedRoleMapOutput struct{ *pulumi.OutputState }

func (ServiceLinkedRoleMapOutput) ElementType added in v3.18.0

func (ServiceLinkedRoleMapOutput) ElementType() reflect.Type

func (ServiceLinkedRoleMapOutput) MapIndex added in v3.18.0

func (ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutput added in v3.18.0

func (o ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutput() ServiceLinkedRoleMapOutput

func (ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutputWithContext added in v3.18.0

func (o ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutputWithContext(ctx context.Context) ServiceLinkedRoleMapOutput

type ServiceLinkedRoleOutput added in v3.18.0

type ServiceLinkedRoleOutput struct{ *pulumi.OutputState }

func (ServiceLinkedRoleOutput) ElementType added in v3.18.0

func (ServiceLinkedRoleOutput) ElementType() reflect.Type

func (ServiceLinkedRoleOutput) ProductName added in v3.27.0

The product name for SLR. Dbfs can automatically create the following service-linked roles: `AliyunServiceRoleForDbfs`.

func (ServiceLinkedRoleOutput) Status added in v3.27.0

The status of the service Associated role. Valid Values: `true`: Created. `false`: not created.

func (ServiceLinkedRoleOutput) ToServiceLinkedRoleOutput added in v3.18.0

func (o ServiceLinkedRoleOutput) ToServiceLinkedRoleOutput() ServiceLinkedRoleOutput

func (ServiceLinkedRoleOutput) ToServiceLinkedRoleOutputWithContext added in v3.18.0

func (o ServiceLinkedRoleOutput) ToServiceLinkedRoleOutputWithContext(ctx context.Context) ServiceLinkedRoleOutput

type ServiceLinkedRoleState added in v3.18.0

type ServiceLinkedRoleState struct {
	// The product name for SLR. Dbfs can automatically create the following service-linked roles: `AliyunServiceRoleForDbfs`.
	ProductName pulumi.StringPtrInput
	// The status of the service Associated role. Valid Values: `true`: Created. `false`: not created.
	Status pulumi.BoolPtrInput
}

func (ServiceLinkedRoleState) ElementType added in v3.18.0

func (ServiceLinkedRoleState) ElementType() reflect.Type

type Snapshot added in v3.18.0

type Snapshot struct {
	pulumi.CustomResourceState

	// Description of the snapshot. The description must be `2` to `256` characters in length. It must start with a letter, and cannot start with `http://` or `https://`.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Whether to force deletion of snapshots.
	Force pulumi.BoolPtrOutput `pulumi:"force"`
	// The ID of the database file system.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values: `1` to `65536`.
	RetentionDays pulumi.IntPtrOutput `pulumi:"retentionDays"`
	// The display name of the snapshot. The length is `2` to `128` characters. It must start with a large or small letter or Chinese, and cannot start with `http://` and `https://`. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start with `auto`.
	SnapshotName pulumi.StringPtrOutput `pulumi:"snapshotName"`
	// The status of the Snapshot.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a DBFS Snapshot resource.

For information about DBFS Snapshot and how to use it, see [What is Snapshot](https://help.aliyun.com/document_detail/149726.html).

> **NOTE:** Available in v1.156.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/databasefilesystem"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		zoneId := "cn-hangzhou-i"
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(zoneId),
		}, nil)
		if err != nil {
			return err
		}
		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
			Description: pulumi.String("tf test"),
			VpcId:       pulumi.String(defaultNetworks.Ids[0]),
		})
		if err != nil {
			return err
		}
		defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
			Owners:     pulumi.StringRef("system"),
			NameRegex:  pulumi.StringRef("^centos_8"),
			MostRecent: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		defaultInstance, err := ecs.NewInstance(ctx, "defaultInstance", &ecs.InstanceArgs{
			ImageId:            pulumi.String(defaultImages.Images[0].Id),
			InstanceName:       pulumi.Any(_var.Name),
			InstanceType:       pulumi.String("ecs.g7se.large"),
			AvailabilityZone:   pulumi.String(zoneId),
			VswitchId:          pulumi.String(defaultSwitches.Ids[0]),
			SystemDiskCategory: pulumi.String("cloud_essd"),
			SecurityGroups: pulumi.StringArray{
				defaultSecurityGroup.ID(),
			},
		})
		if err != nil {
			return err
		}
		_, err = databasefilesystem.NewInstance(ctx, "defaultDatabasefilesystem/instanceInstance", &databasefilesystem.InstanceArgs{
			Category:         pulumi.String("standard"),
			ZoneId:           defaultInstance.AvailabilityZone,
			PerformanceLevel: pulumi.String("PL1"),
			InstanceName:     pulumi.Any(_var.Name),
			Size:             pulumi.Int(100),
		})
		if err != nil {
			return err
		}
		defaultInstanceAttachment, err := databasefilesystem.NewInstanceAttachment(ctx, "defaultInstanceAttachment", &databasefilesystem.InstanceAttachmentArgs{
			EcsId:      defaultInstance.ID(),
			InstanceId: defaultDatabasefilesystem / instanceInstance.Id,
		})
		if err != nil {
			return err
		}
		_, err = databasefilesystem.NewSnapshot(ctx, "example", &databasefilesystem.SnapshotArgs{
			InstanceId:    pulumi.Any(data.Alicloud_dbfs_instances.Default.Ids[0]),
			SnapshotName:  pulumi.String("example_value"),
			Description:   pulumi.String("example_value"),
			RetentionDays: pulumi.Int(30),
		}, pulumi.DependsOn([]pulumi.Resource{
			defaultInstanceAttachment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DBFS Snapshot can be imported using the id, e.g.

```sh

$ pulumi import alicloud:databasefilesystem/snapshot:Snapshot example <id>

```

func GetSnapshot added in v3.18.0

func GetSnapshot(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SnapshotState, opts ...pulumi.ResourceOption) (*Snapshot, error)

GetSnapshot gets an existing Snapshot resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSnapshot added in v3.18.0

func NewSnapshot(ctx *pulumi.Context,
	name string, args *SnapshotArgs, opts ...pulumi.ResourceOption) (*Snapshot, error)

NewSnapshot registers a new resource with the given unique name, arguments, and options.

func (*Snapshot) ElementType added in v3.18.0

func (*Snapshot) ElementType() reflect.Type

func (*Snapshot) ToSnapshotOutput added in v3.18.0

func (i *Snapshot) ToSnapshotOutput() SnapshotOutput

func (*Snapshot) ToSnapshotOutputWithContext added in v3.18.0

func (i *Snapshot) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput

type SnapshotArgs added in v3.18.0

type SnapshotArgs struct {
	// Description of the snapshot. The description must be `2` to `256` characters in length. It must start with a letter, and cannot start with `http://` or `https://`.
	Description pulumi.StringPtrInput
	// Whether to force deletion of snapshots.
	Force pulumi.BoolPtrInput
	// The ID of the database file system.
	InstanceId pulumi.StringInput
	// The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values: `1` to `65536`.
	RetentionDays pulumi.IntPtrInput
	// The display name of the snapshot. The length is `2` to `128` characters. It must start with a large or small letter or Chinese, and cannot start with `http://` and `https://`. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start with `auto`.
	SnapshotName pulumi.StringPtrInput
}

The set of arguments for constructing a Snapshot resource.

func (SnapshotArgs) ElementType added in v3.18.0

func (SnapshotArgs) ElementType() reflect.Type

type SnapshotArray added in v3.18.0

type SnapshotArray []SnapshotInput

func (SnapshotArray) ElementType added in v3.18.0

func (SnapshotArray) ElementType() reflect.Type

func (SnapshotArray) ToSnapshotArrayOutput added in v3.18.0

func (i SnapshotArray) ToSnapshotArrayOutput() SnapshotArrayOutput

func (SnapshotArray) ToSnapshotArrayOutputWithContext added in v3.18.0

func (i SnapshotArray) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput

type SnapshotArrayInput added in v3.18.0

type SnapshotArrayInput interface {
	pulumi.Input

	ToSnapshotArrayOutput() SnapshotArrayOutput
	ToSnapshotArrayOutputWithContext(context.Context) SnapshotArrayOutput
}

SnapshotArrayInput is an input type that accepts SnapshotArray and SnapshotArrayOutput values. You can construct a concrete instance of `SnapshotArrayInput` via:

SnapshotArray{ SnapshotArgs{...} }

type SnapshotArrayOutput added in v3.18.0

type SnapshotArrayOutput struct{ *pulumi.OutputState }

func (SnapshotArrayOutput) ElementType added in v3.18.0

func (SnapshotArrayOutput) ElementType() reflect.Type

func (SnapshotArrayOutput) Index added in v3.18.0

func (SnapshotArrayOutput) ToSnapshotArrayOutput added in v3.18.0

func (o SnapshotArrayOutput) ToSnapshotArrayOutput() SnapshotArrayOutput

func (SnapshotArrayOutput) ToSnapshotArrayOutputWithContext added in v3.18.0

func (o SnapshotArrayOutput) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput

type SnapshotInput added in v3.18.0

type SnapshotInput interface {
	pulumi.Input

	ToSnapshotOutput() SnapshotOutput
	ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput
}

type SnapshotMap added in v3.18.0

type SnapshotMap map[string]SnapshotInput

func (SnapshotMap) ElementType added in v3.18.0

func (SnapshotMap) ElementType() reflect.Type

func (SnapshotMap) ToSnapshotMapOutput added in v3.18.0

func (i SnapshotMap) ToSnapshotMapOutput() SnapshotMapOutput

func (SnapshotMap) ToSnapshotMapOutputWithContext added in v3.18.0

func (i SnapshotMap) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput

type SnapshotMapInput added in v3.18.0

type SnapshotMapInput interface {
	pulumi.Input

	ToSnapshotMapOutput() SnapshotMapOutput
	ToSnapshotMapOutputWithContext(context.Context) SnapshotMapOutput
}

SnapshotMapInput is an input type that accepts SnapshotMap and SnapshotMapOutput values. You can construct a concrete instance of `SnapshotMapInput` via:

SnapshotMap{ "key": SnapshotArgs{...} }

type SnapshotMapOutput added in v3.18.0

type SnapshotMapOutput struct{ *pulumi.OutputState }

func (SnapshotMapOutput) ElementType added in v3.18.0

func (SnapshotMapOutput) ElementType() reflect.Type

func (SnapshotMapOutput) MapIndex added in v3.18.0

func (SnapshotMapOutput) ToSnapshotMapOutput added in v3.18.0

func (o SnapshotMapOutput) ToSnapshotMapOutput() SnapshotMapOutput

func (SnapshotMapOutput) ToSnapshotMapOutputWithContext added in v3.18.0

func (o SnapshotMapOutput) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput

type SnapshotOutput added in v3.18.0

type SnapshotOutput struct{ *pulumi.OutputState }

func (SnapshotOutput) Description added in v3.27.0

func (o SnapshotOutput) Description() pulumi.StringPtrOutput

Description of the snapshot. The description must be `2` to `256` characters in length. It must start with a letter, and cannot start with `http://` or `https://`.

func (SnapshotOutput) ElementType added in v3.18.0

func (SnapshotOutput) ElementType() reflect.Type

func (SnapshotOutput) Force added in v3.27.0

Whether to force deletion of snapshots.

func (SnapshotOutput) InstanceId added in v3.27.0

func (o SnapshotOutput) InstanceId() pulumi.StringOutput

The ID of the database file system.

func (SnapshotOutput) RetentionDays added in v3.27.0

func (o SnapshotOutput) RetentionDays() pulumi.IntPtrOutput

The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values: `1` to `65536`.

func (SnapshotOutput) SnapshotName added in v3.27.0

func (o SnapshotOutput) SnapshotName() pulumi.StringPtrOutput

The display name of the snapshot. The length is `2` to `128` characters. It must start with a large or small letter or Chinese, and cannot start with `http://` and `https://`. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start with `auto`.

func (SnapshotOutput) Status added in v3.27.0

func (o SnapshotOutput) Status() pulumi.StringOutput

The status of the Snapshot.

func (SnapshotOutput) ToSnapshotOutput added in v3.18.0

func (o SnapshotOutput) ToSnapshotOutput() SnapshotOutput

func (SnapshotOutput) ToSnapshotOutputWithContext added in v3.18.0

func (o SnapshotOutput) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput

type SnapshotState added in v3.18.0

type SnapshotState struct {
	// Description of the snapshot. The description must be `2` to `256` characters in length. It must start with a letter, and cannot start with `http://` or `https://`.
	Description pulumi.StringPtrInput
	// Whether to force deletion of snapshots.
	Force pulumi.BoolPtrInput
	// The ID of the database file system.
	InstanceId pulumi.StringPtrInput
	// The retention time of the snapshot. Unit: days. Snapshots are automatically released after the retention time expires. Valid values: `1` to `65536`.
	RetentionDays pulumi.IntPtrInput
	// The display name of the snapshot. The length is `2` to `128` characters. It must start with a large or small letter or Chinese, and cannot start with `http://` and `https://`. It can contain numbers, colons (:), underscores (_), or hyphens (-). To prevent name conflicts with automatic snapshots, you cannot start with `auto`.
	SnapshotName pulumi.StringPtrInput
	// The status of the Snapshot.
	Status pulumi.StringPtrInput
}

func (SnapshotState) ElementType added in v3.18.0

func (SnapshotState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL