1. Packages
  2. Splight
  3. API Docs
  4. getAssetKinds
splight v0.1.25 published on Monday, Jul 15, 2024 by splightplatform

splight.getAssetKinds

Explore with Pulumi AI

splight logo
splight v0.1.25 published on Monday, Jul 15, 2024 by splightplatform

    Data source to fetch all asset kinds defined in the platform

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as splight from "@pulumi/splight";
    
    const kinds = splight.getAssetKinds({});
    
    import pulumi
    import pulumi_splight as splight
    
    kinds = splight.get_asset_kinds()
    
    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.GetAssetKinds(ctx, nil, 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 kinds = Splight.GetAssetKinds.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 kinds = SplightFunctions.getAssetKinds();
    
        }
    }
    
    variables:
      kinds:
        fn::invoke:
          Function: splight:getAssetKinds
          Arguments: {}
    

    Using getAssetKinds

    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 getAssetKinds(opts?: InvokeOptions): Promise<GetAssetKindsResult>
    function getAssetKindsOutput(opts?: InvokeOptions): Output<GetAssetKindsResult>
    def get_asset_kinds(opts: Optional[InvokeOptions] = None) -> GetAssetKindsResult
    def get_asset_kinds_output(opts: Optional[InvokeOptions] = None) -> Output[GetAssetKindsResult]
    func GetAssetKinds(ctx *Context, opts ...InvokeOption) (*GetAssetKindsResult, error)
    func GetAssetKindsOutput(ctx *Context, opts ...InvokeOption) GetAssetKindsResultOutput

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

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

    getAssetKinds Result

    The following output properties are available:

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

    Supporting Types

    GetAssetKindsKind

    Id string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    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 v0.1.25 published on Monday, Jul 15, 2024 by splightplatform