OutboundConnectionArgs

data class OutboundConnectionArgs(val connectionAlias: Output<String>? = null, val localDomainInfo: Output<OutboundConnectionLocalDomainInfoArgs>? = null, val remoteDomainInfo: Output<OutboundConnectionRemoteDomainInfoArgs>? = null) : ConvertibleToJava<OutboundConnectionArgs>

Manages an AWS Opensearch Outbound Connection.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.inputs.GetRegionArgs;
import com.pulumi.aws.opensearch.OutboundConnection;
import com.pulumi.aws.opensearch.OutboundConnectionArgs;
import com.pulumi.aws.opensearch.inputs.OutboundConnectionLocalDomainInfoArgs;
import com.pulumi.aws.opensearch.inputs.OutboundConnectionRemoteDomainInfoArgs;
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 currentCallerIdentity = AwsFunctions.getCallerIdentity();
final var currentRegion = AwsFunctions.getRegion();
var foo = new OutboundConnection("foo", OutboundConnectionArgs.builder()
.connectionAlias("outbound_connection")
.localDomainInfo(OutboundConnectionLocalDomainInfoArgs.builder()
.ownerId(currentCallerIdentity.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
.region(currentRegion.applyValue(getRegionResult -> getRegionResult.name()))
.domainName(aws_opensearch_domain.local_domain().domain_name())
.build())
.remoteDomainInfo(OutboundConnectionRemoteDomainInfoArgs.builder()
.ownerId(currentCallerIdentity.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
.region(currentRegion.applyValue(getRegionResult -> getRegionResult.name()))
.domainName(aws_opensearch_domain.remote_domain().domain_name())
.build())
.build());
}
}

Import

AWS Opensearch Outbound Connections can be imported by using the Outbound Connection ID, e.g.,

$ pulumi import aws:opensearch/outboundConnection:OutboundConnection foo connection-id

Constructors

Link copied to clipboard
constructor(connectionAlias: Output<String>? = null, localDomainInfo: Output<OutboundConnectionLocalDomainInfoArgs>? = null, remoteDomainInfo: Output<OutboundConnectionRemoteDomainInfoArgs>? = null)

Properties

Link copied to clipboard
val connectionAlias: Output<String>? = null

Specifies the connection alias that will be used by the customer for this connection.

Link copied to clipboard

Configuration block for the local Opensearch domain.

Link copied to clipboard

Configuration block for the remote Opensearch domain.

Functions

Link copied to clipboard
open override fun toJava(): OutboundConnectionArgs