Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien
Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien
Create StaticLease Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StaticLease(name: string, args: StaticLeaseArgs, opts?: CustomResourceOptions);@overload
def StaticLease(resource_name: str,
args: StaticLeaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StaticLease(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip: Optional[str] = None,
mac: Optional[str] = None,
comment: Optional[str] = None,
hostname: Optional[str] = None)func NewStaticLease(ctx *Context, name string, args StaticLeaseArgs, opts ...ResourceOption) (*StaticLease, error)public StaticLease(string name, StaticLeaseArgs args, CustomResourceOptions? opts = null)
public StaticLease(String name, StaticLeaseArgs args)
public StaticLease(String name, StaticLeaseArgs args, CustomResourceOptions options)
type: freebox:dhcp:StaticLease
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "freebox_dhcp_staticlease" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args StaticLeaseArgs
- 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 StaticLeaseArgs
- 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 StaticLeaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StaticLeaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StaticLeaseArgs
- 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 staticLeaseResource = new Freebox.Dhcp.StaticLease("staticLeaseResource", new()
{
Ip = "string",
Mac = "string",
Comment = "string",
Hostname = "string",
});
example, err := dhcp.NewStaticLease(ctx, "staticLeaseResource", &dhcp.StaticLeaseArgs{
Ip: pulumi.String("string"),
Mac: pulumi.String("string"),
Comment: pulumi.String("string"),
Hostname: pulumi.String("string"),
})
resource "freebox_dhcp_staticlease" "staticLeaseResource" {
ip = "string"
mac = "string"
comment = "string"
hostname = "string"
}
var staticLeaseResource = new StaticLease("staticLeaseResource", StaticLeaseArgs.builder()
.ip("string")
.mac("string")
.comment("string")
.hostname("string")
.build());
static_lease_resource = freebox.dhcp.StaticLease("staticLeaseResource",
ip="string",
mac="string",
comment="string",
hostname="string")
const staticLeaseResource = new freebox.dhcp.StaticLease("staticLeaseResource", {
ip: "string",
mac: "string",
comment: "string",
hostname: "string",
});
type: freebox:dhcp:StaticLease
properties:
comment: string
hostname: string
ip: string
mac: string
StaticLease 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 StaticLease resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the StaticLease 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.
Package Details
- Repository
- freebox
- License
Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien