1. Packages
  2. Nexus Provider
  3. API Docs
  4. getMailConfig
nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers

nexus.getMailConfig

Explore with Pulumi AI

nexus logo
nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers

    Use this data source to query the mail config

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nexus from "@pulumi/nexus";
    
    const config = nexus.getMailConfig({});
    export const host = config.then(config => config.host);
    
    import pulumi
    import pulumi_nexus as nexus
    
    config = nexus.get_mail_config()
    pulumi.export("host", config.host)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/nexus/v2/nexus"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		config, err := nexus.LookupMailConfig(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("host", config.Host)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nexus = Pulumi.Nexus;
    
    return await Deployment.RunAsync(() => 
    {
        var config = Nexus.GetMailConfig.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["host"] = config.Apply(getMailConfigResult => getMailConfigResult.Host),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nexus.NexusFunctions;
    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) {
            final var config = NexusFunctions.getMailConfig();
    
            ctx.export("host", config.applyValue(getMailConfigResult -> getMailConfigResult.host()));
        }
    }
    
    variables:
      config:
        fn::invoke:
          function: nexus:getMailConfig
          arguments: {}
    outputs:
      host: ${config.host}
    

    Using getMailConfig

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getMailConfig(opts?: InvokeOptions): Promise<GetMailConfigResult>
    function getMailConfigOutput(opts?: InvokeOptions): Output<GetMailConfigResult>
    def get_mail_config(opts: Optional[InvokeOptions] = None) -> GetMailConfigResult
    def get_mail_config_output(opts: Optional[InvokeOptions] = None) -> Output[GetMailConfigResult]
    func LookupMailConfig(ctx *Context, opts ...InvokeOption) (*LookupMailConfigResult, error)
    func LookupMailConfigOutput(ctx *Context, opts ...InvokeOption) LookupMailConfigResultOutput

    > Note: This function is named LookupMailConfig in the Go SDK.

    public static class GetMailConfig 
    {
        public static Task<GetMailConfigResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetMailConfigResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMailConfigResult> getMailConfig(InvokeOptions options)
    public static Output<GetMailConfigResult> getMailConfig(InvokeOptions options)
    
    fn::invoke:
      function: nexus:index/getMailConfig:getMailConfig
      arguments:
        # arguments dictionary

    getMailConfig Result

    The following output properties are available:

    Enabled bool
    Whether the config is enabled or not
    FromAddress string
    fromAddress
    Host string
    hostname
    Id string
    Used to identify data source at nexus
    NexusTrustStoreEnabled bool
    SSL on connect enabled
    Port double
    port
    SslOnConnectEnabled bool
    SSL on connect enabled
    SslServerIdentityCheckEnabled bool
    SSL on connect enabled
    StartTlsEnabled bool
    Star TLS Enabled
    StartTlsRequired bool
    Star TLS required
    SubjectPrefix string
    Subject prefix
    Username string
    Username
    Enabled bool
    Whether the config is enabled or not
    FromAddress string
    fromAddress
    Host string
    hostname
    Id string
    Used to identify data source at nexus
    NexusTrustStoreEnabled bool
    SSL on connect enabled
    Port float64
    port
    SslOnConnectEnabled bool
    SSL on connect enabled
    SslServerIdentityCheckEnabled bool
    SSL on connect enabled
    StartTlsEnabled bool
    Star TLS Enabled
    StartTlsRequired bool
    Star TLS required
    SubjectPrefix string
    Subject prefix
    Username string
    Username
    enabled Boolean
    Whether the config is enabled or not
    fromAddress String
    fromAddress
    host String
    hostname
    id String
    Used to identify data source at nexus
    nexusTrustStoreEnabled Boolean
    SSL on connect enabled
    port Double
    port
    sslOnConnectEnabled Boolean
    SSL on connect enabled
    sslServerIdentityCheckEnabled Boolean
    SSL on connect enabled
    startTlsEnabled Boolean
    Star TLS Enabled
    startTlsRequired Boolean
    Star TLS required
    subjectPrefix String
    Subject prefix
    username String
    Username
    enabled boolean
    Whether the config is enabled or not
    fromAddress string
    fromAddress
    host string
    hostname
    id string
    Used to identify data source at nexus
    nexusTrustStoreEnabled boolean
    SSL on connect enabled
    port number
    port
    sslOnConnectEnabled boolean
    SSL on connect enabled
    sslServerIdentityCheckEnabled boolean
    SSL on connect enabled
    startTlsEnabled boolean
    Star TLS Enabled
    startTlsRequired boolean
    Star TLS required
    subjectPrefix string
    Subject prefix
    username string
    Username
    enabled bool
    Whether the config is enabled or not
    from_address str
    fromAddress
    host str
    hostname
    id str
    Used to identify data source at nexus
    nexus_trust_store_enabled bool
    SSL on connect enabled
    port float
    port
    ssl_on_connect_enabled bool
    SSL on connect enabled
    ssl_server_identity_check_enabled bool
    SSL on connect enabled
    start_tls_enabled bool
    Star TLS Enabled
    start_tls_required bool
    Star TLS required
    subject_prefix str
    Subject prefix
    username str
    Username
    enabled Boolean
    Whether the config is enabled or not
    fromAddress String
    fromAddress
    host String
    hostname
    id String
    Used to identify data source at nexus
    nexusTrustStoreEnabled Boolean
    SSL on connect enabled
    port Number
    port
    sslOnConnectEnabled Boolean
    SSL on connect enabled
    sslServerIdentityCheckEnabled Boolean
    SSL on connect enabled
    startTlsEnabled Boolean
    Star TLS Enabled
    startTlsRequired Boolean
    Star TLS required
    subjectPrefix String
    Subject prefix
    username String
    Username

    Package Details

    Repository
    nexus datadrivers/terraform-provider-nexus
    License
    Notes
    This Pulumi package is based on the nexus Terraform Provider.
    nexus logo
    nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers