1. Packages
  2. Aviatrix
  3. API Docs
  4. AviatrixControllerEmailExceptionNotificationConfig
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

aviatrix.AviatrixControllerEmailExceptionNotificationConfig

Explore with Pulumi AI

aviatrix logo
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

    The aviatrix_controller_email_exception_notification_config resource allows management of an Aviatrix Controller’s email exception notification config. This resource is available as of provider version R2.19+.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Aviatrix = Pulumi.Aviatrix;
    
    return await Deployment.RunAsync(() => 
    {
        // Create an Aviatrix controller email exception notification config
        var test = new Aviatrix.AviatrixControllerEmailExceptionNotificationConfig("test", new()
        {
            EnableEmailExceptionNotification = false,
        });
    
    });
    
    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.NewAviatrixControllerEmailExceptionNotificationConfig(ctx, "test", &aviatrix.AviatrixControllerEmailExceptionNotificationConfigArgs{
    			EnableEmailExceptionNotification: pulumi.Bool(false),
    		})
    		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.AviatrixControllerEmailExceptionNotificationConfig;
    import com.pulumi.aviatrix.AviatrixControllerEmailExceptionNotificationConfigArgs;
    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 test = new AviatrixControllerEmailExceptionNotificationConfig("test", AviatrixControllerEmailExceptionNotificationConfigArgs.builder()        
                .enableEmailExceptionNotification(false)
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aviatrix as aviatrix
    
    # Create an Aviatrix controller email exception notification config
    test = aviatrix.AviatrixControllerEmailExceptionNotificationConfig("test", enable_email_exception_notification=False)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aviatrix from "@pulumi/aviatrix";
    
    // Create an Aviatrix controller email exception notification config
    const test = new aviatrix.AviatrixControllerEmailExceptionNotificationConfig("test", {
        enableEmailExceptionNotification: false,
    });
    
    resources:
      # Create an Aviatrix controller email exception notification config
      test:
        type: aviatrix:AviatrixControllerEmailExceptionNotificationConfig
        properties:
          enableEmailExceptionNotification: false
    

    Create AviatrixControllerEmailExceptionNotificationConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AviatrixControllerEmailExceptionNotificationConfig(name: string, args?: AviatrixControllerEmailExceptionNotificationConfigArgs, opts?: CustomResourceOptions);
    @overload
    def AviatrixControllerEmailExceptionNotificationConfig(resource_name: str,
                                                           args: Optional[AviatrixControllerEmailExceptionNotificationConfigArgs] = None,
                                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def AviatrixControllerEmailExceptionNotificationConfig(resource_name: str,
                                                           opts: Optional[ResourceOptions] = None,
                                                           enable_email_exception_notification: Optional[bool] = None)
    func NewAviatrixControllerEmailExceptionNotificationConfig(ctx *Context, name string, args *AviatrixControllerEmailExceptionNotificationConfigArgs, opts ...ResourceOption) (*AviatrixControllerEmailExceptionNotificationConfig, error)
    public AviatrixControllerEmailExceptionNotificationConfig(string name, AviatrixControllerEmailExceptionNotificationConfigArgs? args = null, CustomResourceOptions? opts = null)
    public AviatrixControllerEmailExceptionNotificationConfig(String name, AviatrixControllerEmailExceptionNotificationConfigArgs args)
    public AviatrixControllerEmailExceptionNotificationConfig(String name, AviatrixControllerEmailExceptionNotificationConfigArgs args, CustomResourceOptions options)
    
    type: aviatrix:AviatrixControllerEmailExceptionNotificationConfig
    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 AviatrixControllerEmailExceptionNotificationConfigArgs
    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 AviatrixControllerEmailExceptionNotificationConfigArgs
    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 AviatrixControllerEmailExceptionNotificationConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AviatrixControllerEmailExceptionNotificationConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AviatrixControllerEmailExceptionNotificationConfigArgs
    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 aviatrixControllerEmailExceptionNotificationConfigResource = new Aviatrix.AviatrixControllerEmailExceptionNotificationConfig("aviatrixControllerEmailExceptionNotificationConfigResource", new()
    {
        EnableEmailExceptionNotification = false,
    });
    
    example, err := aviatrix.NewAviatrixControllerEmailExceptionNotificationConfig(ctx, "aviatrixControllerEmailExceptionNotificationConfigResource", &aviatrix.AviatrixControllerEmailExceptionNotificationConfigArgs{
    	EnableEmailExceptionNotification: pulumi.Bool(false),
    })
    
    var aviatrixControllerEmailExceptionNotificationConfigResource = new AviatrixControllerEmailExceptionNotificationConfig("aviatrixControllerEmailExceptionNotificationConfigResource", AviatrixControllerEmailExceptionNotificationConfigArgs.builder()
        .enableEmailExceptionNotification(false)
        .build());
    
    aviatrix_controller_email_exception_notification_config_resource = aviatrix.AviatrixControllerEmailExceptionNotificationConfig("aviatrixControllerEmailExceptionNotificationConfigResource", enable_email_exception_notification=False)
    
    const aviatrixControllerEmailExceptionNotificationConfigResource = new aviatrix.AviatrixControllerEmailExceptionNotificationConfig("aviatrixControllerEmailExceptionNotificationConfigResource", {enableEmailExceptionNotification: false});
    
    type: aviatrix:AviatrixControllerEmailExceptionNotificationConfig
    properties:
        enableEmailExceptionNotification: false
    

    AviatrixControllerEmailExceptionNotificationConfig 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 AviatrixControllerEmailExceptionNotificationConfig resource accepts the following input properties:

    EnableEmailExceptionNotification bool
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.
    EnableEmailExceptionNotification bool
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.
    enableEmailExceptionNotification Boolean
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.
    enableEmailExceptionNotification boolean
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.
    enable_email_exception_notification bool
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.
    enableEmailExceptionNotification Boolean
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AviatrixControllerEmailExceptionNotificationConfig Resource

    Get an existing AviatrixControllerEmailExceptionNotificationConfig 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?: AviatrixControllerEmailExceptionNotificationConfigState, opts?: CustomResourceOptions): AviatrixControllerEmailExceptionNotificationConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enable_email_exception_notification: Optional[bool] = None) -> AviatrixControllerEmailExceptionNotificationConfig
    func GetAviatrixControllerEmailExceptionNotificationConfig(ctx *Context, name string, id IDInput, state *AviatrixControllerEmailExceptionNotificationConfigState, opts ...ResourceOption) (*AviatrixControllerEmailExceptionNotificationConfig, error)
    public static AviatrixControllerEmailExceptionNotificationConfig Get(string name, Input<string> id, AviatrixControllerEmailExceptionNotificationConfigState? state, CustomResourceOptions? opts = null)
    public static AviatrixControllerEmailExceptionNotificationConfig get(String name, Output<String> id, AviatrixControllerEmailExceptionNotificationConfigState 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:
    EnableEmailExceptionNotification bool
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.
    EnableEmailExceptionNotification bool
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.
    enableEmailExceptionNotification Boolean
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.
    enableEmailExceptionNotification boolean
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.
    enable_email_exception_notification bool
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.
    enableEmailExceptionNotification Boolean
    Enable exception email notification. When set to true, exception email will be sent to "exception@aviatrix.com", when set to false, exception email will be sent to controller's admin email. Valid values: true, false. Default value: true.

    Import

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

     $ pulumi import aviatrix:index/aviatrixControllerEmailExceptionNotificationConfig:AviatrixControllerEmailExceptionNotificationConfig 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.
    aviatrix logo
    Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix