1. Packages
  2. Exoscale
  3. API Docs
  4. Affinity
Exoscale v0.52.3 published on Monday, Sep 18, 2023 by Pulumiverse

exoscale.Affinity

Explore with Pulumi AI

exoscale logo
Exoscale v0.52.3 published on Monday, Sep 18, 2023 by Pulumiverse

    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.

    VirtualMachineIds List<string>

    The compute instances (IDs) members of the group.

    Id string

    The provider-assigned unique ID for this managed resource.

    VirtualMachineIds []string

    The compute instances (IDs) members of the group.

    id String

    The provider-assigned unique ID for this managed resource.

    virtualMachineIds List<String>

    The compute instances (IDs) members of the group.

    id string

    The provider-assigned unique ID for this managed resource.

    virtualMachineIds string[]

    The compute instances (IDs) members of the group.

    id str

    The provider-assigned unique ID for this managed resource.

    virtual_machine_ids Sequence[str]

    The compute instances (IDs) members of the group.

    id String

    The provider-assigned unique ID for this managed resource.

    virtualMachineIds List<String>

    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.
    The following state arguments are supported:
    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).

    VirtualMachineIds List<string>

    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).

    VirtualMachineIds []string

    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).

    virtualMachineIds List<String>

    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).

    virtualMachineIds string[]

    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_ids Sequence[str]

    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).

    virtualMachineIds List<String>

    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.

    exoscale logo
    Exoscale v0.52.3 published on Monday, Sep 18, 2023 by Pulumiverse