Documentation
¶
Index ¶
- type GetGroupsArgs
- type GetGroupsOutputArgs
- type GetGroupsPlacementGroupList
- type GetGroupsPlacementGroupListArgs
- func (GetGroupsPlacementGroupListArgs) ElementType() reflect.Type
- func (i GetGroupsPlacementGroupListArgs) ToGetGroupsPlacementGroupListOutput() GetGroupsPlacementGroupListOutput
- func (i GetGroupsPlacementGroupListArgs) ToGetGroupsPlacementGroupListOutputWithContext(ctx context.Context) GetGroupsPlacementGroupListOutput
- type GetGroupsPlacementGroupListArray
- func (GetGroupsPlacementGroupListArray) ElementType() reflect.Type
- func (i GetGroupsPlacementGroupListArray) ToGetGroupsPlacementGroupListArrayOutput() GetGroupsPlacementGroupListArrayOutput
- func (i GetGroupsPlacementGroupListArray) ToGetGroupsPlacementGroupListArrayOutputWithContext(ctx context.Context) GetGroupsPlacementGroupListArrayOutput
- type GetGroupsPlacementGroupListArrayInput
- type GetGroupsPlacementGroupListArrayOutput
- func (GetGroupsPlacementGroupListArrayOutput) ElementType() reflect.Type
- func (o GetGroupsPlacementGroupListArrayOutput) Index(i pulumi.IntInput) GetGroupsPlacementGroupListOutput
- func (o GetGroupsPlacementGroupListArrayOutput) ToGetGroupsPlacementGroupListArrayOutput() GetGroupsPlacementGroupListArrayOutput
- func (o GetGroupsPlacementGroupListArrayOutput) ToGetGroupsPlacementGroupListArrayOutputWithContext(ctx context.Context) GetGroupsPlacementGroupListArrayOutput
- type GetGroupsPlacementGroupListInput
- type GetGroupsPlacementGroupListOutput
- func (o GetGroupsPlacementGroupListOutput) CreateTime() pulumi.StringOutput
- func (o GetGroupsPlacementGroupListOutput) CurrentNum() pulumi.IntOutput
- func (o GetGroupsPlacementGroupListOutput) CvmQuotaTotal() pulumi.IntOutput
- func (GetGroupsPlacementGroupListOutput) ElementType() reflect.Type
- func (o GetGroupsPlacementGroupListOutput) InstanceIds() pulumi.StringArrayOutput
- func (o GetGroupsPlacementGroupListOutput) Name() pulumi.StringOutput
- func (o GetGroupsPlacementGroupListOutput) PlacementGroupId() pulumi.StringOutput
- func (o GetGroupsPlacementGroupListOutput) ToGetGroupsPlacementGroupListOutput() GetGroupsPlacementGroupListOutput
- func (o GetGroupsPlacementGroupListOutput) ToGetGroupsPlacementGroupListOutputWithContext(ctx context.Context) GetGroupsPlacementGroupListOutput
- func (o GetGroupsPlacementGroupListOutput) Type() pulumi.StringOutput
- type GetGroupsResult
- type GetGroupsResultOutput
- func (GetGroupsResultOutput) ElementType() reflect.Type
- func (o GetGroupsResultOutput) Id() pulumi.StringOutput
- func (o GetGroupsResultOutput) Name() pulumi.StringPtrOutput
- func (o GetGroupsResultOutput) PlacementGroupId() pulumi.StringPtrOutput
- func (o GetGroupsResultOutput) PlacementGroupLists() GetGroupsPlacementGroupListArrayOutput
- func (o GetGroupsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetGroupsResultOutput) ToGetGroupsResultOutput() GetGroupsResultOutput
- func (o GetGroupsResultOutput) ToGetGroupsResultOutputWithContext(ctx context.Context) GetGroupsResultOutput
- type Group
- type GroupArgs
- type GroupArray
- type GroupArrayInput
- type GroupArrayOutput
- type GroupInput
- type GroupMap
- type GroupMapInput
- type GroupMapOutput
- type GroupOutput
- func (o GroupOutput) CreateTime() pulumi.StringOutput
- func (o GroupOutput) CurrentNum() pulumi.IntOutput
- func (o GroupOutput) CvmQuotaTotal() pulumi.IntOutput
- func (GroupOutput) ElementType() reflect.Type
- func (o GroupOutput) Name() pulumi.StringOutput
- func (o GroupOutput) ToGroupOutput() GroupOutput
- func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput
- func (o GroupOutput) Type() pulumi.StringOutput
- type GroupState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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 ¶
func (o GetGroupsPlacementGroupListOutput) CreateTime() pulumi.StringOutput
Creation time of the placement group.
func (GetGroupsPlacementGroupListOutput) CurrentNum ¶
func (o GetGroupsPlacementGroupListOutput) CurrentNum() pulumi.IntOutput
Number of hosts in the placement group.
func (GetGroupsPlacementGroupListOutput) CvmQuotaTotal ¶
func (o GetGroupsPlacementGroupListOutput) CvmQuotaTotal() pulumi.IntOutput
Maximum number of hosts in the placement group.
func (GetGroupsPlacementGroupListOutput) ElementType ¶
func (GetGroupsPlacementGroupListOutput) ElementType() reflect.Type
func (GetGroupsPlacementGroupListOutput) InstanceIds ¶
func (o GetGroupsPlacementGroupListOutput) InstanceIds() pulumi.StringArrayOutput
Host IDs in the placement group.
func (GetGroupsPlacementGroupListOutput) Name ¶
func (o GetGroupsPlacementGroupListOutput) Name() pulumi.StringOutput
Name of the placement group to be queried.
func (GetGroupsPlacementGroupListOutput) PlacementGroupId ¶
func (o GetGroupsPlacementGroupListOutput) PlacementGroupId() pulumi.StringOutput
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 ¶
func (o GetGroupsPlacementGroupListOutput) Type() pulumi.StringOutput
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
<!--Start PulumiCodeChooser --> ```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.GetGroups(ctx, &placement.GetGroupsArgs{ Name: pulumi.StringRef("tf_example"), PlacementGroupId: pulumi.StringRef("ps-bwvst92h"), }, nil) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
type GetGroupsResultOutput ¶
type GetGroupsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getGroups.
func GetGroupsOutput ¶
func GetGroupsOutput(ctx *pulumi.Context, args GetGroupsOutputArgs, opts ...pulumi.InvokeOption) GetGroupsResultOutput
func (GetGroupsResultOutput) ElementType ¶
func (GetGroupsResultOutput) ElementType() reflect.Type
func (GetGroupsResultOutput) Id ¶
func (o GetGroupsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetGroupsResultOutput) Name ¶
func (o GetGroupsResultOutput) Name() pulumi.StringPtrOutput
Name of the placement group.
func (GetGroupsResultOutput) PlacementGroupId ¶
func (o GetGroupsResultOutput) PlacementGroupId() pulumi.StringPtrOutput
ID of the placement group.
func (GetGroupsResultOutput) PlacementGroupLists ¶
func (o GetGroupsResultOutput) PlacementGroupLists() GetGroupsPlacementGroupListArrayOutput
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
<!--Start PulumiCodeChooser --> ```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 }) }
``` <!--End PulumiCodeChooser -->
## 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) 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 ¶
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 (o GroupArrayOutput) Index(i pulumi.IntInput) GroupOutput
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) 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 (o GroupMapOutput) MapIndex(k pulumi.StringInput) GroupOutput
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