cddc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type DedicatedHost

type DedicatedHost struct {
	pulumi.CustomResourceState

	// Specifies whether instances can be created on the host. Valid values: `Allocatable` or `Suspended`. `Allocatable`: Instances can be created on the host. `Suspended`: Instances cannot be created on the host.
	AllocationStatus pulumi.StringOutput `pulumi:"allocationStatus"`
	// Specifies whether to enable the auto-renewal feature.
	AutoRenew pulumi.BoolPtrOutput `pulumi:"autoRenew"`
	// The ID of the dedicated cluster.
	DedicatedHostGroupId pulumi.StringOutput `pulumi:"dedicatedHostGroupId"`
	// The ID of the host.
	DedicatedHostId pulumi.StringOutput `pulumi:"dedicatedHostId"`
	// The instance type of the host. For more information about the supported instance types of hosts, see [Host specification details](https://www.alibabacloud.com/help/doc-detail/206343.htm).
	HostClass pulumi.StringOutput `pulumi:"hostClass"`
	// The name of the host. The name must be `1` to `64` characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.
	HostName pulumi.StringOutput `pulumi:"hostName"`
	// Host Image Category. Valid values: `WindowsWithMssqlEntAlwaysonLicense`, `WindowsWithMssqlStdLicense`, `WindowsWithMssqlEntLicense`, `WindowsWithMssqlWebLicense`, `AliLinux`.
	ImageCategory pulumi.StringPtrOutput `pulumi:"imageCategory"`
	// Host password. **NOTE:** The creation of a host password is supported only when the database type is `Tair-PMem`.
	OsPassword pulumi.StringPtrOutput `pulumi:"osPassword"`
	// The payment type of the resource. Valid values: `Subscription`.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// The unit of the subscription duration. Valid values: `Year`, `Month`, `Week`.
	Period pulumi.StringPtrOutput `pulumi:"period"`
	// The state of the host. Valid values: `0:` The host is being created. `1`: The host is running. `2`: The host is faulty. `3`: The host is ready for deactivation. `4`: The host is being maintained. `5`: The host is deactivated. `6`: The host is restarting. `7`: The host is locked.
	Status pulumi.StringOutput `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The subscription duration of the host. Valid values:
	// * If the Period parameter is set to `Year`, the value of the UsedTime parameter ranges from `1` to `5`.
	// * If the Period parameter is set to `Month`, the value of the UsedTime parameter ranges from `1` to `9`.
	// * If the Period parameter is set to `Week`, the value of the UsedTime parameter ranges from `1`, `2` and `3`.
	UsedTime pulumi.IntPtrOutput `pulumi:"usedTime"`
	// The ID of the vSwitch to which the host is connected.
	VswitchId pulumi.StringOutput `pulumi:"vswitchId"`
	// The ID of the zone.
	ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}

Provides a ApsaraDB for MyBase Dedicated Host resource.

For information about ApsaraDB for MyBase Dedicated Host and how to use it, see [What is Dedicated Host](https://www.alibabacloud.com/help/doc-detail/210864.html).

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cddc"
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cddc"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultZones, err := cddc.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultHostEcsLevelInfos, err := cddc.GetHostEcsLevelInfos(ctx, &cddc.GetHostEcsLevelInfosArgs{
			DbType:      "mysql",
			ZoneId:      defaultZones.Ids[0],
			StorageType: "cloud_essd",
		}, nil)
		if err != nil {
			return err
		}
		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultZones.Ids[0]),
		}, nil)
		if err != nil {
			return err
		}
		defaultDedicatedHostGroup, err := cddc.NewDedicatedHostGroup(ctx, "defaultDedicatedHostGroup", &cddc.DedicatedHostGroupArgs{
			Engine:                 pulumi.String("MySQL"),
			VpcId:                  pulumi.String(defaultNetworks.Ids[0]),
			CpuAllocationRatio:     pulumi.Int(101),
			MemAllocationRatio:     pulumi.Int(50),
			DiskAllocationRatio:    pulumi.Int(200),
			AllocationPolicy:       pulumi.String("Evenly"),
			HostReplacePolicy:      pulumi.String("Manual"),
			DedicatedHostGroupDesc: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = cddc.NewDedicatedHost(ctx, "defaultDedicatedHost", &cddc.DedicatedHostArgs{
			HostName:             pulumi.String("example_value"),
			DedicatedHostGroupId: defaultDedicatedHostGroup.ID(),
			HostClass:            pulumi.String(defaultHostEcsLevelInfos.Infos[0].ResClassCode),
			ZoneId:               pulumi.String(defaultZones.Ids[0]),
			VswitchId:            pulumi.String(defaultSwitches.Ids[0]),
			PaymentType:          pulumi.String("Subscription"),
			Tags: pulumi.AnyMap{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("CDDC_DEDICATED"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ApsaraDB for MyBase Dedicated Host can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cddc/dedicatedHost:DedicatedHost example <dedicated_host_group_id>:<dedicated_host_id>

```

func GetDedicatedHost

func GetDedicatedHost(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DedicatedHostState, opts ...pulumi.ResourceOption) (*DedicatedHost, error)

GetDedicatedHost gets an existing DedicatedHost 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 NewDedicatedHost

func NewDedicatedHost(ctx *pulumi.Context,
	name string, args *DedicatedHostArgs, opts ...pulumi.ResourceOption) (*DedicatedHost, error)

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

func (*DedicatedHost) ElementType

func (*DedicatedHost) ElementType() reflect.Type

func (*DedicatedHost) ToDedicatedHostOutput

func (i *DedicatedHost) ToDedicatedHostOutput() DedicatedHostOutput

func (*DedicatedHost) ToDedicatedHostOutputWithContext

func (i *DedicatedHost) ToDedicatedHostOutputWithContext(ctx context.Context) DedicatedHostOutput

type DedicatedHostAccount

type DedicatedHostAccount struct {
	pulumi.CustomResourceState

	// The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters `!@#$%^&*()_+-=`.
	AccountPassword pulumi.StringOutput `pulumi:"accountPassword"`
	// The type of the Dedicated host account. Valid values: `Admin`, `Normal`.
	AccountType pulumi.StringPtrOutput `pulumi:"accountType"`
	// The ID of Dedicated the host.
	DedicatedHostId pulumi.StringOutput `pulumi:"dedicatedHostId"`
}

Provides a ApsaraDB for MyBase Dedicated Host Account resource.

For information about ApsaraDB for MyBase Dedicated Host Account and how to use it, see [What is Dedicated Host Account](https://www.alibabacloud.com/help/en/doc-detail/196877.html).

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

> **NOTE:** Each Dedicated host can have only one account. Before you create an account for a host, make sure that the existing account is deleted.

## Import

ApsaraDB for MyBase Dedicated Host Account can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cddc/dedicatedHostAccount:DedicatedHostAccount example <dedicated_host_id>:<account_name>

```

func GetDedicatedHostAccount

func GetDedicatedHostAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DedicatedHostAccountState, opts ...pulumi.ResourceOption) (*DedicatedHostAccount, error)

GetDedicatedHostAccount gets an existing DedicatedHostAccount 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 NewDedicatedHostAccount

func NewDedicatedHostAccount(ctx *pulumi.Context,
	name string, args *DedicatedHostAccountArgs, opts ...pulumi.ResourceOption) (*DedicatedHostAccount, error)

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

func (*DedicatedHostAccount) ElementType

func (*DedicatedHostAccount) ElementType() reflect.Type

func (*DedicatedHostAccount) ToDedicatedHostAccountOutput

func (i *DedicatedHostAccount) ToDedicatedHostAccountOutput() DedicatedHostAccountOutput

func (*DedicatedHostAccount) ToDedicatedHostAccountOutputWithContext

func (i *DedicatedHostAccount) ToDedicatedHostAccountOutputWithContext(ctx context.Context) DedicatedHostAccountOutput

type DedicatedHostAccountArgs

type DedicatedHostAccountArgs struct {
	// The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
	AccountName pulumi.StringInput
	// The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters `!@#$%^&*()_+-=`.
	AccountPassword pulumi.StringInput
	// The type of the Dedicated host account. Valid values: `Admin`, `Normal`.
	AccountType pulumi.StringPtrInput
	// The ID of Dedicated the host.
	DedicatedHostId pulumi.StringInput
}

The set of arguments for constructing a DedicatedHostAccount resource.

func (DedicatedHostAccountArgs) ElementType

func (DedicatedHostAccountArgs) ElementType() reflect.Type

type DedicatedHostAccountArray

type DedicatedHostAccountArray []DedicatedHostAccountInput

func (DedicatedHostAccountArray) ElementType

func (DedicatedHostAccountArray) ElementType() reflect.Type

func (DedicatedHostAccountArray) ToDedicatedHostAccountArrayOutput

func (i DedicatedHostAccountArray) ToDedicatedHostAccountArrayOutput() DedicatedHostAccountArrayOutput

func (DedicatedHostAccountArray) ToDedicatedHostAccountArrayOutputWithContext

func (i DedicatedHostAccountArray) ToDedicatedHostAccountArrayOutputWithContext(ctx context.Context) DedicatedHostAccountArrayOutput

type DedicatedHostAccountArrayInput

type DedicatedHostAccountArrayInput interface {
	pulumi.Input

	ToDedicatedHostAccountArrayOutput() DedicatedHostAccountArrayOutput
	ToDedicatedHostAccountArrayOutputWithContext(context.Context) DedicatedHostAccountArrayOutput
}

DedicatedHostAccountArrayInput is an input type that accepts DedicatedHostAccountArray and DedicatedHostAccountArrayOutput values. You can construct a concrete instance of `DedicatedHostAccountArrayInput` via:

DedicatedHostAccountArray{ DedicatedHostAccountArgs{...} }

type DedicatedHostAccountArrayOutput

type DedicatedHostAccountArrayOutput struct{ *pulumi.OutputState }

func (DedicatedHostAccountArrayOutput) ElementType

func (DedicatedHostAccountArrayOutput) Index

func (DedicatedHostAccountArrayOutput) ToDedicatedHostAccountArrayOutput

func (o DedicatedHostAccountArrayOutput) ToDedicatedHostAccountArrayOutput() DedicatedHostAccountArrayOutput

func (DedicatedHostAccountArrayOutput) ToDedicatedHostAccountArrayOutputWithContext

func (o DedicatedHostAccountArrayOutput) ToDedicatedHostAccountArrayOutputWithContext(ctx context.Context) DedicatedHostAccountArrayOutput

type DedicatedHostAccountInput

type DedicatedHostAccountInput interface {
	pulumi.Input

	ToDedicatedHostAccountOutput() DedicatedHostAccountOutput
	ToDedicatedHostAccountOutputWithContext(ctx context.Context) DedicatedHostAccountOutput
}

type DedicatedHostAccountMap

type DedicatedHostAccountMap map[string]DedicatedHostAccountInput

func (DedicatedHostAccountMap) ElementType

func (DedicatedHostAccountMap) ElementType() reflect.Type

func (DedicatedHostAccountMap) ToDedicatedHostAccountMapOutput

func (i DedicatedHostAccountMap) ToDedicatedHostAccountMapOutput() DedicatedHostAccountMapOutput

func (DedicatedHostAccountMap) ToDedicatedHostAccountMapOutputWithContext

func (i DedicatedHostAccountMap) ToDedicatedHostAccountMapOutputWithContext(ctx context.Context) DedicatedHostAccountMapOutput

type DedicatedHostAccountMapInput

type DedicatedHostAccountMapInput interface {
	pulumi.Input

	ToDedicatedHostAccountMapOutput() DedicatedHostAccountMapOutput
	ToDedicatedHostAccountMapOutputWithContext(context.Context) DedicatedHostAccountMapOutput
}

DedicatedHostAccountMapInput is an input type that accepts DedicatedHostAccountMap and DedicatedHostAccountMapOutput values. You can construct a concrete instance of `DedicatedHostAccountMapInput` via:

DedicatedHostAccountMap{ "key": DedicatedHostAccountArgs{...} }

type DedicatedHostAccountMapOutput

type DedicatedHostAccountMapOutput struct{ *pulumi.OutputState }

func (DedicatedHostAccountMapOutput) ElementType

func (DedicatedHostAccountMapOutput) MapIndex

func (DedicatedHostAccountMapOutput) ToDedicatedHostAccountMapOutput

func (o DedicatedHostAccountMapOutput) ToDedicatedHostAccountMapOutput() DedicatedHostAccountMapOutput

func (DedicatedHostAccountMapOutput) ToDedicatedHostAccountMapOutputWithContext

func (o DedicatedHostAccountMapOutput) ToDedicatedHostAccountMapOutputWithContext(ctx context.Context) DedicatedHostAccountMapOutput

type DedicatedHostAccountOutput

type DedicatedHostAccountOutput struct{ *pulumi.OutputState }

func (DedicatedHostAccountOutput) AccountName

The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

func (DedicatedHostAccountOutput) AccountPassword

func (o DedicatedHostAccountOutput) AccountPassword() pulumi.StringOutput

The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters `!@#$%^&*()_+-=`.

func (DedicatedHostAccountOutput) AccountType

The type of the Dedicated host account. Valid values: `Admin`, `Normal`.

func (DedicatedHostAccountOutput) DedicatedHostId

func (o DedicatedHostAccountOutput) DedicatedHostId() pulumi.StringOutput

The ID of Dedicated the host.

func (DedicatedHostAccountOutput) ElementType

func (DedicatedHostAccountOutput) ElementType() reflect.Type

func (DedicatedHostAccountOutput) ToDedicatedHostAccountOutput

func (o DedicatedHostAccountOutput) ToDedicatedHostAccountOutput() DedicatedHostAccountOutput

func (DedicatedHostAccountOutput) ToDedicatedHostAccountOutputWithContext

func (o DedicatedHostAccountOutput) ToDedicatedHostAccountOutputWithContext(ctx context.Context) DedicatedHostAccountOutput

type DedicatedHostAccountState

type DedicatedHostAccountState struct {
	// The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.
	AccountName pulumi.StringPtrInput
	// The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters `!@#$%^&*()_+-=`.
	AccountPassword pulumi.StringPtrInput
	// The type of the Dedicated host account. Valid values: `Admin`, `Normal`.
	AccountType pulumi.StringPtrInput
	// The ID of Dedicated the host.
	DedicatedHostId pulumi.StringPtrInput
}

func (DedicatedHostAccountState) ElementType

func (DedicatedHostAccountState) ElementType() reflect.Type

type DedicatedHostArgs

type DedicatedHostArgs struct {
	// Specifies whether instances can be created on the host. Valid values: `Allocatable` or `Suspended`. `Allocatable`: Instances can be created on the host. `Suspended`: Instances cannot be created on the host.
	AllocationStatus pulumi.StringPtrInput
	// Specifies whether to enable the auto-renewal feature.
	AutoRenew pulumi.BoolPtrInput
	// The ID of the dedicated cluster.
	DedicatedHostGroupId pulumi.StringInput
	// The instance type of the host. For more information about the supported instance types of hosts, see [Host specification details](https://www.alibabacloud.com/help/doc-detail/206343.htm).
	HostClass pulumi.StringInput
	// The name of the host. The name must be `1` to `64` characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.
	HostName pulumi.StringPtrInput
	// Host Image Category. Valid values: `WindowsWithMssqlEntAlwaysonLicense`, `WindowsWithMssqlStdLicense`, `WindowsWithMssqlEntLicense`, `WindowsWithMssqlWebLicense`, `AliLinux`.
	ImageCategory pulumi.StringPtrInput
	// Host password. **NOTE:** The creation of a host password is supported only when the database type is `Tair-PMem`.
	OsPassword pulumi.StringPtrInput
	// The payment type of the resource. Valid values: `Subscription`.
	PaymentType pulumi.StringInput
	// The unit of the subscription duration. Valid values: `Year`, `Month`, `Week`.
	Period pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The subscription duration of the host. Valid values:
	// * If the Period parameter is set to `Year`, the value of the UsedTime parameter ranges from `1` to `5`.
	// * If the Period parameter is set to `Month`, the value of the UsedTime parameter ranges from `1` to `9`.
	// * If the Period parameter is set to `Week`, the value of the UsedTime parameter ranges from `1`, `2` and `3`.
	UsedTime pulumi.IntPtrInput
	// The ID of the vSwitch to which the host is connected.
	VswitchId pulumi.StringInput
	// The ID of the zone.
	ZoneId pulumi.StringInput
}

The set of arguments for constructing a DedicatedHost resource.

func (DedicatedHostArgs) ElementType

func (DedicatedHostArgs) ElementType() reflect.Type

type DedicatedHostArray

type DedicatedHostArray []DedicatedHostInput

func (DedicatedHostArray) ElementType

func (DedicatedHostArray) ElementType() reflect.Type

func (DedicatedHostArray) ToDedicatedHostArrayOutput

func (i DedicatedHostArray) ToDedicatedHostArrayOutput() DedicatedHostArrayOutput

func (DedicatedHostArray) ToDedicatedHostArrayOutputWithContext

func (i DedicatedHostArray) ToDedicatedHostArrayOutputWithContext(ctx context.Context) DedicatedHostArrayOutput

type DedicatedHostArrayInput

type DedicatedHostArrayInput interface {
	pulumi.Input

	ToDedicatedHostArrayOutput() DedicatedHostArrayOutput
	ToDedicatedHostArrayOutputWithContext(context.Context) DedicatedHostArrayOutput
}

DedicatedHostArrayInput is an input type that accepts DedicatedHostArray and DedicatedHostArrayOutput values. You can construct a concrete instance of `DedicatedHostArrayInput` via:

DedicatedHostArray{ DedicatedHostArgs{...} }

type DedicatedHostArrayOutput

type DedicatedHostArrayOutput struct{ *pulumi.OutputState }

func (DedicatedHostArrayOutput) ElementType

func (DedicatedHostArrayOutput) ElementType() reflect.Type

func (DedicatedHostArrayOutput) Index

func (DedicatedHostArrayOutput) ToDedicatedHostArrayOutput

func (o DedicatedHostArrayOutput) ToDedicatedHostArrayOutput() DedicatedHostArrayOutput

func (DedicatedHostArrayOutput) ToDedicatedHostArrayOutputWithContext

func (o DedicatedHostArrayOutput) ToDedicatedHostArrayOutputWithContext(ctx context.Context) DedicatedHostArrayOutput

type DedicatedHostGroup

type DedicatedHostGroup struct {
	pulumi.CustomResourceState

	// AThe policy that is used to allocate resources in the dedicated cluster. Valid values:`Evenly`,`Intensively`
	AllocationPolicy pulumi.StringOutput `pulumi:"allocationPolicy"`
	// The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
	CpuAllocationRatio pulumi.IntOutput `pulumi:"cpuAllocationRatio"`
	// The name of the dedicated cluster. The name must be 1 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
	DedicatedHostGroupDesc pulumi.StringPtrOutput `pulumi:"dedicatedHostGroupDesc"`
	// The Disk Allocation Ratio of the Dedicated Host Group. **NOTE:** When `engine = SQLServer`, this attribute does not support to set.
	DiskAllocationRatio pulumi.IntOutput `pulumi:"diskAllocationRatio"`
	// Database Engine Type.The database engine of the dedicated cluster. Valid values:`Redis`, `SQLServer`, `MySQL`, `PostgreSQL`, `MongoDB`
	Engine pulumi.StringOutput `pulumi:"engine"`
	// The policy based on which the system handles host failures. Valid values:`Auto`,`Manual`
	HostReplacePolicy pulumi.StringOutput `pulumi:"hostReplacePolicy"`
	// The Memory Allocation Ratio of the Dedicated Host Group.
	MemAllocationRatio pulumi.IntOutput `pulumi:"memAllocationRatio"`
	// Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values: `true` and `false`.
	// **NOTE:** The `openPermission` should be `true` when `engine = "SQLServer"`
	OpenPermission pulumi.BoolOutput `pulumi:"openPermission"`
	// The virtual private cloud (VPC) ID of the dedicated cluster.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
}

Provides a ApsaraDB for MyBase Dedicated Host Group resource.

For information about ApsaraDB for MyBase Dedicated Host Group and how to use it, see [What is Dedicated Host Group](https://www.alibabacloud.com/help/doc-detail/141455.htm).

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cddc"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			VpcName:   pulumi.String("tf_test_foo"),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		_, err = cddc.NewDedicatedHostGroup(ctx, "default", &cddc.DedicatedHostGroupArgs{
			Engine:                 pulumi.String("MongoDB"),
			VpcId:                  vpc.ID(),
			CpuAllocationRatio:     pulumi.Int(101),
			MemAllocationRatio:     pulumi.Int(50),
			DiskAllocationRatio:    pulumi.Int(200),
			AllocationPolicy:       pulumi.String("Evenly"),
			HostReplacePolicy:      pulumi.String("Manual"),
			DedicatedHostGroupDesc: pulumi.String("tf-testaccDesc"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ApsaraDB for MyBase Dedicated Host Group can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cddc/dedicatedHostGroup:DedicatedHostGroup example <id>

```

func GetDedicatedHostGroup

func GetDedicatedHostGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DedicatedHostGroupState, opts ...pulumi.ResourceOption) (*DedicatedHostGroup, error)

GetDedicatedHostGroup gets an existing DedicatedHostGroup 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 NewDedicatedHostGroup

func NewDedicatedHostGroup(ctx *pulumi.Context,
	name string, args *DedicatedHostGroupArgs, opts ...pulumi.ResourceOption) (*DedicatedHostGroup, error)

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

func (*DedicatedHostGroup) ElementType

func (*DedicatedHostGroup) ElementType() reflect.Type

func (*DedicatedHostGroup) ToDedicatedHostGroupOutput

func (i *DedicatedHostGroup) ToDedicatedHostGroupOutput() DedicatedHostGroupOutput

func (*DedicatedHostGroup) ToDedicatedHostGroupOutputWithContext

func (i *DedicatedHostGroup) ToDedicatedHostGroupOutputWithContext(ctx context.Context) DedicatedHostGroupOutput

type DedicatedHostGroupArgs

type DedicatedHostGroupArgs struct {
	// AThe policy that is used to allocate resources in the dedicated cluster. Valid values:`Evenly`,`Intensively`
	AllocationPolicy pulumi.StringPtrInput
	// The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
	CpuAllocationRatio pulumi.IntPtrInput
	// The name of the dedicated cluster. The name must be 1 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
	DedicatedHostGroupDesc pulumi.StringPtrInput
	// The Disk Allocation Ratio of the Dedicated Host Group. **NOTE:** When `engine = SQLServer`, this attribute does not support to set.
	DiskAllocationRatio pulumi.IntPtrInput
	// Database Engine Type.The database engine of the dedicated cluster. Valid values:`Redis`, `SQLServer`, `MySQL`, `PostgreSQL`, `MongoDB`
	Engine pulumi.StringInput
	// The policy based on which the system handles host failures. Valid values:`Auto`,`Manual`
	HostReplacePolicy pulumi.StringPtrInput
	// The Memory Allocation Ratio of the Dedicated Host Group.
	MemAllocationRatio pulumi.IntPtrInput
	// Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values: `true` and `false`.
	// **NOTE:** The `openPermission` should be `true` when `engine = "SQLServer"`
	OpenPermission pulumi.BoolPtrInput
	// The virtual private cloud (VPC) ID of the dedicated cluster.
	VpcId pulumi.StringInput
}

The set of arguments for constructing a DedicatedHostGroup resource.

func (DedicatedHostGroupArgs) ElementType

func (DedicatedHostGroupArgs) ElementType() reflect.Type

type DedicatedHostGroupArray

type DedicatedHostGroupArray []DedicatedHostGroupInput

func (DedicatedHostGroupArray) ElementType

func (DedicatedHostGroupArray) ElementType() reflect.Type

func (DedicatedHostGroupArray) ToDedicatedHostGroupArrayOutput

func (i DedicatedHostGroupArray) ToDedicatedHostGroupArrayOutput() DedicatedHostGroupArrayOutput

func (DedicatedHostGroupArray) ToDedicatedHostGroupArrayOutputWithContext

func (i DedicatedHostGroupArray) ToDedicatedHostGroupArrayOutputWithContext(ctx context.Context) DedicatedHostGroupArrayOutput

type DedicatedHostGroupArrayInput

type DedicatedHostGroupArrayInput interface {
	pulumi.Input

	ToDedicatedHostGroupArrayOutput() DedicatedHostGroupArrayOutput
	ToDedicatedHostGroupArrayOutputWithContext(context.Context) DedicatedHostGroupArrayOutput
}

DedicatedHostGroupArrayInput is an input type that accepts DedicatedHostGroupArray and DedicatedHostGroupArrayOutput values. You can construct a concrete instance of `DedicatedHostGroupArrayInput` via:

DedicatedHostGroupArray{ DedicatedHostGroupArgs{...} }

type DedicatedHostGroupArrayOutput

type DedicatedHostGroupArrayOutput struct{ *pulumi.OutputState }

func (DedicatedHostGroupArrayOutput) ElementType

func (DedicatedHostGroupArrayOutput) Index

func (DedicatedHostGroupArrayOutput) ToDedicatedHostGroupArrayOutput

func (o DedicatedHostGroupArrayOutput) ToDedicatedHostGroupArrayOutput() DedicatedHostGroupArrayOutput

func (DedicatedHostGroupArrayOutput) ToDedicatedHostGroupArrayOutputWithContext

func (o DedicatedHostGroupArrayOutput) ToDedicatedHostGroupArrayOutputWithContext(ctx context.Context) DedicatedHostGroupArrayOutput

type DedicatedHostGroupInput

type DedicatedHostGroupInput interface {
	pulumi.Input

	ToDedicatedHostGroupOutput() DedicatedHostGroupOutput
	ToDedicatedHostGroupOutputWithContext(ctx context.Context) DedicatedHostGroupOutput
}

type DedicatedHostGroupMap

type DedicatedHostGroupMap map[string]DedicatedHostGroupInput

func (DedicatedHostGroupMap) ElementType

func (DedicatedHostGroupMap) ElementType() reflect.Type

func (DedicatedHostGroupMap) ToDedicatedHostGroupMapOutput

func (i DedicatedHostGroupMap) ToDedicatedHostGroupMapOutput() DedicatedHostGroupMapOutput

func (DedicatedHostGroupMap) ToDedicatedHostGroupMapOutputWithContext

func (i DedicatedHostGroupMap) ToDedicatedHostGroupMapOutputWithContext(ctx context.Context) DedicatedHostGroupMapOutput

type DedicatedHostGroupMapInput

type DedicatedHostGroupMapInput interface {
	pulumi.Input

	ToDedicatedHostGroupMapOutput() DedicatedHostGroupMapOutput
	ToDedicatedHostGroupMapOutputWithContext(context.Context) DedicatedHostGroupMapOutput
}

DedicatedHostGroupMapInput is an input type that accepts DedicatedHostGroupMap and DedicatedHostGroupMapOutput values. You can construct a concrete instance of `DedicatedHostGroupMapInput` via:

DedicatedHostGroupMap{ "key": DedicatedHostGroupArgs{...} }

type DedicatedHostGroupMapOutput

type DedicatedHostGroupMapOutput struct{ *pulumi.OutputState }

func (DedicatedHostGroupMapOutput) ElementType

func (DedicatedHostGroupMapOutput) MapIndex

func (DedicatedHostGroupMapOutput) ToDedicatedHostGroupMapOutput

func (o DedicatedHostGroupMapOutput) ToDedicatedHostGroupMapOutput() DedicatedHostGroupMapOutput

func (DedicatedHostGroupMapOutput) ToDedicatedHostGroupMapOutputWithContext

func (o DedicatedHostGroupMapOutput) ToDedicatedHostGroupMapOutputWithContext(ctx context.Context) DedicatedHostGroupMapOutput

type DedicatedHostGroupOutput

type DedicatedHostGroupOutput struct{ *pulumi.OutputState }

func (DedicatedHostGroupOutput) AllocationPolicy

func (o DedicatedHostGroupOutput) AllocationPolicy() pulumi.StringOutput

AThe policy that is used to allocate resources in the dedicated cluster. Valid values:`Evenly`,`Intensively`

func (DedicatedHostGroupOutput) CpuAllocationRatio

func (o DedicatedHostGroupOutput) CpuAllocationRatio() pulumi.IntOutput

The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.

func (DedicatedHostGroupOutput) DedicatedHostGroupDesc

func (o DedicatedHostGroupOutput) DedicatedHostGroupDesc() pulumi.StringPtrOutput

The name of the dedicated cluster. The name must be 1 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

func (DedicatedHostGroupOutput) DiskAllocationRatio

func (o DedicatedHostGroupOutput) DiskAllocationRatio() pulumi.IntOutput

The Disk Allocation Ratio of the Dedicated Host Group. **NOTE:** When `engine = SQLServer`, this attribute does not support to set.

func (DedicatedHostGroupOutput) ElementType

func (DedicatedHostGroupOutput) ElementType() reflect.Type

func (DedicatedHostGroupOutput) Engine

Database Engine Type.The database engine of the dedicated cluster. Valid values:`Redis`, `SQLServer`, `MySQL`, `PostgreSQL`, `MongoDB`

func (DedicatedHostGroupOutput) HostReplacePolicy

func (o DedicatedHostGroupOutput) HostReplacePolicy() pulumi.StringOutput

The policy based on which the system handles host failures. Valid values:`Auto`,`Manual`

func (DedicatedHostGroupOutput) MemAllocationRatio

func (o DedicatedHostGroupOutput) MemAllocationRatio() pulumi.IntOutput

The Memory Allocation Ratio of the Dedicated Host Group.

func (DedicatedHostGroupOutput) OpenPermission

func (o DedicatedHostGroupOutput) OpenPermission() pulumi.BoolOutput

Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values: `true` and `false`. **NOTE:** The `openPermission` should be `true` when `engine = "SQLServer"`

func (DedicatedHostGroupOutput) ToDedicatedHostGroupOutput

func (o DedicatedHostGroupOutput) ToDedicatedHostGroupOutput() DedicatedHostGroupOutput

func (DedicatedHostGroupOutput) ToDedicatedHostGroupOutputWithContext

func (o DedicatedHostGroupOutput) ToDedicatedHostGroupOutputWithContext(ctx context.Context) DedicatedHostGroupOutput

func (DedicatedHostGroupOutput) VpcId

The virtual private cloud (VPC) ID of the dedicated cluster.

type DedicatedHostGroupState

type DedicatedHostGroupState struct {
	// AThe policy that is used to allocate resources in the dedicated cluster. Valid values:`Evenly`,`Intensively`
	AllocationPolicy pulumi.StringPtrInput
	// The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
	CpuAllocationRatio pulumi.IntPtrInput
	// The name of the dedicated cluster. The name must be 1 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
	DedicatedHostGroupDesc pulumi.StringPtrInput
	// The Disk Allocation Ratio of the Dedicated Host Group. **NOTE:** When `engine = SQLServer`, this attribute does not support to set.
	DiskAllocationRatio pulumi.IntPtrInput
	// Database Engine Type.The database engine of the dedicated cluster. Valid values:`Redis`, `SQLServer`, `MySQL`, `PostgreSQL`, `MongoDB`
	Engine pulumi.StringPtrInput
	// The policy based on which the system handles host failures. Valid values:`Auto`,`Manual`
	HostReplacePolicy pulumi.StringPtrInput
	// The Memory Allocation Ratio of the Dedicated Host Group.
	MemAllocationRatio pulumi.IntPtrInput
	// Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values: `true` and `false`.
	// **NOTE:** The `openPermission` should be `true` when `engine = "SQLServer"`
	OpenPermission pulumi.BoolPtrInput
	// The virtual private cloud (VPC) ID of the dedicated cluster.
	VpcId pulumi.StringPtrInput
}

func (DedicatedHostGroupState) ElementType

func (DedicatedHostGroupState) ElementType() reflect.Type

type DedicatedHostInput

type DedicatedHostInput interface {
	pulumi.Input

	ToDedicatedHostOutput() DedicatedHostOutput
	ToDedicatedHostOutputWithContext(ctx context.Context) DedicatedHostOutput
}

type DedicatedHostMap

type DedicatedHostMap map[string]DedicatedHostInput

func (DedicatedHostMap) ElementType

func (DedicatedHostMap) ElementType() reflect.Type

func (DedicatedHostMap) ToDedicatedHostMapOutput

func (i DedicatedHostMap) ToDedicatedHostMapOutput() DedicatedHostMapOutput

func (DedicatedHostMap) ToDedicatedHostMapOutputWithContext

func (i DedicatedHostMap) ToDedicatedHostMapOutputWithContext(ctx context.Context) DedicatedHostMapOutput

type DedicatedHostMapInput

type DedicatedHostMapInput interface {
	pulumi.Input

	ToDedicatedHostMapOutput() DedicatedHostMapOutput
	ToDedicatedHostMapOutputWithContext(context.Context) DedicatedHostMapOutput
}

DedicatedHostMapInput is an input type that accepts DedicatedHostMap and DedicatedHostMapOutput values. You can construct a concrete instance of `DedicatedHostMapInput` via:

DedicatedHostMap{ "key": DedicatedHostArgs{...} }

type DedicatedHostMapOutput

type DedicatedHostMapOutput struct{ *pulumi.OutputState }

func (DedicatedHostMapOutput) ElementType

func (DedicatedHostMapOutput) ElementType() reflect.Type

func (DedicatedHostMapOutput) MapIndex

func (DedicatedHostMapOutput) ToDedicatedHostMapOutput

func (o DedicatedHostMapOutput) ToDedicatedHostMapOutput() DedicatedHostMapOutput

func (DedicatedHostMapOutput) ToDedicatedHostMapOutputWithContext

func (o DedicatedHostMapOutput) ToDedicatedHostMapOutputWithContext(ctx context.Context) DedicatedHostMapOutput

type DedicatedHostOutput

type DedicatedHostOutput struct{ *pulumi.OutputState }

func (DedicatedHostOutput) AllocationStatus

func (o DedicatedHostOutput) AllocationStatus() pulumi.StringOutput

Specifies whether instances can be created on the host. Valid values: `Allocatable` or `Suspended`. `Allocatable`: Instances can be created on the host. `Suspended`: Instances cannot be created on the host.

func (DedicatedHostOutput) AutoRenew

Specifies whether to enable the auto-renewal feature.

func (DedicatedHostOutput) DedicatedHostGroupId

func (o DedicatedHostOutput) DedicatedHostGroupId() pulumi.StringOutput

The ID of the dedicated cluster.

func (DedicatedHostOutput) DedicatedHostId

func (o DedicatedHostOutput) DedicatedHostId() pulumi.StringOutput

The ID of the host.

func (DedicatedHostOutput) ElementType

func (DedicatedHostOutput) ElementType() reflect.Type

func (DedicatedHostOutput) HostClass

func (o DedicatedHostOutput) HostClass() pulumi.StringOutput

The instance type of the host. For more information about the supported instance types of hosts, see [Host specification details](https://www.alibabacloud.com/help/doc-detail/206343.htm).

func (DedicatedHostOutput) HostName

The name of the host. The name must be `1` to `64` characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.

func (DedicatedHostOutput) ImageCategory

func (o DedicatedHostOutput) ImageCategory() pulumi.StringPtrOutput

Host Image Category. Valid values: `WindowsWithMssqlEntAlwaysonLicense`, `WindowsWithMssqlStdLicense`, `WindowsWithMssqlEntLicense`, `WindowsWithMssqlWebLicense`, `AliLinux`.

func (DedicatedHostOutput) OsPassword

Host password. **NOTE:** The creation of a host password is supported only when the database type is `Tair-PMem`.

func (DedicatedHostOutput) PaymentType

func (o DedicatedHostOutput) PaymentType() pulumi.StringOutput

The payment type of the resource. Valid values: `Subscription`.

func (DedicatedHostOutput) Period

The unit of the subscription duration. Valid values: `Year`, `Month`, `Week`.

func (DedicatedHostOutput) Status

The state of the host. Valid values: `0:` The host is being created. `1`: The host is running. `2`: The host is faulty. `3`: The host is ready for deactivation. `4`: The host is being maintained. `5`: The host is deactivated. `6`: The host is restarting. `7`: The host is locked.

func (DedicatedHostOutput) Tags

A mapping of tags to assign to the resource.

func (DedicatedHostOutput) ToDedicatedHostOutput

func (o DedicatedHostOutput) ToDedicatedHostOutput() DedicatedHostOutput

func (DedicatedHostOutput) ToDedicatedHostOutputWithContext

func (o DedicatedHostOutput) ToDedicatedHostOutputWithContext(ctx context.Context) DedicatedHostOutput

func (DedicatedHostOutput) UsedTime

The subscription duration of the host. Valid values: * If the Period parameter is set to `Year`, the value of the UsedTime parameter ranges from `1` to `5`. * If the Period parameter is set to `Month`, the value of the UsedTime parameter ranges from `1` to `9`. * If the Period parameter is set to `Week`, the value of the UsedTime parameter ranges from `1`, `2` and `3`.

func (DedicatedHostOutput) VswitchId

func (o DedicatedHostOutput) VswitchId() pulumi.StringOutput

The ID of the vSwitch to which the host is connected.

func (DedicatedHostOutput) ZoneId

The ID of the zone.

type DedicatedHostState

type DedicatedHostState struct {
	// Specifies whether instances can be created on the host. Valid values: `Allocatable` or `Suspended`. `Allocatable`: Instances can be created on the host. `Suspended`: Instances cannot be created on the host.
	AllocationStatus pulumi.StringPtrInput
	// Specifies whether to enable the auto-renewal feature.
	AutoRenew pulumi.BoolPtrInput
	// The ID of the dedicated cluster.
	DedicatedHostGroupId pulumi.StringPtrInput
	// The ID of the host.
	DedicatedHostId pulumi.StringPtrInput
	// The instance type of the host. For more information about the supported instance types of hosts, see [Host specification details](https://www.alibabacloud.com/help/doc-detail/206343.htm).
	HostClass pulumi.StringPtrInput
	// The name of the host. The name must be `1` to `64` characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.
	HostName pulumi.StringPtrInput
	// Host Image Category. Valid values: `WindowsWithMssqlEntAlwaysonLicense`, `WindowsWithMssqlStdLicense`, `WindowsWithMssqlEntLicense`, `WindowsWithMssqlWebLicense`, `AliLinux`.
	ImageCategory pulumi.StringPtrInput
	// Host password. **NOTE:** The creation of a host password is supported only when the database type is `Tair-PMem`.
	OsPassword pulumi.StringPtrInput
	// The payment type of the resource. Valid values: `Subscription`.
	PaymentType pulumi.StringPtrInput
	// The unit of the subscription duration. Valid values: `Year`, `Month`, `Week`.
	Period pulumi.StringPtrInput
	// The state of the host. Valid values: `0:` The host is being created. `1`: The host is running. `2`: The host is faulty. `3`: The host is ready for deactivation. `4`: The host is being maintained. `5`: The host is deactivated. `6`: The host is restarting. `7`: The host is locked.
	Status pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The subscription duration of the host. Valid values:
	// * If the Period parameter is set to `Year`, the value of the UsedTime parameter ranges from `1` to `5`.
	// * If the Period parameter is set to `Month`, the value of the UsedTime parameter ranges from `1` to `9`.
	// * If the Period parameter is set to `Week`, the value of the UsedTime parameter ranges from `1`, `2` and `3`.
	UsedTime pulumi.IntPtrInput
	// The ID of the vSwitch to which the host is connected.
	VswitchId pulumi.StringPtrInput
	// The ID of the zone.
	ZoneId pulumi.StringPtrInput
}

func (DedicatedHostState) ElementType

func (DedicatedHostState) ElementType() reflect.Type

type GetDedicatedHostAccountsAccount

type GetDedicatedHostAccountsAccount struct {
	// The name of the Dedicated host account.
	AccountName string `pulumi:"accountName"`
	// The ID of the Dedicated host.
	DedicatedHostId string `pulumi:"dedicatedHostId"`
	// The ID of the Dedicated Host Account. The value formats as `<dedicated_host_id>:<account_name>`.
	Id string `pulumi:"id"`
}

type GetDedicatedHostAccountsAccountArgs

type GetDedicatedHostAccountsAccountArgs struct {
	// The name of the Dedicated host account.
	AccountName pulumi.StringInput `pulumi:"accountName"`
	// The ID of the Dedicated host.
	DedicatedHostId pulumi.StringInput `pulumi:"dedicatedHostId"`
	// The ID of the Dedicated Host Account. The value formats as `<dedicated_host_id>:<account_name>`.
	Id pulumi.StringInput `pulumi:"id"`
}

func (GetDedicatedHostAccountsAccountArgs) ElementType

func (GetDedicatedHostAccountsAccountArgs) ToGetDedicatedHostAccountsAccountOutput

func (i GetDedicatedHostAccountsAccountArgs) ToGetDedicatedHostAccountsAccountOutput() GetDedicatedHostAccountsAccountOutput

func (GetDedicatedHostAccountsAccountArgs) ToGetDedicatedHostAccountsAccountOutputWithContext

func (i GetDedicatedHostAccountsAccountArgs) ToGetDedicatedHostAccountsAccountOutputWithContext(ctx context.Context) GetDedicatedHostAccountsAccountOutput

type GetDedicatedHostAccountsAccountArray

type GetDedicatedHostAccountsAccountArray []GetDedicatedHostAccountsAccountInput

func (GetDedicatedHostAccountsAccountArray) ElementType

func (GetDedicatedHostAccountsAccountArray) ToGetDedicatedHostAccountsAccountArrayOutput

func (i GetDedicatedHostAccountsAccountArray) ToGetDedicatedHostAccountsAccountArrayOutput() GetDedicatedHostAccountsAccountArrayOutput

func (GetDedicatedHostAccountsAccountArray) ToGetDedicatedHostAccountsAccountArrayOutputWithContext

func (i GetDedicatedHostAccountsAccountArray) ToGetDedicatedHostAccountsAccountArrayOutputWithContext(ctx context.Context) GetDedicatedHostAccountsAccountArrayOutput

type GetDedicatedHostAccountsAccountArrayInput

type GetDedicatedHostAccountsAccountArrayInput interface {
	pulumi.Input

	ToGetDedicatedHostAccountsAccountArrayOutput() GetDedicatedHostAccountsAccountArrayOutput
	ToGetDedicatedHostAccountsAccountArrayOutputWithContext(context.Context) GetDedicatedHostAccountsAccountArrayOutput
}

GetDedicatedHostAccountsAccountArrayInput is an input type that accepts GetDedicatedHostAccountsAccountArray and GetDedicatedHostAccountsAccountArrayOutput values. You can construct a concrete instance of `GetDedicatedHostAccountsAccountArrayInput` via:

GetDedicatedHostAccountsAccountArray{ GetDedicatedHostAccountsAccountArgs{...} }

type GetDedicatedHostAccountsAccountArrayOutput

type GetDedicatedHostAccountsAccountArrayOutput struct{ *pulumi.OutputState }

func (GetDedicatedHostAccountsAccountArrayOutput) ElementType

func (GetDedicatedHostAccountsAccountArrayOutput) Index

func (GetDedicatedHostAccountsAccountArrayOutput) ToGetDedicatedHostAccountsAccountArrayOutput

func (o GetDedicatedHostAccountsAccountArrayOutput) ToGetDedicatedHostAccountsAccountArrayOutput() GetDedicatedHostAccountsAccountArrayOutput

func (GetDedicatedHostAccountsAccountArrayOutput) ToGetDedicatedHostAccountsAccountArrayOutputWithContext

func (o GetDedicatedHostAccountsAccountArrayOutput) ToGetDedicatedHostAccountsAccountArrayOutputWithContext(ctx context.Context) GetDedicatedHostAccountsAccountArrayOutput

type GetDedicatedHostAccountsAccountInput

type GetDedicatedHostAccountsAccountInput interface {
	pulumi.Input

	ToGetDedicatedHostAccountsAccountOutput() GetDedicatedHostAccountsAccountOutput
	ToGetDedicatedHostAccountsAccountOutputWithContext(context.Context) GetDedicatedHostAccountsAccountOutput
}

GetDedicatedHostAccountsAccountInput is an input type that accepts GetDedicatedHostAccountsAccountArgs and GetDedicatedHostAccountsAccountOutput values. You can construct a concrete instance of `GetDedicatedHostAccountsAccountInput` via:

GetDedicatedHostAccountsAccountArgs{...}

type GetDedicatedHostAccountsAccountOutput

type GetDedicatedHostAccountsAccountOutput struct{ *pulumi.OutputState }

func (GetDedicatedHostAccountsAccountOutput) AccountName

The name of the Dedicated host account.

func (GetDedicatedHostAccountsAccountOutput) DedicatedHostId

The ID of the Dedicated host.

func (GetDedicatedHostAccountsAccountOutput) ElementType

func (GetDedicatedHostAccountsAccountOutput) Id

The ID of the Dedicated Host Account. The value formats as `<dedicated_host_id>:<account_name>`.

func (GetDedicatedHostAccountsAccountOutput) ToGetDedicatedHostAccountsAccountOutput

func (o GetDedicatedHostAccountsAccountOutput) ToGetDedicatedHostAccountsAccountOutput() GetDedicatedHostAccountsAccountOutput

func (GetDedicatedHostAccountsAccountOutput) ToGetDedicatedHostAccountsAccountOutputWithContext

func (o GetDedicatedHostAccountsAccountOutput) ToGetDedicatedHostAccountsAccountOutputWithContext(ctx context.Context) GetDedicatedHostAccountsAccountOutput

type GetDedicatedHostAccountsArgs

type GetDedicatedHostAccountsArgs struct {
	// The ID of the Dedicated host.
	DedicatedHostId *string `pulumi:"dedicatedHostId"`
	// A list of Dedicated Host Account IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Account name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
}

A collection of arguments for invoking getDedicatedHostAccounts.

type GetDedicatedHostAccountsOutputArgs

type GetDedicatedHostAccountsOutputArgs struct {
	// The ID of the Dedicated host.
	DedicatedHostId pulumi.StringPtrInput `pulumi:"dedicatedHostId"`
	// A list of Dedicated Host Account IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Account name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
}

A collection of arguments for invoking getDedicatedHostAccounts.

func (GetDedicatedHostAccountsOutputArgs) ElementType

type GetDedicatedHostAccountsResult

type GetDedicatedHostAccountsResult struct {
	Accounts        []GetDedicatedHostAccountsAccount `pulumi:"accounts"`
	DedicatedHostId *string                           `pulumi:"dedicatedHostId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	PageNumber *int     `pulumi:"pageNumber"`
	PageSize   *int     `pulumi:"pageSize"`
}

A collection of values returned by getDedicatedHostAccounts.

func GetDedicatedHostAccounts

func GetDedicatedHostAccounts(ctx *pulumi.Context, args *GetDedicatedHostAccountsArgs, opts ...pulumi.InvokeOption) (*GetDedicatedHostAccountsResult, error)

This data source provides the Cddc Dedicated Host Accounts of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cddc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cddc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := cddc.GetDedicatedHostAccounts(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("cddcDedicatedHostAccountId1", ids.Accounts[0].Id)
		return nil
	})
}

```

type GetDedicatedHostAccountsResultOutput

type GetDedicatedHostAccountsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDedicatedHostAccounts.

func (GetDedicatedHostAccountsResultOutput) Accounts

func (GetDedicatedHostAccountsResultOutput) DedicatedHostId

func (GetDedicatedHostAccountsResultOutput) ElementType

func (GetDedicatedHostAccountsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDedicatedHostAccountsResultOutput) Ids

func (GetDedicatedHostAccountsResultOutput) NameRegex

func (GetDedicatedHostAccountsResultOutput) Names

func (GetDedicatedHostAccountsResultOutput) OutputFile

func (GetDedicatedHostAccountsResultOutput) PageNumber

func (GetDedicatedHostAccountsResultOutput) PageSize

func (GetDedicatedHostAccountsResultOutput) ToGetDedicatedHostAccountsResultOutput

func (o GetDedicatedHostAccountsResultOutput) ToGetDedicatedHostAccountsResultOutput() GetDedicatedHostAccountsResultOutput

func (GetDedicatedHostAccountsResultOutput) ToGetDedicatedHostAccountsResultOutputWithContext

func (o GetDedicatedHostAccountsResultOutput) ToGetDedicatedHostAccountsResultOutputWithContext(ctx context.Context) GetDedicatedHostAccountsResultOutput

type GetDedicatedHostGroupsArgs

type GetDedicatedHostGroupsArgs struct {
	// Database Engine Type.The database engine of the dedicated cluster. Valid values:`Redis`, `SQLServer`, `MySQL`, `PostgreSQL`, `MongoDB`
	Engine *string `pulumi:"engine"`
	// A list of Dedicated Host Group IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Dedicated Host Group name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getDedicatedHostGroups.

type GetDedicatedHostGroupsGroup

type GetDedicatedHostGroupsGroup struct {
	// The policy that is used to allocate resources in the dedicated cluster. Valid values:`Evenly`,`Intensively`
	AllocationPolicy string `pulumi:"allocationPolicy"`
	// The Bastion Instance id of the Dedicated Host Group.
	BastionInstanceId string `pulumi:"bastionInstanceId"`
	// The CPU overcommitment ratio of the dedicated cluster. If you set this parameter to 200, the CPU resources that can be allocated are twice as many as the CPU resources that are provided. This maximizes the CPU utilization. Valid values: 100 to 300. Default value: 200.
	CpuAllocateRation float64 `pulumi:"cpuAllocateRation"`
	// The CPU Allocated Amount of the Dedicated Host Group.
	CpuAllocatedAmount float64 `pulumi:"cpuAllocatedAmount"`
	// The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
	CpuAllocationRatio int `pulumi:"cpuAllocationRatio"`
	// The Created Time of the Dedicated Host Group.
	CreateTime string `pulumi:"createTime"`
	// The Dedicated Host Count Group by Host Type of the Dedicated Host Group.
	DedicatedHostCountGroupByHostTypes []GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostType `pulumi:"dedicatedHostCountGroupByHostTypes"`
	// -The name of the dedicated cluster. The name must be 1 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
	DedicatedHostGroupDesc string `pulumi:"dedicatedHostGroupDesc"`
	// Dedicated Host Group ID.
	DedicatedHostGroupId string `pulumi:"dedicatedHostGroupId"`
	// The Deployment Type of the Dedicated Host Group.
	DeployType string `pulumi:"deployType"`
	// The storage overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
	DiskAllocateRation float64 `pulumi:"diskAllocateRation"`
	// The Disk Allocated Amount of the Dedicated Host Group.
	DiskAllocatedAmount float64 `pulumi:"diskAllocatedAmount"`
	// The Disk Allocation Ratio of the Dedicated Host Group.
	DiskAllocationRatio int `pulumi:"diskAllocationRatio"`
	// The DiskUsedAmount of the Dedicated Host Group.
	DiskUsedAmount float64 `pulumi:"diskUsedAmount"`
	// The DiskUtility of the Dedicated Host Group.
	DiskUtility float64 `pulumi:"diskUtility"`
	// Database Engine Type.The database engine of the dedicated cluster. Valid values:`Redis`, `SQLServer`, `MySQL`, `PostgreSQL`, `MongoDB`
	Engine string `pulumi:"engine"`
	// The Total Host Number  of the Dedicated Host Group.
	HostNumber int `pulumi:"hostNumber"`
	// The policy based on which the system handles host failures. Valid values:`Auto`,`Manual`
	HostReplacePolicy string `pulumi:"hostReplacePolicy"`
	// The ID of the Dedicated Host Group.
	Id string `pulumi:"id"`
	// The Total Instance Number of the Dedicated Host Group.
	InstanceNumber int `pulumi:"instanceNumber"`
	// The maximum memory usage of each host in the dedicated cluster.Valid values: 0 to 90. Default value: 90.
	MemAllocateRation float64 `pulumi:"memAllocateRation"`
	// The MemAllocatedAmount of the Dedicated Host Group.
	MemAllocatedAmount float64 `pulumi:"memAllocatedAmount"`
	// The Memory Allocation Ratio of the Dedicated Host Group.
	MemAllocationRatio int `pulumi:"memAllocationRatio"`
	// The MemUsedAmount of the Dedicated Host Group.
	MemUsedAmount float64 `pulumi:"memUsedAmount"`
	// The Mem Utility of the Dedicated Host Group.
	MemUtility float64 `pulumi:"memUtility"`
	// The Text of the Dedicated Host Group.
	Text string `pulumi:"text"`
	// The virtual private cloud (VPC) ID of the dedicated cluster.
	VpcId string `pulumi:"vpcId"`
	// The ZoneIDList of the Dedicated Host Group.
	ZoneIdLists []GetDedicatedHostGroupsGroupZoneIdList `pulumi:"zoneIdLists"`
}

type GetDedicatedHostGroupsGroupArgs

type GetDedicatedHostGroupsGroupArgs struct {
	// The policy that is used to allocate resources in the dedicated cluster. Valid values:`Evenly`,`Intensively`
	AllocationPolicy pulumi.StringInput `pulumi:"allocationPolicy"`
	// The Bastion Instance id of the Dedicated Host Group.
	BastionInstanceId pulumi.StringInput `pulumi:"bastionInstanceId"`
	// The CPU overcommitment ratio of the dedicated cluster. If you set this parameter to 200, the CPU resources that can be allocated are twice as many as the CPU resources that are provided. This maximizes the CPU utilization. Valid values: 100 to 300. Default value: 200.
	CpuAllocateRation pulumi.Float64Input `pulumi:"cpuAllocateRation"`
	// The CPU Allocated Amount of the Dedicated Host Group.
	CpuAllocatedAmount pulumi.Float64Input `pulumi:"cpuAllocatedAmount"`
	// The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
	CpuAllocationRatio pulumi.IntInput `pulumi:"cpuAllocationRatio"`
	// The Created Time of the Dedicated Host Group.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The Dedicated Host Count Group by Host Type of the Dedicated Host Group.
	DedicatedHostCountGroupByHostTypes GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayInput `pulumi:"dedicatedHostCountGroupByHostTypes"`
	// -The name of the dedicated cluster. The name must be 1 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.
	DedicatedHostGroupDesc pulumi.StringInput `pulumi:"dedicatedHostGroupDesc"`
	// Dedicated Host Group ID.
	DedicatedHostGroupId pulumi.StringInput `pulumi:"dedicatedHostGroupId"`
	// The Deployment Type of the Dedicated Host Group.
	DeployType pulumi.StringInput `pulumi:"deployType"`
	// The storage overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
	DiskAllocateRation pulumi.Float64Input `pulumi:"diskAllocateRation"`
	// The Disk Allocated Amount of the Dedicated Host Group.
	DiskAllocatedAmount pulumi.Float64Input `pulumi:"diskAllocatedAmount"`
	// The Disk Allocation Ratio of the Dedicated Host Group.
	DiskAllocationRatio pulumi.IntInput `pulumi:"diskAllocationRatio"`
	// The DiskUsedAmount of the Dedicated Host Group.
	DiskUsedAmount pulumi.Float64Input `pulumi:"diskUsedAmount"`
	// The DiskUtility of the Dedicated Host Group.
	DiskUtility pulumi.Float64Input `pulumi:"diskUtility"`
	// Database Engine Type.The database engine of the dedicated cluster. Valid values:`Redis`, `SQLServer`, `MySQL`, `PostgreSQL`, `MongoDB`
	Engine pulumi.StringInput `pulumi:"engine"`
	// The Total Host Number  of the Dedicated Host Group.
	HostNumber pulumi.IntInput `pulumi:"hostNumber"`
	// The policy based on which the system handles host failures. Valid values:`Auto`,`Manual`
	HostReplacePolicy pulumi.StringInput `pulumi:"hostReplacePolicy"`
	// The ID of the Dedicated Host Group.
	Id pulumi.StringInput `pulumi:"id"`
	// The Total Instance Number of the Dedicated Host Group.
	InstanceNumber pulumi.IntInput `pulumi:"instanceNumber"`
	// The maximum memory usage of each host in the dedicated cluster.Valid values: 0 to 90. Default value: 90.
	MemAllocateRation pulumi.Float64Input `pulumi:"memAllocateRation"`
	// The MemAllocatedAmount of the Dedicated Host Group.
	MemAllocatedAmount pulumi.Float64Input `pulumi:"memAllocatedAmount"`
	// The Memory Allocation Ratio of the Dedicated Host Group.
	MemAllocationRatio pulumi.IntInput `pulumi:"memAllocationRatio"`
	// The MemUsedAmount of the Dedicated Host Group.
	MemUsedAmount pulumi.Float64Input `pulumi:"memUsedAmount"`
	// The Mem Utility of the Dedicated Host Group.
	MemUtility pulumi.Float64Input `pulumi:"memUtility"`
	// The Text of the Dedicated Host Group.
	Text pulumi.StringInput `pulumi:"text"`
	// The virtual private cloud (VPC) ID of the dedicated cluster.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// The ZoneIDList of the Dedicated Host Group.
	ZoneIdLists GetDedicatedHostGroupsGroupZoneIdListArrayInput `pulumi:"zoneIdLists"`
}

func (GetDedicatedHostGroupsGroupArgs) ElementType

func (GetDedicatedHostGroupsGroupArgs) ToGetDedicatedHostGroupsGroupOutput

func (i GetDedicatedHostGroupsGroupArgs) ToGetDedicatedHostGroupsGroupOutput() GetDedicatedHostGroupsGroupOutput

func (GetDedicatedHostGroupsGroupArgs) ToGetDedicatedHostGroupsGroupOutputWithContext

func (i GetDedicatedHostGroupsGroupArgs) ToGetDedicatedHostGroupsGroupOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupOutput

type GetDedicatedHostGroupsGroupArray

type GetDedicatedHostGroupsGroupArray []GetDedicatedHostGroupsGroupInput

func (GetDedicatedHostGroupsGroupArray) ElementType

func (GetDedicatedHostGroupsGroupArray) ToGetDedicatedHostGroupsGroupArrayOutput

func (i GetDedicatedHostGroupsGroupArray) ToGetDedicatedHostGroupsGroupArrayOutput() GetDedicatedHostGroupsGroupArrayOutput

func (GetDedicatedHostGroupsGroupArray) ToGetDedicatedHostGroupsGroupArrayOutputWithContext

func (i GetDedicatedHostGroupsGroupArray) ToGetDedicatedHostGroupsGroupArrayOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupArrayOutput

type GetDedicatedHostGroupsGroupArrayInput

type GetDedicatedHostGroupsGroupArrayInput interface {
	pulumi.Input

	ToGetDedicatedHostGroupsGroupArrayOutput() GetDedicatedHostGroupsGroupArrayOutput
	ToGetDedicatedHostGroupsGroupArrayOutputWithContext(context.Context) GetDedicatedHostGroupsGroupArrayOutput
}

GetDedicatedHostGroupsGroupArrayInput is an input type that accepts GetDedicatedHostGroupsGroupArray and GetDedicatedHostGroupsGroupArrayOutput values. You can construct a concrete instance of `GetDedicatedHostGroupsGroupArrayInput` via:

GetDedicatedHostGroupsGroupArray{ GetDedicatedHostGroupsGroupArgs{...} }

type GetDedicatedHostGroupsGroupArrayOutput

type GetDedicatedHostGroupsGroupArrayOutput struct{ *pulumi.OutputState }

func (GetDedicatedHostGroupsGroupArrayOutput) ElementType

func (GetDedicatedHostGroupsGroupArrayOutput) Index

func (GetDedicatedHostGroupsGroupArrayOutput) ToGetDedicatedHostGroupsGroupArrayOutput

func (o GetDedicatedHostGroupsGroupArrayOutput) ToGetDedicatedHostGroupsGroupArrayOutput() GetDedicatedHostGroupsGroupArrayOutput

func (GetDedicatedHostGroupsGroupArrayOutput) ToGetDedicatedHostGroupsGroupArrayOutputWithContext

func (o GetDedicatedHostGroupsGroupArrayOutput) ToGetDedicatedHostGroupsGroupArrayOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupArrayOutput

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostType

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostType struct {
	PlaceHolder string `pulumi:"placeHolder"`
}

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArgs

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArgs struct {
	PlaceHolder pulumi.StringInput `pulumi:"placeHolder"`
}

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArgs) ElementType

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArgs) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArgs) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutputWithContext

func (i GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArgs) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArray

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArray []GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeInput

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArray) ElementType

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArray) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArray) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutputWithContext

func (i GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArray) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayInput

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayInput interface {
	pulumi.Input

	ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput() GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput
	ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutputWithContext(context.Context) GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput
}

GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayInput is an input type that accepts GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArray and GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput values. You can construct a concrete instance of `GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayInput` via:

GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArray{ GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArgs{...} }

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput struct{ *pulumi.OutputState }

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput) ElementType

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutputWithContext

func (o GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArrayOutput

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeInput

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeInput interface {
	pulumi.Input

	ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput() GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput
	ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutputWithContext(context.Context) GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput
}

GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeInput is an input type that accepts GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArgs and GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput values. You can construct a concrete instance of `GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeInput` via:

GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeArgs{...}

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput

type GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput struct{ *pulumi.OutputState }

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput) ElementType

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput) PlaceHolder

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput

func (GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutputWithContext

func (o GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput) ToGetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupDedicatedHostCountGroupByHostTypeOutput

type GetDedicatedHostGroupsGroupInput

type GetDedicatedHostGroupsGroupInput interface {
	pulumi.Input

	ToGetDedicatedHostGroupsGroupOutput() GetDedicatedHostGroupsGroupOutput
	ToGetDedicatedHostGroupsGroupOutputWithContext(context.Context) GetDedicatedHostGroupsGroupOutput
}

GetDedicatedHostGroupsGroupInput is an input type that accepts GetDedicatedHostGroupsGroupArgs and GetDedicatedHostGroupsGroupOutput values. You can construct a concrete instance of `GetDedicatedHostGroupsGroupInput` via:

GetDedicatedHostGroupsGroupArgs{...}

type GetDedicatedHostGroupsGroupOutput

type GetDedicatedHostGroupsGroupOutput struct{ *pulumi.OutputState }

func (GetDedicatedHostGroupsGroupOutput) AllocationPolicy

The policy that is used to allocate resources in the dedicated cluster. Valid values:`Evenly`,`Intensively`

func (GetDedicatedHostGroupsGroupOutput) BastionInstanceId

The Bastion Instance id of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) CpuAllocateRation

The CPU overcommitment ratio of the dedicated cluster. If you set this parameter to 200, the CPU resources that can be allocated are twice as many as the CPU resources that are provided. This maximizes the CPU utilization. Valid values: 100 to 300. Default value: 200.

func (GetDedicatedHostGroupsGroupOutput) CpuAllocatedAmount

The CPU Allocated Amount of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) CpuAllocationRatio

func (o GetDedicatedHostGroupsGroupOutput) CpuAllocationRatio() pulumi.IntOutput

The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.

func (GetDedicatedHostGroupsGroupOutput) CreateTime

The Created Time of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) DedicatedHostCountGroupByHostTypes

The Dedicated Host Count Group by Host Type of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) DedicatedHostGroupDesc

func (o GetDedicatedHostGroupsGroupOutput) DedicatedHostGroupDesc() pulumi.StringOutput

-The name of the dedicated cluster. The name must be 1 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

func (GetDedicatedHostGroupsGroupOutput) DedicatedHostGroupId

func (o GetDedicatedHostGroupsGroupOutput) DedicatedHostGroupId() pulumi.StringOutput

Dedicated Host Group ID.

func (GetDedicatedHostGroupsGroupOutput) DeployType

The Deployment Type of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) DiskAllocateRation

The storage overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.

func (GetDedicatedHostGroupsGroupOutput) DiskAllocatedAmount

func (o GetDedicatedHostGroupsGroupOutput) DiskAllocatedAmount() pulumi.Float64Output

The Disk Allocated Amount of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) DiskAllocationRatio

func (o GetDedicatedHostGroupsGroupOutput) DiskAllocationRatio() pulumi.IntOutput

The Disk Allocation Ratio of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) DiskUsedAmount

The DiskUsedAmount of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) DiskUtility

The DiskUtility of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) ElementType

func (GetDedicatedHostGroupsGroupOutput) Engine

Database Engine Type.The database engine of the dedicated cluster. Valid values:`Redis`, `SQLServer`, `MySQL`, `PostgreSQL`, `MongoDB`

func (GetDedicatedHostGroupsGroupOutput) HostNumber

The Total Host Number of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) HostReplacePolicy

The policy based on which the system handles host failures. Valid values:`Auto`,`Manual`

func (GetDedicatedHostGroupsGroupOutput) Id

The ID of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) InstanceNumber

The Total Instance Number of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) MemAllocateRation

The maximum memory usage of each host in the dedicated cluster.Valid values: 0 to 90. Default value: 90.

func (GetDedicatedHostGroupsGroupOutput) MemAllocatedAmount

The MemAllocatedAmount of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) MemAllocationRatio

func (o GetDedicatedHostGroupsGroupOutput) MemAllocationRatio() pulumi.IntOutput

The Memory Allocation Ratio of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) MemUsedAmount

The MemUsedAmount of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) MemUtility

The Mem Utility of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) Text

The Text of the Dedicated Host Group.

func (GetDedicatedHostGroupsGroupOutput) ToGetDedicatedHostGroupsGroupOutput

func (o GetDedicatedHostGroupsGroupOutput) ToGetDedicatedHostGroupsGroupOutput() GetDedicatedHostGroupsGroupOutput

func (GetDedicatedHostGroupsGroupOutput) ToGetDedicatedHostGroupsGroupOutputWithContext

func (o GetDedicatedHostGroupsGroupOutput) ToGetDedicatedHostGroupsGroupOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupOutput

func (GetDedicatedHostGroupsGroupOutput) VpcId

The virtual private cloud (VPC) ID of the dedicated cluster.

func (GetDedicatedHostGroupsGroupOutput) ZoneIdLists

The ZoneIDList of the Dedicated Host Group.

type GetDedicatedHostGroupsGroupZoneIdList

type GetDedicatedHostGroupsGroupZoneIdList struct {
	// The ZoneIDList of the Dedicated Host Group.
	ZoneIdLists []string `pulumi:"zoneIdLists"`
}

type GetDedicatedHostGroupsGroupZoneIdListArgs

type GetDedicatedHostGroupsGroupZoneIdListArgs struct {
	// The ZoneIDList of the Dedicated Host Group.
	ZoneIdLists pulumi.StringArrayInput `pulumi:"zoneIdLists"`
}

func (GetDedicatedHostGroupsGroupZoneIdListArgs) ElementType

func (GetDedicatedHostGroupsGroupZoneIdListArgs) ToGetDedicatedHostGroupsGroupZoneIdListOutput

func (i GetDedicatedHostGroupsGroupZoneIdListArgs) ToGetDedicatedHostGroupsGroupZoneIdListOutput() GetDedicatedHostGroupsGroupZoneIdListOutput

func (GetDedicatedHostGroupsGroupZoneIdListArgs) ToGetDedicatedHostGroupsGroupZoneIdListOutputWithContext

func (i GetDedicatedHostGroupsGroupZoneIdListArgs) ToGetDedicatedHostGroupsGroupZoneIdListOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupZoneIdListOutput

type GetDedicatedHostGroupsGroupZoneIdListArray

type GetDedicatedHostGroupsGroupZoneIdListArray []GetDedicatedHostGroupsGroupZoneIdListInput

func (GetDedicatedHostGroupsGroupZoneIdListArray) ElementType

func (GetDedicatedHostGroupsGroupZoneIdListArray) ToGetDedicatedHostGroupsGroupZoneIdListArrayOutput

func (i GetDedicatedHostGroupsGroupZoneIdListArray) ToGetDedicatedHostGroupsGroupZoneIdListArrayOutput() GetDedicatedHostGroupsGroupZoneIdListArrayOutput

func (GetDedicatedHostGroupsGroupZoneIdListArray) ToGetDedicatedHostGroupsGroupZoneIdListArrayOutputWithContext

func (i GetDedicatedHostGroupsGroupZoneIdListArray) ToGetDedicatedHostGroupsGroupZoneIdListArrayOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupZoneIdListArrayOutput

type GetDedicatedHostGroupsGroupZoneIdListArrayInput

type GetDedicatedHostGroupsGroupZoneIdListArrayInput interface {
	pulumi.Input

	ToGetDedicatedHostGroupsGroupZoneIdListArrayOutput() GetDedicatedHostGroupsGroupZoneIdListArrayOutput
	ToGetDedicatedHostGroupsGroupZoneIdListArrayOutputWithContext(context.Context) GetDedicatedHostGroupsGroupZoneIdListArrayOutput
}

GetDedicatedHostGroupsGroupZoneIdListArrayInput is an input type that accepts GetDedicatedHostGroupsGroupZoneIdListArray and GetDedicatedHostGroupsGroupZoneIdListArrayOutput values. You can construct a concrete instance of `GetDedicatedHostGroupsGroupZoneIdListArrayInput` via:

GetDedicatedHostGroupsGroupZoneIdListArray{ GetDedicatedHostGroupsGroupZoneIdListArgs{...} }

type GetDedicatedHostGroupsGroupZoneIdListArrayOutput

type GetDedicatedHostGroupsGroupZoneIdListArrayOutput struct{ *pulumi.OutputState }

func (GetDedicatedHostGroupsGroupZoneIdListArrayOutput) ElementType

func (GetDedicatedHostGroupsGroupZoneIdListArrayOutput) Index

func (GetDedicatedHostGroupsGroupZoneIdListArrayOutput) ToGetDedicatedHostGroupsGroupZoneIdListArrayOutput

func (o GetDedicatedHostGroupsGroupZoneIdListArrayOutput) ToGetDedicatedHostGroupsGroupZoneIdListArrayOutput() GetDedicatedHostGroupsGroupZoneIdListArrayOutput

func (GetDedicatedHostGroupsGroupZoneIdListArrayOutput) ToGetDedicatedHostGroupsGroupZoneIdListArrayOutputWithContext

func (o GetDedicatedHostGroupsGroupZoneIdListArrayOutput) ToGetDedicatedHostGroupsGroupZoneIdListArrayOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupZoneIdListArrayOutput

type GetDedicatedHostGroupsGroupZoneIdListInput

type GetDedicatedHostGroupsGroupZoneIdListInput interface {
	pulumi.Input

	ToGetDedicatedHostGroupsGroupZoneIdListOutput() GetDedicatedHostGroupsGroupZoneIdListOutput
	ToGetDedicatedHostGroupsGroupZoneIdListOutputWithContext(context.Context) GetDedicatedHostGroupsGroupZoneIdListOutput
}

GetDedicatedHostGroupsGroupZoneIdListInput is an input type that accepts GetDedicatedHostGroupsGroupZoneIdListArgs and GetDedicatedHostGroupsGroupZoneIdListOutput values. You can construct a concrete instance of `GetDedicatedHostGroupsGroupZoneIdListInput` via:

GetDedicatedHostGroupsGroupZoneIdListArgs{...}

type GetDedicatedHostGroupsGroupZoneIdListOutput

type GetDedicatedHostGroupsGroupZoneIdListOutput struct{ *pulumi.OutputState }

func (GetDedicatedHostGroupsGroupZoneIdListOutput) ElementType

func (GetDedicatedHostGroupsGroupZoneIdListOutput) ToGetDedicatedHostGroupsGroupZoneIdListOutput

func (o GetDedicatedHostGroupsGroupZoneIdListOutput) ToGetDedicatedHostGroupsGroupZoneIdListOutput() GetDedicatedHostGroupsGroupZoneIdListOutput

func (GetDedicatedHostGroupsGroupZoneIdListOutput) ToGetDedicatedHostGroupsGroupZoneIdListOutputWithContext

func (o GetDedicatedHostGroupsGroupZoneIdListOutput) ToGetDedicatedHostGroupsGroupZoneIdListOutputWithContext(ctx context.Context) GetDedicatedHostGroupsGroupZoneIdListOutput

func (GetDedicatedHostGroupsGroupZoneIdListOutput) ZoneIdLists

The ZoneIDList of the Dedicated Host Group.

type GetDedicatedHostGroupsOutputArgs

type GetDedicatedHostGroupsOutputArgs struct {
	// Database Engine Type.The database engine of the dedicated cluster. Valid values:`Redis`, `SQLServer`, `MySQL`, `PostgreSQL`, `MongoDB`
	Engine pulumi.StringPtrInput `pulumi:"engine"`
	// A list of Dedicated Host Group IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Dedicated Host Group name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getDedicatedHostGroups.

func (GetDedicatedHostGroupsOutputArgs) ElementType

type GetDedicatedHostGroupsResult

type GetDedicatedHostGroupsResult struct {
	Engine *string                       `pulumi:"engine"`
	Groups []GetDedicatedHostGroupsGroup `pulumi:"groups"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getDedicatedHostGroups.

