import * as pulumi from "@pulumi/pulumi"; /** * Manages a API Management Email Template. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleService = new azure.apimanagement.Service("example", { * name: "example-apim", * location: example.location, * resourceGroupName: example.name, * publisherName: "My Company", * publisherEmail: "company@terraform.io", * skuName: "Developer_1", * }); * const exampleEmailTemplate = new azure.apimanagement.EmailTemplate("example", { * templateName: "ConfirmSignUpIdentityDefault", * resourceGroupName: example.name, * apiManagementName: exampleService.name, * subject: "Customized confirmation email for your new $OrganizationName API account", * body: ` * * * * Customized Letter Title * * *

Dear DevFirstName DevLastName,

* * * `, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2022-08-01 * * ## Import * * API Management Email Templates can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:apimanagement/emailTemplate:EmailTemplate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/instance1/templates/template1 * ``` */ export declare class EmailTemplate extends pulumi.CustomResource { /** * Get an existing EmailTemplate resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: EmailTemplateState, opts?: pulumi.CustomResourceOptions): EmailTemplate; /** * Returns true if the given object is an instance of EmailTemplate. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is EmailTemplate; /** * The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created. */ readonly apiManagementName: pulumi.Output; /** * The body of the Email. Its format has to be a well-formed HTML document. * * > **Note:** In `subject` and `body` predefined parameters can be used. The available parameters depend on the template. Schema to use a parameter: `$` followed by the `parameter.name` - `$`. The available parameters can be seen in the Notification templates section of the API-Management Service instance within the Azure Portal. */ readonly body: pulumi.Output; /** * The description of the Email Template. */ readonly description: pulumi.Output; /** * The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created. */ readonly resourceGroupName: pulumi.Output; /** * The subject of the Email. */ readonly subject: pulumi.Output; /** * The name of the Email Template. Possible values are `AccountClosedDeveloper`, `ApplicationApprovedNotificationMessage`, `ConfirmSignUpIdentityDefault`, `EmailChangeIdentityDefault`, `InviteUserNotificationMessage`, `NewCommentNotificationMessage`, `NewDeveloperNotificationMessage`, `NewIssueNotificationMessage`, `PasswordResetByAdminNotificationMessage`, `PasswordResetIdentityDefault`, `PurchaseDeveloperNotificationMessage`, `QuotaLimitApproachingDeveloperNotificationMessage`, `RejectDeveloperNotificationMessage`, `RequestDeveloperNotificationMessage`. Changing this forces a new API Management Email Template to be created. */ readonly templateName: pulumi.Output; /** * The title of the Email Template. */ readonly title: pulumi.Output; /** * Create a EmailTemplate resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: EmailTemplateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EmailTemplate resources. */ export interface EmailTemplateState { /** * The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created. */ apiManagementName?: pulumi.Input; /** * The body of the Email. Its format has to be a well-formed HTML document. * * > **Note:** In `subject` and `body` predefined parameters can be used. The available parameters depend on the template. Schema to use a parameter: `$` followed by the `parameter.name` - `$`. The available parameters can be seen in the Notification templates section of the API-Management Service instance within the Azure Portal. */ body?: pulumi.Input; /** * The description of the Email Template. */ description?: pulumi.Input; /** * The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created. */ resourceGroupName?: pulumi.Input; /** * The subject of the Email. */ subject?: pulumi.Input; /** * The name of the Email Template. Possible values are `AccountClosedDeveloper`, `ApplicationApprovedNotificationMessage`, `ConfirmSignUpIdentityDefault`, `EmailChangeIdentityDefault`, `InviteUserNotificationMessage`, `NewCommentNotificationMessage`, `NewDeveloperNotificationMessage`, `NewIssueNotificationMessage`, `PasswordResetByAdminNotificationMessage`, `PasswordResetIdentityDefault`, `PurchaseDeveloperNotificationMessage`, `QuotaLimitApproachingDeveloperNotificationMessage`, `RejectDeveloperNotificationMessage`, `RequestDeveloperNotificationMessage`. Changing this forces a new API Management Email Template to be created. */ templateName?: pulumi.Input; /** * The title of the Email Template. */ title?: pulumi.Input; } /** * The set of arguments for constructing a EmailTemplate resource. */ export interface EmailTemplateArgs { /** * The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created. */ apiManagementName: pulumi.Input; /** * The body of the Email. Its format has to be a well-formed HTML document. * * > **Note:** In `subject` and `body` predefined parameters can be used. The available parameters depend on the template. Schema to use a parameter: `$` followed by the `parameter.name` - `$`. The available parameters can be seen in the Notification templates section of the API-Management Service instance within the Azure Portal. */ body: pulumi.Input; /** * The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created. */ resourceGroupName: pulumi.Input; /** * The subject of the Email. */ subject: pulumi.Input; /** * The name of the Email Template. Possible values are `AccountClosedDeveloper`, `ApplicationApprovedNotificationMessage`, `ConfirmSignUpIdentityDefault`, `EmailChangeIdentityDefault`, `InviteUserNotificationMessage`, `NewCommentNotificationMessage`, `NewDeveloperNotificationMessage`, `NewIssueNotificationMessage`, `PasswordResetByAdminNotificationMessage`, `PasswordResetIdentityDefault`, `PurchaseDeveloperNotificationMessage`, `QuotaLimitApproachingDeveloperNotificationMessage`, `RejectDeveloperNotificationMessage`, `RequestDeveloperNotificationMessage`. Changing this forces a new API Management Email Template to be created. */ templateName: pulumi.Input; }