1. Packages
  2. Splight
  3. API Docs
  4. ComponentRoutine
splight v1.2.13 published on Friday, Feb 14, 2025 by splightplatform

splight.ComponentRoutine

Explore with Pulumi AI

Example Usage

Create ComponentRoutine Resource

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

Constructor syntax

new ComponentRoutine(name: string, args: ComponentRoutineArgs, opts?: CustomResourceOptions);
@overload
def ComponentRoutine(resource_name: str,
                     args: ComponentRoutineArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def ComponentRoutine(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     component_id: Optional[str] = None,
                     type: Optional[str] = None,
                     configs: Optional[Sequence[ComponentRoutineConfigArgs]] = None,
                     description: Optional[str] = None,
                     inputs: Optional[Sequence[ComponentRoutineInputArgs]] = None,
                     name: Optional[str] = None,
                     outputs: Optional[Sequence[ComponentRoutineOutputArgs]] = None)
func NewComponentRoutine(ctx *Context, name string, args ComponentRoutineArgs, opts ...ResourceOption) (*ComponentRoutine, error)
public ComponentRoutine(string name, ComponentRoutineArgs args, CustomResourceOptions? opts = null)
public ComponentRoutine(String name, ComponentRoutineArgs args)
public ComponentRoutine(String name, ComponentRoutineArgs args, CustomResourceOptions options)
type: splight:ComponentRoutine
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ComponentRoutineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ComponentRoutineArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ComponentRoutineArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ComponentRoutineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ComponentRoutineArgs
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 componentRoutineResource = new Splight.ComponentRoutine("componentRoutineResource", new()
{
    ComponentId = "string",
    Type = "string",
    Configs = new[]
    {
        new Splight.Inputs.ComponentRoutineConfigArgs
        {
            Name = "string",
            Type = "string",
            Description = "string",
            Multiple = false,
            Required = false,
            Sensitive = false,
            Value = "string",
        },
    },
    Description = "string",
    Inputs = new[]
    {
        new Splight.Inputs.ComponentRoutineInputArgs
        {
            Name = "string",
            ValueType = "string",
            Description = "string",
            Multiple = false,
            Required = false,
            Type = "string",
            Values = new[]
            {
                new Splight.Inputs.ComponentRoutineInputValueArgs
                {
                    Asset = "string",
                    Attribute = "string",
                },
            },
        },
    },
    Name = "string",
    Outputs = new[]
    {
        new Splight.Inputs.ComponentRoutineOutputArgs
        {
            Name = "string",
            ValueType = "string",
            Description = "string",
            Multiple = false,
            Required = false,
            Type = "string",
            Values = new[]
            {
                new Splight.Inputs.ComponentRoutineOutputValueArgs
                {
                    Asset = "string",
                    Attribute = "string",
                },
            },
        },
    },
});
Copy
example, err := splight.NewComponentRoutine(ctx, "componentRoutineResource", &splight.ComponentRoutineArgs{
	ComponentId: pulumi.String("string"),
	Type:        pulumi.String("string"),
	Configs: splight.ComponentRoutineConfigArray{
		&splight.ComponentRoutineConfigArgs{
			Name:        pulumi.String("string"),
			Type:        pulumi.String("string"),
			Description: pulumi.String("string"),
			Multiple:    pulumi.Bool(false),
			Required:    pulumi.Bool(false),
			Sensitive:   pulumi.Bool(false),
			Value:       pulumi.String("string"),
		},
	},
	Description: pulumi.String("string"),
	Inputs: splight.ComponentRoutineInputTypeArray{
		&splight.ComponentRoutineInputTypeArgs{
			Name:        pulumi.String("string"),
			ValueType:   pulumi.String("string"),
			Description: pulumi.String("string"),
			Multiple:    pulumi.Bool(false),
			Required:    pulumi.Bool(false),
			Type:        pulumi.String("string"),
			Values: splight.ComponentRoutineInputValueArray{
				&splight.ComponentRoutineInputValueArgs{
					Asset:     pulumi.String("string"),
					Attribute: pulumi.String("string"),
				},
			},
		},
	},
	Name: pulumi.String("string"),
	Outputs: splight.ComponentRoutineOutputTypeArray{
		&splight.ComponentRoutineOutputTypeArgs{
			Name:        pulumi.String("string"),
			ValueType:   pulumi.String("string"),
			Description: pulumi.String("string"),
			Multiple:    pulumi.Bool(false),
			Required:    pulumi.Bool(false),
			Type:        pulumi.String("string"),
			Values: splight.ComponentRoutineOutputValueArray{
				&splight.ComponentRoutineOutputValueArgs{
					Asset:     pulumi.String("string"),
					Attribute: pulumi.String("string"),
				},
			},
		},
	},
})
Copy
var componentRoutineResource = new ComponentRoutine("componentRoutineResource", ComponentRoutineArgs.builder()
    .componentId("string")
    .type("string")
    .configs(ComponentRoutineConfigArgs.builder()
        .name("string")
        .type("string")
        .description("string")
        .multiple(false)
        .required(false)
        .sensitive(false)
        .value("string")
        .build())
    .description("string")
    .inputs(ComponentRoutineInputArgs.builder()
        .name("string")
        .valueType("string")
        .description("string")
        .multiple(false)
        .required(false)
        .type("string")
        .values(ComponentRoutineInputValueArgs.builder()
            .asset("string")
            .attribute("string")
            .build())
        .build())
    .name("string")
    .outputs(ComponentRoutineOutputArgs.builder()
        .name("string")
        .valueType("string")
        .description("string")
        .multiple(false)
        .required(false)
        .type("string")
        .values(ComponentRoutineOutputValueArgs.builder()
            .asset("string")
            .attribute("string")
            .build())
        .build())
    .build());
Copy
component_routine_resource = splight.ComponentRoutine("componentRoutineResource",
    component_id="string",
    type="string",
    configs=[{
        "name": "string",
        "type": "string",
        "description": "string",
        "multiple": False,
        "required": False,
        "sensitive": False,
        "value": "string",
    }],
    description="string",
    inputs=[{
        "name": "string",
        "value_type": "string",
        "description": "string",
        "multiple": False,
        "required": False,
        "type": "string",
        "values": [{
            "asset": "string",
            "attribute": "string",
        }],
    }],
    name="string",
    outputs=[{
        "name": "string",
        "value_type": "string",
        "description": "string",
        "multiple": False,
        "required": False,
        "type": "string",
        "values": [{
            "asset": "string",
            "attribute": "string",
        }],
    }])
Copy
const componentRoutineResource = new splight.ComponentRoutine("componentRoutineResource", {
    componentId: "string",
    type: "string",
    configs: [{
        name: "string",
        type: "string",
        description: "string",
        multiple: false,
        required: false,
        sensitive: false,
        value: "string",
    }],
    description: "string",
    inputs: [{
        name: "string",
        valueType: "string",
        description: "string",
        multiple: false,
        required: false,
        type: "string",
        values: [{
            asset: "string",
            attribute: "string",
        }],
    }],
    name: "string",
    outputs: [{
        name: "string",
        valueType: "string",
        description: "string",
        multiple: false,
        required: false,
        type: "string",
        values: [{
            asset: "string",
            attribute: "string",
        }],
    }],
});
Copy
type: splight:ComponentRoutine
properties:
    componentId: string
    configs:
        - description: string
          multiple: false
          name: string
          required: false
          sensitive: false
          type: string
          value: string
    description: string
    inputs:
        - description: string
          multiple: false
          name: string
          required: false
          type: string
          valueType: string
          values:
            - asset: string
              attribute: string
    name: string
    outputs:
        - description: string
          multiple: false
          name: string
          required: false
          type: string
          valueType: string
          values:
            - asset: string
              attribute: string
    type: string
Copy

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

ComponentId This property is required. string
reference to component to be attached
Type This property is required. string
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)
Configs List<Splight.Splight.Inputs.ComponentRoutineConfig>
static config parameters of the routine
Description string
optional complementary information about the routine
Inputs List<Splight.Splight.Inputs.ComponentRoutineInput>
asset attribute where to ingest data. Only valid for IncomingRoutine
Name string
name of the routine
Outputs List<Splight.Splight.Inputs.ComponentRoutineOutput>
asset attribute where to ingest data. Only valid for IncomingRoutine
ComponentId This property is required. string
reference to component to be attached
Type This property is required. string
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)
Configs []ComponentRoutineConfigArgs
static config parameters of the routine
Description string
optional complementary information about the routine
Inputs []ComponentRoutineInputTypeArgs
asset attribute where to ingest data. Only valid for IncomingRoutine
Name string
name of the routine
Outputs []ComponentRoutineOutputTypeArgs
asset attribute where to ingest data. Only valid for IncomingRoutine
componentId This property is required. String
reference to component to be attached
type This property is required. String
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)
configs List<ComponentRoutineConfig>
static config parameters of the routine
description String
optional complementary information about the routine
inputs List<ComponentRoutineInput>
asset attribute where to ingest data. Only valid for IncomingRoutine
name String
name of the routine
outputs List<ComponentRoutineOutput>
asset attribute where to ingest data. Only valid for IncomingRoutine
componentId This property is required. string
reference to component to be attached
type This property is required. string
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)
configs ComponentRoutineConfig[]
static config parameters of the routine
description string
optional complementary information about the routine
inputs ComponentRoutineInput[]
asset attribute where to ingest data. Only valid for IncomingRoutine
name string
name of the routine
outputs ComponentRoutineOutput[]
asset attribute where to ingest data. Only valid for IncomingRoutine
component_id This property is required. str
reference to component to be attached
type This property is required. str
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)
configs Sequence[ComponentRoutineConfigArgs]
static config parameters of the routine
description str
optional complementary information about the routine
inputs Sequence[ComponentRoutineInputArgs]
asset attribute where to ingest data. Only valid for IncomingRoutine
name str
name of the routine
outputs Sequence[ComponentRoutineOutputArgs]
asset attribute where to ingest data. Only valid for IncomingRoutine
componentId This property is required. String
reference to component to be attached
type This property is required. String
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)
configs List<Property Map>
static config parameters of the routine
description String
optional complementary information about the routine
inputs List<Property Map>
asset attribute where to ingest data. Only valid for IncomingRoutine
name String
name of the routine
outputs List<Property Map>
asset attribute where to ingest data. Only valid for IncomingRoutine

