yandex.ComputePlacementGroup
Explore with Pulumi AI
A Placement group resource. For more information, see the official documentation.
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var group1 = new Yandex.ComputePlacementGroup("group1", new Yandex.ComputePlacementGroupArgs
{
Description = "my description",
FolderId = "abc*********123",
});
}
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := yandex.NewComputePlacementGroup(ctx, "group1", &yandex.ComputePlacementGroupArgs{
Description: pulumi.String("my description"),
FolderId: pulumi.String("abc*********123"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
group1 = yandex.ComputePlacementGroup("group1",
description="my description",
folder_id="abc*********123")
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const group1 = new yandex.ComputePlacementGroup("group1", {
description: "my description",
folderId: "abc*********123",
});
Coming soon!
Create ComputePlacementGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComputePlacementGroup(name: string, args?: ComputePlacementGroupArgs, opts?: CustomResourceOptions);
@overload
def ComputePlacementGroup(resource_name: str,
args: Optional[ComputePlacementGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ComputePlacementGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
folder_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None)
func NewComputePlacementGroup(ctx *Context, name string, args *ComputePlacementGroupArgs, opts ...ResourceOption) (*ComputePlacementGroup, error)
public ComputePlacementGroup(string name, ComputePlacementGroupArgs? args = null, CustomResourceOptions? opts = null)
public ComputePlacementGroup(String name, ComputePlacementGroupArgs args)
public ComputePlacementGroup(String name, ComputePlacementGroupArgs args, CustomResourceOptions options)
type: yandex:ComputePlacementGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ComputePlacementGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ComputePlacementGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ComputePlacementGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputePlacementGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComputePlacementGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var computePlacementGroupResource = new Yandex.ComputePlacementGroup("computePlacementGroupResource", new()
{
Description = "string",
FolderId = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
});
example, err := yandex.NewComputePlacementGroup(ctx, "computePlacementGroupResource", &yandex.ComputePlacementGroupArgs{
Description: pulumi.String("string"),
FolderId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var computePlacementGroupResource = new ComputePlacementGroup("computePlacementGroupResource", ComputePlacementGroupArgs.builder()
.description("string")
.folderId("string")
.labels(Map.of("string", "string"))
.name("string")
.build());
compute_placement_group_resource = yandex.ComputePlacementGroup("computePlacementGroupResource",
description="string",
folder_id="string",
labels={
"string": "string",
},
name="string")
const computePlacementGroupResource = new yandex.ComputePlacementGroup("computePlacementGroupResource", {
description: "string",
folderId: "string",
labels: {
string: "string",
},
name: "string",
});
type: yandex:ComputePlacementGroup
properties:
description: string
folderId: string
labels:
string: string
name: string
ComputePlacementGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ComputePlacementGroup resource accepts the following input properties:
- Description string
- A description of the Placement Group.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Labels Dictionary<string, string>
- A set of key/value label pairs to assign to the Placement Group.
- Name string
- The name of the Placement Group.
- Description string
- A description of the Placement Group.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Labels map[string]string
- A set of key/value label pairs to assign to the Placement Group.
- Name string
- The name of the Placement Group.
- description String
- A description of the Placement Group.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- labels Map<String,String>
- A set of key/value label pairs to assign to the Placement Group.
- name String
- The name of the Placement Group.
- description string
- A description of the Placement Group.
- folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- labels {[key: string]: string}
- A set of key/value label pairs to assign to the Placement Group.
- name string
- The name of the Placement Group.
- description str
- A description of the Placement Group.
- folder_
id str - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- labels Mapping[str, str]
- A set of key/value label pairs to assign to the Placement Group.
- name str
- The name of the Placement Group.
- description String
- A description of the Placement Group.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- labels Map<String>
- A set of key/value label pairs to assign to the Placement Group.
- name String
- The name of the Placement Group.
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputePlacementGroup resource produces the following output properties:
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
Look up Existing ComputePlacementGroup Resource
Get an existing ComputePlacementGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ComputePlacementGroupState, opts?: CustomResourceOptions): ComputePlacementGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
folder_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None) -> ComputePlacementGroup
func GetComputePlacementGroup(ctx *Context, name string, id IDInput, state *ComputePlacementGroupState, opts ...ResourceOption) (*ComputePlacementGroup, error)
public static ComputePlacementGroup Get(string name, Input<string> id, ComputePlacementGroupState? state, CustomResourceOptions? opts = null)
public static ComputePlacementGroup get(String name, Output<String> id, ComputePlacementGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
At string - Description string
- A description of the Placement Group.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Labels Dictionary<string, string>
- A set of key/value label pairs to assign to the Placement Group.
- Name string
- The name of the Placement Group.
- Created
At string - Description string
- A description of the Placement Group.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Labels map[string]string
- A set of key/value label pairs to assign to the Placement Group.
- Name string
- The name of the Placement Group.
- created
At String - description String
- A description of the Placement Group.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- labels Map<String,String>
- A set of key/value label pairs to assign to the Placement Group.
- name String
- The name of the Placement Group.
- created
At string - description string
- A description of the Placement Group.
- folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- labels {[key: string]: string}
- A set of key/value label pairs to assign to the Placement Group.
- name string
- The name of the Placement Group.
- created_
at str - description str
- A description of the Placement Group.
- folder_
id str - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- labels Mapping[str, str]
- A set of key/value label pairs to assign to the Placement Group.
- name str
- The name of the Placement Group.
- created
At String - description String
- A description of the Placement Group.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- labels Map<String>
- A set of key/value label pairs to assign to the Placement Group.
- name String
- The name of the Placement Group.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.