1. Packages
  2. Packages
  3. Freebox
  4. API Docs
  5. virtual
  6. MachinePower
Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
freebox logo
Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien

    Create MachinePower Resource

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

    Constructor syntax

    new MachinePower(name: string, args: MachinePowerArgs, opts?: CustomResourceOptions);
    @overload
    def MachinePower(resource_name: str,
                     args: MachinePowerArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def MachinePower(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     power_state: Optional[str] = None,
                     vm_id: Optional[int] = None,
                     kill_timeout: Optional[int] = None,
                     timeouts: Optional[_root_inputs.VirtualMachinePowerTimeoutsArgs] = None)
    func NewMachinePower(ctx *Context, name string, args MachinePowerArgs, opts ...ResourceOption) (*MachinePower, error)
    public MachinePower(string name, MachinePowerArgs args, CustomResourceOptions? opts = null)
    public MachinePower(String name, MachinePowerArgs args)
    public MachinePower(String name, MachinePowerArgs args, CustomResourceOptions options)
    
    type: freebox:virtual:MachinePower
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "freebox_virtual_machinepower" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args MachinePowerArgs
    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 MachinePowerArgs
    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 MachinePowerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MachinePowerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MachinePowerArgs
    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 machinePowerResource = new Freebox.Virtual.MachinePower("machinePowerResource", new()
    {
        PowerState = "string",
        VmId = 0,
        KillTimeout = 0,
        Timeouts = new Freebox.Inputs.VirtualMachinePowerTimeoutsArgs
        {
            Kill = 0,
        },
    });
    
    example, err := virtual.NewMachinePower(ctx, "machinePowerResource", &virtual.MachinePowerArgs{
    	PowerState:  pulumi.String("string"),
    	VmId:        pulumi.Int(0),
    	KillTimeout: pulumi.Int(0),
    	Timeouts: &freebox.VirtualMachinePowerTimeoutsArgs{
    		Kill: pulumi.Int(0),
    	},
    })
    
    resource "freebox_virtual_machinepower" "machinePowerResource" {
      power_state  = "string"
      vm_id        = 0
      kill_timeout = 0
      timeouts = {
        kill = 0
      }
    }
    
    var machinePowerResource = new MachinePower("machinePowerResource", MachinePowerArgs.builder()
        .powerState("string")
        .vmId(0)
        .killTimeout(0)
        .timeouts(VirtualMachinePowerTimeoutsArgs.builder()
            .kill(0)
            .build())
        .build());
    
    machine_power_resource = freebox.virtual.MachinePower("machinePowerResource",
        power_state="string",
        vm_id=0,
        kill_timeout=0,
        timeouts={
            "kill": 0,
        })
    
    const machinePowerResource = new freebox.virtual.MachinePower("machinePowerResource", {
        powerState: "string",
        vmId: 0,
        killTimeout: 0,
        timeouts: {
            kill: 0,
        },
    });
    
    type: freebox:virtual:MachinePower
    properties:
        killTimeout: 0
        powerState: string
        timeouts:
            kill: 0
        vmId: 0
    

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

    PowerState string
    Desired power state: running or stopped.
    VmId int
    Identifier of the virtual machine.
    KillTimeout int
    Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
    Timeouts OlivierPaquien.Pulumi.Freebox.Inputs.VirtualMachinePowerTimeouts
    Timeouts for power operations.
    PowerState string
    Desired power state: running or stopped.
    VmId int
    Identifier of the virtual machine.
    KillTimeout int
    Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
    Timeouts VirtualMachinePowerTimeoutsArgs
    Timeouts for power operations.
    power_state string
    Desired power state: running or stopped.
    vm_id number
    Identifier of the virtual machine.
    kill_timeout number
    Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
    timeouts object
    Timeouts for power operations.
    powerState String
    Desired power state: running or stopped.
    vmId Integer
    Identifier of the virtual machine.
    killTimeout Integer
    Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
    timeouts VirtualMachinePowerTimeouts
    Timeouts for power operations.
    powerState string
    Desired power state: running or stopped.
    vmId number
    Identifier of the virtual machine.
    killTimeout number
    Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
    timeouts VirtualMachinePowerTimeouts
    Timeouts for power operations.
    power_state str
    Desired power state: running or stopped.
    vm_id int
    Identifier of the virtual machine.
    kill_timeout int
    Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
    timeouts VirtualMachinePowerTimeoutsArgs
    Timeouts for power operations.
    powerState String
    Desired power state: running or stopped.
    vmId Number
    Identifier of the virtual machine.
    killTimeout Number
    Seconds to wait for graceful shutdown before force kill (default 30). Deprecated: use timeouts.kill.
    timeouts Property Map
    Timeouts for power operations.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MachinePower 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 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.

    Supporting Types

    VirtualMachinePowerTimeouts, VirtualMachinePowerTimeoutsArgs

    Kill int
    Kill int
    kill number
    kill Integer
    kill number
    kill int
    kill Number

    Package Details

    Repository
    freebox
    License
    freebox logo
    Viewing docs for Freebox v0.3.11
    published on Friday, Jul 3, 2026 by OlivierPaquien

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial