All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getActionGroup.
 * @property armRoleReceivers One or more `arm_role_receiver` blocks as defined below.
 * @property automationRunbookReceivers One or more `automation_runbook_receiver` blocks as defined below.
 * @property azureAppPushReceivers One or more `azure_app_push_receiver` blocks as defined below.
 * @property azureFunctionReceivers One or more `azure_function_receiver` blocks as defined below.
 * @property emailReceivers One or more `email_receiver` blocks as defined below.
 * @property enabled Whether this action group is enabled.
 * @property eventHubReceivers One or more `event_hub_receiver` blocks as defined below.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property itsmReceivers One or more `itsm_receiver` blocks as defined below.
 * @property logicAppReceivers One or more `logic_app_receiver` blocks as defined below.
 * @property name The name of the webhook receiver.
 * @property resourceGroupName
 * @property shortName The short name of the action group.
 * @property smsReceivers One or more `sms_receiver` blocks as defined below.
 * @property voiceReceivers One or more `voice_receiver` blocks as defined below.
 * @property webhookReceivers One or more `webhook_receiver` blocks as defined below.
 */
public data class GetActionGroupResult(
    public val armRoleReceivers: List,
    public val automationRunbookReceivers: List,
    public val azureAppPushReceivers: List,
    public val azureFunctionReceivers: List,
    public val emailReceivers: List,
    public val enabled: Boolean,
    public val eventHubReceivers: List,
    public val id: String,
    public val itsmReceivers: List,
    public val logicAppReceivers: List,
    public val name: String,
    public val resourceGroupName: String,
    public val shortName: String,
    public val smsReceivers: List,
    public val voiceReceivers: List,
    public val webhookReceivers: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.GetActionGroupResult): GetActionGroupResult = GetActionGroupResult(
            armRoleReceivers = javaType.armRoleReceivers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupArmRoleReceiver.Companion.toKotlin(args0)
                })
            }),
            automationRunbookReceivers = javaType.automationRunbookReceivers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupAutomationRunbookReceiver.Companion.toKotlin(args0)
                })
            }),
            azureAppPushReceivers = javaType.azureAppPushReceivers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupAzureAppPushReceiver.Companion.toKotlin(args0)
                })
            }),
            azureFunctionReceivers = javaType.azureFunctionReceivers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupAzureFunctionReceiver.Companion.toKotlin(args0)
                })
            }),
            emailReceivers = javaType.emailReceivers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupEmailReceiver.Companion.toKotlin(args0)
                })
            }),
            enabled = javaType.enabled(),
            eventHubReceivers = javaType.eventHubReceivers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupEventHubReceiver.Companion.toKotlin(args0)
                })
            }),
            id = javaType.id(),
            itsmReceivers = javaType.itsmReceivers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupItsmReceiver.Companion.toKotlin(args0)
                })
            }),
            logicAppReceivers = javaType.logicAppReceivers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupLogicAppReceiver.Companion.toKotlin(args0)
                })
            }),
            name = javaType.name(),
            resourceGroupName = javaType.resourceGroupName(),
            shortName = javaType.shortName(),
            smsReceivers = javaType.smsReceivers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupSmsReceiver.Companion.toKotlin(args0)
                })
            }),
            voiceReceivers = javaType.voiceReceivers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupVoiceReceiver.Companion.toKotlin(args0)
                })
            }),
            webhookReceivers = javaType.webhookReceivers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.GetActionGroupWebhookReceiver.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy