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.azurenative.insights.kotlin.ActionGroupArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin
import com.pulumi.azurenative.insights.ActionGroupArgs.builder
import com.pulumi.azurenative.insights.kotlin.inputs.ArmRoleReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.ArmRoleReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.AutomationRunbookReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.AutomationRunbookReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.AzureAppPushReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.AzureAppPushReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.AzureFunctionReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.AzureFunctionReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.EmailReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.EmailReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.EventHubReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.EventHubReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.ItsmReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.ItsmReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.LogicAppReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.LogicAppReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.SmsReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.SmsReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.VoiceReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.VoiceReceiverArgsBuilder
import com.pulumi.azurenative.insights.kotlin.inputs.WebhookReceiverArgs
import com.pulumi.azurenative.insights.kotlin.inputs.WebhookReceiverArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* An action group resource.
* Azure REST API version: 2023-01-01. Prior API version in Azure Native 1.x: 2019-06-01.
* Other available API versions: 2023-09-01-preview.
* ## Example Usage
* ### Create or update an action group
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var actionGroup = new AzureNative.Insights.ActionGroup("actionGroup", new()
* {
* ActionGroupName = "SampleActionGroup",
* ArmRoleReceivers = new[]
* {
* new AzureNative.Insights.Inputs.ArmRoleReceiverArgs
* {
* Name = "Sample armRole",
* RoleId = "8e3af657-a8ff-443c-a75c-2fe8c4bcb635",
* UseCommonAlertSchema = true,
* },
* },
* AutomationRunbookReceivers = new[]
* {
* new AzureNative.Insights.Inputs.AutomationRunbookReceiverArgs
* {
* AutomationAccountId = "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest",
* IsGlobalRunbook = false,
* Name = "testRunbook",
* RunbookName = "Sample runbook",
* ServiceUri = "",
* UseCommonAlertSchema = true,
* WebhookResourceId = "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084",
* },
* },
* AzureAppPushReceivers = new[]
* {
* new AzureNative.Insights.Inputs.AzureAppPushReceiverArgs
* {
* EmailAddress = "[email protected] ",
* Name = "Sample azureAppPush",
* },
* },
* AzureFunctionReceivers = new[]
* {
* new AzureNative.Insights.Inputs.AzureFunctionReceiverArgs
* {
* FunctionAppResourceId = "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp",
* FunctionName = "HttpTriggerCSharp1",
* HttpTriggerUrl = "http://test.me",
* Name = "Sample azureFunction",
* UseCommonAlertSchema = true,
* },
* },
* EmailReceivers = new[]
* {
* new AzureNative.Insights.Inputs.EmailReceiverArgs
* {
* EmailAddress = "[email protected] ",
* Name = "John Doe's email",
* UseCommonAlertSchema = false,
* },
* new AzureNative.Insights.Inputs.EmailReceiverArgs
* {
* EmailAddress = "[email protected] ",
* Name = "Jane Smith's email",
* UseCommonAlertSchema = true,
* },
* },
* Enabled = true,
* EventHubReceivers = new[]
* {
* new AzureNative.Insights.Inputs.EventHubReceiverArgs
* {
* EventHubName = "testEventHub",
* EventHubNameSpace = "testEventHubNameSpace",
* Name = "Sample eventHub",
* SubscriptionId = "187f412d-1758-44d9-b052-169e2564721d",
* TenantId = "68a4459a-ccb8-493c-b9da-dd30457d1b84",
* },
* },
* GroupShortName = "sample",
* ItsmReceivers = new[]
* {
* new AzureNative.Insights.Inputs.ItsmReceiverArgs
* {
* ConnectionId = "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1",
* Name = "Sample itsm",
* Region = "westcentralus",
* TicketConfiguration = "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}",
* WorkspaceId = "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c",
* },
* },
* Location = "Global",
* LogicAppReceivers = new[]
* {
* new AzureNative.Insights.Inputs.LogicAppReceiverArgs
* {
* CallbackUrl = "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w",
* Name = "Sample logicApp",
* ResourceId = "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp",
* UseCommonAlertSchema = false,
* },
* },
* ResourceGroupName = "Default-NotificationRules",
* SmsReceivers = new[]
* {
* new AzureNative.Insights.Inputs.SmsReceiverArgs
* {
* CountryCode = "1",
* Name = "John Doe's mobile",
* PhoneNumber = "1234567890",
* },
* new AzureNative.Insights.Inputs.SmsReceiverArgs
* {
* CountryCode = "1",
* Name = "Jane Smith's mobile",
* PhoneNumber = "0987654321",
* },
* },
* Tags = null,
* VoiceReceivers = new[]
* {
* new AzureNative.Insights.Inputs.VoiceReceiverArgs
* {
* CountryCode = "1",
* Name = "Sample voice",
* PhoneNumber = "1234567890",
* },
* },
* WebhookReceivers = new[]
* {
* new AzureNative.Insights.Inputs.WebhookReceiverArgs
* {
* Name = "Sample webhook 1",
* ServiceUri = "http://www.example.com/webhook1",
* UseCommonAlertSchema = true,
* },
* new AzureNative.Insights.Inputs.WebhookReceiverArgs
* {
* IdentifierUri = "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a",
* Name = "Sample webhook 2",
* ObjectId = "d3bb868c-fe44-452c-aa26-769a6538c808",
* ServiceUri = "http://www.example.com/webhook2",
* TenantId = "68a4459a-ccb8-493c-b9da-dd30457d1b84",
* UseAadAuth = true,
* UseCommonAlertSchema = true,
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := insights.NewActionGroup(ctx, "actionGroup", &insights.ActionGroupArgs{
* ActionGroupName: pulumi.String("SampleActionGroup"),
* ArmRoleReceivers: insights.ArmRoleReceiverArray{
* &insights.ArmRoleReceiverArgs{
* Name: pulumi.String("Sample armRole"),
* RoleId: pulumi.String("8e3af657-a8ff-443c-a75c-2fe8c4bcb635"),
* UseCommonAlertSchema: pulumi.Bool(true),
* },
* },
* AutomationRunbookReceivers: insights.AutomationRunbookReceiverArray{
* &insights.AutomationRunbookReceiverArgs{
* AutomationAccountId: pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest"),
* IsGlobalRunbook: pulumi.Bool(false),
* Name: pulumi.String("testRunbook"),
* RunbookName: pulumi.String("Sample runbook"),
* ServiceUri: pulumi.String(""),
* UseCommonAlertSchema: pulumi.Bool(true),
* WebhookResourceId: pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084"),
* },
* },
* AzureAppPushReceivers: insights.AzureAppPushReceiverArray{
* &insights.AzureAppPushReceiverArgs{
* EmailAddress: pulumi.String("[email protected] "),
* Name: pulumi.String("Sample azureAppPush"),
* },
* },
* AzureFunctionReceivers: insights.AzureFunctionReceiverArray{
* &insights.AzureFunctionReceiverArgs{
* FunctionAppResourceId: pulumi.String("/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp"),
* FunctionName: pulumi.String("HttpTriggerCSharp1"),
* HttpTriggerUrl: pulumi.String("http://test.me"),
* Name: pulumi.String("Sample azureFunction"),
* UseCommonAlertSchema: pulumi.Bool(true),
* },
* },
* EmailReceivers: insights.EmailReceiverArray{
* &insights.EmailReceiverArgs{
* EmailAddress: pulumi.String("[email protected] "),
* Name: pulumi.String("John Doe's email"),
* UseCommonAlertSchema: pulumi.Bool(false),
* },
* &insights.EmailReceiverArgs{
* EmailAddress: pulumi.String("[email protected] "),
* Name: pulumi.String("Jane Smith's email"),
* UseCommonAlertSchema: pulumi.Bool(true),
* },
* },
* Enabled: pulumi.Bool(true),
* EventHubReceivers: insights.EventHubReceiverArray{
* &insights.EventHubReceiverArgs{
* EventHubName: pulumi.String("testEventHub"),
* EventHubNameSpace: pulumi.String("testEventHubNameSpace"),
* Name: pulumi.String("Sample eventHub"),
* SubscriptionId: pulumi.String("187f412d-1758-44d9-b052-169e2564721d"),
* TenantId: pulumi.String("68a4459a-ccb8-493c-b9da-dd30457d1b84"),
* },
* },
* GroupShortName: pulumi.String("sample"),
* ItsmReceivers: insights.ItsmReceiverArray{
* &insights.ItsmReceiverArgs{
* ConnectionId: pulumi.String("a3b9076c-ce8e-434e-85b4-aff10cb3c8f1"),
* Name: pulumi.String("Sample itsm"),
* Region: pulumi.String("westcentralus"),
* TicketConfiguration: pulumi.String("{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}"),
* WorkspaceId: pulumi.String("5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c"),
* },
* },
* Location: pulumi.String("Global"),
* LogicAppReceivers: insights.LogicAppReceiverArray{
* &insights.LogicAppReceiverArgs{
* CallbackUrl: pulumi.String("https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w"),
* Name: pulumi.String("Sample logicApp"),
* ResourceId: pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp"),
* UseCommonAlertSchema: pulumi.Bool(false),
* },
* },
* ResourceGroupName: pulumi.String("Default-NotificationRules"),
* SmsReceivers: insights.SmsReceiverArray{
* &insights.SmsReceiverArgs{
* CountryCode: pulumi.String("1"),
* Name: pulumi.String("John Doe's mobile"),
* PhoneNumber: pulumi.String("1234567890"),
* },
* &insights.SmsReceiverArgs{
* CountryCode: pulumi.String("1"),
* Name: pulumi.String("Jane Smith's mobile"),
* PhoneNumber: pulumi.String("0987654321"),
* },
* },
* Tags: nil,
* VoiceReceivers: insights.VoiceReceiverArray{
* &insights.VoiceReceiverArgs{
* CountryCode: pulumi.String("1"),
* Name: pulumi.String("Sample voice"),
* PhoneNumber: pulumi.String("1234567890"),
* },
* },
* WebhookReceivers: insights.WebhookReceiverArray{
* &insights.WebhookReceiverArgs{
* Name: pulumi.String("Sample webhook 1"),
* ServiceUri: pulumi.String("http://www.example.com/webhook1"),
* UseCommonAlertSchema: pulumi.Bool(true),
* },
* &insights.WebhookReceiverArgs{
* IdentifierUri: pulumi.String("http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a"),
* Name: pulumi.String("Sample webhook 2"),
* ObjectId: pulumi.String("d3bb868c-fe44-452c-aa26-769a6538c808"),
* ServiceUri: pulumi.String("http://www.example.com/webhook2"),
* TenantId: pulumi.String("68a4459a-ccb8-493c-b9da-dd30457d1b84"),
* UseAadAuth: pulumi.Bool(true),
* UseCommonAlertSchema: pulumi.Bool(true),
* },
* },
* })
* 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.azurenative.insights.ActionGroup;
* import com.pulumi.azurenative.insights.ActionGroupArgs;
* import com.pulumi.azurenative.insights.inputs.ArmRoleReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.AutomationRunbookReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.AzureAppPushReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.AzureFunctionReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.EmailReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.EventHubReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.ItsmReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.LogicAppReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.SmsReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.VoiceReceiverArgs;
* import com.pulumi.azurenative.insights.inputs.WebhookReceiverArgs;
* 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 actionGroup = new ActionGroup("actionGroup", ActionGroupArgs.builder()
* .actionGroupName("SampleActionGroup")
* .armRoleReceivers(ArmRoleReceiverArgs.builder()
* .name("Sample armRole")
* .roleId("8e3af657-a8ff-443c-a75c-2fe8c4bcb635")
* .useCommonAlertSchema(true)
* .build())
* .automationRunbookReceivers(AutomationRunbookReceiverArgs.builder()
* .automationAccountId("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest")
* .isGlobalRunbook(false)
* .name("testRunbook")
* .runbookName("Sample runbook")
* .serviceUri("")
* .useCommonAlertSchema(true)
* .webhookResourceId("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084")
* .build())
* .azureAppPushReceivers(AzureAppPushReceiverArgs.builder()
* .emailAddress("[email protected] ")
* .name("Sample azureAppPush")
* .build())
* .azureFunctionReceivers(AzureFunctionReceiverArgs.builder()
* .functionAppResourceId("/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp")
* .functionName("HttpTriggerCSharp1")
* .httpTriggerUrl("http://test.me")
* .name("Sample azureFunction")
* .useCommonAlertSchema(true)
* .build())
* .emailReceivers(
* EmailReceiverArgs.builder()
* .emailAddress("[email protected] ")
* .name("John Doe's email")
* .useCommonAlertSchema(false)
* .build(),
* EmailReceiverArgs.builder()
* .emailAddress("[email protected] ")
* .name("Jane Smith's email")
* .useCommonAlertSchema(true)
* .build())
* .enabled(true)
* .eventHubReceivers(EventHubReceiverArgs.builder()
* .eventHubName("testEventHub")
* .eventHubNameSpace("testEventHubNameSpace")
* .name("Sample eventHub")
* .subscriptionId("187f412d-1758-44d9-b052-169e2564721d")
* .tenantId("68a4459a-ccb8-493c-b9da-dd30457d1b84")
* .build())
* .groupShortName("sample")
* .itsmReceivers(ItsmReceiverArgs.builder()
* .connectionId("a3b9076c-ce8e-434e-85b4-aff10cb3c8f1")
* .name("Sample itsm")
* .region("westcentralus")
* .ticketConfiguration("{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}")
* .workspaceId("5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c")
* .build())
* .location("Global")
* .logicAppReceivers(LogicAppReceiverArgs.builder()
* .callbackUrl("https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w")
* .name("Sample logicApp")
* .resourceId("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp")
* .useCommonAlertSchema(false)
* .build())
* .resourceGroupName("Default-NotificationRules")
* .smsReceivers(
* SmsReceiverArgs.builder()
* .countryCode("1")
* .name("John Doe's mobile")
* .phoneNumber("1234567890")
* .build(),
* SmsReceiverArgs.builder()
* .countryCode("1")
* .name("Jane Smith's mobile")
* .phoneNumber("0987654321")
* .build())
* .tags()
* .voiceReceivers(VoiceReceiverArgs.builder()
* .countryCode("1")
* .name("Sample voice")
* .phoneNumber("1234567890")
* .build())
* .webhookReceivers(
* WebhookReceiverArgs.builder()
* .name("Sample webhook 1")
* .serviceUri("http://www.example.com/webhook1")
* .useCommonAlertSchema(true)
* .build(),
* WebhookReceiverArgs.builder()
* .identifierUri("http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a")
* .name("Sample webhook 2")
* .objectId("d3bb868c-fe44-452c-aa26-769a6538c808")
* .serviceUri("http://www.example.com/webhook2")
* .tenantId("68a4459a-ccb8-493c-b9da-dd30457d1b84")
* .useAadAuth(true)
* .useCommonAlertSchema(true)
* .build())
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:insights:ActionGroup SampleActionGroup /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}
* ```
* @property actionGroupName The name of the action group.
* @property armRoleReceivers The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.
* @property automationRunbookReceivers The list of AutomationRunbook receivers that are part of this action group.
* @property azureAppPushReceivers The list of AzureAppPush receivers that are part of this action group.
* @property azureFunctionReceivers The list of azure function receivers that are part of this action group.
* @property emailReceivers The list of email receivers that are part of this action group.
* @property enabled Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications.
* @property eventHubReceivers The list of event hub receivers that are part of this action group.
* @property groupShortName The short name of the action group. This will be used in SMS messages.
* @property itsmReceivers The list of ITSM receivers that are part of this action group.
* @property location Resource location
* @property logicAppReceivers The list of logic app receivers that are part of this action group.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property smsReceivers The list of SMS receivers that are part of this action group.
* @property tags Resource tags
* @property voiceReceivers The list of voice receivers that are part of this action group.
* @property webhookReceivers The list of webhook receivers that are part of this action group.
*/
public data class ActionGroupArgs(
public val actionGroupName: Output? = null,
public val armRoleReceivers: Output>? = null,
public val automationRunbookReceivers: Output>? = null,
public val azureAppPushReceivers: Output>? = null,
public val azureFunctionReceivers: Output>? = null,
public val emailReceivers: Output>? = null,
public val enabled: Output? = null,
public val eventHubReceivers: Output>? = null,
public val groupShortName: Output? = null,
public val itsmReceivers: Output>? = null,
public val location: Output? = null,
public val logicAppReceivers: Output>? = null,
public val resourceGroupName: Output? = null,
public val smsReceivers: Output>? = null,
public val tags: Output>? = null,
public val voiceReceivers: Output>? = null,
public val webhookReceivers: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.ActionGroupArgs =
com.pulumi.azurenative.insights.ActionGroupArgs.builder()
.actionGroupName(actionGroupName?.applyValue({ args0 -> args0 }))
.armRoleReceivers(
armRoleReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.automationRunbookReceivers(
automationRunbookReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.azureAppPushReceivers(
azureAppPushReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.azureFunctionReceivers(
azureFunctionReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.emailReceivers(
emailReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.enabled(enabled?.applyValue({ args0 -> args0 }))
.eventHubReceivers(
eventHubReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.groupShortName(groupShortName?.applyValue({ args0 -> args0 }))
.itsmReceivers(
itsmReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.location(location?.applyValue({ args0 -> args0 }))
.logicAppReceivers(
logicAppReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.smsReceivers(
smsReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.voiceReceivers(
voiceReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.webhookReceivers(
webhookReceivers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ActionGroupArgs].
*/
@PulumiTagMarker
public class ActionGroupArgsBuilder internal constructor() {
private var actionGroupName: Output? = null
private var armRoleReceivers: Output>? = null
private var automationRunbookReceivers: Output>? = null
private var azureAppPushReceivers: Output>? = null
private var azureFunctionReceivers: Output>? = null
private var emailReceivers: Output>? = null
private var enabled: Output? = null
private var eventHubReceivers: Output>? = null
private var groupShortName: Output? = null
private var itsmReceivers: Output>? = null
private var location: Output? = null
private var logicAppReceivers: Output>? = null
private var resourceGroupName: Output? = null
private var smsReceivers: Output>? = null
private var tags: Output>? = null
private var voiceReceivers: Output>? = null
private var webhookReceivers: Output>? = null
/**
* @param value The name of the action group.
*/
@JvmName("aexxwyredkeoxsyv")
public suspend fun actionGroupName(`value`: Output) {
this.actionGroupName = value
}
/**
* @param value The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.
*/
@JvmName("rmugqpakirinnsfi")
public suspend fun armRoleReceivers(`value`: Output>) {
this.armRoleReceivers = value
}
@JvmName("ofbwqoqjrjvoryri")
public suspend fun armRoleReceivers(vararg values: Output) {
this.armRoleReceivers = Output.all(values.asList())
}
/**
* @param values The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.
*/
@JvmName("hyejmpvqlxtxusvn")
public suspend fun armRoleReceivers(values: List>) {
this.armRoleReceivers = Output.all(values)
}
/**
* @param value The list of AutomationRunbook receivers that are part of this action group.
*/
@JvmName("srojahhrtgdworvx")
public suspend fun automationRunbookReceivers(`value`: Output>) {
this.automationRunbookReceivers = value
}
@JvmName("kifjulysoyibybye")
public suspend fun automationRunbookReceivers(vararg values: Output) {
this.automationRunbookReceivers = Output.all(values.asList())
}
/**
* @param values The list of AutomationRunbook receivers that are part of this action group.
*/
@JvmName("tikigocbpuytheit")
public suspend fun automationRunbookReceivers(values: List>) {
this.automationRunbookReceivers = Output.all(values)
}
/**
* @param value The list of AzureAppPush receivers that are part of this action group.
*/
@JvmName("wncqwbmdavroxnuk")
public suspend fun azureAppPushReceivers(`value`: Output>) {
this.azureAppPushReceivers = value
}
@JvmName("oajiuvupsuuuaohi")
public suspend fun azureAppPushReceivers(vararg values: Output) {
this.azureAppPushReceivers = Output.all(values.asList())
}
/**
* @param values The list of AzureAppPush receivers that are part of this action group.
*/
@JvmName("drddyhcqlxbmlhjo")
public suspend fun azureAppPushReceivers(values: List>) {
this.azureAppPushReceivers = Output.all(values)
}
/**
* @param value The list of azure function receivers that are part of this action group.
*/
@JvmName("xfwgjaoxgfdrohay")
public suspend fun azureFunctionReceivers(`value`: Output>) {
this.azureFunctionReceivers = value
}
@JvmName("yicgrphfitjnfigt")
public suspend fun azureFunctionReceivers(vararg values: Output) {
this.azureFunctionReceivers = Output.all(values.asList())
}
/**
* @param values The list of azure function receivers that are part of this action group.
*/
@JvmName("dpmsavmlrmquwixu")
public suspend fun azureFunctionReceivers(values: List>) {
this.azureFunctionReceivers = Output.all(values)
}
/**
* @param value The list of email receivers that are part of this action group.
*/
@JvmName("gxfnkabhfvxcnrko")
public suspend fun emailReceivers(`value`: Output>) {
this.emailReceivers = value
}
@JvmName("riuogsvxrtvsyhfs")
public suspend fun emailReceivers(vararg values: Output) {
this.emailReceivers = Output.all(values.asList())
}
/**
* @param values The list of email receivers that are part of this action group.
*/
@JvmName("mfjtcgcdtyijvuae")
public suspend fun emailReceivers(values: List>) {
this.emailReceivers = Output.all(values)
}
/**
* @param value Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications.
*/
@JvmName("vfgujfauisqsbork")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The list of event hub receivers that are part of this action group.
*/
@JvmName("ykcvhqhiabxnyljp")
public suspend fun eventHubReceivers(`value`: Output>) {
this.eventHubReceivers = value
}
@JvmName("tqsvudbuyraryqhl")
public suspend fun eventHubReceivers(vararg values: Output) {
this.eventHubReceivers = Output.all(values.asList())
}
/**
* @param values The list of event hub receivers that are part of this action group.
*/
@JvmName("fxiolijfnhakubgq")
public suspend fun eventHubReceivers(values: List>) {
this.eventHubReceivers = Output.all(values)
}
/**
* @param value The short name of the action group. This will be used in SMS messages.
*/
@JvmName("vkptvrmtdgxbchuw")
public suspend fun groupShortName(`value`: Output) {
this.groupShortName = value
}
/**
* @param value The list of ITSM receivers that are part of this action group.
*/
@JvmName("ifbymiprhyyhvuky")
public suspend fun itsmReceivers(`value`: Output>) {
this.itsmReceivers = value
}
@JvmName("vkbujogxdyngnhqg")
public suspend fun itsmReceivers(vararg values: Output) {
this.itsmReceivers = Output.all(values.asList())
}
/**
* @param values The list of ITSM receivers that are part of this action group.
*/
@JvmName("xjockfchpqhopsjh")
public suspend fun itsmReceivers(values: List>) {
this.itsmReceivers = Output.all(values)
}
/**
* @param value Resource location
*/
@JvmName("lvupvgerwisbreir")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The list of logic app receivers that are part of this action group.
*/
@JvmName("dbmeytobjxomckpg")
public suspend fun logicAppReceivers(`value`: Output>) {
this.logicAppReceivers = value
}
@JvmName("fluoklncgkrahkcq")
public suspend fun logicAppReceivers(vararg values: Output) {
this.logicAppReceivers = Output.all(values.asList())
}
/**
* @param values The list of logic app receivers that are part of this action group.
*/
@JvmName("lytdutpnbfdwaclh")
public suspend fun logicAppReceivers(values: List>) {
this.logicAppReceivers = Output.all(values)
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("seoimdanmqyfpwet")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The list of SMS receivers that are part of this action group.
*/
@JvmName("jjsctceocysrfhco")
public suspend fun smsReceivers(`value`: Output>) {
this.smsReceivers = value
}
@JvmName("wygfljilryibtche")
public suspend fun smsReceivers(vararg values: Output) {
this.smsReceivers = Output.all(values.asList())
}
/**
* @param values The list of SMS receivers that are part of this action group.
*/
@JvmName("aplleunjbhhhbynr")
public suspend fun smsReceivers(values: List>) {
this.smsReceivers = Output.all(values)
}
/**
* @param value Resource tags
*/
@JvmName("oxcggraeuvfcdinm")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The list of voice receivers that are part of this action group.
*/
@JvmName("vqbfhvjhadihdntc")
public suspend fun voiceReceivers(`value`: Output>) {
this.voiceReceivers = value
}
@JvmName("fmsjkygpyqvcokxc")
public suspend fun voiceReceivers(vararg values: Output) {
this.voiceReceivers = Output.all(values.asList())
}
/**
* @param values The list of voice receivers that are part of this action group.
*/
@JvmName("sqvplroaeacxgwls")
public suspend fun voiceReceivers(values: List>) {
this.voiceReceivers = Output.all(values)
}
/**
* @param value The list of webhook receivers that are part of this action group.
*/
@JvmName("ymsorhlaopmghvbb")
public suspend fun webhookReceivers(`value`: Output>) {
this.webhookReceivers = value
}
@JvmName("greeatesvmssjwhr")
public suspend fun webhookReceivers(vararg values: Output) {
this.webhookReceivers = Output.all(values.asList())
}
/**
* @param values The list of webhook receivers that are part of this action group.
*/
@JvmName("opmkfyrrefqmvtdv")
public suspend fun webhookReceivers(values: List>) {
this.webhookReceivers = Output.all(values)
}
/**
* @param value The name of the action group.
*/
@JvmName("fknivxligipbreud")
public suspend fun actionGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.actionGroupName = mapped
}
/**
* @param value The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.
*/
@JvmName("ndhmboosvklflmec")
public suspend fun armRoleReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.armRoleReceivers = mapped
}
/**
* @param argument The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.
*/
@JvmName("wgytykuurhgatcvj")
public suspend fun armRoleReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ArmRoleReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.armRoleReceivers = mapped
}
/**
* @param argument The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.
*/
@JvmName("mslkxogkkluptihf")
public suspend fun armRoleReceivers(vararg argument: suspend ArmRoleReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ArmRoleReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.armRoleReceivers = mapped
}
/**
* @param argument The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.
*/
@JvmName("xjafjunpaohxjlin")
public suspend fun armRoleReceivers(argument: suspend ArmRoleReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(ArmRoleReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.armRoleReceivers = mapped
}
/**
* @param values The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.
*/
@JvmName("prbxmesuiuyboilj")
public suspend fun armRoleReceivers(vararg values: ArmRoleReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.armRoleReceivers = mapped
}
/**
* @param value The list of AutomationRunbook receivers that are part of this action group.
*/
@JvmName("issddmkokjrxafsc")
public suspend fun automationRunbookReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.automationRunbookReceivers = mapped
}
/**
* @param argument The list of AutomationRunbook receivers that are part of this action group.
*/
@JvmName("xglpldfxycaccywe")
public suspend fun automationRunbookReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
AutomationRunbookReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.automationRunbookReceivers = mapped
}
/**
* @param argument The list of AutomationRunbook receivers that are part of this action group.
*/
@JvmName("chqojkvgvjyyuhsl")
public suspend fun automationRunbookReceivers(vararg argument: suspend AutomationRunbookReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
AutomationRunbookReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.automationRunbookReceivers = mapped
}
/**
* @param argument The list of AutomationRunbook receivers that are part of this action group.
*/
@JvmName("obikuojfeimxyqhf")
public suspend fun automationRunbookReceivers(argument: suspend AutomationRunbookReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
AutomationRunbookReceiverArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.automationRunbookReceivers = mapped
}
/**
* @param values The list of AutomationRunbook receivers that are part of this action group.
*/
@JvmName("haouerqfvntawffv")
public suspend fun automationRunbookReceivers(vararg values: AutomationRunbookReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.automationRunbookReceivers = mapped
}
/**
* @param value The list of AzureAppPush receivers that are part of this action group.
*/
@JvmName("sjtakhgrlsitgtsx")
public suspend fun azureAppPushReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.azureAppPushReceivers = mapped
}
/**
* @param argument The list of AzureAppPush receivers that are part of this action group.
*/
@JvmName("kltmvsyahjeepaji")
public suspend fun azureAppPushReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
AzureAppPushReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.azureAppPushReceivers = mapped
}
/**
* @param argument The list of AzureAppPush receivers that are part of this action group.
*/
@JvmName("arphmlvxeqamduyp")
public suspend fun azureAppPushReceivers(vararg argument: suspend AzureAppPushReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
AzureAppPushReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.azureAppPushReceivers = mapped
}
/**
* @param argument The list of AzureAppPush receivers that are part of this action group.
*/
@JvmName("nyoawxgvbvnmhwkd")
public suspend fun azureAppPushReceivers(argument: suspend AzureAppPushReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(AzureAppPushReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.azureAppPushReceivers = mapped
}
/**
* @param values The list of AzureAppPush receivers that are part of this action group.
*/
@JvmName("nckhncvjufvctane")
public suspend fun azureAppPushReceivers(vararg values: AzureAppPushReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.azureAppPushReceivers = mapped
}
/**
* @param value The list of azure function receivers that are part of this action group.
*/
@JvmName("pwulnqbyeffsvqki")
public suspend fun azureFunctionReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.azureFunctionReceivers = mapped
}
/**
* @param argument The list of azure function receivers that are part of this action group.
*/
@JvmName("wuypkxhydhurstdp")
public suspend fun azureFunctionReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
AzureFunctionReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.azureFunctionReceivers = mapped
}
/**
* @param argument The list of azure function receivers that are part of this action group.
*/
@JvmName("adekgctblqfkegew")
public suspend fun azureFunctionReceivers(vararg argument: suspend AzureFunctionReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
AzureFunctionReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.azureFunctionReceivers = mapped
}
/**
* @param argument The list of azure function receivers that are part of this action group.
*/
@JvmName("hvyrgaqogudwxdni")
public suspend fun azureFunctionReceivers(argument: suspend AzureFunctionReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(AzureFunctionReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.azureFunctionReceivers = mapped
}
/**
* @param values The list of azure function receivers that are part of this action group.
*/
@JvmName("gbddlkfegchddfpw")
public suspend fun azureFunctionReceivers(vararg values: AzureFunctionReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.azureFunctionReceivers = mapped
}
/**
* @param value The list of email receivers that are part of this action group.
*/
@JvmName("txbvnefngcedtbfx")
public suspend fun emailReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.emailReceivers = mapped
}
/**
* @param argument The list of email receivers that are part of this action group.
*/
@JvmName("fymwpwdvdomoyupi")
public suspend fun emailReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
EmailReceiverArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.emailReceivers = mapped
}
/**
* @param argument The list of email receivers that are part of this action group.
*/
@JvmName("mlwwncbthpixwujv")
public suspend fun emailReceivers(vararg argument: suspend EmailReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
EmailReceiverArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.emailReceivers = mapped
}
/**
* @param argument The list of email receivers that are part of this action group.
*/
@JvmName("hpnyunnojocspmko")
public suspend fun emailReceivers(argument: suspend EmailReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(EmailReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.emailReceivers = mapped
}
/**
* @param values The list of email receivers that are part of this action group.
*/
@JvmName("woqcosculycjdthe")
public suspend fun emailReceivers(vararg values: EmailReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.emailReceivers = mapped
}
/**
* @param value Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications.
*/
@JvmName("vshvjfwyxawrxjor")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The list of event hub receivers that are part of this action group.
*/
@JvmName("wlwxqptodnhdehwo")
public suspend fun eventHubReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.eventHubReceivers = mapped
}
/**
* @param argument The list of event hub receivers that are part of this action group.
*/
@JvmName("wrtenifsvprqrykp")
public suspend fun eventHubReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
EventHubReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.eventHubReceivers = mapped
}
/**
* @param argument The list of event hub receivers that are part of this action group.
*/
@JvmName("ygjbvxdhevufapdg")
public suspend fun eventHubReceivers(vararg argument: suspend EventHubReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
EventHubReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.eventHubReceivers = mapped
}
/**
* @param argument The list of event hub receivers that are part of this action group.
*/
@JvmName("magsffegiwshapaq")
public suspend fun eventHubReceivers(argument: suspend EventHubReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(EventHubReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.eventHubReceivers = mapped
}
/**
* @param values The list of event hub receivers that are part of this action group.
*/
@JvmName("amkprpdaqqqjlxqt")
public suspend fun eventHubReceivers(vararg values: EventHubReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.eventHubReceivers = mapped
}
/**
* @param value The short name of the action group. This will be used in SMS messages.
*/
@JvmName("bpskquyrorldarou")
public suspend fun groupShortName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.groupShortName = mapped
}
/**
* @param value The list of ITSM receivers that are part of this action group.
*/
@JvmName("pavxhbxggqqjhnyw")
public suspend fun itsmReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.itsmReceivers = mapped
}
/**
* @param argument The list of ITSM receivers that are part of this action group.
*/
@JvmName("qbhhowfgaluyxyxy")
public suspend fun itsmReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ItsmReceiverArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.itsmReceivers = mapped
}
/**
* @param argument The list of ITSM receivers that are part of this action group.
*/
@JvmName("aswmxestcceewkcc")
public suspend fun itsmReceivers(vararg argument: suspend ItsmReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ItsmReceiverArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.itsmReceivers = mapped
}
/**
* @param argument The list of ITSM receivers that are part of this action group.
*/
@JvmName("oydimhlhmshgmggf")
public suspend fun itsmReceivers(argument: suspend ItsmReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(ItsmReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.itsmReceivers = mapped
}
/**
* @param values The list of ITSM receivers that are part of this action group.
*/
@JvmName("iryslcjmxbbwealc")
public suspend fun itsmReceivers(vararg values: ItsmReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.itsmReceivers = mapped
}
/**
* @param value Resource location
*/
@JvmName("pekblhraagblcnfw")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The list of logic app receivers that are part of this action group.
*/
@JvmName("hwjykwnhdbtcqhen")
public suspend fun logicAppReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logicAppReceivers = mapped
}
/**
* @param argument The list of logic app receivers that are part of this action group.
*/
@JvmName("nmxphpplblfvwatk")
public suspend fun logicAppReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
LogicAppReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.logicAppReceivers = mapped
}
/**
* @param argument The list of logic app receivers that are part of this action group.
*/
@JvmName("pmksxohfcmatfyjw")
public suspend fun logicAppReceivers(vararg argument: suspend LogicAppReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
LogicAppReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.logicAppReceivers = mapped
}
/**
* @param argument The list of logic app receivers that are part of this action group.
*/
@JvmName("dfvelclgmciiunsl")
public suspend fun logicAppReceivers(argument: suspend LogicAppReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(LogicAppReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.logicAppReceivers = mapped
}
/**
* @param values The list of logic app receivers that are part of this action group.
*/
@JvmName("jqfwispgrbgbtydo")
public suspend fun logicAppReceivers(vararg values: LogicAppReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.logicAppReceivers = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("igipfjaulwofpwpl")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The list of SMS receivers that are part of this action group.
*/
@JvmName("rrkyvquxchuygsid")
public suspend fun smsReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.smsReceivers = mapped
}
/**
* @param argument The list of SMS receivers that are part of this action group.
*/
@JvmName("weewawjrtpybrjta")
public suspend fun smsReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map { SmsReceiverArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.smsReceivers = mapped
}
/**
* @param argument The list of SMS receivers that are part of this action group.
*/
@JvmName("hwdghkjjlpgyoblw")
public suspend fun smsReceivers(vararg argument: suspend SmsReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { SmsReceiverArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.smsReceivers = mapped
}
/**
* @param argument The list of SMS receivers that are part of this action group.
*/
@JvmName("wdamepecoayvabac")
public suspend fun smsReceivers(argument: suspend SmsReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(SmsReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.smsReceivers = mapped
}
/**
* @param values The list of SMS receivers that are part of this action group.
*/
@JvmName("fxtwcbmouxqialim")
public suspend fun smsReceivers(vararg values: SmsReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.smsReceivers = mapped
}
/**
* @param value Resource tags
*/
@JvmName("gncvvukpurldxoib")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags
*/
@JvmName("iuuohpfjkjkxbacm")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value The list of voice receivers that are part of this action group.
*/
@JvmName("egagrjgptgbiqyue")
public suspend fun voiceReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.voiceReceivers = mapped
}
/**
* @param argument The list of voice receivers that are part of this action group.
*/
@JvmName("jlrunavjcyapwtko")
public suspend fun voiceReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
VoiceReceiverArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.voiceReceivers = mapped
}
/**
* @param argument The list of voice receivers that are part of this action group.
*/
@JvmName("syetpmceskhectlx")
public suspend fun voiceReceivers(vararg argument: suspend VoiceReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
VoiceReceiverArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.voiceReceivers = mapped
}
/**
* @param argument The list of voice receivers that are part of this action group.
*/
@JvmName("kpvhpondvngpweww")
public suspend fun voiceReceivers(argument: suspend VoiceReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(VoiceReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.voiceReceivers = mapped
}
/**
* @param values The list of voice receivers that are part of this action group.
*/
@JvmName("uoypsihuscklfgoi")
public suspend fun voiceReceivers(vararg values: VoiceReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.voiceReceivers = mapped
}
/**
* @param value The list of webhook receivers that are part of this action group.
*/
@JvmName("rfegexdxdcjidjcn")
public suspend fun webhookReceivers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.webhookReceivers = mapped
}
/**
* @param argument The list of webhook receivers that are part of this action group.
*/
@JvmName("ehfoigajptnrknms")
public suspend fun webhookReceivers(argument: List Unit>) {
val toBeMapped = argument.toList().map {
WebhookReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.webhookReceivers = mapped
}
/**
* @param argument The list of webhook receivers that are part of this action group.
*/
@JvmName("nlinyckabdrtawnu")
public suspend fun webhookReceivers(vararg argument: suspend WebhookReceiverArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
WebhookReceiverArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.webhookReceivers = mapped
}
/**
* @param argument The list of webhook receivers that are part of this action group.
*/
@JvmName("jgmgyiynswoycrkv")
public suspend fun webhookReceivers(argument: suspend WebhookReceiverArgsBuilder.() -> Unit) {
val toBeMapped = listOf(WebhookReceiverArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.webhookReceivers = mapped
}
/**
* @param values The list of webhook receivers that are part of this action group.
*/
@JvmName("kgdnkptfeedpjoxv")
public suspend fun webhookReceivers(vararg values: WebhookReceiverArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.webhookReceivers = mapped
}
internal fun build(): ActionGroupArgs = ActionGroupArgs(
actionGroupName = actionGroupName,
armRoleReceivers = armRoleReceivers,
automationRunbookReceivers = automationRunbookReceivers,
azureAppPushReceivers = azureAppPushReceivers,
azureFunctionReceivers = azureFunctionReceivers,
emailReceivers = emailReceivers,
enabled = enabled,
eventHubReceivers = eventHubReceivers,
groupShortName = groupShortName,
itsmReceivers = itsmReceivers,
location = location,
logicAppReceivers = logicAppReceivers,
resourceGroupName = resourceGroupName,
smsReceivers = smsReceivers,
tags = tags,
voiceReceivers = voiceReceivers,
webhookReceivers = webhookReceivers,
)
}