exoscale.Affinity
Explore with Pulumi AI
WARNING: This resource is DEPRECATED and will be removed in the next major version. Please use exoscale.AntiAffinityGroup instead.
Create Affinity Resource
new Affinity(name: string, args?: AffinityArgs, opts?: CustomResourceOptions);
@overload
def Affinity(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None)
@overload
def Affinity(resource_name: str,
args: Optional[AffinityArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewAffinity(ctx *Context, name string, args *AffinityArgs, opts ...ResourceOption) (*Affinity, error)
public Affinity(string name, AffinityArgs? args = null, CustomResourceOptions? opts = null)
public Affinity(String name, AffinityArgs args)
public Affinity(String name, AffinityArgs args, CustomResourceOptions options)
type: exoscale:Affinity
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AffinityArgs
- 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 AffinityArgs
- 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 AffinityArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AffinityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AffinityArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Affinity 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 Affinity resource accepts the following input properties:
- Description string
❗ A free-form text describing the group.
- Name string
❗ The anti-affinity group name.
- Type string
❗ The type of the group (
host anti-affinity
is the only supported value).
- Description string
❗ A free-form text describing the group.
- Name string
❗ The anti-affinity group name.
- Type string
❗ The type of the group (
host anti-affinity
is the only supported value).
- description String
❗ A free-form text describing the group.
- name String
❗ The anti-affinity group name.
- type String
❗ The type of the group (
host anti-affinity
is the only supported value).
- description string
❗ A free-form text describing the group.
- name string
❗ The anti-affinity group name.
- type string
❗ The type of the group (
host anti-affinity
is the only supported value).
- description str
❗ A free-form text describing the group.
- name str
❗ The anti-affinity group name.
- type str
❗ The type of the group (
host anti-affinity
is the only supported value).
- description String
❗ A free-form text describing the group.
- name String
❗ The anti-affinity group name.
- type String
❗ The type of the group (
host anti-affinity
is the only supported value).
Outputs
All input properties are implicitly available as output properties. Additionally, the Affinity resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Virtual
Machine List<string>Ids The compute instances (IDs) members of the group.
- Id string
The provider-assigned unique ID for this managed resource.
- Virtual
Machine []stringIds The compute instances (IDs) members of the group.
- id String
The provider-assigned unique ID for this managed resource.
- virtual
Machine List<String>Ids The compute instances (IDs) members of the group.
- id string
The provider-assigned unique ID for this managed resource.
- virtual
Machine string[]Ids The compute instances (IDs) members of the group.
- id str
The provider-assigned unique ID for this managed resource.
- virtual_
machine_ Sequence[str]ids The compute instances (IDs) members of the group.
- id String
The provider-assigned unique ID for this managed resource.
- virtual
Machine List<String>Ids The compute instances (IDs) members of the group.
Look up Existing Affinity Resource
Get an existing Affinity 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?: AffinityState, opts?: CustomResourceOptions): Affinity
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
virtual_machine_ids: Optional[Sequence[str]] = None) -> Affinity
func GetAffinity(ctx *Context, name string, id IDInput, state *AffinityState, opts ...ResourceOption) (*Affinity, error)
public static Affinity Get(string name, Input<string> id, AffinityState? state, CustomResourceOptions? opts = null)
public static Affinity get(String name, Output<String> id, AffinityState 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.
- Description string
❗ A free-form text describing the group.
- Name string
❗ The anti-affinity group name.
- Type string
❗ The type of the group (
host anti-affinity
is the only supported value).- Virtual
Machine List<string>Ids The compute instances (IDs) members of the group.
- Description string
❗ A free-form text describing the group.
- Name string
❗ The anti-affinity group name.
- Type string
❗ The type of the group (
host anti-affinity
is the only supported value).- Virtual
Machine []stringIds The compute instances (IDs) members of the group.
- description String
❗ A free-form text describing the group.
- name String
❗ The anti-affinity group name.
- type String
❗ The type of the group (
host anti-affinity
is the only supported value).- virtual
Machine List<String>Ids The compute instances (IDs) members of the group.
- description string
❗ A free-form text describing the group.
- name string
❗ The anti-affinity group name.
- type string
❗ The type of the group (
host anti-affinity
is the only supported value).- virtual
Machine string[]Ids The compute instances (IDs) members of the group.
- description str
❗ A free-form text describing the group.
- name str
❗ The anti-affinity group name.
- type str
❗ The type of the group (
host anti-affinity
is the only supported value).- virtual_
machine_ Sequence[str]ids The compute instances (IDs) members of the group.
- description String
❗ A free-form text describing the group.
- name String
❗ The anti-affinity group name.
- type String
❗ The type of the group (
host anti-affinity
is the only supported value).- virtual
Machine List<String>Ids The compute instances (IDs) members of the group.
Package Details
- Repository
- exoscale pulumiverse/pulumi-exoscale
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
exoscale
Terraform Provider.