-
Notifications
You must be signed in to change notification settings - Fork 5
/
getEnterpriseInstances.go
62 lines (57 loc) · 2.83 KB
/
getEnterpriseInstances.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package dms
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// This data source provides a list of DMS Enterprise Instances in an Alibaba Cloud account according to the specified filters.
//
// > **NOTE:** Available in 1.88.0+
func GetEnterpriseInstances(ctx *pulumi.Context, args *GetEnterpriseInstancesArgs, opts ...pulumi.InvokeOption) (*GetEnterpriseInstancesResult, error) {
var rv GetEnterpriseInstancesResult
err := ctx.Invoke("alicloud:dms/getEnterpriseInstances:getEnterpriseInstances", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getEnterpriseInstances.
type GetEnterpriseInstancesArgs struct {
// The type of the environment to which the database instance belongs.
EnvType *string `pulumi:"envType"`
// A regex string to filter the results by the DMS Enterprise Instance instance_alias.
InstanceAliasRegex *string `pulumi:"instanceAliasRegex"`
// The source of the database instance.
InstanceSource *string `pulumi:"instanceSource"`
// The ID of the database instance.
InstanceType *string `pulumi:"instanceType"`
// The network type of the database instance. Valid values: CLASSIC and VPC. For more information about the valid values, see the description of the RegisterInstance operation.
NetType *string `pulumi:"netType"`
OutputFile *string `pulumi:"outputFile"`
// The keyword used to query database instances.
SearchKey *string `pulumi:"searchKey"`
// Filter the results by status of the DMS Enterprise Instances. Valid values: `NORMAL`, `UNAVAILABLE`, `UNKNOWN`, `DELETED`, `DISABLE`.
Status *string `pulumi:"status"`
// The ID of the tenant in Data Management (DMS) Enterprise.
Tid *int `pulumi:"tid"`
}
// A collection of values returned by getEnterpriseInstances.
type GetEnterpriseInstancesResult struct {
// The type of the environment to which the database instance belongs..
EnvType *string `pulumi:"envType"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
InstanceAliasRegex *string `pulumi:"instanceAliasRegex"`
// The ID of the database instance.
InstanceSource *string `pulumi:"instanceSource"`
// The ID of the database instance.
InstanceType *string `pulumi:"instanceType"`
// A list of KMS keys. Each element contains the following attributes:
Instances []GetEnterpriseInstancesInstance `pulumi:"instances"`
NetType *string `pulumi:"netType"`
OutputFile *string `pulumi:"outputFile"`
SearchKey *string `pulumi:"searchKey"`
// The status of the database instance.
Status *string `pulumi:"status"`
Tid *int `pulumi:"tid"`
}