Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.apimanagement.kotlin.NotificationRecipientEmailArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.apimanagement.kotlin
import com.pulumi.azure.apimanagement.NotificationRecipientEmailArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages a API Management Notification Recipient Email.
* ## 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: "[email protected] ",
* skuName: "Developer_1",
* });
* const exampleNotificationRecipientEmail = new azure.apimanagement.NotificationRecipientEmail("example", {
* apiManagementId: exampleService.id,
* notificationType: "AccountClosedPublisher",
* email: "[email protected] ",
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_service = azure.apimanagement.Service("example",
* name="example-apim",
* location=example.location,
* resource_group_name=example.name,
* publisher_name="My Company",
* publisher_email="[email protected] ",
* sku_name="Developer_1")
* example_notification_recipient_email = azure.apimanagement.NotificationRecipientEmail("example",
* api_management_id=example_service.id,
* notification_type="AccountClosedPublisher",
* email="[email protected] ")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-resources",
* Location = "West Europe",
* });
* var exampleService = new Azure.ApiManagement.Service("example", new()
* {
* Name = "example-apim",
* Location = example.Location,
* ResourceGroupName = example.Name,
* PublisherName = "My Company",
* PublisherEmail = "[email protected] ",
* SkuName = "Developer_1",
* });
* var exampleNotificationRecipientEmail = new Azure.ApiManagement.NotificationRecipientEmail("example", new()
* {
* ApiManagementId = exampleService.Id,
* NotificationType = "AccountClosedPublisher",
* Email = "[email protected] ",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/apimanagement"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleService, err := apimanagement.NewService(ctx, "example", &apimanagement.ServiceArgs{
* Name: pulumi.String("example-apim"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* PublisherName: pulumi.String("My Company"),
* PublisherEmail: pulumi.String("[email protected] "),
* SkuName: pulumi.String("Developer_1"),
* })
* if err != nil {
* return err
* }
* _, err = apimanagement.NewNotificationRecipientEmail(ctx, "example", &apimanagement.NotificationRecipientEmailArgs{
* ApiManagementId: exampleService.ID(),
* NotificationType: pulumi.String("AccountClosedPublisher"),
* Email: pulumi.String("[email protected] "),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.apimanagement.Service;
* import com.pulumi.azure.apimanagement.ServiceArgs;
* import com.pulumi.azure.apimanagement.NotificationRecipientEmail;
* import com.pulumi.azure.apimanagement.NotificationRecipientEmailArgs;
* 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West Europe")
* .build());
* var exampleService = new Service("exampleService", ServiceArgs.builder()
* .name("example-apim")
* .location(example.location())
* .resourceGroupName(example.name())
* .publisherName("My Company")
* .publisherEmail("[email protected] ")
* .skuName("Developer_1")
* .build());
* var exampleNotificationRecipientEmail = new NotificationRecipientEmail("exampleNotificationRecipientEmail", NotificationRecipientEmailArgs.builder()
* .apiManagementId(exampleService.id())
* .notificationType("AccountClosedPublisher")
* .email("[email protected] ")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleService:
* type: azure:apimanagement:Service
* name: example
* properties:
* name: example-apim
* location: ${example.location}
* resourceGroupName: ${example.name}
* publisherName: My Company
* publisherEmail: [email protected]
* skuName: Developer_1
* exampleNotificationRecipientEmail:
* type: azure:apimanagement:NotificationRecipientEmail
* name: example
* properties:
* apiManagementId: ${exampleService.id}
* notificationType: AccountClosedPublisher
* email: [email protected]
* ```
*
* ## Import
* API Management Notification Recipient Emails can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:apimanagement/notificationRecipientEmail:NotificationRecipientEmail example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/notifications/notificationName1/recipientEmails/email1
* ```
* @property apiManagementId The ID of the API Management Service from which to create this Notification Recipient Email. Changing this forces a new API Management Notification Recipient Email to be created.
* @property email The recipient email address. Changing this forces a new API Management Notification Recipient Email to be created.
* @property notificationType The Notification Name to be received. Changing this forces a new API Management Notification Recipient Email to be created. Possible values are `AccountClosedPublisher`, `BCC`, `NewApplicationNotificationMessage`, `NewIssuePublisherNotificationMessage`, `PurchasePublisherNotificationMessage`, `QuotaLimitApproachingPublisherNotificationMessage`, and `RequestPublisherNotificationMessage`.
*/
public data class NotificationRecipientEmailArgs(
public val apiManagementId: Output? = null,
public val email: Output? = null,
public val notificationType: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.apimanagement.NotificationRecipientEmailArgs =
com.pulumi.azure.apimanagement.NotificationRecipientEmailArgs.builder()
.apiManagementId(apiManagementId?.applyValue({ args0 -> args0 }))
.email(email?.applyValue({ args0 -> args0 }))
.notificationType(notificationType?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NotificationRecipientEmailArgs].
*/
@PulumiTagMarker
public class NotificationRecipientEmailArgsBuilder internal constructor() {
private var apiManagementId: Output? = null
private var email: Output? = null
private var notificationType: Output? = null
/**
* @param value The ID of the API Management Service from which to create this Notification Recipient Email. Changing this forces a new API Management Notification Recipient Email to be created.
*/
@JvmName("xnwwlxhbfdhdyudr")
public suspend fun apiManagementId(`value`: Output) {
this.apiManagementId = value
}
/**
* @param value The recipient email address. Changing this forces a new API Management Notification Recipient Email to be created.
*/
@JvmName("crnoracnhpdnkyyb")
public suspend fun email(`value`: Output) {
this.email = value
}
/**
* @param value The Notification Name to be received. Changing this forces a new API Management Notification Recipient Email to be created. Possible values are `AccountClosedPublisher`, `BCC`, `NewApplicationNotificationMessage`, `NewIssuePublisherNotificationMessage`, `PurchasePublisherNotificationMessage`, `QuotaLimitApproachingPublisherNotificationMessage`, and `RequestPublisherNotificationMessage`.
*/
@JvmName("xxwcvtxrhxvaisqc")
public suspend fun notificationType(`value`: Output) {
this.notificationType = value
}
/**
* @param value The ID of the API Management Service from which to create this Notification Recipient Email. Changing this forces a new API Management Notification Recipient Email to be created.
*/
@JvmName("ejyejreepgftutwi")
public suspend fun apiManagementId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiManagementId = mapped
}
/**
* @param value The recipient email address. Changing this forces a new API Management Notification Recipient Email to be created.
*/
@JvmName("fnyjjvhufhrgvrif")
public suspend fun email(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.email = mapped
}
/**
* @param value The Notification Name to be received. Changing this forces a new API Management Notification Recipient Email to be created. Possible values are `AccountClosedPublisher`, `BCC`, `NewApplicationNotificationMessage`, `NewIssuePublisherNotificationMessage`, `PurchasePublisherNotificationMessage`, `QuotaLimitApproachingPublisherNotificationMessage`, and `RequestPublisherNotificationMessage`.
*/
@JvmName("ngulhinytdtysgfv")
public suspend fun notificationType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.notificationType = mapped
}
internal fun build(): NotificationRecipientEmailArgs = NotificationRecipientEmailArgs(
apiManagementId = apiManagementId,
email = email,
notificationType = notificationType,
)
}