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

awx.NotificationTemplate

Explore with Pulumi AI

awx logo
awx 0.29.1 published on Monday, Apr 14, 2025 by denouche

    TBD

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as awx from "@pulumi/awx";
    
    const _default = new awx.NotificationTemplate("default", {
        notificationType: "webhook",
        organizationId: data.awx_organization["default"].id,
    });
    
    import pulumi
    import pulumi_awx as awx
    
    default = awx.NotificationTemplate("default",
        notification_type="webhook",
        organization_id=data["awx_organization"]["default"]["id"])
    
    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.NewNotificationTemplate(ctx, "default", &awx.NotificationTemplateArgs{
    			NotificationType: pulumi.String("webhook"),
    			OrganizationId:   pulumi.Any(data.Awx_organization.Default.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Awx = Pulumi.Awx;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Awx.NotificationTemplate("default", new()
        {
            NotificationType = "webhook",
            OrganizationId = data.Awx_organization.Default.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.awx.NotificationTemplate;
    import com.pulumi.awx.NotificationTemplateArgs;
    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 default_ = new NotificationTemplate("default", NotificationTemplateArgs.builder()
                .notificationType("webhook")
                .organizationId(data.awx_organization().default().id())
                .build());
    
        }
    }
    
    resources:
      default:
        type: awx:NotificationTemplate
        properties:
          notificationType: webhook
          organizationId: ${data.awx_organization.default.id}
    

    Create NotificationTemplate Resource

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

    Constructor syntax

    new NotificationTemplate(name: string, args: NotificationTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def NotificationTemplate(resource_name: str,
                             args: NotificationTemplateArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def NotificationTemplate(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             notification_type: Optional[str] = None,
                             organization_id: Optional[str] = None,
                             description: Optional[str] = None,
                             name: Optional[str] = None,
                             notification_configuration: Optional[str] = None,
                             notification_template_id: Optional[str] = None)
    func NewNotificationTemplate(ctx *Context, name string, args NotificationTemplateArgs, opts ...ResourceOption) (*NotificationTemplate, error)
    public NotificationTemplate(string name, NotificationTemplateArgs args, CustomResourceOptions? opts = null)
    public NotificationTemplate(String name, NotificationTemplateArgs args)
    public NotificationTemplate(String name, NotificationTemplateArgs args, CustomResourceOptions options)
    
    type: awx:NotificationTemplate
    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 NotificationTemplateArgs
    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 NotificationTemplateArgs
    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 NotificationTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NotificationTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NotificationTemplateArgs
    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 notificationTemplateResource = new Awx.NotificationTemplate("notificationTemplateResource", new()
    {
        NotificationType = "string",
        OrganizationId = "string",
        Description = "string",
        Name = "string",
        NotificationConfiguration = "string",
        NotificationTemplateId = "string",
    });
    
    example, err := awx.NewNotificationTemplate(ctx, "notificationTemplateResource", &awx.NotificationTemplateArgs{
    	NotificationType:          pulumi.String("string"),
    	OrganizationId:            pulumi.String("string"),
    	Description:               pulumi.String("string"),
    	Name:                      pulumi.String("string"),
    	NotificationConfiguration: pulumi.String("string"),
    	NotificationTemplateId:    pulumi.String("string"),
    })
    
    var notificationTemplateResource = new NotificationTemplate("notificationTemplateResource", NotificationTemplateArgs.builder()
        .notificationType("string")
        .organizationId("string")
        .description("string")
        .name("string")
        .notificationConfiguration("string")
        .notificationTemplateId("string")
        .build());
    
    notification_template_resource = awx.NotificationTemplate("notificationTemplateResource",
        notification_type="string",
        organization_id="string",
        description="string",
        name="string",
        notification_configuration="string",
        notification_template_id="string")
    
    const notificationTemplateResource = new awx.NotificationTemplate("notificationTemplateResource", {
        notificationType: "string",
        organizationId: "string",
        description: "string",
        name: "string",
        notificationConfiguration: "string",
        notificationTemplateId: "string",
    });
    
    type: awx:NotificationTemplate
    properties:
        description: string
        name: string
        notificationConfiguration: string
        notificationTemplateId: string
        notificationType: string
        organizationId: string
    

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

    Outputs

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

    Get an existing NotificationTemplate 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?: NotificationTemplateState, opts?: CustomResourceOptions): NotificationTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            notification_configuration: Optional[str] = None,
            notification_template_id: Optional[str] = None,
            notification_type: Optional[str] = None,
            organization_id: Optional[str] = None) -> NotificationTemplate
    func GetNotificationTemplate(ctx *Context, name string, id IDInput, state *NotificationTemplateState, opts ...ResourceOption) (*NotificationTemplate, error)
    public static NotificationTemplate Get(string name, Input<string> id, NotificationTemplateState? state, CustomResourceOptions? opts = null)
    public static NotificationTemplate get(String name, Output<String> id, NotificationTemplateState state, CustomResourceOptions options)
    resources:  _:    type: awx:NotificationTemplate    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.
    The following state arguments are supported:

    Package Details

    Repository
    awx denouche/terraform-provider-awx
    License
    Notes
    This Pulumi package is based on the awx Terraform Provider.
    awx logo
    awx 0.29.1 published on Monday, Apr 14, 2025 by denouche