dms

package
v3.54.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 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 EnterpriseAuthorityTemplate added in v3.45.0

type EnterpriseAuthorityTemplate struct {
	pulumi.CustomResourceState

	// Permission template ID.
	AuthorityTemplateId pulumi.IntOutput `pulumi:"authorityTemplateId"`
	// Permission Template name.
	AuthorityTemplateName pulumi.StringOutput `pulumi:"authorityTemplateName"`
	// The creation time of the resource.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Permission template description information.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Tenant ID.
	Tid pulumi.IntOutput `pulumi:"tid"`
}

Provides a DMS Enterprise Authority Template resource.

For information about DMS Enterprise Authority Template and how to use it, see [What is Authority Template](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-createauthoritytemplate).

> **NOTE:** Available since v1.212.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dms"
"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
		}
		_default, err := dms.GetUserTenants(ctx, &dms.GetUserTenantsArgs{
			Status: pulumi.StringRef("ACTIVE"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = dms.NewEnterpriseAuthorityTemplate(ctx, "default", &dms.EnterpriseAuthorityTemplateArgs{
			Tid:                   pulumi.String(_default.Ids[0]),
			AuthorityTemplateName: pulumi.String(name),
			Description:           pulumi.String(name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DMS Enterprise Authority Template can be imported using the id, e.g.

```sh $ pulumi import alicloud:dms/enterpriseAuthorityTemplate:EnterpriseAuthorityTemplate example <tid>:<authority_template_id> ```

func GetEnterpriseAuthorityTemplate added in v3.45.0

func GetEnterpriseAuthorityTemplate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EnterpriseAuthorityTemplateState, opts ...pulumi.ResourceOption) (*EnterpriseAuthorityTemplate, error)

GetEnterpriseAuthorityTemplate gets an existing EnterpriseAuthorityTemplate 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 NewEnterpriseAuthorityTemplate added in v3.45.0

func NewEnterpriseAuthorityTemplate(ctx *pulumi.Context,
	name string, args *EnterpriseAuthorityTemplateArgs, opts ...pulumi.ResourceOption) (*EnterpriseAuthorityTemplate, error)

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

func (*EnterpriseAuthorityTemplate) ElementType added in v3.45.0

func (*EnterpriseAuthorityTemplate) ElementType() reflect.Type

func (*EnterpriseAuthorityTemplate) ToEnterpriseAuthorityTemplateOutput added in v3.45.0

func (i *EnterpriseAuthorityTemplate) ToEnterpriseAuthorityTemplateOutput() EnterpriseAuthorityTemplateOutput

func (*EnterpriseAuthorityTemplate) ToEnterpriseAuthorityTemplateOutputWithContext added in v3.45.0

func (i *EnterpriseAuthorityTemplate) ToEnterpriseAuthorityTemplateOutputWithContext(ctx context.Context) EnterpriseAuthorityTemplateOutput

type EnterpriseAuthorityTemplateArgs added in v3.45.0

type EnterpriseAuthorityTemplateArgs struct {
	// Permission Template name.
	AuthorityTemplateName pulumi.StringInput
	// Permission template description information.
	Description pulumi.StringPtrInput
	// Tenant ID.
	Tid pulumi.IntInput
}

The set of arguments for constructing a EnterpriseAuthorityTemplate resource.

func (EnterpriseAuthorityTemplateArgs) ElementType added in v3.45.0

type EnterpriseAuthorityTemplateArray added in v3.45.0

type EnterpriseAuthorityTemplateArray []EnterpriseAuthorityTemplateInput

func (EnterpriseAuthorityTemplateArray) ElementType added in v3.45.0

func (EnterpriseAuthorityTemplateArray) ToEnterpriseAuthorityTemplateArrayOutput added in v3.45.0

func (i EnterpriseAuthorityTemplateArray) ToEnterpriseAuthorityTemplateArrayOutput() EnterpriseAuthorityTemplateArrayOutput

func (EnterpriseAuthorityTemplateArray) ToEnterpriseAuthorityTemplateArrayOutputWithContext added in v3.45.0

func (i EnterpriseAuthorityTemplateArray) ToEnterpriseAuthorityTemplateArrayOutputWithContext(ctx context.Context) EnterpriseAuthorityTemplateArrayOutput

type EnterpriseAuthorityTemplateArrayInput added in v3.45.0

type EnterpriseAuthorityTemplateArrayInput interface {
	pulumi.Input

	ToEnterpriseAuthorityTemplateArrayOutput() EnterpriseAuthorityTemplateArrayOutput
	ToEnterpriseAuthorityTemplateArrayOutputWithContext(context.Context) EnterpriseAuthorityTemplateArrayOutput
}

EnterpriseAuthorityTemplateArrayInput is an input type that accepts EnterpriseAuthorityTemplateArray and EnterpriseAuthorityTemplateArrayOutput values. You can construct a concrete instance of `EnterpriseAuthorityTemplateArrayInput` via:

EnterpriseAuthorityTemplateArray{ EnterpriseAuthorityTemplateArgs{...} }

type EnterpriseAuthorityTemplateArrayOutput added in v3.45.0

type EnterpriseAuthorityTemplateArrayOutput struct{ *pulumi.OutputState }

func (EnterpriseAuthorityTemplateArrayOutput) ElementType added in v3.45.0

func (EnterpriseAuthorityTemplateArrayOutput) Index added in v3.45.0

func (EnterpriseAuthorityTemplateArrayOutput) ToEnterpriseAuthorityTemplateArrayOutput added in v3.45.0

func (o EnterpriseAuthorityTemplateArrayOutput) ToEnterpriseAuthorityTemplateArrayOutput() EnterpriseAuthorityTemplateArrayOutput

func (EnterpriseAuthorityTemplateArrayOutput) ToEnterpriseAuthorityTemplateArrayOutputWithContext added in v3.45.0

func (o EnterpriseAuthorityTemplateArrayOutput) ToEnterpriseAuthorityTemplateArrayOutputWithContext(ctx context.Context) EnterpriseAuthorityTemplateArrayOutput

type EnterpriseAuthorityTemplateInput added in v3.45.0

type EnterpriseAuthorityTemplateInput interface {
	pulumi.Input

	ToEnterpriseAuthorityTemplateOutput() EnterpriseAuthorityTemplateOutput
	ToEnterpriseAuthorityTemplateOutputWithContext(ctx context.Context) EnterpriseAuthorityTemplateOutput
}

type EnterpriseAuthorityTemplateMap added in v3.45.0

type EnterpriseAuthorityTemplateMap map[string]EnterpriseAuthorityTemplateInput

func (EnterpriseAuthorityTemplateMap) ElementType added in v3.45.0

func (EnterpriseAuthorityTemplateMap) ToEnterpriseAuthorityTemplateMapOutput added in v3.45.0

func (i EnterpriseAuthorityTemplateMap) ToEnterpriseAuthorityTemplateMapOutput() EnterpriseAuthorityTemplateMapOutput

func (EnterpriseAuthorityTemplateMap) ToEnterpriseAuthorityTemplateMapOutputWithContext added in v3.45.0

func (i EnterpriseAuthorityTemplateMap) ToEnterpriseAuthorityTemplateMapOutputWithContext(ctx context.Context) EnterpriseAuthorityTemplateMapOutput

type EnterpriseAuthorityTemplateMapInput added in v3.45.0

type EnterpriseAuthorityTemplateMapInput interface {
	pulumi.Input

	ToEnterpriseAuthorityTemplateMapOutput() EnterpriseAuthorityTemplateMapOutput
	ToEnterpriseAuthorityTemplateMapOutputWithContext(context.Context) EnterpriseAuthorityTemplateMapOutput
}

EnterpriseAuthorityTemplateMapInput is an input type that accepts EnterpriseAuthorityTemplateMap and EnterpriseAuthorityTemplateMapOutput values. You can construct a concrete instance of `EnterpriseAuthorityTemplateMapInput` via:

EnterpriseAuthorityTemplateMap{ "key": EnterpriseAuthorityTemplateArgs{...} }

type EnterpriseAuthorityTemplateMapOutput added in v3.45.0

type EnterpriseAuthorityTemplateMapOutput struct{ *pulumi.OutputState }

func (EnterpriseAuthorityTemplateMapOutput) ElementType added in v3.45.0

func (EnterpriseAuthorityTemplateMapOutput) MapIndex added in v3.45.0

func (EnterpriseAuthorityTemplateMapOutput) ToEnterpriseAuthorityTemplateMapOutput added in v3.45.0

func (o EnterpriseAuthorityTemplateMapOutput) ToEnterpriseAuthorityTemplateMapOutput() EnterpriseAuthorityTemplateMapOutput

func (EnterpriseAuthorityTemplateMapOutput) ToEnterpriseAuthorityTemplateMapOutputWithContext added in v3.45.0

func (o EnterpriseAuthorityTemplateMapOutput) ToEnterpriseAuthorityTemplateMapOutputWithContext(ctx context.Context) EnterpriseAuthorityTemplateMapOutput

type EnterpriseAuthorityTemplateOutput added in v3.45.0

type EnterpriseAuthorityTemplateOutput struct{ *pulumi.OutputState }

func (EnterpriseAuthorityTemplateOutput) AuthorityTemplateId added in v3.45.0

func (o EnterpriseAuthorityTemplateOutput) AuthorityTemplateId() pulumi.IntOutput

Permission template ID.

func (EnterpriseAuthorityTemplateOutput) AuthorityTemplateName added in v3.45.0

func (o EnterpriseAuthorityTemplateOutput) AuthorityTemplateName() pulumi.StringOutput

Permission Template name.

func (EnterpriseAuthorityTemplateOutput) CreateTime added in v3.45.0

The creation time of the resource.

func (EnterpriseAuthorityTemplateOutput) Description added in v3.45.0

Permission template description information.

func (EnterpriseAuthorityTemplateOutput) ElementType added in v3.45.0

func (EnterpriseAuthorityTemplateOutput) Tid added in v3.45.0

Tenant ID.

func (EnterpriseAuthorityTemplateOutput) ToEnterpriseAuthorityTemplateOutput added in v3.45.0

func (o EnterpriseAuthorityTemplateOutput) ToEnterpriseAuthorityTemplateOutput() EnterpriseAuthorityTemplateOutput

func (EnterpriseAuthorityTemplateOutput) ToEnterpriseAuthorityTemplateOutputWithContext added in v3.45.0

func (o EnterpriseAuthorityTemplateOutput) ToEnterpriseAuthorityTemplateOutputWithContext(ctx context.Context) EnterpriseAuthorityTemplateOutput

type EnterpriseAuthorityTemplateState added in v3.45.0

type EnterpriseAuthorityTemplateState struct {
	// Permission template ID.
	AuthorityTemplateId pulumi.IntPtrInput
	// Permission Template name.
	AuthorityTemplateName pulumi.StringPtrInput
	// The creation time of the resource.
	CreateTime pulumi.StringPtrInput
	// Permission template description information.
	Description pulumi.StringPtrInput
	// Tenant ID.
	Tid pulumi.IntPtrInput
}

func (EnterpriseAuthorityTemplateState) ElementType added in v3.45.0

type EnterpriseInstance

type EnterpriseInstance struct {
	pulumi.CustomResourceState

	// Cross-database query datalink name.
	DataLinkName pulumi.StringOutput `pulumi:"dataLinkName"`
	// Database access password.
	DatabasePassword pulumi.StringOutput `pulumi:"databasePassword"`
	// Database access account.
	DatabaseUser pulumi.StringOutput `pulumi:"databaseUser"`
	// The dba id of the database instance.
	DbaId pulumi.StringOutput `pulumi:"dbaId"`
	// The instance dba nickname.
	DbaNickName pulumi.StringOutput `pulumi:"dbaNickName"`
	// The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.
	DbaUid pulumi.IntOutput `pulumi:"dbaUid"`
	// Whether to use online services, currently only supports MySQL and PolarDB. Valid values: `0` Not used, `1` Native online DDL priority, `2` DMS lock-free table structure change priority.
	DdlOnline pulumi.IntPtrOutput `pulumi:"ddlOnline"`
	// ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.
	EcsInstanceId pulumi.StringOutput `pulumi:"ecsInstanceId"`
	// The region where the instance is located. This value must be passed when the value of InstanceSource is RDS, ECS self-built library, and VPC dedicated line IDC.
	EcsRegion pulumi.StringPtrOutput `pulumi:"ecsRegion"`
	// Environment type. Valid values: `product` production environment, `dev` development environment, `pre` pre-release environment, `test` test environment, `sit` SIT environment, `uat` UAT environment, `pet` pressure test environment, `stag` STAG environment.
	EnvType pulumi.StringOutput `pulumi:"envType"`
	// Export timeout, unit: s (seconds).
	ExportTimeout pulumi.IntOutput `pulumi:"exportTimeout"`
	// Host address of the target database.
	Host pulumi.StringOutput `pulumi:"host"`
	// Field `instanceAlias` has been deprecated from version 1.100.0. Use `instanceName` instead.
	//
	// Deprecated: Field 'instance_alias' has been deprecated from version 1.100.0. Use 'instance_name' instead.
	InstanceAlias pulumi.StringOutput `pulumi:"instanceAlias"`
	// The instance id of the database instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// Instance name, to help users quickly distinguish positioning.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// The source of the database instance. Valid values: `PUBLIC_OWN`, `RDS`, `ECS_OWN`, `VPC_IDC`.
	InstanceSource pulumi.StringOutput `pulumi:"instanceSource"`
	// Database type. Valid values: `MySQL`, `SQLServer`, `PostgreSQL`, `Oracle,` `DRDS`, `OceanBase`, `Mongo`, `Redis`.
	InstanceType pulumi.StringOutput `pulumi:"instanceType"`
	// Network type. Valid values: `CLASSIC`, `VPC`.
	NetworkType pulumi.StringOutput `pulumi:"networkType"`
	// Access port of the target database.
	Port pulumi.IntOutput `pulumi:"port"`
	// Query timeout time, unit: s (seconds).
	QueryTimeout pulumi.IntOutput `pulumi:"queryTimeout"`
	// The security rule of the instance is passed into the name of the security rule in the enterprise.
	SafeRule pulumi.StringOutput `pulumi:"safeRule"`
	// The safe rule id of the database instance.
	SafeRuleId pulumi.StringOutput `pulumi:"safeRuleId"`
	// The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.
	Sid pulumi.StringPtrOutput `pulumi:"sid"`
	// Whether the instance ignores test connectivity. Valid values: `true`, `false`.
	SkipTest pulumi.BoolPtrOutput `pulumi:"skipTest"`
	// It has been deprecated from provider version 1.100.0 and 'status' instead.
	//
	// Deprecated: Field 'state' has been deprecated from version 1.100.0. Use 'status' instead.
	State pulumi.StringOutput `pulumi:"state"`
	// The instance status.
	Status pulumi.StringOutput `pulumi:"status"`
	// The tenant ID.
	Tid pulumi.IntPtrOutput `pulumi:"tid"`
	// Whether to enable cross-instance query. Valid values: `0` not open, `1` open.
	UseDsql pulumi.IntOutput `pulumi:"useDsql"`
	// VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.
	VpcId pulumi.StringPtrOutput `pulumi:"vpcId"`
}

Provides a DMS Enterprise Instance resource.

> **NOTE:** API users must first register in DMS.

> **NOTE:** Available since v1.81.0.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dms"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rds"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"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 := "tf-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		current, err := alicloud.GetAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_default, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
			Current: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetUserTenants, err := dms.GetUserTenants(ctx, &dms.GetUserTenantsArgs{
			Status: pulumi.StringRef("ACTIVE"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetZones, err := rds.GetZones(ctx, &rds.GetZonesArgs{
			Engine:                pulumi.StringRef("MySQL"),
			EngineVersion:         pulumi.StringRef("8.0"),
			InstanceChargeType:    pulumi.StringRef("PostPaid"),
			Category:              pulumi.StringRef("HighAvailability"),
			DbInstanceStorageType: pulumi.StringRef("cloud_essd"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetInstanceClasses, err := rds.GetInstanceClasses(ctx, &rds.GetInstanceClassesArgs{
			ZoneId:                pulumi.StringRef(defaultGetZones.Zones[0].Id),
			Engine:                pulumi.StringRef("MySQL"),
			EngineVersion:         pulumi.StringRef("8.0"),
			Category:              pulumi.StringRef("HighAvailability"),
			DbInstanceStorageType: pulumi.StringRef("cloud_essd"),
			InstanceChargeType:    pulumi.StringRef("PostPaid"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("10.4.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
			VswitchName: pulumi.String(name),
			CidrBlock:   pulumi.String("10.4.0.0/24"),
			VpcId:       defaultNetwork.ID(),
			ZoneId:      pulumi.String(defaultGetZones.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		_, err = ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
			Name:  pulumi.String(name),
			VpcId: defaultNetwork.ID(),
		})
		if err != nil {
			return err
		}
		defaultInstance, err := rds.NewInstance(ctx, "default", &rds.InstanceArgs{
			Engine:                pulumi.String("MySQL"),
			EngineVersion:         pulumi.String("8.0"),
			DbInstanceStorageType: pulumi.String("cloud_essd"),
			InstanceType:          pulumi.String(defaultGetInstanceClasses.InstanceClasses[0].InstanceClass),
			InstanceStorage:       pulumi.String(defaultGetInstanceClasses.InstanceClasses[0].StorageRange.Min),
			VswitchId:             defaultSwitch.ID(),
			InstanceName:          pulumi.String(name),
			SecurityIps: pulumi.StringArray{
				pulumi.String("100.104.5.0/24"),
				pulumi.String("192.168.0.6"),
			},
			Tags: pulumi.Map{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("example"),
			},
		})
		if err != nil {
			return err
		}
		defaultAccount, err := rds.NewAccount(ctx, "default", &rds.AccountArgs{
			DbInstanceId:    defaultInstance.ID(),
			AccountName:     pulumi.String("tfexamplename"),
			AccountPassword: pulumi.String("Example12345"),
			AccountType:     pulumi.String("Normal"),
		})
		if err != nil {
			return err
		}
		_, err = dms.NewEnterpriseInstance(ctx, "default", &dms.EnterpriseInstanceArgs{
			Tid:              pulumi.String(defaultGetUserTenants.Ids[0]),
			InstanceType:     pulumi.String("mysql"),
			InstanceSource:   pulumi.String("RDS"),
			NetworkType:      pulumi.String("VPC"),
			EnvType:          pulumi.String("dev"),
			Host:             defaultInstance.ConnectionString,
			Port:             pulumi.Int(3306),
			DatabaseUser:     defaultAccount.AccountName,
			DatabasePassword: defaultAccount.AccountPassword,
			InstanceName:     pulumi.String(name),
			DbaUid:           pulumi.String(current.Id),
			SafeRule:         pulumi.String("904496"),
			UseDsql:          pulumi.Int(1),
			QueryTimeout:     pulumi.Int(60),
			ExportTimeout:    pulumi.Int(600),
			EcsRegion:        pulumi.String(_default.Regions[0].Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DMS Enterprise can be imported using host and port, e.g.

```sh $ pulumi import alicloud:dms/enterpriseInstance:EnterpriseInstance example rm-uf648hgs7874xxxx.mysql.rds.aliyuncs.com:3306 ```

func GetEnterpriseInstance

func GetEnterpriseInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EnterpriseInstanceState, opts ...pulumi.ResourceOption) (*EnterpriseInstance, error)

GetEnterpriseInstance gets an existing EnterpriseInstance 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 NewEnterpriseInstance

func NewEnterpriseInstance(ctx *pulumi.Context,
	name string, args *EnterpriseInstanceArgs, opts ...pulumi.ResourceOption) (*EnterpriseInstance, error)

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

func (*EnterpriseInstance) ElementType

func (*EnterpriseInstance) ElementType() reflect.Type

func (*EnterpriseInstance) ToEnterpriseInstanceOutput

func (i *EnterpriseInstance) ToEnterpriseInstanceOutput() EnterpriseInstanceOutput

func (*EnterpriseInstance) ToEnterpriseInstanceOutputWithContext

func (i *EnterpriseInstance) ToEnterpriseInstanceOutputWithContext(ctx context.Context) EnterpriseInstanceOutput

type EnterpriseInstanceArgs

type EnterpriseInstanceArgs struct {
	// Cross-database query datalink name.
	DataLinkName pulumi.StringPtrInput
	// Database access password.
	DatabasePassword pulumi.StringInput
	// Database access account.
	DatabaseUser pulumi.StringInput
	// The dba id of the database instance.
	DbaId pulumi.StringPtrInput
	// The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.
	DbaUid pulumi.IntInput
	// Whether to use online services, currently only supports MySQL and PolarDB. Valid values: `0` Not used, `1` Native online DDL priority, `2` DMS lock-free table structure change priority.
	DdlOnline pulumi.IntPtrInput
	// ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.
	EcsInstanceId pulumi.StringPtrInput
	// The region where the instance is located. This value must be passed when the value of InstanceSource is RDS, ECS self-built library, and VPC dedicated line IDC.
	EcsRegion pulumi.StringPtrInput
	// Environment type. Valid values: `product` production environment, `dev` development environment, `pre` pre-release environment, `test` test environment, `sit` SIT environment, `uat` UAT environment, `pet` pressure test environment, `stag` STAG environment.
	EnvType pulumi.StringInput
	// Export timeout, unit: s (seconds).
	ExportTimeout pulumi.IntInput
	// Host address of the target database.
	Host pulumi.StringInput
	// Field `instanceAlias` has been deprecated from version 1.100.0. Use `instanceName` instead.
	//
	// Deprecated: Field 'instance_alias' has been deprecated from version 1.100.0. Use 'instance_name' instead.
	InstanceAlias pulumi.StringPtrInput
	// The instance id of the database instance.
	InstanceId pulumi.StringPtrInput
	// Instance name, to help users quickly distinguish positioning.
	InstanceName pulumi.StringPtrInput
	// The source of the database instance. Valid values: `PUBLIC_OWN`, `RDS`, `ECS_OWN`, `VPC_IDC`.
	InstanceSource pulumi.StringInput
	// Database type. Valid values: `MySQL`, `SQLServer`, `PostgreSQL`, `Oracle,` `DRDS`, `OceanBase`, `Mongo`, `Redis`.
	InstanceType pulumi.StringInput
	// Network type. Valid values: `CLASSIC`, `VPC`.
	NetworkType pulumi.StringInput
	// Access port of the target database.
	Port pulumi.IntInput
	// Query timeout time, unit: s (seconds).
	QueryTimeout pulumi.IntInput
	// The security rule of the instance is passed into the name of the security rule in the enterprise.
	SafeRule pulumi.StringInput
	// The safe rule id of the database instance.
	SafeRuleId pulumi.StringPtrInput
	// The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.
	Sid pulumi.StringPtrInput
	// Whether the instance ignores test connectivity. Valid values: `true`, `false`.
	SkipTest pulumi.BoolPtrInput
	// The tenant ID.
	Tid pulumi.IntPtrInput
	// Whether to enable cross-instance query. Valid values: `0` not open, `1` open.
	UseDsql pulumi.IntPtrInput
	// VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.
	VpcId pulumi.StringPtrInput
}

The set of arguments for constructing a EnterpriseInstance resource.

func (EnterpriseInstanceArgs) ElementType

func (EnterpriseInstanceArgs) ElementType() reflect.Type

type EnterpriseInstanceArray

type EnterpriseInstanceArray []EnterpriseInstanceInput

func (EnterpriseInstanceArray) ElementType

func (EnterpriseInstanceArray) ElementType() reflect.Type

func (EnterpriseInstanceArray) ToEnterpriseInstanceArrayOutput

func (i EnterpriseInstanceArray) ToEnterpriseInstanceArrayOutput() EnterpriseInstanceArrayOutput

func (EnterpriseInstanceArray) ToEnterpriseInstanceArrayOutputWithContext

func (i EnterpriseInstanceArray) ToEnterpriseInstanceArrayOutputWithContext(ctx context.Context) EnterpriseInstanceArrayOutput

type EnterpriseInstanceArrayInput

type EnterpriseInstanceArrayInput interface {
	pulumi.Input

	ToEnterpriseInstanceArrayOutput() EnterpriseInstanceArrayOutput
	ToEnterpriseInstanceArrayOutputWithContext(context.Context) EnterpriseInstanceArrayOutput
}

EnterpriseInstanceArrayInput is an input type that accepts EnterpriseInstanceArray and EnterpriseInstanceArrayOutput values. You can construct a concrete instance of `EnterpriseInstanceArrayInput` via:

EnterpriseInstanceArray{ EnterpriseInstanceArgs{...} }

type EnterpriseInstanceArrayOutput

type EnterpriseInstanceArrayOutput struct{ *pulumi.OutputState }

func (EnterpriseInstanceArrayOutput) ElementType

func (EnterpriseInstanceArrayOutput) Index

func (EnterpriseInstanceArrayOutput) ToEnterpriseInstanceArrayOutput

func (o EnterpriseInstanceArrayOutput) ToEnterpriseInstanceArrayOutput() EnterpriseInstanceArrayOutput

func (EnterpriseInstanceArrayOutput) ToEnterpriseInstanceArrayOutputWithContext

func (o EnterpriseInstanceArrayOutput) ToEnterpriseInstanceArrayOutputWithContext(ctx context.Context) EnterpriseInstanceArrayOutput

type EnterpriseInstanceInput

type EnterpriseInstanceInput interface {
	pulumi.Input

	ToEnterpriseInstanceOutput() EnterpriseInstanceOutput
	ToEnterpriseInstanceOutputWithContext(ctx context.Context) EnterpriseInstanceOutput
}

type EnterpriseInstanceMap

type EnterpriseInstanceMap map[string]EnterpriseInstanceInput

func (EnterpriseInstanceMap) ElementType

func (EnterpriseInstanceMap) ElementType() reflect.Type

func (EnterpriseInstanceMap) ToEnterpriseInstanceMapOutput

func (i EnterpriseInstanceMap) ToEnterpriseInstanceMapOutput() EnterpriseInstanceMapOutput

func (EnterpriseInstanceMap) ToEnterpriseInstanceMapOutputWithContext

func (i EnterpriseInstanceMap) ToEnterpriseInstanceMapOutputWithContext(ctx context.Context) EnterpriseInstanceMapOutput

type EnterpriseInstanceMapInput

type EnterpriseInstanceMapInput interface {
	pulumi.Input

	ToEnterpriseInstanceMapOutput() EnterpriseInstanceMapOutput
	ToEnterpriseInstanceMapOutputWithContext(context.Context) EnterpriseInstanceMapOutput
}

EnterpriseInstanceMapInput is an input type that accepts EnterpriseInstanceMap and EnterpriseInstanceMapOutput values. You can construct a concrete instance of `EnterpriseInstanceMapInput` via:

EnterpriseInstanceMap{ "key": EnterpriseInstanceArgs{...} }

type EnterpriseInstanceMapOutput

type EnterpriseInstanceMapOutput struct{ *pulumi.OutputState }

func (EnterpriseInstanceMapOutput) ElementType

func (EnterpriseInstanceMapOutput) MapIndex

func (EnterpriseInstanceMapOutput) ToEnterpriseInstanceMapOutput

func (o EnterpriseInstanceMapOutput) ToEnterpriseInstanceMapOutput() EnterpriseInstanceMapOutput

func (EnterpriseInstanceMapOutput) ToEnterpriseInstanceMapOutputWithContext

func (o EnterpriseInstanceMapOutput) ToEnterpriseInstanceMapOutputWithContext(ctx context.Context) EnterpriseInstanceMapOutput

type EnterpriseInstanceOutput

type EnterpriseInstanceOutput struct{ *pulumi.OutputState }

func (EnterpriseInstanceOutput) DataLinkName added in v3.27.0

func (o EnterpriseInstanceOutput) DataLinkName() pulumi.StringOutput

Cross-database query datalink name.

func (EnterpriseInstanceOutput) DatabasePassword added in v3.27.0

func (o EnterpriseInstanceOutput) DatabasePassword() pulumi.StringOutput

Database access password.

func (EnterpriseInstanceOutput) DatabaseUser added in v3.27.0

func (o EnterpriseInstanceOutput) DatabaseUser() pulumi.StringOutput

Database access account.

func (EnterpriseInstanceOutput) DbaId added in v3.27.0

The dba id of the database instance.

func (EnterpriseInstanceOutput) DbaNickName added in v3.27.0

The instance dba nickname.

func (EnterpriseInstanceOutput) DbaUid added in v3.27.0

The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.

func (EnterpriseInstanceOutput) DdlOnline added in v3.27.0

Whether to use online services, currently only supports MySQL and PolarDB. Valid values: `0` Not used, `1` Native online DDL priority, `2` DMS lock-free table structure change priority.

func (EnterpriseInstanceOutput) EcsInstanceId added in v3.27.0

func (o EnterpriseInstanceOutput) EcsInstanceId() pulumi.StringOutput

ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.

func (EnterpriseInstanceOutput) EcsRegion added in v3.27.0

The region where the instance is located. This value must be passed when the value of InstanceSource is RDS, ECS self-built library, and VPC dedicated line IDC.

func (EnterpriseInstanceOutput) ElementType

func (EnterpriseInstanceOutput) ElementType() reflect.Type

func (EnterpriseInstanceOutput) EnvType added in v3.27.0

Environment type. Valid values: `product` production environment, `dev` development environment, `pre` pre-release environment, `test` test environment, `sit` SIT environment, `uat` UAT environment, `pet` pressure test environment, `stag` STAG environment.

func (EnterpriseInstanceOutput) ExportTimeout added in v3.27.0

func (o EnterpriseInstanceOutput) ExportTimeout() pulumi.IntOutput

Export timeout, unit: s (seconds).

func (EnterpriseInstanceOutput) Host added in v3.27.0

Host address of the target database.

func (EnterpriseInstanceOutput) InstanceAlias deprecated added in v3.27.0

func (o EnterpriseInstanceOutput) InstanceAlias() pulumi.StringOutput

Field `instanceAlias` has been deprecated from version 1.100.0. Use `instanceName` instead.

Deprecated: Field 'instance_alias' has been deprecated from version 1.100.0. Use 'instance_name' instead.

func (EnterpriseInstanceOutput) InstanceId added in v3.27.0

The instance id of the database instance.

func (EnterpriseInstanceOutput) InstanceName added in v3.27.0

func (o EnterpriseInstanceOutput) InstanceName() pulumi.StringOutput

Instance name, to help users quickly distinguish positioning.

func (EnterpriseInstanceOutput) InstanceSource added in v3.27.0

func (o EnterpriseInstanceOutput) InstanceSource() pulumi.StringOutput

The source of the database instance. Valid values: `PUBLIC_OWN`, `RDS`, `ECS_OWN`, `VPC_IDC`.

func (EnterpriseInstanceOutput) InstanceType added in v3.27.0

func (o EnterpriseInstanceOutput) InstanceType() pulumi.StringOutput

Database type. Valid values: `MySQL`, `SQLServer`, `PostgreSQL`, `Oracle,` `DRDS`, `OceanBase`, `Mongo`, `Redis`.

func (EnterpriseInstanceOutput) NetworkType added in v3.27.0

Network type. Valid values: `CLASSIC`, `VPC`.

func (EnterpriseInstanceOutput) Port added in v3.27.0

Access port of the target database.

func (EnterpriseInstanceOutput) QueryTimeout added in v3.27.0

func (o EnterpriseInstanceOutput) QueryTimeout() pulumi.IntOutput

Query timeout time, unit: s (seconds).

func (EnterpriseInstanceOutput) SafeRule added in v3.27.0

The security rule of the instance is passed into the name of the security rule in the enterprise.

func (EnterpriseInstanceOutput) SafeRuleId added in v3.27.0

The safe rule id of the database instance.

func (EnterpriseInstanceOutput) Sid added in v3.27.0

The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.

func (EnterpriseInstanceOutput) SkipTest added in v3.27.0

Whether the instance ignores test connectivity. Valid values: `true`, `false`.

func (EnterpriseInstanceOutput) State deprecated added in v3.27.0

It has been deprecated from provider version 1.100.0 and 'status' instead.

Deprecated: Field 'state' has been deprecated from version 1.100.0. Use 'status' instead.

func (EnterpriseInstanceOutput) Status added in v3.27.0

The instance status.

func (EnterpriseInstanceOutput) Tid added in v3.27.0

The tenant ID.

func (EnterpriseInstanceOutput) ToEnterpriseInstanceOutput

func (o EnterpriseInstanceOutput) ToEnterpriseInstanceOutput() EnterpriseInstanceOutput

func (EnterpriseInstanceOutput) ToEnterpriseInstanceOutputWithContext

func (o EnterpriseInstanceOutput) ToEnterpriseInstanceOutputWithContext(ctx context.Context) EnterpriseInstanceOutput

func (EnterpriseInstanceOutput) UseDsql added in v3.27.0

Whether to enable cross-instance query. Valid values: `0` not open, `1` open.

func (EnterpriseInstanceOutput) VpcId added in v3.27.0

VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.

type EnterpriseInstanceState

type EnterpriseInstanceState struct {
	// Cross-database query datalink name.
	DataLinkName pulumi.StringPtrInput
	// Database access password.
	DatabasePassword pulumi.StringPtrInput
	// Database access account.
	DatabaseUser pulumi.StringPtrInput
	// The dba id of the database instance.
	DbaId pulumi.StringPtrInput
	// The instance dba nickname.
	DbaNickName pulumi.StringPtrInput
	// The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.
	DbaUid pulumi.IntPtrInput
	// Whether to use online services, currently only supports MySQL and PolarDB. Valid values: `0` Not used, `1` Native online DDL priority, `2` DMS lock-free table structure change priority.
	DdlOnline pulumi.IntPtrInput
	// ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.
	EcsInstanceId pulumi.StringPtrInput
	// The region where the instance is located. This value must be passed when the value of InstanceSource is RDS, ECS self-built library, and VPC dedicated line IDC.
	EcsRegion pulumi.StringPtrInput
	// Environment type. Valid values: `product` production environment, `dev` development environment, `pre` pre-release environment, `test` test environment, `sit` SIT environment, `uat` UAT environment, `pet` pressure test environment, `stag` STAG environment.
	EnvType pulumi.StringPtrInput
	// Export timeout, unit: s (seconds).
	ExportTimeout pulumi.IntPtrInput
	// Host address of the target database.
	Host pulumi.StringPtrInput
	// Field `instanceAlias` has been deprecated from version 1.100.0. Use `instanceName` instead.
	//
	// Deprecated: Field 'instance_alias' has been deprecated from version 1.100.0. Use 'instance_name' instead.
	InstanceAlias pulumi.StringPtrInput
	// The instance id of the database instance.
	InstanceId pulumi.StringPtrInput
	// Instance name, to help users quickly distinguish positioning.
	InstanceName pulumi.StringPtrInput
	// The source of the database instance. Valid values: `PUBLIC_OWN`, `RDS`, `ECS_OWN`, `VPC_IDC`.
	InstanceSource pulumi.StringPtrInput
	// Database type. Valid values: `MySQL`, `SQLServer`, `PostgreSQL`, `Oracle,` `DRDS`, `OceanBase`, `Mongo`, `Redis`.
	InstanceType pulumi.StringPtrInput
	// Network type. Valid values: `CLASSIC`, `VPC`.
	NetworkType pulumi.StringPtrInput
	// Access port of the target database.
	Port pulumi.IntPtrInput
	// Query timeout time, unit: s (seconds).
	QueryTimeout pulumi.IntPtrInput
	// The security rule of the instance is passed into the name of the security rule in the enterprise.
	SafeRule pulumi.StringPtrInput
	// The safe rule id of the database instance.
	SafeRuleId pulumi.StringPtrInput
	// The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.
	Sid pulumi.StringPtrInput
	// Whether the instance ignores test connectivity. Valid values: `true`, `false`.
	SkipTest pulumi.BoolPtrInput
	// It has been deprecated from provider version 1.100.0 and 'status' instead.
	//
	// Deprecated: Field 'state' has been deprecated from version 1.100.0. Use 'status' instead.
	State pulumi.StringPtrInput
	// The instance status.
	Status pulumi.StringPtrInput
	// The tenant ID.
	Tid pulumi.IntPtrInput
	// Whether to enable cross-instance query. Valid values: `0` not open, `1` open.
	UseDsql pulumi.IntPtrInput
	// VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.
	VpcId pulumi.StringPtrInput
}

func (EnterpriseInstanceState) ElementType

func (EnterpriseInstanceState) ElementType() reflect.Type

type EnterpriseLogicDatabase added in v3.29.0

type EnterpriseLogicDatabase struct {
	pulumi.CustomResourceState

	// Logical Library alias.
	Alias pulumi.StringOutput `pulumi:"alias"`
	// Sub-Database ID
	DatabaseIds pulumi.StringArrayOutput `pulumi:"databaseIds"`
	// Database type.
	DbType pulumi.StringOutput `pulumi:"dbType"`
	// Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
	EnvType pulumi.StringOutput `pulumi:"envType"`
	// Whether it is a logical Library, the return value is true.
	Logic pulumi.BoolOutput `pulumi:"logic"`
	// The ID of the logical Library.
	LogicDatabaseId pulumi.StringOutput `pulumi:"logicDatabaseId"`
	// The user ID list of the logical library Owner.
	OwnerIdLists pulumi.StringArrayOutput `pulumi:"ownerIdLists"`
	// The nickname list of the logical library Owner.
	OwnerNameLists pulumi.StringArrayOutput `pulumi:"ownerNameLists"`
	// Logical Library name.
	SchemaName pulumi.StringOutput `pulumi:"schemaName"`
	// Logical library search name.
	SearchName pulumi.StringOutput `pulumi:"searchName"`
}

Provides a DMS Enterprise Logic Database resource.

For information about DMS Enterprise Logic Database and how to use it, see [What is Logic Database](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-createlogicdatabase).

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

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dms.NewEnterpriseLogicDatabase(ctx, "default", &dms.EnterpriseLogicDatabaseArgs{
			Alias: pulumi.String("TF_logic_db_test"),
			DatabaseIds: pulumi.StringArray{
				pulumi.String("35617919"),
				pulumi.String("35617920"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DMS Enterprise Logic Database can be imported using the id, e.g.

```sh $ pulumi import alicloud:dms/enterpriseLogicDatabase:EnterpriseLogicDatabase example <id> ```

func GetEnterpriseLogicDatabase added in v3.29.0

func GetEnterpriseLogicDatabase(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EnterpriseLogicDatabaseState, opts ...pulumi.ResourceOption) (*EnterpriseLogicDatabase, error)

GetEnterpriseLogicDatabase gets an existing EnterpriseLogicDatabase 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 NewEnterpriseLogicDatabase added in v3.29.0

func NewEnterpriseLogicDatabase(ctx *pulumi.Context,
	name string, args *EnterpriseLogicDatabaseArgs, opts ...pulumi.ResourceOption) (*EnterpriseLogicDatabase, error)

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

func (*EnterpriseLogicDatabase) ElementType added in v3.29.0

func (*EnterpriseLogicDatabase) ElementType() reflect.Type

func (*EnterpriseLogicDatabase) ToEnterpriseLogicDatabaseOutput added in v3.29.0

func (i *EnterpriseLogicDatabase) ToEnterpriseLogicDatabaseOutput() EnterpriseLogicDatabaseOutput

func (*EnterpriseLogicDatabase) ToEnterpriseLogicDatabaseOutputWithContext added in v3.29.0

func (i *EnterpriseLogicDatabase) ToEnterpriseLogicDatabaseOutputWithContext(ctx context.Context) EnterpriseLogicDatabaseOutput

type EnterpriseLogicDatabaseArgs added in v3.29.0

type EnterpriseLogicDatabaseArgs struct {
	// Logical Library alias.
	Alias pulumi.StringInput
	// Sub-Database ID
	DatabaseIds pulumi.StringArrayInput
	// The ID of the logical Library.
	LogicDatabaseId pulumi.StringPtrInput
}

The set of arguments for constructing a EnterpriseLogicDatabase resource.

func (EnterpriseLogicDatabaseArgs) ElementType added in v3.29.0

type EnterpriseLogicDatabaseArray added in v3.29.0

type EnterpriseLogicDatabaseArray []EnterpriseLogicDatabaseInput

func (EnterpriseLogicDatabaseArray) ElementType added in v3.29.0

func (EnterpriseLogicDatabaseArray) ToEnterpriseLogicDatabaseArrayOutput added in v3.29.0

func (i EnterpriseLogicDatabaseArray) ToEnterpriseLogicDatabaseArrayOutput() EnterpriseLogicDatabaseArrayOutput

func (EnterpriseLogicDatabaseArray) ToEnterpriseLogicDatabaseArrayOutputWithContext added in v3.29.0

func (i EnterpriseLogicDatabaseArray) ToEnterpriseLogicDatabaseArrayOutputWithContext(ctx context.Context) EnterpriseLogicDatabaseArrayOutput

type EnterpriseLogicDatabaseArrayInput added in v3.29.0

type EnterpriseLogicDatabaseArrayInput interface {
	pulumi.Input

	ToEnterpriseLogicDatabaseArrayOutput() EnterpriseLogicDatabaseArrayOutput
	ToEnterpriseLogicDatabaseArrayOutputWithContext(context.Context) EnterpriseLogicDatabaseArrayOutput
}

EnterpriseLogicDatabaseArrayInput is an input type that accepts EnterpriseLogicDatabaseArray and EnterpriseLogicDatabaseArrayOutput values. You can construct a concrete instance of `EnterpriseLogicDatabaseArrayInput` via:

EnterpriseLogicDatabaseArray{ EnterpriseLogicDatabaseArgs{...} }

type EnterpriseLogicDatabaseArrayOutput added in v3.29.0

type EnterpriseLogicDatabaseArrayOutput struct{ *pulumi.OutputState }

func (EnterpriseLogicDatabaseArrayOutput) ElementType added in v3.29.0

func (EnterpriseLogicDatabaseArrayOutput) Index added in v3.29.0

func (EnterpriseLogicDatabaseArrayOutput) ToEnterpriseLogicDatabaseArrayOutput added in v3.29.0

func (o EnterpriseLogicDatabaseArrayOutput) ToEnterpriseLogicDatabaseArrayOutput() EnterpriseLogicDatabaseArrayOutput

func (EnterpriseLogicDatabaseArrayOutput) ToEnterpriseLogicDatabaseArrayOutputWithContext added in v3.29.0

func (o EnterpriseLogicDatabaseArrayOutput) ToEnterpriseLogicDatabaseArrayOutputWithContext(ctx context.Context) EnterpriseLogicDatabaseArrayOutput

type EnterpriseLogicDatabaseInput added in v3.29.0

type EnterpriseLogicDatabaseInput interface {
	pulumi.Input

	ToEnterpriseLogicDatabaseOutput() EnterpriseLogicDatabaseOutput
	ToEnterpriseLogicDatabaseOutputWithContext(ctx context.Context) EnterpriseLogicDatabaseOutput
}

type EnterpriseLogicDatabaseMap added in v3.29.0

type EnterpriseLogicDatabaseMap map[string]EnterpriseLogicDatabaseInput

func (EnterpriseLogicDatabaseMap) ElementType added in v3.29.0

func (EnterpriseLogicDatabaseMap) ElementType() reflect.Type

func (EnterpriseLogicDatabaseMap) ToEnterpriseLogicDatabaseMapOutput added in v3.29.0

func (i EnterpriseLogicDatabaseMap) ToEnterpriseLogicDatabaseMapOutput() EnterpriseLogicDatabaseMapOutput

func (EnterpriseLogicDatabaseMap) ToEnterpriseLogicDatabaseMapOutputWithContext added in v3.29.0

func (i EnterpriseLogicDatabaseMap) ToEnterpriseLogicDatabaseMapOutputWithContext(ctx context.Context) EnterpriseLogicDatabaseMapOutput

type EnterpriseLogicDatabaseMapInput added in v3.29.0

type EnterpriseLogicDatabaseMapInput interface {
	pulumi.Input

	ToEnterpriseLogicDatabaseMapOutput() EnterpriseLogicDatabaseMapOutput
	ToEnterpriseLogicDatabaseMapOutputWithContext(context.Context) EnterpriseLogicDatabaseMapOutput
}

EnterpriseLogicDatabaseMapInput is an input type that accepts EnterpriseLogicDatabaseMap and EnterpriseLogicDatabaseMapOutput values. You can construct a concrete instance of `EnterpriseLogicDatabaseMapInput` via:

EnterpriseLogicDatabaseMap{ "key": EnterpriseLogicDatabaseArgs{...} }

type EnterpriseLogicDatabaseMapOutput added in v3.29.0

type EnterpriseLogicDatabaseMapOutput struct{ *pulumi.OutputState }

func (EnterpriseLogicDatabaseMapOutput) ElementType added in v3.29.0

func (EnterpriseLogicDatabaseMapOutput) MapIndex added in v3.29.0

func (EnterpriseLogicDatabaseMapOutput) ToEnterpriseLogicDatabaseMapOutput added in v3.29.0

func (o EnterpriseLogicDatabaseMapOutput) ToEnterpriseLogicDatabaseMapOutput() EnterpriseLogicDatabaseMapOutput

func (EnterpriseLogicDatabaseMapOutput) ToEnterpriseLogicDatabaseMapOutputWithContext added in v3.29.0

func (o EnterpriseLogicDatabaseMapOutput) ToEnterpriseLogicDatabaseMapOutputWithContext(ctx context.Context) EnterpriseLogicDatabaseMapOutput

type EnterpriseLogicDatabaseOutput added in v3.29.0

type EnterpriseLogicDatabaseOutput struct{ *pulumi.OutputState }

func (EnterpriseLogicDatabaseOutput) Alias added in v3.29.0

Logical Library alias.

func (EnterpriseLogicDatabaseOutput) DatabaseIds added in v3.29.0

Sub-Database ID

func (EnterpriseLogicDatabaseOutput) DbType added in v3.29.0

Database type.

func (EnterpriseLogicDatabaseOutput) ElementType added in v3.29.0

func (EnterpriseLogicDatabaseOutput) EnvType added in v3.29.0

Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment

func (EnterpriseLogicDatabaseOutput) Logic added in v3.29.0

Whether it is a logical Library, the return value is true.

func (EnterpriseLogicDatabaseOutput) LogicDatabaseId added in v3.29.0

The ID of the logical Library.

func (EnterpriseLogicDatabaseOutput) OwnerIdLists added in v3.29.0

The user ID list of the logical library Owner.

func (EnterpriseLogicDatabaseOutput) OwnerNameLists added in v3.29.0

The nickname list of the logical library Owner.

func (EnterpriseLogicDatabaseOutput) SchemaName added in v3.29.0

Logical Library name.

func (EnterpriseLogicDatabaseOutput) SearchName added in v3.29.0

Logical library search name.

func (EnterpriseLogicDatabaseOutput) ToEnterpriseLogicDatabaseOutput added in v3.29.0

func (o EnterpriseLogicDatabaseOutput) ToEnterpriseLogicDatabaseOutput() EnterpriseLogicDatabaseOutput

func (EnterpriseLogicDatabaseOutput) ToEnterpriseLogicDatabaseOutputWithContext added in v3.29.0

func (o EnterpriseLogicDatabaseOutput) ToEnterpriseLogicDatabaseOutputWithContext(ctx context.Context) EnterpriseLogicDatabaseOutput

type EnterpriseLogicDatabaseState added in v3.29.0

type EnterpriseLogicDatabaseState struct {
	// Logical Library alias.
	Alias pulumi.StringPtrInput
	// Sub-Database ID
	DatabaseIds pulumi.StringArrayInput
	// Database type.
	DbType pulumi.StringPtrInput
	// Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
	EnvType pulumi.StringPtrInput
	// Whether it is a logical Library, the return value is true.
	Logic pulumi.BoolPtrInput
	// The ID of the logical Library.
	LogicDatabaseId pulumi.StringPtrInput
	// The user ID list of the logical library Owner.
	OwnerIdLists pulumi.StringArrayInput
	// The nickname list of the logical library Owner.
	OwnerNameLists pulumi.StringArrayInput
	// Logical Library name.
	SchemaName pulumi.StringPtrInput
	// Logical library search name.
	SearchName pulumi.StringPtrInput
}

func (EnterpriseLogicDatabaseState) ElementType added in v3.29.0

type EnterpriseProxy added in v3.29.0

type EnterpriseProxy struct {
	pulumi.CustomResourceState

	// The ID of the database instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The password of the database account.
	Password pulumi.StringOutput `pulumi:"password"`
	// The ID of the tenant.
	Tid pulumi.StringPtrOutput `pulumi:"tid"`
	// The username of the database account.
	Username pulumi.StringOutput `pulumi:"username"`
}

Provides a DMS Enterprise Proxy resource.

For information about DMS Enterprise Proxy and how to use it, see [What is Proxy](https://next.api.alibabacloud.com/document/dms-enterprise/2018-11-01/CreateProxy).

> **NOTE:** Available since v1.188.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dms"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rds"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"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 := "tf-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		current, err := alicloud.GetAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_default, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
			Current: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetUserTenants, err := dms.GetUserTenants(ctx, &dms.GetUserTenantsArgs{
			Status: pulumi.StringRef("ACTIVE"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetZones, err := rds.GetZones(ctx, &rds.GetZonesArgs{
			Engine:                pulumi.StringRef("MySQL"),
			EngineVersion:         pulumi.StringRef("8.0"),
			InstanceChargeType:    pulumi.StringRef("PostPaid"),
			Category:              pulumi.StringRef("HighAvailability"),
			DbInstanceStorageType: pulumi.StringRef("cloud_essd"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetInstanceClasses, err := rds.GetInstanceClasses(ctx, &rds.GetInstanceClassesArgs{
			ZoneId:                pulumi.StringRef(defaultGetZones.Zones[0].Id),
			Engine:                pulumi.StringRef("MySQL"),
			EngineVersion:         pulumi.StringRef("8.0"),
			Category:              pulumi.StringRef("HighAvailability"),
			DbInstanceStorageType: pulumi.StringRef("cloud_essd"),
			InstanceChargeType:    pulumi.StringRef("PostPaid"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("10.4.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
			VswitchName: pulumi.String(name),
			CidrBlock:   pulumi.String("10.4.0.0/24"),
			VpcId:       defaultNetwork.ID(),
			ZoneId:      pulumi.String(defaultGetZones.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		_, err = ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
			Name:  pulumi.String(name),
			VpcId: defaultNetwork.ID(),
		})
		if err != nil {
			return err
		}
		defaultInstance, err := rds.NewInstance(ctx, "default", &rds.InstanceArgs{
			Engine:                pulumi.String("MySQL"),
			EngineVersion:         pulumi.String("8.0"),
			DbInstanceStorageType: pulumi.String("cloud_essd"),
			InstanceType:          pulumi.String(defaultGetInstanceClasses.InstanceClasses[0].InstanceClass),
			InstanceStorage:       pulumi.String(defaultGetInstanceClasses.InstanceClasses[0].StorageRange.Min),
			VswitchId:             defaultSwitch.ID(),
			InstanceName:          pulumi.String(name),
			SecurityIps: pulumi.StringArray{
				pulumi.String("100.104.5.0/24"),
				pulumi.String("192.168.0.6"),
			},
			Tags: pulumi.Map{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("example"),
			},
		})
		if err != nil {
			return err
		}
		defaultAccount, err := rds.NewAccount(ctx, "default", &rds.AccountArgs{
			DbInstanceId:    defaultInstance.ID(),
			AccountName:     pulumi.String("tfexamplename"),
			AccountPassword: pulumi.String("Example12345"),
			AccountType:     pulumi.String("Normal"),
		})
		if err != nil {
			return err
		}
		defaultEnterpriseInstance, err := dms.NewEnterpriseInstance(ctx, "default", &dms.EnterpriseInstanceArgs{
			Tid:              pulumi.String(defaultGetUserTenants.Ids[0]),
			InstanceType:     pulumi.String("mysql"),
			InstanceSource:   pulumi.String("RDS"),
			NetworkType:      pulumi.String("VPC"),
			EnvType:          pulumi.String("dev"),
			Host:             defaultInstance.ConnectionString,
			Port:             pulumi.Int(3306),
			DatabaseUser:     defaultAccount.AccountName,
			DatabasePassword: defaultAccount.AccountPassword,
			InstanceName:     pulumi.String(name),
			DbaUid:           pulumi.String(current.Id),
			SafeRule:         pulumi.String("自由操作"),
			QueryTimeout:     pulumi.Int(60),
			ExportTimeout:    pulumi.Int(600),
			EcsRegion:        pulumi.String(_default.Regions[0].Id),
		})
		if err != nil {
			return err
		}
		_, err = dms.NewEnterpriseProxy(ctx, "default", &dms.EnterpriseProxyArgs{
			InstanceId: defaultEnterpriseInstance.InstanceId,
			Password:   pulumi.String("Example12345"),
			Username:   pulumi.String("tfexamplename"),
			Tid:        pulumi.String(defaultGetUserTenants.Ids[0]),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DMS Enterprise Proxy can be imported using the id, e.g.

```sh $ pulumi import alicloud:dms/enterpriseProxy:EnterpriseProxy example <id> ```

func GetEnterpriseProxy added in v3.29.0

func GetEnterpriseProxy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EnterpriseProxyState, opts ...pulumi.ResourceOption) (*EnterpriseProxy, error)

GetEnterpriseProxy gets an existing EnterpriseProxy 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 NewEnterpriseProxy added in v3.29.0

func NewEnterpriseProxy(ctx *pulumi.Context,
	name string, args *EnterpriseProxyArgs, opts ...pulumi.ResourceOption) (*EnterpriseProxy, error)

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

func (*EnterpriseProxy) ElementType added in v3.29.0

func (*EnterpriseProxy) ElementType() reflect.Type

func (*EnterpriseProxy) ToEnterpriseProxyOutput added in v3.29.0

func (i *EnterpriseProxy) ToEnterpriseProxyOutput() EnterpriseProxyOutput

func (*EnterpriseProxy) ToEnterpriseProxyOutputWithContext added in v3.29.0

func (i *EnterpriseProxy) ToEnterpriseProxyOutputWithContext(ctx context.Context) EnterpriseProxyOutput

type EnterpriseProxyAccess added in v3.29.0

type EnterpriseProxyAccess struct {
	pulumi.CustomResourceState

	// The authorized account of the security agent.
	AccessId pulumi.StringOutput `pulumi:"accessId"`
	// Secure access agent authorization password.
	AccessSecret pulumi.StringOutput `pulumi:"accessSecret"`
	CreateTime   pulumi.StringOutput `pulumi:"createTime"`
	// Database account.
	IndepAccount pulumi.StringPtrOutput `pulumi:"indepAccount"`
	// Database password.
	IndepPassword pulumi.StringPtrOutput `pulumi:"indepPassword"`
	// The ID of the instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The source information of the security access agent permission is enabled, and the return value is as follows:
	// * **Owner Authorization**: The UID of the owner in parentheses.
	// * **Work Order Authorization**: The ticket number in parentheses is the number of the user to apply for permission.
	OriginInfo pulumi.StringOutput `pulumi:"originInfo"`
	// Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
	ProxyAccessId pulumi.StringOutput `pulumi:"proxyAccessId"`
	// The ID of the security agent.
	ProxyId pulumi.StringOutput `pulumi:"proxyId"`
	// The user ID.
	UserId pulumi.StringOutput `pulumi:"userId"`
	// User nickname.
	UserName pulumi.StringOutput `pulumi:"userName"`
	// User UID.
	UserUid pulumi.StringOutput `pulumi:"userUid"`
}

Provides a DMS Enterprise Proxy Access resource.

For information about DMS Enterprise Proxy Access and how to use it, see [What is Proxy Access](https://next.api.alibabacloud.com/document/dms-enterprise/2018-11-01/CreateProxyAccess).

> **NOTE:** Available since v1.195.0+.

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		dmsEnterpriseUsersDs, err := dms.GetEnterpriseUsers(ctx, &dms.GetEnterpriseUsersArgs{
			Role:   pulumi.StringRef("USER"),
			Status: pulumi.StringRef("NORMAL"),
		}, nil)
		if err != nil {
			return err
		}
		ids, err := dms.GetEnterpriseProxies(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = dms.NewEnterpriseProxyAccess(ctx, "default", &dms.EnterpriseProxyAccessArgs{
			ProxyId: pulumi.String(ids.Proxies[0].Id),
			UserId:  pulumi.String(dmsEnterpriseUsersDs.Users[0].UserId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DMS Enterprise Proxy Access can be imported using the id, e.g.

```sh $ pulumi import alicloud:dms/enterpriseProxyAccess:EnterpriseProxyAccess example <id> ```

func GetEnterpriseProxyAccess added in v3.29.0

func GetEnterpriseProxyAccess(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EnterpriseProxyAccessState, opts ...pulumi.ResourceOption) (*EnterpriseProxyAccess, error)

GetEnterpriseProxyAccess gets an existing EnterpriseProxyAccess 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 NewEnterpriseProxyAccess added in v3.29.0

func NewEnterpriseProxyAccess(ctx *pulumi.Context,
	name string, args *EnterpriseProxyAccessArgs, opts ...pulumi.ResourceOption) (*EnterpriseProxyAccess, error)

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

func (*EnterpriseProxyAccess) ElementType added in v3.29.0

func (*EnterpriseProxyAccess) ElementType() reflect.Type

func (*EnterpriseProxyAccess) ToEnterpriseProxyAccessOutput added in v3.29.0

func (i *EnterpriseProxyAccess) ToEnterpriseProxyAccessOutput() EnterpriseProxyAccessOutput

func (*EnterpriseProxyAccess) ToEnterpriseProxyAccessOutputWithContext added in v3.29.0

func (i *EnterpriseProxyAccess) ToEnterpriseProxyAccessOutputWithContext(ctx context.Context) EnterpriseProxyAccessOutput

type EnterpriseProxyAccessArgs added in v3.29.0

type EnterpriseProxyAccessArgs struct {
	// Database account.
	IndepAccount pulumi.StringPtrInput
	// Database password.
	IndepPassword pulumi.StringPtrInput
	// Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
	ProxyAccessId pulumi.StringPtrInput
	// The ID of the security agent.
	ProxyId pulumi.StringInput
	// The user ID.
	UserId pulumi.StringInput
}

The set of arguments for constructing a EnterpriseProxyAccess resource.

func (EnterpriseProxyAccessArgs) ElementType added in v3.29.0

func (EnterpriseProxyAccessArgs) ElementType() reflect.Type

type EnterpriseProxyAccessArray added in v3.29.0

type EnterpriseProxyAccessArray []EnterpriseProxyAccessInput

func (EnterpriseProxyAccessArray) ElementType added in v3.29.0

func (EnterpriseProxyAccessArray) ElementType() reflect.Type

func (EnterpriseProxyAccessArray) ToEnterpriseProxyAccessArrayOutput added in v3.29.0

func (i EnterpriseProxyAccessArray) ToEnterpriseProxyAccessArrayOutput() EnterpriseProxyAccessArrayOutput

func (EnterpriseProxyAccessArray) ToEnterpriseProxyAccessArrayOutputWithContext added in v3.29.0

func (i EnterpriseProxyAccessArray) ToEnterpriseProxyAccessArrayOutputWithContext(ctx context.Context) EnterpriseProxyAccessArrayOutput

type EnterpriseProxyAccessArrayInput added in v3.29.0

type EnterpriseProxyAccessArrayInput interface {
	pulumi.Input

	ToEnterpriseProxyAccessArrayOutput() EnterpriseProxyAccessArrayOutput
	ToEnterpriseProxyAccessArrayOutputWithContext(context.Context) EnterpriseProxyAccessArrayOutput
}

EnterpriseProxyAccessArrayInput is an input type that accepts EnterpriseProxyAccessArray and EnterpriseProxyAccessArrayOutput values. You can construct a concrete instance of `EnterpriseProxyAccessArrayInput` via:

EnterpriseProxyAccessArray{ EnterpriseProxyAccessArgs{...} }

type EnterpriseProxyAccessArrayOutput added in v3.29.0

type EnterpriseProxyAccessArrayOutput struct{ *pulumi.OutputState }

func (EnterpriseProxyAccessArrayOutput) ElementType added in v3.29.0

func (EnterpriseProxyAccessArrayOutput) Index added in v3.29.0

func (EnterpriseProxyAccessArrayOutput) ToEnterpriseProxyAccessArrayOutput added in v3.29.0

func (o EnterpriseProxyAccessArrayOutput) ToEnterpriseProxyAccessArrayOutput() EnterpriseProxyAccessArrayOutput

func (EnterpriseProxyAccessArrayOutput) ToEnterpriseProxyAccessArrayOutputWithContext added in v3.29.0

func (o EnterpriseProxyAccessArrayOutput) ToEnterpriseProxyAccessArrayOutputWithContext(ctx context.Context) EnterpriseProxyAccessArrayOutput

type EnterpriseProxyAccessInput added in v3.29.0

type EnterpriseProxyAccessInput interface {
	pulumi.Input

	ToEnterpriseProxyAccessOutput() EnterpriseProxyAccessOutput
	ToEnterpriseProxyAccessOutputWithContext(ctx context.Context) EnterpriseProxyAccessOutput
}

type EnterpriseProxyAccessMap added in v3.29.0

type EnterpriseProxyAccessMap map[string]EnterpriseProxyAccessInput

func (EnterpriseProxyAccessMap) ElementType added in v3.29.0

func (EnterpriseProxyAccessMap) ElementType() reflect.Type

func (EnterpriseProxyAccessMap) ToEnterpriseProxyAccessMapOutput added in v3.29.0

func (i EnterpriseProxyAccessMap) ToEnterpriseProxyAccessMapOutput() EnterpriseProxyAccessMapOutput

func (EnterpriseProxyAccessMap) ToEnterpriseProxyAccessMapOutputWithContext added in v3.29.0

func (i EnterpriseProxyAccessMap) ToEnterpriseProxyAccessMapOutputWithContext(ctx context.Context) EnterpriseProxyAccessMapOutput

type EnterpriseProxyAccessMapInput added in v3.29.0

type EnterpriseProxyAccessMapInput interface {
	pulumi.Input

	ToEnterpriseProxyAccessMapOutput() EnterpriseProxyAccessMapOutput
	ToEnterpriseProxyAccessMapOutputWithContext(context.Context) EnterpriseProxyAccessMapOutput
}

EnterpriseProxyAccessMapInput is an input type that accepts EnterpriseProxyAccessMap and EnterpriseProxyAccessMapOutput values. You can construct a concrete instance of `EnterpriseProxyAccessMapInput` via:

EnterpriseProxyAccessMap{ "key": EnterpriseProxyAccessArgs{...} }

type EnterpriseProxyAccessMapOutput added in v3.29.0

type EnterpriseProxyAccessMapOutput struct{ *pulumi.OutputState }

func (EnterpriseProxyAccessMapOutput) ElementType added in v3.29.0

func (EnterpriseProxyAccessMapOutput) MapIndex added in v3.29.0

func (EnterpriseProxyAccessMapOutput) ToEnterpriseProxyAccessMapOutput added in v3.29.0

func (o EnterpriseProxyAccessMapOutput) ToEnterpriseProxyAccessMapOutput() EnterpriseProxyAccessMapOutput

func (EnterpriseProxyAccessMapOutput) ToEnterpriseProxyAccessMapOutputWithContext added in v3.29.0

func (o EnterpriseProxyAccessMapOutput) ToEnterpriseProxyAccessMapOutputWithContext(ctx context.Context) EnterpriseProxyAccessMapOutput

type EnterpriseProxyAccessOutput added in v3.29.0

type EnterpriseProxyAccessOutput struct{ *pulumi.OutputState }

func (EnterpriseProxyAccessOutput) AccessId added in v3.29.0

The authorized account of the security agent.

func (EnterpriseProxyAccessOutput) AccessSecret added in v3.29.0

Secure access agent authorization password.

func (EnterpriseProxyAccessOutput) CreateTime added in v3.29.0

func (EnterpriseProxyAccessOutput) ElementType added in v3.29.0

func (EnterpriseProxyAccessOutput) IndepAccount added in v3.29.0

Database account.

func (EnterpriseProxyAccessOutput) IndepPassword added in v3.29.0

Database password.

func (EnterpriseProxyAccessOutput) InstanceId added in v3.29.0

The ID of the instance.

func (EnterpriseProxyAccessOutput) OriginInfo added in v3.29.0

The source information of the security access agent permission is enabled, and the return value is as follows: * **Owner Authorization**: The UID of the owner in parentheses. * **Work Order Authorization**: The ticket number in parentheses is the number of the user to apply for permission.

func (EnterpriseProxyAccessOutput) ProxyAccessId added in v3.29.0

Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.

func (EnterpriseProxyAccessOutput) ProxyId added in v3.29.0

The ID of the security agent.

func (EnterpriseProxyAccessOutput) ToEnterpriseProxyAccessOutput added in v3.29.0

func (o EnterpriseProxyAccessOutput) ToEnterpriseProxyAccessOutput() EnterpriseProxyAccessOutput

func (EnterpriseProxyAccessOutput) ToEnterpriseProxyAccessOutputWithContext added in v3.29.0

func (o EnterpriseProxyAccessOutput) ToEnterpriseProxyAccessOutputWithContext(ctx context.Context) EnterpriseProxyAccessOutput

func (EnterpriseProxyAccessOutput) UserId added in v3.29.0

The user ID.

func (EnterpriseProxyAccessOutput) UserName added in v3.29.0

User nickname.

func (EnterpriseProxyAccessOutput) UserUid added in v3.29.0

User UID.

type EnterpriseProxyAccessState added in v3.29.0

type EnterpriseProxyAccessState struct {
	// The authorized account of the security agent.
	AccessId pulumi.StringPtrInput
	// Secure access agent authorization password.
	AccessSecret pulumi.StringPtrInput
	CreateTime   pulumi.StringPtrInput
	// Database account.
	IndepAccount pulumi.StringPtrInput
	// Database password.
	IndepPassword pulumi.StringPtrInput
	// The ID of the instance.
	InstanceId pulumi.StringPtrInput
	// The source information of the security access agent permission is enabled, and the return value is as follows:
	// * **Owner Authorization**: The UID of the owner in parentheses.
	// * **Work Order Authorization**: The ticket number in parentheses is the number of the user to apply for permission.
	OriginInfo pulumi.StringPtrInput
	// Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
	ProxyAccessId pulumi.StringPtrInput
	// The ID of the security agent.
	ProxyId pulumi.StringPtrInput
	// The user ID.
	UserId pulumi.StringPtrInput
	// User nickname.
	UserName pulumi.StringPtrInput
	// User UID.
	UserUid pulumi.StringPtrInput
}

func (EnterpriseProxyAccessState) ElementType added in v3.29.0

func (EnterpriseProxyAccessState) ElementType() reflect.Type

type EnterpriseProxyArgs added in v3.29.0

type EnterpriseProxyArgs struct {
	// The ID of the database instance.
	InstanceId pulumi.StringInput
	// The password of the database account.
	Password pulumi.StringInput
	// The ID of the tenant.
	Tid pulumi.StringPtrInput
	// The username of the database account.
	Username pulumi.StringInput
}

The set of arguments for constructing a EnterpriseProxy resource.

func (EnterpriseProxyArgs) ElementType added in v3.29.0

func (EnterpriseProxyArgs) ElementType() reflect.Type

type EnterpriseProxyArray added in v3.29.0

type EnterpriseProxyArray []EnterpriseProxyInput

func (EnterpriseProxyArray) ElementType added in v3.29.0

func (EnterpriseProxyArray) ElementType() reflect.Type

func (EnterpriseProxyArray) ToEnterpriseProxyArrayOutput added in v3.29.0

func (i EnterpriseProxyArray) ToEnterpriseProxyArrayOutput() EnterpriseProxyArrayOutput

func (EnterpriseProxyArray) ToEnterpriseProxyArrayOutputWithContext added in v3.29.0

func (i EnterpriseProxyArray) ToEnterpriseProxyArrayOutputWithContext(ctx context.Context) EnterpriseProxyArrayOutput

type EnterpriseProxyArrayInput added in v3.29.0

type EnterpriseProxyArrayInput interface {
	pulumi.Input

	ToEnterpriseProxyArrayOutput() EnterpriseProxyArrayOutput
	ToEnterpriseProxyArrayOutputWithContext(context.Context) EnterpriseProxyArrayOutput
}

EnterpriseProxyArrayInput is an input type that accepts EnterpriseProxyArray and EnterpriseProxyArrayOutput values. You can construct a concrete instance of `EnterpriseProxyArrayInput` via:

EnterpriseProxyArray{ EnterpriseProxyArgs{...} }

type EnterpriseProxyArrayOutput added in v3.29.0

type EnterpriseProxyArrayOutput struct{ *pulumi.OutputState }

func (EnterpriseProxyArrayOutput) ElementType added in v3.29.0

func (EnterpriseProxyArrayOutput) ElementType() reflect.Type

func (EnterpriseProxyArrayOutput) Index added in v3.29.0

func (EnterpriseProxyArrayOutput) ToEnterpriseProxyArrayOutput added in v3.29.0

func (o EnterpriseProxyArrayOutput) ToEnterpriseProxyArrayOutput() EnterpriseProxyArrayOutput

func (EnterpriseProxyArrayOutput) ToEnterpriseProxyArrayOutputWithContext added in v3.29.0

func (o EnterpriseProxyArrayOutput) ToEnterpriseProxyArrayOutputWithContext(ctx context.Context) EnterpriseProxyArrayOutput

type EnterpriseProxyInput added in v3.29.0

type EnterpriseProxyInput interface {
	pulumi.Input

	ToEnterpriseProxyOutput() EnterpriseProxyOutput
	ToEnterpriseProxyOutputWithContext(ctx context.Context) EnterpriseProxyOutput
}

type EnterpriseProxyMap added in v3.29.0

type EnterpriseProxyMap map[string]EnterpriseProxyInput

func (EnterpriseProxyMap) ElementType added in v3.29.0

func (EnterpriseProxyMap) ElementType() reflect.Type

func (EnterpriseProxyMap) ToEnterpriseProxyMapOutput added in v3.29.0

func (i EnterpriseProxyMap) ToEnterpriseProxyMapOutput() EnterpriseProxyMapOutput

func (EnterpriseProxyMap) ToEnterpriseProxyMapOutputWithContext added in v3.29.0

func (i EnterpriseProxyMap) ToEnterpriseProxyMapOutputWithContext(ctx context.Context) EnterpriseProxyMapOutput

type EnterpriseProxyMapInput added in v3.29.0

type EnterpriseProxyMapInput interface {
	pulumi.Input

	ToEnterpriseProxyMapOutput() EnterpriseProxyMapOutput
	ToEnterpriseProxyMapOutputWithContext(context.Context) EnterpriseProxyMapOutput
}

EnterpriseProxyMapInput is an input type that accepts EnterpriseProxyMap and EnterpriseProxyMapOutput values. You can construct a concrete instance of `EnterpriseProxyMapInput` via:

EnterpriseProxyMap{ "key": EnterpriseProxyArgs{...} }

type EnterpriseProxyMapOutput added in v3.29.0

type EnterpriseProxyMapOutput struct{ *pulumi.OutputState }

func (EnterpriseProxyMapOutput) ElementType added in v3.29.0

func (EnterpriseProxyMapOutput) ElementType() reflect.Type

func (EnterpriseProxyMapOutput) MapIndex added in v3.29.0

func (EnterpriseProxyMapOutput) ToEnterpriseProxyMapOutput added in v3.29.0

func (o EnterpriseProxyMapOutput) ToEnterpriseProxyMapOutput() EnterpriseProxyMapOutput

func (EnterpriseProxyMapOutput) ToEnterpriseProxyMapOutputWithContext added in v3.29.0

func (o EnterpriseProxyMapOutput) ToEnterpriseProxyMapOutputWithContext(ctx context.Context) EnterpriseProxyMapOutput

type EnterpriseProxyOutput added in v3.29.0

type EnterpriseProxyOutput struct{ *pulumi.OutputState }

func (EnterpriseProxyOutput) ElementType added in v3.29.0

func (EnterpriseProxyOutput) ElementType() reflect.Type

func (EnterpriseProxyOutput) InstanceId added in v3.29.0

func (o EnterpriseProxyOutput) InstanceId() pulumi.StringOutput

The ID of the database instance.

func (EnterpriseProxyOutput) Password added in v3.29.0

The password of the database account.

func (EnterpriseProxyOutput) Tid added in v3.29.0

The ID of the tenant.

func (EnterpriseProxyOutput) ToEnterpriseProxyOutput added in v3.29.0

func (o EnterpriseProxyOutput) ToEnterpriseProxyOutput() EnterpriseProxyOutput

func (EnterpriseProxyOutput) ToEnterpriseProxyOutputWithContext added in v3.29.0

func (o EnterpriseProxyOutput) ToEnterpriseProxyOutputWithContext(ctx context.Context) EnterpriseProxyOutput

func (EnterpriseProxyOutput) Username added in v3.29.0

The username of the database account.

type EnterpriseProxyState added in v3.29.0

type EnterpriseProxyState struct {
	// The ID of the database instance.
	InstanceId pulumi.StringPtrInput
	// The password of the database account.
	Password pulumi.StringPtrInput
	// The ID of the tenant.
	Tid pulumi.StringPtrInput
	// The username of the database account.
	Username pulumi.StringPtrInput
}

func (EnterpriseProxyState) ElementType added in v3.29.0

func (EnterpriseProxyState) ElementType() reflect.Type

type EnterpriseUser

type EnterpriseUser struct {
	pulumi.CustomResourceState

	// Maximum number of inquiries on the day.
	MaxExecuteCount pulumi.IntPtrOutput `pulumi:"maxExecuteCount"`
	// Query the maximum number of rows on the day.
	MaxResultCount pulumi.IntPtrOutput `pulumi:"maxResultCount"`
	// The DingTalk number or mobile number of the user.
	Mobile pulumi.StringPtrOutput `pulumi:"mobile"`
	// It has been deprecated from 1.100.0 and use `userName` instead.
	//
	// Deprecated: Field 'nick_name' has been deprecated from version 1.100.0. Use 'user_name' instead.
	NickName pulumi.StringOutput `pulumi:"nickName"`
	// The roles that the user plays.
	RoleNames pulumi.StringArrayOutput `pulumi:"roleNames"`
	// The state of DMS Enterprise User. Valid values: `NORMAL`, `DISABLE`.
	Status pulumi.StringPtrOutput `pulumi:"status"`
	// The tenant ID.
	Tid pulumi.IntPtrOutput `pulumi:"tid"`
	// The Alibaba Cloud unique ID (UID) of the user to add.
	Uid pulumi.StringOutput `pulumi:"uid"`
	// The nickname of the user.
	UserName pulumi.StringOutput `pulumi:"userName"`
}

Provides a DMS Enterprise User resource. For information about Alidms Enterprise User and how to use it, see [What is Resource Alidms Enterprise User](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-registeruser).

> **NOTE:** Available since v1.90.0.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dms"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
"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 := "tfexamplename"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := ram.NewUser(ctx, "default", &ram.UserArgs{
			Name:        pulumi.String(name),
			DisplayName: pulumi.String(name),
			Mobile:      pulumi.String("86-18688888888"),
			Email:       pulumi.String("hello.uuu@aaa.com"),
			Comments:    pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		_, err = dms.NewEnterpriseUser(ctx, "default", &dms.EnterpriseUserArgs{
			Uid:      _default.ID(),
			UserName: pulumi.String(name),
			RoleNames: pulumi.StringArray{
				pulumi.String("DBA"),
			},
			Mobile: pulumi.String("86-18688888888"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

DMS Enterprise User can be imported using the id, e.g.

```sh $ pulumi import alicloud:dms/enterpriseUser:EnterpriseUser example 24356xxx ```

func GetEnterpriseUser

func GetEnterpriseUser(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EnterpriseUserState, opts ...pulumi.ResourceOption) (*EnterpriseUser, error)

GetEnterpriseUser gets an existing EnterpriseUser 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 NewEnterpriseUser

func NewEnterpriseUser(ctx *pulumi.Context,
	name string, args *EnterpriseUserArgs, opts ...pulumi.ResourceOption) (*EnterpriseUser, error)

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

func (*EnterpriseUser) ElementType

func (*EnterpriseUser) ElementType() reflect.Type

func (*EnterpriseUser) ToEnterpriseUserOutput

func (i *EnterpriseUser) ToEnterpriseUserOutput() EnterpriseUserOutput

func (*EnterpriseUser) ToEnterpriseUserOutputWithContext

func (i *EnterpriseUser) ToEnterpriseUserOutputWithContext(ctx context.Context) EnterpriseUserOutput

type EnterpriseUserArgs

type EnterpriseUserArgs struct {
	// Maximum number of inquiries on the day.
	MaxExecuteCount pulumi.IntPtrInput
	// Query the maximum number of rows on the day.
	MaxResultCount pulumi.IntPtrInput
	// The DingTalk number or mobile number of the user.
	Mobile pulumi.StringPtrInput
	// It has been deprecated from 1.100.0 and use `userName` instead.
	//
	// Deprecated: Field 'nick_name' has been deprecated from version 1.100.0. Use 'user_name' instead.
	NickName pulumi.StringPtrInput
	// The roles that the user plays.
	RoleNames pulumi.StringArrayInput
	// The state of DMS Enterprise User. Valid values: `NORMAL`, `DISABLE`.
	Status pulumi.StringPtrInput
	// The tenant ID.
	Tid pulumi.IntPtrInput
	// The Alibaba Cloud unique ID (UID) of the user to add.
	Uid pulumi.StringInput
	// The nickname of the user.
	UserName pulumi.StringPtrInput
}

The set of arguments for constructing a EnterpriseUser resource.

func (EnterpriseUserArgs) ElementType

func (EnterpriseUserArgs) ElementType() reflect.Type

type EnterpriseUserArray

type EnterpriseUserArray []EnterpriseUserInput

func (EnterpriseUserArray) ElementType

func (EnterpriseUserArray) ElementType() reflect.Type

func (EnterpriseUserArray) ToEnterpriseUserArrayOutput

func (i EnterpriseUserArray) ToEnterpriseUserArrayOutput() EnterpriseUserArrayOutput

func (EnterpriseUserArray) ToEnterpriseUserArrayOutputWithContext

func (i EnterpriseUserArray) ToEnterpriseUserArrayOutputWithContext(ctx context.Context) EnterpriseUserArrayOutput

type EnterpriseUserArrayInput

type EnterpriseUserArrayInput interface {
	pulumi.Input

	ToEnterpriseUserArrayOutput() EnterpriseUserArrayOutput
	ToEnterpriseUserArrayOutputWithContext(context.Context) EnterpriseUserArrayOutput
}

EnterpriseUserArrayInput is an input type that accepts EnterpriseUserArray and EnterpriseUserArrayOutput values. You can construct a concrete instance of `EnterpriseUserArrayInput` via:

EnterpriseUserArray{ EnterpriseUserArgs{...} }

type EnterpriseUserArrayOutput

type EnterpriseUserArrayOutput struct{ *pulumi.OutputState }

func (EnterpriseUserArrayOutput) ElementType

func (EnterpriseUserArrayOutput) ElementType() reflect.Type

func (EnterpriseUserArrayOutput) Index

func (EnterpriseUserArrayOutput) ToEnterpriseUserArrayOutput

func (o EnterpriseUserArrayOutput) ToEnterpriseUserArrayOutput() EnterpriseUserArrayOutput

func (EnterpriseUserArrayOutput) ToEnterpriseUserArrayOutputWithContext

func (o EnterpriseUserArrayOutput) ToEnterpriseUserArrayOutputWithContext(ctx context.Context) EnterpriseUserArrayOutput

type EnterpriseUserInput

type EnterpriseUserInput interface {
	pulumi.Input

	ToEnterpriseUserOutput() EnterpriseUserOutput
	ToEnterpriseUserOutputWithContext(ctx context.Context) EnterpriseUserOutput
}

type EnterpriseUserMap

type EnterpriseUserMap map[string]EnterpriseUserInput

func (EnterpriseUserMap) ElementType

func (EnterpriseUserMap) ElementType() reflect.Type

func (EnterpriseUserMap) ToEnterpriseUserMapOutput

func (i EnterpriseUserMap) ToEnterpriseUserMapOutput() EnterpriseUserMapOutput

func (EnterpriseUserMap) ToEnterpriseUserMapOutputWithContext

func (i EnterpriseUserMap) ToEnterpriseUserMapOutputWithContext(ctx context.Context) EnterpriseUserMapOutput

type EnterpriseUserMapInput

type EnterpriseUserMapInput interface {
	pulumi.Input

	ToEnterpriseUserMapOutput() EnterpriseUserMapOutput
	ToEnterpriseUserMapOutputWithContext(context.Context) EnterpriseUserMapOutput
}

EnterpriseUserMapInput is an input type that accepts EnterpriseUserMap and EnterpriseUserMapOutput values. You can construct a concrete instance of `EnterpriseUserMapInput` via:

EnterpriseUserMap{ "key": EnterpriseUserArgs{...} }

type EnterpriseUserMapOutput

type EnterpriseUserMapOutput struct{ *pulumi.OutputState }

func (EnterpriseUserMapOutput) ElementType

func (EnterpriseUserMapOutput) ElementType() reflect.Type

func (EnterpriseUserMapOutput) MapIndex

func (EnterpriseUserMapOutput) ToEnterpriseUserMapOutput

func (o EnterpriseUserMapOutput) ToEnterpriseUserMapOutput() EnterpriseUserMapOutput

func (EnterpriseUserMapOutput) ToEnterpriseUserMapOutputWithContext

func (o EnterpriseUserMapOutput) ToEnterpriseUserMapOutputWithContext(ctx context.Context) EnterpriseUserMapOutput

type EnterpriseUserOutput

type EnterpriseUserOutput struct{ *pulumi.OutputState }

func (EnterpriseUserOutput) ElementType

func (EnterpriseUserOutput) ElementType() reflect.Type

func (EnterpriseUserOutput) MaxExecuteCount added in v3.27.0

func (o EnterpriseUserOutput) MaxExecuteCount() pulumi.IntPtrOutput

Maximum number of inquiries on the day.

func (EnterpriseUserOutput) MaxResultCount added in v3.27.0

func (o EnterpriseUserOutput) MaxResultCount() pulumi.IntPtrOutput

Query the maximum number of rows on the day.

func (EnterpriseUserOutput) Mobile added in v3.27.0

The DingTalk number or mobile number of the user.

func (EnterpriseUserOutput) NickName deprecated added in v3.27.0

It has been deprecated from 1.100.0 and use `userName` instead.

Deprecated: Field 'nick_name' has been deprecated from version 1.100.0. Use 'user_name' instead.

func (EnterpriseUserOutput) RoleNames added in v3.27.0

The roles that the user plays.

func (EnterpriseUserOutput) Status added in v3.27.0

The state of DMS Enterprise User. Valid values: `NORMAL`, `DISABLE`.

func (EnterpriseUserOutput) Tid added in v3.27.0

The tenant ID.

func (EnterpriseUserOutput) ToEnterpriseUserOutput

func (o EnterpriseUserOutput) ToEnterpriseUserOutput() EnterpriseUserOutput

func (EnterpriseUserOutput) ToEnterpriseUserOutputWithContext

func (o EnterpriseUserOutput) ToEnterpriseUserOutputWithContext(ctx context.Context) EnterpriseUserOutput

func (EnterpriseUserOutput) Uid added in v3.27.0

The Alibaba Cloud unique ID (UID) of the user to add.

func (EnterpriseUserOutput) UserName added in v3.27.0

The nickname of the user.

type EnterpriseUserState

type EnterpriseUserState struct {
	// Maximum number of inquiries on the day.
	MaxExecuteCount pulumi.IntPtrInput
	// Query the maximum number of rows on the day.
	MaxResultCount pulumi.IntPtrInput
	// The DingTalk number or mobile number of the user.
	Mobile pulumi.StringPtrInput
	// It has been deprecated from 1.100.0 and use `userName` instead.
	//
	// Deprecated: Field 'nick_name' has been deprecated from version 1.100.0. Use 'user_name' instead.
	NickName pulumi.StringPtrInput
	// The roles that the user plays.
	RoleNames pulumi.StringArrayInput
	// The state of DMS Enterprise User. Valid values: `NORMAL`, `DISABLE`.
	Status pulumi.StringPtrInput
	// The tenant ID.
	Tid pulumi.IntPtrInput
	// The Alibaba Cloud unique ID (UID) of the user to add.
	Uid pulumi.StringPtrInput
	// The nickname of the user.
	UserName pulumi.StringPtrInput
}

func (EnterpriseUserState) ElementType

func (EnterpriseUserState) ElementType() reflect.Type

type GetEnterpriseDatabasesArgs added in v3.29.0

type GetEnterpriseDatabasesArgs struct {
	// A list of Database IDs.
	Ids []string `pulumi:"ids"`
	// The instance ID of the target database.
	InstanceId string `pulumi:"instanceId"`
	// A regex string to filter the results by the database Schema Name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getEnterpriseDatabases.

type GetEnterpriseDatabasesDatabase added in v3.29.0

type GetEnterpriseDatabasesDatabase struct {
	// The name of the Database Directory.> PG Series databases will display the database name.
	CatalogName string `pulumi:"catalogName"`
	// The ID of the physical library.
	DatabaseId string `pulumi:"databaseId"`
	// Database type.
	DbType string `pulumi:"dbType"`
	// The DBA user ID of the target database.
	DbaId string `pulumi:"dbaId"`
	// The DBA nickname of the target Library.
	DbaName string `pulumi:"dbaName"`
	// Database encoding.
	Encoding string `pulumi:"encoding"`
	// The environment type of the database.
	EnvType string `pulumi:"envType"`
	// The database connection address.
	Host string `pulumi:"host"`
	// The Database ID, same value as `databaseId`.
	Id string `pulumi:"id"`
	// The instance ID of the target database.
	InstanceId string `pulumi:"instanceId"`
	// Library Owner User ID list.
	OwnerIdLists []string `pulumi:"ownerIdLists"`
	// Library Owner nickname list.
	OwnerNameLists []string `pulumi:"ownerNameLists"`
	// The connection port of the database.
	Port int `pulumi:"port"`
	// The name of the database.> PG Series databases will display schema names.
	SchemaName string `pulumi:"schemaName"`
	// Library search name.
	SearchName string `pulumi:"searchName"`
	// Database SID.> only Oracle Database Display.
	Sid string `pulumi:"sid"`
	// Library status, value description:-**NORMAL**: NORMAL-**DISABLE**: Disabled-**OFFLINE**: OFFLINE-**NOT_EXIST**: does not exist
	State string `pulumi:"state"`
}

type GetEnterpriseDatabasesDatabaseArgs added in v3.29.0

type GetEnterpriseDatabasesDatabaseArgs struct {
	// The name of the Database Directory.> PG Series databases will display the database name.
	CatalogName pulumi.StringInput `pulumi:"catalogName"`
	// The ID of the physical library.
	DatabaseId pulumi.StringInput `pulumi:"databaseId"`
	// Database type.
	DbType pulumi.StringInput `pulumi:"dbType"`
	// The DBA user ID of the target database.
	DbaId pulumi.StringInput `pulumi:"dbaId"`
	// The DBA nickname of the target Library.
	DbaName pulumi.StringInput `pulumi:"dbaName"`
	// Database encoding.
	Encoding pulumi.StringInput `pulumi:"encoding"`
	// The environment type of the database.
	EnvType pulumi.StringInput `pulumi:"envType"`
	// The database connection address.
	Host pulumi.StringInput `pulumi:"host"`
	// The Database ID, same value as `databaseId`.
	Id pulumi.StringInput `pulumi:"id"`
	// The instance ID of the target database.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// Library Owner User ID list.
	OwnerIdLists pulumi.StringArrayInput `pulumi:"ownerIdLists"`
	// Library Owner nickname list.
	OwnerNameLists pulumi.StringArrayInput `pulumi:"ownerNameLists"`
	// The connection port of the database.
	Port pulumi.IntInput `pulumi:"port"`
	// The name of the database.> PG Series databases will display schema names.
	SchemaName pulumi.StringInput `pulumi:"schemaName"`
	// Library search name.
	SearchName pulumi.StringInput `pulumi:"searchName"`
	// Database SID.> only Oracle Database Display.
	Sid pulumi.StringInput `pulumi:"sid"`
	// Library status, value description:-**NORMAL**: NORMAL-**DISABLE**: Disabled-**OFFLINE**: OFFLINE-**NOT_EXIST**: does not exist
	State pulumi.StringInput `pulumi:"state"`
}

func (GetEnterpriseDatabasesDatabaseArgs) ElementType added in v3.29.0

func (GetEnterpriseDatabasesDatabaseArgs) ToGetEnterpriseDatabasesDatabaseOutput added in v3.29.0

func (i GetEnterpriseDatabasesDatabaseArgs) ToGetEnterpriseDatabasesDatabaseOutput() GetEnterpriseDatabasesDatabaseOutput

func (GetEnterpriseDatabasesDatabaseArgs) ToGetEnterpriseDatabasesDatabaseOutputWithContext added in v3.29.0

func (i GetEnterpriseDatabasesDatabaseArgs) ToGetEnterpriseDatabasesDatabaseOutputWithContext(ctx context.Context) GetEnterpriseDatabasesDatabaseOutput

type GetEnterpriseDatabasesDatabaseArray added in v3.29.0

type GetEnterpriseDatabasesDatabaseArray []GetEnterpriseDatabasesDatabaseInput

func (GetEnterpriseDatabasesDatabaseArray) ElementType added in v3.29.0

func (GetEnterpriseDatabasesDatabaseArray) ToGetEnterpriseDatabasesDatabaseArrayOutput added in v3.29.0

func (i GetEnterpriseDatabasesDatabaseArray) ToGetEnterpriseDatabasesDatabaseArrayOutput() GetEnterpriseDatabasesDatabaseArrayOutput

func (GetEnterpriseDatabasesDatabaseArray) ToGetEnterpriseDatabasesDatabaseArrayOutputWithContext added in v3.29.0

func (i GetEnterpriseDatabasesDatabaseArray) ToGetEnterpriseDatabasesDatabaseArrayOutputWithContext(ctx context.Context) GetEnterpriseDatabasesDatabaseArrayOutput

type GetEnterpriseDatabasesDatabaseArrayInput added in v3.29.0

type GetEnterpriseDatabasesDatabaseArrayInput interface {
	pulumi.Input

	ToGetEnterpriseDatabasesDatabaseArrayOutput() GetEnterpriseDatabasesDatabaseArrayOutput
	ToGetEnterpriseDatabasesDatabaseArrayOutputWithContext(context.Context) GetEnterpriseDatabasesDatabaseArrayOutput
}

GetEnterpriseDatabasesDatabaseArrayInput is an input type that accepts GetEnterpriseDatabasesDatabaseArray and GetEnterpriseDatabasesDatabaseArrayOutput values. You can construct a concrete instance of `GetEnterpriseDatabasesDatabaseArrayInput` via:

GetEnterpriseDatabasesDatabaseArray{ GetEnterpriseDatabasesDatabaseArgs{...} }

type GetEnterpriseDatabasesDatabaseArrayOutput added in v3.29.0

type GetEnterpriseDatabasesDatabaseArrayOutput struct{ *pulumi.OutputState }

func (GetEnterpriseDatabasesDatabaseArrayOutput) ElementType added in v3.29.0

func (GetEnterpriseDatabasesDatabaseArrayOutput) Index added in v3.29.0

func (GetEnterpriseDatabasesDatabaseArrayOutput) ToGetEnterpriseDatabasesDatabaseArrayOutput added in v3.29.0

func (o GetEnterpriseDatabasesDatabaseArrayOutput) ToGetEnterpriseDatabasesDatabaseArrayOutput() GetEnterpriseDatabasesDatabaseArrayOutput

func (GetEnterpriseDatabasesDatabaseArrayOutput) ToGetEnterpriseDatabasesDatabaseArrayOutputWithContext added in v3.29.0

func (o GetEnterpriseDatabasesDatabaseArrayOutput) ToGetEnterpriseDatabasesDatabaseArrayOutputWithContext(ctx context.Context) GetEnterpriseDatabasesDatabaseArrayOutput

type GetEnterpriseDatabasesDatabaseInput added in v3.29.0

type GetEnterpriseDatabasesDatabaseInput interface {
	pulumi.Input

	ToGetEnterpriseDatabasesDatabaseOutput() GetEnterpriseDatabasesDatabaseOutput
	ToGetEnterpriseDatabasesDatabaseOutputWithContext(context.Context) GetEnterpriseDatabasesDatabaseOutput
}

GetEnterpriseDatabasesDatabaseInput is an input type that accepts GetEnterpriseDatabasesDatabaseArgs and GetEnterpriseDatabasesDatabaseOutput values. You can construct a concrete instance of `GetEnterpriseDatabasesDatabaseInput` via:

GetEnterpriseDatabasesDatabaseArgs{...}

type GetEnterpriseDatabasesDatabaseOutput added in v3.29.0

type GetEnterpriseDatabasesDatabaseOutput struct{ *pulumi.OutputState }

func (GetEnterpriseDatabasesDatabaseOutput) CatalogName added in v3.29.0

The name of the Database Directory.> PG Series databases will display the database name.

func (GetEnterpriseDatabasesDatabaseOutput) DatabaseId added in v3.29.0

The ID of the physical library.

func (GetEnterpriseDatabasesDatabaseOutput) DbType added in v3.29.0

Database type.

func (GetEnterpriseDatabasesDatabaseOutput) DbaId added in v3.29.0

The DBA user ID of the target database.

func (GetEnterpriseDatabasesDatabaseOutput) DbaName added in v3.29.0

The DBA nickname of the target Library.

func (GetEnterpriseDatabasesDatabaseOutput) ElementType added in v3.29.0

func (GetEnterpriseDatabasesDatabaseOutput) Encoding added in v3.29.0

Database encoding.

func (GetEnterpriseDatabasesDatabaseOutput) EnvType added in v3.29.0

The environment type of the database.

func (GetEnterpriseDatabasesDatabaseOutput) Host added in v3.29.0

The database connection address.

func (GetEnterpriseDatabasesDatabaseOutput) Id added in v3.29.0

The Database ID, same value as `databaseId`.

func (GetEnterpriseDatabasesDatabaseOutput) InstanceId added in v3.29.0

The instance ID of the target database.

func (GetEnterpriseDatabasesDatabaseOutput) OwnerIdLists added in v3.29.0

Library Owner User ID list.

func (GetEnterpriseDatabasesDatabaseOutput) OwnerNameLists added in v3.29.0

Library Owner nickname list.

func (GetEnterpriseDatabasesDatabaseOutput) Port added in v3.29.0

The connection port of the database.

func (GetEnterpriseDatabasesDatabaseOutput) SchemaName added in v3.29.0

The name of the database.> PG Series databases will display schema names.

func (GetEnterpriseDatabasesDatabaseOutput) SearchName added in v3.29.0

Library search name.

func (GetEnterpriseDatabasesDatabaseOutput) Sid added in v3.29.0

Database SID.> only Oracle Database Display.

func (GetEnterpriseDatabasesDatabaseOutput) State added in v3.29.0

Library status, value description:-**NORMAL**: NORMAL-**DISABLE**: Disabled-**OFFLINE**: OFFLINE-**NOT_EXIST**: does not exist

func (GetEnterpriseDatabasesDatabaseOutput) ToGetEnterpriseDatabasesDatabaseOutput added in v3.29.0

func (o GetEnterpriseDatabasesDatabaseOutput) ToGetEnterpriseDatabasesDatabaseOutput() GetEnterpriseDatabasesDatabaseOutput

func (GetEnterpriseDatabasesDatabaseOutput) ToGetEnterpriseDatabasesDatabaseOutputWithContext added in v3.29.0

func (o GetEnterpriseDatabasesDatabaseOutput) ToGetEnterpriseDatabasesDatabaseOutputWithContext(ctx context.Context) GetEnterpriseDatabasesDatabaseOutput

type GetEnterpriseDatabasesOutputArgs added in v3.29.0

type GetEnterpriseDatabasesOutputArgs struct {
	// A list of Database IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The instance ID of the target database.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// A regex string to filter the results by the database Schema Name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getEnterpriseDatabases.

func (GetEnterpriseDatabasesOutputArgs) ElementType added in v3.29.0

type GetEnterpriseDatabasesResult added in v3.29.0

type GetEnterpriseDatabasesResult struct {
	// A list of Database Entries. Each element contains the following attributes:
	Databases []GetEnterpriseDatabasesDatabase `pulumi:"databases"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of Database IDs.
	Ids []string `pulumi:"ids"`
	// The instance ID of the target database.
	InstanceId string  `pulumi:"instanceId"`
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of values returned by getEnterpriseDatabases.

func GetEnterpriseDatabases added in v3.29.0

func GetEnterpriseDatabases(ctx *pulumi.Context, args *GetEnterpriseDatabasesArgs, opts ...pulumi.InvokeOption) (*GetEnterpriseDatabasesResult, error)

This data source provides DMS Enterprise Database available to the user. [What is Database](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-listdatabases).

> **NOTE:** Available since v1.195.0.

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := dms.GetEnterpriseDatabases(ctx, &dms.GetEnterpriseDatabasesArgs{
			NameRegex:  pulumi.StringRef("test2"),
			InstanceId: "2195118",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("alicloudDmsEnterpriseDatabaseExampleId", _default.Databases[0].Id)
		return nil
	})
}

```

type GetEnterpriseDatabasesResultOutput added in v3.29.0

type GetEnterpriseDatabasesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnterpriseDatabases.

func GetEnterpriseDatabasesOutput added in v3.29.0

func (GetEnterpriseDatabasesResultOutput) Databases added in v3.29.0

A list of Database Entries. Each element contains the following attributes:

func (GetEnterpriseDatabasesResultOutput) ElementType added in v3.29.0

func (GetEnterpriseDatabasesResultOutput) Id added in v3.29.0

The provider-assigned unique ID for this managed resource.

func (GetEnterpriseDatabasesResultOutput) Ids added in v3.29.0

A list of Database IDs.

func (GetEnterpriseDatabasesResultOutput) InstanceId added in v3.29.0

The instance ID of the target database.

func (GetEnterpriseDatabasesResultOutput) NameRegex added in v3.29.0

func (GetEnterpriseDatabasesResultOutput) OutputFile added in v3.29.0

func (GetEnterpriseDatabasesResultOutput) ToGetEnterpriseDatabasesResultOutput added in v3.29.0

func (o GetEnterpriseDatabasesResultOutput) ToGetEnterpriseDatabasesResultOutput() GetEnterpriseDatabasesResultOutput

func (GetEnterpriseDatabasesResultOutput) ToGetEnterpriseDatabasesResultOutputWithContext added in v3.29.0

func (o GetEnterpriseDatabasesResultOutput) ToGetEnterpriseDatabasesResultOutputWithContext(ctx context.Context) GetEnterpriseDatabasesResultOutput

type GetEnterpriseInstancesArgs

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"`
	// A regex string to filter the results by the DMS Enterprise Instance instance_alias.
	NameRegex *string `pulumi:"nameRegex"`
	// 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"`
	// File name where to save data source results (after running `pulumi preview`).
	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 arguments for invoking getEnterpriseInstances.

type GetEnterpriseInstancesInstance

type GetEnterpriseInstancesInstance struct {
	// The name of the data link for the database instance.
	DataLinkName string `pulumi:"dataLinkName"`
	// The logon password of the database instance.
	DatabasePassword string `pulumi:"databasePassword"`
	// The logon username of the database instance.
	DatabaseUser string `pulumi:"databaseUser"`
	// The ID of the database administrator (DBA) of the database instance.
	DbaId string `pulumi:"dbaId"`
	// The nickname of the DBA.
	DbaNickName string `pulumi:"dbaNickName"`
	// Indicates whether the online data description language (DDL) service was enabled for the database instance.
	DdlOnline int `pulumi:"ddlOnline"`
	// The ID of the Elastic Compute Service (ECS) instance to which the database instance belongs.
	EcsInstanceId string `pulumi:"ecsInstanceId"`
	// The region where the database instance resides.
	EcsRegion string `pulumi:"ecsRegion"`
	// The type of the environment to which the database instance belongs.
	EnvType string `pulumi:"envType"`
	// The timeout period for exporting the database instance.
	ExportTimeout int `pulumi:"exportTimeout"`
	// The endpoint of the database instance.
	Host string `pulumi:"host"`
	Id   string `pulumi:"id"`
	// The alias of the database instance.
	InstanceAlias string `pulumi:"instanceAlias"`
	// The ID of the database instance.
	InstanceId   string `pulumi:"instanceId"`
	InstanceName string `pulumi:"instanceName"`
	// The source of the database instance.
	InstanceSource string `pulumi:"instanceSource"`
	// The ID of the database instance.
	InstanceType string `pulumi:"instanceType"`
	// The connection port of the database instance.
	Port int `pulumi:"port"`
	// The timeout period for querying the database instance.
	QueryTimeout int `pulumi:"queryTimeout"`
	// The ID of the security rule for the database instance.
	SafeRuleId string `pulumi:"safeRuleId"`
	// The system ID (SID) of the database instance.
	Sid string `pulumi:"sid"`
	// Filter the results by status of the DMS Enterprise Instances. Valid values: `NORMAL`, `UNAVAILABLE`, `UNKNOWN`, `DELETED`, `DISABLE`.
	Status string `pulumi:"status"`
	// Indicates whether cross-database query was enabled for the database instance.
	UseDsql int `pulumi:"useDsql"`
	// The ID of the Virtual Private Cloud (VPC) to which the database instance belongs.
	VpcId string `pulumi:"vpcId"`
}

type GetEnterpriseInstancesInstanceArgs

type GetEnterpriseInstancesInstanceArgs struct {
	// The name of the data link for the database instance.
	DataLinkName pulumi.StringInput `pulumi:"dataLinkName"`
	// The logon password of the database instance.
	DatabasePassword pulumi.StringInput `pulumi:"databasePassword"`
	// The logon username of the database instance.
	DatabaseUser pulumi.StringInput `pulumi:"databaseUser"`
	// The ID of the database administrator (DBA) of the database instance.
	DbaId pulumi.StringInput `pulumi:"dbaId"`
	// The nickname of the DBA.
	DbaNickName pulumi.StringInput `pulumi:"dbaNickName"`
	// Indicates whether the online data description language (DDL) service was enabled for the database instance.
	DdlOnline pulumi.IntInput `pulumi:"ddlOnline"`
	// The ID of the Elastic Compute Service (ECS) instance to which the database instance belongs.
	EcsInstanceId pulumi.StringInput `pulumi:"ecsInstanceId"`
	// The region where the database instance resides.
	EcsRegion pulumi.StringInput `pulumi:"ecsRegion"`
	// The type of the environment to which the database instance belongs.
	EnvType pulumi.StringInput `pulumi:"envType"`
	// The timeout period for exporting the database instance.
	ExportTimeout pulumi.IntInput `pulumi:"exportTimeout"`
	// The endpoint of the database instance.
	Host pulumi.StringInput `pulumi:"host"`
	Id   pulumi.StringInput `pulumi:"id"`
	// The alias of the database instance.
	InstanceAlias pulumi.StringInput `pulumi:"instanceAlias"`
	// The ID of the database instance.
	InstanceId   pulumi.StringInput `pulumi:"instanceId"`
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// The source of the database instance.
	InstanceSource pulumi.StringInput `pulumi:"instanceSource"`
	// The ID of the database instance.
	InstanceType pulumi.StringInput `pulumi:"instanceType"`
	// The connection port of the database instance.
	Port pulumi.IntInput `pulumi:"port"`
	// The timeout period for querying the database instance.
	QueryTimeout pulumi.IntInput `pulumi:"queryTimeout"`
	// The ID of the security rule for the database instance.
	SafeRuleId pulumi.StringInput `pulumi:"safeRuleId"`
	// The system ID (SID) of the database instance.
	Sid pulumi.StringInput `pulumi:"sid"`
	// Filter the results by status of the DMS Enterprise Instances. Valid values: `NORMAL`, `UNAVAILABLE`, `UNKNOWN`, `DELETED`, `DISABLE`.
	Status pulumi.StringInput `pulumi:"status"`
	// Indicates whether cross-database query was enabled for the database instance.
	UseDsql pulumi.IntInput `pulumi:"useDsql"`
	// The ID of the Virtual Private Cloud (VPC) to which the database instance belongs.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
}

func (GetEnterpriseInstancesInstanceArgs) ElementType

func (GetEnterpriseInstancesInstanceArgs) ToGetEnterpriseInstancesInstanceOutput

func (i GetEnterpriseInstancesInstanceArgs) ToGetEnterpriseInstancesInstanceOutput() GetEnterpriseInstancesInstanceOutput

func (GetEnterpriseInstancesInstanceArgs) ToGetEnterpriseInstancesInstanceOutputWithContext

func (i GetEnterpriseInstancesInstanceArgs) ToGetEnterpriseInstancesInstanceOutputWithContext(ctx context.Context) GetEnterpriseInstancesInstanceOutput

type GetEnterpriseInstancesInstanceArray

type GetEnterpriseInstancesInstanceArray []GetEnterpriseInstancesInstanceInput

func (GetEnterpriseInstancesInstanceArray) ElementType

func (GetEnterpriseInstancesInstanceArray) ToGetEnterpriseInstancesInstanceArrayOutput

func (i GetEnterpriseInstancesInstanceArray) ToGetEnterpriseInstancesInstanceArrayOutput() GetEnterpriseInstancesInstanceArrayOutput

func (GetEnterpriseInstancesInstanceArray) ToGetEnterpriseInstancesInstanceArrayOutputWithContext

func (i GetEnterpriseInstancesInstanceArray) ToGetEnterpriseInstancesInstanceArrayOutputWithContext(ctx context.Context) GetEnterpriseInstancesInstanceArrayOutput

type GetEnterpriseInstancesInstanceArrayInput

type GetEnterpriseInstancesInstanceArrayInput interface {
	pulumi.Input

	ToGetEnterpriseInstancesInstanceArrayOutput() GetEnterpriseInstancesInstanceArrayOutput
	ToGetEnterpriseInstancesInstanceArrayOutputWithContext(context.Context) GetEnterpriseInstancesInstanceArrayOutput
}

GetEnterpriseInstancesInstanceArrayInput is an input type that accepts GetEnterpriseInstancesInstanceArray and GetEnterpriseInstancesInstanceArrayOutput values. You can construct a concrete instance of `GetEnterpriseInstancesInstanceArrayInput` via:

GetEnterpriseInstancesInstanceArray{ GetEnterpriseInstancesInstanceArgs{...} }

type GetEnterpriseInstancesInstanceArrayOutput

type GetEnterpriseInstancesInstanceArrayOutput struct{ *pulumi.OutputState }

func (GetEnterpriseInstancesInstanceArrayOutput) ElementType

func (GetEnterpriseInstancesInstanceArrayOutput) Index

func (GetEnterpriseInstancesInstanceArrayOutput) ToGetEnterpriseInstancesInstanceArrayOutput

func (o GetEnterpriseInstancesInstanceArrayOutput) ToGetEnterpriseInstancesInstanceArrayOutput() GetEnterpriseInstancesInstanceArrayOutput

func (GetEnterpriseInstancesInstanceArrayOutput) ToGetEnterpriseInstancesInstanceArrayOutputWithContext

func (o GetEnterpriseInstancesInstanceArrayOutput) ToGetEnterpriseInstancesInstanceArrayOutputWithContext(ctx context.Context) GetEnterpriseInstancesInstanceArrayOutput

type GetEnterpriseInstancesInstanceInput

type GetEnterpriseInstancesInstanceInput interface {
	pulumi.Input

	ToGetEnterpriseInstancesInstanceOutput() GetEnterpriseInstancesInstanceOutput
	ToGetEnterpriseInstancesInstanceOutputWithContext(context.Context) GetEnterpriseInstancesInstanceOutput
}

GetEnterpriseInstancesInstanceInput is an input type that accepts GetEnterpriseInstancesInstanceArgs and GetEnterpriseInstancesInstanceOutput values. You can construct a concrete instance of `GetEnterpriseInstancesInstanceInput` via:

GetEnterpriseInstancesInstanceArgs{...}

type GetEnterpriseInstancesInstanceOutput

type GetEnterpriseInstancesInstanceOutput struct{ *pulumi.OutputState }

func (GetEnterpriseInstancesInstanceOutput) DataLinkName

The name of the data link for the database instance.

func (GetEnterpriseInstancesInstanceOutput) DatabasePassword

The logon password of the database instance.

func (GetEnterpriseInstancesInstanceOutput) DatabaseUser

The logon username of the database instance.

func (GetEnterpriseInstancesInstanceOutput) DbaId

The ID of the database administrator (DBA) of the database instance.

func (GetEnterpriseInstancesInstanceOutput) DbaNickName

The nickname of the DBA.

func (GetEnterpriseInstancesInstanceOutput) DdlOnline

Indicates whether the online data description language (DDL) service was enabled for the database instance.

func (GetEnterpriseInstancesInstanceOutput) EcsInstanceId

The ID of the Elastic Compute Service (ECS) instance to which the database instance belongs.

func (GetEnterpriseInstancesInstanceOutput) EcsRegion

The region where the database instance resides.

func (GetEnterpriseInstancesInstanceOutput) ElementType

func (GetEnterpriseInstancesInstanceOutput) EnvType

The type of the environment to which the database instance belongs.

func (GetEnterpriseInstancesInstanceOutput) ExportTimeout

The timeout period for exporting the database instance.

func (GetEnterpriseInstancesInstanceOutput) Host

The endpoint of the database instance.

func (GetEnterpriseInstancesInstanceOutput) Id

func (GetEnterpriseInstancesInstanceOutput) InstanceAlias

The alias of the database instance.

func (GetEnterpriseInstancesInstanceOutput) InstanceId

The ID of the database instance.

func (GetEnterpriseInstancesInstanceOutput) InstanceName

func (GetEnterpriseInstancesInstanceOutput) InstanceSource

The source of the database instance.

func (GetEnterpriseInstancesInstanceOutput) InstanceType

The ID of the database instance.

func (GetEnterpriseInstancesInstanceOutput) Port

The connection port of the database instance.

func (GetEnterpriseInstancesInstanceOutput) QueryTimeout

The timeout period for querying the database instance.

func (GetEnterpriseInstancesInstanceOutput) SafeRuleId

The ID of the security rule for the database instance.

func (GetEnterpriseInstancesInstanceOutput) Sid

The system ID (SID) of the database instance.

func (GetEnterpriseInstancesInstanceOutput) Status

Filter the results by status of the DMS Enterprise Instances. Valid values: `NORMAL`, `UNAVAILABLE`, `UNKNOWN`, `DELETED`, `DISABLE`.

func (GetEnterpriseInstancesInstanceOutput) ToGetEnterpriseInstancesInstanceOutput

func (o GetEnterpriseInstancesInstanceOutput) ToGetEnterpriseInstancesInstanceOutput() GetEnterpriseInstancesInstanceOutput

func (GetEnterpriseInstancesInstanceOutput) ToGetEnterpriseInstancesInstanceOutputWithContext

func (o GetEnterpriseInstancesInstanceOutput) ToGetEnterpriseInstancesInstanceOutputWithContext(ctx context.Context) GetEnterpriseInstancesInstanceOutput

func (GetEnterpriseInstancesInstanceOutput) UseDsql

Indicates whether cross-database query was enabled for the database instance.

func (GetEnterpriseInstancesInstanceOutput) VpcId

The ID of the Virtual Private Cloud (VPC) to which the database instance belongs.

type GetEnterpriseInstancesOutputArgs added in v3.9.0

type GetEnterpriseInstancesOutputArgs struct {
	// The type of the environment to which the database instance belongs.
	EnvType pulumi.StringPtrInput `pulumi:"envType"`
	// A regex string to filter the results by the DMS Enterprise Instance instance_alias.
	InstanceAliasRegex pulumi.StringPtrInput `pulumi:"instanceAliasRegex"`
	// The source of the database instance.
	InstanceSource pulumi.StringPtrInput `pulumi:"instanceSource"`
	// The ID of the database instance.
	InstanceType pulumi.StringPtrInput `pulumi:"instanceType"`
	// A regex string to filter the results by the DMS Enterprise Instance instance_alias.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// 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 pulumi.StringPtrInput `pulumi:"netType"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The keyword used to query database instances.
	SearchKey pulumi.StringPtrInput `pulumi:"searchKey"`
	// Filter the results by status of the DMS Enterprise Instances. Valid values: `NORMAL`, `UNAVAILABLE`, `UNKNOWN`, `DELETED`, `DISABLE`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The ID of the tenant in Data Management (DMS) Enterprise.
	Tid pulumi.IntPtrInput `pulumi:"tid"`
}

A collection of arguments for invoking getEnterpriseInstances.

func (GetEnterpriseInstancesOutputArgs) ElementType added in v3.9.0

type GetEnterpriseInstancesResult

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"`
	// A list of DMS Enterprise IDs (Each of them consists of host:port).
	Ids                []string `pulumi:"ids"`
	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"`
	NameRegex *string                          `pulumi:"nameRegex"`
	// A list of DMS Enterprise names.
	Names      []string `pulumi:"names"`
	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"`
}

A collection of values returned by getEnterpriseInstances.

func GetEnterpriseInstances

func GetEnterpriseInstances(ctx *pulumi.Context, args *GetEnterpriseInstancesArgs, opts ...pulumi.InvokeOption) (*GetEnterpriseInstancesResult, error)

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+

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Declare the data source
		dmsEnterpriseInstancesDs, err := dms.GetEnterpriseInstances(ctx, &dms.GetEnterpriseInstancesArgs{
			NetType:      pulumi.StringRef("CLASSIC"),
			InstanceType: pulumi.StringRef("mysql"),
			EnvType:      pulumi.StringRef("test"),
			NameRegex:    pulumi.StringRef("tf_testAcc"),
			OutputFile:   pulumi.StringRef("dms_enterprise_instances.json"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstDatabaseInstanceId", dmsEnterpriseInstancesDs.Instances[0].InstanceId)
		return nil
	})
}

```

type GetEnterpriseInstancesResultOutput added in v3.9.0

type GetEnterpriseInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnterpriseInstances.

func GetEnterpriseInstancesOutput added in v3.9.0

func (GetEnterpriseInstancesResultOutput) ElementType added in v3.9.0

func (GetEnterpriseInstancesResultOutput) EnvType added in v3.9.0

The type of the environment to which the database instance belongs..

func (GetEnterpriseInstancesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetEnterpriseInstancesResultOutput) Ids added in v3.9.0

A list of DMS Enterprise IDs (Each of them consists of host:port).

func (GetEnterpriseInstancesResultOutput) InstanceAliasRegex added in v3.9.0

func (GetEnterpriseInstancesResultOutput) InstanceSource added in v3.9.0

The ID of the database instance.

func (GetEnterpriseInstancesResultOutput) InstanceType added in v3.9.0

The ID of the database instance.

func (GetEnterpriseInstancesResultOutput) Instances added in v3.9.0

A list of KMS keys. Each element contains the following attributes:

func (GetEnterpriseInstancesResultOutput) NameRegex added in v3.9.0

func (GetEnterpriseInstancesResultOutput) Names added in v3.9.0

A list of DMS Enterprise names.

func (GetEnterpriseInstancesResultOutput) NetType added in v3.9.0

func (GetEnterpriseInstancesResultOutput) OutputFile added in v3.9.0

func (GetEnterpriseInstancesResultOutput) SearchKey added in v3.9.0

func (GetEnterpriseInstancesResultOutput) Status added in v3.9.0

The status of the database instance.

func (GetEnterpriseInstancesResultOutput) Tid added in v3.9.0

func (GetEnterpriseInstancesResultOutput) ToGetEnterpriseInstancesResultOutput added in v3.9.0

func (o GetEnterpriseInstancesResultOutput) ToGetEnterpriseInstancesResultOutput() GetEnterpriseInstancesResultOutput

func (GetEnterpriseInstancesResultOutput) ToGetEnterpriseInstancesResultOutputWithContext added in v3.9.0

func (o GetEnterpriseInstancesResultOutput) ToGetEnterpriseInstancesResultOutputWithContext(ctx context.Context) GetEnterpriseInstancesResultOutput

type GetEnterpriseLogicDatabasesArgs added in v3.29.0

type GetEnterpriseLogicDatabasesArgs struct {
	// A list of Logic Database IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getEnterpriseLogicDatabases.

type GetEnterpriseLogicDatabasesDatabase added in v3.29.0

type GetEnterpriseLogicDatabasesDatabase struct {
	// Logical Library alias.
	Alias string `pulumi:"alias"`
	// Sub-Database ID.
	DatabaseIds []string `pulumi:"databaseIds"`
	// Database type.
	DbType string `pulumi:"dbType"`
	// Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
	EnvType string `pulumi:"envType"`
	// Logic Database ID.
	Id string `pulumi:"id"`
	// Whether it is a logical Library, the return value is true.
	Logic bool `pulumi:"logic"`
	// The ID of the logical Library.
	LogicDatabaseId string `pulumi:"logicDatabaseId"`
	// The user ID list of the logical library Owner.
	OwnerIdLists []string `pulumi:"ownerIdLists"`
	// The nickname list of the logical library Owner.
	OwnerNameLists []string `pulumi:"ownerNameLists"`
	// Logical Library name.
	SchemaName string `pulumi:"schemaName"`
	// Logical library search name.
	SearchName string `pulumi:"searchName"`
}

type GetEnterpriseLogicDatabasesDatabaseArgs added in v3.29.0

type GetEnterpriseLogicDatabasesDatabaseArgs struct {
	// Logical Library alias.
	Alias pulumi.StringInput `pulumi:"alias"`
	// Sub-Database ID.
	DatabaseIds pulumi.StringArrayInput `pulumi:"databaseIds"`
	// Database type.
	DbType pulumi.StringInput `pulumi:"dbType"`
	// Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
	EnvType pulumi.StringInput `pulumi:"envType"`
	// Logic Database ID.
	Id pulumi.StringInput `pulumi:"id"`
	// Whether it is a logical Library, the return value is true.
	Logic pulumi.BoolInput `pulumi:"logic"`
	// The ID of the logical Library.
	LogicDatabaseId pulumi.StringInput `pulumi:"logicDatabaseId"`
	// The user ID list of the logical library Owner.
	OwnerIdLists pulumi.StringArrayInput `pulumi:"ownerIdLists"`
	// The nickname list of the logical library Owner.
	OwnerNameLists pulumi.StringArrayInput `pulumi:"ownerNameLists"`
	// Logical Library name.
	SchemaName pulumi.StringInput `pulumi:"schemaName"`
	// Logical library search name.
	SearchName pulumi.StringInput `pulumi:"searchName"`
}

func (GetEnterpriseLogicDatabasesDatabaseArgs) ElementType added in v3.29.0

func (GetEnterpriseLogicDatabasesDatabaseArgs) ToGetEnterpriseLogicDatabasesDatabaseOutput added in v3.29.0

func (i GetEnterpriseLogicDatabasesDatabaseArgs) ToGetEnterpriseLogicDatabasesDatabaseOutput() GetEnterpriseLogicDatabasesDatabaseOutput

func (GetEnterpriseLogicDatabasesDatabaseArgs) ToGetEnterpriseLogicDatabasesDatabaseOutputWithContext added in v3.29.0

func (i GetEnterpriseLogicDatabasesDatabaseArgs) ToGetEnterpriseLogicDatabasesDatabaseOutputWithContext(ctx context.Context) GetEnterpriseLogicDatabasesDatabaseOutput

type GetEnterpriseLogicDatabasesDatabaseArray added in v3.29.0

type GetEnterpriseLogicDatabasesDatabaseArray []GetEnterpriseLogicDatabasesDatabaseInput

func (GetEnterpriseLogicDatabasesDatabaseArray) ElementType added in v3.29.0

func (GetEnterpriseLogicDatabasesDatabaseArray) ToGetEnterpriseLogicDatabasesDatabaseArrayOutput added in v3.29.0

func (i GetEnterpriseLogicDatabasesDatabaseArray) ToGetEnterpriseLogicDatabasesDatabaseArrayOutput() GetEnterpriseLogicDatabasesDatabaseArrayOutput

func (GetEnterpriseLogicDatabasesDatabaseArray) ToGetEnterpriseLogicDatabasesDatabaseArrayOutputWithContext added in v3.29.0

func (i GetEnterpriseLogicDatabasesDatabaseArray) ToGetEnterpriseLogicDatabasesDatabaseArrayOutputWithContext(ctx context.Context) GetEnterpriseLogicDatabasesDatabaseArrayOutput

type GetEnterpriseLogicDatabasesDatabaseArrayInput added in v3.29.0

type GetEnterpriseLogicDatabasesDatabaseArrayInput interface {
	pulumi.Input

	ToGetEnterpriseLogicDatabasesDatabaseArrayOutput() GetEnterpriseLogicDatabasesDatabaseArrayOutput
	ToGetEnterpriseLogicDatabasesDatabaseArrayOutputWithContext(context.Context) GetEnterpriseLogicDatabasesDatabaseArrayOutput
}

GetEnterpriseLogicDatabasesDatabaseArrayInput is an input type that accepts GetEnterpriseLogicDatabasesDatabaseArray and GetEnterpriseLogicDatabasesDatabaseArrayOutput values. You can construct a concrete instance of `GetEnterpriseLogicDatabasesDatabaseArrayInput` via:

GetEnterpriseLogicDatabasesDatabaseArray{ GetEnterpriseLogicDatabasesDatabaseArgs{...} }

type GetEnterpriseLogicDatabasesDatabaseArrayOutput added in v3.29.0

type GetEnterpriseLogicDatabasesDatabaseArrayOutput struct{ *pulumi.OutputState }

func (GetEnterpriseLogicDatabasesDatabaseArrayOutput) ElementType added in v3.29.0

func (GetEnterpriseLogicDatabasesDatabaseArrayOutput) Index added in v3.29.0

func (GetEnterpriseLogicDatabasesDatabaseArrayOutput) ToGetEnterpriseLogicDatabasesDatabaseArrayOutput added in v3.29.0

func (o GetEnterpriseLogicDatabasesDatabaseArrayOutput) ToGetEnterpriseLogicDatabasesDatabaseArrayOutput() GetEnterpriseLogicDatabasesDatabaseArrayOutput

func (GetEnterpriseLogicDatabasesDatabaseArrayOutput) ToGetEnterpriseLogicDatabasesDatabaseArrayOutputWithContext added in v3.29.0

func (o GetEnterpriseLogicDatabasesDatabaseArrayOutput) ToGetEnterpriseLogicDatabasesDatabaseArrayOutputWithContext(ctx context.Context) GetEnterpriseLogicDatabasesDatabaseArrayOutput

type GetEnterpriseLogicDatabasesDatabaseInput added in v3.29.0

type GetEnterpriseLogicDatabasesDatabaseInput interface {
	pulumi.Input

	ToGetEnterpriseLogicDatabasesDatabaseOutput() GetEnterpriseLogicDatabasesDatabaseOutput
	ToGetEnterpriseLogicDatabasesDatabaseOutputWithContext(context.Context) GetEnterpriseLogicDatabasesDatabaseOutput
}

GetEnterpriseLogicDatabasesDatabaseInput is an input type that accepts GetEnterpriseLogicDatabasesDatabaseArgs and GetEnterpriseLogicDatabasesDatabaseOutput values. You can construct a concrete instance of `GetEnterpriseLogicDatabasesDatabaseInput` via:

GetEnterpriseLogicDatabasesDatabaseArgs{...}

type GetEnterpriseLogicDatabasesDatabaseOutput added in v3.29.0

type GetEnterpriseLogicDatabasesDatabaseOutput struct{ *pulumi.OutputState }

func (GetEnterpriseLogicDatabasesDatabaseOutput) Alias added in v3.29.0

Logical Library alias.

func (GetEnterpriseLogicDatabasesDatabaseOutput) DatabaseIds added in v3.29.0

Sub-Database ID.

func (GetEnterpriseLogicDatabasesDatabaseOutput) DbType added in v3.29.0

Database type.

func (GetEnterpriseLogicDatabasesDatabaseOutput) ElementType added in v3.29.0

func (GetEnterpriseLogicDatabasesDatabaseOutput) EnvType added in v3.29.0

Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment

func (GetEnterpriseLogicDatabasesDatabaseOutput) Id added in v3.29.0

Logic Database ID.

func (GetEnterpriseLogicDatabasesDatabaseOutput) Logic added in v3.29.0

Whether it is a logical Library, the return value is true.

func (GetEnterpriseLogicDatabasesDatabaseOutput) LogicDatabaseId added in v3.29.0

The ID of the logical Library.

func (GetEnterpriseLogicDatabasesDatabaseOutput) OwnerIdLists added in v3.29.0

The user ID list of the logical library Owner.

func (GetEnterpriseLogicDatabasesDatabaseOutput) OwnerNameLists added in v3.29.0

The nickname list of the logical library Owner.

func (GetEnterpriseLogicDatabasesDatabaseOutput) SchemaName added in v3.29.0

Logical Library name.

func (GetEnterpriseLogicDatabasesDatabaseOutput) SearchName added in v3.29.0

Logical library search name.

func (GetEnterpriseLogicDatabasesDatabaseOutput) ToGetEnterpriseLogicDatabasesDatabaseOutput added in v3.29.0

func (o GetEnterpriseLogicDatabasesDatabaseOutput) ToGetEnterpriseLogicDatabasesDatabaseOutput() GetEnterpriseLogicDatabasesDatabaseOutput

func (GetEnterpriseLogicDatabasesDatabaseOutput) ToGetEnterpriseLogicDatabasesDatabaseOutputWithContext added in v3.29.0

func (o GetEnterpriseLogicDatabasesDatabaseOutput) ToGetEnterpriseLogicDatabasesDatabaseOutputWithContext(ctx context.Context) GetEnterpriseLogicDatabasesDatabaseOutput

type GetEnterpriseLogicDatabasesOutputArgs added in v3.29.0

type GetEnterpriseLogicDatabasesOutputArgs struct {
	// A list of Logic Database IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getEnterpriseLogicDatabases.

func (GetEnterpriseLogicDatabasesOutputArgs) ElementType added in v3.29.0

type GetEnterpriseLogicDatabasesResult added in v3.29.0

type GetEnterpriseLogicDatabasesResult struct {
	// A list of Logic Database Entries. Each element contains the following attributes:
	Databases []GetEnterpriseLogicDatabasesDatabase `pulumi:"databases"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of Logic Database IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getEnterpriseLogicDatabases.

func GetEnterpriseLogicDatabases added in v3.29.0

func GetEnterpriseLogicDatabases(ctx *pulumi.Context, args *GetEnterpriseLogicDatabasesArgs, opts ...pulumi.InvokeOption) (*GetEnterpriseLogicDatabasesResult, error)

This data source provides DMS Enterprise Logic Database available to the user. [What is Logic Database](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-createlogicdatabase).

> **NOTE:** Available since v1.195.0.

type GetEnterpriseLogicDatabasesResultOutput added in v3.29.0

type GetEnterpriseLogicDatabasesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnterpriseLogicDatabases.

func (GetEnterpriseLogicDatabasesResultOutput) Databases added in v3.29.0

A list of Logic Database Entries. Each element contains the following attributes:

func (GetEnterpriseLogicDatabasesResultOutput) ElementType added in v3.29.0

func (GetEnterpriseLogicDatabasesResultOutput) Id added in v3.29.0

The provider-assigned unique ID for this managed resource.

func (GetEnterpriseLogicDatabasesResultOutput) Ids added in v3.29.0

A list of Logic Database IDs.

func (GetEnterpriseLogicDatabasesResultOutput) OutputFile added in v3.29.0

func (GetEnterpriseLogicDatabasesResultOutput) ToGetEnterpriseLogicDatabasesResultOutput added in v3.29.0

func (o GetEnterpriseLogicDatabasesResultOutput) ToGetEnterpriseLogicDatabasesResultOutput() GetEnterpriseLogicDatabasesResultOutput

func (GetEnterpriseLogicDatabasesResultOutput) ToGetEnterpriseLogicDatabasesResultOutputWithContext added in v3.29.0

func (o GetEnterpriseLogicDatabasesResultOutput) ToGetEnterpriseLogicDatabasesResultOutputWithContext(ctx context.Context) GetEnterpriseLogicDatabasesResultOutput

type GetEnterpriseProxiesArgs added in v3.29.0

type GetEnterpriseProxiesArgs struct {
	// A list of Proxy IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The ID of the tenant.
	Tid *string `pulumi:"tid"`
}

A collection of arguments for invoking getEnterpriseProxies.

type GetEnterpriseProxiesOutputArgs added in v3.29.0

type GetEnterpriseProxiesOutputArgs struct {
	// A list of Proxy IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The ID of the tenant.
	Tid pulumi.StringPtrInput `pulumi:"tid"`
}

A collection of arguments for invoking getEnterpriseProxies.

func (GetEnterpriseProxiesOutputArgs) ElementType added in v3.29.0

type GetEnterpriseProxiesProxy added in v3.29.0

type GetEnterpriseProxiesProxy struct {
	// The ID of the user who enabled the secure access proxy feature.
	CreatorId string `pulumi:"creatorId"`
	// The nickname of the user who enabled the secure access proxy feature.
	CreatorName string `pulumi:"creatorName"`
	// The port that was used by HTTPS clients to connect to the database instance.
	HttpsPort int `pulumi:"httpsPort"`
	// The ID of the Proxy.
	Id string `pulumi:"id"`
	// The ID of the database instance.
	InstanceId string `pulumi:"instanceId"`
	// Indicates whether the internal endpoint is enabled. Default value: true.
	PrivateEnable bool `pulumi:"privateEnable"`
	// The internal endpoint.
	PrivateHost string `pulumi:"privateHost"`
	// Database protocol connection port number.
	ProtocolPort int `pulumi:"protocolPort"`
	// Database protocol type, for example, MYSQL.
	ProtocolType string `pulumi:"protocolType"`
	// The ID of the secure access proxy.
	ProxyId string `pulumi:"proxyId"`
	// Indicates whether the public endpoint is enabled.
	PublicEnable bool `pulumi:"publicEnable"`
	// The public endpoint. A public endpoint is returned no matter whether the public endpoint is enabled or disabled. **Note:** When the public network address is in the **true** state, the returned public network address is a valid address with DNS resolution capability. When the public address is in the **false** state, the returned Public address is an invalid address without DNS resolution.
	PublicHost string `pulumi:"publicHost"`
}

type GetEnterpriseProxiesProxyArgs added in v3.29.0

type GetEnterpriseProxiesProxyArgs struct {
	// The ID of the user who enabled the secure access proxy feature.
	CreatorId pulumi.StringInput `pulumi:"creatorId"`
	// The nickname of the user who enabled the secure access proxy feature.
	CreatorName pulumi.StringInput `pulumi:"creatorName"`
	// The port that was used by HTTPS clients to connect to the database instance.
	HttpsPort pulumi.IntInput `pulumi:"httpsPort"`
	// The ID of the Proxy.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the database instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// Indicates whether the internal endpoint is enabled. Default value: true.
	PrivateEnable pulumi.BoolInput `pulumi:"privateEnable"`
	// The internal endpoint.
	PrivateHost pulumi.StringInput `pulumi:"privateHost"`
	// Database protocol connection port number.
	ProtocolPort pulumi.IntInput `pulumi:"protocolPort"`
	// Database protocol type, for example, MYSQL.
	ProtocolType pulumi.StringInput `pulumi:"protocolType"`
	// The ID of the secure access proxy.
	ProxyId pulumi.StringInput `pulumi:"proxyId"`
	// Indicates whether the public endpoint is enabled.
	PublicEnable pulumi.BoolInput `pulumi:"publicEnable"`
	// The public endpoint. A public endpoint is returned no matter whether the public endpoint is enabled or disabled. **Note:** When the public network address is in the **true** state, the returned public network address is a valid address with DNS resolution capability. When the public address is in the **false** state, the returned Public address is an invalid address without DNS resolution.
	PublicHost pulumi.StringInput `pulumi:"publicHost"`
}

func (GetEnterpriseProxiesProxyArgs) ElementType added in v3.29.0

func (GetEnterpriseProxiesProxyArgs) ToGetEnterpriseProxiesProxyOutput added in v3.29.0

func (i GetEnterpriseProxiesProxyArgs) ToGetEnterpriseProxiesProxyOutput() GetEnterpriseProxiesProxyOutput

func (GetEnterpriseProxiesProxyArgs) ToGetEnterpriseProxiesProxyOutputWithContext added in v3.29.0

func (i GetEnterpriseProxiesProxyArgs) ToGetEnterpriseProxiesProxyOutputWithContext(ctx context.Context) GetEnterpriseProxiesProxyOutput

type GetEnterpriseProxiesProxyArray added in v3.29.0

type GetEnterpriseProxiesProxyArray []GetEnterpriseProxiesProxyInput

func (GetEnterpriseProxiesProxyArray) ElementType added in v3.29.0

func (GetEnterpriseProxiesProxyArray) ToGetEnterpriseProxiesProxyArrayOutput added in v3.29.0

func (i GetEnterpriseProxiesProxyArray) ToGetEnterpriseProxiesProxyArrayOutput() GetEnterpriseProxiesProxyArrayOutput

func (GetEnterpriseProxiesProxyArray) ToGetEnterpriseProxiesProxyArrayOutputWithContext added in v3.29.0

func (i GetEnterpriseProxiesProxyArray) ToGetEnterpriseProxiesProxyArrayOutputWithContext(ctx context.Context) GetEnterpriseProxiesProxyArrayOutput

type GetEnterpriseProxiesProxyArrayInput added in v3.29.0

type GetEnterpriseProxiesProxyArrayInput interface {
	pulumi.Input

	ToGetEnterpriseProxiesProxyArrayOutput() GetEnterpriseProxiesProxyArrayOutput
	ToGetEnterpriseProxiesProxyArrayOutputWithContext(context.Context) GetEnterpriseProxiesProxyArrayOutput
}

GetEnterpriseProxiesProxyArrayInput is an input type that accepts GetEnterpriseProxiesProxyArray and GetEnterpriseProxiesProxyArrayOutput values. You can construct a concrete instance of `GetEnterpriseProxiesProxyArrayInput` via:

GetEnterpriseProxiesProxyArray{ GetEnterpriseProxiesProxyArgs{...} }

type GetEnterpriseProxiesProxyArrayOutput added in v3.29.0

type GetEnterpriseProxiesProxyArrayOutput struct{ *pulumi.OutputState }

func (GetEnterpriseProxiesProxyArrayOutput) ElementType added in v3.29.0

func (GetEnterpriseProxiesProxyArrayOutput) Index added in v3.29.0

func (GetEnterpriseProxiesProxyArrayOutput) ToGetEnterpriseProxiesProxyArrayOutput added in v3.29.0

func (o GetEnterpriseProxiesProxyArrayOutput) ToGetEnterpriseProxiesProxyArrayOutput() GetEnterpriseProxiesProxyArrayOutput

func (GetEnterpriseProxiesProxyArrayOutput) ToGetEnterpriseProxiesProxyArrayOutputWithContext added in v3.29.0

func (o GetEnterpriseProxiesProxyArrayOutput) ToGetEnterpriseProxiesProxyArrayOutputWithContext(ctx context.Context) GetEnterpriseProxiesProxyArrayOutput

type GetEnterpriseProxiesProxyInput added in v3.29.0

type GetEnterpriseProxiesProxyInput interface {
	pulumi.Input

	ToGetEnterpriseProxiesProxyOutput() GetEnterpriseProxiesProxyOutput
	ToGetEnterpriseProxiesProxyOutputWithContext(context.Context) GetEnterpriseProxiesProxyOutput
}

GetEnterpriseProxiesProxyInput is an input type that accepts GetEnterpriseProxiesProxyArgs and GetEnterpriseProxiesProxyOutput values. You can construct a concrete instance of `GetEnterpriseProxiesProxyInput` via:

GetEnterpriseProxiesProxyArgs{...}

type GetEnterpriseProxiesProxyOutput added in v3.29.0

type GetEnterpriseProxiesProxyOutput struct{ *pulumi.OutputState }

func (GetEnterpriseProxiesProxyOutput) CreatorId added in v3.29.0

The ID of the user who enabled the secure access proxy feature.

func (GetEnterpriseProxiesProxyOutput) CreatorName added in v3.29.0

The nickname of the user who enabled the secure access proxy feature.

func (GetEnterpriseProxiesProxyOutput) ElementType added in v3.29.0

func (GetEnterpriseProxiesProxyOutput) HttpsPort added in v3.29.0

The port that was used by HTTPS clients to connect to the database instance.

func (GetEnterpriseProxiesProxyOutput) Id added in v3.29.0

The ID of the Proxy.

func (GetEnterpriseProxiesProxyOutput) InstanceId added in v3.29.0

The ID of the database instance.

func (GetEnterpriseProxiesProxyOutput) PrivateEnable added in v3.29.0

Indicates whether the internal endpoint is enabled. Default value: true.

func (GetEnterpriseProxiesProxyOutput) PrivateHost added in v3.29.0

The internal endpoint.

func (GetEnterpriseProxiesProxyOutput) ProtocolPort added in v3.29.0

Database protocol connection port number.

func (GetEnterpriseProxiesProxyOutput) ProtocolType added in v3.29.0

Database protocol type, for example, MYSQL.

func (GetEnterpriseProxiesProxyOutput) ProxyId added in v3.29.0

The ID of the secure access proxy.

func (GetEnterpriseProxiesProxyOutput) PublicEnable added in v3.29.0

Indicates whether the public endpoint is enabled.

func (GetEnterpriseProxiesProxyOutput) PublicHost added in v3.29.0

The public endpoint. A public endpoint is returned no matter whether the public endpoint is enabled or disabled. **Note:** When the public network address is in the **true** state, the returned public network address is a valid address with DNS resolution capability. When the public address is in the **false** state, the returned Public address is an invalid address without DNS resolution.

func (GetEnterpriseProxiesProxyOutput) ToGetEnterpriseProxiesProxyOutput added in v3.29.0

func (o GetEnterpriseProxiesProxyOutput) ToGetEnterpriseProxiesProxyOutput() GetEnterpriseProxiesProxyOutput

func (GetEnterpriseProxiesProxyOutput) ToGetEnterpriseProxiesProxyOutputWithContext added in v3.29.0

func (o GetEnterpriseProxiesProxyOutput) ToGetEnterpriseProxiesProxyOutputWithContext(ctx context.Context) GetEnterpriseProxiesProxyOutput

type GetEnterpriseProxiesResult added in v3.29.0

type GetEnterpriseProxiesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                      `pulumi:"id"`
	Ids        []string                    `pulumi:"ids"`
	OutputFile *string                     `pulumi:"outputFile"`
	Proxies    []GetEnterpriseProxiesProxy `pulumi:"proxies"`
	Tid        *string                     `pulumi:"tid"`
}

A collection of values returned by getEnterpriseProxies.

func GetEnterpriseProxies added in v3.29.0

func GetEnterpriseProxies(ctx *pulumi.Context, args *GetEnterpriseProxiesArgs, opts ...pulumi.InvokeOption) (*GetEnterpriseProxiesResult, error)

This data source provides the Dms Enterprise Proxies of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := dms.GetEnterpriseProxies(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("dmsEnterpriseProxyId1", ids.Proxies[0].Id)
		return nil
	})
}

```

type GetEnterpriseProxiesResultOutput added in v3.29.0

type GetEnterpriseProxiesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnterpriseProxies.

func GetEnterpriseProxiesOutput added in v3.29.0

func (GetEnterpriseProxiesResultOutput) ElementType added in v3.29.0

func (GetEnterpriseProxiesResultOutput) Id added in v3.29.0

The provider-assigned unique ID for this managed resource.

func (GetEnterpriseProxiesResultOutput) Ids added in v3.29.0

func (GetEnterpriseProxiesResultOutput) OutputFile added in v3.29.0

func (GetEnterpriseProxiesResultOutput) Proxies added in v3.29.0

func (GetEnterpriseProxiesResultOutput) Tid added in v3.29.0

func (GetEnterpriseProxiesResultOutput) ToGetEnterpriseProxiesResultOutput added in v3.29.0

func (o GetEnterpriseProxiesResultOutput) ToGetEnterpriseProxiesResultOutput() GetEnterpriseProxiesResultOutput

func (GetEnterpriseProxiesResultOutput) ToGetEnterpriseProxiesResultOutputWithContext added in v3.29.0

func (o GetEnterpriseProxiesResultOutput) ToGetEnterpriseProxiesResultOutputWithContext(ctx context.Context) GetEnterpriseProxiesResultOutput

type GetEnterpriseProxyAccessesAccess added in v3.29.0

type GetEnterpriseProxyAccessesAccess struct {
	// The authorized account of the security agent.
	AccessId     string `pulumi:"accessId"`
	AccessSecret string `pulumi:"accessSecret"`
	// The authorization time of the security access agent permission.
	CreateTime string `pulumi:"createTime"`
	// Security Protection authorization ID.
	Id string `pulumi:"id"`
	// Database account.
	IndepAccount string `pulumi:"indepAccount"`
	// The ID of the instance.
	InstanceId string `pulumi:"instanceId"`
	// The source information of the security access agent permission is enabled, and the return value is as follows:**Owner Authorization**: The UID of the owner in parentheses.**Work Order Authorization**: The ticket number in parentheses is the number of the user to apply for permission.
	OriginInfo string `pulumi:"originInfo"`
	// Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
	ProxyAccessId string `pulumi:"proxyAccessId"`
	// The ID of the security agent.
	ProxyId string `pulumi:"proxyId"`
	// The user ID.
	UserId string `pulumi:"userId"`
	// User nickname.
	UserName string `pulumi:"userName"`
	// User UID.
	UserUid string `pulumi:"userUid"`
}

type GetEnterpriseProxyAccessesAccessArgs added in v3.29.0

type GetEnterpriseProxyAccessesAccessArgs struct {
	// The authorized account of the security agent.
	AccessId     pulumi.StringInput `pulumi:"accessId"`
	AccessSecret pulumi.StringInput `pulumi:"accessSecret"`
	// The authorization time of the security access agent permission.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Security Protection authorization ID.
	Id pulumi.StringInput `pulumi:"id"`
	// Database account.
	IndepAccount pulumi.StringInput `pulumi:"indepAccount"`
	// The ID of the instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The source information of the security access agent permission is enabled, and the return value is as follows:**Owner Authorization**: The UID of the owner in parentheses.**Work Order Authorization**: The ticket number in parentheses is the number of the user to apply for permission.
	OriginInfo pulumi.StringInput `pulumi:"originInfo"`
	// Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.
	ProxyAccessId pulumi.StringInput `pulumi:"proxyAccessId"`
	// The ID of the security agent.
	ProxyId pulumi.StringInput `pulumi:"proxyId"`
	// The user ID.
	UserId pulumi.StringInput `pulumi:"userId"`
	// User nickname.
	UserName pulumi.StringInput `pulumi:"userName"`
	// User UID.
	UserUid pulumi.StringInput `pulumi:"userUid"`
}

func (GetEnterpriseProxyAccessesAccessArgs) ElementType added in v3.29.0

func (GetEnterpriseProxyAccessesAccessArgs) ToGetEnterpriseProxyAccessesAccessOutput added in v3.29.0

func (i GetEnterpriseProxyAccessesAccessArgs) ToGetEnterpriseProxyAccessesAccessOutput() GetEnterpriseProxyAccessesAccessOutput

func (GetEnterpriseProxyAccessesAccessArgs) ToGetEnterpriseProxyAccessesAccessOutputWithContext added in v3.29.0

func (i GetEnterpriseProxyAccessesAccessArgs) ToGetEnterpriseProxyAccessesAccessOutputWithContext(ctx context.Context) GetEnterpriseProxyAccessesAccessOutput

type GetEnterpriseProxyAccessesAccessArray added in v3.29.0

type GetEnterpriseProxyAccessesAccessArray []GetEnterpriseProxyAccessesAccessInput

func (GetEnterpriseProxyAccessesAccessArray) ElementType added in v3.29.0

func (GetEnterpriseProxyAccessesAccessArray) ToGetEnterpriseProxyAccessesAccessArrayOutput added in v3.29.0

func (i GetEnterpriseProxyAccessesAccessArray) ToGetEnterpriseProxyAccessesAccessArrayOutput() GetEnterpriseProxyAccessesAccessArrayOutput

func (GetEnterpriseProxyAccessesAccessArray) ToGetEnterpriseProxyAccessesAccessArrayOutputWithContext added in v3.29.0

func (i GetEnterpriseProxyAccessesAccessArray) ToGetEnterpriseProxyAccessesAccessArrayOutputWithContext(ctx context.Context) GetEnterpriseProxyAccessesAccessArrayOutput

type GetEnterpriseProxyAccessesAccessArrayInput added in v3.29.0

type GetEnterpriseProxyAccessesAccessArrayInput interface {
	pulumi.Input

	ToGetEnterpriseProxyAccessesAccessArrayOutput() GetEnterpriseProxyAccessesAccessArrayOutput
	ToGetEnterpriseProxyAccessesAccessArrayOutputWithContext(context.Context) GetEnterpriseProxyAccessesAccessArrayOutput
}

GetEnterpriseProxyAccessesAccessArrayInput is an input type that accepts GetEnterpriseProxyAccessesAccessArray and GetEnterpriseProxyAccessesAccessArrayOutput values. You can construct a concrete instance of `GetEnterpriseProxyAccessesAccessArrayInput` via:

GetEnterpriseProxyAccessesAccessArray{ GetEnterpriseProxyAccessesAccessArgs{...} }

type GetEnterpriseProxyAccessesAccessArrayOutput added in v3.29.0

type GetEnterpriseProxyAccessesAccessArrayOutput struct{ *pulumi.OutputState }

func (GetEnterpriseProxyAccessesAccessArrayOutput) ElementType added in v3.29.0

func (GetEnterpriseProxyAccessesAccessArrayOutput) Index added in v3.29.0

func (GetEnterpriseProxyAccessesAccessArrayOutput) ToGetEnterpriseProxyAccessesAccessArrayOutput added in v3.29.0

func (o GetEnterpriseProxyAccessesAccessArrayOutput) ToGetEnterpriseProxyAccessesAccessArrayOutput() GetEnterpriseProxyAccessesAccessArrayOutput

func (GetEnterpriseProxyAccessesAccessArrayOutput) ToGetEnterpriseProxyAccessesAccessArrayOutputWithContext added in v3.29.0

func (o GetEnterpriseProxyAccessesAccessArrayOutput) ToGetEnterpriseProxyAccessesAccessArrayOutputWithContext(ctx context.Context) GetEnterpriseProxyAccessesAccessArrayOutput

type GetEnterpriseProxyAccessesAccessInput added in v3.29.0

type GetEnterpriseProxyAccessesAccessInput interface {
	pulumi.Input

	ToGetEnterpriseProxyAccessesAccessOutput() GetEnterpriseProxyAccessesAccessOutput
	ToGetEnterpriseProxyAccessesAccessOutputWithContext(context.Context) GetEnterpriseProxyAccessesAccessOutput
}

GetEnterpriseProxyAccessesAccessInput is an input type that accepts GetEnterpriseProxyAccessesAccessArgs and GetEnterpriseProxyAccessesAccessOutput values. You can construct a concrete instance of `GetEnterpriseProxyAccessesAccessInput` via:

GetEnterpriseProxyAccessesAccessArgs{...}

type GetEnterpriseProxyAccessesAccessOutput added in v3.29.0

type GetEnterpriseProxyAccessesAccessOutput struct{ *pulumi.OutputState }

func (GetEnterpriseProxyAccessesAccessOutput) AccessId added in v3.29.0

The authorized account of the security agent.

func (GetEnterpriseProxyAccessesAccessOutput) AccessSecret added in v3.29.0

func (GetEnterpriseProxyAccessesAccessOutput) CreateTime added in v3.29.0

The authorization time of the security access agent permission.

func (GetEnterpriseProxyAccessesAccessOutput) ElementType added in v3.29.0

func (GetEnterpriseProxyAccessesAccessOutput) Id added in v3.29.0

Security Protection authorization ID.

func (GetEnterpriseProxyAccessesAccessOutput) IndepAccount added in v3.29.0

Database account.

func (GetEnterpriseProxyAccessesAccessOutput) InstanceId added in v3.29.0

The ID of the instance.

func (GetEnterpriseProxyAccessesAccessOutput) OriginInfo added in v3.29.0

The source information of the security access agent permission is enabled, and the return value is as follows:**Owner Authorization**: The UID of the owner in parentheses.**Work Order Authorization**: The ticket number in parentheses is the number of the user to apply for permission.

func (GetEnterpriseProxyAccessesAccessOutput) ProxyAccessId added in v3.29.0

Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.

func (GetEnterpriseProxyAccessesAccessOutput) ProxyId added in v3.29.0

The ID of the security agent.

func (GetEnterpriseProxyAccessesAccessOutput) ToGetEnterpriseProxyAccessesAccessOutput added in v3.29.0

func (o GetEnterpriseProxyAccessesAccessOutput) ToGetEnterpriseProxyAccessesAccessOutput() GetEnterpriseProxyAccessesAccessOutput

func (GetEnterpriseProxyAccessesAccessOutput) ToGetEnterpriseProxyAccessesAccessOutputWithContext added in v3.29.0

func (o GetEnterpriseProxyAccessesAccessOutput) ToGetEnterpriseProxyAccessesAccessOutputWithContext(ctx context.Context) GetEnterpriseProxyAccessesAccessOutput

func (GetEnterpriseProxyAccessesAccessOutput) UserId added in v3.29.0

The user ID.

func (GetEnterpriseProxyAccessesAccessOutput) UserName added in v3.29.0

User nickname.

func (GetEnterpriseProxyAccessesAccessOutput) UserUid added in v3.29.0

User UID.

type GetEnterpriseProxyAccessesArgs added in v3.29.0

type GetEnterpriseProxyAccessesArgs struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Proxy Access IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The ID of the security agent.
	ProxyId string `pulumi:"proxyId"`
}

A collection of arguments for invoking getEnterpriseProxyAccesses.

type GetEnterpriseProxyAccessesOutputArgs added in v3.29.0

type GetEnterpriseProxyAccessesOutputArgs struct {
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of Proxy Access IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The ID of the security agent.
	ProxyId pulumi.StringInput `pulumi:"proxyId"`
}

A collection of arguments for invoking getEnterpriseProxyAccesses.

func (GetEnterpriseProxyAccessesOutputArgs) ElementType added in v3.29.0

type GetEnterpriseProxyAccessesResult added in v3.29.0

type GetEnterpriseProxyAccessesResult struct {
	// A list of Proxy Access Entries. Each element contains the following attributes:
	Accesses      []GetEnterpriseProxyAccessesAccess `pulumi:"accesses"`
	EnableDetails *bool                              `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of Proxy Access IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The ID of the security agent.
	ProxyId string `pulumi:"proxyId"`
}

A collection of values returned by getEnterpriseProxyAccesses.

func GetEnterpriseProxyAccesses added in v3.29.0

func GetEnterpriseProxyAccesses(ctx *pulumi.Context, args *GetEnterpriseProxyAccessesArgs, opts ...pulumi.InvokeOption) (*GetEnterpriseProxyAccessesResult, error)

This data source provides DMS Enterprise Proxy Access available to the user.[What is Proxy Access](https://next.api.alibabacloud.com/document/dms-enterprise/2018-11-01/CreateProxyAccess)

> **NOTE:** Available since v1.195.0.

## Example Usage

```go package main

import (

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

) func main() { pulumi.Run(func(ctx *pulumi.Context) error { defaultEnterpriseProxyAccess, err := dms.NewEnterpriseProxyAccess(ctx, "default", &dms.EnterpriseProxyAccessArgs{ IndepPassword: pulumi.String("PASSWORD-DEMO"), ProxyId: pulumi.String("1881"), IndepAccount: pulumi.String("dmstest"), UserId: pulumi.String("104442"), }) if err != nil { return err } _default := dms.GetEnterpriseProxyAccessesOutput(ctx, dms.GetEnterpriseProxyAccessesOutputArgs{ Ids: pulumi.StringArray{ defaultEnterpriseProxyAccess.ID(), }, ProxyId: pulumi.String("1881"), }, nil); ctx.Export("alicloudDmsProxyAccesesExampleId", _default.ApplyT(func(_default dms.GetEnterpriseProxyAccessesResult) (*string, error) { return &default.Accesses[0].Id, nil }).(pulumi.StringPtrOutput)) return nil }) } ```

type GetEnterpriseProxyAccessesResultOutput added in v3.29.0

type GetEnterpriseProxyAccessesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnterpriseProxyAccesses.

func (GetEnterpriseProxyAccessesResultOutput) Accesses added in v3.29.0

A list of Proxy Access Entries. Each element contains the following attributes:

func (GetEnterpriseProxyAccessesResultOutput) ElementType added in v3.29.0

func (GetEnterpriseProxyAccessesResultOutput) EnableDetails added in v3.29.0

func (GetEnterpriseProxyAccessesResultOutput) Id added in v3.29.0

The provider-assigned unique ID for this managed resource.

func (GetEnterpriseProxyAccessesResultOutput) Ids added in v3.29.0

A list of Proxy Access IDs.

func (GetEnterpriseProxyAccessesResultOutput) OutputFile added in v3.29.0

func (GetEnterpriseProxyAccessesResultOutput) ProxyId added in v3.29.0

The ID of the security agent.

func (GetEnterpriseProxyAccessesResultOutput) ToGetEnterpriseProxyAccessesResultOutput added in v3.29.0

func (o GetEnterpriseProxyAccessesResultOutput) ToGetEnterpriseProxyAccessesResultOutput() GetEnterpriseProxyAccessesResultOutput

func (GetEnterpriseProxyAccessesResultOutput) ToGetEnterpriseProxyAccessesResultOutputWithContext added in v3.29.0

func (o GetEnterpriseProxyAccessesResultOutput) ToGetEnterpriseProxyAccessesResultOutputWithContext(ctx context.Context) GetEnterpriseProxyAccessesResultOutput

type GetEnterpriseUsersArgs

type GetEnterpriseUsersArgs struct {
	// A list of DMS Enterprise User IDs (UID).
	Ids []string `pulumi:"ids"`
	// A regex string to filter the results by the DMS Enterprise User nick_name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The role of the user to query.
	Role *string `pulumi:"role"`
	// The keyword used to query users.
	SearchKey *string `pulumi:"searchKey"`
	// The status of the user.
	Status *string `pulumi:"status"`
	// The ID of the tenant in DMS Enterprise.
	Tid *int `pulumi:"tid"`
}

A collection of arguments for invoking getEnterpriseUsers.

type GetEnterpriseUsersOutputArgs added in v3.9.0

type GetEnterpriseUsersOutputArgs struct {
	// A list of DMS Enterprise User IDs (UID).
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter the results by the DMS Enterprise User nick_name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The role of the user to query.
	Role pulumi.StringPtrInput `pulumi:"role"`
	// The keyword used to query users.
	SearchKey pulumi.StringPtrInput `pulumi:"searchKey"`
	// The status of the user.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The ID of the tenant in DMS Enterprise.
	Tid pulumi.IntPtrInput `pulumi:"tid"`
}

A collection of arguments for invoking getEnterpriseUsers.

func (GetEnterpriseUsersOutputArgs) ElementType added in v3.9.0

type GetEnterpriseUsersResult

type GetEnterpriseUsersResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of DMS Enterprise User IDs (UID).
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of DMS Enterprise User names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	Role       *string  `pulumi:"role"`
	SearchKey  *string  `pulumi:"searchKey"`
	// The status of the user.
	Status *string `pulumi:"status"`
	Tid    *int    `pulumi:"tid"`
	// A list of DMS Enterprise Users. Each element contains the following attributes:
	Users []GetEnterpriseUsersUser `pulumi:"users"`
}

A collection of values returned by getEnterpriseUsers.

func GetEnterpriseUsers

func GetEnterpriseUsers(ctx *pulumi.Context, args *GetEnterpriseUsersArgs, opts ...pulumi.InvokeOption) (*GetEnterpriseUsersResult, error)

This data source provides a list of DMS Enterprise Users in an Alibaba Cloud account according to the specified filters.

> **NOTE:** Available in 1.90.0+

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Declare the data source
		dmsEnterpriseUsersDs, err := dms.GetEnterpriseUsers(ctx, &dms.GetEnterpriseUsersArgs{
			Ids: []string{
				"uid",
			},
			Role:   pulumi.StringRef("USER"),
			Status: pulumi.StringRef("NORMAL"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstUserId", dmsEnterpriseUsersDs.Users[0].Id)
		return nil
	})
}

```

type GetEnterpriseUsersResultOutput added in v3.9.0

type GetEnterpriseUsersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnterpriseUsers.

func GetEnterpriseUsersOutput added in v3.9.0

func (GetEnterpriseUsersResultOutput) ElementType added in v3.9.0

func (GetEnterpriseUsersResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetEnterpriseUsersResultOutput) Ids added in v3.9.0

A list of DMS Enterprise User IDs (UID).

func (GetEnterpriseUsersResultOutput) NameRegex added in v3.9.0

func (GetEnterpriseUsersResultOutput) Names added in v3.9.0

A list of DMS Enterprise User names.

func (GetEnterpriseUsersResultOutput) OutputFile added in v3.9.0

func (GetEnterpriseUsersResultOutput) Role added in v3.9.0

func (GetEnterpriseUsersResultOutput) SearchKey added in v3.9.0

func (GetEnterpriseUsersResultOutput) Status added in v3.9.0

The status of the user.

func (GetEnterpriseUsersResultOutput) Tid added in v3.9.0

func (GetEnterpriseUsersResultOutput) ToGetEnterpriseUsersResultOutput added in v3.9.0

func (o GetEnterpriseUsersResultOutput) ToGetEnterpriseUsersResultOutput() GetEnterpriseUsersResultOutput

func (GetEnterpriseUsersResultOutput) ToGetEnterpriseUsersResultOutputWithContext added in v3.9.0

func (o GetEnterpriseUsersResultOutput) ToGetEnterpriseUsersResultOutputWithContext(ctx context.Context) GetEnterpriseUsersResultOutput

func (GetEnterpriseUsersResultOutput) Users added in v3.9.0

A list of DMS Enterprise Users. Each element contains the following attributes:

type GetEnterpriseUsersUser

type GetEnterpriseUsersUser struct {
	// The Alibaba Cloud unique ID (UID) of the user.
	Id string `pulumi:"id"`
	// The DingTalk number or mobile number of the user.
	Mobile string `pulumi:"mobile"`
	// The nickname of the user.
	NickName string `pulumi:"nickName"`
	// The Alibaba Cloud unique ID (UID) of the parent account if the user corresponds to a Resource Access Management (RAM) user.
	ParentUid int `pulumi:"parentUid"`
	// The list ids of the role that the user plays.
	RoleIds []int `pulumi:"roleIds"`
	// The list names of the role that he user plays.
	RoleNames []string `pulumi:"roleNames"`
	// The status of the user.
	Status string `pulumi:"status"`
	Uid    string `pulumi:"uid"`
	// The ID of the user.
	UserId string `pulumi:"userId"`
	// The nickname of the user.
	UserName string `pulumi:"userName"`
}

type GetEnterpriseUsersUserArgs

type GetEnterpriseUsersUserArgs struct {
	// The Alibaba Cloud unique ID (UID) of the user.
	Id pulumi.StringInput `pulumi:"id"`
	// The DingTalk number or mobile number of the user.
	Mobile pulumi.StringInput `pulumi:"mobile"`
	// The nickname of the user.
	NickName pulumi.StringInput `pulumi:"nickName"`
	// The Alibaba Cloud unique ID (UID) of the parent account if the user corresponds to a Resource Access Management (RAM) user.
	ParentUid pulumi.IntInput `pulumi:"parentUid"`
	// The list ids of the role that the user plays.
	RoleIds pulumi.IntArrayInput `pulumi:"roleIds"`
	// The list names of the role that he user plays.
	RoleNames pulumi.StringArrayInput `pulumi:"roleNames"`
	// The status of the user.
	Status pulumi.StringInput `pulumi:"status"`
	Uid    pulumi.StringInput `pulumi:"uid"`
	// The ID of the user.
	UserId pulumi.StringInput `pulumi:"userId"`
	// The nickname of the user.
	UserName pulumi.StringInput `pulumi:"userName"`
}

func (GetEnterpriseUsersUserArgs) ElementType

func (GetEnterpriseUsersUserArgs) ElementType() reflect.Type

func (GetEnterpriseUsersUserArgs) ToGetEnterpriseUsersUserOutput

func (i GetEnterpriseUsersUserArgs) ToGetEnterpriseUsersUserOutput() GetEnterpriseUsersUserOutput

func (GetEnterpriseUsersUserArgs) ToGetEnterpriseUsersUserOutputWithContext

func (i GetEnterpriseUsersUserArgs) ToGetEnterpriseUsersUserOutputWithContext(ctx context.Context) GetEnterpriseUsersUserOutput

type GetEnterpriseUsersUserArray

type GetEnterpriseUsersUserArray []GetEnterpriseUsersUserInput

func (GetEnterpriseUsersUserArray) ElementType

func (GetEnterpriseUsersUserArray) ToGetEnterpriseUsersUserArrayOutput

func (i GetEnterpriseUsersUserArray) ToGetEnterpriseUsersUserArrayOutput() GetEnterpriseUsersUserArrayOutput

func (GetEnterpriseUsersUserArray) ToGetEnterpriseUsersUserArrayOutputWithContext

func (i GetEnterpriseUsersUserArray) ToGetEnterpriseUsersUserArrayOutputWithContext(ctx context.Context) GetEnterpriseUsersUserArrayOutput

type GetEnterpriseUsersUserArrayInput

type GetEnterpriseUsersUserArrayInput interface {
	pulumi.Input

	ToGetEnterpriseUsersUserArrayOutput() GetEnterpriseUsersUserArrayOutput
	ToGetEnterpriseUsersUserArrayOutputWithContext(context.Context) GetEnterpriseUsersUserArrayOutput
}

GetEnterpriseUsersUserArrayInput is an input type that accepts GetEnterpriseUsersUserArray and GetEnterpriseUsersUserArrayOutput values. You can construct a concrete instance of `GetEnterpriseUsersUserArrayInput` via:

GetEnterpriseUsersUserArray{ GetEnterpriseUsersUserArgs{...} }

type GetEnterpriseUsersUserArrayOutput

type GetEnterpriseUsersUserArrayOutput struct{ *pulumi.OutputState }

func (GetEnterpriseUsersUserArrayOutput) ElementType

func (GetEnterpriseUsersUserArrayOutput) Index

func (GetEnterpriseUsersUserArrayOutput) ToGetEnterpriseUsersUserArrayOutput

func (o GetEnterpriseUsersUserArrayOutput) ToGetEnterpriseUsersUserArrayOutput() GetEnterpriseUsersUserArrayOutput

func (GetEnterpriseUsersUserArrayOutput) ToGetEnterpriseUsersUserArrayOutputWithContext

func (o GetEnterpriseUsersUserArrayOutput) ToGetEnterpriseUsersUserArrayOutputWithContext(ctx context.Context) GetEnterpriseUsersUserArrayOutput

type GetEnterpriseUsersUserInput

type GetEnterpriseUsersUserInput interface {
	pulumi.Input

	ToGetEnterpriseUsersUserOutput() GetEnterpriseUsersUserOutput
	ToGetEnterpriseUsersUserOutputWithContext(context.Context) GetEnterpriseUsersUserOutput
}

GetEnterpriseUsersUserInput is an input type that accepts GetEnterpriseUsersUserArgs and GetEnterpriseUsersUserOutput values. You can construct a concrete instance of `GetEnterpriseUsersUserInput` via:

GetEnterpriseUsersUserArgs{...}

type GetEnterpriseUsersUserOutput

type GetEnterpriseUsersUserOutput struct{ *pulumi.OutputState }

func (GetEnterpriseUsersUserOutput) ElementType

func (GetEnterpriseUsersUserOutput) Id

The Alibaba Cloud unique ID (UID) of the user.

func (GetEnterpriseUsersUserOutput) Mobile

The DingTalk number or mobile number of the user.

func (GetEnterpriseUsersUserOutput) NickName

The nickname of the user.

func (GetEnterpriseUsersUserOutput) ParentUid

The Alibaba Cloud unique ID (UID) of the parent account if the user corresponds to a Resource Access Management (RAM) user.

func (GetEnterpriseUsersUserOutput) RoleIds

The list ids of the role that the user plays.

func (GetEnterpriseUsersUserOutput) RoleNames

The list names of the role that he user plays.

func (GetEnterpriseUsersUserOutput) Status

The status of the user.

func (GetEnterpriseUsersUserOutput) ToGetEnterpriseUsersUserOutput

func (o GetEnterpriseUsersUserOutput) ToGetEnterpriseUsersUserOutput() GetEnterpriseUsersUserOutput

func (GetEnterpriseUsersUserOutput) ToGetEnterpriseUsersUserOutputWithContext

func (o GetEnterpriseUsersUserOutput) ToGetEnterpriseUsersUserOutputWithContext(ctx context.Context) GetEnterpriseUsersUserOutput

func (GetEnterpriseUsersUserOutput) Uid

func (GetEnterpriseUsersUserOutput) UserId

The ID of the user.

func (GetEnterpriseUsersUserOutput) UserName

The nickname of the user.

type GetUserTenantsArgs added in v3.20.0

type GetUserTenantsArgs struct {
	// A list of DMS User Tenant IDs (TID).
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The status of the user tenant.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getUserTenants.

type GetUserTenantsOutputArgs added in v3.20.0

type GetUserTenantsOutputArgs struct {
	// A list of DMS User Tenant IDs (TID).
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of the user tenant.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getUserTenants.

func (GetUserTenantsOutputArgs) ElementType added in v3.20.0

func (GetUserTenantsOutputArgs) ElementType() reflect.Type

type GetUserTenantsResult added in v3.20.0

type GetUserTenantsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of DMS User Tenant IDs (UID).
	Ids []string `pulumi:"ids"`
	// A list of DMS User Tenant names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the user tenant.
	Status *string `pulumi:"status"`
	// A list of DMS User Tenants. Each element contains the following attributes:
	Tenants []GetUserTenantsTenant `pulumi:"tenants"`
}

A collection of values returned by getUserTenants.

func GetUserTenants added in v3.20.0

func GetUserTenants(ctx *pulumi.Context, args *GetUserTenantsArgs, opts ...pulumi.InvokeOption) (*GetUserTenantsResult, error)

This data source provides a list of DMS User Tenants in an Alibaba Cloud account according to the specified filters.

> **NOTE:** Available in 1.161.0+

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Declare the data source
		_default, err := dms.GetUserTenants(ctx, &dms.GetUserTenantsArgs{
			Status: pulumi.StringRef("ACTIVE"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("tid", _default.Ids[0])
		return nil
	})
}

```

type GetUserTenantsResultOutput added in v3.20.0

type GetUserTenantsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getUserTenants.

func GetUserTenantsOutput added in v3.20.0

func GetUserTenantsOutput(ctx *pulumi.Context, args GetUserTenantsOutputArgs, opts ...pulumi.InvokeOption) GetUserTenantsResultOutput

func (GetUserTenantsResultOutput) ElementType added in v3.20.0

func (GetUserTenantsResultOutput) ElementType() reflect.Type

func (GetUserTenantsResultOutput) Id added in v3.20.0

The provider-assigned unique ID for this managed resource.

func (GetUserTenantsResultOutput) Ids added in v3.20.0

A list of DMS User Tenant IDs (UID).

func (GetUserTenantsResultOutput) Names added in v3.20.0

A list of DMS User Tenant names.

func (GetUserTenantsResultOutput) OutputFile added in v3.20.0

func (GetUserTenantsResultOutput) Status added in v3.20.0

The status of the user tenant.

func (GetUserTenantsResultOutput) Tenants added in v3.20.0

A list of DMS User Tenants. Each element contains the following attributes:

func (GetUserTenantsResultOutput) ToGetUserTenantsResultOutput added in v3.20.0

func (o GetUserTenantsResultOutput) ToGetUserTenantsResultOutput() GetUserTenantsResultOutput

func (GetUserTenantsResultOutput) ToGetUserTenantsResultOutputWithContext added in v3.20.0

func (o GetUserTenantsResultOutput) ToGetUserTenantsResultOutputWithContext(ctx context.Context) GetUserTenantsResultOutput

type GetUserTenantsTenant added in v3.20.0

type GetUserTenantsTenant struct {
	// The user tenant id.
	Id string `pulumi:"id"`
	// The status of the user tenant.
	Status string `pulumi:"status"`
	// The name of the user tenant.
	TenantName string `pulumi:"tenantName"`
	// The user tenant id. Same as id.
	Tid string `pulumi:"tid"`
}

type GetUserTenantsTenantArgs added in v3.20.0

type GetUserTenantsTenantArgs struct {
	// The user tenant id.
	Id pulumi.StringInput `pulumi:"id"`
	// The status of the user tenant.
	Status pulumi.StringInput `pulumi:"status"`
	// The name of the user tenant.
	TenantName pulumi.StringInput `pulumi:"tenantName"`
	// The user tenant id. Same as id.
	Tid pulumi.StringInput `pulumi:"tid"`
}

func (GetUserTenantsTenantArgs) ElementType added in v3.20.0

func (GetUserTenantsTenantArgs) ElementType() reflect.Type

func (GetUserTenantsTenantArgs) ToGetUserTenantsTenantOutput added in v3.20.0

func (i GetUserTenantsTenantArgs) ToGetUserTenantsTenantOutput() GetUserTenantsTenantOutput

func (GetUserTenantsTenantArgs) ToGetUserTenantsTenantOutputWithContext added in v3.20.0

func (i GetUserTenantsTenantArgs) ToGetUserTenantsTenantOutputWithContext(ctx context.Context) GetUserTenantsTenantOutput

type GetUserTenantsTenantArray added in v3.20.0

type GetUserTenantsTenantArray []GetUserTenantsTenantInput

func (GetUserTenantsTenantArray) ElementType added in v3.20.0

func (GetUserTenantsTenantArray) ElementType() reflect.Type

func (GetUserTenantsTenantArray) ToGetUserTenantsTenantArrayOutput added in v3.20.0

func (i GetUserTenantsTenantArray) ToGetUserTenantsTenantArrayOutput() GetUserTenantsTenantArrayOutput

func (GetUserTenantsTenantArray) ToGetUserTenantsTenantArrayOutputWithContext added in v3.20.0

func (i GetUserTenantsTenantArray) ToGetUserTenantsTenantArrayOutputWithContext(ctx context.Context) GetUserTenantsTenantArrayOutput

type GetUserTenantsTenantArrayInput added in v3.20.0

type GetUserTenantsTenantArrayInput interface {
	pulumi.Input

	ToGetUserTenantsTenantArrayOutput() GetUserTenantsTenantArrayOutput
	ToGetUserTenantsTenantArrayOutputWithContext(context.Context) GetUserTenantsTenantArrayOutput
}

GetUserTenantsTenantArrayInput is an input type that accepts GetUserTenantsTenantArray and GetUserTenantsTenantArrayOutput values. You can construct a concrete instance of `GetUserTenantsTenantArrayInput` via:

GetUserTenantsTenantArray{ GetUserTenantsTenantArgs{...} }

type GetUserTenantsTenantArrayOutput added in v3.20.0

type GetUserTenantsTenantArrayOutput struct{ *pulumi.OutputState }

func (GetUserTenantsTenantArrayOutput) ElementType added in v3.20.0

func (GetUserTenantsTenantArrayOutput) Index added in v3.20.0

func (GetUserTenantsTenantArrayOutput) ToGetUserTenantsTenantArrayOutput added in v3.20.0

func (o GetUserTenantsTenantArrayOutput) ToGetUserTenantsTenantArrayOutput() GetUserTenantsTenantArrayOutput

func (GetUserTenantsTenantArrayOutput) ToGetUserTenantsTenantArrayOutputWithContext added in v3.20.0

func (o GetUserTenantsTenantArrayOutput) ToGetUserTenantsTenantArrayOutputWithContext(ctx context.Context) GetUserTenantsTenantArrayOutput

type GetUserTenantsTenantInput added in v3.20.0

type GetUserTenantsTenantInput interface {
	pulumi.Input

	ToGetUserTenantsTenantOutput() GetUserTenantsTenantOutput
	ToGetUserTenantsTenantOutputWithContext(context.Context) GetUserTenantsTenantOutput
}

GetUserTenantsTenantInput is an input type that accepts GetUserTenantsTenantArgs and GetUserTenantsTenantOutput values. You can construct a concrete instance of `GetUserTenantsTenantInput` via:

GetUserTenantsTenantArgs{...}

type GetUserTenantsTenantOutput added in v3.20.0

type GetUserTenantsTenantOutput struct{ *pulumi.OutputState }

func (GetUserTenantsTenantOutput) ElementType added in v3.20.0

func (GetUserTenantsTenantOutput) ElementType() reflect.Type

func (GetUserTenantsTenantOutput) Id added in v3.20.0

The user tenant id.

func (GetUserTenantsTenantOutput) Status added in v3.20.0

The status of the user tenant.

func (GetUserTenantsTenantOutput) TenantName added in v3.20.0

The name of the user tenant.

func (GetUserTenantsTenantOutput) Tid added in v3.20.0

The user tenant id. Same as id.

func (GetUserTenantsTenantOutput) ToGetUserTenantsTenantOutput added in v3.20.0

func (o GetUserTenantsTenantOutput) ToGetUserTenantsTenantOutput() GetUserTenantsTenantOutput

func (GetUserTenantsTenantOutput) ToGetUserTenantsTenantOutputWithContext added in v3.20.0

func (o GetUserTenantsTenantOutput) ToGetUserTenantsTenantOutputWithContext(ctx context.Context) GetUserTenantsTenantOutput

Jump to

Keyboard shortcuts

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