grafana.onCall.EscalationChain
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const _default = new grafana.oncall.EscalationChain("default", {name: "default"});
import pulumi
import pulumiverse_grafana as grafana
default = grafana.on_call.EscalationChain("default", name="default")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/onCall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := onCall.NewEscalationChain(ctx, "default", &onCall.EscalationChainArgs{
Name: pulumi.String("default"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var @default = new Grafana.OnCall.EscalationChain("default", new()
{
Name = "default",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.onCall.EscalationChain;
import com.pulumi.grafana.onCall.EscalationChainArgs;
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 default_ = new EscalationChain("default", EscalationChainArgs.builder()
.name("default")
.build());
}
}
resources:
default:
type: grafana:onCall:EscalationChain
properties:
name: default
Create EscalationChain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EscalationChain(name: string, args?: EscalationChainArgs, opts?: CustomResourceOptions);
@overload
def EscalationChain(resource_name: str,
args: Optional[EscalationChainArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def EscalationChain(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
team_id: Optional[str] = None)
func NewEscalationChain(ctx *Context, name string, args *EscalationChainArgs, opts ...ResourceOption) (*EscalationChain, error)
public EscalationChain(string name, EscalationChainArgs? args = null, CustomResourceOptions? opts = null)
public EscalationChain(String name, EscalationChainArgs args)
public EscalationChain(String name, EscalationChainArgs args, CustomResourceOptions options)
type: grafana:onCall:EscalationChain
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 EscalationChainArgs
- 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 EscalationChainArgs
- 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 EscalationChainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EscalationChainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EscalationChainArgs
- 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 escalationChainResource = new Grafana.OnCall.EscalationChain("escalationChainResource", new()
{
Name = "string",
TeamId = "string",
});
example, err := onCall.NewEscalationChain(ctx, "escalationChainResource", &onCall.EscalationChainArgs{
Name: pulumi.String("string"),
TeamId: pulumi.String("string"),
})
var escalationChainResource = new EscalationChain("escalationChainResource", EscalationChainArgs.builder()
.name("string")
.teamId("string")
.build());
escalation_chain_resource = grafana.on_call.EscalationChain("escalationChainResource",
name="string",
team_id="string")
const escalationChainResource = new grafana.oncall.EscalationChain("escalationChainResource", {
name: "string",
teamId: "string",
});
type: grafana:onCall:EscalationChain
properties:
name: string
teamId: string
EscalationChain 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 EscalationChain resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the EscalationChain 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 EscalationChain Resource
Get an existing EscalationChain 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?: EscalationChainState, opts?: CustomResourceOptions): EscalationChain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
team_id: Optional[str] = None) -> EscalationChain
func GetEscalationChain(ctx *Context, name string, id IDInput, state *EscalationChainState, opts ...ResourceOption) (*EscalationChain, error)
public static EscalationChain Get(string name, Input<string> id, EscalationChainState? state, CustomResourceOptions? opts = null)
public static EscalationChain get(String name, Output<String> id, EscalationChainState 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 grafana:onCall/escalationChain:EscalationChain name "{{ id }}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafana
Terraform Provider.