splight.Generator
Explore with Pulumi AI
Example Usage
Create Generator Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Generator(name: string, args?: GeneratorArgs, opts?: CustomResourceOptions);@overload
def Generator(resource_name: str,
              args: Optional[GeneratorArgs] = None,
              opts: Optional[ResourceOptions] = None)
@overload
def Generator(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              description: Optional[str] = None,
              geometry: Optional[str] = None,
              name: Optional[str] = None,
              tags: Optional[Sequence[GeneratorTagArgs]] = None,
              timezone: Optional[str] = None)func NewGenerator(ctx *Context, name string, args *GeneratorArgs, opts ...ResourceOption) (*Generator, error)public Generator(string name, GeneratorArgs? args = null, CustomResourceOptions? opts = null)
public Generator(String name, GeneratorArgs args)
public Generator(String name, GeneratorArgs args, CustomResourceOptions options)
type: splight:Generator
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 GeneratorArgs
- 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 GeneratorArgs
- 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 GeneratorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GeneratorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GeneratorArgs
- 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 generatorResource = new Splight.Generator("generatorResource", new()
{
    Description = "string",
    Geometry = "string",
    Name = "string",
    Tags = new[]
    {
        new Splight.Inputs.GeneratorTagArgs
        {
            Id = "string",
            Name = "string",
        },
    },
    Timezone = "string",
});
example, err := splight.NewGenerator(ctx, "generatorResource", &splight.GeneratorArgs{
	Description: pulumi.String("string"),
	Geometry:    pulumi.String("string"),
	Name:        pulumi.String("string"),
	Tags: splight.GeneratorTagArray{
		&splight.GeneratorTagArgs{
			Id:   pulumi.String("string"),
			Name: pulumi.String("string"),
		},
	},
	Timezone: pulumi.String("string"),
})
var generatorResource = new Generator("generatorResource", GeneratorArgs.builder()
    .description("string")
    .geometry("string")
    .name("string")
    .tags(GeneratorTagArgs.builder()
        .id("string")
        .name("string")
        .build())
    .timezone("string")
    .build());
generator_resource = splight.Generator("generatorResource",
    description="string",
    geometry="string",
    name="string",
    tags=[{
        "id": "string",
        "name": "string",
    }],
    timezone="string")
const generatorResource = new splight.Generator("generatorResource", {
    description: "string",
    geometry: "string",
    name: "string",
    tags: [{
        id: "string",
        name: "string",
    }],
    timezone: "string",
});
type: splight:Generator
properties:
    description: string
    geometry: string
    name: string
    tags:
        - id: string
          name: string
    timezone: string
Generator 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 Generator resource accepts the following input properties:
- 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. Generator Tag> 
- tags of the resource
- Timezone string
- timezone that overrides location-based timezone of the resource
- Description string
- description of the resource
- Geometry string
- geo position and shape of the resource
- Name string
- name of the resource
- 
[]GeneratorTag Args 
- tags of the resource
- Timezone string
- timezone that overrides location-based timezone 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<GeneratorTag> 
- tags of the resource
- timezone String
- timezone that overrides location-based timezone of the resource
- description string
- description of the resource
- geometry string
- geo position and shape of the resource
- name string
- name of the resource
- 
GeneratorTag[] 
- tags of the resource
- timezone string
- timezone that overrides location-based timezone 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[GeneratorTag Args] 
- tags of the resource
- timezone str
- timezone that overrides location-based timezone 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 Generator resource produces the following output properties:
- ActivePowers List<Splight.Splight. Outputs. Generator Active Power> 
- attribute of the resource
- 
List<Splight.Splight. Outputs. Generator Daily Emission Avoided> 
- attribute of the resource
- DailyEnergies List<Splight.Splight. Outputs. Generator Daily Energy> 
- attribute of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Kinds
List<Splight.Splight. Outputs. Generator Kind> 
- kind of the resource
- MonthlyEnergies List<Splight.Splight. Outputs. Generator Monthly Energy> 
- attribute of the resource
- ReactivePowers List<Splight.Splight. Outputs. Generator Reactive Power> 
- attribute of the resource
- SwitchStatuses List<Splight.Splight. Outputs. Generator Switch Status> 
- attribute of the resource
- ActivePowers []GeneratorActive Power 
- attribute of the resource
- 
[]GeneratorDaily Emission Avoided 
- attribute of the resource
- DailyEnergies []GeneratorDaily Energy 
- attribute of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Kinds
[]GeneratorKind 
- kind of the resource
- MonthlyEnergies []GeneratorMonthly Energy 
- attribute of the resource
- ReactivePowers []GeneratorReactive Power 
- attribute of the resource
- SwitchStatuses []GeneratorSwitch Status 
- attribute of the resource
- activePowers List<GeneratorActive Power> 
- attribute of the resource
- 
List<GeneratorDaily Emission Avoided> 
- attribute of the resource
- dailyEnergies List<GeneratorDaily Energy> 
- attribute of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- kinds
List<GeneratorKind> 
- kind of the resource
- monthlyEnergies List<GeneratorMonthly Energy> 
- attribute of the resource
- reactivePowers List<GeneratorReactive Power> 
- attribute of the resource
- switchStatuses List<GeneratorSwitch Status> 
- attribute of the resource
- activePowers GeneratorActive Power[] 
- attribute of the resource
- 
GeneratorDaily Emission Avoided[] 
- attribute of the resource
- dailyEnergies GeneratorDaily Energy[] 
- attribute of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- kinds
GeneratorKind[] 
- kind of the resource
- monthlyEnergies GeneratorMonthly Energy[] 
- attribute of the resource
- reactivePowers GeneratorReactive Power[] 
- attribute of the resource
- switchStatuses GeneratorSwitch Status[] 
- attribute of the resource
- active_powers Sequence[GeneratorActive Power] 
- attribute of the resource
- daily_emission_ Sequence[Generatoravoideds Daily Emission Avoided] 
- attribute of the resource
- daily_energies Sequence[GeneratorDaily Energy] 
- attribute of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- kinds
Sequence[GeneratorKind] 
- kind of the resource
- monthly_energies Sequence[GeneratorMonthly Energy] 
- attribute of the resource
- reactive_powers Sequence[GeneratorReactive Power] 
- attribute of the resource
- switch_statuses Sequence[GeneratorSwitch Status] 
- attribute of the resource
- activePowers List<Property Map>
- attribute of the resource
- List<Property Map>
- attribute of the resource
- dailyEnergies 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
- monthlyEnergies List<Property Map>
- attribute of the resource
- reactivePowers List<Property Map>
- attribute of the resource
- switchStatuses List<Property Map>
- attribute of the resource
Look up Existing Generator Resource
Get an existing Generator 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?: GeneratorState, opts?: CustomResourceOptions): Generator@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        active_powers: Optional[Sequence[GeneratorActivePowerArgs]] = None,
        daily_emission_avoideds: Optional[Sequence[GeneratorDailyEmissionAvoidedArgs]] = None,
        daily_energies: Optional[Sequence[GeneratorDailyEnergyArgs]] = None,
        description: Optional[str] = None,
        geometry: Optional[str] = None,
        kinds: Optional[Sequence[GeneratorKindArgs]] = None,
        monthly_energies: Optional[Sequence[GeneratorMonthlyEnergyArgs]] = None,
        name: Optional[str] = None,
        reactive_powers: Optional[Sequence[GeneratorReactivePowerArgs]] = None,
        switch_statuses: Optional[Sequence[GeneratorSwitchStatusArgs]] = None,
        tags: Optional[Sequence[GeneratorTagArgs]] = None,
        timezone: Optional[str] = None) -> Generatorfunc GetGenerator(ctx *Context, name string, id IDInput, state *GeneratorState, opts ...ResourceOption) (*Generator, error)public static Generator Get(string name, Input<string> id, GeneratorState? state, CustomResourceOptions? opts = null)public static Generator get(String name, Output<String> id, GeneratorState state, CustomResourceOptions options)resources:  _:    type: splight:Generator    get:      id: ${id}- 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.
- ActivePowers List<Splight.Splight. Inputs. Generator Active Power> 
- attribute of the resource
- 
List<Splight.Splight. Inputs. Generator Daily Emission Avoided> 
- attribute of the resource
- DailyEnergies List<Splight.Splight. Inputs. Generator Daily Energy> 
- attribute of the resource
- Description string
- description of the resource
- Geometry string
- geo position and shape of the resource
- Kinds
List<Splight.Splight. Inputs. Generator Kind> 
- kind of the resource
- MonthlyEnergies List<Splight.Splight. Inputs. Generator Monthly Energy> 
- attribute of the resource
- Name string
- name of the resource
- ReactivePowers List<Splight.Splight. Inputs. Generator Reactive Power> 
- attribute of the resource
- SwitchStatuses List<Splight.Splight. Inputs. Generator Switch Status> 
- attribute of the resource
- 
List<Splight.Splight. Inputs. Generator Tag> 
- tags of the resource
- Timezone string
- timezone that overrides location-based timezone of the resource
- ActivePowers []GeneratorActive Power Args 
- attribute of the resource
- 
[]GeneratorDaily Emission Avoided Args 
- attribute of the resource
- DailyEnergies []GeneratorDaily Energy Args 
- attribute of the resource
- Description string
- description of the resource
- Geometry string
- geo position and shape of the resource
- Kinds
[]GeneratorKind Args 
- kind of the resource
- MonthlyEnergies []GeneratorMonthly Energy Args 
- attribute of the resource
- Name string
- name of the resource
- ReactivePowers []GeneratorReactive Power Args 
- attribute of the resource
- SwitchStatuses []GeneratorSwitch Status Args 
- attribute of the resource
- 
[]GeneratorTag Args 
- tags of the resource
- Timezone string
- timezone that overrides location-based timezone of the resource
- activePowers List<GeneratorActive Power> 
- attribute of the resource
- 
List<GeneratorDaily Emission Avoided> 
- attribute of the resource
- dailyEnergies List<GeneratorDaily Energy> 
- attribute of the resource
- description String
- description of the resource
- geometry String
- geo position and shape of the resource
- kinds
List<GeneratorKind> 
- kind of the resource
- monthlyEnergies List<GeneratorMonthly Energy> 
- attribute of the resource
- name String
- name of the resource
- reactivePowers List<GeneratorReactive Power> 
- attribute of the resource
- switchStatuses List<GeneratorSwitch Status> 
- attribute of the resource
- 
List<GeneratorTag> 
- tags of the resource
- timezone String
- timezone that overrides location-based timezone of the resource
- activePowers GeneratorActive Power[] 
- attribute of the resource
- 
GeneratorDaily Emission Avoided[] 
- attribute of the resource
- dailyEnergies GeneratorDaily Energy[] 
- attribute of the resource
- description string
- description of the resource
- geometry string
- geo position and shape of the resource
- kinds
GeneratorKind[] 
- kind of the resource
- monthlyEnergies GeneratorMonthly Energy[] 
- attribute of the resource
- name string
- name of the resource
- reactivePowers GeneratorReactive Power[] 
- attribute of the resource
- switchStatuses GeneratorSwitch Status[] 
- attribute of the resource
- 
GeneratorTag[] 
- tags of the resource
- timezone string
- timezone that overrides location-based timezone of the resource
- active_powers Sequence[GeneratorActive Power Args] 
- attribute of the resource
- daily_emission_ Sequence[Generatoravoideds Daily Emission Avoided Args] 
- attribute of the resource
- daily_energies Sequence[GeneratorDaily Energy Args] 
- attribute of the resource
- description str
- description of the resource
- geometry str
- geo position and shape of the resource
- kinds
Sequence[GeneratorKind Args] 
- kind of the resource
- monthly_energies Sequence[GeneratorMonthly Energy Args] 
- attribute of the resource
- name str
- name of the resource
- reactive_powers Sequence[GeneratorReactive Power Args] 
- attribute of the resource
- switch_statuses Sequence[GeneratorSwitch Status Args] 
- attribute of the resource
- 
Sequence[GeneratorTag Args] 
- tags of the resource
- timezone str
- timezone that overrides location-based timezone of the resource
- activePowers List<Property Map>
- attribute of the resource
- List<Property Map>
- attribute of the resource
- dailyEnergies List<Property Map>
- attribute of the resource
- description String
- description of the resource
- geometry String
- geo position and shape of the resource
- kinds List<Property Map>
- kind of the resource
- monthlyEnergies List<Property Map>
- attribute of the resource
- name String
- name of the resource
- reactivePowers List<Property Map>
- attribute of the resource
- switchStatuses List<Property Map>
- attribute of the resource
- List<Property Map>
- tags of the resource
- timezone String
- timezone that overrides location-based timezone of the resource
Supporting Types
GeneratorActivePower, GeneratorActivePowerArgs      
GeneratorDailyEmissionAvoided, GeneratorDailyEmissionAvoidedArgs        
GeneratorDailyEnergy, GeneratorDailyEnergyArgs      
GeneratorKind, GeneratorKindArgs    
GeneratorMonthlyEnergy, GeneratorMonthlyEnergyArgs      
GeneratorReactivePower, GeneratorReactivePowerArgs      
GeneratorSwitchStatus, GeneratorSwitchStatusArgs      
GeneratorTag, GeneratorTagArgs    
Import
$ pulumi import splight:index/generator:Generator [options] splight_generator.<name> <generator_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 splightTerraform Provider.
