splight v1.2.2 published on Friday, Nov 8, 2024 by splightplatform
splight.getBuses
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as splight from "@pulumi/splight";
const buses = splight.getBuses({});
import pulumi
import pulumi_splight as splight
buses = splight.get_buses()
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.GetBuses(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 buses = Splight.GetBuses.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 buses = SplightFunctions.getBuses();
}
}
variables:
buses:
fn::invoke:
Function: splight:getBuses
Arguments: {}
Using getBuses
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 getBuses(opts?: InvokeOptions): Promise<GetBusesResult>
function getBusesOutput(opts?: InvokeOptions): Output<GetBusesResult>
def get_buses(opts: Optional[InvokeOptions] = None) -> GetBusesResult
def get_buses_output(opts: Optional[InvokeOptions] = None) -> Output[GetBusesResult]
func GetBuses(ctx *Context, opts ...InvokeOption) (*GetBusesResult, error)
func GetBusesOutput(ctx *Context, opts ...InvokeOption) GetBusesResultOutput
> Note: This function is named GetBuses
in the Go SDK.
public static class GetBuses
{
public static Task<GetBusesResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetBusesResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetBusesResult> getBuses(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: splight:index/getBuses:getBuses
arguments:
# arguments dictionary
getBuses Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- List<Splight.
Splight. Outputs. Get Buses Tag>
- Id string
- The provider-assigned unique ID for this managed resource.
- []Get
Buses Tag
- id String
- The provider-assigned unique ID for this managed resource.
- List<Get
Buses Tag>
- id string
- The provider-assigned unique ID for this managed resource.
- Get
Buses Tag[]
- id str
- The provider-assigned unique ID for this managed resource.
- Sequence[Get
Buses Tag]
- id String
- The provider-assigned unique ID for this managed resource.
- List<Property Map>
Supporting Types
GetBusesTag
Package Details
- Repository
- splight splightplatform/pulumi-splight
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
splight
Terraform Provider.