Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse
grafana.MessageTemplate
Explore with Pulumi AI
Create MessageTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MessageTemplate(name: string, args: MessageTemplateArgs, opts?: CustomResourceOptions);
@overload
def MessageTemplate(resource_name: str,
args: MessageTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MessageTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
template: Optional[str] = None,
disable_provenance: Optional[bool] = None,
name: Optional[str] = None,
org_id: Optional[str] = None)
func NewMessageTemplate(ctx *Context, name string, args MessageTemplateArgs, opts ...ResourceOption) (*MessageTemplate, error)
public MessageTemplate(string name, MessageTemplateArgs args, CustomResourceOptions? opts = null)
public MessageTemplate(String name, MessageTemplateArgs args)
public MessageTemplate(String name, MessageTemplateArgs args, CustomResourceOptions options)
type: grafana:MessageTemplate
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 MessageTemplateArgs
- 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 MessageTemplateArgs
- 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 MessageTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MessageTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MessageTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Example
The following reference example uses placeholder values for all input properties.
var messageTemplateResource = new Grafana.MessageTemplate("messageTemplateResource", new()
{
Template = "string",
DisableProvenance = false,
Name = "string",
OrgId = "string",
});
example, err := grafana.NewMessageTemplate(ctx, "messageTemplateResource", &grafana.MessageTemplateArgs{
Template: pulumi.String("string"),
DisableProvenance: pulumi.Bool(false),
Name: pulumi.String("string"),
OrgId: pulumi.String("string"),
})
var messageTemplateResource = new MessageTemplate("messageTemplateResource", MessageTemplateArgs.builder()
.template("string")
.disableProvenance(false)
.name("string")
.orgId("string")
.build());
message_template_resource = grafana.MessageTemplate("messageTemplateResource",
template="string",
disable_provenance=False,
name="string",
org_id="string")
const messageTemplateResource = new grafana.MessageTemplate("messageTemplateResource", {
template: "string",
disableProvenance: false,
name: "string",
orgId: "string",
});
type: grafana:MessageTemplate
properties:
disableProvenance: false
name: string
orgId: string
template: string
MessageTemplate 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 MessageTemplate resource accepts the following input properties:
- Template string
- The content of the message template.
- Disable
Provenance bool - Allow modifying the message template from other sources than Terraform or the Grafana API.
- Name string
- The name of the message template.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- Template string
- The content of the message template.
- Disable
Provenance bool - Allow modifying the message template from other sources than Terraform or the Grafana API.
- Name string
- The name of the message template.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- template String
- The content of the message template.
- disable
Provenance Boolean - Allow modifying the message template from other sources than Terraform or the Grafana API.
- name String
- The name of the message template.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- template string
- The content of the message template.
- disable
Provenance boolean - Allow modifying the message template from other sources than Terraform or the Grafana API.
- name string
- The name of the message template.
- org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- template str
- The content of the message template.
- disable_
provenance bool - Allow modifying the message template from other sources than Terraform or the Grafana API.
- name str
- The name of the message template.
- org_
id str - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- template String
- The content of the message template.
- disable
Provenance Boolean - Allow modifying the message template from other sources than Terraform or the Grafana API.
- name String
- The name of the message template.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
Outputs
All input properties are implicitly available as output properties. Additionally, the MessageTemplate 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 MessageTemplate Resource
Get an existing MessageTemplate 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?: MessageTemplateState, opts?: CustomResourceOptions): MessageTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
disable_provenance: Optional[bool] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
template: Optional[str] = None) -> MessageTemplate
func GetMessageTemplate(ctx *Context, name string, id IDInput, state *MessageTemplateState, opts ...ResourceOption) (*MessageTemplate, error)
public static MessageTemplate Get(string name, Input<string> id, MessageTemplateState? state, CustomResourceOptions? opts = null)
public static MessageTemplate get(String name, Output<String> id, MessageTemplateState 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.
- Disable
Provenance bool - Allow modifying the message template from other sources than Terraform or the Grafana API.
- Name string
- The name of the message template.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- Template string
- The content of the message template.
- Disable
Provenance bool - Allow modifying the message template from other sources than Terraform or the Grafana API.
- Name string
- The name of the message template.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- Template string
- The content of the message template.
- disable
Provenance Boolean - Allow modifying the message template from other sources than Terraform or the Grafana API.
- name String
- The name of the message template.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- template String
- The content of the message template.
- disable
Provenance boolean - Allow modifying the message template from other sources than Terraform or the Grafana API.
- name string
- The name of the message template.
- org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- template string
- The content of the message template.
- disable_
provenance bool - Allow modifying the message template from other sources than Terraform or the Grafana API.
- name str
- The name of the message template.
- org_
id str - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- template str
- The content of the message template.
- disable
Provenance Boolean - Allow modifying the message template from other sources than Terraform or the Grafana API.
- name String
- The name of the message template.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- template String
- The content of the message template.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafana
Terraform Provider.