ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse
esxi-native.ResourcePool
Explore with Pulumi AI
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.
Constructor 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ResourcePool resource accepts the following input properties:
- Cpu
Max int - CPU maximum (in MHz).
- Cpu
Min int - CPU minimum (in MHz).
- Cpu
Min stringExpandable - Can pool borrow CPU resources from parent?
- string
- CPU shares (low/normal/high/).
- Mem
Max int - Memory maximum (in MB).
- Mem
Min int - Memory minimum (in MB).
- Mem
Min stringExpandable - Can pool borrow memory resources from parent?
- 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 stringExpandable - Can pool borrow CPU resources from parent?
- string
- CPU shares (low/normal/high/).
- Mem
Max int - Memory maximum (in MB).
- Mem
Min int - Memory minimum (in MB).
- Mem
Min stringExpandable - Can pool borrow memory resources from parent?
- string
- Memory shares (low/normal/high/).
- Name string
- Resource Pool Name
- cpu
Max Integer - CPU maximum (in MHz).
- cpu
Min Integer - CPU minimum (in MHz).
- cpu
Min StringExpandable - Can pool borrow CPU resources from parent?
- String
- CPU shares (low/normal/high/).
- mem
Max Integer - Memory maximum (in MB).
- mem
Min Integer - Memory minimum (in MB).
- mem
Min StringExpandable - Can pool borrow memory resources from parent?
- String
- Memory shares (low/normal/high/).
- name String
- Resource Pool Name
- cpu
Max number - CPU maximum (in MHz).
- cpu
Min number - CPU minimum (in MHz).
- cpu
Min stringExpandable - Can pool borrow CPU resources from parent?
- string
- CPU shares (low/normal/high/).
- mem
Max number - Memory maximum (in MB).
- mem
Min number - Memory minimum (in MB).
- mem
Min stringExpandable - Can pool borrow memory resources from parent?
- 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_ strexpandable - Can pool borrow CPU resources from parent?
- str
- CPU shares (low/normal/high/).
- mem_
max int - Memory maximum (in MB).
- mem_
min int - Memory minimum (in MB).
- mem_
min_ strexpandable - Can pool borrow memory resources from parent?
- str
- Memory shares (low/normal/high/).
- name str
- Resource Pool Name
- cpu
Max Number - CPU maximum (in MHz).
- cpu
Min Number - CPU minimum (in MHz).
- cpu
Min StringExpandable - Can pool borrow CPU resources from parent?
- String
- CPU shares (low/normal/high/).
- mem
Max Number - Memory maximum (in MB).
- mem
Min Number - Memory minimum (in MB).
- mem
Min StringExpandable - Can pool borrow memory resources from parent?
- 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.