func GetDedicatedHostGroups

func GetDedicatedHostGroups(ctx *pulumi.Context, args *GetDedicatedHostGroupsArgs, opts ...pulumi.InvokeOption) (*GetDedicatedHostGroupsResult, error)

This data source provides the Cddc Dedicated Host Groups of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cddc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cddc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := cddc.GetDedicatedHostGroups(ctx, &cddc.GetDedicatedHostGroupsArgs{
			Engine: pulumi.StringRef("MongoDB"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cddcDedicatedHostGroupId", _default.Id)
		return nil
	})
}

```

type GetDedicatedHostGroupsResultOutput

type GetDedicatedHostGroupsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDedicatedHostGroups.

func (GetDedicatedHostGroupsResultOutput) ElementType

func (GetDedicatedHostGroupsResultOutput) Engine

func (GetDedicatedHostGroupsResultOutput) Groups

func (GetDedicatedHostGroupsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDedicatedHostGroupsResultOutput) Ids

func (GetDedicatedHostGroupsResultOutput) NameRegex

func (GetDedicatedHostGroupsResultOutput) Names

func (GetDedicatedHostGroupsResultOutput) OutputFile

func (GetDedicatedHostGroupsResultOutput) ToGetDedicatedHostGroupsResultOutput

func (o GetDedicatedHostGroupsResultOutput) ToGetDedicatedHostGroupsResultOutput() GetDedicatedHostGroupsResultOutput

func (GetDedicatedHostGroupsResultOutput) ToGetDedicatedHostGroupsResultOutputWithContext

func (o GetDedicatedHostGroupsResultOutput) ToGetDedicatedHostGroupsResultOutputWithContext(ctx context.Context) GetDedicatedHostGroupsResultOutput

type GetDedicatedHostsArgs

type GetDedicatedHostsArgs struct {
	// Specifies whether instances can be created on the host. Valid values: `1` or `0`. `1`: Instances can be created on the host. `0`: Instances cannot be created on the host.
	AllocationStatus *string `pulumi:"allocationStatus"`
	// The ID of the dedicated cluster in which the host is created.
	DedicatedHostGroupId string `pulumi:"dedicatedHostGroupId"`
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// The storage type of the host.
	HostType *string `pulumi:"hostType"`
	// A list of Dedicated Host IDs.
	Ids []string `pulumi:"ids"`
	// The ID of the order.
	OrderId    *string `pulumi:"orderId"`
	OutputFile *string `pulumi:"outputFile"`
	// The state of the host.
	Status *string `pulumi:"status"`
	// The tag of the resource.
	Tags map[string]interface{} `pulumi:"tags"`
	// The zone ID of the host.
	ZoneId *string `pulumi:"zoneId"`
}

A collection of arguments for invoking getDedicatedHosts.

type GetDedicatedHostsHost

type GetDedicatedHostsHost struct {
	// Specifies whether instances can be created on the host. Valid values: `1` or `0`. `1`: Instances can be created on the host. `0`: Instances cannot be created on the host.
	AllocationStatus string `pulumi:"allocationStatus"`
	// The ID of the bastion host with which the host is associated.
	BastionInstanceId string `pulumi:"bastionInstanceId"`
	// The numeric value of the CPU over commit ratio of the dedicated cluster.
	CpuAllocationRatio string `pulumi:"cpuAllocationRatio"`
	// The number of CPU cores used by the host.
	CpuUsed string `pulumi:"cpuUsed"`
	// The time when the host was created. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
	CreateTime string `pulumi:"createTime"`
	// The ID of the dedicated cluster in which the host is created.
	DedicatedHostGroupId string `pulumi:"dedicatedHostGroupId"`
	// The ID of the host.
	DedicatedHostId string `pulumi:"dedicatedHostId"`
	// The disk usage in percentage.
	DiskAllocationRatio string `pulumi:"diskAllocationRatio"`
	// The Elastic Compute Service (ECS) instance type.
	EcsClassCode string `pulumi:"ecsClassCode"`
	// The time when the host expires. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
	EndTime string `pulumi:"endTime"`
	// The type of the database engine that is used by the host.
	Engine string `pulumi:"engine"`
	// The time when the host expires. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
	ExpiredTime string `pulumi:"expiredTime"`
	// The instance type of the host.
	HostClass string `pulumi:"hostClass"`
	// The number of CPU cores specified for the host. Unit: `core`.
	HostCpu string `pulumi:"hostCpu"`
	// The memory of the host. Unit: `GB`.
	HostMem string `pulumi:"hostMem"`
	// The name of the host.
	HostName string `pulumi:"hostName"`
	// The total storage capacity of the host. Unit: `GB`.
	HostStorage string `pulumi:"hostStorage"`
	// The storage type of the host.
	HostType string `pulumi:"hostType"`
	// The ID of the Dedicated Host. The value formats as `<dedicated_host_group_id>:<dedicated_host_id>`.
	Id string `pulumi:"id"`
	// The image type of the host.
	ImageCategory string `pulumi:"imageCategory"`
	// The IP address of the host.
	IpAddress string `pulumi:"ipAddress"`
	// The memory usage in percentage.
	MemAllocationRatio string `pulumi:"memAllocationRatio"`
	// The amount of memory used by the host. Unit: `GB`.
	MemoryUsed string `pulumi:"memoryUsed"`
	// Indicates whether you have the OS permissions on the host. Valid values: `0`: You do not have the OS permissions on the host. `1`: You have the OS permissions on the host.
	OpenPermission string `pulumi:"openPermission"`
	// The state of the host.
	Status string `pulumi:"status"`
	// The storage usage of the host. Unit: `GB`.
	StorageUsed string `pulumi:"storageUsed"`
	// The tag of the resource.
	Tags map[string]interface{} `pulumi:"tags"`
	// The ID of the virtual private cloud (VPC) to which the host is connected.
	VpcId string `pulumi:"vpcId"`
	// The ID of the vSwitch.
	VswitchId string `pulumi:"vswitchId"`
	// The zone ID of the host.
	ZoneId string `pulumi:"zoneId"`
}

type GetDedicatedHostsHostArgs

type GetDedicatedHostsHostArgs struct {
	// Specifies whether instances can be created on the host. Valid values: `1` or `0`. `1`: Instances can be created on the host. `0`: Instances cannot be created on the host.
	AllocationStatus pulumi.StringInput `pulumi:"allocationStatus"`
	// The ID of the bastion host with which the host is associated.
	BastionInstanceId pulumi.StringInput `pulumi:"bastionInstanceId"`
	// The numeric value of the CPU over commit ratio of the dedicated cluster.
	CpuAllocationRatio pulumi.StringInput `pulumi:"cpuAllocationRatio"`
	// The number of CPU cores used by the host.
	CpuUsed pulumi.StringInput `pulumi:"cpuUsed"`
	// The time when the host was created. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The ID of the dedicated cluster in which the host is created.
	DedicatedHostGroupId pulumi.StringInput `pulumi:"dedicatedHostGroupId"`
	// The ID of the host.
	DedicatedHostId pulumi.StringInput `pulumi:"dedicatedHostId"`
	// The disk usage in percentage.
	DiskAllocationRatio pulumi.StringInput `pulumi:"diskAllocationRatio"`
	// The Elastic Compute Service (ECS) instance type.
	EcsClassCode pulumi.StringInput `pulumi:"ecsClassCode"`
	// The time when the host expires. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
	EndTime pulumi.StringInput `pulumi:"endTime"`
	// The type of the database engine that is used by the host.
	Engine pulumi.StringInput `pulumi:"engine"`
	// The time when the host expires. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
	ExpiredTime pulumi.StringInput `pulumi:"expiredTime"`
	// The instance type of the host.
	HostClass pulumi.StringInput `pulumi:"hostClass"`
	// The number of CPU cores specified for the host. Unit: `core`.
	HostCpu pulumi.StringInput `pulumi:"hostCpu"`
	// The memory of the host. Unit: `GB`.
	HostMem pulumi.StringInput `pulumi:"hostMem"`
	// The name of the host.
	HostName pulumi.StringInput `pulumi:"hostName"`
	// The total storage capacity of the host. Unit: `GB`.
	HostStorage pulumi.StringInput `pulumi:"hostStorage"`
	// The storage type of the host.
	HostType pulumi.StringInput `pulumi:"hostType"`
	// The ID of the Dedicated Host. The value formats as `<dedicated_host_group_id>:<dedicated_host_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The image type of the host.
	ImageCategory pulumi.StringInput `pulumi:"imageCategory"`
	// The IP address of the host.
	IpAddress pulumi.StringInput `pulumi:"ipAddress"`
	// The memory usage in percentage.
	MemAllocationRatio pulumi.StringInput `pulumi:"memAllocationRatio"`
	// The amount of memory used by the host. Unit: `GB`.
	MemoryUsed pulumi.StringInput `pulumi:"memoryUsed"`
	// Indicates whether you have the OS permissions on the host. Valid values: `0`: You do not have the OS permissions on the host. `1`: You have the OS permissions on the host.
	OpenPermission pulumi.StringInput `pulumi:"openPermission"`
	// The state of the host.
	Status pulumi.StringInput `pulumi:"status"`
	// The storage usage of the host. Unit: `GB`.
	StorageUsed pulumi.StringInput `pulumi:"storageUsed"`
	// The tag of the resource.
	Tags pulumi.MapInput `pulumi:"tags"`
	// The ID of the virtual private cloud (VPC) to which the host is connected.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// The ID of the vSwitch.
	VswitchId pulumi.StringInput `pulumi:"vswitchId"`
	// The zone ID of the host.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetDedicatedHostsHostArgs) ElementType

