nexus 2.6.0 published on Thursday, May 8, 2025 by datadrivers
nexus 2.6.0 published on Thursday, May 8, 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 dictionarygetMailConfig Result
The following output properties are available:
- Enabled bool
- Whether the config is enabled or not
- From
Address string - fromAddress
- Host string
- hostname
- Id string
- Used to identify data source at nexus
- Nexus
Trust boolStore Enabled - SSL on connect enabled
- Port double
- port
- Ssl
On boolConnect Enabled - SSL on connect enabled
- Ssl
Server boolIdentity Check Enabled - SSL on connect enabled
- Start
Tls boolEnabled - Star TLS Enabled
- Start
Tls boolRequired - Star TLS required
- Subject
Prefix string - Subject prefix
- Username string
- Username
- Enabled bool
- Whether the config is enabled or not
- From
Address string - fromAddress
- Host string
- hostname
- Id string
- Used to identify data source at nexus
- Nexus
Trust boolStore Enabled - SSL on connect enabled
- Port float64
- port
- Ssl
On boolConnect Enabled - SSL on connect enabled
- Ssl
Server boolIdentity Check Enabled - SSL on connect enabled
- Start
Tls boolEnabled - Star TLS Enabled
- Start
Tls boolRequired - Star TLS required
- Subject
Prefix string - Subject prefix
- Username string
- Username
- enabled Boolean
- Whether the config is enabled or not
- from
Address String - fromAddress
- host String
- hostname
- id String
- Used to identify data source at nexus
- nexus
Trust BooleanStore Enabled - SSL on connect enabled
- port Double
- port
- ssl
On BooleanConnect Enabled - SSL on connect enabled
- ssl
Server BooleanIdentity Check Enabled - SSL on connect enabled
- start
Tls BooleanEnabled - Star TLS Enabled
- start
Tls BooleanRequired - Star TLS required
- subject
Prefix String - Subject prefix
- username String
- Username
- enabled boolean
- Whether the config is enabled or not
- from
Address string - fromAddress
- host string
- hostname
- id string
- Used to identify data source at nexus
- nexus
Trust booleanStore Enabled - SSL on connect enabled
- port number
- port
- ssl
On booleanConnect Enabled - SSL on connect enabled
- ssl
Server booleanIdentity Check Enabled - SSL on connect enabled
- start
Tls booleanEnabled - Star TLS Enabled
- start
Tls booleanRequired - Star TLS required
- subject
Prefix 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_ boolstore_ enabled - SSL on connect enabled
- port float
- port
- ssl_
on_ boolconnect_ enabled - SSL on connect enabled
- ssl_
server_ boolidentity_ check_ enabled - SSL on connect enabled
- start_
tls_ boolenabled - Star TLS Enabled
- start_
tls_ boolrequired - Star TLS required
- subject_
prefix str - Subject prefix
- username str
- Username
- enabled Boolean
- Whether the config is enabled or not
- from
Address String - fromAddress
- host String
- hostname
- id String
- Used to identify data source at nexus
- nexus
Trust BooleanStore Enabled - SSL on connect enabled
- port Number
- port
- ssl
On BooleanConnect Enabled - SSL on connect enabled
- ssl
Server BooleanIdentity Check Enabled - SSL on connect enabled
- start
Tls BooleanEnabled - Star TLS Enabled
- start
Tls BooleanRequired - Star TLS required
- subject
Prefix String - Subject prefix
- username String
- Username
Package Details
- Repository
- nexus datadrivers/terraform-provider-nexus
- License
- Notes
- This Pulumi package is based on the
nexusTerraform Provider.
nexus 2.6.0 published on Thursday, May 8, 2025 by datadrivers
