scaleway.InstancePlacementGroup
Explore with Pulumi AI
Creates and manages Compute Instance Placement Groups. For more information, see the documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const availabilityGroup = new scaleway.InstancePlacementGroup("availability_group", {});
import pulumi
import pulumiverse_scaleway as scaleway
availability_group = scaleway.InstancePlacementGroup("availability_group")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewInstancePlacementGroup(ctx, "availability_group", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var availabilityGroup = new Scaleway.InstancePlacementGroup("availability_group");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.InstancePlacementGroup;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var availabilityGroup = new InstancePlacementGroup("availabilityGroup");
}
}
resources:
availabilityGroup:
type: scaleway:InstancePlacementGroup
name: availability_group
Create InstancePlacementGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstancePlacementGroup(name: string, args?: InstancePlacementGroupArgs, opts?: CustomResourceOptions);
@overload
def InstancePlacementGroup(resource_name: str,
args: Optional[InstancePlacementGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def InstancePlacementGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
policy_mode: Optional[str] = None,
policy_type: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
zone: Optional[str] = None)
func NewInstancePlacementGroup(ctx *Context, name string, args *InstancePlacementGroupArgs, opts ...ResourceOption) (*InstancePlacementGroup, error)
public InstancePlacementGroup(string name, InstancePlacementGroupArgs? args = null, CustomResourceOptions? opts = null)
public InstancePlacementGroup(String name, InstancePlacementGroupArgs args)
public InstancePlacementGroup(String name, InstancePlacementGroupArgs args, CustomResourceOptions options)
type: scaleway:InstancePlacementGroup
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 InstancePlacementGroupArgs
- 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 InstancePlacementGroupArgs
- 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 InstancePlacementGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstancePlacementGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstancePlacementGroupArgs
- 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 instancePlacementGroupResource = new Scaleway.InstancePlacementGroup("instancePlacementGroupResource", new()
{
Name = "string",
PolicyMode = "string",
PolicyType = "string",
ProjectId = "string",
Tags = new[]
{
"string",
},
Zone = "string",
});
example, err := scaleway.NewInstancePlacementGroup(ctx, "instancePlacementGroupResource", &scaleway.InstancePlacementGroupArgs{
Name: pulumi.String("string"),
PolicyMode: pulumi.String("string"),
PolicyType: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Zone: pulumi.String("string"),
})
var instancePlacementGroupResource = new InstancePlacementGroup("instancePlacementGroupResource", InstancePlacementGroupArgs.builder()
.name("string")
.policyMode("string")
.policyType("string")
.projectId("string")
.tags("string")
.zone("string")
.build());
instance_placement_group_resource = scaleway.InstancePlacementGroup("instancePlacementGroupResource",
name="string",
policy_mode="string",
policy_type="string",
project_id="string",
tags=["string"],
zone="string")
const instancePlacementGroupResource = new scaleway.InstancePlacementGroup("instancePlacementGroupResource", {
name: "string",
policyMode: "string",
policyType: "string",
projectId: "string",
tags: ["string"],
zone: "string",
});
type: scaleway:InstancePlacementGroup
properties:
name: string
policyMode: string
policyType: string
projectId: string
tags:
- string
zone: string
InstancePlacementGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InstancePlacementGroup resource accepts the following input properties:
- Name string
- The name of the placement group.
- Policy
Mode string - The policy mode of the placement group. Possible values are:
optional
orenforced
. - Policy
Type string - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - Project
Id string project_id
) The ID of the project the placement group is associated with.- List<string>
- A list of tags to apply to the placement group.
- Zone string
zone
) The zone in which the placement group should be created.
- Name string
- The name of the placement group.
- Policy
Mode string - The policy mode of the placement group. Possible values are:
optional
orenforced
. - Policy
Type string - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - Project
Id string project_id
) The ID of the project the placement group is associated with.- []string
- A list of tags to apply to the placement group.
- Zone string
zone
) The zone in which the placement group should be created.
- name String
- The name of the placement group.
- policy
Mode String - The policy mode of the placement group. Possible values are:
optional
orenforced
. - policy
Type String - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - project
Id String project_id
) The ID of the project the placement group is associated with.- List<String>
- A list of tags to apply to the placement group.
- zone String
zone
) The zone in which the placement group should be created.
- name string
- The name of the placement group.
- policy
Mode string - The policy mode of the placement group. Possible values are:
optional
orenforced
. - policy
Type string - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - project
Id string project_id
) The ID of the project the placement group is associated with.- string[]
- A list of tags to apply to the placement group.
- zone string
zone
) The zone in which the placement group should be created.
- name str
- The name of the placement group.
- policy_
mode str - The policy mode of the placement group. Possible values are:
optional
orenforced
. - policy_
type str - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - project_
id str project_id
) The ID of the project the placement group is associated with.- Sequence[str]
- A list of tags to apply to the placement group.
- zone str
zone
) The zone in which the placement group should be created.
- name String
- The name of the placement group.
- policy
Mode String - The policy mode of the placement group. Possible values are:
optional
orenforced
. - policy
Type String - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - project
Id String project_id
) The ID of the project the placement group is associated with.- List<String>
- A list of tags to apply to the placement group.
- zone String
zone
) The zone in which the placement group should be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstancePlacementGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The organization ID the placement group is associated with.
- Policy
Respected bool - Is true when the policy is respected.
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The organization ID the placement group is associated with.
- Policy
Respected bool - Is true when the policy is respected.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The organization ID the placement group is associated with.
- policy
Respected Boolean - Is true when the policy is respected.
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - The organization ID the placement group is associated with.
- policy
Respected boolean - Is true when the policy is respected.
- id str
- The provider-assigned unique ID for this managed resource.
- organization_
id str - The organization ID the placement group is associated with.
- policy_
respected bool - Is true when the policy is respected.
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The organization ID the placement group is associated with.
- policy
Respected Boolean - Is true when the policy is respected.
Look up Existing InstancePlacementGroup Resource
Get an existing InstancePlacementGroup 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?: InstancePlacementGroupState, opts?: CustomResourceOptions): InstancePlacementGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
policy_mode: Optional[str] = None,
policy_respected: Optional[bool] = None,
policy_type: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
zone: Optional[str] = None) -> InstancePlacementGroup
func GetInstancePlacementGroup(ctx *Context, name string, id IDInput, state *InstancePlacementGroupState, opts ...ResourceOption) (*InstancePlacementGroup, error)
public static InstancePlacementGroup Get(string name, Input<string> id, InstancePlacementGroupState? state, CustomResourceOptions? opts = null)
public static InstancePlacementGroup get(String name, Output<String> id, InstancePlacementGroupState 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.
- Name string
- The name of the placement group.
- Organization
Id string - The organization ID the placement group is associated with.
- Policy
Mode string - The policy mode of the placement group. Possible values are:
optional
orenforced
. - Policy
Respected bool - Is true when the policy is respected.
- Policy
Type string - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - Project
Id string project_id
) The ID of the project the placement group is associated with.- List<string>
- A list of tags to apply to the placement group.
- Zone string
zone
) The zone in which the placement group should be created.
- Name string
- The name of the placement group.
- Organization
Id string - The organization ID the placement group is associated with.
- Policy
Mode string - The policy mode of the placement group. Possible values are:
optional
orenforced
. - Policy
Respected bool - Is true when the policy is respected.
- Policy
Type string - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - Project
Id string project_id
) The ID of the project the placement group is associated with.- []string
- A list of tags to apply to the placement group.
- Zone string
zone
) The zone in which the placement group should be created.
- name String
- The name of the placement group.
- organization
Id String - The organization ID the placement group is associated with.
- policy
Mode String - The policy mode of the placement group. Possible values are:
optional
orenforced
. - policy
Respected Boolean - Is true when the policy is respected.
- policy
Type String - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - project
Id String project_id
) The ID of the project the placement group is associated with.- List<String>
- A list of tags to apply to the placement group.
- zone String
zone
) The zone in which the placement group should be created.
- name string
- The name of the placement group.
- organization
Id string - The organization ID the placement group is associated with.
- policy
Mode string - The policy mode of the placement group. Possible values are:
optional
orenforced
. - policy
Respected boolean - Is true when the policy is respected.
- policy
Type string - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - project
Id string project_id
) The ID of the project the placement group is associated with.- string[]
- A list of tags to apply to the placement group.
- zone string
zone
) The zone in which the placement group should be created.
- name str
- The name of the placement group.
- organization_
id str - The organization ID the placement group is associated with.
- policy_
mode str - The policy mode of the placement group. Possible values are:
optional
orenforced
. - policy_
respected bool - Is true when the policy is respected.
- policy_
type str - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - project_
id str project_id
) The ID of the project the placement group is associated with.- Sequence[str]
- A list of tags to apply to the placement group.
- zone str
zone
) The zone in which the placement group should be created.
- name String
- The name of the placement group.
- organization
Id String - The organization ID the placement group is associated with.
- policy
Mode String - The policy mode of the placement group. Possible values are:
optional
orenforced
. - policy
Respected Boolean - Is true when the policy is respected.
- policy
Type String - The policy type of the placement group. Possible values are:
low_latency
ormax_availability
. - project
Id String project_id
) The ID of the project the placement group is associated with.- List<String>
- A list of tags to apply to the placement group.
- zone String
zone
) The zone in which the placement group should be created.
Import
Placement groups can be imported using the {zone}/{id}
, e.g.
bash
$ pulumi import scaleway:index/instancePlacementGroup:InstancePlacementGroup availability_group fr-par-1/11111111-1111-1111-1111-111111111111
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.