placement

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 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.5

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 GetGroupsArgs

type GetGroupsArgs struct {
	// Name of the placement group to be queried.
	Name *string `pulumi:"name"`
	// ID of the placement group to be queried.
	PlacementGroupId *string `pulumi:"placementGroupId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getGroups.

type GetGroupsOutputArgs

type GetGroupsOutputArgs struct {
	// Name of the placement group to be queried.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// ID of the placement group to be queried.
	PlacementGroupId pulumi.StringPtrInput `pulumi:"placementGroupId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getGroups.

func (GetGroupsOutputArgs) ElementType

func (GetGroupsOutputArgs) ElementType() reflect.Type

type GetGroupsPlacementGroupList

type GetGroupsPlacementGroupList struct {
	// Creation time of the placement group.
	CreateTime string `pulumi:"createTime"`
	// Number of hosts in the placement group.
	CurrentNum int `pulumi:"currentNum"`
	// Maximum number of hosts in the placement group.
	CvmQuotaTotal int `pulumi:"cvmQuotaTotal"`
	// Host IDs in the placement group.
	InstanceIds []string `pulumi:"instanceIds"`
	// Name of the placement group to be queried.
	Name string `pulumi:"name"`
	// ID of the placement group to be queried.
	PlacementGroupId string `pulumi:"placementGroupId"`
	// Type of the placement group.
	Type string `pulumi:"type"`
}

type GetGroupsPlacementGroupListArgs

type GetGroupsPlacementGroupListArgs struct {
	// Creation time of the placement group.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Number of hosts in the placement group.
	CurrentNum pulumi.IntInput `pulumi:"currentNum"`
	// Maximum number of hosts in the placement group.
	CvmQuotaTotal pulumi.IntInput `pulumi:"cvmQuotaTotal"`
	// Host IDs in the placement group.
	InstanceIds pulumi.StringArrayInput `pulumi:"instanceIds"`
	// Name of the placement group to be queried.
	Name pulumi.StringInput `pulumi:"name"`
	// ID of the placement group to be queried.
	PlacementGroupId pulumi.StringInput `pulumi:"placementGroupId"`
	// Type of the placement group.
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetGroupsPlacementGroupListArgs) ElementType

func (GetGroupsPlacementGroupListArgs) ToGetGroupsPlacementGroupListOutput

func (i GetGroupsPlacementGroupListArgs) ToGetGroupsPlacementGroupListOutput() GetGroupsPlacementGroupListOutput

func (GetGroupsPlacementGroupListArgs) ToGetGroupsPlacementGroupListOutputWithContext

func (i GetGroupsPlacementGroupListArgs) ToGetGroupsPlacementGroupListOutputWithContext(ctx context.Context) GetGroupsPlacementGroupListOutput

type GetGroupsPlacementGroupListArray

type GetGroupsPlacementGroupListArray []GetGroupsPlacementGroupListInput

func (GetGroupsPlacementGroupListArray) ElementType

func (GetGroupsPlacementGroupListArray) ToGetGroupsPlacementGroupListArrayOutput

func (i GetGroupsPlacementGroupListArray) ToGetGroupsPlacementGroupListArrayOutput() GetGroupsPlacementGroupListArrayOutput

func (GetGroupsPlacementGroupListArray) ToGetGroupsPlacementGroupListArrayOutputWithContext

func (i GetGroupsPlacementGroupListArray) ToGetGroupsPlacementGroupListArrayOutputWithContext(ctx context.Context) GetGroupsPlacementGroupListArrayOutput

type GetGroupsPlacementGroupListArrayInput

type GetGroupsPlacementGroupListArrayInput interface {
	pulumi.Input

	ToGetGroupsPlacementGroupListArrayOutput() GetGroupsPlacementGroupListArrayOutput
	ToGetGroupsPlacementGroupListArrayOutputWithContext(context.Context) GetGroupsPlacementGroupListArrayOutput
}

GetGroupsPlacementGroupListArrayInput is an input type that accepts GetGroupsPlacementGroupListArray and GetGroupsPlacementGroupListArrayOutput values. You can construct a concrete instance of `GetGroupsPlacementGroupListArrayInput` via:

GetGroupsPlacementGroupListArray{ GetGroupsPlacementGroupListArgs{...} }

type GetGroupsPlacementGroupListArrayOutput

type GetGroupsPlacementGroupListArrayOutput struct{ *pulumi.OutputState }

func (GetGroupsPlacementGroupListArrayOutput) ElementType

func (GetGroupsPlacementGroupListArrayOutput) Index

func (GetGroupsPlacementGroupListArrayOutput) ToGetGroupsPlacementGroupListArrayOutput

func (o GetGroupsPlacementGroupListArrayOutput) ToGetGroupsPlacementGroupListArrayOutput() GetGroupsPlacementGroupListArrayOutput

func (GetGroupsPlacementGroupListArrayOutput) ToGetGroupsPlacementGroupListArrayOutputWithContext

func (o GetGroupsPlacementGroupListArrayOutput) ToGetGroupsPlacementGroupListArrayOutputWithContext(ctx context.Context) GetGroupsPlacementGroupListArrayOutput

type GetGroupsPlacementGroupListInput

type GetGroupsPlacementGroupListInput interface {
	pulumi.Input

	ToGetGroupsPlacementGroupListOutput() GetGroupsPlacementGroupListOutput
	ToGetGroupsPlacementGroupListOutputWithContext(context.Context) GetGroupsPlacementGroupListOutput
}

GetGroupsPlacementGroupListInput is an input type that accepts GetGroupsPlacementGroupListArgs and GetGroupsPlacementGroupListOutput values. You can construct a concrete instance of `GetGroupsPlacementGroupListInput` via:

GetGroupsPlacementGroupListArgs{...}

type GetGroupsPlacementGroupListOutput

type GetGroupsPlacementGroupListOutput struct{ *pulumi.OutputState }

func (GetGroupsPlacementGroupListOutput) CreateTime

Creation time of the placement group.

func (GetGroupsPlacementGroupListOutput) CurrentNum

Number of hosts in the placement group.

func (GetGroupsPlacementGroupListOutput) CvmQuotaTotal

Maximum number of hosts in the placement group.

func (GetGroupsPlacementGroupListOutput) ElementType

func (GetGroupsPlacementGroupListOutput) InstanceIds

Host IDs in the placement group.

func (GetGroupsPlacementGroupListOutput) Name

Name of the placement group to be queried.

func (GetGroupsPlacementGroupListOutput) PlacementGroupId

ID of the placement group to be queried.

func (GetGroupsPlacementGroupListOutput) ToGetGroupsPlacementGroupListOutput

func (o GetGroupsPlacementGroupListOutput) ToGetGroupsPlacementGroupListOutput() GetGroupsPlacementGroupListOutput

func (GetGroupsPlacementGroupListOutput) ToGetGroupsPlacementGroupListOutputWithContext

func (o GetGroupsPlacementGroupListOutput) ToGetGroupsPlacementGroupListOutputWithContext(ctx context.Context) GetGroupsPlacementGroupListOutput

func (GetGroupsPlacementGroupListOutput) Type

Type of the placement group.

type GetGroupsResult

type GetGroupsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Name of the placement group.
	Name *string `pulumi:"name"`
	// ID of the placement group.
	PlacementGroupId *string `pulumi:"placementGroupId"`
	// An information list of placement group. Each element contains the following attributes:
	PlacementGroupLists []GetGroupsPlacementGroupList `pulumi:"placementGroupLists"`
	ResultOutputFile    *string                       `pulumi:"resultOutputFile"`
}

