1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. AccountStakeholderTemplate
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty

    zenduty.AccountStakeholderTemplate manages a reusable stakeholder update (subject and body) available to every team of the account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const outage = new zenduty.AccountStakeholderTemplate("outage", {
        title: "Major outage",
        subject: "[Zenduty] Service disruption update",
        template: "We are investigating a service disruption. Next update in 30 minutes.",
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    outage = zenduty.AccountStakeholderTemplate("outage",
        title="Major outage",
        subject="[Zenduty] Service disruption update",
        template="We are investigating a service disruption. Next update in 30 minutes.")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/v2/zenduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zenduty.NewAccountStakeholderTemplate(ctx, "outage", &zenduty.AccountStakeholderTemplateArgs{
    			Title:    pulumi.String("Major outage"),
    			Subject:  pulumi.String("[Zenduty] Service disruption update"),
    			Template: pulumi.String("We are investigating a service disruption. Next update in 30 minutes."),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zenduty = Pulumi.Zenduty;
    
    return await Deployment.RunAsync(() => 
    {
        var outage = new Zenduty.AccountStakeholderTemplate("outage", new()
        {
            Title = "Major outage",
            Subject = "[Zenduty] Service disruption update",
            Template = "We are investigating a service disruption. Next update in 30 minutes.",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.AccountStakeholderTemplate;
    import com.pulumi.zenduty.AccountStakeholderTemplateArgs;
    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 outage = new AccountStakeholderTemplate("outage", AccountStakeholderTemplateArgs.builder()
                .title("Major outage")
                .subject("[Zenduty] Service disruption update")
                .template("We are investigating a service disruption. Next update in 30 minutes.")
                .build());
    
        }
    }
    
    resources:
      outage:
        type: zenduty:AccountStakeholderTemplate
        properties:
          title: Major outage
          subject: '[Zenduty] Service disruption update'
          template: We are investigating a service disruption. Next update in 30 minutes.
    
    Example coming soon!
    

    Create AccountStakeholderTemplate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccountStakeholderTemplate(name: string, args: AccountStakeholderTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def AccountStakeholderTemplate(resource_name: str,
                                   args: AccountStakeholderTemplateArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountStakeholderTemplate(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   subject: Optional[str] = None,
                                   title: Optional[str] = None,
                                   account_stakeholder_template_id: Optional[str] = None,
                                   template: Optional[str] = None)
    func NewAccountStakeholderTemplate(ctx *Context, name string, args AccountStakeholderTemplateArgs, opts ...ResourceOption) (*AccountStakeholderTemplate, error)
    public AccountStakeholderTemplate(string name, AccountStakeholderTemplateArgs args, CustomResourceOptions? opts = null)
    public AccountStakeholderTemplate(String name, AccountStakeholderTemplateArgs args)
    public AccountStakeholderTemplate(String name, AccountStakeholderTemplateArgs args, CustomResourceOptions options)
    
    type: zenduty:AccountStakeholderTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "zenduty_account_stakeholder_template" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AccountStakeholderTemplateArgs
    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 AccountStakeholderTemplateArgs
    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 AccountStakeholderTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountStakeholderTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountStakeholderTemplateArgs
    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 accountStakeholderTemplateResource = new Zenduty.AccountStakeholderTemplate("accountStakeholderTemplateResource", new()
    {
        Subject = "string",
        Title = "string",
        AccountStakeholderTemplateId = "string",
        Template = "string",
    });
    
    example, err := zenduty.NewAccountStakeholderTemplate(ctx, "accountStakeholderTemplateResource", &zenduty.AccountStakeholderTemplateArgs{
    	Subject:                      pulumi.String("string"),
    	Title:                        pulumi.String("string"),
    	AccountStakeholderTemplateId: pulumi.String("string"),
    	Template:                     pulumi.String("string"),
    })
    
    resource "zenduty_account_stakeholder_template" "accountStakeholderTemplateResource" {
      lifecycle {
        create_before_destroy = true
      }
      subject                         = "string"
      title                           = "string"
      account_stakeholder_template_id = "string"
      template                        = "string"
    }
    
    var accountStakeholderTemplateResource = new AccountStakeholderTemplate("accountStakeholderTemplateResource", AccountStakeholderTemplateArgs.builder()
        .subject("string")
        .title("string")
        .accountStakeholderTemplateId("string")
        .template("string")
        .build());
    
    account_stakeholder_template_resource = zenduty.AccountStakeholderTemplate("accountStakeholderTemplateResource",
        subject="string",
        title="string",
        account_stakeholder_template_id="string",
        template="string")
    
    const accountStakeholderTemplateResource = new zenduty.AccountStakeholderTemplate("accountStakeholderTemplateResource", {
        subject: "string",
        title: "string",
        accountStakeholderTemplateId: "string",
        template: "string",
    });
    
    type: zenduty:AccountStakeholderTemplate
    properties:
        accountStakeholderTemplateId: string
        subject: string
        template: string
        title: string
    

    AccountStakeholderTemplate 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 AccountStakeholderTemplate resource accepts the following input properties:

    Subject string
    Subject line of the stakeholder update.
    Title string
    Title of the template, unique within the account.
    AccountStakeholderTemplateId string
    The unique_id of the template.
    Template string
    Body of the stakeholder update.
    Subject string
    Subject line of the stakeholder update.
    Title string
    Title of the template, unique within the account.
    AccountStakeholderTemplateId string
    The unique_id of the template.
    Template string
    Body of the stakeholder update.
    subject string
    Subject line of the stakeholder update.
    title string
    Title of the template, unique within the account.
    account_stakeholder_template_id string
    The unique_id of the template.
    template string
    Body of the stakeholder update.
    subject String
    Subject line of the stakeholder update.
    title String
    Title of the template, unique within the account.
    accountStakeholderTemplateId String
    The unique_id of the template.
    template String
    Body of the stakeholder update.
    subject string
    Subject line of the stakeholder update.
    title string
    Title of the template, unique within the account.
    accountStakeholderTemplateId string
    The unique_id of the template.
    template string
    Body of the stakeholder update.
    subject str
    Subject line of the stakeholder update.
    title str
    Title of the template, unique within the account.
    account_stakeholder_template_id str
    The unique_id of the template.
    template str
    Body of the stakeholder update.
    subject String
    Subject line of the stakeholder update.
    title String
    Title of the template, unique within the account.
    accountStakeholderTemplateId String
    The unique_id of the template.
    template String
    Body of the stakeholder update.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccountStakeholderTemplate 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 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 AccountStakeholderTemplate Resource

    Get an existing AccountStakeholderTemplate 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?: AccountStakeholderTemplateState, opts?: CustomResourceOptions): AccountStakeholderTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_stakeholder_template_id: Optional[str] = None,
            subject: Optional[str] = None,
            template: Optional[str] = None,
            title: Optional[str] = None) -> AccountStakeholderTemplate
    func GetAccountStakeholderTemplate(ctx *Context, name string, id IDInput, state *AccountStakeholderTemplateState, opts ...ResourceOption) (*AccountStakeholderTemplate, error)
    public static AccountStakeholderTemplate Get(string name, Input<string> id, AccountStakeholderTemplateState? state, CustomResourceOptions? opts = null)
    public static AccountStakeholderTemplate get(String name, Output<String> id, AccountStakeholderTemplateState state, CustomResourceOptions options)
    resources:  _:    type: zenduty:AccountStakeholderTemplate    get:      id: ${id}
    import {
      to = zenduty_account_stakeholder_template.example
      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.
    The following state arguments are supported:
    AccountStakeholderTemplateId string
    The unique_id of the template.
    Subject string
    Subject line of the stakeholder update.
    Template string
    Body of the stakeholder update.
    Title string
    Title of the template, unique within the account.
    AccountStakeholderTemplateId string
    The unique_id of the template.
    Subject string
    Subject line of the stakeholder update.
    Template string
    Body of the stakeholder update.
    Title string
    Title of the template, unique within the account.
    account_stakeholder_template_id string
    The unique_id of the template.
    subject string
    Subject line of the stakeholder update.
    template string
    Body of the stakeholder update.
    title string
    Title of the template, unique within the account.
    accountStakeholderTemplateId String
    The unique_id of the template.
    subject String
    Subject line of the stakeholder update.
    template String
    Body of the stakeholder update.
    title String
    Title of the template, unique within the account.
    accountStakeholderTemplateId string
    The unique_id of the template.
    subject string
    Subject line of the stakeholder update.
    template string
    Body of the stakeholder update.
    title string
    Title of the template, unique within the account.
    account_stakeholder_template_id str
    The unique_id of the template.
    subject str
    Subject line of the stakeholder update.
    template str
    Body of the stakeholder update.
    title str
    Title of the template, unique within the account.
    accountStakeholderTemplateId String
    The unique_id of the template.
    subject String
    Subject line of the stakeholder update.
    template String
    Body of the stakeholder update.
    title String
    Title of the template, unique within the account.

    Import

    hcl

    resource “zenduty_account_stakeholder_template” “outage” {

    }

    $ pulumi import zenduty:index/accountStakeholderTemplate:AccountStakeholderTemplate outage stakeholder_template_id`
    

    $ terraform state show zenduty_account_stakeholder_template.outage

    * copy the output data and paste inside zenduty_account_stakeholder_template.outage resource block and remove the id attribute

    $ pulumi preview to verify the import

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    zenduty
    Viewing docs for zenduty 2.2.0
    published on Friday, Oct 30, 2026 by zenduty

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial