OutboundConnection

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

Properties

Link copied to clipboard
val connectionAlias: Output<String>

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

Link copied to clipboard

Status of the connection request.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Configuration block for the local Opensearch domain.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Configuration block for the remote Opensearch domain.

Link copied to clipboard
val urn: Output<String>