@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
109 lines (108 loc) • 3.84 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* A Placement group resource. For more information, see
* [the official documentation](https://cloud.yandex.com/docs/compute/concepts/placement-groups).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const group1 = new yandex.ComputePlacementGroup("group1", {
* description: "my description",
* folderId: "abc*********123",
* });
* ```
*/
export declare class ComputePlacementGroup extends pulumi.CustomResource {
/**
* Get an existing ComputePlacementGroup resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ComputePlacementGroupState, opts?: pulumi.CustomResourceOptions): ComputePlacementGroup;
/**
* Returns true if the given object is an instance of ComputePlacementGroup. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is ComputePlacementGroup;
readonly createdAt: pulumi.Output<string>;
/**
* A description of the Placement Group.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
readonly folderId: pulumi.Output<string>;
/**
* A set of key/value label pairs to assign to the Placement Group.
*/
readonly labels: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* The name of the Placement Group.
*/
readonly name: pulumi.Output<string>;
/**
* Create a ComputePlacementGroup resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: ComputePlacementGroupArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ComputePlacementGroup resources.
*/
export interface ComputePlacementGroupState {
createdAt?: pulumi.Input<string>;
/**
* A description of the Placement Group.
*/
description?: pulumi.Input<string>;
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: pulumi.Input<string>;
/**
* A set of key/value label pairs to assign to the Placement Group.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The name of the Placement Group.
*/
name?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ComputePlacementGroup resource.
*/
export interface ComputePlacementGroupArgs {
/**
* A description of the Placement Group.
*/
description?: pulumi.Input<string>;
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: pulumi.Input<string>;
/**
* A set of key/value label pairs to assign to the Placement Group.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The name of the Placement Group.
*/
name?: pulumi.Input<string>;
}