splight.DashboardTab
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as splight from "@splightplatform/pulumi-splight";
const dashboardTabTest = new splight.DashboardTab("dashboardTabTest", {
dashboard: "1234-1234-1234-1234",
order: 0,
});
import pulumi
import pulumi_splight as splight
dashboard_tab_test = splight.DashboardTab("dashboardTabTest",
dashboard="1234-1234-1234-1234",
order=0)
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.NewDashboardTab(ctx, "dashboardTabTest", &splight.DashboardTabArgs{
Dashboard: pulumi.String("1234-1234-1234-1234"),
Order: pulumi.Int(0),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Splight = Splight.Splight;
return await Deployment.RunAsync(() =>
{
var dashboardTabTest = new Splight.DashboardTab("dashboardTabTest", new()
{
Dashboard = "1234-1234-1234-1234",
Order = 0,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.splight.DashboardTab;
import com.pulumi.splight.DashboardTabArgs;
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) {
var dashboardTabTest = new DashboardTab("dashboardTabTest", DashboardTabArgs.builder()
.dashboard("1234-1234-1234-1234")
.order(0)
.build());
}
}
resources:
dashboardTabTest:
type: splight:DashboardTab
properties:
dashboard: 1234-1234-1234-1234
order: 0
Create DashboardTab Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DashboardTab(name: string, args: DashboardTabArgs, opts?: CustomResourceOptions);
@overload
def DashboardTab(resource_name: str,
args: DashboardTabArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DashboardTab(resource_name: str,
opts: Optional[ResourceOptions] = None,
dashboard: Optional[str] = None,
name: Optional[str] = None,
order: Optional[int] = None)
func NewDashboardTab(ctx *Context, name string, args DashboardTabArgs, opts ...ResourceOption) (*DashboardTab, error)
public DashboardTab(string name, DashboardTabArgs args, CustomResourceOptions? opts = null)
public DashboardTab(String name, DashboardTabArgs args)
public DashboardTab(String name, DashboardTabArgs args, CustomResourceOptions options)
type: splight:DashboardTab
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 DashboardTabArgs
- 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 DashboardTabArgs
- 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 DashboardTabArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DashboardTabArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DashboardTabArgs
- 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 dashboardTabResource = new Splight.DashboardTab("dashboardTabResource", new()
{
Dashboard = "string",
Name = "string",
Order = 0,
});
example, err := splight.NewDashboardTab(ctx, "dashboardTabResource", &splight.DashboardTabArgs{
Dashboard: pulumi.String("string"),
Name: pulumi.String("string"),
Order: pulumi.Int(0),
})
var dashboardTabResource = new DashboardTab("dashboardTabResource", DashboardTabArgs.builder()
.dashboard("string")
.name("string")
.order(0)
.build());
dashboard_tab_resource = splight.DashboardTab("dashboardTabResource",
dashboard="string",
name="string",
order=0)
const dashboardTabResource = new splight.DashboardTab("dashboardTabResource", {
dashboard: "string",
name: "string",
order: 0,
});
type: splight:DashboardTab
properties:
dashboard: string
name: string
order: 0
DashboardTab Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DashboardTab resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the DashboardTab 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 DashboardTab Resource
Get an existing DashboardTab 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?: DashboardTabState, opts?: CustomResourceOptions): DashboardTab
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dashboard: Optional[str] = None,
name: Optional[str] = None,
order: Optional[int] = None) -> DashboardTab
func GetDashboardTab(ctx *Context, name string, id IDInput, state *DashboardTabState, opts ...ResourceOption) (*DashboardTab, error)
public static DashboardTab Get(string name, Input<string> id, DashboardTabState? state, CustomResourceOptions? opts = null)
public static DashboardTab get(String name, Output<String> id, DashboardTabState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
Import
$ pulumi import splight:index/dashboardTab:DashboardTab [options] splight_dashboard_tab.<name> <dashboard_tab_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
splight
Terraform Provider.