1. Packages
  2. ESXi Native
  3. API Docs
  4. ResourcePool
ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse

esxi-native.ResourcePool

Explore with Pulumi AI

esxi-native logo
ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse

    Create ResourcePool Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ResourcePool(name: string, args?: ResourcePoolArgs, opts?: CustomResourceOptions);
    @overload
    def ResourcePool(resource_name: str,
                     args: Optional[ResourcePoolArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResourcePool(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     cpu_max: Optional[int] = None,
                     cpu_min: Optional[int] = None,
                     cpu_min_expandable: Optional[str] = None,
                     cpu_shares: Optional[str] = None,
                     mem_max: Optional[int] = None,
                     mem_min: Optional[int] = None,
                     mem_min_expandable: Optional[str] = None,
                     mem_shares: Optional[str] = None,
                     name: Optional[str] = None)
    func NewResourcePool(ctx *Context, name string, args *ResourcePoolArgs, opts ...ResourceOption) (*ResourcePool, error)
    public ResourcePool(string name, ResourcePoolArgs? args = null, CustomResourceOptions? opts = null)
    public ResourcePool(String name, ResourcePoolArgs args)
    public ResourcePool(String name, ResourcePoolArgs args, CustomResourceOptions options)
    
    type: esxi-native:ResourcePool
    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 ResourcePoolArgs
    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 ResourcePoolArgs
    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 ResourcePoolArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResourcePoolArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResourcePoolArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var resourcePoolResource = new EsxiNative.ResourcePool("resourcePoolResource", new()
    {
        CpuMax = 0,
        CpuMin = 0,
        CpuMinExpandable = "string",
        CpuShares = "string",
        MemMax = 0,
        MemMin = 0,
        MemMinExpandable = "string",
        MemShares = "string",
        Name = "string",
    });
    
    example, err := esxinative.NewResourcePool(ctx, "resourcePoolResource", &esxinative.ResourcePoolArgs{
    	CpuMax:           pulumi.Int(0),
    	CpuMin:           pulumi.Int(0),
    	CpuMinExpandable: pulumi.String("string"),
    	CpuShares:        pulumi.String("string"),
    	MemMax:           pulumi.Int(0),
    	MemMin:           pulumi.Int(0),
    	MemMinExpandable: pulumi.String("string"),
    	MemShares:        pulumi.String("string"),
    	Name:             pulumi.String("string"),
    })
    
    var resourcePoolResource = new ResourcePool("resourcePoolResource", ResourcePoolArgs.builder()
        .cpuMax(0)
        .cpuMin(0)
        .cpuMinExpandable("string")
        .cpuShares("string")
        .memMax(0)
        .memMin(0)
        .memMinExpandable("string")
        .memShares("string")
        .name("string")
        .build());
    
    resource_pool_resource = esxi_native.ResourcePool("resourcePoolResource",
        cpu_max=0,
        cpu_min=0,
        cpu_min_expandable="string",
        cpu_shares="string",
        mem_max=0,
        mem_min=0,
        mem_min_expandable="string",
        mem_shares="string",
        name="string")
    
    const resourcePoolResource = new esxi_native.ResourcePool("resourcePoolResource", {
        cpuMax: 0,
        cpuMin: 0,
        cpuMinExpandable: "string",
        cpuShares: "string",
        memMax: 0,
        memMin: 0,
        memMinExpandable: "string",
        memShares: "string",
        name: "string",
    });
    
    type: esxi-native:ResourcePool
    properties:
        cpuMax: 0
        cpuMin: 0
        cpuMinExpandable: string
        cpuShares: string
        memMax: 0
        memMin: 0
        memMinExpandable: string
        memShares: string
        name: string
    

    ResourcePool 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 ResourcePool resource accepts the following input properties:

    CpuMax int
    CPU maximum (in MHz).
    CpuMin int
    CPU minimum (in MHz).
    CpuMinExpandable string
    Can pool borrow CPU resources from parent?
    CpuShares string
    CPU shares (low/normal/high/).
    MemMax int
    Memory maximum (in MB).
    MemMin int
    Memory minimum (in MB).
    MemMinExpandable string
    Can pool borrow memory resources from parent?
    MemShares string
    Memory shares (low/normal/high/).
    Name string
    Resource Pool Name
    CpuMax int
    CPU maximum (in MHz).
    CpuMin int
    CPU minimum (in MHz).
    CpuMinExpandable string
    Can pool borrow CPU resources from parent?
    CpuShares string
    CPU shares (low/normal/high/).
    MemMax int
    Memory maximum (in MB).
    MemMin int
    Memory minimum (in MB).
    MemMinExpandable string
    Can pool borrow memory resources from parent?
    MemShares string
    Memory shares (low/normal/high/).
    Name string
    Resource Pool Name
    cpuMax Integer
    CPU maximum (in MHz).
    cpuMin Integer
    CPU minimum (in MHz).
    cpuMinExpandable String
    Can pool borrow CPU resources from parent?
    cpuShares String
    CPU shares (low/normal/high/).
    memMax Integer
    Memory maximum (in MB).
    memMin Integer
    Memory minimum (in MB).
    memMinExpandable String
    Can pool borrow memory resources from parent?
    memShares String
    Memory shares (low/normal/high/).
    name String
    Resource Pool Name
    cpuMax number
    CPU maximum (in MHz).
    cpuMin number
    CPU minimum (in MHz).
    cpuMinExpandable string
    Can pool borrow CPU resources from parent?
    cpuShares string
    CPU shares (low/normal/high/).
    memMax number
    Memory maximum (in MB).
    memMin number
    Memory minimum (in MB).
    memMinExpandable string
    Can pool borrow memory resources from parent?
    memShares string
    Memory shares (low/normal/high/).
    name string
    Resource Pool Name
    cpu_max int
    CPU maximum (in MHz).
    cpu_min int
    CPU minimum (in MHz).
    cpu_min_expandable str
    Can pool borrow CPU resources from parent?
    cpu_shares str
    CPU shares (low/normal/high/).
    mem_max int
    Memory maximum (in MB).
    mem_min int
    Memory minimum (in MB).
    mem_min_expandable str
    Can pool borrow memory resources from parent?
    mem_shares str
    Memory shares (low/normal/high/).
    name str
    Resource Pool Name
    cpuMax Number
    CPU maximum (in MHz).
    cpuMin Number
    CPU minimum (in MHz).
    cpuMinExpandable String
    Can pool borrow CPU resources from parent?
    cpuShares String
    CPU shares (low/normal/high/).
    memMax Number
    Memory maximum (in MB).
    memMin Number
    Memory minimum (in MB).
    memMinExpandable String
    Can pool borrow memory resources from parent?
    memShares String
    Memory shares (low/normal/high/).
    name String
    Resource Pool Name

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResourcePool resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    esxi-native pulumiverse/pulumi-esxi-native
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the Terraform Provider terraform-provider-esxi.
    esxi-native logo
    ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse