scaleway.InstancePlacementGroup
Explore with Pulumi AI
Creates and manages Compute Instance Placement Groups. For more information, see the documentation.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var availabilityGroup = new Scaleway.InstancePlacementGroup("availabilityGroup");
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewInstancePlacementGroup(ctx, "availabilityGroup", nil)
if err != nil {
return err
}
return nil
})
}
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");
}
}
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
availability_group = scaleway.InstancePlacementGroup("availabilityGroup")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const availabilityGroup = new scaleway.InstancePlacementGroup("availabilityGroup", {});
resources:
availabilityGroup:
type: scaleway:InstancePlacementGroup
Create InstancePlacementGroup Resource
new InstancePlacementGroup(name: string, args?: InstancePlacementGroupArgs, opts?: CustomResourceOptions);
@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)
@overload
def InstancePlacementGroup(resource_name: str,
args: Optional[InstancePlacementGroupArgs] = None,
opts: Optional[ResourceOptions] = 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.
- 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.
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
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
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.