published on Thursday, May 7, 2026 by rootlyhq
published on Thursday, May 7, 2026 by rootlyhq
Example Usage
resource "rootly_communications_template" "status_update" {
name = "Incident Status Update"
body = "**Incident:** {{ incident.title }}\n**Status:** {{ incident.status }}\n**Summary:** {{ incident.summary }}"
}
Create CommunicationsTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CommunicationsTemplate(name: string, args: CommunicationsTemplateArgs, opts?: CustomResourceOptions);@overload
def CommunicationsTemplate(resource_name: str,
args: CommunicationsTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CommunicationsTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
communication_type_id: Optional[str] = None,
communication_template_stages: Optional[Sequence[CommunicationsTemplateCommunicationTemplateStageArgs]] = None,
communication_type: Optional[CommunicationsTemplateCommunicationTypeArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
position: Optional[int] = None,
slug: Optional[str] = None)func NewCommunicationsTemplate(ctx *Context, name string, args CommunicationsTemplateArgs, opts ...ResourceOption) (*CommunicationsTemplate, error)public CommunicationsTemplate(string name, CommunicationsTemplateArgs args, CustomResourceOptions? opts = null)
public CommunicationsTemplate(String name, CommunicationsTemplateArgs args)
public CommunicationsTemplate(String name, CommunicationsTemplateArgs args, CustomResourceOptions options)
type: rootly:CommunicationsTemplate
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 CommunicationsTemplateArgs
- 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 CommunicationsTemplateArgs
- 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 CommunicationsTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CommunicationsTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CommunicationsTemplateArgs
- 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 communicationsTemplateResource = new Rootly.CommunicationsTemplate("communicationsTemplateResource", new()
{
CommunicationTypeId = "string",
CommunicationTemplateStages = new[]
{
new Rootly.Inputs.CommunicationsTemplateCommunicationTemplateStageArgs
{
CommunicationStageId = "string",
EmailBody = "string",
EmailSubject = "string",
Id = "string",
SlackContent = "string",
SmsContent = "string",
},
},
CommunicationType = new Rootly.Inputs.CommunicationsTemplateCommunicationTypeArgs
{
Id = "string",
Name = "string",
},
Description = "string",
Name = "string",
Position = 0,
Slug = "string",
});
example, err := rootly.NewCommunicationsTemplate(ctx, "communicationsTemplateResource", &rootly.CommunicationsTemplateArgs{
CommunicationTypeId: pulumi.String("string"),
CommunicationTemplateStages: rootly.CommunicationsTemplateCommunicationTemplateStageArray{
&rootly.CommunicationsTemplateCommunicationTemplateStageArgs{
CommunicationStageId: pulumi.String("string"),
EmailBody: pulumi.String("string"),
EmailSubject: pulumi.String("string"),
Id: pulumi.String("string"),
SlackContent: pulumi.String("string"),
SmsContent: pulumi.String("string"),
},
},
CommunicationType: &rootly.CommunicationsTemplateCommunicationTypeArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Position: pulumi.Int(0),
Slug: pulumi.String("string"),
})
var communicationsTemplateResource = new CommunicationsTemplate("communicationsTemplateResource", CommunicationsTemplateArgs.builder()
.communicationTypeId("string")
.communicationTemplateStages(CommunicationsTemplateCommunicationTemplateStageArgs.builder()
.communicationStageId("string")
.emailBody("string")
.emailSubject("string")
.id("string")
.slackContent("string")
.smsContent("string")
.build())
.communicationType(CommunicationsTemplateCommunicationTypeArgs.builder()
.id("string")
.name("string")
.build())
.description("string")
.name("string")
.position(0)
.slug("string")
.build());
communications_template_resource = rootly.CommunicationsTemplate("communicationsTemplateResource",
communication_type_id="string",
communication_template_stages=[{
"communication_stage_id": "string",
"email_body": "string",
"email_subject": "string",
"id": "string",
"slack_content": "string",
"sms_content": "string",
}],
communication_type={
"id": "string",
"name": "string",
},
description="string",
name="string",
position=0,
slug="string")
const communicationsTemplateResource = new rootly.CommunicationsTemplate("communicationsTemplateResource", {
communicationTypeId: "string",
communicationTemplateStages: [{
communicationStageId: "string",
emailBody: "string",
emailSubject: "string",
id: "string",
slackContent: "string",
smsContent: "string",
}],
communicationType: {
id: "string",
name: "string",
},
description: "string",
name: "string",
position: 0,
slug: "string",
});
type: rootly:CommunicationsTemplate
properties:
communicationTemplateStages:
- communicationStageId: string
emailBody: string
emailSubject: string
id: string
slackContent: string
smsContent: string
communicationType:
id: string
name: string
communicationTypeId: string
description: string
name: string
position: 0
slug: string
CommunicationsTemplate 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 CommunicationsTemplate resource accepts the following input properties:
- Communication
Type stringId - The communication type ID
- Communication
Template List<CommunicationsStages Template Communication Template Stage> - Communication template stages
- Communication
Type CommunicationsTemplate Communication Type - Map must contain two fields,
idandname. - Description string
- The description of the communications template
- Name string
- The name of the communications template
- Position int
- Position of the communications template
- Slug string
- The slug of the communications template
- Communication
Type stringId - The communication type ID
- Communication
Template []CommunicationsStages Template Communication Template Stage Args - Communication template stages
- Communication
Type CommunicationsTemplate Communication Type Args - Map must contain two fields,
idandname. - Description string
- The description of the communications template
- Name string
- The name of the communications template
- Position int
- Position of the communications template
- Slug string
- The slug of the communications template
- communication
Type StringId - The communication type ID
- communication
Template List<CommunicationsStages Template Communication Template Stage> - Communication template stages
- communication
Type CommunicationsTemplate Communication Type - Map must contain two fields,
idandname. - description String
- The description of the communications template
- name String
- The name of the communications template
- position Integer
- Position of the communications template
- slug String
- The slug of the communications template
- communication
Type stringId - The communication type ID
- communication
Template CommunicationsStages Template Communication Template Stage[] - Communication template stages
- communication
Type CommunicationsTemplate Communication Type - Map must contain two fields,
idandname. - description string
- The description of the communications template
- name string
- The name of the communications template
- position number
- Position of the communications template
- slug string
- The slug of the communications template
- communication_
type_ strid - The communication type ID
- communication_
template_ Sequence[Communicationsstages Template Communication Template Stage Args] - Communication template stages
- communication_
type CommunicationsTemplate Communication Type Args - Map must contain two fields,
idandname. - description str
- The description of the communications template
- name str
- The name of the communications template
- position int
- Position of the communications template
- slug str
- The slug of the communications template
- communication
Type StringId - The communication type ID
- communication
Template List<Property Map>Stages - Communication template stages
- communication
Type Property Map - Map must contain two fields,
idandname. - description String
- The description of the communications template
- name String
- The name of the communications template
- position Number
- Position of the communications template
- slug String
- The slug of the communications template
Outputs
All input properties are implicitly available as output properties. Additionally, the CommunicationsTemplate 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 CommunicationsTemplate Resource
Get an existing CommunicationsTemplate 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?: CommunicationsTemplateState, opts?: CustomResourceOptions): CommunicationsTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
communication_template_stages: Optional[Sequence[CommunicationsTemplateCommunicationTemplateStageArgs]] = None,
communication_type: Optional[CommunicationsTemplateCommunicationTypeArgs] = None,
communication_type_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
position: Optional[int] = None,
slug: Optional[str] = None) -> CommunicationsTemplatefunc GetCommunicationsTemplate(ctx *Context, name string, id IDInput, state *CommunicationsTemplateState, opts ...ResourceOption) (*CommunicationsTemplate, error)public static CommunicationsTemplate Get(string name, Input<string> id, CommunicationsTemplateState? state, CustomResourceOptions? opts = null)public static CommunicationsTemplate get(String name, Output<String> id, CommunicationsTemplateState state, CustomResourceOptions options)resources: _: type: rootly:CommunicationsTemplate 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.
- Communication
Template List<CommunicationsStages Template Communication Template Stage> - Communication template stages
- Communication
Type CommunicationsTemplate Communication Type - Map must contain two fields,
idandname. - Communication
Type stringId - The communication type ID
- Description string
- The description of the communications template
- Name string
- The name of the communications template
- Position int
- Position of the communications template
- Slug string
- The slug of the communications template
- Communication
Template []CommunicationsStages Template Communication Template Stage Args - Communication template stages
- Communication
Type CommunicationsTemplate Communication Type Args - Map must contain two fields,
idandname. - Communication
Type stringId - The communication type ID
- Description string
- The description of the communications template
- Name string
- The name of the communications template
- Position int
- Position of the communications template
- Slug string
- The slug of the communications template
- communication
Template List<CommunicationsStages Template Communication Template Stage> - Communication template stages
- communication
Type CommunicationsTemplate Communication Type - Map must contain two fields,
idandname. - communication
Type StringId - The communication type ID
- description String
- The description of the communications template
- name String
- The name of the communications template
- position Integer
- Position of the communications template
- slug String
- The slug of the communications template
- communication
Template CommunicationsStages Template Communication Template Stage[] - Communication template stages
- communication
Type CommunicationsTemplate Communication Type - Map must contain two fields,
idandname. - communication
Type stringId - The communication type ID
- description string
- The description of the communications template
- name string
- The name of the communications template
- position number
- Position of the communications template
- slug string
- The slug of the communications template
- communication_
template_ Sequence[Communicationsstages Template Communication Template Stage Args] - Communication template stages
- communication_
type CommunicationsTemplate Communication Type Args - Map must contain two fields,
idandname. - communication_
type_ strid - The communication type ID
- description str
- The description of the communications template
- name str
- The name of the communications template
- position int
- Position of the communications template
- slug str
- The slug of the communications template
- communication
Template List<Property Map>Stages - Communication template stages
- communication
Type Property Map - Map must contain two fields,
idandname. - communication
Type StringId - The communication type ID
- description String
- The description of the communications template
- name String
- The name of the communications template
- position Number
- Position of the communications template
- slug String
- The slug of the communications template
Supporting Types
CommunicationsTemplateCommunicationTemplateStage, CommunicationsTemplateCommunicationTemplateStageArgs
- Communication
Stage stringId - The communication stage ID
- Email
Body string - Email body for the stage
- Email
Subject string - Email subject for the stage
- Id string
- ID of the communication template stage
- Slack
Content string - Slack content for the stage
- Sms
Content string - SMS content for the stage
- Communication
Stage stringId - The communication stage ID
- Email
Body string - Email body for the stage
- Email
Subject string - Email subject for the stage
- Id string
- ID of the communication template stage
- Slack
Content string - Slack content for the stage
- Sms
Content string - SMS content for the stage
- communication
Stage StringId - The communication stage ID
- email
Body String - Email body for the stage
- email
Subject String - Email subject for the stage
- id String
- ID of the communication template stage
- slack
Content String - Slack content for the stage
- sms
Content String - SMS content for the stage
- communication
Stage stringId - The communication stage ID
- email
Body string - Email body for the stage
- email
Subject string - Email subject for the stage
- id string
- ID of the communication template stage
- slack
Content string - Slack content for the stage
- sms
Content string - SMS content for the stage
- communication_
stage_ strid - The communication stage ID
- email_
body str - Email body for the stage
- email_
subject str - Email subject for the stage
- id str
- ID of the communication template stage
- slack_
content str - Slack content for the stage
- sms_
content str - SMS content for the stage
- communication
Stage StringId - The communication stage ID
- email
Body String - Email body for the stage
- email
Subject String - Email subject for the stage
- id String
- ID of the communication template stage
- slack
Content String - Slack content for the stage
- sms
Content String - SMS content for the stage
CommunicationsTemplateCommunicationType, CommunicationsTemplateCommunicationTypeArgs
Import
rootly.CommunicationsTemplate can be imported using the import command.
$ pulumi import rootly:index/communicationsTemplate:CommunicationsTemplate primary a816421c-6ceb-481a-87c4-585e47451f24
Or using an import block.
Locate the resource id in the web app, or retrieve it by listing resources through the API if it’s not visible in the web app.
HCL can be generated from the import block using the -generate-config-out flag.
pulumi preview -generate-config-out=generated.tf
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootlyTerraform Provider.
published on Thursday, May 7, 2026 by rootlyhq
