splight.Inverter
Explore with Pulumi AI
Example Usage
Create Inverter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Inverter(name: string, args: InverterArgs, opts?: CustomResourceOptions);
@overload
def Inverter(resource_name: str,
args: InverterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Inverter(resource_name: str,
opts: Optional[ResourceOptions] = None,
energy_measurement_type: Optional[InverterEnergyMeasurementTypeArgs] = None,
make: Optional[InverterMakeArgs] = None,
max_active_power: Optional[InverterMaxActivePowerArgs] = None,
model: Optional[InverterModelArgs] = None,
serial_number: Optional[InverterSerialNumberArgs] = None,
description: Optional[str] = None,
geometry: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[InverterTagArgs]] = None,
timezone: Optional[str] = None)
func NewInverter(ctx *Context, name string, args InverterArgs, opts ...ResourceOption) (*Inverter, error)
public Inverter(string name, InverterArgs args, CustomResourceOptions? opts = null)
public Inverter(String name, InverterArgs args)
public Inverter(String name, InverterArgs args, CustomResourceOptions options)
type: splight:Inverter
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 InverterArgs
- 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 InverterArgs
- 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 InverterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InverterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InverterArgs
- 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 inverterResource = new Splight.Inverter("inverterResource", new()
{
EnergyMeasurementType = new Splight.Inputs.InverterEnergyMeasurementTypeArgs
{
Value = "string",
Asset = "string",
Id = "string",
Name = "string",
Type = "string",
Unit = "string",
},
Make = new Splight.Inputs.InverterMakeArgs
{
Value = "string",
Asset = "string",
Id = "string",
Name = "string",
Type = "string",
Unit = "string",
},
MaxActivePower = new Splight.Inputs.InverterMaxActivePowerArgs
{
Value = "string",
Asset = "string",
Id = "string",
Name = "string",
Type = "string",
Unit = "string",
},
Model = new Splight.Inputs.InverterModelArgs
{
Value = "string",
Asset = "string",
Id = "string",
Name = "string",
Type = "string",
Unit = "string",
},
SerialNumber = new Splight.Inputs.InverterSerialNumberArgs
{
Value = "string",
Asset = "string",
Id = "string",
Name = "string",
Type = "string",
Unit = "string",
},
Description = "string",
Geometry = "string",
Name = "string",
Tags = new[]
{
new Splight.Inputs.InverterTagArgs
{
Id = "string",
Name = "string",
},
},
Timezone = "string",
});
example, err := splight.NewInverter(ctx, "inverterResource", &splight.InverterArgs{
EnergyMeasurementType: &splight.InverterEnergyMeasurementTypeArgs{
Value: pulumi.String("string"),
Asset: pulumi.String("string"),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Unit: pulumi.String("string"),
},
Make: &splight.InverterMakeArgs{
Value: pulumi.String("string"),
Asset: pulumi.String("string"),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Unit: pulumi.String("string"),
},
MaxActivePower: &splight.InverterMaxActivePowerArgs{
Value: pulumi.String("string"),
Asset: pulumi.String("string"),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Unit: pulumi.String("string"),
},
Model: &splight.InverterModelArgs{
Value: pulumi.String("string"),
Asset: pulumi.String("string"),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Unit: pulumi.String("string"),
},
SerialNumber: &splight.InverterSerialNumberArgs{
Value: pulumi.String("string"),
Asset: pulumi.String("string"),
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Unit: pulumi.String("string"),
},
Description: pulumi.String("string"),
Geometry: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: splight.InverterTagArray{
&splight.InverterTagArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Timezone: pulumi.String("string"),
})
var inverterResource = new Inverter("inverterResource", InverterArgs.builder()
.energyMeasurementType(InverterEnergyMeasurementTypeArgs.builder()
.value("string")
.asset("string")
.id("string")
.name("string")
.type("string")
.unit("string")
.build())
.make(InverterMakeArgs.builder()
.value("string")
.asset("string")
.id("string")
.name("string")
.type("string")
.unit("string")
.build())
.maxActivePower(InverterMaxActivePowerArgs.builder()
.value("string")
.asset("string")
.id("string")
.name("string")
.type("string")
.unit("string")
.build())
.model(InverterModelArgs.builder()
.value("string")
.asset("string")
.id("string")
.name("string")
.type("string")
.unit("string")
.build())
.serialNumber(InverterSerialNumberArgs.builder()
.value("string")
.asset("string")
.id("string")
.name("string")
.type("string")
.unit("string")
.build())
.description("string")
.geometry("string")
.name("string")
.tags(InverterTagArgs.builder()
.id("string")
.name("string")
.build())
.timezone("string")
.build());
inverter_resource = splight.Inverter("inverterResource",
energy_measurement_type={
"value": "string",
"asset": "string",
"id": "string",
"name": "string",
"type": "string",
"unit": "string",
},
make={
"value": "string",
"asset": "string",
"id": "string",
"name": "string",
"type": "string",
"unit": "string",
},
max_active_power={
"value": "string",
"asset": "string",
"id": "string",
"name": "string",
"type": "string",
"unit": "string",
},
model={
"value": "string",
"asset": "string",
"id": "string",
"name": "string",
"type": "string",
"unit": "string",
},
serial_number={
"value": "string",
"asset": "string",
"id": "string",
"name": "string",
"type": "string",
"unit": "string",
},
description="string",
geometry="string",
name="string",
tags=[{
"id": "string",
"name": "string",
}],
timezone="string")
const inverterResource = new splight.Inverter("inverterResource", {
energyMeasurementType: {
value: "string",
asset: "string",
id: "string",
name: "string",
type: "string",
unit: "string",
},
make: {
value: "string",
asset: "string",
id: "string",
name: "string",
type: "string",
unit: "string",
},
maxActivePower: {
value: "string",
asset: "string",
id: "string",
name: "string",
type: "string",
unit: "string",
},
model: {
value: "string",
asset: "string",
id: "string",
name: "string",
type: "string",
unit: "string",
},
serialNumber: {
value: "string",
asset: "string",
id: "string",
name: "string",
type: "string",
unit: "string",
},
description: "string",
geometry: "string",
name: "string",
tags: [{
id: "string",
name: "string",
}],
timezone: "string",
});
type: splight:Inverter
properties:
description: string
energyMeasurementType:
asset: string
id: string
name: string
type: string
unit: string
value: string
geometry: string
make:
asset: string
id: string
name: string
type: string
unit: string
value: string
maxActivePower:
asset: string
id: string
name: string
type: string
unit: string
value: string
model:
asset: string
id: string
name: string
type: string
unit: string
value: string
name: string
serialNumber:
asset: string
id: string
name: string
type: string
unit: string
value: string
tags:
- id: string
name: string
timezone: string
Inverter 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 Inverter resource accepts the following input properties:
- Energy
Measurement Splight.Type Splight. Inputs. Inverter Energy Measurement Type - attribute of the resource
- Make
Splight.
Splight. Inputs. Inverter Make - attribute of the resource
- Max
Active Splight.Power Splight. Inputs. Inverter Max Active Power - attribute of the resource
- Model
Splight.
Splight. Inputs. Inverter Model - attribute of the resource
- Serial
Number Splight.Splight. Inputs. Inverter Serial Number - attribute of the resource
- Description string
- description of the resource
- Geometry string
- geo position and shape of the resource
- Name string
- name of the resource
- List<Splight.
Splight. Inputs. Inverter Tag> - tags of the resource
- Timezone string
- timezone that overrides location-based timezone of the resource
- Energy
Measurement InverterType Energy Measurement Type Args - attribute of the resource
- Make
Inverter
Make Args - attribute of the resource
- Max
Active InverterPower Max Active Power Args - attribute of the resource
- Model
Inverter
Model Args - attribute of the resource
- Serial
Number InverterSerial Number Args - attribute of the resource
- Description string
- description of the resource
- Geometry string
- geo position and shape of the resource
- Name string
- name of the resource
- []Inverter
Tag Args - tags of the resource
- Timezone string
- timezone that overrides location-based timezone of the resource
- energy
Measurement InverterType Energy Measurement Type - attribute of the resource
- make
Inverter
Make - attribute of the resource
- max
Active InverterPower Max Active Power - attribute of the resource
- model
Inverter
Model - attribute of the resource
- serial
Number InverterSerial Number - attribute of the resource
- description String
- description of the resource
- geometry String
- geo position and shape of the resource
- name String
- name of the resource
- List<Inverter
Tag> - tags of the resource
- timezone String
- timezone that overrides location-based timezone of the resource
- energy
Measurement InverterType Energy Measurement Type - attribute of the resource
- make
Inverter
Make - attribute of the resource
- max
Active InverterPower Max Active Power - attribute of the resource
- model
Inverter
Model - attribute of the resource
- serial
Number InverterSerial Number - attribute of the resource
- description string
- description of the resource
- geometry string
- geo position and shape of the resource
- name string
- name of the resource
- Inverter
Tag[] - tags of the resource
- timezone string
- timezone that overrides location-based timezone of the resource
- energy_
measurement_ Invertertype Energy Measurement Type Args - attribute of the resource
- make
Inverter
Make Args - attribute of the resource
- max_
active_ Inverterpower Max Active Power Args - attribute of the resource
- model
Inverter
Model Args - attribute of the resource
- serial_
number InverterSerial Number Args - attribute of the resource
- description str
- description of the resource
- geometry str
- geo position and shape of the resource
- name str
- name of the resource
- Sequence[Inverter
Tag Args] - tags of the resource
- timezone str
- timezone that overrides location-based timezone of the resource
- energy
Measurement Property MapType - attribute of the resource
- make Property Map
- attribute of the resource
- max
Active Property MapPower - attribute of the resource
- model Property Map
- attribute of the resource
- serial
Number Property Map - attribute of the resource
- description String
- description of the resource
- geometry String
- geo position and shape of the resource
- name String
- name of the resource
- List<Property Map>
- tags of the resource
- timezone String
- timezone that overrides location-based timezone of the resource
Outputs
All input properties are implicitly available as output properties. Additionally, the Inverter resource produces the following output properties:
- Accumulated
Energies List<Splight.Splight. Outputs. Inverter Accumulated Energy> - attribute of the resource
- Active
Powers List<Splight.Splight. Outputs. Inverter Active Power> - attribute of the resource
- Daily
Energies List<Splight.Splight. Outputs. Inverter Daily Energy> - attribute of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Kinds
List<Splight.
Splight. Outputs. Inverter Kind> - kind of the resource
- Raw
Daily List<Splight.Energies Splight. Outputs. Inverter Raw Daily Energy> - attribute of the resource
- Temperatures
List<Splight.
Splight. Outputs. Inverter Temperature> - attribute of the resource
- Accumulated
Energies []InverterAccumulated Energy - attribute of the resource
- Active
Powers []InverterActive Power - attribute of the resource
- Daily
Energies []InverterDaily Energy - attribute of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Kinds
[]Inverter
Kind - kind of the resource
- Raw
Daily []InverterEnergies Raw Daily Energy - attribute of the resource
- Temperatures
[]Inverter
Temperature - attribute of the resource
- accumulated
Energies List<InverterAccumulated Energy> - attribute of the resource
- active
Powers List<InverterActive Power> - attribute of the resource
- daily
Energies List<InverterDaily Energy> - attribute of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- kinds
List<Inverter
Kind> - kind of the resource
- raw
Daily List<InverterEnergies Raw Daily Energy> - attribute of the resource
- temperatures
List<Inverter
Temperature> - attribute of the resource
- accumulated
Energies InverterAccumulated Energy[] - attribute of the resource
- active
Powers InverterActive Power[] - attribute of the resource
- daily
Energies InverterDaily Energy[] - attribute of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- kinds
Inverter
Kind[] - kind of the resource
- raw
Daily InverterEnergies Raw Daily Energy[] - attribute of the resource
- temperatures
Inverter
Temperature[] - attribute of the resource
- accumulated_
energies Sequence[InverterAccumulated Energy] - attribute of the resource
- active_
powers Sequence[InverterActive Power] - attribute of the resource
- daily_
energies Sequence[InverterDaily Energy] - attribute of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- kinds
Sequence[Inverter
Kind] - kind of the resource
- raw_
daily_ Sequence[Inverterenergies Raw Daily Energy] - attribute of the resource
- temperatures
Sequence[Inverter
Temperature] - attribute of the resource
- accumulated
Energies List<Property Map> - attribute of the resource
- active
Powers List<Property Map> - attribute of the resource
- daily
Energies List<Property Map> - attribute of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- kinds List<Property Map>
- kind of the resource
- raw
Daily List<Property Map>Energies - attribute of the resource
- temperatures List<Property Map>
- attribute of the resource
Look up Existing Inverter Resource
Get an existing Inverter 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?: InverterState, opts?: CustomResourceOptions): Inverter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accumulated_energies: Optional[Sequence[InverterAccumulatedEnergyArgs]] = None,
active_powers: Optional[Sequence[InverterActivePowerArgs]] = None,
daily_energies: Optional[Sequence[InverterDailyEnergyArgs]] = None,
description: Optional[str] = None,
energy_measurement_type: Optional[InverterEnergyMeasurementTypeArgs] = None,
geometry: Optional[str] = None,
kinds: Optional[Sequence[InverterKindArgs]] = None,
make: Optional[InverterMakeArgs] = None,
max_active_power: Optional[InverterMaxActivePowerArgs] = None,
model: Optional[InverterModelArgs] = None,
name: Optional[str] = None,
raw_daily_energies: Optional[Sequence[InverterRawDailyEnergyArgs]] = None,
serial_number: Optional[InverterSerialNumberArgs] = None,
tags: Optional[Sequence[InverterTagArgs]] = None,
temperatures: Optional[Sequence[InverterTemperatureArgs]] = None,
timezone: Optional[str] = None) -> Inverter
func GetInverter(ctx *Context, name string, id IDInput, state *InverterState, opts ...ResourceOption) (*Inverter, error)
public static Inverter Get(string name, Input<string> id, InverterState? state, CustomResourceOptions? opts = null)
public static Inverter get(String name, Output<String> id, InverterState 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.
- Accumulated
Energies List<Splight.Splight. Inputs. Inverter Accumulated Energy> - attribute of the resource
- Active
Powers List<Splight.Splight. Inputs. Inverter Active Power> - attribute of the resource
- Daily
Energies List<Splight.Splight. Inputs. Inverter Daily Energy> - attribute of the resource
- Description string
- description of the resource
- Energy
Measurement Splight.Type Splight. Inputs. Inverter Energy Measurement Type - attribute of the resource
- Geometry string
- geo position and shape of the resource
- Kinds
List<Splight.
Splight. Inputs. Inverter Kind> - kind of the resource
- Make
Splight.
Splight. Inputs. Inverter Make - attribute of the resource
- Max
Active Splight.Power Splight. Inputs. Inverter Max Active Power - attribute of the resource
- Model
Splight.
Splight. Inputs. Inverter Model - attribute of the resource
- Name string
- name of the resource
- Raw
Daily List<Splight.Energies Splight. Inputs. Inverter Raw Daily Energy> - attribute of the resource
- Serial
Number Splight.Splight. Inputs. Inverter Serial Number - attribute of the resource
- List<Splight.
Splight. Inputs. Inverter Tag> - tags of the resource
- Temperatures
List<Splight.
Splight. Inputs. Inverter Temperature> - attribute of the resource
- Timezone string
- timezone that overrides location-based timezone of the resource
- Accumulated
Energies []InverterAccumulated Energy Args - attribute of the resource
- Active
Powers []InverterActive Power Args - attribute of the resource
- Daily
Energies []InverterDaily Energy Args - attribute of the resource
- Description string
- description of the resource
- Energy
Measurement InverterType Energy Measurement Type Args - attribute of the resource
- Geometry string
- geo position and shape of the resource
- Kinds
[]Inverter
Kind Args - kind of the resource
- Make
Inverter
Make Args - attribute of the resource
- Max
Active InverterPower Max Active Power Args - attribute of the resource
- Model
Inverter
Model Args - attribute of the resource
- Name string
- name of the resource
- Raw
Daily []InverterEnergies Raw Daily Energy Args - attribute of the resource
- Serial
Number InverterSerial Number Args - attribute of the resource
- []Inverter
Tag Args - tags of the resource
- Temperatures
[]Inverter
Temperature Args - attribute of the resource
- Timezone string
- timezone that overrides location-based timezone of the resource
- accumulated
Energies List<InverterAccumulated Energy> - attribute of the resource
- active
Powers List<InverterActive Power> - attribute of the resource
- daily
Energies List<InverterDaily Energy> - attribute of the resource
- description String
- description of the resource
- energy
Measurement InverterType Energy Measurement Type - attribute of the resource
- geometry String
- geo position and shape of the resource
- kinds
List<Inverter
Kind> - kind of the resource
- make
Inverter
Make - attribute of the resource
- max
Active InverterPower Max Active Power - attribute of the resource
- model
Inverter
Model - attribute of the resource
- name String
- name of the resource
- raw
Daily List<InverterEnergies Raw Daily Energy> - attribute of the resource
- serial
Number InverterSerial Number - attribute of the resource
- List<Inverter
Tag> - tags of the resource
- temperatures
List<Inverter
Temperature> - attribute of the resource
- timezone String
- timezone that overrides location-based timezone of the resource
- accumulated
Energies InverterAccumulated Energy[] - attribute of the resource
- active
Powers InverterActive Power[] - attribute of the resource
- daily
Energies InverterDaily Energy[] - attribute of the resource
- description string
- description of the resource
- energy
Measurement InverterType Energy Measurement Type - attribute of the resource
- geometry string
- geo position and shape of the resource
- kinds
Inverter
Kind[] - kind of the resource
- make
Inverter
Make - attribute of the resource
- max
Active InverterPower Max Active Power - attribute of the resource
- model
Inverter
Model - attribute of the resource
- name string
- name of the resource
- raw
Daily InverterEnergies Raw Daily Energy[] - attribute of the resource
- serial
Number InverterSerial Number - attribute of the resource
- Inverter
Tag[] - tags of the resource
- temperatures
Inverter
Temperature[] - attribute of the resource
- timezone string
- timezone that overrides location-based timezone of the resource
- accumulated_
energies Sequence[InverterAccumulated Energy Args] - attribute of the resource
- active_
powers Sequence[InverterActive Power Args] - attribute of the resource
- daily_
energies Sequence[InverterDaily Energy Args] - attribute of the resource
- description str
- description of the resource
- energy_
measurement_ Invertertype Energy Measurement Type Args - attribute of the resource
- geometry str
- geo position and shape of the resource
- kinds
Sequence[Inverter
Kind Args] - kind of the resource
- make
Inverter
Make Args - attribute of the resource
- max_
active_ Inverterpower Max Active Power Args - attribute of the resource
- model
Inverter
Model Args - attribute of the resource
- name str
- name of the resource
- raw_
daily_ Sequence[Inverterenergies Raw Daily Energy Args] - attribute of the resource
- serial_
number InverterSerial Number Args - attribute of the resource
- Sequence[Inverter
Tag Args] - tags of the resource
- temperatures
Sequence[Inverter
Temperature Args] - attribute of the resource
- timezone str
- timezone that overrides location-based timezone of the resource
- accumulated
Energies List<Property Map> - attribute of the resource
- active
Powers List<Property Map> - attribute of the resource
- daily
Energies List<Property Map> - attribute of the resource
- description String
- description of the resource
- energy
Measurement Property MapType - attribute of the resource
- geometry String
- geo position and shape of the resource
- kinds List<Property Map>
- kind of the resource
- make Property Map
- attribute of the resource
- max
Active Property MapPower - attribute of the resource
- model Property Map
- attribute of the resource
- name String
- name of the resource
- raw
Daily List<Property Map>Energies - attribute of the resource
- serial
Number Property Map - attribute of the resource
- List<Property Map>
- tags of the resource
- temperatures List<Property Map>
- attribute of the resource
- timezone String
- timezone that overrides location-based timezone of the resource
Supporting Types
InverterAccumulatedEnergy, InverterAccumulatedEnergyArgs
InverterActivePower, InverterActivePowerArgs
InverterDailyEnergy, InverterDailyEnergyArgs
InverterEnergyMeasurementType, InverterEnergyMeasurementTypeArgs
InverterKind, InverterKindArgs
InverterMake, InverterMakeArgs
InverterMaxActivePower, InverterMaxActivePowerArgs
InverterModel, InverterModelArgs
InverterRawDailyEnergy, InverterRawDailyEnergyArgs
InverterSerialNumber, InverterSerialNumberArgs
InverterTag, InverterTagArgs
InverterTemperature, InverterTemperatureArgs
Import
$ pulumi import splight:index/inverter:Inverter [options] splight_inverter.<name> <inverter_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- splight splightplatform/pulumi-splight
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
splight
Terraform Provider.