datadog.IncidentType
Explore with Pulumi AI
Provides a Datadog incident type resource. This can be used to create and manage Datadog incident types.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
// Basic incident type
const example = new datadog.IncidentType("example", {
name: "Security Incident",
description: "Security-related incidents requiring immediate attention",
isDefault: false,
});
import pulumi
import pulumi_datadog as datadog
# Basic incident type
example = datadog.IncidentType("example",
name="Security Incident",
description="Security-related incidents requiring immediate attention",
is_default=False)
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Basic incident type
_, err := datadog.NewIncidentType(ctx, "example", &datadog.IncidentTypeArgs{
Name: pulumi.String("Security Incident"),
Description: pulumi.String("Security-related incidents requiring immediate attention"),
IsDefault: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
// Basic incident type
var example = new Datadog.IncidentType("example", new()
{
Name = "Security Incident",
Description = "Security-related incidents requiring immediate attention",
IsDefault = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.IncidentType;
import com.pulumi.datadog.IncidentTypeArgs;
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) {
// Basic incident type
var example = new IncidentType("example", IncidentTypeArgs.builder()
.name("Security Incident")
.description("Security-related incidents requiring immediate attention")
.isDefault(false)
.build());
}
}
resources:
# Basic incident type
example:
type: datadog:IncidentType
properties:
name: Security Incident
description: Security-related incidents requiring immediate attention
isDefault: false
Create IncidentType Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IncidentType(name: string, args: IncidentTypeArgs, opts?: CustomResourceOptions);
@overload
def IncidentType(resource_name: str,
args: IncidentTypeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IncidentType(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
description: Optional[str] = None,
is_default: Optional[bool] = None)
func NewIncidentType(ctx *Context, name string, args IncidentTypeArgs, opts ...ResourceOption) (*IncidentType, error)
public IncidentType(string name, IncidentTypeArgs args, CustomResourceOptions? opts = null)
public IncidentType(String name, IncidentTypeArgs args)
public IncidentType(String name, IncidentTypeArgs args, CustomResourceOptions options)
type: datadog:IncidentType
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 IncidentTypeArgs
- 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 IncidentTypeArgs
- 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 IncidentTypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IncidentTypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IncidentTypeArgs
- 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 incidentTypeResource = new Datadog.IncidentType("incidentTypeResource", new()
{
Name = "string",
Description = "string",
IsDefault = false,
});
example, err := datadog.NewIncidentType(ctx, "incidentTypeResource", &datadog.IncidentTypeArgs{
Name: pulumi.String("string"),
Description: pulumi.String("string"),
IsDefault: pulumi.Bool(false),
})
var incidentTypeResource = new IncidentType("incidentTypeResource", IncidentTypeArgs.builder()
.name("string")
.description("string")
.isDefault(false)
.build());
incident_type_resource = datadog.IncidentType("incidentTypeResource",
name="string",
description="string",
is_default=False)
const incidentTypeResource = new datadog.IncidentType("incidentTypeResource", {
name: "string",
description: "string",
isDefault: false,
});
type: datadog:IncidentType
properties:
description: string
isDefault: false
name: string
IncidentType 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 IncidentType resource accepts the following input properties:
- Name string
- Name of the incident type. Must be between 1 and 50 characters.
- Description string
- Description of the incident type. The description can have a maximum of 512 characters.
- Is
Default bool - Whether this incident type is the default type.
- Name string
- Name of the incident type. Must be between 1 and 50 characters.
- Description string
- Description of the incident type. The description can have a maximum of 512 characters.
- Is
Default bool - Whether this incident type is the default type.
- name String
- Name of the incident type. Must be between 1 and 50 characters.
- description String
- Description of the incident type. The description can have a maximum of 512 characters.
- is
Default Boolean - Whether this incident type is the default type.
- name string
- Name of the incident type. Must be between 1 and 50 characters.
- description string
- Description of the incident type. The description can have a maximum of 512 characters.
- is
Default boolean - Whether this incident type is the default type.
- name str
- Name of the incident type. Must be between 1 and 50 characters.
- description str
- Description of the incident type. The description can have a maximum of 512 characters.
- is_
default bool - Whether this incident type is the default type.
- name String
- Name of the incident type. Must be between 1 and 50 characters.
- description String
- Description of the incident type. The description can have a maximum of 512 characters.
- is
Default Boolean - Whether this incident type is the default type.
Outputs
All input properties are implicitly available as output properties. Additionally, the IncidentType 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 IncidentType Resource
Get an existing IncidentType 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?: IncidentTypeState, opts?: CustomResourceOptions): IncidentType
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None) -> IncidentType
func GetIncidentType(ctx *Context, name string, id IDInput, state *IncidentTypeState, opts ...ResourceOption) (*IncidentType, error)
public static IncidentType Get(string name, Input<string> id, IncidentTypeState? state, CustomResourceOptions? opts = null)
public static IncidentType get(String name, Output<String> id, IncidentTypeState state, CustomResourceOptions options)
resources: _: type: datadog:IncidentType get: id: ${id}
- 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.
- Description string
- Description of the incident type. The description can have a maximum of 512 characters.
- Is
Default bool - Whether this incident type is the default type.
- Name string
- Name of the incident type. Must be between 1 and 50 characters.
- Description string
- Description of the incident type. The description can have a maximum of 512 characters.
- Is
Default bool - Whether this incident type is the default type.
- Name string
- Name of the incident type. Must be between 1 and 50 characters.
- description String
- Description of the incident type. The description can have a maximum of 512 characters.
- is
Default Boolean - Whether this incident type is the default type.
- name String
- Name of the incident type. Must be between 1 and 50 characters.
- description string
- Description of the incident type. The description can have a maximum of 512 characters.
- is
Default boolean - Whether this incident type is the default type.
- name string
- Name of the incident type. Must be between 1 and 50 characters.
- description str
- Description of the incident type. The description can have a maximum of 512 characters.
- is_
default bool - Whether this incident type is the default type.
- name str
- Name of the incident type. Must be between 1 and 50 characters.
- description String
- Description of the incident type. The description can have a maximum of 512 characters.
- is
Default Boolean - Whether this incident type is the default type.
- name String
- Name of the incident type. Must be between 1 and 50 characters.
Import
The pulumi import
command can be used, for example:
$ pulumi import datadog:index/incidentType:IncidentType example "12345678-1234-1234-1234-1234567890ab"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.