1. Packages
  2. Splight
  3. API Docs
  4. getLines
splight v1.2.2 published on Friday, Nov 8, 2024 by splightplatform

splight.getLines

Explore with Pulumi AI

splight logo
splight v1.2.2 published on Friday, Nov 8, 2024 by splightplatform

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as splight from "@pulumi/splight";
    
    const lines = splight.getLines({});
    
    import pulumi
    import pulumi_splight as splight
    
    lines = splight.get_lines()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/splightplatform/pulumi-splight/sdk/go/splight"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := splight.GetLines(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Splight = Pulumi.Splight;
    
    return await Deployment.RunAsync(() => 
    {
        var lines = Splight.GetLines.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.splight.SplightFunctions;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var lines = SplightFunctions.getLines();
    
        }
    }
    
    variables:
      lines:
        fn::invoke:
          Function: splight:getLines
          Arguments: {}
    

    Using getLines

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getLines(opts?: InvokeOptions): Promise<GetLinesResult>
    function getLinesOutput(opts?: InvokeOptions): Output<GetLinesResult>
    def get_lines(opts: Optional[InvokeOptions] = None) -> GetLinesResult
    def get_lines_output(opts: Optional[InvokeOptions] = None) -> Output[GetLinesResult]
    func GetLines(ctx *Context, opts ...InvokeOption) (*GetLinesResult, error)
    func GetLinesOutput(ctx *Context, opts ...InvokeOption) GetLinesResultOutput

    > Note: This function is named GetLines in the Go SDK.

    public static class GetLines 
    {
        public static Task<GetLinesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetLinesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLinesResult> getLines(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: splight:index/getLines:getLines
      arguments:
        # arguments dictionary

    getLines Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Tags List<Splight.Splight.Outputs.GetLinesTag>
    Id string
    The provider-assigned unique ID for this managed resource.
    Tags []GetLinesTag
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<GetLinesTag>
    id string
    The provider-assigned unique ID for this managed resource.
    tags GetLinesTag[]
    id str
    The provider-assigned unique ID for this managed resource.
    tags Sequence[GetLinesTag]
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<Property Map>

    Supporting Types

    GetLinesTag

    Id string
    Id of the resource
    Name string
    name of the resource
    Id string
    Id of the resource
    Name string
    name of the resource
    id String
    Id of the resource
    name String
    name of the resource
    id string
    Id of the resource
    name string
    name of the resource
    id str
    Id of the resource
    name str
    name of the resource
    id String
    Id of the resource
    name String
    name of the resource

    Package Details

    Repository
    splight splightplatform/pulumi-splight
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the splight Terraform Provider.
    splight logo
    splight v1.2.2 published on Friday, Nov 8, 2024 by splightplatform