SecurityContactArgs

data class SecurityContactArgs(val alertNotifications: Output<SecurityContactPropertiesAlertNotificationsArgs>? = null, val emails: Output<String>? = null, val notificationsByRole: Output<SecurityContactPropertiesNotificationsByRoleArgs>? = null, val phone: Output<String>? = null, val securityContactName: Output<String>? = null) : ConvertibleToJava<SecurityContactArgs>

Contact details and configurations for notifications coming from Microsoft Defender for Cloud. API Version: 2020-01-01-preview.

Example Usage

Create security contact data

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var securityContact = new AzureNative.Security.SecurityContact("securityContact", new()
{
AlertNotifications = new AzureNative.Security.Inputs.SecurityContactPropertiesAlertNotificationsArgs
{
MinimalSeverity = "Low",
State = "On",
},
Emails = "john@contoso.com;jane@contoso.com",
NotificationsByRole = new AzureNative.Security.Inputs.SecurityContactPropertiesNotificationsByRoleArgs
{
Roles = new[]
{
"Owner",
},
State = "On",
},
Phone = "(214)275-4038",
SecurityContactName = "default",
});
});
package main
import (
security "github.com/pulumi/pulumi-azure-native-sdk/security"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := security.NewSecurityContact(ctx, "securityContact", &security.SecurityContactArgs{
AlertNotifications: &security.SecurityContactPropertiesAlertNotificationsArgs{
MinimalSeverity: pulumi.String("Low"),
State: pulumi.String("On"),
},
Emails: pulumi.String("john@contoso.com;jane@contoso.com"),
NotificationsByRole: &security.SecurityContactPropertiesNotificationsByRoleArgs{
Roles: pulumi.StringArray{
pulumi.String("Owner"),
},
State: pulumi.String("On"),
},
Phone: pulumi.String("(214)275-4038"),
SecurityContactName: pulumi.String("default"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.security.SecurityContact;
import com.pulumi.azurenative.security.SecurityContactArgs;
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 securityContact = new SecurityContact("securityContact", SecurityContactArgs.builder()
.alertNotifications(Map.ofEntries(
Map.entry("minimalSeverity", "Low"),
Map.entry("state", "On")
))
.emails("john@contoso.com;jane@contoso.com")
.notificationsByRole(Map.ofEntries(
Map.entry("roles", "Owner"),
Map.entry("state", "On")
))
.phone("(214)275-4038")
.securityContactName("default")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:security:SecurityContact default /subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/securityContacts/default

Constructors

Link copied to clipboard
constructor(alertNotifications: Output<SecurityContactPropertiesAlertNotificationsArgs>? = null, emails: Output<String>? = null, notificationsByRole: Output<SecurityContactPropertiesNotificationsByRoleArgs>? = null, phone: Output<String>? = null, securityContactName: Output<String>? = null)

Properties

Link copied to clipboard

Defines whether to send email notifications about new security alerts

Link copied to clipboard
val emails: Output<String>? = null

List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.

Link copied to clipboard

Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.

Link copied to clipboard
val phone: Output<String>? = null

The security contact's phone number

Link copied to clipboard
val securityContactName: Output<String>? = null

Name of the security contact object

Functions

Link copied to clipboard
open override fun toJava(): SecurityContactArgs