1. Packages
  2. Awx Provider
  3. API Docs
  4. getNotificationTemplate
awx 0.29.1 published on Monday, Apr 14, 2025 by denouche

awx.getNotificationTemplate

Explore with Pulumi AI

TBD

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as awx from "@pulumi/awx";

const _default = awx.getNotificationTemplate({
    name: "private_services",
});
Copy
import pulumi
import pulumi_awx as awx

default = awx.get_notification_template(name="private_services")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/awx/awx"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := awx.LookupNotificationTemplate(ctx, &awx.LookupNotificationTemplateArgs{
			Name: pulumi.StringRef("private_services"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Awx = Pulumi.Awx;

return await Deployment.RunAsync(() => 
{
    var @default = Awx.GetNotificationTemplate.Invoke(new()
    {
        Name = "private_services",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.awx.AwxFunctions;
import com.pulumi.awx.inputs.GetNotificationTemplateArgs;
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) {
        final var default = AwxFunctions.getNotificationTemplate(GetNotificationTemplateArgs.builder()
            .name("private_services")
            .build());

    }
}
Copy
variables:
  default:
    fn::invoke:
      function: awx:getNotificationTemplate
      arguments:
        name: private_services
Copy

Using getNotificationTemplate

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getNotificationTemplate(args: GetNotificationTemplateArgs, opts?: InvokeOptions): Promise<GetNotificationTemplateResult>
function getNotificationTemplateOutput(args: GetNotificationTemplateOutputArgs, opts?: InvokeOptions): Output<GetNotificationTemplateResult>
Copy
def get_notification_template(id: Optional[float] = None,
                              name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetNotificationTemplateResult
def get_notification_template_output(id: Optional[pulumi.Input[float]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetNotificationTemplateResult]
Copy
func LookupNotificationTemplate(ctx *Context, args *LookupNotificationTemplateArgs, opts ...InvokeOption) (*LookupNotificationTemplateResult, error)
func LookupNotificationTemplateOutput(ctx *Context, args *LookupNotificationTemplateOutputArgs, opts ...InvokeOption) LookupNotificationTemplateResultOutput
Copy

> Note: This function is named LookupNotificationTemplate in the Go SDK.

public static class GetNotificationTemplate 
{
    public static Task<GetNotificationTemplateResult> InvokeAsync(GetNotificationTemplateArgs args, InvokeOptions? opts = null)
    public static Output<GetNotificationTemplateResult> Invoke(GetNotificationTemplateInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNotificationTemplateResult> getNotificationTemplate(GetNotificationTemplateArgs args, InvokeOptions options)
public static Output<GetNotificationTemplateResult> getNotificationTemplate(GetNotificationTemplateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: awx:index/getNotificationTemplate:getNotificationTemplate
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id double
Name string
Id float64
Name string
id Double
name String
id number
name string
id float
name str
id Number
name String

getNotificationTemplate Result

The following output properties are available:

Id double
Name string
Id float64
Name string
id Double
name String
id number
name string
id float
name str
id Number
name String

Package Details

Repository
awx denouche/terraform-provider-awx
License
Notes
This Pulumi package is based on the awx Terraform Provider.