func (GetDedicatedHostsHostArgs) ElementType() reflect.Type

func (GetDedicatedHostsHostArgs) ToGetDedicatedHostsHostOutput

func (i GetDedicatedHostsHostArgs) ToGetDedicatedHostsHostOutput() GetDedicatedHostsHostOutput

func (GetDedicatedHostsHostArgs) ToGetDedicatedHostsHostOutputWithContext

func (i GetDedicatedHostsHostArgs) ToGetDedicatedHostsHostOutputWithContext(ctx context.Context) GetDedicatedHostsHostOutput

type GetDedicatedHostsHostArray

type GetDedicatedHostsHostArray []GetDedicatedHostsHostInput

func (GetDedicatedHostsHostArray) ElementType

func (GetDedicatedHostsHostArray) ElementType() reflect.Type

func (GetDedicatedHostsHostArray) ToGetDedicatedHostsHostArrayOutput

func (i GetDedicatedHostsHostArray) ToGetDedicatedHostsHostArrayOutput() GetDedicatedHostsHostArrayOutput

func (GetDedicatedHostsHostArray) ToGetDedicatedHostsHostArrayOutputWithContext

func (i GetDedicatedHostsHostArray) ToGetDedicatedHostsHostArrayOutputWithContext(ctx context.Context) GetDedicatedHostsHostArrayOutput

type GetDedicatedHostsHostArrayInput

type GetDedicatedHostsHostArrayInput interface {
	pulumi.Input

	ToGetDedicatedHostsHostArrayOutput() GetDedicatedHostsHostArrayOutput
	ToGetDedicatedHostsHostArrayOutputWithContext(context.Context) GetDedicatedHostsHostArrayOutput
}

GetDedicatedHostsHostArrayInput is an input type that accepts GetDedicatedHostsHostArray and GetDedicatedHostsHostArrayOutput values. You can construct a concrete instance of `GetDedicatedHostsHostArrayInput` via:

GetDedicatedHostsHostArray{ GetDedicatedHostsHostArgs{...} }

type GetDedicatedHostsHostArrayOutput

type GetDedicatedHostsHostArrayOutput struct{ *pulumi.OutputState }

func (GetDedicatedHostsHostArrayOutput) ElementType

func (GetDedicatedHostsHostArrayOutput) Index

func (GetDedicatedHostsHostArrayOutput) ToGetDedicatedHostsHostArrayOutput

func (o GetDedicatedHostsHostArrayOutput) ToGetDedicatedHostsHostArrayOutput() GetDedicatedHostsHostArrayOutput

func (GetDedicatedHostsHostArrayOutput) ToGetDedicatedHostsHostArrayOutputWithContext

