Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly
rootly.Cause
Explore with Pulumi AI
Create Cause Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cause(name: string, args?: CauseArgs, opts?: CustomResourceOptions);
@overload
def Cause(resource_name: str,
args: Optional[CauseArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Cause(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
position: Optional[int] = None,
slug: Optional[str] = None)
func NewCause(ctx *Context, name string, args *CauseArgs, opts ...ResourceOption) (*Cause, error)
public Cause(string name, CauseArgs? args = null, CustomResourceOptions? opts = null)
type: rootly:Cause
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 CauseArgs
- 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 CauseArgs
- 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 CauseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CauseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CauseArgs
- 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 causeResource = new Rootly.Cause("causeResource", new()
{
Description = "string",
Name = "string",
Position = 0,
Slug = "string",
});
example, err := rootly.NewCause(ctx, "causeResource", &rootly.CauseArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Position: pulumi.Int(0),
Slug: pulumi.String("string"),
})
var causeResource = new Cause("causeResource", CauseArgs.builder()
.description("string")
.name("string")
.position(0)
.slug("string")
.build());
cause_resource = rootly.Cause("causeResource",
description="string",
name="string",
position=0,
slug="string")
const causeResource = new rootly.Cause("causeResource", {
description: "string",
name: "string",
position: 0,
slug: "string",
});
type: rootly:Cause
properties:
description: string
name: string
position: 0
slug: string
Cause 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 Cause resource accepts the following input properties:
- Description string
- The description of the cause
- Name string
- The name of the cause
- Position int
- Position of the cause
- Slug string
- The slug of the cause
- Description string
- The description of the cause
- Name string
- The name of the cause
- Position int
- Position of the cause
- Slug string
- The slug of the cause
- description String
- The description of the cause
- name String
- The name of the cause
- position Integer
- Position of the cause
- slug String
- The slug of the cause
- description string
- The description of the cause
- name string
- The name of the cause
- position number
- Position of the cause
- slug string
- The slug of the cause
- description str
- The description of the cause
- name str
- The name of the cause
- position int
- Position of the cause
- slug str
- The slug of the cause
- description String
- The description of the cause
- name String
- The name of the cause
- position Number
- Position of the cause
- slug String
- The slug of the cause
Outputs
All input properties are implicitly available as output properties. Additionally, the Cause 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 Cause Resource
Get an existing Cause 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?: CauseState, opts?: CustomResourceOptions): Cause
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
position: Optional[int] = None,
slug: Optional[str] = None) -> Cause
func GetCause(ctx *Context, name string, id IDInput, state *CauseState, opts ...ResourceOption) (*Cause, error)
public static Cause Get(string name, Input<string> id, CauseState? state, CustomResourceOptions? opts = null)
public static Cause get(String name, Output<String> id, CauseState 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.
- Description string
- The description of the cause
- Name string
- The name of the cause
- Position int
- Position of the cause
- Slug string
- The slug of the cause
- Description string
- The description of the cause
- Name string
- The name of the cause
- Position int
- Position of the cause
- Slug string
- The slug of the cause
- description String
- The description of the cause
- name String
- The name of the cause
- position Integer
- Position of the cause
- slug String
- The slug of the cause
- description string
- The description of the cause
- name string
- The name of the cause
- position number
- Position of the cause
- slug string
- The slug of the cause
- description str
- The description of the cause
- name str
- The name of the cause
- position int
- Position of the cause
- slug str
- The slug of the cause
- description String
- The description of the cause
- name String
- The name of the cause
- position Number
- Position of the cause
- slug String
- The slug of the cause
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootly
Terraform Provider.