Outputs

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

Look up Existing ComponentRoutine Resource

Get an existing ComponentRoutine 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?: ComponentRoutineState, opts?: CustomResourceOptions): ComponentRoutine
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        component_id: Optional[str] = None,
        configs: Optional[Sequence[ComponentRoutineConfigArgs]] = None,
        description: Optional[str] = None,
        inputs: Optional[Sequence[ComponentRoutineInputArgs]] = None,
        name: Optional[str] = None,
        outputs: Optional[Sequence[ComponentRoutineOutputArgs]] = None,
        type: Optional[str] = None) -> ComponentRoutine
func GetComponentRoutine(ctx *Context, name string, id IDInput, state *ComponentRoutineState, opts ...ResourceOption) (*ComponentRoutine, error)
public static ComponentRoutine Get(string name, Input<string> id, ComponentRoutineState? state, CustomResourceOptions? opts = null)
public static ComponentRoutine get(String name, Output<String> id, ComponentRoutineState state, CustomResourceOptions options)
resources:  _:    type: splight:ComponentRoutine    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
ComponentId string
reference to component to be attached
Configs List<Splight.Splight.Inputs.ComponentRoutineConfig>
static config parameters of the routine
Description string
optional complementary information about the routine
Inputs List<Splight.Splight.Inputs.ComponentRoutineInput>
asset attribute where to ingest data. Only valid for IncomingRoutine
Name string
name of the routine
Outputs List<Splight.Splight.Inputs.ComponentRoutineOutput>
asset attribute where to ingest data. Only valid for IncomingRoutine
Type string
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)
ComponentId string
reference to component to be attached
Configs []ComponentRoutineConfigArgs
static config parameters of the routine
Description string
optional complementary information about the routine
Inputs []ComponentRoutineInputTypeArgs
asset attribute where to ingest data. Only valid for IncomingRoutine
Name string
name of the routine
Outputs []ComponentRoutineOutputTypeArgs
asset attribute where to ingest data. Only valid for IncomingRoutine
Type string
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)
componentId String
reference to component to be attached
configs List<ComponentRoutineConfig>
static config parameters of the routine
description String
optional complementary information about the routine
inputs List<ComponentRoutineInput>
asset attribute where to ingest data. Only valid for IncomingRoutine
name String
name of the routine
outputs List<ComponentRoutineOutput>
asset attribute where to ingest data. Only valid for IncomingRoutine
type String
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)
componentId string
reference to component to be attached
configs ComponentRoutineConfig[]
static config parameters of the routine
description string
optional complementary information about the routine
inputs ComponentRoutineInput[]
asset attribute where to ingest data. Only valid for IncomingRoutine
name string
name of the routine
outputs ComponentRoutineOutput[]
asset attribute where to ingest data. Only valid for IncomingRoutine
type string
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)
component_id str
reference to component to be attached
configs Sequence[ComponentRoutineConfigArgs]
static config parameters of the routine
description str
optional complementary information about the routine
inputs Sequence[ComponentRoutineInputArgs]
asset attribute where to ingest data. Only valid for IncomingRoutine
name str
name of the routine
outputs Sequence[ComponentRoutineOutputArgs]
asset attribute where to ingest data. Only valid for IncomingRoutine
type str
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)
componentId String
reference to component to be attached
configs List<Property Map>
static config parameters of the routine
description String
optional complementary information about the routine
inputs List<Property Map>
asset attribute where to ingest data. Only valid for IncomingRoutine
name String
name of the routine
outputs List<Property Map>
asset attribute where to ingest data. Only valid for IncomingRoutine
type String
[IncomingRoutine|OutgoingRoutine] direction of the data flow (from device to system or from system to device)

Supporting Types

ComponentRoutineConfig
, ComponentRoutineConfigArgs

Name This property is required. string
Type This property is required. string
Description string
Multiple bool
Required bool
Sensitive bool
Value string
Name This property is required. string
Type This property is required. string
Description string
Multiple bool
Required bool
Sensitive bool
Value string
name This property is required. String
type This property is required. String
description String
multiple Boolean
required Boolean
sensitive Boolean
value String
name This property is required. string
type This property is required. string
description string
multiple boolean
required boolean
sensitive boolean
value string
name This property is required. str
type This property is required. str
description str
multiple bool
required bool
sensitive bool
value str
name This property is required. String
type This property is required. String
description String
multiple Boolean
required Boolean
sensitive Boolean
value String

ComponentRoutineInput
, ComponentRoutineInputArgs

Name This property is required. string
ValueType This property is required. string
Description string
Multiple bool
Required bool
Type string
Values List<Splight.Splight.Inputs.ComponentRoutineInputValue>
Name This property is required. string
ValueType This property is required. string
Description string
Multiple bool
Required bool
Type string
Values []ComponentRoutineInputValue
name This property is required. String
valueType This property is required. String
description String
multiple Boolean
required Boolean
type String
values List<ComponentRoutineInputValue>
name This property is required. string
valueType This property is required. string
description string
multiple boolean
required boolean
type string
values ComponentRoutineInputValue[]
name This property is required. str
value_type This property is required. str
description str
multiple bool
required bool
type str
values Sequence[ComponentRoutineInputValue]
name This property is required. String
valueType This property is required. String
description String
multiple Boolean
required Boolean
type String
values List<Property Map>

ComponentRoutineInputValue
, ComponentRoutineInputValueArgs

Asset This property is required. string
Attribute This property is required. string
Asset This property is required. string
Attribute This property is required. string
asset This property is required. String
attribute This property is required. String
asset This property is required. string
attribute This property is required. string
asset This property is required. str
attribute This property is required. str
asset This property is required. String
attribute This property is required. String

ComponentRoutineOutput
, ComponentRoutineOutputArgs

Name This property is required. string
ValueType This property is required. string
Description string
Multiple bool
Required bool
Type string
Values List<Splight.Splight.Inputs.ComponentRoutineOutputValue>
Name This property is required. string
ValueType This property is required. string
Description string
Multiple bool
Required bool
Type string
Values []ComponentRoutineOutputValue
name This property is required. String
valueType This property is required. String
description String
multiple Boolean
required Boolean
type String
values List<ComponentRoutineOutputValue>
name This property is required. string
valueType This property is required. string
description string
multiple boolean
required boolean
type string
values ComponentRoutineOutputValue[]
name This property is required. str
value_type This property is required. str
description str
multiple bool
required bool
type str
values Sequence[ComponentRoutineOutputValue]
name This property is required. String
valueType This property is required. String
description String
multiple Boolean
required Boolean
type String
values List<Property Map>

ComponentRoutineOutputValue
, ComponentRoutineOutputValueArgs

Asset This property is required. string
Attribute This property is required. string
Asset This property is required. string
Attribute This property is required. string
asset This property is required. String
attribute This property is required. String
asset This property is required. string
attribute This property is required. string
asset This property is required. str
attribute This property is required. str
asset This property is required. String
attribute This property is required. String

Import

$ pulumi import splight:index/componentRoutine:ComponentRoutine [options] splight_component_routine.<name> <component_routine_id>
Copy

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.