A collection of values returned by getGroups.

func GetGroups

func GetGroups(ctx *pulumi.Context, args *GetGroupsArgs, opts ...pulumi.InvokeOption) (*GetGroupsResult, error)

Use this data source to query placement groups.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Placement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Placement"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Placement.GetGroups(ctx, &placement.GetGroupsArgs{
			Name:             pulumi.StringRef("test"),
			PlacementGroupId: pulumi.StringRef("ps-21q9ibvr"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetGroupsResultOutput

type GetGroupsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGroups.

func (GetGroupsResultOutput) ElementType

func (GetGroupsResultOutput) ElementType() reflect.Type

func (GetGroupsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGroupsResultOutput) Name

Name of the placement group.

func (GetGroupsResultOutput) PlacementGroupId

func (o GetGroupsResultOutput) PlacementGroupId() pulumi.StringPtrOutput

ID of the placement group.

func (GetGroupsResultOutput) PlacementGroupLists

An information list of placement group. Each element contains the following attributes:

func (GetGroupsResultOutput) ResultOutputFile

func (o GetGroupsResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetGroupsResultOutput) ToGetGroupsResultOutput

func (o GetGroupsResultOutput) ToGetGroupsResultOutput() GetGroupsResultOutput

func (GetGroupsResultOutput) ToGetGroupsResultOutputWithContext

func (o GetGroupsResultOutput) ToGetGroupsResultOutputWithContext(ctx context.Context) GetGroupsResultOutput

type Group

type Group struct {
	pulumi.CustomResourceState

	// Creation time of the placement group.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Number of hosts in the placement group.
	CurrentNum pulumi.IntOutput `pulumi:"currentNum"`
	// Maximum number of hosts in the placement group.
	CvmQuotaTotal pulumi.IntOutput `pulumi:"cvmQuotaTotal"`
	// Name of the placement group, 1-60 characters in length.
	Name pulumi.StringOutput `pulumi:"name"`
	// Type of the placement group. Valid values: `HOST`, `SW` and `RACK`.
	Type pulumi.StringOutput `pulumi:"type"`
}

Provide a resource to create a placement group.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Placement"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Placement.NewGroup(ctx, "foo", &Placement.GroupArgs{
			Type: pulumi.String("HOST"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Placement group can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Placement/group:Group foo ps-ilan8vjf

```

func GetGroup

func GetGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GroupState, opts ...pulumi.ResourceOption) (*Group, error)

GetGroup gets an existing Group 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 NewGroup

func NewGroup(ctx *pulumi.Context,
	name string, args *GroupArgs, opts ...pulumi.ResourceOption) (*Group, error)

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

func (*Group) ElementType

func (*Group) ElementType() reflect.Type

func (*Group) ToGroupOutput

func (i *Group) ToGroupOutput() GroupOutput

func (*Group) ToGroupOutputWithContext

func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput

type GroupArgs

type GroupArgs struct {
	// Name of the placement group, 1-60 characters in length.
	Name pulumi.StringPtrInput
	// Type of the placement group. Valid values: `HOST`, `SW` and `RACK`.
	Type pulumi.StringInput
}

The set of arguments for constructing a Group resource.

func (GroupArgs) ElementType

func (GroupArgs) ElementType() reflect.Type

type GroupArray

type GroupArray []GroupInput

func (GroupArray) ElementType

func (GroupArray) ElementType() reflect.Type

func (GroupArray) ToGroupArrayOutput

func (i GroupArray) ToGroupArrayOutput() GroupArrayOutput

func (GroupArray) ToGroupArrayOutputWithContext

func (i GroupArray) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput

type GroupArrayInput

type GroupArrayInput interface {
	pulumi.Input

	ToGroupArrayOutput() GroupArrayOutput
	ToGroupArrayOutputWithContext(context.Context) GroupArrayOutput
}

GroupArrayInput is an input type that accepts GroupArray and GroupArrayOutput values. You can construct a concrete instance of `GroupArrayInput` via:

GroupArray{ GroupArgs{...} }

type GroupArrayOutput

type GroupArrayOutput struct{ *pulumi.OutputState }

func (GroupArrayOutput) ElementType

func (GroupArrayOutput) ElementType() reflect.Type

func (GroupArrayOutput) Index

func (GroupArrayOutput) ToGroupArrayOutput

func (o GroupArrayOutput) ToGroupArrayOutput() GroupArrayOutput

func (GroupArrayOutput) ToGroupArrayOutputWithContext

func (o GroupArrayOutput) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput

type GroupInput

type GroupInput interface {
	pulumi.Input

	ToGroupOutput() GroupOutput
	ToGroupOutputWithContext(ctx context.Context) GroupOutput
}

type GroupMap

type GroupMap map[string]GroupInput

func (GroupMap) ElementType

func (GroupMap) ElementType() reflect.Type

func (GroupMap) ToGroupMapOutput

func (i GroupMap) ToGroupMapOutput() GroupMapOutput

func (GroupMap) ToGroupMapOutputWithContext

func (i GroupMap) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput

type GroupMapInput

type GroupMapInput interface {
	pulumi.Input

	ToGroupMapOutput() GroupMapOutput
	ToGroupMapOutputWithContext(context.Context) GroupMapOutput
}

GroupMapInput is an input type that accepts GroupMap and GroupMapOutput values. You can construct a concrete instance of `GroupMapInput` via:

GroupMap{ "key": GroupArgs{...} }

type GroupMapOutput

type GroupMapOutput struct{ *pulumi.OutputState }

func (GroupMapOutput) ElementType

func (GroupMapOutput) ElementType() reflect.Type

func (GroupMapOutput) MapIndex

func (GroupMapOutput) ToGroupMapOutput

func (o GroupMapOutput) ToGroupMapOutput() GroupMapOutput

func (GroupMapOutput) ToGroupMapOutputWithContext

func (o GroupMapOutput) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput

type GroupOutput

type GroupOutput struct{ *pulumi.OutputState }

func (GroupOutput) CreateTime

func (o GroupOutput) CreateTime() pulumi.StringOutput

Creation time of the placement group.

func (GroupOutput) CurrentNum

func (o GroupOutput) CurrentNum() pulumi.IntOutput

Number of hosts in the placement group.

func (GroupOutput) CvmQuotaTotal

func (o GroupOutput) CvmQuotaTotal() pulumi.IntOutput

Maximum number of hosts in the placement group.

func (GroupOutput) ElementType

func (GroupOutput) ElementType() reflect.Type

func (GroupOutput) Name

func (o GroupOutput) Name() pulumi.StringOutput

Name of the placement group, 1-60 characters in length.

func (GroupOutput) ToGroupOutput

func (o GroupOutput) ToGroupOutput() GroupOutput

func (GroupOutput) ToGroupOutputWithContext

func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput

func (GroupOutput) Type

func (o GroupOutput) Type() pulumi.StringOutput

Type of the placement group. Valid values: `HOST`, `SW` and `RACK`.

type GroupState

type GroupState struct {
	// Creation time of the placement group.
	CreateTime pulumi.StringPtrInput
	// Number of hosts in the placement group.
	CurrentNum pulumi.IntPtrInput
	// Maximum number of hosts in the placement group.
	CvmQuotaTotal pulumi.IntPtrInput
	// Name of the placement group, 1-60 characters in length.
	Name pulumi.StringPtrInput
	// Type of the placement group. Valid values: `HOST`, `SW` and `RACK`.
	Type pulumi.StringPtrInput
}

func (GroupState) ElementType

func (GroupState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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