OutboundConnectionArgs

data class OutboundConnectionArgs(val acceptConnection: Output<Boolean>? = null, val connectionAlias: Output<String>? = null, val connectionMode: Output<String>? = null, val connectionProperties: Output<OutboundConnectionConnectionPropertiesArgs>? = 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.GetCallerIdentityArgs;
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")
.connectionMode("DIRECT")
.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

Using pulumi import, import AWS Opensearch Outbound Connections using the Outbound Connection ID. For example:

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

Constructors

Link copied to clipboard
fun OutboundConnectionArgs(acceptConnection: Output<Boolean>? = null, connectionAlias: Output<String>? = null, connectionMode: Output<String>? = null, connectionProperties: Output<OutboundConnectionConnectionPropertiesArgs>? = null, localDomainInfo: Output<OutboundConnectionLocalDomainInfoArgs>? = null, remoteDomainInfo: Output<OutboundConnectionRemoteDomainInfoArgs>? = null)

Functions

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

Properties

Link copied to clipboard
val acceptConnection: Output<Boolean>? = null

Accepts the connection.

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
val connectionMode: Output<String>? = null

Specifies the connection mode. Accepted values are DIRECT or VPC_ENDPOINT.

Link copied to clipboard

Configuration block for the outbound connection.

Link copied to clipboard

Configuration block for the local Opensearch domain.

Link copied to clipboard

Configuration block for the remote Opensearch domain.