aviatrix.AviatrixControllerEmailConfig

Explore with Pulumi AI

The aviatrix_controller_email_config resource allows management of an Aviatrix Controller’s notification email configurations.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an Aviatrix Controller Email Config
    var testEmailConfig = new Aviatrix.AviatrixControllerEmailConfig("testEmailConfig", new()
    {
        AdminAlertEmail = "administrator@mycompany.com",
        CriticalAlertEmail = "it-support@mycompany.com",
        SecurityEventEmail = "security-admin-group@mycompany.com",
        StatusChangeEmail = "it-admin-group@mycompany.com",
    });

});
package main

import (
	"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aviatrix.NewAviatrixControllerEmailConfig(ctx, "testEmailConfig", &aviatrix.AviatrixControllerEmailConfigArgs{
			AdminAlertEmail:    pulumi.String("administrator@mycompany.com"),
			CriticalAlertEmail: pulumi.String("it-support@mycompany.com"),
			SecurityEventEmail: pulumi.String("security-admin-group@mycompany.com"),
			StatusChangeEmail:  pulumi.String("it-admin-group@mycompany.com"),
		})
		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.aviatrix.AviatrixControllerEmailConfig;
import com.pulumi.aviatrix.AviatrixControllerEmailConfigArgs;
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 testEmailConfig = new AviatrixControllerEmailConfig("testEmailConfig", AviatrixControllerEmailConfigArgs.builder()        
            .adminAlertEmail("administrator@mycompany.com")
            .criticalAlertEmail("it-support@mycompany.com")
            .securityEventEmail("security-admin-group@mycompany.com")
            .statusChangeEmail("it-admin-group@mycompany.com")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix Controller Email Config
test_email_config = aviatrix.AviatrixControllerEmailConfig("testEmailConfig",
    admin_alert_email="administrator@mycompany.com",
    critical_alert_email="it-support@mycompany.com",
    security_event_email="security-admin-group@mycompany.com",
    status_change_email="it-admin-group@mycompany.com")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Aviatrix Controller Email Config
const testEmailConfig = new aviatrix.AviatrixControllerEmailConfig("test_email_config", {
    adminAlertEmail: "administrator@mycompany.com",
    criticalAlertEmail: "it-support@mycompany.com",
    securityEventEmail: "security-admin-group@mycompany.com",
    statusChangeEmail: "it-admin-group@mycompany.com",
});
resources:
  # Create an Aviatrix Controller Email Config
  testEmailConfig:
    type: aviatrix:AviatrixControllerEmailConfig
    properties:
      adminAlertEmail: administrator@mycompany.com
      criticalAlertEmail: it-support@mycompany.com
      securityEventEmail: security-admin-group@mycompany.com
      statusChangeEmail: it-admin-group@mycompany.com
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an Aviatrix Controller Email Config and configure the Status Change Notification Interval
    var testEmailConfig = new Aviatrix.AviatrixControllerEmailConfig("testEmailConfig", new()
    {
        AdminAlertEmail = "administrator@mycompany.com",
        CriticalAlertEmail = "it-support@mycompany.com",
        SecurityEventEmail = "security-admin-group@mycompany.com",
        StatusChangeEmail = "it-admin-group@mycompany.com",
        StatusChangeNotificationInterval = 20,
    });

});
package main

import (
	"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aviatrix.NewAviatrixControllerEmailConfig(ctx, "testEmailConfig", &aviatrix.AviatrixControllerEmailConfigArgs{
			AdminAlertEmail:                  pulumi.String("administrator@mycompany.com"),
			CriticalAlertEmail:               pulumi.String("it-support@mycompany.com"),
			SecurityEventEmail:               pulumi.String("security-admin-group@mycompany.com"),
			StatusChangeEmail:                pulumi.String("it-admin-group@mycompany.com"),
			StatusChangeNotificationInterval: pulumi.Int(20),
		})
		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.aviatrix.AviatrixControllerEmailConfig;
import com.pulumi.aviatrix.AviatrixControllerEmailConfigArgs;
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 testEmailConfig = new AviatrixControllerEmailConfig("testEmailConfig", AviatrixControllerEmailConfigArgs.builder()        
            .adminAlertEmail("administrator@mycompany.com")
            .criticalAlertEmail("it-support@mycompany.com")
            .securityEventEmail("security-admin-group@mycompany.com")
            .statusChangeEmail("it-admin-group@mycompany.com")
            .statusChangeNotificationInterval(20)
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix Controller Email Config and configure the Status Change Notification Interval
test_email_config = aviatrix.AviatrixControllerEmailConfig("testEmailConfig",
    admin_alert_email="administrator@mycompany.com",
    critical_alert_email="it-support@mycompany.com",
    security_event_email="security-admin-group@mycompany.com",
    status_change_email="it-admin-group@mycompany.com",
    status_change_notification_interval=20)
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Aviatrix Controller Email Config and configure the Status Change Notification Interval
const testEmailConfig = new aviatrix.AviatrixControllerEmailConfig("test_email_config", {
    adminAlertEmail: "administrator@mycompany.com",
    criticalAlertEmail: "it-support@mycompany.com",
    securityEventEmail: "security-admin-group@mycompany.com",
    statusChangeEmail: "it-admin-group@mycompany.com",
    statusChangeNotificationInterval: 20,
});
resources:
  # Create an Aviatrix Controller Email Config and configure the Status Change Notification Interval
  testEmailConfig:
    type: aviatrix:AviatrixControllerEmailConfig
    properties:
      adminAlertEmail: administrator@mycompany.com
      criticalAlertEmail: it-support@mycompany.com
      securityEventEmail: security-admin-group@mycompany.com
      statusChangeEmail: it-admin-group@mycompany.com
      statusChangeNotificationInterval: 20

Create AviatrixControllerEmailConfig Resource

new AviatrixControllerEmailConfig(name: string, args: AviatrixControllerEmailConfigArgs, opts?: CustomResourceOptions);
@overload
def AviatrixControllerEmailConfig(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  admin_alert_email: Optional[str] = None,
                                  critical_alert_email: Optional[str] = None,
                                  security_event_email: Optional[str] = None,
                                  status_change_email: Optional[str] = None,
                                  status_change_notification_interval: Optional[int] = None)
@overload
def AviatrixControllerEmailConfig(resource_name: str,
                                  args: AviatrixControllerEmailConfigArgs,
                                  opts: Optional[ResourceOptions] = None)
func NewAviatrixControllerEmailConfig(ctx *Context, name string, args AviatrixControllerEmailConfigArgs, opts ...ResourceOption) (*AviatrixControllerEmailConfig, error)
public AviatrixControllerEmailConfig(string name, AviatrixControllerEmailConfigArgs args, CustomResourceOptions? opts = null)
public AviatrixControllerEmailConfig(String name, AviatrixControllerEmailConfigArgs args)
public AviatrixControllerEmailConfig(String name, AviatrixControllerEmailConfigArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixControllerEmailConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AviatrixControllerEmailConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AviatrixControllerEmailConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AviatrixControllerEmailConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AviatrixControllerEmailConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AviatrixControllerEmailConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AviatrixControllerEmailConfig Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AviatrixControllerEmailConfig resource accepts the following input properties:

AdminAlertEmail string

Email to receive important account and certification information.

CriticalAlertEmail string

Email to receive field notices and critical notices.

SecurityEventEmail string

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

StatusChangeEmail string

Email to receive system/tunnel status notification emails.

StatusChangeNotificationInterval int

Status change notification interval in seconds. Default value: 60.

AdminAlertEmail string

Email to receive important account and certification information.

CriticalAlertEmail string

Email to receive field notices and critical notices.

SecurityEventEmail string

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

StatusChangeEmail string

Email to receive system/tunnel status notification emails.

StatusChangeNotificationInterval int

Status change notification interval in seconds. Default value: 60.

adminAlertEmail String

Email to receive important account and certification information.

criticalAlertEmail String

Email to receive field notices and critical notices.

securityEventEmail String

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

statusChangeEmail String

Email to receive system/tunnel status notification emails.

statusChangeNotificationInterval Integer

Status change notification interval in seconds. Default value: 60.

adminAlertEmail string

Email to receive important account and certification information.

criticalAlertEmail string

Email to receive field notices and critical notices.

securityEventEmail string

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

statusChangeEmail string

Email to receive system/tunnel status notification emails.

statusChangeNotificationInterval number

Status change notification interval in seconds. Default value: 60.

admin_alert_email str

Email to receive important account and certification information.

critical_alert_email str

Email to receive field notices and critical notices.

security_event_email str

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

status_change_email str

Email to receive system/tunnel status notification emails.

status_change_notification_interval int

Status change notification interval in seconds. Default value: 60.

adminAlertEmail String

Email to receive important account and certification information.

criticalAlertEmail String

Email to receive field notices and critical notices.

securityEventEmail String

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

statusChangeEmail String

Email to receive system/tunnel status notification emails.

statusChangeNotificationInterval Number

Status change notification interval in seconds. Default value: 60.

Outputs

All input properties are implicitly available as output properties. Additionally, the AviatrixControllerEmailConfig resource produces the following output properties:

AdminAlertEmailVerified bool

Whether admin alert notification email is verified.

CriticalAlertEmailVerified bool

Whether critical alert notification email is verified.

Id string

The provider-assigned unique ID for this managed resource.

SecurityEventEmailVerified bool

Whether security event notification email is verified.

StatusChangeEmailVerified bool

Whether status change notification email is verified.

AdminAlertEmailVerified bool

Whether admin alert notification email is verified.

CriticalAlertEmailVerified bool

Whether critical alert notification email is verified.

Id string

The provider-assigned unique ID for this managed resource.

SecurityEventEmailVerified bool

Whether security event notification email is verified.

StatusChangeEmailVerified bool

Whether status change notification email is verified.

adminAlertEmailVerified Boolean

Whether admin alert notification email is verified.

criticalAlertEmailVerified Boolean

Whether critical alert notification email is verified.

id String

The provider-assigned unique ID for this managed resource.

securityEventEmailVerified Boolean

Whether security event notification email is verified.

statusChangeEmailVerified Boolean

Whether status change notification email is verified.

adminAlertEmailVerified boolean

Whether admin alert notification email is verified.

criticalAlertEmailVerified boolean

Whether critical alert notification email is verified.

id string

The provider-assigned unique ID for this managed resource.

securityEventEmailVerified boolean

Whether security event notification email is verified.

statusChangeEmailVerified boolean

Whether status change notification email is verified.

admin_alert_email_verified bool

Whether admin alert notification email is verified.

critical_alert_email_verified bool

Whether critical alert notification email is verified.

id str

The provider-assigned unique ID for this managed resource.

security_event_email_verified bool

Whether security event notification email is verified.

status_change_email_verified bool

Whether status change notification email is verified.

adminAlertEmailVerified Boolean

Whether admin alert notification email is verified.

criticalAlertEmailVerified Boolean

Whether critical alert notification email is verified.

id String

The provider-assigned unique ID for this managed resource.

securityEventEmailVerified Boolean

Whether security event notification email is verified.

statusChangeEmailVerified Boolean

Whether status change notification email is verified.

Look up Existing AviatrixControllerEmailConfig Resource

Get an existing AviatrixControllerEmailConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AviatrixControllerEmailConfigState, opts?: CustomResourceOptions): AviatrixControllerEmailConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        admin_alert_email: Optional[str] = None,
        admin_alert_email_verified: Optional[bool] = None,
        critical_alert_email: Optional[str] = None,
        critical_alert_email_verified: Optional[bool] = None,
        security_event_email: Optional[str] = None,
        security_event_email_verified: Optional[bool] = None,
        status_change_email: Optional[str] = None,
        status_change_email_verified: Optional[bool] = None,
        status_change_notification_interval: Optional[int] = None) -> AviatrixControllerEmailConfig