func (o GetDedicatedHostsHostArrayOutput) ToGetDedicatedHostsHostArrayOutputWithContext(ctx context.Context) GetDedicatedHostsHostArrayOutput

type GetDedicatedHostsHostInput

type GetDedicatedHostsHostInput interface {
	pulumi.Input

	ToGetDedicatedHostsHostOutput() GetDedicatedHostsHostOutput
	ToGetDedicatedHostsHostOutputWithContext(context.Context) GetDedicatedHostsHostOutput
}

GetDedicatedHostsHostInput is an input type that accepts GetDedicatedHostsHostArgs and GetDedicatedHostsHostOutput values. You can construct a concrete instance of `GetDedicatedHostsHostInput` via:

GetDedicatedHostsHostArgs{...}

type GetDedicatedHostsHostOutput

type GetDedicatedHostsHostOutput struct{ *pulumi.OutputState }

func (GetDedicatedHostsHostOutput) AllocationStatus

func (o GetDedicatedHostsHostOutput) AllocationStatus() pulumi.StringOutput

Specifies whether instances can be created on the host. Valid values: `1` or `0`. `1`: Instances can be created on the host. `0`: Instances cannot be created on the host.

func (GetDedicatedHostsHostOutput) BastionInstanceId

func (o GetDedicatedHostsHostOutput) BastionInstanceId() pulumi.StringOutput

The ID of the bastion host with which the host is associated.

func (GetDedicatedHostsHostOutput) CpuAllocationRatio

func (o GetDedicatedHostsHostOutput) CpuAllocationRatio() pulumi.StringOutput

The numeric value of the CPU over commit ratio of the dedicated cluster.

func (GetDedicatedHostsHostOutput) CpuUsed

The number of CPU cores used by the host.

func (GetDedicatedHostsHostOutput) CreateTime

The time when the host was created. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.

func (GetDedicatedHostsHostOutput) DedicatedHostGroupId

func (o GetDedicatedHostsHostOutput) DedicatedHostGroupId() pulumi.StringOutput

The ID of the dedicated cluster in which the host is created.

func (GetDedicatedHostsHostOutput) DedicatedHostId

func (o GetDedicatedHostsHostOutput) DedicatedHostId() pulumi.StringOutput

The ID of the host.

func (GetDedicatedHostsHostOutput) DiskAllocationRatio

func (o GetDedicatedHostsHostOutput) DiskAllocationRatio() pulumi.StringOutput

The disk usage in percentage.

func (GetDedicatedHostsHostOutput) EcsClassCode

The Elastic Compute Service (ECS) instance type.

func (GetDedicatedHostsHostOutput) ElementType

func (GetDedicatedHostsHostOutput) EndTime

The time when the host expires. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.

func (GetDedicatedHostsHostOutput) Engine

The type of the database engine that is used by the host.

func (GetDedicatedHostsHostOutput) ExpiredTime

The time when the host expires. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.

func (GetDedicatedHostsHostOutput) HostClass

The instance type of the host.

func (GetDedicatedHostsHostOutput) HostCpu

The number of CPU cores specified for the host. Unit: `core`.

func (GetDedicatedHostsHostOutput) HostMem

The memory of the host. Unit: `GB`.

func (GetDedicatedHostsHostOutput) HostName

The name of the host.

func (GetDedicatedHostsHostOutput) HostStorage

The total storage capacity of the host. Unit: `GB`.

func (GetDedicatedHostsHostOutput) HostType

The storage type of the host.

func (GetDedicatedHostsHostOutput) Id

The ID of the Dedicated Host. The value formats as `<dedicated_host_group_id>:<dedicated_host_id>`.

func (GetDedicatedHostsHostOutput) ImageCategory

The image type of the host.

func (GetDedicatedHostsHostOutput) IpAddress

The IP address of the host.

func (GetDedicatedHostsHostOutput) MemAllocationRatio

func (o GetDedicatedHostsHostOutput) MemAllocationRatio() pulumi.StringOutput

The memory usage in percentage.

func (GetDedicatedHostsHostOutput) MemoryUsed

The amount of memory used by the host. Unit: `GB`.

func (GetDedicatedHostsHostOutput) OpenPermission

func (o GetDedicatedHostsHostOutput) OpenPermission() pulumi.StringOutput

Indicates whether you have the OS permissions on the host. Valid values: `0`: You do not have the OS permissions on the host. `1`: You have the OS permissions on the host.

func (GetDedicatedHostsHostOutput) Status

The state of the host.

func (GetDedicatedHostsHostOutput) StorageUsed

The storage usage of the host. Unit: `GB`.

func (GetDedicatedHostsHostOutput) Tags

The tag of the resource.

func (GetDedicatedHostsHostOutput) ToGetDedicatedHostsHostOutput

func (o GetDedicatedHostsHostOutput) ToGetDedicatedHostsHostOutput() GetDedicatedHostsHostOutput

func (GetDedicatedHostsHostOutput) ToGetDedicatedHostsHostOutputWithContext

func (o GetDedicatedHostsHostOutput) ToGetDedicatedHostsHostOutputWithContext(ctx context.Context) GetDedicatedHostsHostOutput

func (GetDedicatedHostsHostOutput) VpcId

The ID of the virtual private cloud (VPC) to which the host is connected.

func (GetDedicatedHostsHostOutput) VswitchId

The ID of the vSwitch.

func (GetDedicatedHostsHostOutput) ZoneId

The zone ID of the host.

type GetDedicatedHostsOutputArgs

type GetDedicatedHostsOutputArgs struct {
	// Specifies whether instances can be created on the host. Valid values: `1` or `0`. `1`: Instances can be created on the host. `0`: Instances cannot be created on the host.
	AllocationStatus pulumi.StringPtrInput `pulumi:"allocationStatus"`
	// The ID of the dedicated cluster in which the host is created.
	DedicatedHostGroupId pulumi.StringInput `pulumi:"dedicatedHostGroupId"`
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// The storage type of the host.
	HostType pulumi.StringPtrInput `pulumi:"hostType"`
	// A list of Dedicated Host IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The ID of the order.
	OrderId    pulumi.StringPtrInput `pulumi:"orderId"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The state of the host.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The tag of the resource.
	Tags pulumi.MapInput `pulumi:"tags"`
	// The zone ID of the host.
	ZoneId pulumi.StringPtrInput `pulumi:"zoneId"`
}

A collection of arguments for invoking getDedicatedHosts.

func (GetDedicatedHostsOutputArgs) ElementType

type GetDedicatedHostsResult

type GetDedicatedHostsResult struct {
	AllocationStatus     *string                 `pulumi:"allocationStatus"`
	DedicatedHostGroupId string                  `pulumi:"dedicatedHostGroupId"`
	EnableDetails        *bool                   `pulumi:"enableDetails"`
	HostType             *string                 `pulumi:"hostType"`
	Hosts                []GetDedicatedHostsHost `pulumi:"hosts"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                 `pulumi:"id"`
	Ids        []string               `pulumi:"ids"`
	OrderId    *string                `pulumi:"orderId"`
	OutputFile *string                `pulumi:"outputFile"`
	Status     *string                `pulumi:"status"`
	Tags       map[string]interface{} `pulumi:"tags"`
	ZoneId     *string                `pulumi:"zoneId"`
}

A collection of values returned by getDedicatedHosts.

func GetDedicatedHosts

func GetDedicatedHosts(ctx *pulumi.Context, args *GetDedicatedHostsArgs, opts ...pulumi.InvokeOption) (*GetDedicatedHostsResult, error)

This data source provides the Cddc Dedicated Hosts of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cddc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cddc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := cddc.GetDedicatedHosts(ctx, &cddc.GetDedicatedHostsArgs{
			DedicatedHostGroupId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cddcDedicatedHostId1", ids.Hosts[0].Id)
		status, err := cddc.GetDedicatedHosts(ctx, &cddc.GetDedicatedHostsArgs{
			DedicatedHostGroupId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
			Status: pulumi.StringRef("1"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cddcDedicatedHostId2", status.Hosts[0].Id)
		zoneId, err := cddc.GetDedicatedHosts(ctx, &cddc.GetDedicatedHostsArgs{
			DedicatedHostGroupId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
			ZoneId: pulumi.StringRef("example_value"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cddcDedicatedHostId3", zoneId.Hosts[0].Id)
		allocationStatus, err := cddc.GetDedicatedHosts(ctx, &cddc.GetDedicatedHostsArgs{
			DedicatedHostGroupId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
			AllocationStatus: pulumi.StringRef("Allocatable"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cddcDedicatedHostId4", allocationStatus.Hosts[0].Id)
		hostType, err := cddc.GetDedicatedHosts(ctx, &cddc.GetDedicatedHostsArgs{
			DedicatedHostGroupId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
			HostType: pulumi.StringRef("dhg_cloud_ssd"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cddcDedicatedHostId5", hostType.Hosts[0].Id)
		return nil
	})
}

```

type GetDedicatedHostsResultOutput

type GetDedicatedHostsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDedicatedHosts.

func (GetDedicatedHostsResultOutput) AllocationStatus

func (GetDedicatedHostsResultOutput) DedicatedHostGroupId

func (o GetDedicatedHostsResultOutput) DedicatedHostGroupId() pulumi.StringOutput

func (GetDedicatedHostsResultOutput) ElementType

func (GetDedicatedHostsResultOutput) EnableDetails

func (GetDedicatedHostsResultOutput) HostType

func (GetDedicatedHostsResultOutput) Hosts

func (GetDedicatedHostsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDedicatedHostsResultOutput) Ids

func (GetDedicatedHostsResultOutput) OrderId

func (GetDedicatedHostsResultOutput) OutputFile

func (GetDedicatedHostsResultOutput) Status

func (GetDedicatedHostsResultOutput) Tags

func (GetDedicatedHostsResultOutput) ToGetDedicatedHostsResultOutput

func (o GetDedicatedHostsResultOutput) ToGetDedicatedHostsResultOutput() GetDedicatedHostsResultOutput

func (GetDedicatedHostsResultOutput) ToGetDedicatedHostsResultOutputWithContext

func (o GetDedicatedHostsResultOutput) ToGetDedicatedHostsResultOutputWithContext(ctx context.Context) GetDedicatedHostsResultOutput

func (GetDedicatedHostsResultOutput) ZoneId

type GetHostEcsLevelInfosArgs

type GetHostEcsLevelInfosArgs struct {
	// The database engine of the host. Valid values: `mysql`, `mssql`, `pgsql`, `redis`.
	DbType string `pulumi:"dbType"`
	// Host image. Valid values: `WindowsWithMssqlEntAlwaysonLicense`, `WindowsWithMssqlStdLicense`, `WindowsWithMssqlEntLicense`, `WindowsWithMssqlWebLicense`, `AliLinux`.
	ImageCategory *string `pulumi:"imageCategory"`
	OutputFile    *string `pulumi:"outputFile"`
	// The storage type of the host ecs level info. Valid values: `localSsd`, `cloudEssd`, `cloudEssd2`, `cloudEssd3`.
	// * `localSsd`: specifies that the host uses local SSDs.
	// * `cloudEssd`: specifies that the host uses enhanced SSDs (ESSDs) of performance level (PL) 1.
	// * `cloudEssd2`: specifies that the host uses ESSDs of PL2.
	// * `cloudEssd3`: specifies that the host uses ESSDs of PL3.
	StorageType string `pulumi:"storageType"`
	// The ID of the zone in the region.
	ZoneId string `pulumi:"zoneId"`
}

A collection of arguments for invoking getHostEcsLevelInfos.

type GetHostEcsLevelInfosInfo

type GetHostEcsLevelInfosInfo struct {
	// The description of the host ecs level info.
	Description string `pulumi:"description"`
	// The instance family of the host ecs level info.
	EcsClass string `pulumi:"ecsClass"`
	// The Elastic Compute Service (ECS) instance type.
	EcsClassCode string `pulumi:"ecsClassCode"`
	// The ApsaraDB RDS instance type of the host ecs level info.
	ResClassCode string `pulumi:"resClassCode"`
}

type GetHostEcsLevelInfosInfoArgs

type GetHostEcsLevelInfosInfoArgs struct {
	// The description of the host ecs level info.
	Description pulumi.StringInput `pulumi:"description"`
	// The instance family of the host ecs level info.
	EcsClass pulumi.StringInput `pulumi:"ecsClass"`
	// The Elastic Compute Service (ECS) instance type.
	EcsClassCode pulumi.StringInput `pulumi:"ecsClassCode"`
	// The ApsaraDB RDS instance type of the host ecs level info.
	ResClassCode pulumi.StringInput `pulumi:"resClassCode"`
}

func (GetHostEcsLevelInfosInfoArgs) ElementType

func (GetHostEcsLevelInfosInfoArgs) ToGetHostEcsLevelInfosInfoOutput

func (i GetHostEcsLevelInfosInfoArgs) ToGetHostEcsLevelInfosInfoOutput() GetHostEcsLevelInfosInfoOutput

func (GetHostEcsLevelInfosInfoArgs) ToGetHostEcsLevelInfosInfoOutputWithContext

func (i GetHostEcsLevelInfosInfoArgs) ToGetHostEcsLevelInfosInfoOutputWithContext(ctx context.Context) GetHostEcsLevelInfosInfoOutput

type GetHostEcsLevelInfosInfoArray

type GetHostEcsLevelInfosInfoArray []GetHostEcsLevelInfosInfoInput

func (GetHostEcsLevelInfosInfoArray) ElementType

func (GetHostEcsLevelInfosInfoArray) ToGetHostEcsLevelInfosInfoArrayOutput

func (i GetHostEcsLevelInfosInfoArray) ToGetHostEcsLevelInfosInfoArrayOutput() GetHostEcsLevelInfosInfoArrayOutput

func (GetHostEcsLevelInfosInfoArray) ToGetHostEcsLevelInfosInfoArrayOutputWithContext

func (i GetHostEcsLevelInfosInfoArray) ToGetHostEcsLevelInfosInfoArrayOutputWithContext(ctx context.Context) GetHostEcsLevelInfosInfoArrayOutput

type GetHostEcsLevelInfosInfoArrayInput

type GetHostEcsLevelInfosInfoArrayInput interface {
	pulumi.Input

	ToGetHostEcsLevelInfosInfoArrayOutput() GetHostEcsLevelInfosInfoArrayOutput
	ToGetHostEcsLevelInfosInfoArrayOutputWithContext(context.Context) GetHostEcsLevelInfosInfoArrayOutput
}

GetHostEcsLevelInfosInfoArrayInput is an input type that accepts GetHostEcsLevelInfosInfoArray and GetHostEcsLevelInfosInfoArrayOutput values. You can construct a concrete instance of `GetHostEcsLevelInfosInfoArrayInput` via:

GetHostEcsLevelInfosInfoArray{ GetHostEcsLevelInfosInfoArgs{...} }

type GetHostEcsLevelInfosInfoArrayOutput

type GetHostEcsLevelInfosInfoArrayOutput struct{ *pulumi.OutputState }

func (GetHostEcsLevelInfosInfoArrayOutput) ElementType

func (GetHostEcsLevelInfosInfoArrayOutput) Index

func (GetHostEcsLevelInfosInfoArrayOutput) ToGetHostEcsLevelInfosInfoArrayOutput

func (o GetHostEcsLevelInfosInfoArrayOutput) ToGetHostEcsLevelInfosInfoArrayOutput() GetHostEcsLevelInfosInfoArrayOutput

func (GetHostEcsLevelInfosInfoArrayOutput) ToGetHostEcsLevelInfosInfoArrayOutputWithContext

func (o GetHostEcsLevelInfosInfoArrayOutput) ToGetHostEcsLevelInfosInfoArrayOutputWithContext(ctx context.Context) GetHostEcsLevelInfosInfoArrayOutput

type GetHostEcsLevelInfosInfoInput

type GetHostEcsLevelInfosInfoInput interface {
	pulumi.Input

	ToGetHostEcsLevelInfosInfoOutput() GetHostEcsLevelInfosInfoOutput
	ToGetHostEcsLevelInfosInfoOutputWithContext(context.Context) GetHostEcsLevelInfosInfoOutput
}

GetHostEcsLevelInfosInfoInput is an input type that accepts GetHostEcsLevelInfosInfoArgs and GetHostEcsLevelInfosInfoOutput values. You can construct a concrete instance of `GetHostEcsLevelInfosInfoInput` via:

GetHostEcsLevelInfosInfoArgs{...}

type GetHostEcsLevelInfosInfoOutput

type GetHostEcsLevelInfosInfoOutput struct{ *pulumi.OutputState }

func (GetHostEcsLevelInfosInfoOutput) Description

The description of the host ecs level info.

func (GetHostEcsLevelInfosInfoOutput) EcsClass

The instance family of the host ecs level info.

func (GetHostEcsLevelInfosInfoOutput) EcsClassCode

The Elastic Compute Service (ECS) instance type.

func (GetHostEcsLevelInfosInfoOutput) ElementType

func (GetHostEcsLevelInfosInfoOutput) ResClassCode

The ApsaraDB RDS instance type of the host ecs level info.

func (GetHostEcsLevelInfosInfoOutput) ToGetHostEcsLevelInfosInfoOutput

func (o GetHostEcsLevelInfosInfoOutput) ToGetHostEcsLevelInfosInfoOutput() GetHostEcsLevelInfosInfoOutput

func (GetHostEcsLevelInfosInfoOutput) ToGetHostEcsLevelInfosInfoOutputWithContext

func (o GetHostEcsLevelInfosInfoOutput) ToGetHostEcsLevelInfosInfoOutputWithContext(ctx context.Context) GetHostEcsLevelInfosInfoOutput

type GetHostEcsLevelInfosOutputArgs

type GetHostEcsLevelInfosOutputArgs struct {
	// The database engine of the host. Valid values: `mysql`, `mssql`, `pgsql`, `redis`.
	DbType pulumi.StringInput `pulumi:"dbType"`
	// Host image. Valid values: `WindowsWithMssqlEntAlwaysonLicense`, `WindowsWithMssqlStdLicense`, `WindowsWithMssqlEntLicense`, `WindowsWithMssqlWebLicense`, `AliLinux`.
	ImageCategory pulumi.StringPtrInput `pulumi:"imageCategory"`
	OutputFile    pulumi.StringPtrInput `pulumi:"outputFile"`
	// The storage type of the host ecs level info. Valid values: `localSsd`, `cloudEssd`, `cloudEssd2`, `cloudEssd3`.
	// * `localSsd`: specifies that the host uses local SSDs.
	// * `cloudEssd`: specifies that the host uses enhanced SSDs (ESSDs) of performance level (PL) 1.
	// * `cloudEssd2`: specifies that the host uses ESSDs of PL2.
	// * `cloudEssd3`: specifies that the host uses ESSDs of PL3.
	StorageType pulumi.StringInput `pulumi:"storageType"`
	// The ID of the zone in the region.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

A collection of arguments for invoking getHostEcsLevelInfos.

func (GetHostEcsLevelInfosOutputArgs) ElementType

type GetHostEcsLevelInfosResult

type GetHostEcsLevelInfosResult struct {
	DbType string `pulumi:"dbType"`
	// The provider-assigned unique ID for this managed resource.
	Id            string                     `pulumi:"id"`
	ImageCategory *string                    `pulumi:"imageCategory"`
	Infos         []GetHostEcsLevelInfosInfo `pulumi:"infos"`
	OutputFile    *string                    `pulumi:"outputFile"`
	StorageType   string                     `pulumi:"storageType"`
	ZoneId        string                     `pulumi:"zoneId"`
}

A collection of values returned by getHostEcsLevelInfos.

func GetHostEcsLevelInfos

func GetHostEcsLevelInfos(ctx *pulumi.Context, args *GetHostEcsLevelInfosArgs, opts ...pulumi.InvokeOption) (*GetHostEcsLevelInfosResult, error)

This data source provides the Cddc Host Ecs Level Infos of the current Alibaba Cloud user.

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

type GetHostEcsLevelInfosResultOutput

type GetHostEcsLevelInfosResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHostEcsLevelInfos.

func (GetHostEcsLevelInfosResultOutput) DbType

func (GetHostEcsLevelInfosResultOutput) ElementType

func (GetHostEcsLevelInfosResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetHostEcsLevelInfosResultOutput) ImageCategory

func (GetHostEcsLevelInfosResultOutput) Infos

func (GetHostEcsLevelInfosResultOutput) OutputFile

func (GetHostEcsLevelInfosResultOutput) StorageType

func (GetHostEcsLevelInfosResultOutput) ToGetHostEcsLevelInfosResultOutput

func (o GetHostEcsLevelInfosResultOutput) ToGetHostEcsLevelInfosResultOutput() GetHostEcsLevelInfosResultOutput

func (GetHostEcsLevelInfosResultOutput) ToGetHostEcsLevelInfosResultOutputWithContext

func (o GetHostEcsLevelInfosResultOutput) ToGetHostEcsLevelInfosResultOutputWithContext(ctx context.Context) GetHostEcsLevelInfosResultOutput

func (GetHostEcsLevelInfosResultOutput) ZoneId

type GetZonesArgs

type GetZonesArgs struct {
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getZones.

type GetZonesOutputArgs

type GetZonesOutputArgs struct {
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getZones.

func (GetZonesOutputArgs) ElementType

func (GetZonesOutputArgs) ElementType() reflect.Type

type GetZonesResult

type GetZonesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string         `pulumi:"id"`
	Ids        []string       `pulumi:"ids"`
	OutputFile *string        `pulumi:"outputFile"`
	Zones      []GetZonesZone `pulumi:"zones"`
}

A collection of values returned by getZones.

func GetZones

func GetZones(ctx *pulumi.Context, args *GetZonesArgs, opts ...pulumi.InvokeOption) (*GetZonesResult, error)

This data source provides the Cddc Zones of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cddc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cddc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := cddc.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("cddcZonesId1", example.Zones[0].Id)
		return nil
	})
}

```

type GetZonesResultOutput

type GetZonesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getZones.

func (GetZonesResultOutput) ElementType

func (GetZonesResultOutput) ElementType() reflect.Type

func (GetZonesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetZonesResultOutput) Ids

func (GetZonesResultOutput) OutputFile

func (GetZonesResultOutput) ToGetZonesResultOutput

func (o GetZonesResultOutput) ToGetZonesResultOutput() GetZonesResultOutput

func (GetZonesResultOutput) ToGetZonesResultOutputWithContext

func (o GetZonesResultOutput) ToGetZonesResultOutputWithContext(ctx context.Context) GetZonesResultOutput

func (GetZonesResultOutput) Zones

type GetZonesZone

type GetZonesZone struct {
	// The ID of the zone.
	Id string `pulumi:"id"`
	// The ID of the region.
	RegionId string `pulumi:"regionId"`
	// The ID of the zone.
	ZoneId string `pulumi:"zoneId"`
}

type GetZonesZoneArgs

type GetZonesZoneArgs struct {
	// The ID of the zone.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the region.
	RegionId pulumi.StringInput `pulumi:"regionId"`
	// The ID of the zone.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetZonesZoneArgs) ElementType

func (GetZonesZoneArgs) ElementType() reflect.Type

func (GetZonesZoneArgs) ToGetZonesZoneOutput

func (i GetZonesZoneArgs) ToGetZonesZoneOutput() GetZonesZoneOutput

func (GetZonesZoneArgs) ToGetZonesZoneOutputWithContext

func (i GetZonesZoneArgs) ToGetZonesZoneOutputWithContext(ctx context.Context) GetZonesZoneOutput

type GetZonesZoneArray

type GetZonesZoneArray []GetZonesZoneInput

func (GetZonesZoneArray) ElementType

func (GetZonesZoneArray) ElementType() reflect.Type

func (GetZonesZoneArray) ToGetZonesZoneArrayOutput

func (i GetZonesZoneArray) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput

func (GetZonesZoneArray) ToGetZonesZoneArrayOutputWithContext

func (i GetZonesZoneArray) ToGetZonesZoneArrayOutputWithContext(ctx context.Context) GetZonesZoneArrayOutput

type GetZonesZoneArrayInput

type GetZonesZoneArrayInput interface {
	pulumi.Input

	ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput
	ToGetZonesZoneArrayOutputWithContext(context.Context) GetZonesZoneArrayOutput
}

GetZonesZoneArrayInput is an input type that accepts GetZonesZoneArray and GetZonesZoneArrayOutput values. You can construct a concrete instance of `GetZonesZoneArrayInput` via:

GetZonesZoneArray{ GetZonesZoneArgs{...} }

type GetZonesZoneArrayOutput

type GetZonesZoneArrayOutput struct{ *pulumi.OutputState }

func (GetZonesZoneArrayOutput) ElementType

func (GetZonesZoneArrayOutput) ElementType() reflect.Type

func (GetZonesZoneArrayOutput) Index

func (GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput

func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput

func (GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutputWithContext

func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutputWithContext(ctx context.Context) GetZonesZoneArrayOutput

type GetZonesZoneInput

type GetZonesZoneInput interface {
	pulumi.Input

	ToGetZonesZoneOutput() GetZonesZoneOutput
	ToGetZonesZoneOutputWithContext(context.Context) GetZonesZoneOutput
}

GetZonesZoneInput is an input type that accepts GetZonesZoneArgs and GetZonesZoneOutput values. You can construct a concrete instance of `GetZonesZoneInput` via:

GetZonesZoneArgs{...}

type GetZonesZoneOutput

type GetZonesZoneOutput struct{ *pulumi.OutputState }

func (GetZonesZoneOutput) ElementType

func (GetZonesZoneOutput) ElementType() reflect.Type

func (GetZonesZoneOutput) Id

The ID of the zone.

func (GetZonesZoneOutput) RegionId

func (o GetZonesZoneOutput) RegionId() pulumi.StringOutput

The ID of the region.

func (GetZonesZoneOutput) ToGetZonesZoneOutput

func (o GetZonesZoneOutput) ToGetZonesZoneOutput() GetZonesZoneOutput

func (GetZonesZoneOutput) ToGetZonesZoneOutputWithContext

func (o GetZonesZoneOutput) ToGetZonesZoneOutputWithContext(ctx context.Context) GetZonesZoneOutput

func (GetZonesZoneOutput) ZoneId

The ID of the zone.

Jump to

Keyboard shortcuts

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