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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixControllerEmailConfig(name: string, args: AviatrixControllerEmailConfigArgs, opts?: CustomResourceOptions);
@overload
def AviatrixControllerEmailConfig(resource_name: str,
args: AviatrixControllerEmailConfigArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var aviatrixControllerEmailConfigResource = new Aviatrix.AviatrixControllerEmailConfig("aviatrixControllerEmailConfigResource", new()
{
AdminAlertEmail = "string",
CriticalAlertEmail = "string",
SecurityEventEmail = "string",
StatusChangeEmail = "string",
StatusChangeNotificationInterval = 0,
});
example, err := aviatrix.NewAviatrixControllerEmailConfig(ctx, "aviatrixControllerEmailConfigResource", &aviatrix.AviatrixControllerEmailConfigArgs{
AdminAlertEmail: pulumi.String("string"),
CriticalAlertEmail: pulumi.String("string"),
SecurityEventEmail: pulumi.String("string"),
StatusChangeEmail: pulumi.String("string"),
StatusChangeNotificationInterval: pulumi.Int(0),
})
var aviatrixControllerEmailConfigResource = new AviatrixControllerEmailConfig("aviatrixControllerEmailConfigResource", AviatrixControllerEmailConfigArgs.builder()
.adminAlertEmail("string")
.criticalAlertEmail("string")
.securityEventEmail("string")
.statusChangeEmail("string")
.statusChangeNotificationInterval(0)
.build());
aviatrix_controller_email_config_resource = aviatrix.AviatrixControllerEmailConfig("aviatrixControllerEmailConfigResource",
admin_alert_email="string",
critical_alert_email="string",
security_event_email="string",
status_change_email="string",
status_change_notification_interval=0)
const aviatrixControllerEmailConfigResource = new aviatrix.AviatrixControllerEmailConfig("aviatrixControllerEmailConfigResource", {
adminAlertEmail: "string",
criticalAlertEmail: "string",
securityEventEmail: "string",
statusChangeEmail: "string",
statusChangeNotificationInterval: 0,
});
type: aviatrix:AviatrixControllerEmailConfig
properties:
adminAlertEmail: string
criticalAlertEmail: string
securityEventEmail: string
statusChangeEmail: string
statusChangeNotificationInterval: 0
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AviatrixControllerEmailConfig resource accepts the following input properties:
- Admin
Alert stringEmail - Email to receive important account and certification information.
- Critical
Alert stringEmail - Email to receive field notices and critical notices.
- Security
Event stringEmail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- Status
Change stringEmail - Email to receive system/tunnel status notification emails.
- Status
Change intNotification Interval - Status change notification interval in seconds. Default value: 60.
- Admin
Alert stringEmail - Email to receive important account and certification information.
- Critical
Alert stringEmail - Email to receive field notices and critical notices.
- Security
Event stringEmail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- Status
Change stringEmail - Email to receive system/tunnel status notification emails.
- Status
Change intNotification Interval - Status change notification interval in seconds. Default value: 60.
- admin
Alert StringEmail - Email to receive important account and certification information.
- critical
Alert StringEmail - Email to receive field notices and critical notices.
- security
Event StringEmail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- status
Change StringEmail - Email to receive system/tunnel status notification emails.
- status
Change IntegerNotification Interval - Status change notification interval in seconds. Default value: 60.
- admin
Alert stringEmail - Email to receive important account and certification information.
- critical
Alert stringEmail - Email to receive field notices and critical notices.
- security
Event stringEmail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- status
Change stringEmail - Email to receive system/tunnel status notification emails.
- status
Change numberNotification Interval - Status change notification interval in seconds. Default value: 60.
- admin_
alert_ stremail - Email to receive important account and certification information.
- critical_
alert_ stremail - Email to receive field notices and critical notices.
- security_
event_ stremail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- status_
change_ stremail - Email to receive system/tunnel status notification emails.
- status_
change_ intnotification_ interval - Status change notification interval in seconds. Default value: 60.
- admin
Alert StringEmail - Email to receive important account and certification information.
- critical
Alert StringEmail - Email to receive field notices and critical notices.
- security
Event StringEmail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- status
Change StringEmail - Email to receive system/tunnel status notification emails.
- status
Change NumberNotification Interval - 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:
- Admin
Alert boolEmail Verified - Whether admin alert notification email is verified.
- Critical
Alert boolEmail Verified - Whether critical alert notification email is verified.
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Event boolEmail Verified - Whether security event notification email is verified.
- Status
Change boolEmail Verified - Whether status change notification email is verified.
- Admin
Alert boolEmail Verified - Whether admin alert notification email is verified.
- Critical
Alert boolEmail Verified - Whether critical alert notification email is verified.
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Event boolEmail Verified - Whether security event notification email is verified.
- Status
Change boolEmail Verified - Whether status change notification email is verified.
- admin
Alert BooleanEmail Verified - Whether admin alert notification email is verified.
- critical
Alert BooleanEmail Verified - Whether critical alert notification email is verified.
- id String
- The provider-assigned unique ID for this managed resource.
- security
Event BooleanEmail Verified - Whether security event notification email is verified.
- status
Change BooleanEmail Verified - Whether status change notification email is verified.
- admin
Alert booleanEmail Verified - Whether admin alert notification email is verified.
- critical
Alert booleanEmail Verified - Whether critical alert notification email is verified.
- id string
- The provider-assigned unique ID for this managed resource.
- security
Event booleanEmail Verified - Whether security event notification email is verified.
- status
Change booleanEmail Verified - Whether status change notification email is verified.
- admin_
alert_ boolemail_ verified - Whether admin alert notification email is verified.
- critical_
alert_ boolemail_ verified - Whether critical alert notification email is verified.
- id str
- The provider-assigned unique ID for this managed resource.
- security_
event_ boolemail_ verified - Whether security event notification email is verified.
- status_
change_ boolemail_ verified - Whether status change notification email is verified.
- admin
Alert BooleanEmail Verified - Whether admin alert notification email is verified.
- critical
Alert BooleanEmail Verified - Whether critical alert notification email is verified.
- id String
- The provider-assigned unique ID for this managed resource.
- security
Event BooleanEmail Verified - Whether security event notification email is verified.
- status
Change BooleanEmail Verified - 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.
- Admin
Alert stringEmail - Email to receive important account and certification information.
- Admin
Alert boolEmail Verified - Whether admin alert notification email is verified.
- Critical
Alert stringEmail - Email to receive field notices and critical notices.
- Critical
Alert boolEmail Verified - Whether critical alert notification email is verified.
- Security
Event stringEmail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- Security
Event boolEmail Verified - Whether security event notification email is verified.
- Status
Change stringEmail - Email to receive system/tunnel status notification emails.
- Status
Change boolEmail Verified - Whether status change notification email is verified.
- Status
Change intNotification Interval - Status change notification interval in seconds. Default value: 60.
- Admin
Alert stringEmail - Email to receive important account and certification information.
- Admin
Alert boolEmail Verified - Whether admin alert notification email is verified.
- Critical
Alert stringEmail - Email to receive field notices and critical notices.
- Critical
Alert boolEmail Verified - Whether critical alert notification email is verified.
- Security
Event stringEmail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- Security
Event boolEmail Verified - Whether security event notification email is verified.
- Status
Change stringEmail - Email to receive system/tunnel status notification emails.
- Status
Change boolEmail Verified - Whether status change notification email is verified.
- Status
Change intNotification Interval - Status change notification interval in seconds. Default value: 60.
- admin
Alert StringEmail - Email to receive important account and certification information.
- admin
Alert BooleanEmail Verified - Whether admin alert notification email is verified.
- critical
Alert StringEmail - Email to receive field notices and critical notices.
- critical
Alert BooleanEmail Verified - Whether critical alert notification email is verified.
- security
Event StringEmail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- security
Event BooleanEmail Verified - Whether security event notification email is verified.
- status
Change StringEmail - Email to receive system/tunnel status notification emails.
- status
Change BooleanEmail Verified - Whether status change notification email is verified.
- status
Change IntegerNotification Interval - Status change notification interval in seconds. Default value: 60.
- admin
Alert stringEmail - Email to receive important account and certification information.
- admin
Alert booleanEmail Verified - Whether admin alert notification email is verified.
- critical
Alert stringEmail - Email to receive field notices and critical notices.
- critical
Alert booleanEmail Verified - Whether critical alert notification email is verified.
- security
Event stringEmail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- security
Event booleanEmail Verified - Whether security event notification email is verified.
- status
Change stringEmail - Email to receive system/tunnel status notification emails.
- status
Change booleanEmail Verified - Whether status change notification email is verified.
- status
Change numberNotification Interval - Status change notification interval in seconds. Default value: 60.
- admin_
alert_ stremail - Email to receive important account and certification information.
- admin_
alert_ boolemail_ verified - Whether admin alert notification email is verified.
- critical_
alert_ stremail - Email to receive field notices and critical notices.
- critical_
alert_ boolemail_ verified - Whether critical alert notification email is verified.
- security_
event_ stremail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- security_
event_ boolemail_ verified - Whether security event notification email is verified.
- status_
change_ stremail - Email to receive system/tunnel status notification emails.
- status_
change_ boolemail_ verified - Whether status change notification email is verified.
- status_
change_ intnotification_ interval - Status change notification interval in seconds. Default value: 60.
- admin
Alert StringEmail - Email to receive important account and certification information.
- admin
Alert BooleanEmail Verified - Whether admin alert notification email is verified.
- critical
Alert StringEmail - Email to receive field notices and critical notices.
- critical
Alert BooleanEmail Verified - Whether critical alert notification email is verified.
- security
Event StringEmail - Email to receive security and CVE (Common Vulnerabilities and Exposures) notification emails.
- security
Event BooleanEmail Verified - Whether security event notification email is verified.
- status
Change StringEmail - Email to receive system/tunnel status notification emails.
- status
Change BooleanEmail Verified - Whether status change notification email is verified.
- status
Change NumberNotification Interval - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- aviatrix astipkovits/pulumi-aviatrix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aviatrix
Terraform Provider.