func GetAviatrixControllerEmailConfig(ctx *Context, name string, id IDInput, state *AviatrixControllerEmailConfigState, opts ...ResourceOption) (*AviatrixControllerEmailConfig, error)
public static AviatrixControllerEmailConfig Get(string name, Input<string> id, AviatrixControllerEmailConfigState? state, CustomResourceOptions? opts = null)
public static AviatrixControllerEmailConfig get(String name, Output<String> id, AviatrixControllerEmailConfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AdminAlertEmail string

Email to receive important account and certification information.

AdminAlertEmailVerified bool

Whether admin alert notification email is verified.

CriticalAlertEmail string

Email to receive field notices and critical notices.

CriticalAlertEmailVerified bool

Whether critical alert notification email is verified.

SecurityEventEmail string

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

SecurityEventEmailVerified bool

Whether security event notification email is verified.

StatusChangeEmail string

Email to receive system/tunnel status notification emails.

StatusChangeEmailVerified bool

Whether status change notification email is verified.

StatusChangeNotificationInterval int

Status change notification interval in seconds. Default value: 60.

AdminAlertEmail string

Email to receive important account and certification information.

AdminAlertEmailVerified bool

Whether admin alert notification email is verified.

CriticalAlertEmail string

Email to receive field notices and critical notices.

CriticalAlertEmailVerified bool

Whether critical alert notification email is verified.

SecurityEventEmail string

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

SecurityEventEmailVerified bool

Whether security event notification email is verified.

StatusChangeEmail string

Email to receive system/tunnel status notification emails.

StatusChangeEmailVerified bool

Whether status change notification email is verified.

StatusChangeNotificationInterval int

Status change notification interval in seconds. Default value: 60.

adminAlertEmail String

Email to receive important account and certification information.

adminAlertEmailVerified Boolean

Whether admin alert notification email is verified.

criticalAlertEmail String

Email to receive field notices and critical notices.

criticalAlertEmailVerified Boolean

Whether critical alert notification email is verified.

securityEventEmail String

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

securityEventEmailVerified Boolean

Whether security event notification email is verified.

statusChangeEmail String

Email to receive system/tunnel status notification emails.

statusChangeEmailVerified Boolean

Whether status change notification email is verified.

statusChangeNotificationInterval Integer

Status change notification interval in seconds. Default value: 60.

adminAlertEmail string

Email to receive important account and certification information.

adminAlertEmailVerified boolean

Whether admin alert notification email is verified.

criticalAlertEmail string

Email to receive field notices and critical notices.

criticalAlertEmailVerified boolean

Whether critical alert notification email is verified.

securityEventEmail string

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

securityEventEmailVerified boolean

Whether security event notification email is verified.

statusChangeEmail string

Email to receive system/tunnel status notification emails.

statusChangeEmailVerified boolean

Whether status change notification email is verified.

statusChangeNotificationInterval number

Status change notification interval in seconds. Default value: 60.

admin_alert_email str

Email to receive important account and certification information.

admin_alert_email_verified bool

Whether admin alert notification email is verified.

critical_alert_email str

Email to receive field notices and critical notices.

critical_alert_email_verified bool

Whether critical alert notification email is verified.

security_event_email str

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

security_event_email_verified bool

Whether security event notification email is verified.

status_change_email str

Email to receive system/tunnel status notification emails.

status_change_email_verified bool

Whether status change notification email is verified.

status_change_notification_interval int

Status change notification interval in seconds. Default value: 60.

adminAlertEmail String

Email to receive important account and certification information.

adminAlertEmailVerified Boolean

Whether admin alert notification email is verified.

criticalAlertEmail String

Email to receive field notices and critical notices.

criticalAlertEmailVerified Boolean

Whether critical alert notification email is verified.

securityEventEmail String

Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.

securityEventEmailVerified Boolean

Whether security event notification email is verified.

statusChangeEmail String

Email to receive system/tunnel status notification emails.

statusChangeEmailVerified Boolean

Whether status change notification email is verified.

statusChangeNotificationInterval Number

Status change notification interval in seconds. Default value: 60.

Import

Instance controller_email_config can be imported using controller IP, e.g. controller IP is 10.11.12.13

 $ pulumi import aviatrix:index/aviatrixControllerEmailConfig:AviatrixControllerEmailConfig test 10-11-12-13

Package Details

Repository
aviatrix astipkovits/pulumi-aviatrix
License
Apache-2.0
Notes

This Pulumi package is based on the aviatrix Terraform Provider.